@abtnode/webapp 1.16.8-next-3bd50116 → 1.16.8-next-5e42c978

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/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  ### Start Blocklet Server Develop Environment
8
8
 
9
- 1. create `.env.development` file, in the current(core/webapp) directory
10
- 2. copy follow texts to `.env.development`, change `ABT_NODE_BASE_URL` to your local lan ip
9
+ 1. create `.env.development` file, in the current(core/webapp) directory
10
+ 2. copy follow texts to `.env.development`, change `ABT_NODE_BASE_URL` to your local lan ip
11
11
 
12
12
  ```ini
13
13
  # CAUTION: this is required to eliminate create-react-scripts complainings
@@ -31,7 +31,7 @@ ABT_NODE_SERVICE_FE_PORT=""
31
31
 
32
32
  ```
33
33
 
34
- 3. Start the client and server
34
+ 3. Start the client and server
35
35
 
36
36
  ```shell
37
37
 
@@ -61,9 +61,9 @@ Now, you are ready to hacking the Blocklet Server.
61
61
 
62
62
  If you want to develop blocklet service client, additional action you need to do
63
63
 
64
- 1. Set `ABT_NODE_SERVICE_FE_PORT="3040"` in `.env.development`
65
- 2. Start the client and server as same as above
66
- 3. Start Blocklet Service Client
64
+ 1. Set `ABT_NODE_SERVICE_FE_PORT="3040"` in `.env.development`
65
+ 2. Start the client and server as same as above
66
+ 3. Start Blocklet Service Client
67
67
 
68
68
  ```shell
69
69
  cd core/blocklet-services
@@ -123,28 +123,29 @@ yarn test:e2e
123
123
 
124
124
  Coverage for this package contains 3 parts:
125
125
 
126
- - api: collected using jest, configured in `jest.config.js`, result in `coverage-api`
127
- - src: collected using react-script, configured in `jest` in `package.json`, result in `coverage`
128
- - e2e: collected using cypress, configured in `nyc` in `package.json`, result in `coverage-e2e`
126
+ * api: collected using jest, configured in `jest.config.js`, result in `coverage-api`
127
+ * src: collected using react-script, configured in `jest` in `package.json`, result in `coverage`
128
+ * e2e: collected using cypress, configured in `nyc` in `package.json`, result in `coverage-e2e`
129
129
 
130
130
  ### Develop blocklet in dev server
131
131
 
132
- 0. Make sure your dev server is running
132
+ 0. Make sure your dev server is running
133
133
 
134
- 1. Goto blocklet root dir
135
- 2. Run command `<blocklet-server-source-dir>/core/cli/tools/dev.js` (Replace `<blocklet-server-source-dir>` to your custom folder)
134
+ 1. Goto blocklet root dir
135
+
136
+ 2. Run command `<blocklet-server-source-dir>/core/cli/tools/dev.js` (Replace `<blocklet-server-source-dir>` to your custom folder)
136
137
 
137
138
  Create a link for dev.js
138
139
 
139
- 1. Run command `ln -s <blocklet-server-source-dir>/core/cli/tools/dev.js /usr/local/bin/bn-dev`
140
- 2. Then you can use `bn-dev` to develop blocklet in dev server
140
+ 1. Run command `ln -s <blocklet-server-source-dir>/core/cli/tools/dev.js /usr/local/bin/bn-dev`
141
+ 2. Then you can use `bn-dev` to develop blocklet in dev server
141
142
 
142
143
  ### Deploy blocklet to dev server
143
144
 
144
- 1. Create an access key pair in Server Dashboard
145
- 2. Goto blocklet root dir
146
- 3. Bundle your blocklet
147
- 4. Deploy to dev server: `bn deploy .blocklet/bundle --endpoint http://127.0.0.1:3030 --access-key <your-access-key> --access-secret <your-access-secret>`
145
+ 1. Create an access key pair in Server Dashboard
146
+ 2. Goto blocklet root dir
147
+ 3. Bundle your blocklet
148
+ 4. Deploy to dev server: `bn deploy .blocklet/bundle --endpoint http://127.0.0.1:3030 --access-key <your-access-key> --access-secret <your-access-secret>`
148
149
 
149
150
  ### Run migration for dev server
150
151
 
