From 111115b9735fa2315a1837b42b475734a629b28f Mon Sep 17 00:00:00 2001 From: Aleksandr Dergunov Date: Tue, 16 Mar 2021 17:55:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 13 ++++++ .gitignore | 85 +--------------------------------------- .prettierrc | 5 +++ components/PageForm.vue | 13 +++--- components/TheHeader.vue | 6 --- jsconfig.json | 12 ++++++ pages/index.vue | 5 +-- pages/page/_url.vue | 6 ++- readme.md | 1 - server/index.js | 6 +-- server/model/page.js | 4 +- 11 files changed, 48 insertions(+), 108 deletions(-) create mode 100644 .editorconfig create mode 100644 .prettierrc create mode 100644 jsconfig.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d12634 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/.gitignore b/.gitignore index 37f7608..b18c99a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,87 +1,4 @@ -.editorconfig -.prettierrc -jsconfig.json -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# 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 - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://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/ - -# TypeScript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file .env - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# nuxt.js build output .nuxt - -# Nuxt generate +node_modules/ dist - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless - -# IDE / Editor -.idea -.editorconfig - -# Service worker -sw.* - -# Mac OSX -.DS_Store - -# Vim swap files -*.swp diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..5016f7d --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "semi": true, + "singleQuote": false, + "printWidth": 120 +} diff --git a/components/PageForm.vue b/components/PageForm.vue index 95c15a2..bfc5c10 100644 --- a/components/PageForm.vue +++ b/components/PageForm.vue @@ -1,7 +1,7 @@