Skip to content

Commit

Permalink
Launchpad GPU (labring#3619)
Browse files Browse the repository at this point in the history
* i18n

* fix: update app patch

* perf: gpu ui

* perf: gpu ui

* perf: source price

* feat: gpu source cr

* feat: edit gpu data

* perf: env adapt valuefrom

* value from

* perf: gpu selector

* selector

* fix: analyze

* gpu

* config cpu and memory

* config gpu, memory slider

* fix: args

* deploy

* perf: ui

* perf: config data

* fix: env edit

* event analyse

* code comment

* fix: value from
  • Loading branch information
c121914yu authored Aug 2, 2023
1 parent e2fde2e commit 4027c49
Show file tree
Hide file tree
Showing 44 changed files with 2,046 additions and 1,299 deletions.
5 changes: 3 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
"./desktop"
],
"devDependencies": {
"prettier": "^2.8.8"
"prettier": "^2.8.8",
"react-i18next": "^12.3.1"
},
"dependencies": {
"typescript": "^5.1.6"
}
}
}
106 changes: 85 additions & 21 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/providers/applaunchpad/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ next-env.d.ts
platform.json
.yalc/
yalc.lock
data/*.local
6 changes: 6 additions & 0 deletions frontend/providers/applaunchpad/data/form_slider_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"NoGpu": {
"cpu": [100, 200, 500, 1000, 2000, 3000, 4000, 8000],
"memory": [64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384]
}
}
10 changes: 10 additions & 0 deletions frontend/providers/applaunchpad/deploy/manifests/deploy.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ metadata:
data:
config.yaml: |-
addr: :3000
form_slider_config.json: |-
{
"NoGpu": {
"cpu": [100, 200, 500, 1000, 2000, 3000, 4000, 8000],
"memory": [64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384]
}
}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -63,6 +70,9 @@ spec:
- name: applaunchpad-frontend-volume
mountPath: /config.yaml
subPath: config.yaml
- mountPath: /app/data/form_slider_config.json
name: applaunchpad-frontend-volume
subPath: form_slider_config.json
volumes:
- name: applaunchpad-frontend-volume
configMap:
Expand Down
2 changes: 1 addition & 1 deletion frontend/providers/applaunchpad/next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh', 'zh-Hans'],
locales: ['en', 'zh'],
localeDetection: false
}
};
Loading

0 comments on commit 4027c49

Please sign in to comment.