Parcourir la source

修改ESLint规则;

更改懒路由;
修改目录别名;
dev
X il y a 4 ans
Parent
révision
8231ccde3d
5 fichiers modifiés avec 10409 ajouts et 283 suppressions
  1. +15
    -1
      .eslintrc.js
  2. +31
    -31
      package.json
  3. +158
    -216
      src/router/index.js
  4. +35
    -35
      vue.config.js
  5. +10170
    -0
      yarn.lock

+ 15
- 1
.eslintrc.js Voir le fichier

@@ -13,7 +13,21 @@ module.exports = {
rules: {
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
//强制使用单引号
quotes: [0, 'single'],
//强制不使用分号结尾
semi: [0, 'never'],
'prettier/prettier': [
0,
{
singleQuote: true,
trailingComma: 'none',
bracketSpacing: true,
jsxBracketSameLine: true,
parser: 'flow',
},
],
},
globals: {
cash: true,


+ 31
- 31
package.json Voir le fichier

@@ -1,5 +1,5 @@
{
"name": "midone-vue",
"name": "zyos-admin",
"version": "0.1.0",
"private": true,
"scripts": {
@@ -8,38 +8,38 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"@ckeditor/ckeditor5-basic-styles": "^23.1.0",
"@ckeditor/ckeditor5-dev-utils": "^23.6.1",
"@ckeditor/ckeditor5-dev-webpack-plugin": "^23.6.1",
"@ckeditor/ckeditor5-easy-image": "^23.1.0",
"@ckeditor/ckeditor5-editor-balloon": "^23.1.0",
"@ckeditor/ckeditor5-editor-classic": "^23.1.0",
"@ckeditor/ckeditor5-editor-decoupled": "^23.1.0",
"@ckeditor/ckeditor5-editor-inline": "^23.1.0",
"@ckeditor/ckeditor5-essentials": "^23.1.0",
"@ckeditor/ckeditor5-font": "^23.1.0",
"@ckeditor/ckeditor5-heading": "^23.1.0",
"@ckeditor/ckeditor5-highlight": "^23.1.0",
"@ckeditor/ckeditor5-link": "^23.1.0",
"@ckeditor/ckeditor5-paragraph": "^23.1.0",
"@ckeditor/ckeditor5-theme-lark": "^23.1.0",
"@ckeditor/ckeditor5-vue": "^2.0.1",
"@ckeditor/ckeditor5-basic-styles": "^21.0.0",
"@ckeditor/ckeditor5-dev-utils": "^23.1.1",
"@ckeditor/ckeditor5-dev-webpack-plugin": "^23.1.1",
"@ckeditor/ckeditor5-easy-image": "^21.0.0",
"@ckeditor/ckeditor5-editor-balloon": "^21.0.0",
"@ckeditor/ckeditor5-editor-classic": "^21.0.0",
"@ckeditor/ckeditor5-editor-decoupled": "^21.0.0",
"@ckeditor/ckeditor5-editor-inline": "^21.0.0",
"@ckeditor/ckeditor5-essentials": "^21.0.0",
"@ckeditor/ckeditor5-font": "^21.0.0",
"@ckeditor/ckeditor5-heading": "^21.0.0",
"@ckeditor/ckeditor5-highlight": "^21.0.0",
"@ckeditor/ckeditor5-link": "^21.0.0",
"@ckeditor/ckeditor5-paragraph": "^21.0.0",
"@ckeditor/ckeditor5-theme-lark": "^21.0.0",
"@ckeditor/ckeditor5-vue": "^1.0.1",
"@google/markerclusterer": "^2.0.8",
"@popperjs/core": "^2.5.4",
"cash-dom": "^8.1.0",
"chart.js": "^2.9.4",
"core-js": "^3.8.0",
"dayjs": "^1.9.6",
"@popperjs/core": "^2.4.4",
"cash-dom": "^8.0.0",
"chart.js": "^2.9.3",
"core-js": "^3.6.5",
"dayjs": "^1.8.29",
"feather-icons": "^4.28.0",
"google-maps-api-loader": "^1.1.1",
"highlight.js": "^10.4.1",
"js-beautify": "^1.13.0",
"highlight.js": "^10.1.1",
"js-beautify": "^1.11.0",
"litepicker": "^1.5.7",
"lodash": "^4.17.20",
"postcss-loader": "4",
"raw-loader": "4.0.2",
"sass-loader": "^10.1.0",
"tabulator-tables": "^4.9.1",
"lodash": "^4.17.19",
"postcss-loader": "3",
"raw-loader": "0.5.1",
"sass-loader": "^9.0.2",
"tabulator-tables": "^4.7.2",
"tail.select": "^0.5.15",
"toastify-js": "^1.9.3",
"velocity-animate": "^1.5.2",
@@ -66,9 +66,9 @@
"eslint": "^7.14.0",
"eslint-plugin-prettier": "^3.2.0",
"eslint-plugin-vue": "^7.2.0",
"node-sass": "^5.0.0",
"node-sass": "^4.12.0",
"prettier": "^2.2.1",
"tailwindcss": "^2.0.1",
"tailwindcss": "^1.5.1",
"vue-template-compiler": "^2.6.12"
},
"eslintConfig": {


+ 158
- 216
src/router/index.js
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 35
- 35
vue.config.js Voir le fichier

@@ -1,42 +1,42 @@
const webpack = require("webpack");
const path = require("path");
const CKEditorWebpackPlugin = require("@ckeditor/ckeditor5-dev-webpack-plugin");
const { styles } = require("@ckeditor/ckeditor5-dev-utils");
const {styles} = require("@ckeditor/ckeditor5-dev-utils");

module.exports = {
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
cash: "cash-dom"
}),
new CKEditorWebpackPlugin({
language: "en",
translationsOutputFile: /app/
})
]
},
transpileDependencies: [/ckeditor5-[^/\\]+[/\\]src[/\\].+\.js$/],
chainWebpack: config => {
const svgRule = config.module.rule("svg");
svgRule.exclude.add(path.join(__dirname, "node_modules", "@ckeditor"));
config.module
.rule("cke-svg")
.test(/ckeditor5-[^/\\]+[/\\]theme[/\\]icons[/\\][^/\\]+\.svg$/)
.use("raw-loader")
.loader("raw-loader");
configureWebpack: {
plugins: [
new webpack.ProvidePlugin({
cash: "cash-dom"
}),
new CKEditorWebpackPlugin({
language: "en",
translationsOutputFile: /app/
})
],
},
transpileDependencies: [/ckeditor5-[^/\\]+[/\\]src[/\\].+\.js$/],
chainWebpack: config => {
const svgRule = config.module.rule("svg");
svgRule.exclude.add(path.join(__dirname, "node_modules", "@ckeditor"));
config.module
.rule("cke-svg")
.test(/ckeditor5-[^/\\]+[/\\]theme[/\\]icons[/\\][^/\\]+\.svg$/)
.use("raw-loader")
.loader("raw-loader");

config.module
.rule("cke-css")
.test(/ckeditor5-[^/\\]+[/\\].+\.css$/)
.use("postcss-loader")
.loader("postcss-loader")
.tap(() => {
return styles.getPostCssConfig({
themeImporter: {
themePath: require.resolve("@ckeditor/ckeditor5-theme-lark")
},
minify: true
});
});
}
config.module
.rule("cke-css")
.test(/ckeditor5-[^/\\]+[/\\].+\.css$/)
.use("postcss-loader")
.loader("postcss-loader")
.tap(() => {
return styles.getPostCssConfig({
themeImporter: {
themePath: require.resolve("@ckeditor/ckeditor5-theme-lark")
},
minify: true
});
});
}
};

+ 10170
- 0
yarn.lock
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


Chargement…
Annuler
Enregistrer