Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions amoro-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This is the Dashboard frontend for Amoro Management Service (AMS).

## Requirements

- node >= `18.18.0`
- node >= `22.12.0`
- pnpm

## Installing Dependencies
Expand All @@ -41,7 +41,7 @@ In the `amoro-web` directory, run `pnpm dev:mock` to start a development server

### Configure the ams Server to connect to

1. open the `vite.config.ts` under the folder `amoro-web`
1. open the `vite.config.mts` under the folder `amoro-web`

2. find the `proxy` configuration then unpack annotations and change the `target` to you server location

Expand Down Expand Up @@ -98,6 +98,6 @@ amoro-web
- [src/services](amoro-web/src/services): The services for the feature component to communicate with ams server.
- [src/utils](amoro-web/src/utils): The utility functions in this project.
- [src/App.vue](amoro-web/src/main.tsx): The entrance of this project.
- [vite.config.ts](/amoro-web/vite.config.ts): The configuration file of vue3.
- [vite.config.mts](/amoro-web/vite.config.mts): The configuration file of vue3.
- [package.json](amoro-web/package.json): The project build files and package management, it defines the scripts/tasks and the dependent packages for this project.
- [pnpm-lock.yaml](amoro-web/pnpm-lock.yaml): The package management pnpm lock file.
13 changes: 13 additions & 0 deletions amoro-web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
const preloadErrorKey = 'amoro:preload-error'
window.addEventListener('vite:preloadError', (event) => {
const failureId = String(event.payload)
if (window.sessionStorage.getItem(preloadErrorKey) === failureId) {
return
}

event.preventDefault()
window.sessionStorage.setItem(preloadErrorKey, failureId)
window.location.reload()
})
</script>
<title>Apache Amoro™ Dashboard</title>
</head>
<body>
Expand Down
41 changes: 22 additions & 19 deletions amoro-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,49 @@
"scripts": {
"dev": "vite",
"dev:mock": "vite --mode mock",
"build": "vite build",
"build": "node ./scripts/preload-error-recovery.test.mjs && vite build",
"typecheck": "vue-tsc --noEmit",
"gen:license": "node ./license.node.js",
"preview": "vite preview",
"test:preload-recovery": "node ./scripts/preload-error-recovery.test.mjs",
"lint": "eslint ./src",
"format": "eslint ./src --fix"
},
"dependencies": {
"@ant-design/icons-vue": "7.0.1",
"ant-design-vue": "^4.2.3",
"axios": "^1.7.2",
"dayjs": "^1.11.11",
"echarts": "^5.5.0",
"pinia": "^2.1.7",
"swagger-ui": "^5.17.14",
"swagger-ui-dist": "^5.17.14",
"vue": "^3.4.27",
"@vue/devtools-api": "^8.2.1",
"ant-design-vue": "^4.2.6",
"axios": "^1.19.0",
"dayjs": "^1.11.23",
"echarts": "^6.1.0",
"pinia": "^4.0.3",
"swagger-ui": "^5.32.14",
"swagger-ui-dist": "^5.32.14",
"vue": "^3.5.41",
"vue-clipboard3": "^2.0.0",
"vue-i18n": "^9.13.1",
"vue-router": "^4.3.3",
"vue-virtual-scroller": "2.0.0-beta.8"
"vue-i18n": "^11.4.9",
"vue-router": "^5.2.0",
"vue-virtual-scroller": "^3.0.5"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.1",
"@types/node": "^20.14.8",
"@vitejs/plugin-vue": "^5.0.5",
"@vitejs/plugin-vue": "^6.0.8",
"eslint": "^9.4.0",
"less": "4.2.0",
"mockjs": "^1.1.0",
"monaco-editor": "^0.49.0",
"monaco-editor": "^0.56.0",
"qs": "^6.12.1",
"sql-formatter": "^15.3.1",
"typescript": "^5.4.5",
"typescript": "~5.9.3",
"unplugin-vue-components": "^0.27.0",
"vite": "^5.2.13",
"vite": "^8.2.2",
"vite-plugin-fake-server": "^2.1.1",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-vue-devtools": "^7.6.7",
"vue-tsc": "^2.0.21"
"vite-plugin-vue-devtools": "^8.2.1",
"vue-tsc": "^3.3.11"
},
"engines": {
"node": ">=18.18.0"
"node": ">=22.12.0"
}
}
Loading
Loading