Skip to content

Commit deeccba

Browse files
committed
zstack-vdi
0 parents  commit deeccba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2106
-0
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PORT=3000

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/npm-debug.log*
6+
/yarn-error.log
7+
/yarn.lock
8+
/package-lock.json
9+
10+
# production
11+
/dist
12+
13+
# misc
14+
.DS_Store
15+
16+
# umi
17+
/src/.umi
18+
/src/.umi-production
19+
/src/.umi-test
20+
/.env.local

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**/*.md
2+
**/*.svg
3+
**/*.ejs
4+
**/*.html
5+
package.json
6+
.umi
7+
.umi-production
8+
.umi-test

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"printWidth": 80,
5+
"overrides": [
6+
{
7+
"files": ".prettierrc",
8+
"options": { "parser": "json" }
9+
}
10+
]
11+
}

.umirc.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineConfig } from 'umi';
2+
3+
export default defineConfig({
4+
nodeModulesTransform: {
5+
type: 'none',
6+
},
7+
title: 'ZStack VDI',
8+
favicon: '/assets/favicon.ico',
9+
locale: {
10+
default: 'zh-CN'
11+
},
12+
proxy: {
13+
'/zstack/v1': {
14+
'target': 'http://172.20.12.207:8080',
15+
'changeOrigin': true,
16+
},
17+
},
18+
fastRefresh: {},
19+
});

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# umi project
2+
3+
## Getting Started
4+
5+
Install dependencies,
6+
7+
```bash
8+
$ yarn
9+
```
10+
11+
Start the dev server,
12+
13+
```bash
14+
$ yarn start
15+
```
16+
17+
Build
18+
19+
```bash
20+
$ yarn build
21+
```

mock/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "zstack-vdi",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"start": "umi dev",
7+
"build": "umi build",
8+
"postinstall": "umi generate tmp",
9+
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
10+
"test": "umi-test",
11+
"test:coverage": "umi-test --coverage"
12+
},
13+
"gitHooks": {
14+
"pre-commit": "lint-staged"
15+
},
16+
"lint-staged": {
17+
"*.{js,jsx,less,md,json}": [
18+
"prettier --write"
19+
],
20+
"*.ts?(x)": [
21+
"prettier --parser=typescript --write"
22+
]
23+
},
24+
"dependencies": {
25+
"@ant-design/pro-layout": "^6.5.0",
26+
"ahooks": "^3.3.10",
27+
"axios": "^0.27.2",
28+
"lodash": "^4.17.21",
29+
"react": "17.x",
30+
"react-dom": "17.x",
31+
"react-inlinesvg": "^3.0.0",
32+
"umi": "^3.5.23"
33+
},
34+
"devDependencies": {
35+
"@types/lodash": "^4.14.182",
36+
"@types/react": "^17.0.0",
37+
"@types/react-dom": "^17.0.0",
38+
"@umijs/preset-react": "1.x",
39+
"@umijs/test": "^3.5.23",
40+
"lint-staged": "^10.0.7",
41+
"prettier": "^2.2.0",
42+
"typescript": "^4.1.2",
43+
"yorkie": "^2.0.0"
44+
}
45+
}

public/assets/favicon.ico

16.6 KB
Binary file not shown.

public/assets/logo.svg

Lines changed: 41 additions & 0 deletions
Loading

public/assets/zstone.vdi.nginx.conf

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
user root;
2+
worker_processes auto;
3+
error_log /root/zstack-vdi/logs/nginx-error.log;
4+
include /usr/share/nginx/modules/*.conf;
5+
events {
6+
worker_connections 1024;
7+
}
8+
http {
9+
access_log /root/zstack-vdi/logs/nginx-access.log;
10+
sendfile on;
11+
tcp_nopush on;
12+
tcp_nodelay on;
13+
keepalive_timeout 1000s;
14+
types_hash_max_size 2048;
15+
client_max_body_size 0;
16+
proxy_http_version 1.1;
17+
client_body_buffer_size 64k;
18+
proxy_request_buffering off;
19+
proxy_read_timeout 1000s;
20+
proxy_send_timeout 1000s;
21+
send_timeout 1000s;
22+
proxy_connect_timeout 1000s;
23+
proxy_buffering off;
24+
include /etc/nginx/mime.types;
25+
default_type application/octet-stream;
26+
27+
map $http_upgrade $connection_upgrade {
28+
default upgrade;
29+
'' close;
30+
}
31+
32+
server {
33+
listen 4000;
34+
location / {
35+
gzip on;
36+
gzip_comp_level 6;
37+
gzip_vary on;
38+
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/ xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype;
39+
try_files $uri @index;
40+
etag on;
41+
}
42+
location @index {
43+
root /root/zstack-vdi/dist;
44+
index index.html;
45+
add_header Cache-Control no-cache;
46+
expires -1;
47+
try_files /index.html =404;
48+
}
49+
location /zstack/v1 {
50+
proxy_http_version 1.1;
51+
proxy_connect_timeout 4s;
52+
proxy_read_timeout 3600s; # 防止断掉设置一小时
53+
proxy_send_timeout 3600s; # 防止断掉设置一小时
54+
proxy_pass http://localhost:8080;
55+
}
56+
}
57+
}

src/assets/admin2.png

1.13 KB
Loading

src/assets/arrow-ios-down.png

278 Bytes
Loading

src/assets/arrow-ios-down1.png

235 Bytes
Loading

src/assets/checkmark.png

331 Bytes
Loading

src/assets/computer.png

1.41 KB
Loading

src/assets/connect.svg

Lines changed: 25 additions & 0 deletions
Loading

src/assets/globe-1.png

475 Bytes
Loading

src/assets/globe-2.png

622 Bytes
Loading
Lines changed: 26 additions & 0 deletions
Loading

src/assets/images/login-dot.svg

Lines changed: 15 additions & 0 deletions
Loading

src/assets/lock-fill.png

372 Bytes
Loading

src/assets/log-out.png

319 Bytes
Loading

src/assets/logo-bar.png

1.08 KB
Loading

src/assets/nodata.png

3.33 KB
Loading

src/assets/person-fill.png

365 Bytes
Loading

src/assets/refresh.png

326 Bytes
Loading

src/assets/start.svg

Lines changed: 23 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)