primevue-mirror/src/main.js

213 lines
9.3 KiB
JavaScript
Raw Normal View History

2020-09-11 16:50:20 +00:00
import {createApp} from 'vue';
2020-12-09 12:24:11 +00:00
import {reactive} from 'vue';
2018-12-06 18:26:49 +00:00
import router from './router';
2020-09-11 16:50:20 +00:00
import App from './App.vue';
2020-12-09 12:24:11 +00:00
import PrimeVue from './components/config/PrimeVue';
2019-01-28 11:49:18 +00:00
import AutoComplete from './components/autocomplete/AutoComplete';
2018-12-13 20:39:16 +00:00
import Accordion from './components/accordion/Accordion';
import AccordionTab from './components/accordiontab/AccordionTab';
2020-11-28 17:19:30 +00:00
import Avatar from './components/avatar/Avatar';
import AvatarGroup from './components/avatargroup/AvatarGroup';
2020-11-28 18:50:59 +00:00
import Badge from './components/badge/Badge';
import BadgeDirective from './components/badgedirective/BadgeDirective';
2020-03-16 11:18:22 +00:00
import BlockUI from './components/blockui/BlockUI';
2019-12-03 07:31:21 +00:00
import Breadcrumb from './components/breadcrumb/Breadcrumb';
2018-12-10 10:56:49 +00:00
import Button from './components/button/Button';
2019-04-15 08:25:24 +00:00
import Calendar from './components/calendar/Calendar';
2018-12-16 20:03:20 +00:00
import Card from './components/card/Card';
2019-10-08 11:22:32 +00:00
import Carousel from './components/carousel/Carousel';
2020-12-07 14:36:46 +00:00
import CascadeSelect from './components/cascadeselect/CascadeSelect';
2019-01-01 18:53:12 +00:00
import Chart from './components/chart/Chart';
2018-12-14 15:35:42 +00:00
import Checkbox from './components/checkbox/Checkbox';
2020-12-06 09:39:51 +00:00
import Chip from './components/chip/Chip';
2018-12-24 21:14:06 +00:00
import Chips from './components/chips/Chips';
2020-01-13 07:46:42 +00:00
import ColorPicker from './components/colorpicker/ColorPicker';
2019-06-27 21:17:21 +00:00
import Column from './components/column/Column';
2019-10-16 03:50:25 +00:00
import ColumnGroup from './components/columngroup/ColumnGroup';
import ConfirmDialog from './components/confirmdialog/ConfirmDialog';
2020-11-27 08:45:31 +00:00
import ConfirmPopup from './components/confirmpopup/ConfirmPopup';
2020-12-29 18:25:30 +00:00
import ConfirmationService from './components/confirmationservice/ConfirmationService';
2019-12-04 12:14:21 +00:00
import ContextMenu from './components/contextmenu/ContextMenu';
2019-06-27 21:17:21 +00:00
import DataTable from './components/datatable/DataTable';
2019-05-07 10:24:05 +00:00
import DataView from './components/dataview/DataView';
2019-05-25 16:03:57 +00:00
import DataViewLayoutOptions from './components/dataviewlayoutoptions/DataViewLayoutOptions';
2019-07-22 13:09:20 +00:00
import DeferredContent from './components/deferredcontent/DeferredContent';
2019-01-31 12:15:32 +00:00
import Dialog from './components/dialog/Dialog';
import Divider from './components/divider/Divider';
2018-12-28 12:03:07 +00:00
import Dropdown from './components/dropdown/Dropdown';
2018-12-26 08:50:28 +00:00
import Editor from './components/editor/Editor';
2019-02-12 13:51:28 +00:00
import Fieldset from './components/fieldset/Fieldset';
import FileUpload from './components/fileupload/FileUpload';
2018-12-31 15:41:35 +00:00
import FullCalendar from './components/fullcalendar/FullCalendar';
2020-05-04 13:28:40 +00:00
import InlineMessage from './components/inlinemessage/InlineMessage';
import Inplace from './components/inplace/Inplace';
2020-04-18 10:11:58 +00:00
import InputMask from './components/inputmask/InputMask';
import InputNumber from './components/inputnumber/InputNumber';
2018-12-16 21:04:39 +00:00
import InputSwitch from './components/inputswitch/InputSwitch';
2018-12-07 11:02:58 +00:00
import InputText from './components/inputtext/InputText';
2020-12-04 14:31:49 +00:00
import Knob from './components/knob/Knob';
2018-12-14 11:21:18 +00:00
import Listbox from './components/listbox/Listbox';
2019-12-05 07:07:40 +00:00
import MegaMenu from './components/megamenu/MegaMenu';
2019-05-27 08:10:22 +00:00
import Menu from './components/menu/Menu';
2019-12-04 10:43:42 +00:00
import Menubar from './components/menubar/Menubar';
2019-02-05 10:23:06 +00:00
import Message from './components/message/Message';
import MultiSelect from './components/multiselect/MultiSelect';
2019-07-16 12:47:00 +00:00
import OrderList from './components/orderlist/OrderList';
2019-07-22 17:37:21 +00:00
import OrganizationChart from './components/organizationchart/OrganizationChart';
2019-01-31 15:42:58 +00:00
import OverlayPanel from './components/overlaypanel/OverlayPanel';
2019-03-15 12:51:48 +00:00
import Paginator from './components/paginator/Paginator';
2018-12-09 19:03:25 +00:00
import Panel from './components/panel/Panel';
2019-12-09 06:51:21 +00:00
import PanelMenu from './components/panelmenu/PanelMenu';
2018-12-26 19:02:41 +00:00
import Password from './components/password/Password';
2019-07-18 20:29:20 +00:00
import PickList from './components/picklist/PickList';
2018-12-26 12:23:43 +00:00
import ProgressBar from './components/progressbar/ProgressBar';
2019-07-22 14:10:15 +00:00
import ProgressSpinner from './components/progressspinner/ProgressSpinner';
2018-12-17 19:18:46 +00:00
import Rating from './components/rating/Rating';
2018-12-14 09:41:13 +00:00
import RadioButton from './components/radiobutton/RadioButton';
2020-07-04 19:13:12 +00:00
import Ripple from './components/ripple/Ripple';
import Row from './components/row/Row';
import ScrollPanel from './components/scrollpanel/ScrollPanel';
2020-11-30 10:15:58 +00:00
import ScrollTop from './components/scrolltop/ScrollTop';
2018-12-15 13:39:00 +00:00
import SelectButton from './components/selectbutton/SelectButton';
2020-12-02 10:48:26 +00:00
import Skeleton from './components/skeleton/Skeleton';
2018-12-25 21:18:37 +00:00
import Slider from './components/slider/Slider';
2019-02-05 03:40:53 +00:00
import Sidebar from './components/sidebar/Sidebar';
2019-02-13 14:03:45 +00:00
import SplitButton from './components/splitbutton/SplitButton';
2020-12-03 13:49:18 +00:00
import Splitter from './components/splitter/Splitter';
import SplitterPanel from './components/splitterpanel/SplitterPanel';
2019-12-05 14:43:33 +00:00
import Steps from './components/steps/Steps';
2019-12-05 11:45:15 +00:00
import TabMenu from './components/tabmenu/TabMenu';
2019-07-31 15:35:23 +00:00
import TabView from './components/tabview/TabView';
import TabPanel from './components/tabpanel/TabPanel';
2020-11-28 19:54:20 +00:00
import Tag from './components/tag/Tag';
2020-03-16 14:09:38 +00:00
import Terminal from './components/terminal/Terminal';
2018-12-10 10:56:49 +00:00
import Textarea from './components/textarea/Textarea';
2019-12-03 08:33:46 +00:00
import TieredMenu from './components/tieredmenu/TieredMenu';
2020-11-24 09:24:39 +00:00
import Timeline from './components/timeline/Timeline';
2019-07-31 15:35:23 +00:00
import Tree from './components/tree/Tree';
2019-08-05 18:12:29 +00:00
import TreeTable from './components/treetable/TreeTable';
2019-02-08 10:55:52 +00:00
import Toast from './components/toast/Toast';
2020-12-29 18:25:30 +00:00
import ToastService from './components/toastservice/ToastService';
import ToggleButton from './components/togglebutton/ToggleButton';
2018-12-10 10:02:09 +00:00
import Toolbar from './components/toolbar/Toolbar';
2019-12-26 18:30:07 +00:00
import Tooltip from './components/tooltip/Tooltip';
2018-12-16 20:33:51 +00:00
import TriStateCheckbox from './components/tristatecheckbox/TriStateCheckbox';
2020-03-31 13:27:54 +00:00
import Galleria from './components/galleria/Galleria';
2018-12-07 11:02:58 +00:00
2020-06-20 09:40:01 +00:00
import AppInputStyleSwitch from './AppInputStyleSwitch';
2020-09-24 11:14:55 +00:00
import CodeHighlight from './AppCodeHighlight';
2019-03-20 07:57:32 +00:00
2018-12-07 11:02:58 +00:00
import './assets/styles/primevue.css';
2018-12-06 18:26:49 +00:00
import 'primeflex/primeflex.css';
2018-12-07 21:18:52 +00:00
import 'primeicons/primeicons.css';
2019-03-20 07:57:32 +00:00
import 'prismjs/themes/prism-coy.css';
2020-06-30 12:47:20 +00:00
import './assets/styles/flags.css';
2020-09-24 08:12:54 +00:00
router.beforeEach(function (to, from, next) {
2020-09-11 16:50:20 +00:00
window.scrollTo(0, 0);
next();
2020-09-24 08:12:54 +00:00
});
2019-12-26 18:30:07 +00:00
2020-09-11 16:50:20 +00:00
const app = createApp(App);
2020-06-20 09:40:01 +00:00
2021-02-02 15:18:01 +00:00
app.config.globalProperties.$appState = reactive({inputStyle: 'outlined', darkTheme: false, codeSandbox: true});
2020-12-09 12:24:11 +00:00
app.use(PrimeVue, {ripple: true});
2020-09-11 16:50:20 +00:00
app.use(ToastService);
app.use(ConfirmationService);
2020-09-11 16:50:20 +00:00
app.use(router);
2018-12-07 11:02:58 +00:00
app.directive('badge', BadgeDirective);
2020-09-11 16:50:20 +00:00
app.directive('tooltip', Tooltip);
app.directive('ripple', Ripple);
2019-03-20 07:57:32 +00:00
2020-09-11 16:50:20 +00:00
app.component('Accordion', Accordion);
app.component('AccordionTab', AccordionTab);
2020-11-28 17:19:30 +00:00
app.component('Avatar', Avatar);
app.component('AvatarGroup', AvatarGroup);
2020-09-11 16:50:20 +00:00
app.component('AutoComplete', AutoComplete);
2020-11-28 18:50:59 +00:00
app.component('Badge', Badge);
2020-09-11 16:50:20 +00:00
app.component('BlockUI', BlockUI);
app.component('Breadcrumb', Breadcrumb);
app.component('Button', Button);
app.component('Calendar', Calendar);
app.component('Card', Card);
app.component('Carousel', Carousel);
2020-12-07 14:36:46 +00:00
app.component('CascadeSelect', CascadeSelect);
2020-09-11 16:50:20 +00:00
app.component('Chart', Chart);
app.component('Checkbox', Checkbox);
2020-12-06 09:39:51 +00:00
app.component('Chip', Chip);
2020-09-11 16:50:20 +00:00
app.component('Chips', Chips);
app.component('ColorPicker', ColorPicker);
app.component('Column', Column);
app.component('ColumnGroup', ColumnGroup);
app.component('ConfirmDialog', ConfirmDialog);
2020-11-27 08:45:31 +00:00
app.component('ConfirmPopup', ConfirmPopup);
2020-09-11 16:50:20 +00:00
app.component('ContextMenu', ContextMenu);
app.component('DataTable', DataTable);
app.component('DataView', DataView);
app.component('DataViewLayoutOptions', DataViewLayoutOptions);
app.component('DeferredContent', DeferredContent);
app.component('Dialog', Dialog);
app.component('Divider', Divider);
2020-09-11 16:50:20 +00:00
app.component('Dropdown', Dropdown);
app.component('Editor', Editor);
app.component('Fieldset', Fieldset);
app.component('FileUpload', FileUpload);
app.component('FullCalendar', FullCalendar);
app.component('InlineMessage', InlineMessage);
app.component('Inplace', Inplace);
app.component('InputMask', InputMask);
app.component('InputNumber', InputNumber);
app.component('InputSwitch', InputSwitch);
app.component('InputText', InputText);
2020-12-04 14:31:49 +00:00
app.component('Knob', Knob);
2020-09-11 16:50:20 +00:00
app.component('Listbox', Listbox);
app.component('MegaMenu', MegaMenu);
app.component('Menu', Menu);
app.component('Menubar', Menubar);
app.component('Message', Message);
app.component('MultiSelect', MultiSelect);
app.component('OrderList', OrderList);
app.component('OrganizationChart', OrganizationChart);
app.component('OverlayPanel', OverlayPanel);
app.component('Paginator', Paginator);
app.component('Panel', Panel);
app.component('PanelMenu', PanelMenu);
app.component('Password', Password);
app.component('PickList', PickList);
app.component('ProgressBar', ProgressBar);
app.component('ProgressSpinner', ProgressSpinner);
app.component('RadioButton', RadioButton);
app.component('Rating', Rating);
app.component('Row', Row);
app.component('ScrollPanel', ScrollPanel);
2020-11-30 10:15:58 +00:00
app.component('ScrollTop', ScrollTop);
2020-09-11 16:50:20 +00:00
app.component('SelectButton', SelectButton);
app.component('Slider', Slider);
app.component('Sidebar', Sidebar);
2020-12-02 10:48:26 +00:00
app.component('Skeleton', Skeleton);
2020-09-11 16:50:20 +00:00
app.component('SplitButton', SplitButton);
2020-12-03 13:49:18 +00:00
app.component('Splitter', Splitter);
app.component('SplitterPanel', SplitterPanel);
2020-09-11 16:50:20 +00:00
app.component('Steps', Steps);
app.component('TabView', TabView);
app.component('TabPanel', TabPanel);
app.component('TabMenu', TabMenu);
2020-11-28 19:54:20 +00:00
app.component('Tag', Tag);
2020-09-11 16:50:20 +00:00
app.component('Terminal', Terminal);
app.component('Textarea', Textarea);
app.component('TieredMenu', TieredMenu);
2020-11-24 09:24:39 +00:00
app.component('Timeline', Timeline);
2020-09-11 16:50:20 +00:00
app.component('Toast', Toast);
app.component('Toolbar', Toolbar);
app.component('ToggleButton', ToggleButton);
app.component('Tree', Tree);
app.component('TreeTable', TreeTable);
app.component('TriStateCheckbox', TriStateCheckbox);
app.component('Galleria', Galleria);
app.component('AppInputStyleSwitch', AppInputStyleSwitch);
2020-09-24 11:14:55 +00:00
app.directive('code', CodeHighlight);
2020-09-11 16:50:20 +00:00
app.mount('#app');