package/blocklet.yml ADDED
@@ -0,0 +1,36 @@
1
+ name: '@abtnode/webapp'
2
+ description: Server Dashboard
3
+ group: dapp
4
+ version: 1.0.31
5
+ homepage: https://www.blocklet.io
6
+ main: blocklet.js
7
+ author:
8
+ name: wangshijun
9
+ email: shijun@arcblock.io
10
+ did: z8ia4j7CLkF3VwpQE7Ee677eostWTu2FTxsip
11
+ specVersion: 1.0.0
12
+ logo: public/images/blocklet.png
13
+ files:
14
+ - build
15
+ - '!api/**'
16
+ community: ''
17
+ documentation: ''
18
+ license: ''
19
+ payment:
20
+ price: []
21
+ share: []
22
+ timeout:
23
+ start: 60
24
+ requirements:
25
+ server: '>=1.7.0'
26
+ os: '*'
27
+ cpu: '*'
28
+ nodejs: '*'
29
+ interfaces: []
30
+ environments: []
31
+ capabilities:
32
+ clusterMode: false
33
+ component: true
34
+ screenshots: []
35
+ components: []
36
+ gitHash: a91d68c44b71f34d410ebf607f74ff08e749efb5
package/package.json CHANGED
@@ -1,16 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/webapp",
3
- "version": "1.16.8-next-3bd50116",
4
- "homepage": ".",
5
- "publishConfig": {
6
- "access": "public",
7
- "directory": ".blocklet/bundle/"
8
- },
9
- "files": [
10
- "build",
11
- "blocklet.js",
12
- "README.md"
13
- ],
3
+ "version": "1.16.8-next-5e42c978",
14
4
  "keywords": [
15
5
  "arcblock",
16
6
  "react"
@@ -24,204 +14,8 @@
24
14
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
25
15
  "email": "shijun@arcblock.io"
26
16
  },
