diff --git a/sub-admin/src/views/demo/table.vue b/sub-admin/src/views/demo/table.vue index 0fee528..bdf3705 100644 --- a/sub-admin/src/views/demo/table.vue +++ b/sub-admin/src/views/demo/table.vue @@ -1,5 +1,5 @@ - diff --git a/sub-government-affairs-service/.editorconfig b/sub-government-affairs-service/.editorconfig new file mode 100644 index 0000000..b453705 --- /dev/null +++ b/sub-government-affairs-service/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*.{js,jsx,ts,tsx,vue}] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true +end_of_line = auto \ No newline at end of file diff --git a/sub-government-affairs-service/.eslintignore b/sub-government-affairs-service/.eslintignore new file mode 100644 index 0000000..a69d31e --- /dev/null +++ b/sub-government-affairs-service/.eslintignore @@ -0,0 +1,14 @@ +*.sh +*.md +*.woff +*.ttf +.vscode +.idea +.husky +.local +dist +src/assets +node_modules +Dockerfile +stats.html +tailwind.config.js \ No newline at end of file diff --git a/sub-government-affairs-service/.eslintrc.cjs b/sub-government-affairs-service/.eslintrc.cjs new file mode 100644 index 0000000..974ba1b --- /dev/null +++ b/sub-government-affairs-service/.eslintrc.cjs @@ -0,0 +1,62 @@ +/* + * @Descripttion: .eslintrc.cjs + * 在VSCode中安装ESLint插件,编写过程中检测代码质量 + * ESLint 代码质量校验相关配置 + * 这里使用prettier作为代码格式化工具,用ESLint做代码质检 + * 相关配置使用下面extends扩展先做默认设置 + * 在.prettierrc.cjs文件中配置好后,格式化规则会以.prettierrc.cjs作为最终格式,所以不建议在本文件中做代码格式化相关配置 + * 相关prettier配置ESLint会默认加载为代码质检 格式化以prettier为主 + * 在本配置文件中只做代码质量约束规范配置 + * @Author: zenghua.wang + * @Date: 2022-09-22 15:53:58 + * @LastEditors: zenghua.wang + * @LastEditTime: 2024-03-22 10:19:39 + */ +module.exports = { + env: { + browser: true, + es2021: true, + node: true, + }, + extends: [ + 'eslint-config-prettier', + 'eslint:recommended', + // 'plugin:@typescript-eslint/recommended', + 'plugin:vue/vue3-recommended', + 'plugin:vue/vue3-essential', + 'plugin:prettier/recommended', + ], + overrides: [ + { + env: { + node: true, + }, + files: ['.eslintrc.{js,cjs}'], + parserOptions: { + sourceType: 'script', + }, + }, + ], + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + requireConfigFile: false, + parser: '@babel/eslint-parser', + // parser: '@typescript-eslint/parser', + }, + plugins: ['vue', 'prettier'], + globals: { + defineProps: 'readonly', + defineEmits: 'readonly', + defineExpose: 'readonly', + withDefaults: 'readonly', + }, + // 这里时配置规则的,自己看情况配置 + rules: { + 'prettier/prettier': 'error', + 'no-debugger': 'off', + 'no-unused-vars': 'off', + 'vue/no-unused-vars': 'off', + 'vue/multi-word-component-names': 'off', + }, +}; diff --git a/sub-government-affairs-service/.gitignore b/sub-government-affairs-service/.gitignore new file mode 100644 index 0000000..1f22b9c --- /dev/null +++ b/sub-government-affairs-service/.gitignore @@ -0,0 +1,116 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* diff --git a/sub-government-affairs-service/.prettierignore b/sub-government-affairs-service/.prettierignore new file mode 100644 index 0000000..701d2e4 --- /dev/null +++ b/sub-government-affairs-service/.prettierignore @@ -0,0 +1,20 @@ +## OS +.DS_Store +node_modules +.idea +.editorconfig +package-lock.json +.npmrc + +# Ignored suffix +*.log +*.md +*.svg +*.png +*ignore + +## Local + +## Built-files +.cache +dist \ No newline at end of file diff --git a/sub-government-affairs-service/.prettierrc.cjs b/sub-government-affairs-service/.prettierrc.cjs new file mode 100644 index 0000000..a5effb1 --- /dev/null +++ b/sub-government-affairs-service/.prettierrc.cjs @@ -0,0 +1,52 @@ +/* + * @Descripttion: .prettierrc.cjs + * 在VSCode中安装prettier插件 打开插件配置填写`.prettierrc.js` 将本文件作为其代码格式化规范 + * 在本文件中修改格式化规则,不会同时触发改变ESLint代码检查,所以每次修改本文件需要重启VSCode,ESLint检查才能同步代码格式化 + * 需要相应的代码格式化规范请自行查阅配置,下面为默认项目配置 + * @Author: zenghua.wang + * @Date: 2022-09-22 15:53:58 + * @LastEditors: zenghua.wang + * @LastEditTime: 2024-01-24 19:22:25 + */ +module.exports = { + // 一行最多多少个字符 + printWidth: 150, + // 指定每个缩进级别的空格数 + tabWidth: 2, + // 使用制表符而不是空格缩进行 + useTabs: false, + // 在语句末尾是否需要分号 + semi: true, + // 是否使用单引号 + singleQuote: true, + // 更改引用对象属性的时间 可选值"" + quoteProps: 'as-needed', + // 在JSX中使用单引号而不是双引号 + jsxSingleQuote: false, + // 多行时尽可能打印尾随逗号。(例如,单行数组永远不会出现逗号结尾。) 可选值"",默认none + trailingComma: 'es5', + // 在对象文字中的括号之间打印空格 + bracketSpacing: true, + // jsx 标签的反尖括号需要换行 + jsxBracketSameLine: false, + // 在单独的箭头函数参数周围包括括号 always:(x) => x \ avoid:x => x + arrowParens: 'always', + // 这两个选项可用于格式化以给定字符偏移量(分别包括和不包括)开始和结束的代码 + rangeStart: 0, + rangeEnd: Infinity, + // 指定要使用的解析器,不需要写文件开头的 @prettier + requirePragma: false, + // 不需要自动在文件开头插入 @prettier + insertPragma: false, + // 使用默认的折行标准 always\never\preserve + proseWrap: 'preserve', + // 指定HTML文件的全局空格敏感度 css\strict\ignore + htmlWhitespaceSensitivity: 'css', + // Vue文件脚本和样式标签缩进 + vueIndentScriptAndStyle: false, + //在 windows 操作系统中换行符通常是回车 (CR) 加换行分隔符 (LF),也就是回车换行(CRLF), + //然而在 Linux 和 Unix 中只使用简单的换行分隔符 (LF)。 + //对应的控制字符为 "\n" (LF) 和 "\r\n"(CRLF)。auto意为保持现有的行尾 + // 换行符使用 lf 结尾是 可选值"" + endOfLine: 'auto', +}; diff --git a/sub-government-affairs-service/.stylelintignore b/sub-government-affairs-service/.stylelintignore new file mode 100644 index 0000000..b1a1302 --- /dev/null +++ b/sub-government-affairs-service/.stylelintignore @@ -0,0 +1,17 @@ +# .stylelintignore +# 旧的不需打包的样式库 +*.min.css + +# 其他类型文件 +*.js +*.jpg +*.png +*.eot +*.ttf +*.woff +*.json + +# 测试和打包目录 +/dist/* +/node_modules/* +/src/assets/* \ No newline at end of file diff --git a/sub-government-affairs-service/.stylelintrc.cjs b/sub-government-affairs-service/.stylelintrc.cjs new file mode 100644 index 0000000..c5a5100 --- /dev/null +++ b/sub-government-affairs-service/.stylelintrc.cjs @@ -0,0 +1,131 @@ +/* + * @Descripttion: .stylelintrc.cjs + * @Author: zenghua.wang + * @Date: 2022-09-22 15:53:58 + * @LastEditors: zenghua.wang + * @LastEditTime: 2024-01-24 18:49:26 + */ +module.exports = { + root: true, + plugins: ['stylelint-order', 'stylelint-scss'], + extends: [ + 'stylelint-config-standard', + 'stylelint-config-standard-scss', + 'stylelint-config-prettier', + 'stylelint-config-html/vue', + 'stylelint-config-recommended-vue', + 'stylelint-config-recommended-scss' + ], + overrides: [ + { + files: ['**/*.{html,vue}'], + customSyntax: 'postcss-html' + } + ], + rules: { + indentation: 2, + 'selector-pseudo-element-no-unknown': [ + true, + { + ignorePseudoElements: ['v-deep', ':deep'] + } + ], + 'number-leading-zero': 'always', + 'no-descending-specificity': null, + 'function-url-quotes': 'always', + 'string-quotes': 'single', + 'unit-case': null, + 'color-hex-case': 'lower', + 'color-hex-length': 'long', + 'rule-empty-line-before': 'never', + 'font-family-no-missing-generic-family-keyword': null, + 'selector-type-no-unknown': null, + 'block-opening-brace-space-before': 'always', + 'at-rule-no-unknown': null, + 'no-duplicate-selectors': null, + 'property-no-unknown': null, + 'no-empty-source': null, + 'selector-class-pattern': null, + 'keyframes-name-pattern': null, + 'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['global', 'deep'] }], + 'function-no-unknown': null, + 'order/properties-order': [ + 'position', + 'top', + 'right', + 'bottom', + 'left', + 'z-index', + 'display', + 'justify-content', + 'align-items', + 'float', + 'clear', + 'overflow', + 'overflow-x', + 'overflow-y', + 'margin', + 'margin-top', + 'margin-right', + 'margin-bottom', + 'margin-left', + 'padding', + 'padding-top', + 'padding-right', + 'padding-bottom', + 'padding-left', + 'width', + 'min-width', + 'max-width', + 'height', + 'min-height', + 'max-height', + 'font-size', + 'font-family', + 'font-weight', + 'border', + 'border-style', + 'border-width', + 'border-color', + 'border-top', + 'border-top-style', + 'border-top-width', + 'border-top-color', + 'border-right', + 'border-right-style', + 'border-right-width', + 'border-right-color', + 'border-bottom', + 'border-bottom-style', + 'border-bottom-width', + 'border-bottom-color', + 'border-left', + 'border-left-style', + 'border-left-width', + 'border-left-color', + 'border-radius', + 'text-align', + 'text-justify', + 'text-indent', + 'text-overflow', + 'text-decoration', + 'white-space', + 'color', + 'background', + 'background-position', + 'background-repeat', + 'background-size', + 'background-color', + 'background-clip', + 'opacity', + 'filter', + 'list-style', + 'outline', + 'visibility', + 'box-shadow', + 'text-shadow', + 'resize', + 'transition' + ] + } +}; diff --git a/sub-government-affairs-service/src/layouts/component/Breadcrumb/index.vue b/sub-government-affairs-service/src/layouts/component/Breadcrumb/index.vue index c01ea2e..2d0908a 100644 --- a/sub-government-affairs-service/src/layouts/component/Breadcrumb/index.vue +++ b/sub-government-affairs-service/src/layouts/component/Breadcrumb/index.vue @@ -3,7 +3,7 @@ * @Author: zenghua.wang * @Date: 2023-06-20 14:29:45 * @LastEditors: zenghua.wang - * @LastEditTime: 2024-01-26 23:04:14 + * @LastEditTime: 2025-01-23 15:59:17 -->