diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..09c2e42 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "@antfu" +} diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index e866155..0000000 --- a/.prettierrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "printWidth": 100, - "semi": false, - "singleQuote": true -} diff --git a/.vscode/settings.json b/.vscode/settings.json index 8106b95..1a5f1c9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,9 @@ { - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", + "prettier.enable": false, + "editor.formatOnSave": false, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, "tailwindCSS.files.exclude": [ "**/.git/**", "**/node_modules/**", diff --git a/app.vue b/app.vue index f3a9365..03c259e 100644 --- a/app.vue +++ b/app.vue @@ -1,12 +1,12 @@ -

+

{{ title }}

-

+

{{ description }}

-
+

Read More

diff --git a/components/category/card.vue b/components/category/card.vue index 0071095..8e23dfb 100644 --- a/components/category/card.vue +++ b/components/category/card.vue @@ -22,7 +22,7 @@ const color = [ ] // get a random number -const getRandomInt = (min: number, max: number) => { +function getRandomInt(min: number, max: number) { min = Math.ceil(min) max = Math.floor(max) return Math.floor(Math.random() * (max - min + 1)) + min diff --git a/components/category/hero.vue b/components/category/hero.vue index f67e3f8..6dde6ab 100644 --- a/components/category/hero.vue +++ b/components/category/hero.vue @@ -2,7 +2,9 @@
-

Categories

+

+ Categories +

Blow All the topics are listed on which either I have written a blog or will write a blog in near future. diff --git a/components/category/topic.vue b/components/category/topic.vue index 8d60afe..b548601 100644 --- a/components/category/topic.vue +++ b/components/category/topic.vue @@ -5,10 +5,11 @@ const route = useRoute() // take category from route params & make first char upper const category = computed(() => { - let name = route.params.category || '' + const name = route.params.category || '' let strName = '' - if (name instanceof Array) strName = name.at(0) || '' + if (Array.isArray(name)) + strName = name.at(0) || '' else strName = name return makeFirstCharUpper(strName) }) diff --git a/components/footer/connect.vue b/components/footer/connect.vue new file mode 100644 index 0000000..1ce02e2 --- /dev/null +++ b/components/footer/connect.vue @@ -0,0 +1,18 @@ + diff --git a/components/footer/devloper.vue b/components/footer/devloper.vue new file mode 100644 index 0000000..f48e657 --- /dev/null +++ b/components/footer/devloper.vue @@ -0,0 +1,45 @@ + diff --git a/components/footer/link.vue b/components/footer/link.vue new file mode 100644 index 0000000..54c819d --- /dev/null +++ b/components/footer/link.vue @@ -0,0 +1,19 @@ + diff --git a/components/footer/site.vue b/components/footer/site.vue new file mode 100644 index 0000000..15f7dfd --- /dev/null +++ b/components/footer/site.vue @@ -0,0 +1,10 @@ + diff --git a/components/logo/404.vue b/components/logo/404.vue new file mode 100644 index 0000000..2fa635b --- /dev/null +++ b/components/logo/404.vue @@ -0,0 +1,388 @@ + diff --git a/components/logo/arrow.vue b/components/logo/arrow.vue index 0d76ac3..cadaf08 100644 --- a/components/logo/arrow.vue +++ b/components/logo/arrow.vue @@ -8,7 +8,7 @@ stroke-linejoin="round" class="w-4 h-4 ml-2 transform group-hover:translate-x-2 duration-500" > - - + + diff --git a/components/logo/confused.vue b/components/logo/confused.vue index 387fa61..070e679 100644 --- a/components/logo/confused.vue +++ b/components/logo/confused.vue @@ -11,80 +11,80 @@ + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> diff --git a/components/logo/date.vue b/components/logo/date.vue index 0d498b8..11cce49 100644 --- a/components/logo/date.vue +++ b/components/logo/date.vue @@ -11,6 +11,6 @@ stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" - > + /> diff --git a/components/logo/dog.vue b/components/logo/dog.vue index 95def84..78c67a5 100644 --- a/components/logo/dog.vue +++ b/components/logo/dog.vue @@ -4,485 +4,485 @@ + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> - + + /> + /> + /> diff --git a/components/logo/dogpow.vue b/components/logo/dogpow.vue index ca24749..5502704 100644 --- a/components/logo/dogpow.vue +++ b/components/logo/dogpow.vue @@ -4,192 +4,192 @@ + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> diff --git a/components/logo/dogs.vue b/components/logo/dogs.vue index c548feb..907ad45 100644 --- a/components/logo/dogs.vue +++ b/components/logo/dogs.vue @@ -5,7 +5,7 @@ id="freepik--floor--inject-38" d="M85.16,261.63c-91,52.56-91,137.78,0,190.34s238.65,52.56,329.68,0,91-137.78,0-190.34S176.19,209.07,85.16,261.63Z" style="fill: #f5f5f5" - > + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> @@ -164,192 +164,192 @@ + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> @@ -357,242 +357,242 @@ + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> + /> @@ -601,37 +601,37 @@ + /> + /> + /> + /> + /> + /> + /> + /> diff --git a/components/logo/tag.vue b/components/logo/tag.vue index c5c9e6c..092456f 100644 --- a/components/logo/tag.vue +++ b/components/logo/tag.vue @@ -11,6 +11,6 @@ stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" - > + /> diff --git a/components/main/footer.vue b/components/main/footer.vue index 31e4b63..abbe756 100644 --- a/components/main/footer.vue +++ b/components/main/footer.vue @@ -1,80 +1,39 @@ + + + + diff --git a/components/main/header.vue b/components/main/header.vue index 0c740d1..3965b83 100644 --- a/components/main/header.vue +++ b/components/main/header.vue @@ -1,25 +1,33 @@