Ver código fonte

Переход на Vue 3

Book Pauk 3 anos atrás
pai
commit
8057e18ebc

+ 3 - 7
build/webpack.base.config.js

@@ -8,11 +8,7 @@ module.exports = {
     resolve: {
     resolve: {
         alias: {
         alias: {
             vue: '@vue/compat'
             vue: '@vue/compat'
-        },
-        fallback: {
-            "url": false,
-            "path": false,
-        } 
+        }
     },    
     },    
     entry: [`${clientDir}/main.js`],
     entry: [`${clientDir}/main.js`],
     output: {
     output: {
@@ -23,7 +19,7 @@ module.exports = {
         rules: [
         rules: [
             {
             {
                 test: /\.vue$/,
                 test: /\.vue$/,
-                loader: "vue-loader",
+                loader: 'vue-loader',
                     options: {
                     options: {
                         compilerOptions: {
                         compilerOptions: {
                             compatConfig: {
                             compatConfig: {
@@ -33,7 +29,7 @@ module.exports = {
                 }                
                 }                
             },
             },
             {
             {
-                test: /\.includer$/,
+                //test: /\.includer$/,
                 resourceQuery: /^\?vue/,
                 resourceQuery: /^\?vue/,
                 use: path.resolve('build/includer.js')
                 use: path.resolve('build/includer.js')
             },
             },

+ 1 - 1
client/components/Reader/RecentBooksPage/RecentBooksPage.vue

@@ -98,7 +98,7 @@
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 import vueComponent from '../../vueComponent.js';
 import vueComponent from '../../vueComponent.js';
 
 
-import path from 'path';
+import path from 'path-browserify';
 //import _ from 'lodash';
 //import _ from 'lodash';
 
 
 import * as utils from '../../../share/utils';
 import * as utils from '../../../share/utils';

+ 4 - 4
package-lock.json

@@ -7831,12 +7831,12 @@
       }
       }
     },
     },
     "vuex-persistedstate": {
     "vuex-persistedstate": {
-      "version": "2.7.1",
-      "resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-2.7.1.tgz",
-      "integrity": "sha512-Ktvp6Bt6ApYj35MuxTClu+9Lpukcgl3Z/0o4PU12+Z4jU6lyOMzos0k6zGT5xrukAkGM1VV3EYNwz1TnHPhgFA==",
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/vuex-persistedstate/-/vuex-persistedstate-4.1.0.tgz",
+      "integrity": "sha512-3SkEj4NqwM69ikJdFVw6gObeB0NHyspRYMYkR/EbhR0hbvAKyR5gksVhtAfY1UYuWUOCCA0QNGwv9pOwdj+XUQ==",
       "requires": {
       "requires": {
         "deepmerge": "^4.2.2",
         "deepmerge": "^4.2.2",
-        "shvl": "^2.0.0"
+        "shvl": "^2.0.3"
       }
       }
     },
     },
     "watchpack": {
     "watchpack": {

+ 1 - 1
package.json

@@ -79,7 +79,7 @@
     "vue": "^3.1.0",
     "vue": "^3.1.0",
     "vue-router": "^4.0.12",
     "vue-router": "^4.0.12",
     "vuex": "^4.0.2",
     "vuex": "^4.0.2",
-    "vuex-persistedstate": "^2.7.1",
+    "vuex-persistedstate": "^4.1.0",
     "webdav": "^4.7.0",
     "webdav": "^4.7.0",
     "ws": "^8.2.3",
     "ws": "^8.2.3",
     "zip-stream": "^4.1.0"
     "zip-stream": "^4.1.0"