diff --git a/.browserslistrc b/.browserslistrc index 214388f..256c3b8 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -1,3 +1,3 @@ -> 1% -last 2 versions -not dead +> 1% +last 2 versions +not dead diff --git a/.eslintrc.js b/.eslintrc.js index fdf9906..d2669b2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,6 +8,12 @@ module.exports = { parser: '@babel/eslint-parser', }, rules: { + 'prettier/prettier': [ + 'error', + { + endofLine: 'auto', + }, + ], 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', }, diff --git a/.gitignore b/.gitignore index 403adbc..978f3df 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,23 @@ -.DS_Store -node_modules -/dist - - -# local env files -.env.local -.env.*.local - -# Log files -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? +.DS_Store +node_modules +/dist + + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/.prettierignore b/.prettierignore index 76add87..a0270fb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,2 @@ -node_modules +node_modules dist \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index f03c717..73c841c 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,4 +4,5 @@ "singleQuote": true, "semi": false, "printWidth": 120 + } diff --git a/LICENSE b/LICENSE index 76e0c3b..2bcf850 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2022 琴理工作室 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2022 琴理工作室 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 1250f92..e722d9c 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,5 @@ npm run lint See [Configuration Reference](https://cli.vuejs.org/config/). ### 编辑器 -https://github.com/FE-Mars/monaco-editor-vue \ No newline at end of file + +https://github.com/FE-Mars/monaco-editor-vue diff --git a/src/App.vue b/src/App.vue index 884d55f..300b051 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,22 +1,20 @@ + diff --git a/src/router/index.js b/src/router/index.js index 68c8b6f..35b63ea 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,22 +1,40 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import HomeView from '../views/HomeView.vue' +import MyFile from '../views/MyFile.vue' +import MyAdd from '../components/MyAdd.vue' +import ShowData from '../views/ShowData.vue' +import MyUpdate from '../views/MyUpdate.vue' Vue.use(VueRouter) const routes = [ { path: '/', - name: 'home', - component: HomeView, + redirect: '/myfile', }, { - path: '/about', - name: 'about', + path: '/myfile', + name: 'myfile', + component: MyFile, + }, + { + path: '/myadd', + name: 'myadd', // route level code-splitting // this generates a separate chunk (about.[hash].js) for this route // which is lazy-loaded when the route is visited. - component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue'), + component: MyAdd, + }, + + { + path: '/MyUpdate', + name: 'MyUpdate', + component: MyUpdate, + }, + { + path: '/showdata', + name: 'showdata', + component: ShowData, }, ] diff --git a/src/store/bus.js b/src/store/bus.js new file mode 100644 index 0000000..b0230b5 --- /dev/null +++ b/src/store/bus.js @@ -0,0 +1,2 @@ +import Vue from 'vue' +export default new Vue() diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue deleted file mode 100644 index 3fa2807..0000000 --- a/src/views/AboutView.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/src/views/AllButton.vue b/src/views/AllButton.vue new file mode 100644 index 0000000..0ac2c4d --- /dev/null +++ b/src/views/AllButton.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue deleted file mode 100644 index 5515f22..0000000 --- a/src/views/HomeView.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/src/views/MyFile.vue b/src/views/MyFile.vue new file mode 100644 index 0000000..682bc25 --- /dev/null +++ b/src/views/MyFile.vue @@ -0,0 +1,141 @@ + + + + + diff --git a/src/views/MyUpdate.vue b/src/views/MyUpdate.vue new file mode 100644 index 0000000..688ab51 --- /dev/null +++ b/src/views/MyUpdate.vue @@ -0,0 +1,140 @@ + + + + diff --git a/src/views/ShowData.vue b/src/views/ShowData.vue new file mode 100644 index 0000000..65c03d7 --- /dev/null +++ b/src/views/ShowData.vue @@ -0,0 +1,5 @@ +