- update axios to 1.7.4

- update menu bar: add tips on how to upload image
- optimizing i18n code
This commit is contained in:
wj-xiao
2024-08-22 14:54:07 +08:00
parent aae370fc2b
commit ea39c024ac
21 changed files with 4074 additions and 3121 deletions

View File

@@ -1,5 +1,7 @@
# NanoKVM Frontend
This is NanoKVM web project. For more documentation, please refer to the [Wiki](https://wiki.sipeed.com/nanokvm).
## Structure
```shell
@@ -7,15 +9,15 @@ src
├── api // backend api
├── assets // static resources
├── components // public components
├── i18n // i18n
├── i18n // language resources
├── jotai // Global jotai variables
├── lib // lib
├── pages // web pages
├── lib // util libs
├── pages // web pages
│ ├── auth // login and password
│ ├── desktop // remote desktop
│ └── terminal // web terminal
├── router.tsx // routers
└── types // types
├── router.tsx // routers
└── types // types
```
## Deployment
@@ -28,7 +30,9 @@ pnpm install
pnpm build
```
Once compilation is complete, the `dist` folder will be generated. Rename the folder to `web` and upload it to the `/kvmapp/server/` directory in NanoKVM.
Then, restart the service by executing `/etc/init.d/S95nanokvm` in NanoKVM.
1. After the compilation is complete, the `dist` folder will be generated.
2. Rename the folder to `web`.
3. Upload `web` to `/kvmapp/server/` in NanoKVM.
4. Restart the service by executing `/etc/init.d/S95nanokvm restart` in NanoKVM.
Additionally, browser may have old version cache. If you can't open the page, try a force refresh or clear the cache.