mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Move nuxt-primevue to showcase and change plugin names
This commit is contained in:
parent
466ff52431
commit
5440d3d6ea
14 changed files with 583 additions and 303 deletions
48
modules/nuxt-primevue/runtime/core/components/index.js
Normal file
48
modules/nuxt-primevue/runtime/core/components/index.js
Normal file
|
@ -0,0 +1,48 @@
|
|||
const form = [
|
||||
'AutoComplete',
|
||||
'Calendar',
|
||||
'CascadeSelect',
|
||||
'Checkbox',
|
||||
'Chips',
|
||||
'ColorPicker',
|
||||
'Dropdown',
|
||||
'Editor',
|
||||
'InputMask',
|
||||
'InputNumber',
|
||||
'InputSwitch',
|
||||
'InputText',
|
||||
'Knob',
|
||||
'Listbox',
|
||||
'MultiSelect',
|
||||
'Password',
|
||||
'RadioButton',
|
||||
'Rating',
|
||||
'SelectButton',
|
||||
'Slider',
|
||||
'Textarea',
|
||||
'ToggleButton',
|
||||
'TreeSelect',
|
||||
'TriStateCheckbox'
|
||||
];
|
||||
|
||||
const button = ['Button', 'SpeedDial', 'SplitButton'];
|
||||
|
||||
const data = ['Column', 'Row', 'ColumnGroup', 'DataTable', 'DataView', 'DataViewLayoutOptions', 'OrderList', 'OrganizationChart', 'Paginator', 'PickList', 'Tree', 'TreeTable', 'Timeline', 'VirtualScroller'];
|
||||
|
||||
const panel = ['Accordion', 'AccordionTab', 'Card', 'DeferredContent', 'Divider', 'Fieldset', 'Panel', 'ScrollPanel', 'Splitter', 'SplitterPanel', 'TabView', 'TabPanel', 'Toolbar'];
|
||||
|
||||
const overlay = [{ name: 'ConfirmDialog', use: { as: 'ConfirmationService' } }, { name: 'ConfirmPopup', use: { as: 'ConfirmationService' } }, 'Dialog', { name: 'DynamicDialog', use: { as: 'DialogService' } }, 'OverlayPanel', 'Sidebar'];
|
||||
|
||||
const file = ['FileUpload'];
|
||||
|
||||
const menu = ['Breadcrumb', 'ContextMenu', 'Dock', 'Menu', 'Menubar', 'MegaMenu', 'PanelMenu', 'Steps', 'TabMenu', 'TieredMenu'];
|
||||
|
||||
const chart = ['Chart'];
|
||||
|
||||
const messages = ['Message', 'InlineMessage', { name: 'Toast', use: { as: 'ToastService' } }];
|
||||
|
||||
const media = ['Carousel', 'Galleria', 'Image'];
|
||||
|
||||
const misc = ['Avatar', 'AvatarGroup', 'Badge', 'BlockUI', 'Chip', 'Inplace', 'ScrollTop', 'Skeleton', 'ProgressBar', 'ProgressSpinner', 'Tag', 'Terminal'];
|
||||
|
||||
export const components = [...form, ...button, ...data, ...panel, ...overlay, ...file, ...menu, ...chart, ...messages, ...media, ...misc].map((c) => (typeof c === 'string' ? { name: c } : c));
|
1
modules/nuxt-primevue/runtime/core/composables/index.js
Normal file
1
modules/nuxt-primevue/runtime/core/composables/index.js
Normal file
|
@ -0,0 +1 @@
|
|||
export const composables = [{ name: 'useStyle', as: 'useStyle', from: 'primevue/usestyle' }];
|
8
modules/nuxt-primevue/runtime/core/directives/index.js
Normal file
8
modules/nuxt-primevue/runtime/core/directives/index.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
export const directives = [
|
||||
{ name: 'badge', as: 'BadgeDirective', from: 'primevue/badgedirective' },
|
||||
{ name: 'tooltip', as: 'Tooltip', from: 'primevue/tooltip' },
|
||||
{ name: 'ripple', as: 'Ripple', from: 'primevue/ripple' },
|
||||
{ name: 'styleclass', as: 'StyleClass', from: 'primevue/styleclass' },
|
||||
{ name: 'focustrap', as: 'FocusTrap', from: 'primevue/focustrap' },
|
||||
{ name: 'animate', as: 'Animate', from: 'primevue/animate' }
|
||||
];
|
3
modules/nuxt-primevue/runtime/plugin.client.js
Normal file
3
modules/nuxt-primevue/runtime/plugin.client.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { defineNuxtPlugin } from 'nuxt/app';
|
||||
|
||||
export default defineNuxtPlugin(({ vueApp }) => {});
|
11
modules/nuxt-primevue/runtime/plugin.server.js
Normal file
11
modules/nuxt-primevue/runtime/plugin.server.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
// @ts-expect-error
|
||||
import { styles } from '#primevue-style';
|
||||
//import { useRuntimeConfig } from '#imports';
|
||||
|
||||
const defineNitroPlugin = (def) => def;
|
||||
|
||||
export default defineNitroPlugin(async (nitroApp) => {
|
||||
nitroApp.hooks.hook('render:html', (html) => {
|
||||
html.head.push(styles);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue