create-blocklet 0.9.6 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/.prettierrc +11 -1
- package/common/scripts/build-clean.mjs +0 -1
- package/common/scripts/bump-version.mjs +33 -29
- package/index.js +16 -10
- package/lib/did.js +10 -5
- package/package.json +1 -1
- package/templates/did-connect-dapp/.eslintrc.js +4 -0
- package/templates/did-connect-dapp/README.md +35 -0
- package/templates/did-connect-dapp/api/dev.js +5 -0
- package/templates/did-connect-dapp/api/hooks/pre-start.js +33 -0
- package/templates/did-connect-dapp/api/index.js +48 -0
- package/templates/did-connect-dapp/api/libs/auth.js +25 -0
- package/templates/did-connect-dapp/api/libs/env.js +9 -0
- package/templates/did-connect-dapp/api/libs/logger.js +3 -0
- package/templates/did-connect-dapp/api/libs/utils.js +70 -0
- package/templates/did-connect-dapp/api/routes/auth/index.js +15 -0
- package/templates/did-connect-dapp/api/routes/auth/request-digest-signature.js +51 -0
- package/templates/did-connect-dapp/api/routes/auth/request-multiple-claims.js +52 -0
- package/templates/did-connect-dapp/api/routes/auth/request-multiple-steps.js +57 -0
- package/templates/did-connect-dapp/api/routes/auth/request-nft.js +82 -0
- package/templates/did-connect-dapp/api/routes/auth/request-payment.js +72 -0
- package/templates/did-connect-dapp/api/routes/auth/request-profile.js +25 -0
- package/templates/did-connect-dapp/api/routes/auth/request-text-signature.js +44 -0
- package/templates/did-connect-dapp/api/routes/auth/request-transaction-signature.js +62 -0
- package/templates/did-connect-dapp/blocklet.md +5 -0
- package/templates/did-connect-dapp/blocklet.yml +57 -0
- package/templates/did-connect-dapp/index.html +17 -0
- package/templates/did-connect-dapp/package.json +86 -0
- package/templates/did-connect-dapp/src/app.jsx +20 -0
- package/templates/did-connect-dapp/src/assets/get_wallet_en.png +0 -0
- package/templates/did-connect-dapp/src/assets/get_wallet_zh.png +0 -0
- package/templates/did-connect-dapp/src/components/connect-item.jsx +39 -0
- package/templates/did-connect-dapp/src/components/connects/request-digest-signature.jsx +45 -0
- package/templates/did-connect-dapp/src/components/connects/request-multiple-claims.jsx +55 -0
- package/templates/did-connect-dapp/src/components/connects/request-multiple-steps.jsx +54 -0
- package/templates/did-connect-dapp/src/components/connects/request-nft.jsx +75 -0
- package/templates/did-connect-dapp/src/components/connects/request-payment.jsx +82 -0
- package/templates/did-connect-dapp/src/components/connects/request-profile.jsx +72 -0
- package/templates/did-connect-dapp/src/components/connects/request-text-signature.jsx +44 -0
- package/templates/did-connect-dapp/src/components/connects/request-transaction-signature.jsx +44 -0
- package/templates/did-connect-dapp/src/components/info-row.jsx +39 -0
- package/templates/did-connect-dapp/src/components/layout.jsx +26 -0
- package/templates/did-connect-dapp/src/index.jsx +6 -0
- package/templates/did-connect-dapp/src/libs/session.js +11 -0
- package/templates/did-connect-dapp/src/libs/utils.js +4 -0
- package/templates/did-connect-dapp/src/locales/en.js +115 -0
- package/templates/did-connect-dapp/src/locales/index.js +5 -0
- package/templates/did-connect-dapp/src/locales/zh.js +115 -0
- package/templates/did-connect-dapp/src/pages/main.jsx +95 -0
- package/templates/did-connect-dapp/template-info.json +12 -0
- package/templates/did-connect-dapp/vite.config.mjs +11 -0
- package/templates/did-wallet-dapp/blocklet.yml +1 -2
- package/templates/did-wallet-dapp/package.json +18 -18
- package/templates/express-api/blocklet.yml +0 -1
- package/templates/express-api/package.json +9 -8
- package/templates/html-static/blocklet.yml +0 -1
- package/templates/html-static/package.json +4 -3
- package/templates/monorepo/package.json +4 -3
- package/templates/monorepo/scripts/bump-version.mjs +36 -32
- package/templates/nestjs-api/blocklet.yml +0 -1
- package/templates/nestjs-api/package.json +16 -15
- package/templates/nextjs-dapp/blocklet.yml +0 -1
- package/templates/nextjs-dapp/package.json +7 -7
- package/templates/react-dapp/blocklet.yml +0 -1
- package/templates/react-dapp/package.json +16 -15
- package/templates/react-dapp-ts/blocklet.yml +0 -1
- package/templates/react-dapp-ts/package.json +19 -18
- package/templates/react-gun-dapp/blocklet.yml +0 -1
- package/templates/react-gun-dapp/package.json +15 -14
- package/templates/react-static/blocklet.yml +0 -1
- package/templates/react-static/package.json +11 -10
- package/templates/solidjs-dapp/blocklet.yml +0 -1
- package/templates/solidjs-dapp/package.json +14 -13
- package/templates/solidjs-static/blocklet.yml +0 -1
- package/templates/solidjs-static/package.json +9 -8
- package/templates/svelte-dapp/blocklet.yml +0 -1
- package/templates/svelte-dapp/package.json +13 -12
- package/templates/svelte-static/blocklet.yml +0 -1
- package/templates/svelte-static/package.json +9 -8
- package/templates/todo-list-example/blocklet.yml +0 -1
- package/templates/todo-list-example/package.json +13 -12
- package/templates/vue-dapp/blocklet.yml +0 -1
- package/templates/vue-dapp/package.json +16 -15
- package/templates/vue-static/blocklet.yml +0 -1
- package/templates/vue-static/package.json +11 -10
- package/templates/vue-ts-static/blocklet.yml +1 -2
- package/templates/vue-ts-static/package.json +12 -12
- package/templates/vue2-dapp/blocklet.yml +0 -1
- package/templates/vue2-dapp/package.json +13 -12
- package/templates/vue2-static/blocklet.yml +0 -1
- package/templates/vue2-static/package.json +9 -8
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
2
|
+
import iconOpenInNewRounded from '@iconify-icons/material-symbols/open-in-new-rounded';
|
|
3
|
+
import { Icon } from '@iconify/react';
|
|
4
|
+
import { Box, Link, Typography } from '@mui/material';
|
|
5
|
+
|
|
6
|
+
import getWalletEnImg from '../assets/get_wallet_en.png';
|
|
7
|
+
import getWalletZhImg from '../assets/get_wallet_zh.png';
|
|
8
|
+
import RequestDigestSignature from '../components/connects/request-digest-signature';
|
|
9
|
+
import RequestMultipleClaims from '../components/connects/request-multiple-claims';
|
|
10
|
+
import RequestMultipleSteps from '../components/connects/request-multiple-steps';
|
|
11
|
+
import RequestNFT from '../components/connects/request-nft';
|
|
12
|
+
import RequestPayment from '../components/connects/request-payment';
|
|
13
|
+
import RequestProfile from '../components/connects/request-profile';
|
|
14
|
+
import RequestTextSignature from '../components/connects/request-text-signature';
|
|
15
|
+
import RequestTransactionSignature from '../components/connects/request-transaction-signature';
|
|
16
|
+
import Layout from '../components/layout';
|
|
17
|
+
|
|
18
|
+
function Main() {
|
|
19
|
+
const { locale, t } = useLocaleContext();
|
|
20
|
+
const getWalletImgUrl = locale === 'zh' ? getWalletZhImg : getWalletEnImg;
|
|
21
|
+
const getWalletUrl = `https://www.didwallet.io/${locale === 'zh' ? 'zh' : 'en'}`;
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<Layout>
|
|
25
|
+
<Typography component="h3" variant="h4" color="textPrimary" gutterBottom>
|
|
26
|
+
{t('step1.title')}{' '}
|
|
27
|
+
<Typography component="small" color="text.secondary">
|
|
28
|
+
{t('step1.prepareDIDWallet')}
|
|
29
|
+
</Typography>
|
|
30
|
+
</Typography>
|
|
31
|
+
<Typography variant="body1">
|
|
32
|
+
{t('step1.getWalletFromHere')}{' '}
|
|
33
|
+
<Link
|
|
34
|
+
href={getWalletUrl}
|
|
35
|
+
target="_blank"
|
|
36
|
+
underline="hover"
|
|
37
|
+
sx={{
|
|
38
|
+
display: 'inline-flex',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
gap: 0.5,
|
|
41
|
+
}}>
|
|
42
|
+
DID Wallet <Icon icon={iconOpenInNewRounded} />
|
|
43
|
+
</Link>
|
|
44
|
+
</Typography>
|
|
45
|
+
<Box
|
|
46
|
+
component="a"
|
|
47
|
+
href={getWalletUrl}
|
|
48
|
+
target="_blank"
|
|
49
|
+
rel="noreferrer"
|
|
50
|
+
sx={{
|
|
51
|
+
display: 'block',
|
|
52
|
+
px: {
|
|
53
|
+
sm: 0,
|
|
54
|
+
md: 8,
|
|
55
|
+
lg: 16,
|
|
56
|
+
},
|
|
57
|
+
}}>
|
|
58
|
+
<Box
|
|
59
|
+
component="img"
|
|
60
|
+
src={getWalletImgUrl}
|
|
61
|
+
alt="Prepare DID Wallet"
|
|
62
|
+
sx={{
|
|
63
|
+
width: '100%',
|
|
64
|
+
}}
|
|
65
|
+
/>
|
|
66
|
+
</Box>
|
|
67
|
+
|
|
68
|
+
<Typography component="h3" variant="h4" color="text.primary" gutterBottom sx={{ mt: 2 }}>
|
|
69
|
+
{t('step2.title')}{' '}
|
|
70
|
+
<Typography component="small" color="text.secondary">
|
|
71
|
+
{t('step2.enjoyPlayground')}
|
|
72
|
+
</Typography>
|
|
73
|
+
</Typography>
|
|
74
|
+
|
|
75
|
+
<Box
|
|
76
|
+
sx={{
|
|
77
|
+
display: 'flex',
|
|
78
|
+
flexDirection: 'column',
|
|
79
|
+
gap: 5,
|
|
80
|
+
mb: 10,
|
|
81
|
+
}}>
|
|
82
|
+
<RequestProfile />
|
|
83
|
+
<RequestNFT />
|
|
84
|
+
<RequestTextSignature />
|
|
85
|
+
<RequestDigestSignature />
|
|
86
|
+
<RequestTransactionSignature />
|
|
87
|
+
<RequestPayment />
|
|
88
|
+
<RequestMultipleClaims />
|
|
89
|
+
<RequestMultipleSteps />
|
|
90
|
+
</Box>
|
|
91
|
+
</Layout>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export default Main;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "did-connect-dapp",
|
|
3
|
+
"desc": {
|
|
4
|
+
"en": "Showcase various use cases of DID Connect, help you get started with DID Connect quickly",
|
|
5
|
+
"zh": "展示 DID Connect 各种用法, 帮助你快速上手 DID Connect"
|
|
6
|
+
},
|
|
7
|
+
"blockletType": "dapp",
|
|
8
|
+
"composable": true,
|
|
9
|
+
"languages": "JavaScript",
|
|
10
|
+
"useCase": "Starter",
|
|
11
|
+
"author": "Blocklet"
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
|
+
import { createBlockletPlugin } from 'vite-plugin-blocklet';
|
|
4
|
+
import svgr from 'vite-plugin-svgr';
|
|
5
|
+
|
|
6
|
+
// https://vitejs.dev/config/
|
|
7
|
+
export default defineConfig(() => {
|
|
8
|
+
return {
|
|
9
|
+
plugins: [react(), createBlockletPlugin(), svgr()],
|
|
10
|
+
};
|
|
11
|
+
});
|
|
@@ -22,40 +22,40 @@
|
|
|
22
22
|
"@ocap/mcrypto": "^1.18.135",
|
|
23
23
|
"@ocap/util": "^1.18.135",
|
|
24
24
|
"@ocap/wallet": "^1.18.135",
|
|
25
|
-
"body-parser": "^1.20.
|
|
25
|
+
"body-parser": "^1.20.3",
|
|
26
26
|
"cookie-parser": "^1.4.6",
|
|
27
27
|
"cors": "^2.8.5",
|
|
28
|
-
"express": "^4.
|
|
28
|
+
"express": "^4.21.0",
|
|
29
29
|
"express-async-errors": "^3.1.1",
|
|
30
30
|
"morgan": "^1.10.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
+
"@arcblock/did-connect": "^2.10.38",
|
|
33
34
|
"@arcblock/eslint-config": "^0.3.2",
|
|
34
|
-
"@arcblock/
|
|
35
|
-
"@arcblock/ux": "^2.10.32",
|
|
35
|
+
"@arcblock/ux": "^2.10.38",
|
|
36
36
|
"@blocklet/js-sdk": "^1.16.31",
|
|
37
|
-
"@blocklet/ui-react": "^2.10.
|
|
38
|
-
"
|
|
39
|
-
"@emotion/
|
|
40
|
-
"@
|
|
41
|
-
"@mui/
|
|
42
|
-
"@mui/material": "^5.16.0",
|
|
37
|
+
"@blocklet/ui-react": "^2.10.38",
|
|
38
|
+
"@emotion/react": "^11.13.3",
|
|
39
|
+
"@emotion/styled": "^11.13.0",
|
|
40
|
+
"@mui/icons-material": "^5.16.7",
|
|
41
|
+
"@mui/material": "^5.16.7",
|
|
43
42
|
"@vitejs/plugin-react": "^4.3.1",
|
|
44
|
-
"
|
|
43
|
+
"bumpp": "^9.5.2",
|
|
44
|
+
"dayjs": "^1.11.13",
|
|
45
45
|
"dotenv-flow": "^4.1.0",
|
|
46
46
|
"flat": "^6.0.1",
|
|
47
|
-
"nodemon": "^3.1.
|
|
47
|
+
"nodemon": "^3.1.7",
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
|
-
"react-router-dom": "^6.
|
|
51
|
-
"rimraf": "^5.0.
|
|
50
|
+
"react-router-dom": "^6.26.2",
|
|
51
|
+
"rimraf": "^5.0.10",
|
|
52
52
|
"simple-git-hooks": "^2.11.1",
|
|
53
|
-
"vite": "^5.
|
|
54
|
-
"vite-node": "^2.
|
|
55
|
-
"vite-plugin-blocklet": "^0.9.
|
|
53
|
+
"vite": "^5.4.8",
|
|
54
|
+
"vite-node": "^2.1.1",
|
|
55
|
+
"vite-plugin-blocklet": "^0.9.8",
|
|
56
56
|
"vite-plugin-require": "^1.2.14",
|
|
57
57
|
"vite-plugin-svgr": "^4.2.0",
|
|
58
|
-
"zx": "^8.1.
|
|
58
|
+
"zx": "^8.1.8"
|
|
59
59
|
},
|
|
60
60
|
"lint-staged": {
|
|
61
61
|
"*.{mjs,js,jsx,ts,tsx}": [
|
|
@@ -32,21 +32,22 @@
|
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
35
|
-
"@blocklet/sdk": "^1.16.
|
|
35
|
+
"@blocklet/sdk": "^1.16.31",
|
|
36
36
|
"@ocap/client": "^1.18.135",
|
|
37
37
|
"dotenv-flow": "^4.1.0",
|
|
38
|
-
"express": "^4.
|
|
38
|
+
"express": "^4.21.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@arcblock/eslint-config-base": "^0.3.2",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
42
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
43
|
+
"bumpp": "^9.5.2",
|
|
44
|
+
"eslint": "^8.57.1",
|
|
45
|
+
"lint-staged": "^15.2.10",
|
|
46
|
+
"nodemon": "^3.1.7",
|
|
46
47
|
"prettier": "^3.3.3",
|
|
47
|
-
"rimraf": "^5.0.
|
|
48
|
+
"rimraf": "^5.0.10",
|
|
48
49
|
"simple-git-hooks": "^2.11.1",
|
|
49
|
-
"zx": "^8.1.
|
|
50
|
+
"zx": "^8.1.8"
|
|
50
51
|
},
|
|
51
52
|
"simple-git-hooks": {
|
|
52
53
|
"pre-commit": "npx lint-staged"
|
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
"author": "",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"
|
|
19
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
20
|
+
"bumpp": "^9.5.2",
|
|
20
21
|
"prettier": "^3.3.3",
|
|
21
|
-
"rimraf": "^5.0.
|
|
22
|
-
"zx": "^8.1.
|
|
22
|
+
"rimraf": "^5.0.10",
|
|
23
|
+
"zx": "^8.1.8"
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@arcblock/eslint-config": "^0.3.2",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
24
|
+
"bumpp": "^9.5.2",
|
|
25
|
+
"eslint": "^8.57.1",
|
|
25
26
|
"prettier": "^3.3.3",
|
|
26
27
|
"simple-git-hooks": "^2.11.1",
|
|
27
|
-
"zx": "^8.1.
|
|
28
|
+
"zx": "^8.1.8"
|
|
28
29
|
},
|
|
29
30
|
"simple-git-hooks": {
|
|
30
31
|
"pre-commit": "npx lint-staged"
|
|
@@ -2,46 +2,50 @@
|
|
|
2
2
|
import { execSync } from 'child_process';
|
|
3
3
|
import { $, chalk, fs, path } from 'zx';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
async function main() {
|
|
6
|
+
const cwd = process.cwd(); // 获取脚本执行目录
|
|
6
7
|
|
|
7
|
-
// or use pnpm to bump version: `pnpm -r --filter {packages/*, themes/*} -- pnpm version`
|
|
8
|
-
execSync('bumpp --no-tag --no-commit --no-push package.json blocklets/*/package.json', { stdio: 'inherit' });
|
|
8
|
+
// or use pnpm to bump version: `pnpm -r --filter {packages/*, themes/*} -- pnpm version`
|
|
9
|
+
execSync('bumpp --no-tag --no-commit --no-push package.json blocklets/*/package.json', { stdio: 'inherit' });
|
|
9
10
|
|
|
10
|
-
const { version } = await fs.readJSON('package.json');
|
|
11
|
-
await fs.writeFileSync('version', version);
|
|
11
|
+
const { version } = await fs.readJSON('package.json');
|
|
12
|
+
await fs.writeFileSync('version', version);
|
|
12
13
|
|
|
13
|
-
console.log(chalk.greenBright(`[info]: start to modify blocklets version to ${version}`));
|
|
14
|
-
const dirPath = path.join(__dirname, '../blocklets');
|
|
15
|
-
let pathList = await fs.readdirSync(dirPath);
|
|
16
|
-
pathList = pathList.map((item) => `${dirPath}/${item}`);
|
|
17
|
-
for (const ymlDir of pathList) {
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
console.log(chalk.greenBright('[info]: all blocklets version modified.'));
|
|
14
|
+
console.log(chalk.greenBright(`[info]: start to modify blocklets version to ${version}`));
|
|
15
|
+
const dirPath = path.join(__dirname, '../blocklets');
|
|
16
|
+
let pathList = await fs.readdirSync(dirPath);
|
|
17
|
+
pathList = pathList.map((item) => `${dirPath}/${item}`);
|
|
18
|
+
for (const ymlDir of pathList) {
|
|
19
|
+
await $`cd ${ymlDir} && blocklet version ${version}`;
|
|
20
|
+
}
|
|
21
|
+
console.log(chalk.greenBright('[info]: all blocklets version modified.'));
|
|
21
22
|
|
|
22
|
-
await $`cd ${cwd}`;
|
|
23
|
+
await $`cd ${cwd}`;
|
|
23
24
|
|
|
24
|
-
let newChangelog = '';
|
|
25
|
+
let newChangelog = '';
|
|
25
26
|
|
|
26
|
-
try {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} catch {
|
|
30
|
-
|
|
31
|
-
}
|
|
27
|
+
try {
|
|
28
|
+
const gitRes = await $`git log --pretty=format:"- %s" "main"...HEAD`;
|
|
29
|
+
newChangelog = gitRes.stdout.trim();
|
|
30
|
+
} catch {
|
|
31
|
+
console.error(chalk.redBright('Could not get git log, please write changelog manually.'));
|
|
32
|
+
}
|
|
32
33
|
|
|
33
|
-
const now = new Date();
|
|
34
|
-
const currentDate = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`;
|
|
35
|
-
const title = `## ${version} (${currentDate})`;
|
|
34
|
+
const now = new Date();
|
|
35
|
+
const currentDate = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`;
|
|
36
|
+
const title = `## ${version} (${currentDate})`;
|
|
36
37
|
|
|
37
|
-
await fs.ensureFile('CHANGELOG.md');
|
|
38
|
-
const oldChangelog = await fs.readFile('CHANGELOG.md', 'utf8');
|
|
39
|
-
const changelog = [title, newChangelog, oldChangelog].filter((item) => !!item).join('\n\n');
|
|
38
|
+
await fs.ensureFile('CHANGELOG.md');
|
|
39
|
+
const oldChangelog = await fs.readFile('CHANGELOG.md', 'utf8');
|
|
40
|
+
const changelog = [title, newChangelog, oldChangelog].filter((item) => !!item).join('\n\n');
|
|
40
41
|
|
|
41
|
-
await fs.writeFile('CHANGELOG.md', changelog);
|
|
42
|
+
await fs.writeFile('CHANGELOG.md', changelog);
|
|
42
43
|
|
|
43
|
-
console.log(`\nNow you can make adjustments to ${chalk.cyan('CHANGELOG.md')}. Then press enter to continue.`);
|
|
44
|
+
console.log(`\nNow you can make adjustments to ${chalk.cyan('CHANGELOG.md')}. Then press enter to continue.`);
|
|
45
|
+
|
|
46
|
+
process.stdin.setRawMode(true);
|
|
47
|
+
process.stdin.resume();
|
|
48
|
+
process.stdin.on('data', process.exit.bind(process, 0));
|
|
49
|
+
}
|
|
44
50
|
|
|
45
|
-
|
|
46
|
-
process.stdin.resume();
|
|
47
|
-
process.stdin.on('data', process.exit.bind(process, 0));
|
|
51
|
+
main();
|
|
@@ -36,36 +36,37 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
39
|
-
"@blocklet/sdk": "^1.16.
|
|
40
|
-
"@nestjs/common": "^10.
|
|
41
|
-
"@nestjs/core": "^10.
|
|
42
|
-
"@nestjs/platform-express": "^10.
|
|
39
|
+
"@blocklet/sdk": "^1.16.31",
|
|
40
|
+
"@nestjs/common": "^10.4.4",
|
|
41
|
+
"@nestjs/core": "^10.4.4",
|
|
42
|
+
"@nestjs/platform-express": "^10.4.4",
|
|
43
43
|
"@ocap/client": "^1.18.135",
|
|
44
44
|
"dotenv-flow": "^4.1.0",
|
|
45
|
-
"express": "^4.
|
|
45
|
+
"express": "^4.21.0",
|
|
46
46
|
"reflect-metadata": "^0.2.2",
|
|
47
47
|
"rxjs": "^7.8.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@arcblock/eslint-config-base": "^0.3.2",
|
|
51
|
-
"@nestjs/cli": "^10.
|
|
52
|
-
"@nestjs/schematics": "^10.1.
|
|
51
|
+
"@nestjs/cli": "^10.4.5",
|
|
52
|
+
"@nestjs/schematics": "^10.1.4",
|
|
53
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
53
54
|
"@types/express": "^4.17.21",
|
|
54
|
-
"@types/node": "^20.
|
|
55
|
+
"@types/node": "^20.16.9",
|
|
55
56
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
56
57
|
"@typescript-eslint/parser": "^7.18.0",
|
|
57
|
-
"bumpp": "^9.
|
|
58
|
-
"eslint": "^8.57.
|
|
59
|
-
"lint-staged": "^15.2.
|
|
60
|
-
"nodemon": "^3.1.
|
|
58
|
+
"bumpp": "^9.5.2",
|
|
59
|
+
"eslint": "^8.57.1",
|
|
60
|
+
"lint-staged": "^15.2.10",
|
|
61
|
+
"nodemon": "^3.1.7",
|
|
61
62
|
"prettier": "^3.3.3",
|
|
62
|
-
"rimraf": "^5.0.
|
|
63
|
+
"rimraf": "^5.0.10",
|
|
63
64
|
"simple-git-hooks": "^2.11.1",
|
|
64
65
|
"source-map-support": "^0.5.21",
|
|
65
66
|
"ts-node": "^10.9.2",
|
|
66
67
|
"tsconfig-paths": "^4.2.0",
|
|
67
|
-
"typescript": "^5.
|
|
68
|
-
"zx": "^8.1.
|
|
68
|
+
"typescript": "^5.6.2",
|
|
69
|
+
"zx": "^8.1.8"
|
|
69
70
|
},
|
|
70
71
|
"simple-git-hooks": {
|
|
71
72
|
"pre-commit": "npx lint-staged"
|
|
@@ -30,26 +30,26 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@arcblock/did-auth": "^1.18.135",
|
|
32
32
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
33
|
-
"@blocklet/sdk": "^1.16.
|
|
33
|
+
"@blocklet/sdk": "^1.16.31",
|
|
34
34
|
"@ocap/client": "^1.18.135",
|
|
35
35
|
"@ocap/mcrypto": "^1.18.135",
|
|
36
36
|
"@ocap/wallet": "^1.18.135",
|
|
37
37
|
"dotenv-flow": "^4.1.0",
|
|
38
|
-
"express": "^4.
|
|
38
|
+
"express": "^4.21.0",
|
|
39
39
|
"next": "14.2.4",
|
|
40
40
|
"react": "18.2.0",
|
|
41
41
|
"react-dom": "18.2.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"bumpp": "^9.
|
|
44
|
+
"bumpp": "^9.5.2",
|
|
45
45
|
"eslint": "8.57.0",
|
|
46
46
|
"eslint-config-next": "14.2.4",
|
|
47
|
-
"lint-staged": "^15.2.
|
|
48
|
-
"nodemon": "^3.1.
|
|
47
|
+
"lint-staged": "^15.2.10",
|
|
48
|
+
"nodemon": "^3.1.7",
|
|
49
49
|
"npm-run-all": "^4.1.5",
|
|
50
|
-
"rimraf": "^5.0.
|
|
50
|
+
"rimraf": "^5.0.10",
|
|
51
51
|
"simple-git-hooks": "^2.11.1",
|
|
52
|
-
"zx": "^8.1.
|
|
52
|
+
"zx": "^8.1.8"
|
|
53
53
|
},
|
|
54
54
|
"simple-git-hooks": {
|
|
55
55
|
"pre-commit": "npx lint-staged"
|
|
@@ -42,37 +42,38 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@arcblock/did-auth": "^1.18.135",
|
|
44
44
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
45
|
-
"@blocklet/sdk": "^1.16.
|
|
45
|
+
"@blocklet/sdk": "^1.16.31",
|
|
46
46
|
"@ocap/client": "^1.18.135",
|
|
47
47
|
"@ocap/mcrypto": "^1.18.135",
|
|
48
48
|
"@ocap/wallet": "^1.18.135",
|
|
49
|
-
"axios": "^1.7.
|
|
49
|
+
"axios": "^1.7.7",
|
|
50
50
|
"cookie-parser": "^1.4.6",
|
|
51
51
|
"cors": "^2.8.5",
|
|
52
52
|
"dotenv-flow": "^4.1.0",
|
|
53
|
-
"express": "^4.
|
|
53
|
+
"express": "^4.21.0",
|
|
54
54
|
"express-async-errors": "^3.1.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@arcblock/eslint-config": "^0.3.2",
|
|
58
|
-
"@blocklet/js-sdk": "^1.16.
|
|
58
|
+
"@blocklet/js-sdk": "^1.16.31",
|
|
59
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
59
60
|
"@vitejs/plugin-react": "^4.3.1",
|
|
60
|
-
"bumpp": "^9.
|
|
61
|
+
"bumpp": "^9.5.2",
|
|
61
62
|
"cross-env": "^7.0.3",
|
|
62
|
-
"eslint": "^8.57.
|
|
63
|
-
"lint-staged": "^15.2.
|
|
64
|
-
"nodemon": "^3.1.
|
|
63
|
+
"eslint": "^8.57.1",
|
|
64
|
+
"lint-staged": "^15.2.10",
|
|
65
|
+
"nodemon": "^3.1.7",
|
|
65
66
|
"npm-run-all": "^4.1.5",
|
|
66
67
|
"prettier": "^3.3.3",
|
|
67
|
-
"react": "
|
|
68
|
-
"react-dom": "
|
|
69
|
-
"react-router-dom": "^6.
|
|
70
|
-
"rimraf": "^5.0.
|
|
68
|
+
"react": "~18.2.0",
|
|
69
|
+
"react-dom": "~18.2.0",
|
|
70
|
+
"react-router-dom": "^6.26.2",
|
|
71
|
+
"rimraf": "^5.0.10",
|
|
71
72
|
"simple-git-hooks": "^2.11.1",
|
|
72
|
-
"vite": "^5.
|
|
73
|
-
"vite-plugin-blocklet": "^0.9.
|
|
73
|
+
"vite": "^5.4.8",
|
|
74
|
+
"vite-plugin-blocklet": "^0.9.8",
|
|
74
75
|
"vite-plugin-svgr": "^4.2.0",
|
|
75
|
-
"zx": "^8.1.
|
|
76
|
+
"zx": "^8.1.8"
|
|
76
77
|
},
|
|
77
78
|
"simple-git-hooks": {
|
|
78
79
|
"pre-commit": "npx lint-staged"
|
|
@@ -40,49 +40,50 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@arcblock/did-auth": "^1.18.135",
|
|
42
42
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
43
|
-
"@blocklet/sdk": "^1.16.
|
|
43
|
+
"@blocklet/sdk": "^1.16.31",
|
|
44
44
|
"@ocap/client": "^1.18.135",
|
|
45
45
|
"@ocap/mcrypto": "^1.18.135",
|
|
46
46
|
"@ocap/wallet": "^1.18.135",
|
|
47
|
-
"axios": "^1.7.
|
|
47
|
+
"axios": "^1.7.7",
|
|
48
48
|
"cookie-parser": "^1.4.6",
|
|
49
49
|
"cors": "^2.8.5",
|
|
50
50
|
"dotenv-flow": "^4.1.0",
|
|
51
|
-
"express": "^4.
|
|
51
|
+
"express": "^4.21.0",
|
|
52
52
|
"express-async-errors": "^3.1.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@arcblock/eslint-config": "^0.3.2",
|
|
56
56
|
"@arcblock/eslint-config-ts": "^0.3.2",
|
|
57
|
-
"@blocklet/js-sdk": "^1.16.
|
|
57
|
+
"@blocklet/js-sdk": "^1.16.31",
|
|
58
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
58
59
|
"@types/cookie-parser": "^1.4.7",
|
|
59
60
|
"@types/cors": "^2.8.17",
|
|
60
61
|
"@types/dotenv-flow": "^3.3.3",
|
|
61
62
|
"@types/express": "^4.17.21",
|
|
62
|
-
"@types/node": "^20.
|
|
63
|
-
"@types/react": "^18.3.
|
|
63
|
+
"@types/node": "^20.16.9",
|
|
64
|
+
"@types/react": "^18.3.9",
|
|
64
65
|
"@types/react-dom": "^18.3.0",
|
|
65
66
|
"@vitejs/plugin-react": "^4.3.1",
|
|
66
|
-
"bumpp": "^9.
|
|
67
|
+
"bumpp": "^9.5.2",
|
|
67
68
|
"cross-env": "^7.0.3",
|
|
68
|
-
"eslint": "^8.57.
|
|
69
|
+
"eslint": "^8.57.1",
|
|
69
70
|
"import-sort-style-module": "^6.0.0",
|
|
70
|
-
"lint-staged": "^15.2.
|
|
71
|
-
"nodemon": "^3.1.
|
|
71
|
+
"lint-staged": "^15.2.10",
|
|
72
|
+
"nodemon": "^3.1.7",
|
|
72
73
|
"npm-run-all": "^4.1.5",
|
|
73
74
|
"prettier": "^3.3.3",
|
|
74
75
|
"prettier-plugin-import-sort": "^0.0.7",
|
|
75
|
-
"react": "
|
|
76
|
-
"react-dom": "
|
|
77
|
-
"react-router-dom": "^6.
|
|
78
|
-
"rimraf": "^5.0.
|
|
76
|
+
"react": "~18.2.0",
|
|
77
|
+
"react-dom": "~18.2.0",
|
|
78
|
+
"react-router-dom": "^6.26.2",
|
|
79
|
+
"rimraf": "^5.0.10",
|
|
79
80
|
"simple-git-hooks": "^2.11.1",
|
|
80
81
|
"ts-node": "^10.9.2",
|
|
81
|
-
"typescript": "^5.
|
|
82
|
-
"vite": "^5.
|
|
83
|
-
"vite-plugin-blocklet": "^0.9.
|
|
82
|
+
"typescript": "^5.6.2",
|
|
83
|
+
"vite": "^5.4.8",
|
|
84
|
+
"vite-plugin-blocklet": "^0.9.8",
|
|
84
85
|
"vite-plugin-svgr": "^4.2.0",
|
|
85
|
-
"zx": "^8.1.
|
|
86
|
+
"zx": "^8.1.8"
|
|
86
87
|
},
|
|
87
88
|
"importSort": {
|
|
88
89
|
".js, .jsx, .mjs": {
|