Quellcode durchsuchen

配置文件修改

黄琪勇 vor 3 Monaten
Ursprung
Commit
57c38f92b6

+ 3 - 0
.env

@@ -0,0 +1,3 @@
+# 公共环境变量
+
+VITE_APP_TITLE="ppt"

+ 3 - 0
.env.devProd

@@ -0,0 +1,3 @@
+# 开发打包
+
+VITE_APP_URL = "https://dev.resource.colexiu.com/cbs-app"

+ 2 - 0
.env.development

@@ -0,0 +1,2 @@
+
+VITE_APP_URL = "https://dev.resource.colexiu.com/cbs-app"

+ 3 - 0
.env.production

@@ -0,0 +1,3 @@
+# 生产环境
+
+VITE_APP_URL = "https://mec.colexiu.com/cbs-app"

+ 3 - 0
.env.staging

@@ -0,0 +1,3 @@
+# 测试环境
+
+VITE_APP_URL = "https://test.resource.colexiu.com/cbs-app"

+ 8 - 0
.vscode/extensions.json

@@ -0,0 +1,8 @@
+{
+  "recommendations": [
+    "Vue.volar",
+    "dbaeumer.vscode-eslint",
+    "EditorConfig.EditorConfig",
+    "esbenp.prettier-vscode"
+  ]
+}

+ 0 - 0
README.md


+ 1 - 0
env.d.ts

@@ -1,2 +1,3 @@
+
 // eslint-disable-next-line spaced-comment
 /// <reference types="vite/client" />

+ 4 - 3
index.html

@@ -5,10 +5,11 @@
     <link rel="icon" href="/favicon.ico">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
     <meta name="renderer" content="webkit">
+    <meta name="force-rendering" content="webkit" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta name="description" content="PPTist:基于 Vue3.x + TypeScript 的在线演示文稿(幻灯片)应用,还原了大部分 Office PowerPoint 常用功能,实现在线PPT的编辑、演示。支持导出PPT文件。" />
-    <meta name="keywords" content="pptist,ppt,powerpoint,office powerpoint,在线ppt,幻灯片,演示文稿,ppt在线制作,Vue3,TypeScript" />
-    <title>PPTist - 在线演示文稿</title>
+    <meta name="description" content="ppt编辑器" />
+    <meta name="keywords" content="ppt,powerpoint,office powerpoint,在线ppt,幻灯片,演示文稿,ppt在线制作,Vue3,TypeScript" />
+    <title>%VITE_APP_TITLE%</title>
 
     <style>
       .first-screen-loading {

Datei-Diff unterdrückt, da er zu groß ist
+ 83 - 752
package-lock.json


+ 8 - 6
package.json

@@ -1,16 +1,16 @@
 {
-  "name": "pptist",
+  "name": "ppt-list",
   "version": "1.0.0",
   "private": true,
   "type": "module",
   "scripts": {
     "dev": "vite",
-    "build": "run-p type-check \"build-only {@}\" --",
-    "preview": "vite preview",
-    "build-only": "vite build",
+    "build:prod": "vite build",
+    "build:stag": "vite build --mode staging",
+    "build:devProd": "vite build --mode devProd",
+    "preview": "vite preview --port 9528",
     "type-check": "vue-tsc --build --force",
-    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
-    "prepare": "husky install"
+    "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
   },
   "dependencies": {
     "@icon-park/vue-next": "^1.4.2",
@@ -57,12 +57,14 @@
     "@types/svg-arc-to-cubic-bezier": "^3.2.2",
     "@types/tinycolor2": "^1.4.6",
     "@vitejs/plugin-vue": "^5.1.0",
+    "@vue/eslint-config-prettier": "^10.1.0",
     "@vue/eslint-config-typescript": "^12.0.0",
     "@vue/tsconfig": "^0.5.0",
     "eslint": "^8.49.0",
     "eslint-plugin-vue": "^9.17.0",
     "npm-run-all2": "^6.1.1",
     "sass": "^1.69.6",
+    "prettier": "^3.3.3",
     "typescript": "~5.3.0",
     "vite": "^5.3.5",
     "vue-tsc": "^2.0.29"

BIN
public/icons/android-chrome-192x192.png


BIN
public/icons/android-chrome-512x512.png


BIN
public/icons/android-chrome-maskable-192x192.png


BIN
public/icons/android-chrome-maskable-512x512.png


BIN
public/icons/apple-touch-icon-152x152.png


BIN
public/icons/favicon-16x16.png


BIN
public/icons/favicon-32x32.png


+ 1 - 3
src/App.vue

@@ -4,8 +4,6 @@
   <Mobile v-else />
 </template>
 
-
-
 <script lang="ts" setup>
 import { onMounted } from 'vue'
 import { storeToRefs } from 'pinia'
@@ -51,4 +49,4 @@ window.addEventListener('unload', () => {
 #app {
   height: 100%;
 }
-</style>
+</style>

+ 7 - 5
vite.config.ts

@@ -6,9 +6,7 @@ import vue from '@vitejs/plugin-vue'
 // https://vitejs.dev/config/
 export default defineConfig({
   base: '',
-  plugins: [
-    vue(),
-  ],
+  plugins: [vue()],
   css: {
     preprocessorOptions: {
       scss: {
@@ -16,12 +14,16 @@ export default defineConfig({
           @import '@/assets/styles/variable.scss';
           @import '@/assets/styles/mixin.scss';
         `
-      },
-    },
+      }
+    }
   },
   resolve: {
     alias: {
       '@': fileURLToPath(new URL('./src', import.meta.url))
     }
+  },
+  server: {
+    port: 9527,
+    host: '0.0.0.0'
   }
 })

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.