Skip to content

Commit c907dbc

Browse files
authored
update latest config and packages
1 parent 30ea779 commit c907dbc

9 files changed

+30224
-0
lines changed

components.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

eslint.config.mjs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { dirname } from 'path';
2+
import { fileURLToPath } from 'url';
3+
import { FlatCompat } from '@eslint/eslintrc';
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.config({
14+
extends: ['next'],
15+
settings: {
16+
next: {
17+
rootDir: 'packages/my-app/',
18+
},
19+
},
20+
rules: {
21+
'@typescript-eslint/no-explicit-any': 'off',
22+
'@typescript-eslint/no-unused-vars': 'off',
23+
},
24+
}),
25+
];
26+
export default eslintConfig;

index.d.ts

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
export {};
2+
3+
declare global {
4+
type Side = 'sender' | 'recipient';
5+
6+
type Role = 'user' | 'logistics';
7+
8+
type Status = 'pending' | 'delivering' | 'delivered';
9+
10+
interface Parcel {
11+
id: string;
12+
status: Status;
13+
14+
envelopes: {
15+
parcelDelivery: string;
16+
preDelivery?: string;
17+
};
18+
19+
sender: {
20+
nullifierHash?: string;
21+
wallet: string;
22+
23+
email: string;
24+
name: string;
25+
26+
evidence?: string;
27+
deliveryCompletion?: string;
28+
};
29+
30+
recipient: {
31+
nullifierHash?: string;
32+
wallet?: string;
33+
34+
isDelegated: boolean;
35+
isSigned: boolean;
36+
37+
email: string;
38+
name: string;
39+
phone: string;
40+
address: string;
41+
42+
evidence?: string;
43+
deliveryCompletion?: string;
44+
};
45+
46+
attestation?: string;
47+
48+
timestamp: number;
49+
}
50+
}

next.config.mjs

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
3+
typescript: {
4+
// !! WARN !!
5+
// Dangerously allow production builds to successfully complete even if
6+
// your project has type errors.
7+
// !! WARN !!
8+
ignoreBuildErrors: true,
9+
},
10+
webpack: (config) => {
11+
config.externals.push('pino-pretty', 'lokijs', 'encoding');
12+
return config;
13+
},
14+
env: {
15+
NEXT_PUBLIC_APP_LINK: '',
16+
17+
// World Coin
18+
NEXT_PUBLIC_APP_ID: '',
19+
20+
// Dynamic Connection
21+
ENVIRONMENTAL_ID: '',
22+
23+
// Docusign App
24+
API_ACCOUNT_ID: '',
25+
INTEGRATION_KEY: '',
26+
SECRET_KEY: '',
27+
28+
// Docusign Forms
29+
PARCEL_DELIVERY_FORM_ID: '',
30+
PRE_DELIVERY_AGREEMENT_TEMPLATE_ID: '',
31+
CLICK_WRAP_ID: '',
32+
DELIVERY_COMPLETION_ID: '',
33+
DELIVERY_ACKNOWLEDGEMENT_ID: '',
34+
35+
// Pinata
36+
PINATA_JWT:
37+
'',
38+
NEXT_PUBLIC_PINATA_ENDPOINT: '',
39+
40+
// Attestation
41+
INFURA_API: '',
42+
NEXT_PUBLIC_SCHEMA_ID: '',
43+
},
44+
};
45+
46+
export default nextConfig;

0 commit comments

Comments
 (0)