15 | No Post Available 16 |
17 | 18 |Back To Home
20 |About This Site
8 |9 | {{ footerData.aboutTheSite }} 10 |
11 |Quick Link
4 |15 | {{ homePage.description }} 16 |
17 |15 | {{ blogsPage.description }} 16 |
17 |15 | {{ categoryPage.description }} 16 |
17 |Back To Home
20 |
30 |
31 |
32 |
33 |
34 |
44 |
--------------------------------------------------------------------------------
/content/blogs/6. how-to-fix-vuex-type-issue.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: How to fix vuex type issue
3 | date: 9th June 2024
4 | description: In recent vue project we see that vuex type not working properly. We will fix that type issue and make vuex type workable
5 | image: /blogs-img/blog6.jpg
6 | alt: How to fix vuex type issue
7 | ogImage: /blogs-img/blog6.jpg
8 | tags: ['vue', 'vuex']
9 | published: true
10 | ---
11 |
12 | ### Introduction
13 |
14 | In recent version of our vue project, when we try to add vuex we see type error and vuex type not found. We can easily fix that issue.
15 |
16 | ### How to fix that issue
17 |
18 | 1. Create a `vuex.d.ts` file inside of your route project.
19 | 2. Pase this code in that file
20 |
21 | ```ts
22 | declare module 'vuex' {
23 | export * from 'vuex/types/index.d.ts'
24 | export * from 'vuex/types/helpers.d.ts'
25 | export * from 'vuex/types/logger.d.ts'
26 | export * from 'vuex/types/vue.d.ts'
27 | }
28 | ```
29 |
30 | 3. That's it. Your are ok to go.
31 |
--------------------------------------------------------------------------------
/server/routes/rss.xml.ts:
--------------------------------------------------------------------------------
1 | import { Feed } from 'feed'
2 |
3 | const basePath = 'https://nurriyad.com'
4 |
5 | export default defineEventHandler(async (event) => {
6 | setHeader(event, 'content-type', 'text/xml')
7 | const docs = await queryCollection(event, 'content').all()
8 | const feed = new Feed({
9 | title: "Riyad's personal blog site",
10 | description: "Riyad's personal blog site",
11 | id: basePath,
12 | link: basePath,
13 | language: 'en',
14 | favicon: `${basePath}/favicon.ico`,
15 | copyright: 'MIT',
16 | author: {
17 | name: 'Al Asad Nur Riyad',
18 | email: 'asadnurriyad@gmail.com',
19 | link: basePath,
20 | },
21 | })
22 |
23 | // Add the feed items
24 | docs.forEach((doc) => {
25 | // console.log(doc)
26 | feed.addItem({
27 | title: doc.title || '',
28 | id: basePath + doc.path,
29 | link: basePath + doc.path,
30 | description: doc.description,
31 | content: doc.description,
32 | date: new Date(doc.meta?.date as string),
33 | })
34 | })
35 |
36 | return feed.rss2()
37 | })
38 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012-2023 Scott Chacon and others
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/app/router.options.ts:
--------------------------------------------------------------------------------
1 | import type { RouterConfig } from '@nuxt/schema'
2 |
3 | // https://router.vuejs.org/api/#routeroptions
4 | export default 8 | {{ footerData.author }} 9 |
10 |11 | {{ footerData.aboutAuthor }} 12 |
13 |35 | {{ description }} 36 |
37 |{{ date || '' }}
42 |
2 |
3 |
4 |
5 |
12 |
13 |
40 |
41 |
42 |
43 |
44 |
45 |
46 | Live Demo
47 |
48 |
59 | {{ description }} 60 |
61 |Read More
63 |47 | {{ description }} 48 |
49 |{{ date }}
53 |61 | {{ tag }} 62 |
63 |Read More
67 |54 | {{ headline }} 55 |
56 |60 | {{ description.slice(0, 200) }} 61 |
62 |No content found.
72 | 73 |63 | {{ headline }} 64 |
65 |69 | {{ formattedDescription }} 70 |
71 |{{ aboutPage.aboutMe }}
76 |No content found.
110 | 111 |{{ pageNumber }} / {{ totalPage }}
128 | 135 |