diff --git a/.eslintrc.js b/.eslintrc.js
index 41edb10d5..867fa935e 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -4,17 +4,20 @@ module.exports = {
node: true,
jest: true
},
- extends: ['plugin:vue/vue3-essential', 'eslint:recommended', 'prettier'],
+ extends: ['plugin:nuxt/recommended', 'plugin:vue/vue3-essential', 'prettier'],
parserOptions: {
parser: '@babel/eslint-parser',
requireConfigFile: false
},
plugins: ['prettier'],
+ ignorePatterns: ['**/public/**', '/layouts/AppDocumentation.vue'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-fallthrough': 'off',
'vue/this-in-template': ['error', 'never'],
+ 'vue/multi-word-component-names': 'off',
+ 'vue/no-reserved-component-names': 'off',
'vue/component-tags-order': [
'error',
{
diff --git a/components/accordion/Accordion.spec.js b/components/accordion/Accordion.spec.js
index 264af4b36..dd790c75b 100644
--- a/components/accordion/Accordion.spec.js
+++ b/components/accordion/Accordion.spec.js
@@ -1,7 +1,8 @@
import { mount } from '@vue/test-utils';
+import { expect, it } from 'vitest';
import AccordionTab from '../accordiontab/AccordionTab.vue';
import Accordion from './Accordion.vue';
-
+vi.mock('primevue/utils');
describe('Accordion.vue', () => {
let wrapper;
@@ -14,25 +15,29 @@ describe('Accordion.vue', () => {
},
slots: {
default: `
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
- ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
- Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi
- architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
- voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati
- cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio.
- Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
+ ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
+ Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi
+ architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione
+ voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati
+ cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio.
+ Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus. The story begins as Don Vito Corleone, the head of a New York Mafia family.
import Accordion from 'primevue/accordion';
diff --git a/pages/autocomplete/AutoCompleteDoc.vue b/pages/autocomplete/AutoCompleteDoc.vue
index 41206f856..7faf69f9f 100755
--- a/pages/autocomplete/AutoCompleteDoc.vue
+++ b/pages/autocomplete/AutoCompleteDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import AutoComplete from 'primevue/autocomplete';
diff --git a/pages/autocomplete/index.vue b/pages/autocomplete/index.vue
index 83d29c0b6..52e88a181 100755
--- a/pages/autocomplete/index.vue
+++ b/pages/autocomplete/index.vue
@@ -22,7 +22,7 @@
-
+
{{ slotProps.item.label }}
@@ -32,7 +32,7 @@
-
+
{{ slotProps.item.name }}
diff --git a/pages/avatar/AvatarDoc.vue b/pages/avatar/AvatarDoc.vue
index 4f40c9f0c..0952e0440 100644
--- a/pages/avatar/AvatarDoc.vue
+++ b/pages/avatar/AvatarDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Avatar from 'primevue/avatar';
diff --git a/pages/avatar/index.vue b/pages/avatar/index.vue
index f1bae9e5f..72083510f 100644
--- a/pages/avatar/index.vue
+++ b/pages/avatar/index.vue
@@ -72,9 +72,9 @@
Image
-
-
-
+
+
+
@@ -82,11 +82,11 @@
Avatar Group
-
-
-
-
-
+
+
+
+
+
@@ -95,7 +95,7 @@
Image - Badge
-
+
Badge can either be used as a standalone component or as a directive.
diff --git a/pages/blockui/BlockUIDoc.vue b/pages/blockui/BlockUIDoc.vue index 226f8ac1d..f7729dfec 100755 --- a/pages/blockui/BlockUIDoc.vue +++ b/pages/blockui/BlockUIDoc.vue @@ -1,5 +1,5 @@ -
import BlockUI from 'primevue/blockui';
diff --git a/pages/breadcrumb/BreadcrumbDoc.vue b/pages/breadcrumb/BreadcrumbDoc.vue
index 0a706f112..54126517a 100755
--- a/pages/breadcrumb/BreadcrumbDoc.vue
+++ b/pages/breadcrumb/BreadcrumbDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Breadcrumb from 'primevue/breadcrumb';
diff --git a/pages/button/ButtonDoc.vue b/pages/button/ButtonDoc.vue
index fbbc45bf1..af6dbbbcc 100755
--- a/pages/button/ButtonDoc.vue
+++ b/pages/button/ButtonDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Button from 'primevue/button';
@@ -136,11 +136,11 @@ import Button from 'primevue/button';
Custom content such as icons, images and text can be placed inside the button via the default slot. Note that when slot is used, label, icon and badge properties are not included.
<Button type="button" class="px-3">
- <img alt="logo" src="../../assets/images/logo.svg" style="width: 1.5rem"/>
+ <img alt="logo" src="@/assets/images/logo.svg" style="width: 1.5rem"/>
</Button>
<Button type="button" class="p-button-outlined p-button-success">
- <img alt="logo" src="../../assets/images/logo.svg" style="width: 1.5rem" />
+ <img alt="logo" src="@/assets/images/logo.svg" style="width: 1.5rem" />
<span class="ml-2 font-bold">PrimeVue</span>
</Button>
diff --git a/pages/calendar/CalendarDoc.vue b/pages/calendar/CalendarDoc.vue
index e90c6a9c9..fbcf8e4e8 100755
--- a/pages/calendar/CalendarDoc.vue
+++ b/pages/calendar/CalendarDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Calendar from 'primevue/calendar';
diff --git a/pages/card/CardDoc.vue b/pages/card/CardDoc.vue
index 3bf8d4a01..f386d2b5c 100755
--- a/pages/card/CardDoc.vue
+++ b/pages/card/CardDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Card from 'primevue/card';
diff --git a/pages/carousel/CarouselDoc.vue b/pages/carousel/CarouselDoc.vue
index bed0de93a..9b17bfb3b 100755
--- a/pages/carousel/CarouselDoc.vue
+++ b/pages/carousel/CarouselDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Carousel from 'primevue/carousel';
diff --git a/pages/carousel/index.vue b/pages/carousel/index.vue
index 46d17fd8c..3ec97c745 100755
--- a/pages/carousel/index.vue
+++ b/pages/carousel/index.vue
@@ -23,7 +23,7 @@
-
+
{{ slotProps.data.name }}
@@ -50,7 +50,7 @@
-
+
{{ slotProps.data.name }}
@@ -77,7 +77,7 @@
-
+
{{ slotProps.data.name }}
@@ -124,8 +124,7 @@ export default {
numVisible: 1,
numScroll: 1
}
- ],
- baseUrl: '/'
+ ]
};
},
productService: null,
@@ -134,8 +133,6 @@ export default {
},
mounted() {
this.productService.getProductsSmall().then((data) => (this.products = data.slice(0, 9)));
-
- this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
components: {
CarouselDoc: CarouselDoc
diff --git a/pages/cascadeselect/CascadeSelectDoc.vue b/pages/cascadeselect/CascadeSelectDoc.vue
index 7c20b66a7..921207df8 100644
--- a/pages/cascadeselect/CascadeSelectDoc.vue
+++ b/pages/cascadeselect/CascadeSelectDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import CascadeSelect from 'primevue/cascadeselect';
@@ -118,7 +118,7 @@ data() {
:optionGroupChildren="['states', 'cities']" style="minWidth: 14rem">
<template #option="slotProps">
<div class="country-item">
- <img src="../../assets/images/flag_placeholder.png" :class="'flag flag-' + slotProps.option.code.toLowerCase()" v-if="slotProps.option.states" />
+ <img src="@/assets/images/flag_placeholder.png" :class="'flag flag-' + slotProps.option.code.toLowerCase()" v-if="slotProps.option.states" />
<i class="pi pi-compass mr-2" v-if="slotProps.option.cities"></i>
<i class="pi pi-map-marker mr-2" v-if="slotProps.option.cname"></i>
<span>{{slotProps.option.cname || slotProps.option.name}}</span>
diff --git a/pages/cascadeselect/index.vue b/pages/cascadeselect/index.vue
index e6bf78bba..8834f1a44 100644
--- a/pages/cascadeselect/index.vue
+++ b/pages/cascadeselect/index.vue
@@ -22,7 +22,7 @@
-
+
{{ slotProps.option.cname || slotProps.option.name }}
diff --git a/pages/chart/BarChartDoc.vue b/pages/chart/BarChartDoc.vue
index f9cd953ec..9757af46c 100755
--- a/pages/chart/BarChartDoc.vue
+++ b/pages/chart/BarChartDoc.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/pages/galleria/Caption.vue b/pages/galleria/Caption.vue
index 19e7f2686..dc8bb8566 100755
--- a/pages/galleria/Caption.vue
+++ b/pages/galleria/Caption.vue
@@ -11,11 +11,11 @@
-
+
-
+
@@ -106,8 +106,7 @@ export default {
breakpoint: '560px',
numVisible: 1
}
- ],
- baseUrl: ''
+ ]
};
},
galleriaService: null,
@@ -116,7 +115,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
- this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
diff --git a/pages/galleria/FullScreen.vue b/pages/galleria/FullScreen.vue
index 92669fe47..16e521562 100755
--- a/pages/galleria/FullScreen.vue
+++ b/pages/galleria/FullScreen.vue
@@ -12,10 +12,10 @@
With Thumbnails
-
+
-
+
@@ -26,10 +26,10 @@
Without Thumbnails
-
+
-
+
@@ -51,16 +51,16 @@
:showThumbnails="false"
>
-
+
-
+
-
+
@@ -224,8 +224,7 @@ export default {
],
displayBasic: false,
displayBasic2: false,
- displayCustom: false,
- baseUrl: ''
+ displayCustom: false
};
},
galleriaService: null,
@@ -234,7 +233,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
- this.baseUrl = process.dev ? '' : '/primevue-nuxt';
},
methods: {
imageClick(index) {
diff --git a/pages/galleria/Indicator.vue b/pages/galleria/Indicator.vue
index 7bcd91cf8..f91a495e7 100755
--- a/pages/galleria/Indicator.vue
+++ b/pages/galleria/Indicator.vue
@@ -12,7 +12,7 @@
Indicators with Click Event
-
+
@@ -21,7 +21,7 @@
Indicators with Hover Event
-
+
@@ -30,7 +30,7 @@
Inside Content
-
+
@@ -49,7 +49,7 @@
indicatorsPosition="top"
>
-
+
@@ -68,7 +68,7 @@
indicatorsPosition="left"
>
-
+
@@ -87,7 +87,7 @@
indicatorsPosition="right"
>
-
+
@@ -107,7 +107,7 @@
indicatorsPosition="left"
>
-
+
@@ -265,8 +265,7 @@ export default {
breakpoint: '560px',
numVisible: 1
}
- ],
- baseUrl: ''
+ ]
};
},
galleriaService: null,
@@ -278,8 +277,6 @@ export default {
this.images = data;
this.images2 = data.slice(0, 5);
});
-
- this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
diff --git a/pages/galleria/Navigator.vue b/pages/galleria/Navigator.vue
index c5ae6cdbb..21901be1c 100755
--- a/pages/galleria/Navigator.vue
+++ b/pages/galleria/Navigator.vue
@@ -12,10 +12,10 @@
Item Navigators and Thumbnails
-
+
-
+
@@ -24,10 +24,10 @@
Item Navigators without Thumbnails
-
+
-
+
@@ -36,10 +36,10 @@
Item Navigators on Hover
-
+
-
+
@@ -58,10 +58,10 @@
:showIndicators="true"
>
-
+
-
+
@@ -176,8 +176,7 @@ export default {
breakpoint: '560px',
numVisible: 1
}
- ],
- baseUrl: ''
+ ]
};
},
galleriaService: null,
@@ -186,7 +185,6 @@ export default {
},
mounted() {
this.galleriaService.getImages().then((data) => (this.images = data));
- this.baseUrl = process.dev ? '' : '/primevue-nuxt';
}
};
diff --git a/pages/galleria/Programmatic.vue b/pages/galleria/Programmatic.vue
index 152269d8b..23c194dce 100644
--- a/pages/galleria/Programmatic.vue
+++ b/pages/galleria/Programmatic.vue
@@ -16,10 +16,10 @@
-
+
-
+
import Image from 'primevue/image';
diff --git a/pages/image/index.vue b/pages/image/index.vue
index b69a2eded..f8f351b44 100644
--- a/pages/image/index.vue
+++ b/pages/image/index.vue
@@ -16,10 +16,10 @@
Basic
-
+
Preview
-
+
@@ -31,14 +31,6 @@
import ImageDoc from './ImageDoc';
export default {
- data() {
- return {
- baseUrl: '/'
- };
- },
- mounted() {
- this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
- },
components: {
ImageDoc: ImageDoc
}
diff --git a/pages/index.vue b/pages/index.vue
index 2c2a6d9e8..6fdbbab6f 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,10 +1,6 @@
-
-
-
-
-
+
@@ -18,17 +14,15 @@
diff --git a/pages/inplace/InplaceDoc.vue b/pages/inplace/InplaceDoc.vue
index b884a4a0a..056cd267d 100755
--- a/pages/inplace/InplaceDoc.vue
+++ b/pages/inplace/InplaceDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Inplace from 'primevue/inplace';
diff --git a/pages/inputgroup/InputGroupDoc.vue b/pages/inputgroup/InputGroupDoc.vue
index afb2d6aa8..f35dbbc9f 100755
--- a/pages/inputgroup/InputGroupDoc.vue
+++ b/pages/inputgroup/InputGroupDoc.vue
@@ -1,5 +1,5 @@
-
+
diff --git a/pages/landing/HeaderSection.vue b/pages/landing/HeaderSection.vue
index 454096198..a26e5ce7e 100644
--- a/pages/landing/HeaderSection.vue
+++ b/pages/landing/HeaderSection.vue
@@ -1,7 +1,7 @@
-
+
@@ -54,15 +54,13 @@ export default {
emits: ['theme-toggle'],
data() {
return {
- menuActive: false,
- baseUrl: '/'
+ menuActive: false
};
},
scrollListener: null,
container: null,
mounted() {
this.bindScrollListener();
- this.baseUrl = process.dev ? '/' : '/primevue-nuxt/';
},
beforeUnmount() {
if (this.scrollListener) {
diff --git a/pages/landing/Intro.vue b/pages/landing/Intro.vue
new file mode 100644
index 000000000..fe8717195
--- /dev/null
+++ b/pages/landing/Intro.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages/landing/ThemeSection.vue b/pages/landing/ThemeSection.vue
index 63b4a9573..c67a073ff 100644
--- a/pages/landing/ThemeSection.vue
+++ b/pages/landing/ThemeSection.vue
@@ -44,7 +44,7 @@
-
+
{{ data.country.name }}
@@ -86,8 +86,8 @@
+
+
diff --git a/pages/steps/Personal.vue b/pages/steps/Personal.vue
deleted file mode 100755
index bc8d2bdc8..000000000
--- a/pages/steps/Personal.vue
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
- Personal Information
- Enter your personal information
-
-
-
-
-
- Firstname is required.
-
-
-
-
- Lastname is required.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/steps/StepsDoc.vue b/pages/steps/StepsDoc.vue
index 68b652fb6..0bf0bac94 100755
--- a/pages/steps/StepsDoc.vue
+++ b/pages/steps/StepsDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Steps from 'primevue/steps';
diff --git a/pages/steps/index.vue b/pages/steps/index.vue
index 74d15162e..bc8d2bdc8 100755
--- a/pages/steps/index.vue
+++ b/pages/steps/index.vue
@@ -1,88 +1,65 @@
-
-
- Vue Stepper Component
-
-
-
-
-
- Steps
- Steps components is an indicator for the steps in a wizard workflow. Example below uses nested routes with Steps.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Personal Information
+ Enter your personal information
+
+
+
+
+
+ Firstname is required.
+
+
+
+
+ Lastname is required.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
diff --git a/pages/styleclass/StyleClassDoc.vue b/pages/styleclass/StyleClassDoc.vue
index f5d9ced2e..79a15e17d 100644
--- a/pages/styleclass/StyleClassDoc.vue
+++ b/pages/styleclass/StyleClassDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import StyleClass from 'primevue/styleclass';
diff --git a/pages/tabmenu.vue b/pages/tabmenu.vue
new file mode 100755
index 000000000..a66d60bba
--- /dev/null
+++ b/pages/tabmenu.vue
@@ -0,0 +1,72 @@
+
+
+
+ Vue TabMenu Component
+
+
+
+
+
+ TabMenu
+ TabMenu is a navigation component that displays items as tab headers. Example below uses nested routes with TabMenu.
+
+
+
+
+
+
+ Default
+
+
+
+
+
+ Programmatic
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/tabmenu/Home.vue b/pages/tabmenu/Home.vue
deleted file mode 100755
index e73f7970c..000000000
--- a/pages/tabmenu/Home.vue
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- Home Component Content
-
-
-
-
diff --git a/pages/tabmenu/TabMenuDoc.vue b/pages/tabmenu/TabMenuDoc.vue
index a1649ed03..b4da0cd6c 100755
--- a/pages/tabmenu/TabMenuDoc.vue
+++ b/pages/tabmenu/TabMenuDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import TabMenu from 'primevue/tabmenu';
diff --git a/pages/tabmenu/index.vue b/pages/tabmenu/index.vue
index 149448cd9..e73f7970c 100755
--- a/pages/tabmenu/index.vue
+++ b/pages/tabmenu/index.vue
@@ -1,72 +1,9 @@
-
-
- Vue TabMenu Component
-
-
-
-
-
- TabMenu
- TabMenu is a navigation component that displays items as tab headers. Example below uses nested routes with TabMenu.
-
-
-
-
-
-
- Default
-
-
-
-
-
- Programmatic
-
-
-
-
-
-
-
-
-
-
-
+
+ Home Component Content
-
-
diff --git a/pages/tabview/TabViewDoc.vue b/pages/tabview/TabViewDoc.vue
index ae00126a8..acd2822c2 100755
--- a/pages/tabview/TabViewDoc.vue
+++ b/pages/tabview/TabViewDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import TabView from 'primevue/tabview';
diff --git a/pages/tag/TagDoc.vue b/pages/tag/TagDoc.vue
index c3012a6a5..5d5691f12 100644
--- a/pages/tag/TagDoc.vue
+++ b/pages/tag/TagDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Tag from 'primevue/tag';
diff --git a/pages/terminal/TerminalDoc.vue b/pages/terminal/TerminalDoc.vue
index fac211d80..4b0697a7b 100755
--- a/pages/terminal/TerminalDoc.vue
+++ b/pages/terminal/TerminalDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Terminal from 'primevue/terminal';
diff --git a/pages/textarea/TextareaDoc.vue b/pages/textarea/TextareaDoc.vue
index 18a289178..b61d4fdb4 100755
--- a/pages/textarea/TextareaDoc.vue
+++ b/pages/textarea/TextareaDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Textarea from 'primevue/textarea';
diff --git a/pages/theming/index.vue b/pages/theming/index.vue
index 705c35481..3eeda7045 100755
--- a/pages/theming/index.vue
+++ b/pages/theming/index.vue
@@ -10,7 +10,7 @@
Choose from a variety of themes or develop your own theme easily.
Architecture
-
+
PrimeVue is a design agnostic library so unlike other UI libraries it does not enforce a certain styling such as material or bootstrap. In order to achieve this, styling has been separated into core and theme. Core resides inside
PrimeVue to implement the structure of the components such as positioning whereas theme brings the colors, paddings and margins.
@@ -45,7 +45,7 @@
-
+
Scaling
diff --git a/pages/tieredmenu/TieredMenuDoc.vue b/pages/tieredmenu/TieredMenuDoc.vue
index 911a394e5..67f510e85 100755
--- a/pages/tieredmenu/TieredMenuDoc.vue
+++ b/pages/tieredmenu/TieredMenuDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import TieredMenu from 'primevue/tieredmenu';
diff --git a/pages/timeline/TimelineDoc.vue b/pages/timeline/TimelineDoc.vue
index 3fc5ac4bf..bfdddb245 100644
--- a/pages/timeline/TimelineDoc.vue
+++ b/pages/timeline/TimelineDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Timeline from 'primevue/timeline';
diff --git a/pages/toast/ToastDoc.vue b/pages/toast/ToastDoc.vue
index 4d9437b00..eef9f9c2f 100755
--- a/pages/toast/ToastDoc.vue
+++ b/pages/toast/ToastDoc.vue
@@ -1,5 +1,5 @@
-
+
ToastService
Toast messages are dynamically created using a ToastService that needs to be installed globally before the application instance is created.
diff --git a/pages/togglebutton/ToggleButtonDoc.vue b/pages/togglebutton/ToggleButtonDoc.vue
index 1d4fc3941..ac3dd117c 100755
--- a/pages/togglebutton/ToggleButtonDoc.vue
+++ b/pages/togglebutton/ToggleButtonDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import ToggleButton from 'primevue/togglebutton';
diff --git a/pages/toolbar/ToolbarDoc.vue b/pages/toolbar/ToolbarDoc.vue
index ffa1c359d..a1e9a0ca9 100755
--- a/pages/toolbar/ToolbarDoc.vue
+++ b/pages/toolbar/ToolbarDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import Toolbar from 'primevue/toolbar';
diff --git a/pages/tooltip/TooltipDoc.vue b/pages/tooltip/TooltipDoc.vue
index 317ecf292..fe4528bf1 100755
--- a/pages/tooltip/TooltipDoc.vue
+++ b/pages/tooltip/TooltipDoc.vue
@@ -1,5 +1,5 @@
-
+
Getting Started
Tooltip is a directive that needs to be imported and configured with a name of your choice. Global configuration is done with the app.directive function.
diff --git a/pages/tree/Filter.vue b/pages/tree/Filter.vue
index c0a724c07..27b789ede 100755
--- a/pages/tree/Filter.vue
+++ b/pages/tree/Filter.vue
@@ -18,7 +18,7 @@
-
+
diff --git a/pages/tree/Lazy.vue b/pages/tree/Lazy.vue
index 3a9069434..1a018c471 100755
--- a/pages/tree/Lazy.vue
+++ b/pages/tree/Lazy.vue
@@ -14,7 +14,7 @@
-
+
import Tree from 'primevue/tree';
diff --git a/pages/treeselect/TreeSelectDoc.vue b/pages/treeselect/TreeSelectDoc.vue
index afc4c41e4..b35820917 100644
--- a/pages/treeselect/TreeSelectDoc.vue
+++ b/pages/treeselect/TreeSelectDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import TreeSelect from 'primevue/treeselect';
diff --git a/pages/treetable/ColResize.vue b/pages/treetable/ColResize.vue
index 88e766ee2..c2f35e773 100755
--- a/pages/treetable/ColResize.vue
+++ b/pages/treetable/ColResize.vue
@@ -31,7 +31,7 @@
-
+
diff --git a/pages/treetable/ColToggle.vue b/pages/treetable/ColToggle.vue
index 640fc3e38..d40f759c5 100755
--- a/pages/treetable/ColToggle.vue
+++ b/pages/treetable/ColToggle.vue
@@ -22,7 +22,7 @@
-
+
import TreeTable from 'primevue/treetable';
diff --git a/pages/tristatecheckbox/TriStateCheckboxDoc.vue b/pages/tristatecheckbox/TriStateCheckboxDoc.vue
index e99ce95a4..234b7d616 100755
--- a/pages/tristatecheckbox/TriStateCheckboxDoc.vue
+++ b/pages/tristatecheckbox/TriStateCheckboxDoc.vue
@@ -1,5 +1,5 @@
-
+
Import via Module
import TriStateCheckbox from 'primevue/tristatecheckbox';
diff --git a/pages/validation/index.vue b/pages/validation/index.vue
index 34ae6654b..3c2d752df 100644
--- a/pages/validation/index.vue
+++ b/pages/validation/index.vue
@@ -97,14 +97,7 @@
-
+
diff --git a/pages/virtualscroller/VirtualScrollerDoc.vue b/pages/virtualscroller/VirtualScrollerDoc.vue
index 1efa7cd7a..3c729b23a 100644
--- a/pages/virtualscroller/VirtualScrollerDoc.vue
+++ b/pages/virtualscroller/VirtualScrollerDoc.vue
@@ -1,5 +1,5 @@
-
+
Imports
import VirtualScroller from 'primevue/virtualscroller';
diff --git a/plugins/scrollToTop.js b/plugins/scrollToTop.js
deleted file mode 100644
index 9d45f84cf..000000000
--- a/plugins/scrollToTop.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export default defineNuxtPlugin((nuxtApp) => {
- nuxtApp.$router.options.scrollBehavior = (to, from, savedPosition) => {
- return new Promise((resolve, reject) => {
- setTimeout(() => {
- resolve({ left: 0, top: 0, behaviour: 'smooth' });
- }, 100);
- });
- };
-});
diff --git a/public/.htaccess b/public/.htaccess
deleted file mode 100644
index 035783a03..000000000
--- a/public/.htaccess
+++ /dev/null
@@ -1,8 +0,0 @@
-
-RewriteEngine On
-RewriteBase /primevue-nuxt/
-RewriteRule ^primevue-nuxt/index\.php$ - [L]
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule . /primevue-nuxt/index.php [L]
-
diff --git a/public/demo/data/photos.json b/public/demo/data/photos.json
index bbac63377..410dda36b 100644
--- a/public/demo/data/photos.json
+++ b/public/demo/data/photos.json
@@ -1,92 +1,92 @@
{
"data":[
{
- "itemImageSrc": "/demo/images/galleria/galleria1.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria1s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria1.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria1s.jpg",
"alt": "Description for Image 1",
"title": "Title 1"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria2.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria2s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria2.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria2s.jpg",
"alt": "Description for Image 2",
"title": "Title 2"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria3.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria3s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria3.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria3s.jpg",
"alt": "Description for Image 3",
"title": "Title 3"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria4.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria4s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria4.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria4s.jpg",
"alt": "Description for Image 4",
"title": "Title 4"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria5.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria5s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria5.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria5s.jpg",
"alt": "Description for Image 5",
"title": "Title 5"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria6.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria6s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria6.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria6s.jpg",
"alt": "Description for Image 6",
"title": "Title 6"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria7.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria7s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria7.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria7s.jpg",
"alt": "Description for Image 7",
"title": "Title 7"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria8.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria8s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria8.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria8s.jpg",
"alt": "Description for Image 8",
"title": "Title 8"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria9.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria9s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria9.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria9s.jpg",
"alt": "Description for Image 9",
"title": "Title 9"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria10.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria10s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria10.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria10s.jpg",
"alt": "Description for Image 10",
"title": "Title 10"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria11.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria11s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria11.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria11s.jpg",
"alt": "Description for Image 11",
"title": "Title 11"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria12.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria12s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria12.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria12s.jpg",
"alt": "Description for Image 12",
"title": "Title 12"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria13.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria13s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria13.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria13s.jpg",
"alt": "Description for Image 13",
"title": "Title 13"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria14.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria14s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria14.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria14s.jpg",
"alt": "Description for Image 14",
"title": "Title 14"
},
{
- "itemImageSrc": "/demo/images/galleria/galleria15.jpg",
- "thumbnailImageSrc": "/demo/images/galleria/galleria15s.jpg",
+ "itemImageSrc": "demo/images/galleria/galleria15.jpg",
+ "thumbnailImageSrc": "demo/images/galleria/galleria15s.jpg",
"alt": "Description for Image 15",
"title": "Title 15"
}
diff --git a/service/CountryService.js b/service/CountryService.js
index 43198320a..100bee104 100755
--- a/service/CountryService.js
+++ b/service/CountryService.js
@@ -1,8 +1,8 @@
-const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
-
export default class CountryService {
getCountries() {
- return fetch(baseUrl + 'demo/data/countries.json')
+ const runtimeConfig = useRuntimeConfig();
+
+ return fetch(runtimeConfig.public.contextPath + 'demo/data/countries.json')
.then((res) => res.json())
.then((d) => d.data);
}
diff --git a/service/CustomerService.js b/service/CustomerService.js
index 27a74f40e..14049c42a 100755
--- a/service/CustomerService.js
+++ b/service/CustomerService.js
@@ -1,26 +1,30 @@
-const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
-
export default class CustomerService {
+ constructor() {
+ const runtimeConfig = useRuntimeConfig();
+
+ this.contextPath = runtimeConfig.public.contextPath;
+ }
+
getCustomersSmall() {
- return fetch(baseUrl + 'demo/data/customers-small.json')
+ return fetch(this.contextPath + 'demo/data/customers-small.json')
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersMedium() {
- return fetch(baseUrl + 'demo/data/customers-medium.json')
+ return fetch(this.contextPath + 'demo/data/customers-medium.json')
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersLarge() {
- return fetch(baseUrl + 'demo/data/customers-large.json')
+ return fetch(this.contextPath + 'demo/data/customers-large.json')
.then((res) => res.json())
.then((d) => d.data);
}
getCustomersXLarge() {
- return fetch(baseUrl + 'demo/data/customers-xlarge.json')
+ return fetch(this.contextPath + 'demo/data/customers-xlarge.json')
.then((res) => res.json())
.then((d) => d.data);
}
diff --git a/service/EventService.js b/service/EventService.js
index 92b23d1e2..d34680656 100755
--- a/service/EventService.js
+++ b/service/EventService.js
@@ -1,8 +1,8 @@
-const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
-
export default class EventService {
getEvents() {
- return fetch(baseUrl + 'demo/data/events.json')
+ const runtimeConfig = useRuntimeConfig();
+
+ return fetch(runtimeConfig.public.contextPath + 'demo/data/events.json')
.then((res) => res.json())
.then((d) => d.data);
}
diff --git a/service/NodeService.js b/service/NodeService.js
index 24f04fe39..ef92eeb8f 100755
--- a/service/NodeService.js
+++ b/service/NodeService.js
@@ -1,14 +1,18 @@
-const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
-
export default class NodeService {
+ constructor() {
+ const runtimeConfig = useRuntimeConfig();
+
+ this.contextPath = runtimeConfig.public.contextPath;
+ }
+
getTreeTableNodes() {
- return fetch(baseUrl + 'demo/data/treetablenodes.json')
+ return fetch(this.contextPath + 'demo/data/treetablenodes.json')
.then((res) => res.json())
.then((d) => d.root);
}
getTreeNodes() {
- return fetch(baseUrl + 'demo/data/treenodes.json')
+ return fetch(this.contextPath + 'demo/data/treenodes.json')
.then((res) => res.json())
.then((d) => d.root);
}
diff --git a/service/PhotoService.js b/service/PhotoService.js
index 126d8f6b1..88980ee22 100755
--- a/service/PhotoService.js
+++ b/service/PhotoService.js
@@ -1,8 +1,8 @@
-const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
-
export default class PhotoService {
getImages() {
- return fetch(baseUrl + 'demo/data/photos.json')
+ const runtimeConfig = useRuntimeConfig();
+
+ return fetch(runtimeConfig.public.contextPath + 'demo/data/photos.json')
.then((res) => res.json())
.then((d) => d.data);
}
diff --git a/service/ProductService.js b/service/ProductService.js
index ce9e026c8..6ea75b23f 100644
--- a/service/ProductService.js
+++ b/service/ProductService.js
@@ -1,20 +1,24 @@
-const baseUrl = process.env.NODE_ENV === 'production' ? '/primevue-nuxt/' : '/';
-
export default class ProductService {
+ constructor() {
+ const runtimeConfig = useRuntimeConfig();
+
+ this.contextPath = runtimeConfig.public.contextPath;
+ }
+
getProductsSmall() {
- return fetch(baseUrl + 'demo/data/products-small.json')
+ return fetch(this.contextPath + 'demo/data/products-small.json')
.then((res) => res.json())
.then((d) => d.data);
}
getProducts() {
- return fetch(baseUrl + 'demo/data/products-small.json')
+ return fetch(this.contextPath + 'demo/data/products-small.json')
.then((res) => res.json())
.then((d) => d.data);
}
getProductsWithOrdersSmall() {
- return fetch(baseUrl + 'demo/data/products-small.json')
+ return fetch(this.contextPath + 'demo/data/products-small.json')
.then((res) => res.json())
.then((d) => d.data);
}
diff --git a/vitest.config.js b/vitest.config.js
index 896738373..42f4fcbdd 100644
--- a/vitest.config.js
+++ b/vitest.config.js
@@ -5,7 +5,11 @@ export default {
plugins: [vue()],
test: {
globals: true,
- environment: 'jsdom'
+ environment: 'jsdom',
+ coverage: {
+ provider: 'istanbul',
+ reporter: ['text', 'json', 'html']
+ }
},
resolve: {
alias: {