Skip to content

Commit

Permalink
Merge branch 'nihaojob:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
zjc2233 committed Jul 15, 2024
2 parents c96deeb + 9761788 commit 78af269
Show file tree
Hide file tree
Showing 162 changed files with 13,610 additions and 3,127 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# path: ./.dockerignore

.DS_Store
node_modules
dist
.npmrc
yarn.lock
pnpm-lock.yaml
package-lock.json
6 changes: 4 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
APP_TITLE=设计编辑器-vue-fabric-editor
APP_REPO=https://nihaojob.github.io/vue-fabric-editor-static/
APP_TITLE=快图设计-开源图片编辑器-vue-fabric-editor
APP_BASE_PATH=/vue-fabric-editor/
APP_APIHOST=https://www.kuaitu.cc
APP_ADMINAPIHOST=https://www.kuaitu.cc/admin
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
APP_FLAG=dev
APP_FONT_CSS_FILE=free-font-local.css
# APP_APIHOST=http://localhost:1337
3 changes: 1 addition & 2 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
APP_FLAG=prod
APP_FONT_CSS_FILE=free-font.css
APP_FLAG=prod
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
node_modules
dist
typings/auto-imports.d.ts

# local env files
.env.local
Expand All @@ -25,3 +26,5 @@ pnpm-debug.log*
yarn.lock
pnpm-lock.yaml
package-lock.json
typings/auto-imports.d.ts
.eslintrc-auto-import.json
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"i18n-ally.localesPaths": [
"src/language"
],
"i18n-ally.sourceLanguage": "zh" // 需要Prettier的配置文件
"i18n-ally.sourceLanguage": "zh",
"i18n-ally.keystyle": "nested" // 需要Prettier的配置文件
}
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine3.18 as build

WORKDIR /app
COPY . .

RUN npm install -g pnpm --registry=https://registry.npmmirror.com
RUN pnpm config set registry https://registry.npmmirror.com
RUN pnpm install

RUN ["pnpm", "build"]

FROM nginx:1.25.3
COPY --from=0 /app/dist /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/

Loading

0 comments on commit 78af269

Please sign in to comment.