2022-12-22 13:20:07 +00:00
|
|
|
import path from 'path';
|
2023-01-30 12:32:05 +00:00
|
|
|
const baseUrl = '/';
|
2022-12-09 20:45:50 +00:00
|
|
|
|
2022-09-06 11:52:18 +00:00
|
|
|
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
|
|
|
export default defineNuxtConfig({
|
2022-09-14 14:26:41 +00:00
|
|
|
typescript: false,
|
2023-03-26 05:22:57 +00:00
|
|
|
components: [
|
|
|
|
'~/components',
|
|
|
|
{
|
|
|
|
path: '~/components/layout',
|
|
|
|
prefetch: false
|
|
|
|
}
|
|
|
|
],
|
2022-09-14 14:26:41 +00:00
|
|
|
app: {
|
2022-12-09 12:58:51 +00:00
|
|
|
baseURL: baseUrl,
|
2022-09-14 14:26:41 +00:00
|
|
|
head: {
|
2022-12-19 13:04:37 +00:00
|
|
|
title: 'PrimeVue - Vue UI Component Library',
|
|
|
|
meta: [
|
|
|
|
{ charset: 'utf-8' },
|
|
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
|
|
{ name: 'description', content: 'The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.' },
|
|
|
|
{ name: 'robots', content: 'index,follow' },
|
|
|
|
{ name: 'twitter:card', content: 'summary_large_image' },
|
|
|
|
{ name: 'twitter:site', content: '@primevue' },
|
|
|
|
{ name: 'twitter:title', content: 'PrimeVue | Vue UI Component Library' },
|
|
|
|
{ name: 'twitter:description', content: 'The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.' },
|
|
|
|
{ property: 'og:type', content: 'website' },
|
|
|
|
{ property: 'og:title', content: 'PrimeVue | Vue UI Component Library' },
|
2023-03-02 08:32:40 +00:00
|
|
|
{ property: 'og:url', content: 'https://primevue.org/' },
|
2022-12-19 13:04:37 +00:00
|
|
|
{ property: 'og:description', content: 'The ultimate collection of design-agnostic, flexible and accessible Vue UI Components.' },
|
|
|
|
{ property: 'og:image', content: 'https://www.primefaces.org/static/social/primevue-preview.jpg' },
|
|
|
|
{ property: 'og:ttl', content: '604800' }
|
|
|
|
],
|
2022-09-14 14:26:41 +00:00
|
|
|
link: [
|
|
|
|
{
|
2022-12-08 18:30:15 +00:00
|
|
|
id: 'home-table-link',
|
2022-09-14 14:26:41 +00:00
|
|
|
rel: 'stylesheet',
|
2022-12-09 13:12:32 +00:00
|
|
|
href: baseUrl + 'styles/landing/themes/lara-light-blue/theme.css'
|
2022-09-14 14:26:41 +00:00
|
|
|
},
|
|
|
|
{
|
2022-12-08 18:30:15 +00:00
|
|
|
id: 'theme-link',
|
2022-09-14 14:26:41 +00:00
|
|
|
rel: 'stylesheet',
|
2022-12-09 20:45:50 +00:00
|
|
|
href: baseUrl + 'themes/lara-light-blue/theme.css'
|
|
|
|
},
|
2022-12-09 20:54:16 +00:00
|
|
|
{ rel: 'icon', href: baseUrl + 'favicon.ico' }
|
2022-12-19 13:42:18 +00:00
|
|
|
],
|
|
|
|
script: [
|
|
|
|
{
|
|
|
|
strategy: 'lazyOnload',
|
|
|
|
src: 'https://www.googletagmanager.com/gtag/js?id=UA-93461466-1'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 'ga-analytics',
|
|
|
|
strategy: 'lazyOnload',
|
|
|
|
children: `
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
function gtag(){dataLayer.push(arguments);}
|
|
|
|
gtag('js', new Date());
|
|
|
|
|
|
|
|
gtag('config', 'UA-93461466-1');
|
|
|
|
`
|
2022-12-20 17:29:41 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
src: baseUrl + 'scripts/prism.js',
|
|
|
|
'data-manual': true
|
2022-12-19 13:42:18 +00:00
|
|
|
}
|
2022-09-14 14:26:41 +00:00
|
|
|
]
|
2022-09-07 14:20:55 +00:00
|
|
|
}
|
|
|
|
},
|
2022-12-27 20:54:26 +00:00
|
|
|
runtimeConfig: {
|
|
|
|
public: {
|
|
|
|
contextPath: baseUrl
|
|
|
|
}
|
|
|
|
},
|
2023-03-26 05:22:57 +00:00
|
|
|
css: ['@/assets/styles/primevue.css', '/node_modules/primeflex/primeflex.css', '/node_modules/primeicons/primeicons.css', '@/assets/styles/flags.css', '@/components/lib/colorpicker/ColorPicker.css'],
|
2022-09-14 14:26:41 +00:00
|
|
|
vite: {
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
2023-03-26 05:22:57 +00:00
|
|
|
'primevue/ripple': path.resolve(__dirname, './components/lib/ripple/Ripple.js'),
|
|
|
|
'primevue/tooltip': path.resolve(__dirname, './components/lib/tooltip/Tooltip.js'),
|
|
|
|
'primevue/focustrap': path.resolve(__dirname, './components/lib/focustrap/FocusTrap.js'),
|
|
|
|
'primevue/useconfirm': path.resolve(__dirname, './components/lib/useconfirm/UseConfirm.js'),
|
|
|
|
'primevue/usetoast': path.resolve(__dirname, './components/lib/usetoast/UseToast.js'),
|
|
|
|
'primevue/usedialog': path.resolve(__dirname, './components/lib/usedialog/UseDialog.js'),
|
|
|
|
'primevue/utils': path.resolve(__dirname, './components/lib/utils/Utils.js'),
|
|
|
|
'primevue/api': path.resolve(__dirname, './components/lib/api/Api.js'),
|
|
|
|
'primevue/portal': path.resolve(__dirname, './components/lib/portal/Portal.vue'),
|
2023-03-28 11:30:17 +00:00
|
|
|
'primevue/base': path.resolve(__dirname, './components/lib/base/ComponentBase.vue'),
|
2023-03-26 05:22:57 +00:00
|
|
|
'primevue/button': path.resolve(__dirname, './components/lib/button/Button.vue'),
|
|
|
|
'primevue/inputtext': path.resolve(__dirname, './components/lib/inputtext/InputText.vue'),
|
|
|
|
'primevue/dialog': path.resolve(__dirname, './components/lib/dialog/Dialog.vue'),
|
|
|
|
'primevue/menu': path.resolve(__dirname, './components/lib/menu/Menu.vue'),
|
|
|
|
'primevue/tieredmenu': path.resolve(__dirname, './components/lib/tieredmenu/TieredMenu.vue'),
|
|
|
|
'primevue/dropdown': path.resolve(__dirname, './components/lib/dropdown/Dropdown.vue'),
|
|
|
|
'primevue/inputnumber': path.resolve(__dirname, './components/lib/inputnumber/InputNumber.vue'),
|
|
|
|
'primevue/paginator': path.resolve(__dirname, './components/lib/paginator/Paginator.vue'),
|
|
|
|
'primevue/progressbar': path.resolve(__dirname, './components/lib/progressbar/ProgressBar.vue'),
|
|
|
|
'primevue/message': path.resolve(__dirname, './components/lib/message/Message.vue'),
|
|
|
|
'primevue/tree': path.resolve(__dirname, './components/lib/tree/Tree.vue'),
|
|
|
|
'primevue/badge': path.resolve(__dirname, './components/lib/badge/Badge.vue'),
|
|
|
|
'primevue/confirmationeventbus': path.resolve(__dirname, './components/lib/confirmationeventbus/ConfirmationEventBus.js'),
|
|
|
|
'primevue/toasteventbus': path.resolve(__dirname, './components/lib/toasteventbus/ToastEventBus.js'),
|
|
|
|
'primevue/overlayeventbus': path.resolve(__dirname, './components/lib/overlayeventbus/OverlayEventBus.js'),
|
|
|
|
'primevue/terminalservice': path.resolve(__dirname, './components/lib/terminalservice/TerminalService.js'),
|
|
|
|
'primevue/dynamicdialogeventbus': path.resolve(__dirname, './components/lib/dynamicdialogeventbus/DynamicDialogEventBus.js'),
|
|
|
|
'primevue/virtualscroller': path.resolve(__dirname, './components/lib/virtualscroller/VirtualScroller.vue')
|
2022-09-14 14:26:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|