Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(applaunchpad): support file browser for pv #4674

Merged
merged 16 commits into from
Apr 30, 2024
39 changes: 19 additions & 20 deletions frontend/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
module.exports = {
printWidth: 100,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'none',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'always',
rangeStart: 0,
rangeEnd: Infinity,
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
endOfLine: 'lf'
};

printWidth: 100,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'as-needed',
jsxSingleQuote: false,
trailingComma: 'none',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'always',
rangeStart: 0,
rangeEnd: Infinity,
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
htmlWhitespaceSensitivity: 'css',
endOfLine: 'lf'
}
17 changes: 0 additions & 17 deletions frontend/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,5 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^2.8.8"
},
"pnpm": {
"supportedArchitectures": {
"os": [
"win32",
"darwin",
"current",
"linuxmusl"
],
"cpu": [
"x64",
"arm64"
],
"libc": [
"musl"
]
}
}
}
17 changes: 17 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,22 @@
"@emotion/styled": "^11.11.0",
"framer-motion": "^10.16.4",
"typescript": "^5.2.2"
},
"pnpm": {
"supportedArchitectures": {
"os": [
"win32",
"darwin",
"current",
"linuxmusl"
],
"cpu": [
"x64",
"arm64"
],
"libc": [
"musl"
]
}
}
}
101 changes: 54 additions & 47 deletions frontend/pnpm-lock.yaml

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

15 changes: 9 additions & 6 deletions frontend/providers/applaunchpad/data/config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
cloud:
domain: 127.0.0.1.nip.io
port: ""
port: ''
common:
guideEnabled: "false"
apiEnabled: "false"
guideEnabled: false
apiEnabled: false
launchpad:
ingressTlsSecretName: wildcard-cert
eventAnalyze:
enabled: "false"
fastGPTKey: ""
enabled: false
fastGPTKey: ''
components:
monitor:
url: http://launchpad-monitor.sealos.svc.cluster.local:8428
appResourceFormSliderConfig:
default:
cpu: [100, 200, 500, 1000, 2000, 3000, 4000, 8000]
memory: [64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384]
memory: [64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384]
fileManger:
uploadLimit: 50 # MB
downloadLimit: 100 # MB
2 changes: 1 addition & 1 deletion frontend/providers/applaunchpad/deploy/Kubefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ ENV cloudPort=""

ENV certSecretName="wildcard-cert"
ENV ingressSecret="wildcard-cert"
ENv monitorUrl="http://launchpad-monitor.sealos.svc.cluster.local:8428"
ENV monitorUrl="http://launchpad-monitor.sealos.svc.cluster.local:8428"

CMD ["kubectl apply -f manifests"]
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ data:
domain: {{ .cloudDomain }}
port: {{ if .cloudPort }}:{{ .cloudPort }}{{ end }}
common:
guideEnabled: "{{ .guideEnabled }}"
apiEnabled: "{{ .apiEnabled }}"
guideEnabled: {{ .guideEnabled }}
apiEnabled: {{ .apiEnabled }}
launchpad:
ingressTlsSecretName: {{ .ingressTlsSecretName }}
eventAnalyze:
enabled: "false"
enabled: false
fastGPTKey: ""
components:
monitor:
Expand All @@ -30,6 +30,9 @@ data:
default:
cpu: [100, 200, 500, 1000, 2000, 3000, 4000, 8000]
memory: [64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384]
fileManger:
uploadLimit: 50 # MB
downloadLimit: 100 # MB
---
apiVersion: apps/v1
kind: Deployment
Expand Down
8 changes: 8 additions & 0 deletions frontend/providers/applaunchpad/i18nrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"entry": "./public/locales/zh",
"entryLocale": "zh",
"output": "./public/locales",
"outputLocales": [
"en"
]
}
4 changes: 4 additions & 0 deletions frontend/providers/applaunchpad/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
"@tanstack/react-query": "^4.35.3",
"ansi_up": "^5.2.1",
"axios": "^1.5.1",
"base64-stream": "^1.0.0",
"dayjs": "^1.11.10",
"dns": "^0.2.2",
"echarts": "^5.4.3",
"fast-json-patch": "^3.1.1",
"formidable": "^3.5.1",
"framer-motion": "^10.16.4",
"i18next": "^22.5.1",
"immer": "^9.0.21",
Expand All @@ -54,6 +56,8 @@
},
"devDependencies": {
"@svgr/webpack": "^6.5.1",
"@types/base64-stream": "^1.0.5",
"@types/formidable": "^3.4.5",
"@types/js-cookie": "^3.0.4",
"@types/js-yaml": "^4.0.6",
"@types/lodash": "^4.14.199",
Expand Down
Loading
Loading