From 48941bd47056027af7d217bd7e143ef6f9a5d6e7 Mon Sep 17 00:00:00 2001 From: khatabwedaa Date: Sat, 15 Aug 2020 12:21:08 +0000 Subject: [PATCH] Prettified Code! --- README.md | 15 +++++++++------ babel.config.js | 4 ++-- postcss.config.js | 12 ++++++------ src/router.js | 24 ++++++++++++------------ tailwind.config.js | 10 ++++------ 5 files changed, 33 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 09349a3..5fff48e 100644 --- a/README.md +++ b/README.md @@ -4,32 +4,35 @@ ### Resources -- [Tailwindcss](https://tailwindcss.com) -- [Heroicons](https://heroicons.dev) -- [CSS Icons](https://css.gg) +- [Tailwindcss](https://tailwindcss.com) +- [Heroicons](https://heroicons.dev) +- [CSS Icons](https://css.gg) ### Project setup + ``` npm install ``` ### Compiles and hot-reloads for development + ``` npm run serve ``` ### Compiles and minifies for production + ``` npm run build ``` ### Lints and fixes files + ``` npm run lint ``` ### Authors -- **Mosab Ibrahim** [Github](https://github.com/Miaababikir) -- **Khatab Wedaa** [Github](https://github.com/khatabwedaa) - +- **Mosab Ibrahim** [Github](https://github.com/Miaababikir) +- **Khatab Wedaa** [Github](https://github.com/khatabwedaa) diff --git a/babel.config.js b/babel.config.js index 8cd104a..ae71563 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,4 +1,4 @@ module.exports = { - presets: ["@vue/cli-plugin-babel/preset"], - plugins: ["@babel/plugin-syntax-dynamic-import"], + presets: ["@vue/cli-plugin-babel/preset"], + plugins: ["@babel/plugin-syntax-dynamic-import"], }; diff --git a/postcss.config.js b/postcss.config.js index 9ab4fe2..a7c599b 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,7 +1,7 @@ module.exports = { - plugins: [ - require("postcss-import"), - require("tailwindcss"), - require("autoprefixer"), - ], -}; \ No newline at end of file + plugins: [ + require("postcss-import"), + require("tailwindcss"), + require("autoprefixer"), + ], +}; diff --git a/src/router.js b/src/router.js index c292cba..b9071c7 100644 --- a/src/router.js +++ b/src/router.js @@ -9,17 +9,17 @@ const Sections = () => import("./components/categories/Sections"); const Paginations = () => import("./components/categories/Paginations"); const Footers = () => import("./components/categories/Footers"); - export default new VueRouter({ - mode: 'history', +export default new VueRouter({ + mode: "history", routes: [ - { path: "/", redirect: "/alerts" }, - { path: "/alerts", component: Alerts, name: "Alerts" }, - { path: "/cards", component: Cards, name: "Cards" }, - { path: "/forms", component: Forms, name: "Forms" }, - { path: "/navbars", component: Navbars, name: "Navbars" }, - { path: "/headers", component: Headers, name: "Headers" }, - { path: "/sections", component: Sections, name: "Sections" }, - { path: "/paginations", component: Paginations, name: "Paginations" }, - { path: "/footers", component: Footers, name: "Footers" }, + { path: "/", redirect: "/alerts" }, + { path: "/alerts", component: Alerts, name: "Alerts" }, + { path: "/cards", component: Cards, name: "Cards" }, + { path: "/forms", component: Forms, name: "Forms" }, + { path: "/navbars", component: Navbars, name: "Navbars" }, + { path: "/headers", component: Headers, name: "Headers" }, + { path: "/sections", component: Sections, name: "Sections" }, + { path: "/paginations", component: Paginations, name: "Paginations" }, + { path: "/footers", component: Footers, name: "Footers" }, ], - }); +}); diff --git a/tailwind.config.js b/tailwind.config.js index 2ea3b63..1cfd941 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,17 +1,15 @@ module.exports = { - purge: [ - './src/**/*.vue', - ], + purge: ["./src/**/*.vue"], theme: { extend: { fontFamily: { - roboto: ['Roboto'], + roboto: ["Roboto"], }, spacing: { - '96': '24rem', + "96": "24rem", }, }, }, variants: {}, plugins: [], -} +};