Parcourir la source

Merge branch 'test' of http://192.168.0.115:3000/chenlei/vue3-scene-web into demo

chenlei il y a 11 mois
Parent
commit
6d2b7ff57a
6 fichiers modifiés avec 12949 ajouts et 10068 suppressions
  1. 2 1
      package.json
  2. 12913 0
      pnpm-lock.yaml
  3. 1 1
      src/configure.ts
  4. 25 24
      tsconfig.json
  5. 8 0
      vue.config.js
  6. 0 10042
      yarn.lock

+ 2 - 1
package.json

@@ -21,6 +21,7 @@
     "lodash": "^4.17.21",
     "pinia": "^2.0.24",
     "query-string": "^8.1.0",
+    "swiper": "^11.1.10",
     "vue": "^3.2.13",
     "vue-class-component": "^8.0.0-0",
     "vue-router": "^4.0.3"
@@ -59,7 +60,7 @@
     "sass": "^1.32.7",
     "sass-loader": "^12.0.0",
     "ts-jest": "^27.0.4",
-    "typescript": "~4.5.5",
+    "typescript": "^5.5.4",
     "unplugin-auto-import": "^0.11.2",
     "unplugin-vue-components": "^0.22.7"
   }

Fichier diff supprimé car celui-ci est trop grand
+ 12913 - 0
pnpm-lock.yaml


+ 1 - 1
src/configure.ts

@@ -11,7 +11,7 @@ if (performance) {
 }
 
 window.getHotIframePath = (src: string) => {
-  return process.env.NODE_ENV === 'development' && process.env.HOT_DOMAIN
+  return process.env.HOT_DOMAIN
     ? src.replace(
         'https://www.4dmodel.com/SuperTwo/hot_online1/index.html#/',
         process.env.HOT_DOMAIN

+ 25 - 24
tsconfig.json

@@ -1,24 +1,25 @@
-{
-  "compilerOptions": {
-    "target": "esnext",
-    "module": "esnext",
-    "strict": true,
-    "jsx": "preserve",
-    "moduleResolution": "node",
-    "experimentalDecorators": true,
-    "skipLibCheck": true,
-    "esModuleInterop": true,
-    "allowSyntheticDefaultImports": true,
-    "forceConsistentCasingInFileNames": true,
-    "useDefineForClassFields": true,
-    "sourceMap": true,
-    "baseUrl": ".",
-    "types": ["webpack-env"],
-    "paths": {
-      "@/*": ["src/*"]
-    },
-    "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
-  },
-  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
-  "exclude": ["node_modules"]
-}
+{
+  "compilerOptions": {
+    "target": "esnext",
+    "module": "esnext",
+    "strict": true,
+    "jsx": "preserve",
+    "jsxImportSource": "vue",
+    "moduleResolution": "node",
+    "experimentalDecorators": true,
+    "skipLibCheck": true,
+    "esModuleInterop": true,
+    "allowSyntheticDefaultImports": true,
+    "forceConsistentCasingInFileNames": true,
+    "useDefineForClassFields": true,
+    "sourceMap": true,
+    "baseUrl": ".",
+    "types": ["webpack-env"],
+    "paths": {
+      "@/*": ["src/*"]
+    },
+    "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
+  },
+  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
+  "exclude": ["node_modules"]
+}

+ 8 - 0
vue.config.js

@@ -145,6 +145,14 @@ module.exports = defineConfig({
             reuseExistingChunk: true,
             enforce: true,
           },
+          swiper: {
+            name: 'swiper',
+            test: /[\\/]node_modules[\\/]swiper[\\/]/,
+            chunks: 'initial',
+            priority: 3,
+            reuseExistingChunk: true,
+            enforce: true,
+          },
         },
       });
     }

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 10042
yarn.lock