diff --git a/package-lock.json b/package-lock.json index e668998..46293f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,13 +12,17 @@ "core-js": "^3.6.5", "crypto-js": "^4.1.1", "element-ui": "^2.4.5", + "lg-thumbnail.js": "^1.2.0", + "lightgallery.js": "^1.4.0", "markdown-it": "^12.2.0", "mavon-editor": "^2.9.1", "qs": "^6.10.3", + "useless-files-webpack-plugin": "^1.0.1", "vue": "^2.6.11", "vue-baberrage": "^3.2.4", "vue-ripple-directive": "^2.0.1", "vue-router": "^3.2.0", + "vuedraggable": "^2.24.3", "vuex": "^3.4.0", "vuex-persistedstate": "^4.0.0" }, @@ -3381,8 +3385,7 @@ "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "node_modules/base": { "version": "0.11.2", @@ -3560,7 +3563,6 @@ "version": "1.1.11", "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4534,8 +4536,7 @@ "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "node_modules/concat-stream": { "version": "1.6.2", @@ -7311,8 +7312,7 @@ "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "node_modules/fsevents": { "version": "2.3.2", @@ -7434,7 +7434,6 @@ "version": "7.2.2", "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.2.tgz", "integrity": "sha512-NzDgHDiJwKYByLrL5lONmQFpK/2G78SMMfo+E9CuGlX4IkvfKDsiQSNPwAYxEy+e6p7ZQ3uslSLlwlJcqezBmQ==", - "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -8209,7 +8208,6 @@ "version": "1.0.6", "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -8218,8 +8216,7 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/inquirer": { "version": "7.3.3", @@ -8353,7 +8350,6 @@ "version": "1.4.0", "resolved": "https://registry.npmmirror.com/interpret/-/interpret-1.4.0.tgz", "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, "engines": { "node": ">= 0.10" } @@ -8502,7 +8498,6 @@ "version": "2.9.0", "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.9.0.tgz", "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", - "dev": true, "dependencies": { "has": "^1.0.3" } @@ -9039,6 +9034,16 @@ "node": ">= 0.8.0" } }, + "node_modules/lg-thumbnail.js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/lg-thumbnail.js/-/lg-thumbnail.js-1.2.0.tgz", + "integrity": "sha512-qmNFbjLv1spCf3sB8HRX9vW8UtKcgq7qJIg10jLqCozSquhTJwSPUb5vyPgl3cZpgLFjRMiOpIRgBjGrX4inNQ==" + }, + "node_modules/lightgallery.js": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/lightgallery.js/-/lightgallery.js-1.4.0.tgz", + "integrity": "sha512-TK7auNMSz0sPjotq/VtKH/fe8GPkVRlmFf8F3zVsbFccLJL4r3U1VON+IggyE8Wy04QwbFQxTIIMqL7blibGSA==" + }, "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz", @@ -9529,7 +9534,6 @@ "version": "3.1.2", "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -10097,7 +10101,6 @@ "version": "1.4.0", "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, "dependencies": { "wrappy": "1" } @@ -10516,7 +10519,6 @@ "version": "1.0.1", "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -10539,8 +10541,7 @@ "node_modules/path-parse": { "version": "1.0.7", "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-to-regexp": { "version": "0.1.7", @@ -11741,6 +11742,17 @@ "node": ">=8.10.0" } }, + "node_modules/rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, "node_modules/regenerate": { "version": "1.4.2", "resolved": "https://registry.npmmirror.com/regenerate/-/regenerate-1.4.2.tgz", @@ -11991,7 +12003,6 @@ "version": "1.22.0", "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.0.tgz", "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", - "dev": true, "dependencies": { "is-core-module": "^2.8.1", "path-parse": "^1.0.7", @@ -12478,6 +12489,22 @@ "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", "dev": true }, + "node_modules/shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/shvl": { "version": "2.0.3", "resolved": "https://registry.npmmirror.com/shvl/-/shvl-2.0.3.tgz", @@ -12810,6 +12837,11 @@ "node": ">=0.10.0" } }, + "node_modules/sortablejs": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.10.2.tgz", + "integrity": "sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A==" + }, "node_modules/source-list-map": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/source-list-map/-/source-list-map-2.0.1.tgz", @@ -13301,7 +13333,6 @@ "version": "1.0.0", "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, "engines": { "node": ">= 0.4" } @@ -14308,6 +14339,14 @@ "node": ">=0.10.0" } }, + "node_modules/useless-files-webpack-plugin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/useless-files-webpack-plugin/-/useless-files-webpack-plugin-1.0.1.tgz", + "integrity": "sha512-k1CXjiehq3gpDvZmUJB7RLBbYjsBLFcBWDp7FQunYnPpo1W8zjHceqOr7J5N0NZndmLotodKurARWua71E/ADA==", + "dependencies": { + "shelljs": "^0.8.1" + } + }, "node_modules/util": { "version": "0.11.1", "resolved": "https://registry.npmmirror.com/util/-/util-0.11.1.tgz", @@ -14688,6 +14727,14 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "node_modules/vuedraggable": { + "version": "2.24.3", + "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz", + "integrity": "sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==", + "dependencies": { + "sortablejs": "1.10.2" + } + }, "node_modules/vuex": { "version": "3.6.2", "resolved": "https://registry.npmmirror.com/vuex/-/vuex-3.6.2.tgz", @@ -15653,8 +15700,7 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/write": { "version": "1.0.3", @@ -18475,8 +18521,7 @@ "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, "base": { "version": "0.11.2", @@ -18641,7 +18686,6 @@ "version": "1.1.11", "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -19475,8 +19519,7 @@ "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, "concat-stream": { "version": "1.6.2", @@ -21768,8 +21811,7 @@ "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "fsevents": { "version": "2.3.2", @@ -21866,7 +21908,6 @@ "version": "7.2.2", "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.2.tgz", "integrity": "sha512-NzDgHDiJwKYByLrL5lONmQFpK/2G78SMMfo+E9CuGlX4IkvfKDsiQSNPwAYxEy+e6p7ZQ3uslSLlwlJcqezBmQ==", - "dev": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -22497,7 +22538,6 @@ "version": "1.0.6", "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -22506,8 +22546,7 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "inquirer": { "version": "7.3.3", @@ -22617,8 +22656,7 @@ "interpret": { "version": "1.4.0", "resolved": "https://registry.npmmirror.com/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" }, "ip": { "version": "1.1.8", @@ -22737,7 +22775,6 @@ "version": "2.9.0", "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.9.0.tgz", "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==", - "dev": true, "requires": { "has": "^1.0.3" } @@ -23166,6 +23203,16 @@ "type-check": "~0.3.2" } }, + "lg-thumbnail.js": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/lg-thumbnail.js/-/lg-thumbnail.js-1.2.0.tgz", + "integrity": "sha512-qmNFbjLv1spCf3sB8HRX9vW8UtKcgq7qJIg10jLqCozSquhTJwSPUb5vyPgl3cZpgLFjRMiOpIRgBjGrX4inNQ==" + }, + "lightgallery.js": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/lightgallery.js/-/lightgallery.js-1.4.0.tgz", + "integrity": "sha512-TK7auNMSz0sPjotq/VtKH/fe8GPkVRlmFf8F3zVsbFccLJL4r3U1VON+IggyE8Wy04QwbFQxTIIMqL7blibGSA==" + }, "lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz", @@ -23580,7 +23627,6 @@ "version": "3.1.2", "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "requires": { "brace-expansion": "^1.1.7" } @@ -24057,7 +24103,6 @@ "version": "1.4.0", "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, "requires": { "wrappy": "1" } @@ -24400,8 +24445,7 @@ "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" }, "path-is-inside": { "version": "1.0.2", @@ -24418,8 +24462,7 @@ "path-parse": { "version": "1.0.7", "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "path-to-regexp": { "version": "0.1.7", @@ -25456,6 +25499,14 @@ "picomatch": "^2.2.1" } }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", + "requires": { + "resolve": "^1.1.6" + } + }, "regenerate": { "version": "1.4.2", "resolved": "https://registry.npmmirror.com/regenerate/-/regenerate-1.4.2.tgz", @@ -25666,7 +25717,6 @@ "version": "1.22.0", "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.0.tgz", "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", - "dev": true, "requires": { "is-core-module": "^2.8.1", "path-parse": "^1.0.7", @@ -26076,6 +26126,16 @@ "integrity": "sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==", "dev": true }, + "shelljs": { + "version": "0.8.5", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", + "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, "shvl": { "version": "2.0.3", "resolved": "https://registry.npmmirror.com/shvl/-/shvl-2.0.3.tgz", @@ -26361,6 +26421,11 @@ } } }, + "sortablejs": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/sortablejs/-/sortablejs-1.10.2.tgz", + "integrity": "sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A==" + }, "source-list-map": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/source-list-map/-/source-list-map-2.0.1.tgz", @@ -26778,8 +26843,7 @@ "supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" }, "svg-tags": { "version": "1.0.0", @@ -27606,6 +27670,14 @@ "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", "dev": true }, + "useless-files-webpack-plugin": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/useless-files-webpack-plugin/-/useless-files-webpack-plugin-1.0.1.tgz", + "integrity": "sha512-k1CXjiehq3gpDvZmUJB7RLBbYjsBLFcBWDp7FQunYnPpo1W8zjHceqOr7J5N0NZndmLotodKurARWua71E/ADA==", + "requires": { + "shelljs": "^0.8.1" + } + }, "util": { "version": "0.11.1", "resolved": "https://registry.npmmirror.com/util/-/util-0.11.1.tgz", @@ -27930,6 +28002,14 @@ "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==", "dev": true }, + "vuedraggable": { + "version": "2.24.3", + "resolved": "https://registry.npmjs.org/vuedraggable/-/vuedraggable-2.24.3.tgz", + "integrity": "sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g==", + "requires": { + "sortablejs": "1.10.2" + } + }, "vuex": { "version": "3.6.2", "resolved": "https://registry.npmmirror.com/vuex/-/vuex-3.6.2.tgz", @@ -28716,8 +28796,7 @@ "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "write": { "version": "1.0.3", diff --git a/package.json b/package.json index 7d62aa0..a7cd927 100644 --- a/package.json +++ b/package.json @@ -12,13 +12,17 @@ "core-js": "^3.6.5", "crypto-js": "^4.1.1", "element-ui": "^2.4.5", + "lg-thumbnail.js": "^1.2.0", + "lightgallery.js": "^1.4.0", "markdown-it": "^12.2.0", "mavon-editor": "^2.9.1", "qs": "^6.10.3", + "useless-files-webpack-plugin": "^1.0.1", "vue": "^2.6.11", "vue-baberrage": "^3.2.4", "vue-ripple-directive": "^2.0.1", "vue-router": "^3.2.0", + "vuedraggable": "^2.24.3", "vuex": "^3.4.0", "vuex-persistedstate": "^4.0.0" }, diff --git a/public/index.html b/public/index.html index e9bf75b..aadd1f5 100644 --- a/public/index.html +++ b/public/index.html @@ -1,19 +1,57 @@ - + + + + + + + + + + + - - - Sara - - + + + Roginx + + + + + - + + + + + + + + + + + + + + diff --git a/src/components/admin/common/sidebar.vue b/src/components/admin/common/sidebar.vue index 3d4517a..45fc71d 100644 --- a/src/components/admin/common/sidebar.vue +++ b/src/components/admin/common/sidebar.vue @@ -60,6 +60,11 @@ icon: "el-icon-postcard", index: "/postList", title: "文章管理" + }, + { + icon: "el-icon-postcard", + index: "/postShuoshuo", + title: "动态管理" }, { icon: "el-icon-notebook-2", index: "/sortList", diff --git a/src/components/admin/postShuoshuo.vue b/src/components/admin/postShuoshuo.vue new file mode 100644 index 0000000..db63591 --- /dev/null +++ b/src/components/admin/postShuoshuo.vue @@ -0,0 +1,349 @@ + + + + + diff --git a/src/components/article.vue b/src/components/article.vue index 7eb97a3..7515cb4 100644 --- a/src/components/article.vue +++ b/src/components/article.vue @@ -126,7 +126,8 @@ -
+
+
文章最后更新于 {{ article.updateTime }} @@ -191,6 +192,7 @@ const comment = () => import( "./comment/comment"); const process = () => import( "./common/process"); const commentBox = () => import( "./comment/commentBox"); + import {navigation} from '../utils/tools.js' import MarkdownIt from 'markdown-it'; export default { @@ -203,6 +205,7 @@ data() { return { + dynamicGallery:null, id: this.$route.query.id, article: {}, articleContentHtml: "", @@ -215,7 +218,8 @@ this.getArticle(); }, mounted() { - // window.addEventListener("scroll", this.onScrollPage); + this.$store.commit("changePlaylist", 489085857) + // window.addEventListener("scroll", this.onScrollPage) }, methods: { deleteTreeHole(id) { @@ -329,6 +333,55 @@ }); } }, + /** + * 描点功能 + */ + checkAnchor(){ + this.$nextTick(()=>{ + $(this.$refs.articleContent).find("a").toArray().forEach((item)=>{ + let anchor = item.href; + if(anchor.indexOf("#SECTION")!=-1){ + item.onclick=function(e){ + navigation(anchor.substring(anchor.indexOf("#SECTION"),anchor.length)) + }; + item.href="javascript:void(0);"; + } else { + item.target = "_blank"; + } + }); + }) + }, + checkImage(){ + this.$nextTick(()=>{ + let images = $(this.$refs.articleContent).find("img").toArray() + this.dynamicGallery?.destroy() + if (images.length > 0) { + this.dynamicGallery = lightGallery(document.createElement("div"), { + mobileSettings: { + controls: false, + showCloseIcon: true, + download: false, + }, + dynamic: true, + thumbnail: true, + controls: false, + plugins: [lgZoom, lgThumbnail, lgRotate, lgAutoplay, lgFullscreen], + dynamicEl: images.map((obj) => { + return { + src: obj.src, + thumb: obj.thumb ? obj.thumb : obj.src, + subHtml: `

${obj.alt}

`, + } + }), + }) + } + images.forEach(element => { + element.onclick = ()=>{ + this.dynamicGallery.openGallery(images.indexOf((element))); + } + }); + }) + }, addId() { let headings = $(".entry-content").find("h1, h2, h3, h4, h5, h6"); headings.attr('id', (i, id) => id || 'toc-' + i); @@ -339,11 +392,16 @@ if (!this.$common.isEmpty(res.data)) { this.article = res.data; this.getNews(); - const md = new MarkdownIt({breaks: true}); + const md = new MarkdownIt({breaks: true,html:true,linkify:true,typographer:true}); + this.articleContentHtml = this.article.articleContent; this.articleContentHtml = md.render(this.article.articleContent); + console.log(this.articleContentHtml); this.$nextTick(() => { + document.title = this.article.articleTitle this.highlight(); this.addId(); + this.checkAnchor(); + this.checkImage(); // todo 只有程序相关文章才显示toc // this.getTocbot(); }); @@ -445,6 +503,7 @@ bottom: 15px; left: 20%; color: var(--white); + text-shadow: 1px 1px 5px #00000088; } .article-info-news { diff --git a/src/components/articleList.vue b/src/components/articleList.vue index 5d01861..fe0705e 100644 --- a/src/components/articleList.vue +++ b/src/components/articleList.vue @@ -135,7 +135,7 @@ - {{ article.label.labelName }} + {{article.label?article.label.labelName:"" }}
diff --git a/src/components/bangumi.vue b/src/components/bangumi.vue new file mode 100644 index 0000000..f6d45d2 --- /dev/null +++ b/src/components/bangumi.vue @@ -0,0 +1,421 @@ + + + + + + diff --git a/src/components/common/anime.vue b/src/components/common/anime.vue new file mode 100644 index 0000000..2b4a279 --- /dev/null +++ b/src/components/common/anime.vue @@ -0,0 +1,174 @@ + + + + + + diff --git a/src/components/common/emoji.vue b/src/components/common/emoji.vue index 420003d..e6d16b4 100644 --- a/src/components/common/emoji.vue +++ b/src/components/common/emoji.vue @@ -1,13 +1,25 @@ @@ -44,7 +47,7 @@ } .icp, .icp a { - color: var(--maxGreyFont); + color: var(--white); font-size: 13px; } diff --git a/src/components/common/package.json b/src/components/common/package.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/src/components/common/package.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/components/common/shuoshuo.vue b/src/components/common/shuoshuo.vue new file mode 100644 index 0000000..74899ae --- /dev/null +++ b/src/components/common/shuoshuo.vue @@ -0,0 +1,409 @@ + + + + + diff --git a/src/components/common/summary.vue b/src/components/common/summary.vue new file mode 100644 index 0000000..de4da9b --- /dev/null +++ b/src/components/common/summary.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/src/components/common/twoPoem.vue b/src/components/common/twoPoem.vue index 5013167..c0db394 100644 --- a/src/components/common/twoPoem.vue +++ b/src/components/common/twoPoem.vue @@ -2,10 +2,10 @@
-
diff --git a/src/components/friend.vue b/src/components/friend.vue index 90ea827..392439c 100644 --- a/src/components/friend.vue +++ b/src/components/friend.vue @@ -3,7 +3,7 @@
diff --git a/src/components/home.vue b/src/components/home.vue index 5c1858f..0ed4e87 100644 --- a/src/components/home.vue +++ b/src/components/home.vue @@ -71,15 +71,8 @@
  • - - - - -  社交 + + 🎠生活
  • @@ -158,7 +151,12 @@ 💃 友人帐
    - + +
  • +
    + 🔮 追番 +
    +
  • @@ -190,7 +188,7 @@ + :src="!$common.isEmpty($store.state.currentUser)?$store.state.currentUser.avatar:$constant.random_avatar(Date.now()-Date.now()% (60 * 1000))"> @@ -216,7 +214,9 @@
    - +
    + +
    @@ -240,14 +240,18 @@
    +
    + + +
    - +
    - +
    @@ -313,15 +317,7 @@
  • - - - - -  社交 + 🎠生活
  • @@ -394,6 +390,11 @@  留言 +
  • +
    + 🔮 追番 +
    +
  • @@ -458,206 +459,227 @@ diff --git a/src/components/message.vue b/src/components/message.vue index 19c5524..3006b68 100644 --- a/src/components/message.vue +++ b/src/components/message.vue @@ -3,8 +3,7 @@
    diff --git a/src/components/myAside.vue b/src/components/myAside.vue index b5c9e06..f77eba3 100644 --- a/src/components/myAside.vue +++ b/src/components/myAside.vue @@ -1,5 +1,12 @@