27
- "dependencies": {
28
- "@abtnode/auth": "1.16.8-next-3bd50116",
29
- "@abtnode/certificate-manager": "1.16.8-next-3bd50116",
30
- "@abtnode/client": "1.16.8-next-3bd50116",
31
- "@abtnode/connect-storage": "1.16.8-next-3bd50116",
32
- "@abtnode/constant": "1.16.8-next-3bd50116",
33
- "@abtnode/logger": "1.16.8-next-3bd50116",
34
- "@abtnode/mocks": "1.16.8-next-3bd50116",
35
- "@abtnode/router-adapter": "1.16.8-next-3bd50116",
36
- "@abtnode/router-templates": "1.16.8-next-3bd50116",
37
- "@abtnode/schema": "1.16.8-next-3bd50116",
38
- "@abtnode/util": "1.16.8-next-3bd50116",
39
- "@arcblock/did": "1.18.80",
40
- "@arcblock/did-auth": "1.18.80",
41
- "@arcblock/did-auth-storage-nedb": "^1.7.1",
42
- "@arcblock/did-connect": "^2.5.40",
43
- "@arcblock/did-util": "1.18.80",
44
- "@arcblock/jwt": "1.18.80",
45
- "@arcblock/vc": "1.18.80",
46
- "@arcblock/ws": "1.18.80",
47
- "@blocklet/constant": "1.16.8-next-3bd50116",
48
- "@blocklet/list": "^0.11.26",
49
- "@blocklet/meta": "1.16.8-next-3bd50116",
50
- "@blocklet/sdk": "1.16.8-next-3bd50116",
51
- "@graphql-tools/schema": "^8.5.1",
52
- "@iconify/iconify": "^3.0.0",
53
- "@material-table/core": "^0.2.48",
54
- "@ocap/mcrypto": "1.18.80",
55
- "@ocap/util": "1.18.80",
56
- "@ocap/wallet": "1.18.80",
57
- "axios": "^0.27.2",
58
- "body-parser": "^1.20.1",
59
- "compression": "^1.7.4",
60
- "cookie-parser": "^1.4.6",
61
- "cors": "^2.8.5",
62
- "dayjs": "^1.11.7",
63
- "debug": "^4.3.4",
64
- "express": "^4.18.2",
65
- "express-async-errors": "^3.1.1",
66
- "express-bearer-token": "^2.4.0",
67
- "express-graphql": "0.12.0",
68
- "express-history-api-fallback": "^2.2.1",
69
- "fs-extra": "^10.1.0",
70
- "graphql": "16.5.0",
71
- "graphql-upload": "15.0.2",
72
- "graphql-ws": "^5.11.2",
73
- "http-proxy": "^1.18.1",
74
- "is-url": "^1.2.4",
75
- "jsonwebtoken": "^9.0.0",
76
- "lodash": "^4.17.21",
77
- "lru-cache": "^6.0.0",
78
- "md5": "^2.3.0",
79
- "minimatch": "^3.0.8",
80
- "morgan": "^1.10.0",
81
- "multer": "^1.4.5-lts.1",
82
- "serve-static": "^1.15.0",
83
- "tweetnacl": "^1.0.3",
84
- "tweetnacl-sealedbox-js": "^1.2.0",
85
- "url-join": "^4.0.1"
86
- },
87
- "scripts": {
88
- "lint": "eslint src api",
89
- "lint:fix": "eslint src api --fix",
90
- "prepublishOnly": "npm run build && rm -f build/static/**/*.map",
91
- "clean": "rm -rf build blocklet.js",
92
- "deep-clean": "PM2_HOME=~/.arcblock/abtnode-dev pm2 kill && ps aux | grep nginx | grep master | awk '{print $2}' | xargs kill",
93
- "start": "npm-run-all --parallel start:*",
94
- "start:hub": "cross-env NODE_ENV=development node dev/hub.js",
95
- "start:updater": "cross-env NODE_ENV=development node dev/updater.js",
96
- "start:daemon": "cross-env NODE_ENV=development DEBUG=@arcblock/* node dev/watcher/daemon.js",
97
- "start:service": "cross-env NODE_ENV=development node dev/watcher/service.js",
98
- "start:client": "cross-env DISABLE_ESLINT_PLUGIN=true NODE_ENV=development react-app-rewired start",
99
- "start-e2e": "npm-run-all --parallel start-e2e:*",
100
- "start-e2e:hub": "cross-env NODE_ENV=e2e node dev/hub.js",
101
- "start-e2e:daemon": "cross-env NODE_ENV=e2e nyc --silent node dev/daemon.js",
102
- "start-e2e:service": "cross-env NODE_ENV=e2e nyc --silent node dev/service.js",
103
- "start-e2e:static": "node tools/test-blocklets-server.js",
104
- "start-e2e:client": "cross-env DISABLE_ESLINT_PLUGIN=true BROWSER=none REACT_APP_ENV=e2e NODE_ENV=development react-app-rewired start",
105
- "reset:blocklets": "cross-env NODE_ENV=development node tools/remove-blocklets.js",
106
- "build": "npm run clean && npm run build:client && npm run build:daemon",
107
- "build:client": "cross-env NODE_ENV=production CI=1 react-app-rewired build",
108
- "build:daemon": "cross-env NODE_ENV=production ABT_NODE_UPDATER_PORT=40405 ABT_NODE_SERVICE_PORT=40406 node ../../blocklet/cli/bin/blocklet.js bundle -w api/webpack.blocklet.js",
109
- "build-daemon-debug": "cross-env NODE_ENV=development ABT_NODE_UPDATER_PORT=40405 ABT_NODE_SERVICE_PORT=40406 TEST_BUILD=1 node ../cli/bin/blocklet.js bundle -w api/webpack.blocklet.js",
110
- "prepare:e2e": "rm -rf /tmp/abtnode/e2e .nyc_output .cypress && node tools/prepare-e2e.js && NODE_ENV=e2e node tools/prepare-db.js && cd ../ux && npm run build && cd ../blocklet-services && npm run build && cd ../../core/webapp",
111
- "test:api": "jest",
112
- "test:src": "react-app-rewired test",
113
- "test:e2e": "npm run prepare:e2e && start-server-and-test start-e2e 3000 cypress-e2e",
114
- "coverage": "rm -rf coverage* && npm-run-all coverage:*",
115
- "coverage:api": "cross-env API=1 jest --coverage",
116
- "coverage:src": "cross-env CI=1 react-app-rewired test --coverage",
117
- "coverage:e2e": "npm run prepare:e2e && start-server-and-test start-e2e 3000 cypress-ci",
118
- "cypress-e2e": "cypress open",
119
- "cypress-install": "cypress install",
120
- "cypress-ci": "cypress run --headed --browser chrome --record false && nyc report --reporter=text",
121
- "merge:coverage": "./tools/merge-coverage.sh",
122
- "analyze:daemon": "cross-env NODE_ENV=production ANALYZE_BUNDLE=1 node ../cli/bin/blocklet.js bundle -w api/webpack.blocklet.js",
123
- "analyze:client": "npm run build:client && source-map-explorer 'build/static/js/*.js'",
124
- "dev:migration": "node tools/dev-migration",
125
- "open:gql": "node tools/start-upgrade-server.js"
126
- },
127
- "resolutions": {
128
- "graphql": "16.5.0"
129
- },
130
- "browserslist": {
131
- "production": [
132
- ">0.2%",
133
- "not dead",
134
- "not op_mini all"
135
- ],
136
- "development": [
137
- "last 1 chrome version",
138
- "last 1 firefox version",
139
- "last 1 safari version"
140
- ]
141
- },
142
- "devDependencies": {
143
- "@abtnode/router-provider": "1.16.8-next-3bd50116",
144
- "@abtnode/ux": "1.16.8-next-3bd50116",
145
- "@arcblock/did-connect": "^2.5.39",
146
- "@arcblock/did-motif": "^1.1.10",
147
- "@arcblock/event-hub": "1.18.80",
148
- "@arcblock/graphql-playground": "^2.5.40",
149
- "@arcblock/icons": "^2.5.40",
150
- "@arcblock/jwt": "1.18.80",
151
- "@arcblock/license": "^2.5.40",
152
- "@arcblock/ux": "^2.5.40",
153
- "@blocklet/launcher-layout": "2.0.39",
154
- "@blocklet/launcher-ux": "2.0.39",
155
- "@blocklet/list": "^0.11.24",
156
- "@cypress/code-coverage": "^3.10.0",
157
- "@emotion/react": "^11.10.4",
158
- "@emotion/styled": "^11.10.4",
159
- "@iconify/iconify": "^3.0.0",
160
- "@material-table/core": "^0.2.48",
161
- "@mui/icons-material": "^5.10.6",
162
- "@mui/lab": "^5.0.0-alpha.102",
163
- "@mui/material": "^5.10.8",
164
- "@mui/styles": "^5.10.8",
165
- "@types/url-join": "^4.0.1",
166
- "async-exit-hook": "^2.0.1",
167
- "babel-plugin-istanbul": "^6.1.1",
168
- "buffer": "^6.0.3",
169
- "chalk": "^2.4.2",
170
- "classnames": "^2.3.2",
171
- "core-js": "2.5.7",
172
- "cross-env": "^7.0.3",
173
- "cypress": "^9.7.0",
174
- "cypress-fail-fast": "^3.4.1",
175
- "cypress-file-upload": "^5.0.8",
176
- "cypress-localstorage-commands": "^1.7.0",
177
- "cypress-react-selector": "^2.3.20",
178
- "cypress-wait-until": "^1.7.2",
179
- "dotenv-flow": "^3.2.0",
180
- "filesize": "^6.4.0",
181
- "flat": "^5.0.2",
182
- "get-port": "^5.1.1",
183
- "history": "^5.3.0",
184
- "http-proxy-middleware": "^0.19.2",
185
- "jest": "^27.5.1",
186
- "json-stable-stringify": "^1.0.1",
187
- "moment": "^2.29.4",
188
- "mutationobserver-shim": "^0.3.7",
189
- "node-cleanup": "^2.1.2",
190
- "node-polyfill-webpack-plugin": "^2.0.1",
191
- "nodemon": "^2.0.20",
192
- "notistack": "2.0.5",
193
- "npm-run-all": "^4.1.5",
194
- "nyc": "^15.1.0",
195
- "pretty-ms-i18n": "^1.0.3",
196
- "prop-types": "^15.8.1",
197
- "react": "^18.2.0",
198
- "react-app-rewired": "^2.2.1",
199
- "react-dom": "^18.2.0",
200
- "react-dropzone": "^11.7.1",
201
- "react-error-boundary": "^3.1.4",
202
- "react-hook-form": "^6.15.8",
203
- "react-router-dom": "^6.4.2",
204
- "react-scripts": "^5.0.1",
205
- "react-use": "^17.4.0",
206
- "source-map-explorer": "^2.5.3",
207
- "start-server-and-test": "^1.14.0",
208
- "supertest": "^6.3.0",
209
- "timeago.js": "^4.0.2",
210
- "webpack-bundle-analyzer": "^4.6.1"
211
- },
212
- "nyc": {
213
- "all": false,
214
- "report-dir": "coverage-e2e",
215
- "include": [
216
- "src/**/*.js",
217
- "api/**/*.js"
218
- ],
219
- "exclude": [
220
- "**/*.spec.js",
221
- "**/*.test.js",
222
- "api/webpack.blocklet.js"
223
- ]
224
- },
225
- "license": "Apache-2.0",
226
- "gitHead": "351433697904d26d045658a2f2a864e3b74c8571"
227
- }
17
+ "publishConfig": {
18
+ "access": "public",
19
+ "directory": ".blocklet/bundle/"
20
+ }
21
+ }
Binary file