@steedos/webapp 2.2.33 → 3.0.0-beta.7

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.
Files changed (75) hide show
  1. package/LICENSE.txt +661 -0
  2. package/README.md +15 -17
  3. package/dist/README.md +4 -0
  4. package/dist/assets/icons/License-for-icons.txt +267 -0
  5. package/dist/assets/icons/README-dist.md +18 -0
  6. package/dist/assets/icons/action-sprite/svg/symbols.svg +1 -0
  7. package/dist/assets/icons/custom-sprite/svg/symbols.svg +1 -0
  8. package/dist/assets/icons/doctype-sprite/svg/symbols.svg +1 -0
  9. package/dist/assets/icons/standard-sprite/svg/symbols.svg +1 -0
  10. package/dist/assets/icons/utility-sprite/svg/symbols-rtl.svg +1 -0
  11. package/dist/assets/icons/utility-sprite/svg/symbols.svg +1 -0
  12. package/dist/assets/index-D4PMTHQ6.js +60674 -0
  13. package/dist/browsers.html +76 -0
  14. package/dist/css/main.css +15 -0
  15. package/dist/customize.css +104 -0
  16. package/dist/favicon.ico +0 -0
  17. package/dist/fonts/FontAwesome.otf +0 -0
  18. package/dist/fonts/Material-Design-Iconic-Font/Material-Design-Iconic-Font.eot +0 -0
  19. package/dist/fonts/Material-Design-Iconic-Font/Material-Design-Iconic-Font.svg +787 -0
  20. package/dist/fonts/Material-Design-Iconic-Font/Material-Design-Iconic-Font.ttf +0 -0
  21. package/dist/fonts/Material-Design-Iconic-Font/Material-Design-Iconic-Font.woff +0 -0
  22. package/dist/fonts/Material-Design-Iconic-Font/Material-Design-Iconic-Font.woff2 +0 -0
  23. package/dist/fonts/fontawesome-webfont.eot +0 -0
  24. package/dist/fonts/fontawesome-webfont.svg +2671 -0
  25. package/dist/fonts/fontawesome-webfont.ttf +0 -0
  26. package/dist/fonts/fontawesome-webfont.woff +0 -0
  27. package/dist/fonts/fontawesome-webfont.woff2 +0 -0
  28. package/dist/geetest/gt3.js +353 -0
  29. package/dist/images/background.svg +1 -0
  30. package/dist/images/bg.jpg +0 -0
  31. package/dist/images/default-avatar.png +0 -0
  32. package/dist/images/defaultBackground.svg +1 -0
  33. package/dist/images/logo.png +0 -0
  34. package/dist/images/logo_platform.en-us.png +0 -0
  35. package/dist/images/logo_platform.png +0 -0
  36. package/dist/images/logo_platform_white.png +0 -0
  37. package/dist/images/unsupported.png +0 -0
  38. package/dist/index.html +68 -0
  39. package/dist/js/infinitescroll.js +115 -0
  40. package/dist/js/jquery.fitvids.js +89 -0
  41. package/dist/js/nw_core.js +163 -0
  42. package/dist/js/selectize/selectize.bootstrap2.css +494 -0
  43. package/dist/js/selectize/selectize.bootstrap3.css +408 -0
  44. package/dist/js/selectize/selectize.css +324 -0
  45. package/dist/js/selectize/selectize.default.css +394 -0
  46. package/dist/js/selectize/selectize.js +3829 -0
  47. package/dist/js/workflow_client.css +55 -0
  48. package/dist/js/workflow_client.js +174 -0
  49. package/dist/lib/jquery/jquery-1.11.2.min.js +4 -0
  50. package/dist/lib/select2/select2-spinner.gif +0 -0
  51. package/dist/lib/select2/select2.png +0 -0
  52. package/dist/lib/select2/select2x2.png +0 -0
  53. package/dist/lib/swipebox/img/icons.png +0 -0
  54. package/dist/lib/swipebox/img/icons.svg +1 -0
  55. package/dist/lib/swipebox/img/loader.gif +0 -0
  56. package/dist/locales/en/translation.json +3 -0
  57. package/dist/locales/zh-CN/translation.json +3 -0
  58. package/dist/manifest.json +15 -0
  59. package/dist/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css +9 -0
  60. package/dist/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js +1 -0
  61. package/dist/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js +16 -0
  62. package/dist/plugins/toastr/toastr.min.css +1 -0
  63. package/dist/plugins/toastr/toastr.min.js +2 -0
  64. package/dist/sound/notification.mp3 +0 -0
  65. package/dist/steedos-init.js +165 -0
  66. package/dist/ui.icons.json +5064 -0
  67. package/dist/word/demo.doc +0 -0
  68. package/dist/workflow.html +36 -0
  69. package/package.json +32 -49
  70. package/.env +0 -3
  71. package/.eslintignore +0 -1
  72. package/.md +0 -8
  73. package/LICENSE +0 -21
  74. package/tsconfig.json +0 -28
  75. package/tsconfig.lib.json +0 -34
