From 72d146ba3f0e22ececae44c32982df24d8ba4271 Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 29 Mar 2022 22:34:21 +0800 Subject: [PATCH] init --- .eslintrc.js | 3 +- .vscode/settings.json | 31 ++++++------ src/App.vue | 16 ++++-- src/pages/ConfigurationPage.vue | 89 +++++++++++++++++++++++++++++++++ src/router/routes.js | 30 +++++------ 5 files changed, 136 insertions(+), 33 deletions(-) create mode 100644 src/pages/ConfigurationPage.vue diff --git a/.eslintrc.js b/.eslintrc.js index ec5fac9..50c3528 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -59,7 +59,8 @@ module.exports = { // add your custom rules here rules: { - 'prefer-promise-reject-errors': 'off', + 'prefer-promise-reject-errors': 'off', + 'eslint-disable-next-line': 'off', // allow debugger during development only 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' diff --git a/.vscode/settings.json b/.vscode/settings.json index b3bb1e4..8c947f1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,15 +1,18 @@ { - "editor.bracketPairColorization.enabled": true, - "editor.guides.bracketPairs": true, - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.codeActionsOnSave": [ - "source.fixAll.eslint" - ], - "eslint.validate": [ - "javascript", - "javascriptreact", - "typescript", - "vue" - ] -} \ No newline at end of file + "editor.bracketPairColorization.enabled": true, + "editor.guides.bracketPairs": true, + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.codeActionsOnSave": [ + "source.fixAll.eslint" + ], + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "vue" + ], + "[vue]": { + "editor.defaultFormatter": "octref.vetur" + } +} diff --git a/src/App.vue b/src/App.vue index 38442ee..050e5b7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,9 +3,19 @@ diff --git a/src/pages/ConfigurationPage.vue b/src/pages/ConfigurationPage.vue new file mode 100644 index 0000000..f8c1e2c --- /dev/null +++ b/src/pages/ConfigurationPage.vue @@ -0,0 +1,89 @@ + + + diff --git a/src/router/routes.js b/src/router/routes.js index a731a8f..c582ed2 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -1,19 +1,19 @@ - const routes = [ - { - path: '/', - component: () => import('layouts/MainLayout.vue'), - children: [ - { path: '', component: () => import('pages/IndexPage.vue') } - ] - }, - - // Always leave this as last one, - // but you can also remove it - { - path: '/:catchAll(.*)*', - component: () => import('pages/ErrorNotFound.vue') - } + { + path: '/', + component: () => import('layouts/MainLayout.vue'), + children: [ + { path: '', component: () => import('pages/IndexPage.vue') } + ] + }, + { + path: '/configuration', + component: () => import('pages/ConfigurationPage.vue') + }, + { + path: '/code', + component: () => import('pages/CodeRunner.vue') + } ] export default routes