diff --git a/.dockerignore b/.dockerignore index 5078fcd..def59e5 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,6 @@ +**/node_modules +*/node_modules node_modules Dockerfile -.git -.husky -.github -.vscode +.* +*/.* diff --git a/Dockerfile b/Dockerfile index f0b6f22..90a0f09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,11 @@ FROM node:lts-alpine AS builder COPY ./ /app WORKDIR /app -RUN npm install pnpm -g && pnpm install && pnpm run build +RUN apk add --no-cache git \ + && npm install pnpm -g \ + && pnpm install \ + && pnpm run build \ + && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/* # service FROM node:lts-alpine @@ -13,8 +17,12 @@ COPY /service /app COPY --from=builder /app/dist /app/public WORKDIR /app -RUN npm install pnpm -g && pnpm install +RUN apk add --no-cache git \ + && npm install pnpm -g \ + && pnpm install --only=production \ + && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/* + EXPOSE 3002 -CMD ["pnpm", "run", "start"] \ No newline at end of file +CMD ["pnpm", "run", "start"] diff --git a/README.en.md b/README.en.md index bffae14..6fa93e4 100644 --- a/README.en.md +++ b/README.en.md @@ -84,6 +84,12 @@ For all parameter variables, check [here](#docker-parameter-example) or see: [✓] Formatting and beautifying code-like message types +[✓] Access rights control + +[✓] Data import and export + +[✓] Save message to local image + [✓] Multilingual interface [✓] Interface themes diff --git a/README.md b/README.md index 32bac58..4f421fb 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,12 @@ API_REVERSE_PROXY= [✓] 对代码等消息类型的格式化美化处理 +[✓] 访问权限控制 + +[✓] 数据导入、导出 + +[✓] 保存消息到本地图片 + [✓] 界面多语言 [✓] 界面主题 diff --git a/src/components/common/Setting/General.vue b/src/components/common/Setting/General.vue index 2516cbb..e75b0a9 100644 --- a/src/components/common/Setting/General.vue +++ b/src/components/common/Setting/General.vue @@ -51,7 +51,7 @@ const themeOptions: { label: string; key: Theme; icon: string }[] = [ ] const languageOptions: { label: string; key: Language; value: Language }[] = [ - { label: '中文', key: 'zh-CN', value: 'zh-CN' }, + { label: '简体中文', key: 'zh-CN', value: 'zh-CN' }, { label: '繁體中文', key: 'zh-TW', value: 'zh-TW' }, { label: 'English', key: 'en-US', value: 'en-US' }, ] @@ -151,38 +151,41 @@ function handleImportButtonClick(): void {
{{ $t('setting.chatHistory') }} - - - {{ $t('common.export') }} - - - - - - {{ $t('common.import') }} - - - - - {{ $t('chat.clearHistoryConfirm') }} - +
+ + + {{ $t('common.export') }} + + + + + + {{ $t('common.import') }} + + + + + {{ $t('chat.clearHistoryConfirm') }} + +
{{ $t('setting.theme') }} -
+