Binary file
@@ -0,0 +1,36 @@
1
+ <html>
2
+ <head>
3
+ <meta charset="utf-8">
4
+ <title>Steedos Workflow</title>
5
+
6
+ <!-- <meta name="apple-itunes-app" content="app-id=686408407" /> -->
7
+
8
+ <!-- <meta http-equiv="Refresh" content="0;url=steedos://" /> -->
9
+
10
+ <script type="text/javascript" src="/lib/jquery/jquery-1.11.2.min.js"></script>
11
+ </head>
12
+ <body>
13
+ <!-- <a href="steedos://?ins_id=MHXDEqofRBhCTPZgj&space_id=519f004e8e296a1c5f00001d" style="font-size:100px;">点击进入APP</a> -->
14
+ <script type="text/javascript">
15
+ $( document ).ready(function() {
16
+ console.log( "ready!" );
17
+ var urlQuery = function(name){
18
+ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
19
+ var r = window.location.search.substr(1).match(reg);
20
+ if (r != null) return unescape(r[2]);
21
+ return null;
22
+ };
23
+ var space_id = urlQuery('space_id');
24
+ var ins_id = urlQuery('ins_id');
25
+ console.log("space_id: " + space_id);
26
+ console.log("ins_id: " + ins_id);
27
+ if (space_id && ins_id) {
28
+ $("head").append('<meta http-equiv="refresh" content="0;url=steedos://?ins_id='+ins_id+'&space_id='+space_id+'">');
29
+ }
30
+ else {
31
+ $("head").append('<meta http-equiv="refresh" content="0;url=steedos://');
32
+ }
33
+ });
34
+ </script>
35
+ <body>
36
+ </html>
package/package.json CHANGED
@@ -1,89 +1,72 @@
1
1
  {
2
2
  "name": "@steedos/webapp",
3
- "version": "2.2.33",
4
- "private": false,
3
+ "version": "3.0.0-beta.7",
4
+ "files": [
5
+ "dist"
6
+ ],
5
7
  "license": "MIT",
6
- "main": "lib/exports.js",
7
8
  "scripts": {
8
- "start": "cross-env SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=/ react-scripts start",
9
- "build-disabled": "yarn build:react && yarn build-lib && yarn build-copy-to-public",
10
- "build:react": "cross-env GENERATE_SOURCEMAP=false NODE_ENV=production SKIP_PREFLIGHT_CHECK=true PUBLIC_URL=../../ react-scripts build && yarn build-after",
11
- "build-after": "mkdirp build/accounts && mkdirp build/accounts/a && mv build/index.html build/accounts/a/",
12
- "copy-to-public": "rm -rf build/assets && mkdirp public/accounts && mv build ./public/accounts/a",
13
- "build-lib": "rm -rf lib && tsc --build tsconfig.lib.json",
14
- "test": "SKIP_PREFLIGHT_CHECK=true react-scripts test",
15
- "build-copy-to-public": "rm -rf ../../../steedos-platform/steedos-packages/webapp-accounts/public && mv build ../../../steedos-platform/steedos-packages/webapp-accounts/public"
16
- },
17
- "eslintConfig": {
18
- "extends": "react-app"
19
- },
20
- "browserslist": {
21
- "production": [
22
- ">0.2%",
23
- "not dead",
24
- "not op_mini all"
25
- ],
26
- "development": [
27
- "ie 9",
28
- "last 1 edge version",
29
- "last 1 chrome version",
30
- "last 1 firefox version",
31
- "last 1 safari version"
32
- ]
9
+ "dev": "vite",
10
+ "build": "tsc -b && vite build",
11
+ "lint": "eslint .",
12
+ "preview": "vite preview",
13
+ "i18n:extract": "i18next --config i18next-parser.config.js && jq 'to_entries | map({(.key): .key}) | add' public/locales/en/translation.json > public/locales/en/translation.tmp.json && mv public/locales/en/translation.tmp.json public/locales/en/translation.json"
33
14
  },
34
15
  "dependencies": {
35
- "crypto-js": "^4.1.1"
16
+ "crypto-js": "^4.1.1",
17
+ "i18next": "24.2.2",
18
+ "i18next-browser-languagedetector": "8.0.2",
19
+ "i18next-http-backend": "3.0.2",
20
+ "i18next-icu": "2.3.0",
21
+ "react-i18next": "15.4.0"
36
22
  },
37
23
  "devDependencies": {
38
24
  "@accounts/client": "^0.19.0",
39
25
  "@accounts/client-password": "^0.19.0",
40
26
  "@accounts/rest-client": "^0.19.0",
41
- "@babel/cli": "7.12.10",
42
- "@babel/core": "^7.12.10",
43
- "@babel/plugin-proposal-class-properties": "^7.16.7",
44
- "@babel/plugin-syntax-dynamic-import": "7.2.0",
45
- "@babel/polyfill": "^7.6.0",
46
- "@babel/preset-env": "^7.16.11",
47
- "@babel/preset-react": "^7.16.7",
48
- "@babel/runtime": "7.13.8",
27
+ "@builder6/react": "8.0.34",
49
28
  "@material-ui/core": "^4.4.1",
50
29
  "@material-ui/icons": "^4.4.1",
51
30
  "@material-ui/styles": "^4.4.1",
52
31
  "@tailwindui/react": "^0.1.1",
53
32
  "@types/node": "^14.14.19",
54
33
  "@types/qrcode.react": "0.8.2",
55
- "@types/react": "^17.0.2",
56
- "@types/react-dom": "^17.0.0",
34
+ "@types/react": "^18.2.66",
35
+ "@types/react-dom": "^18.2.22",
57
36
  "@types/react-redux": "^7.1.9",
58
37
  "@types/react-router": "5.0.3",
59
- "@types/react-router-dom": "5.1.7",
60
- "@typescript-eslint/eslint-plugin": "^5.10.2",
61
- "@typescript-eslint/parser": "^5.10.2",
38
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
39
+ "@typescript-eslint/parser": "^7.2.0",
40
+ "@vitejs/plugin-react": "^4.2.1",
62
41
  "add": "^2.0.6",
63
42
  "babel-jest": "^26.6.0",
64
43
  "babel-preset-react-app": "^10.0.1",
65
44
  "core-js": "^3.2.1",
66
45
  "cross-env": "7.0.3",
46
+ "eslint": "^8.57.0",
47
+ "eslint-plugin-react-hooks": "^4.6.0",
48
+ "eslint-plugin-react-refresh": "^0.4.6",
49
+ "i18next-parser": "9.1.0",
67
50
  "mkdirp": "^1.0.4",
68
51
  "qrcode.react": "^1.0.1",
69
- "react": "^17.0.2",
52
+ "react": "^18.2.0",
70
53
  "react-app-polyfill": "^2.0.0",
71
- "react-dom": "^17.0.2",
54
+ "react-dom": "^18.2.0",
72
55
  "react-intl": "^3.1.13",
73
56
  "react-redux": "^7.1.1",
74
- "react-router-dom": "^6.2.2",
75
- "react-scripts": "^4.0.3",
57
+ "react-router-dom": "^7.1.3",
58
+ "react-scripts": "^5.0.1",
76
59
  "redux": "^4.0.4",
77
60
  "redux-devtools-extension": "^2.13.8",
78
61
  "redux-thunk": "^2.4.1",
79
62
  "serialize-error": "^7.0.1",
80
63
  "tslib": "^2.3.1",
81
- "typescript": "^4.6.2",
82
- "yarn": "^1.22.5"
64
+ "typescript": "5.7.3"
83
65
  },
66
+ "private": false,
84
67
  "publishConfig": {
85
68
  "access": "public"
86
69
  },
87
70
  "repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
88
- "gitHead": "0ecb00d16b2d715a70aaf6e56cadeaa54acdfa1d"
71
+ "gitHead": "b68a33d2fa33b380aa7ec401b63315886f7de861"
89
72
  }
