mirror of
https://github.com/hanzoai/vm.git
synced 2026-10-01 00:47:56 +00:00
Commit d52541d swapped casdoor-js-sdk for @hanzo/iam, but @hanzo/iam is
a different package (PKCE-flow IAM client with named exports only —
IAM, IamClient, validateToken). Setting.js uses the casdoor-style
default-export Sdk class with getSignupUrl/getSigninUrl/etc., which
@hanzo/iam does not satisfy. Build failed at:
Attempted import error: '@hanzo/iam' does not contain a default
export (imported as 'Sdk').
Switch to @hanzo/[email protected].1 (hanzoai/iam-js-sdk fork of
casdoor-js-sdk, master HEAD), which exposes the casdoor-compatible
default Sdk class.
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"name": "web",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@ant-design/cssinjs": "^1.12.0",
|
|
"@ant-design/icons": "4.6.2",
|
|
"@craco/craco": "6.4.5",
|
|
"antd": "5.2.3",
|
|
"@hanzo/iam-js-sdk": "^0.19.1",
|
|
"codemirror": "^5.61.1",
|
|
"craco-less": "2.0.0",
|
|
"guacamole-common-js": "1.4.0-a",
|
|
"i18next": "^19.8.9",
|
|
"js-base64": "3.7.2",
|
|
"moment": "^2.29.1",
|
|
"qs": "6.10.3",
|
|
"react": "^18.2.0",
|
|
"react-codemirror2": "^7.2.1",
|
|
"react-device-detect": "1.17.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-draggable": "^4.4.3",
|
|
"react-i18next": "^11.8.7",
|
|
"react-router-dom": "^5.3.3",
|
|
"react-scripts": "5.0.1",
|
|
"react-highlight-words": "^0.20.0"
|
|
},
|
|
"scripts": {
|
|
"start": "set PORT=18001 && craco start",
|
|
"build": "craco build",
|
|
"test": "craco test",
|
|
"eject": "craco eject",
|
|
"analyze": "source-map-explorer 'build/static/js/*.js'",
|
|
"preinstall": "node -e \"if (process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('Use yarn for installing: https://yarnpkg.com/en/docs/install')\"",
|
|
"fix": "eslint --fix src/**/*.{js,jsx,ts,tsx}",
|
|
"lint:css": "stylelint src/**/*.{css,less} --fix"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all",
|
|
"ie 9, ie 10, ie 11"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version",
|
|
"ie 9, ie 10, ie 11"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.19.3",
|
|
"@babel/eslint-parser": "^7.19.1",
|
|
"eslint": "^8.25.0",
|
|
"eslint-plugin-react": "^7.31.10",
|
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
"babel-preset-react-app": "^10.0.0"
|
|
}
|
|
}
|