From db7848e0db06c56460ab793b8f37d6b820e4f84d Mon Sep 17 00:00:00 2001 From: AndualemSebsbe Date: Fri, 5 Aug 2022 20:43:43 +0300 Subject: [PATCH 1/2] [web] andualem added CRUD operations --- starter-project-web-vue2/.eslintrc.js | 13 +- starter-project-web-vue2/README.md | 4 +- starter-project-web-vue2/assets/variables.css | 2 +- starter-project-web-vue2/commitlint.config.js | 4 +- .../components/abraham/AbrahamAddBlog.vue | 4 +- .../components/abraham/AbrahamBlogPost.vue | 10 +- .../components/abraham/UserAuthForm.vue | 6 +- .../components/andualem/AndualemAddBlog.vue | 0 .../components/andualem/AndualemBlogPost.vue | 0 .../components/andualem/NavigationBar.vue | 0 .../components/andualem/UserAuthForm.vue | 0 starter-project-web-vue2/jest.config.js | 14 +- starter-project-web-vue2/layouts/default.vue | 50 ++--- starter-project-web-vue2/nuxt.config.js | 30 +-- .../pages/abraham/login.vue | 4 +- .../pages/abraham/register.vue | 6 +- .../pages/andualem/_id.vue | 54 +++++ .../pages/andualem/index.vue | 195 ++++++++++++------ starter-project-web-vue2/pages/index.vue | 12 +- starter-project-web-vue2/store/andualem.js | 51 +++++ starter-project-web-vue2/stylelint.config.js | 4 +- starter-project-web-vue2/utils/validations.js | 36 ++-- 22 files changed, 318 insertions(+), 181 deletions(-) delete mode 100644 starter-project-web-vue2/components/andualem/AndualemAddBlog.vue delete mode 100644 starter-project-web-vue2/components/andualem/AndualemBlogPost.vue delete mode 100644 starter-project-web-vue2/components/andualem/NavigationBar.vue delete mode 100644 starter-project-web-vue2/components/andualem/UserAuthForm.vue create mode 100644 starter-project-web-vue2/pages/andualem/_id.vue create mode 100644 starter-project-web-vue2/store/andualem.js diff --git a/starter-project-web-vue2/.eslintrc.js b/starter-project-web-vue2/.eslintrc.js index b7166f48..63024360 100644 --- a/starter-project-web-vue2/.eslintrc.js +++ b/starter-project-web-vue2/.eslintrc.js @@ -2,19 +2,14 @@ module.exports = { root: true, env: { browser: true, - node: true + node: true, }, parserOptions: { parser: '@babel/eslint-parser', - requireConfigFile: false + requireConfigFile: false, }, - extends: [ - '@nuxtjs', - 'plugin:nuxt/recommended', - 'prettier' - ], - plugins: [ - ], + extends: ['@nuxtjs', 'plugin:nuxt/recommended', 'prettier'], + plugins: [], rules: { 'vue/multi-word-component-names': 'off', }, diff --git a/starter-project-web-vue2/README.md b/starter-project-web-vue2/README.md index f7e1208a..92c2d3a4 100644 --- a/starter-project-web-vue2/README.md +++ b/starter-project-web-vue2/README.md @@ -16,7 +16,7 @@ 6. Add a file called index.vue in your pages folder. This page will be used to display a list of blogs. -7. Add a file called _id.vue in your pages folder. This page will be used to display a single blog. +7. Add a file called \_id.vue in your pages folder. This page will be used to display a single blog. 8. Add any components you want to use in your pages to your components folder. (ex. the component used to display a single blog on the list page.) @@ -45,7 +45,7 @@ ### End to End Testing -. . . +. . . ## Build Setup diff --git a/starter-project-web-vue2/assets/variables.css b/starter-project-web-vue2/assets/variables.css index f3e2dc35..9e3adf33 100644 --- a/starter-project-web-vue2/assets/variables.css +++ b/starter-project-web-vue2/assets/variables.css @@ -1 +1 @@ -/* No CSS *//*# sourceMappingURL=variables.css.map */ \ No newline at end of file +/* No CSS */ /*# sourceMappingURL=variables.css.map */ diff --git a/starter-project-web-vue2/commitlint.config.js b/starter-project-web-vue2/commitlint.config.js index 69b4242c..98ee7dfc 100644 --- a/starter-project-web-vue2/commitlint.config.js +++ b/starter-project-web-vue2/commitlint.config.js @@ -1,3 +1,3 @@ module.exports = { - extends: ["@commitlint/config-conventional"], -}; + extends: ['@commitlint/config-conventional'], +} diff --git a/starter-project-web-vue2/components/abraham/AbrahamAddBlog.vue b/starter-project-web-vue2/components/abraham/AbrahamAddBlog.vue index 605fb891..cd560b82 100644 --- a/starter-project-web-vue2/components/abraham/AbrahamAddBlog.vue +++ b/starter-project-web-vue2/components/abraham/AbrahamAddBlog.vue @@ -1,6 +1,6 @@