package/.env DELETED
@@ -1,3 +0,0 @@
1
- NODE_ENV=production
2
- REACT_APP_API_URL=https://zhuangjianguo.steedos.cn
3
- DISABLE_ESLINT_PLUGIN=true
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- *
package/.md DELETED
@@ -1,8 +0,0 @@
1
- <!--
2
- * @Author: steedos
3
- * @Date: 2022-03-28 15:06:19
4
- * @Description:
5
- -->
6
- ### 静态公开资源文件
7
-
8
- - 此文件夹中的文件自动添加到根路由
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 Steedos 华炎魔方
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": [
5
- "dom",
6
- "dom.iterable",
7
- "esnext"
8
- ],
9
- "allowJs": true,
10
- "skipLibCheck": true,
11
- "esModuleInterop": true,
12
- "allowSyntheticDefaultImports": true,
13
- "strict": false,
14
- "noEmit": true,
15
- "forceConsistentCasingInFileNames": true,
16
- "module": "esnext",
17
- "moduleResolution": "node",
18
- "resolveJsonModule": true,
19
- "isolatedModules": true,
20
- "downlevelIteration": true,
21
- "noImplicitThis": false,
22
- "jsx": "react-jsx",
23
- "noFallthroughCasesInSwitch": true
24
- },
25
- "include": [
26
- "src"
27
- ]
28
- }
package/tsconfig.lib.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "sourceMap": true,
4
- "module": "CommonJS",
5
- "target": "es5",
6
- "outDir": "./lib",
7
- "lib": [
8
- "dom",
9
- "dom.iterable",
10
- "esnext"
11
- ],
12
- "jsx": "react",
13
- "rootDir": "src",
14
- "moduleResolution": "node",
15
- "noImplicitReturns": true,
16
- "noImplicitThis": false,
17
- "noImplicitAny": false,
18
- "strictNullChecks": true,
19
- "skipLibCheck": true,
20
- "esModuleInterop": true,
21
- "noEmit": false,
22
- //"declaration": true,
23
- "allowJs": true,
24
- "isolatedModules": false,
25
- "allowSyntheticDefaultImports": true,
26
- "strict": true,
27
- "forceConsistentCasingInFileNames": true,
28
- "downlevelIteration": true,
29
- "resolveJsonModule": true
30
- },
31
- "include": [
32
- "src",
33
- ],
34
- }