2020-09-11 16:50:20 +00:00
|
|
|
import {createApp} from 'vue';
|
|
|
|
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';
|
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';
|
2019-05-25 15:47:08 +00:00
|
|
|
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';
|
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';
|
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';
|
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';
|
2020-11-26 14:53:50 +00:00
|
|
|
import ConfirmDialog from './components/confirmdialog/ConfirmDialog';
|
2020-11-27 08:45:31 +00:00
|
|
|
import ConfirmPopup from './components/confirmpopup/ConfirmPopup';
|
2020-11-26 14:53:50 +00:00
|
|
|
import ConfirmationService from './components/confirmation/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';
|
2020-11-28 13:59:11 +00:00
|
|
|
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';
|
2019-07-19 20:22:32 +00:00
|
|
|
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';
|
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';
|
2020-11-26 14:53:50 +00:00
|
|
|
import Row from './components/row/Row';
|
2020-05-27 06:51:02 +00:00
|
|
|
import ScrollPanel from './components/scrollpanel/ScrollPanel';
|
2018-12-15 13:39:00 +00:00
|
|
|
import SelectButton from './components/selectbutton/SelectButton';
|
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';
|
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-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';
|
|
|
|
import ToastService from './components/toast/ToastService';
|
2020-11-26 14:53:50 +00:00
|
|
|
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';
|
2019-05-13 11:47:17 +00:00
|
|
|
import '@fullcalendar/core/main.min.css';
|
|
|
|
import '@fullcalendar/daygrid/main.min.css';
|
|
|
|
import '@fullcalendar/timegrid/main.min.css';
|
2020-06-30 12:47:20 +00:00
|
|
|
import './assets/styles/flags.css';
|
2018-12-04 07:08:40 +00:00
|
|
|
|
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
|
|
|
|
2020-09-11 16:50:20 +00:00
|
|
|
app.config.globalProperties.$appState = reactive({inputStyle: 'outlined', darkTheme: false});
|
|
|
|
app.config.globalProperties.$primevue = reactive({ripple: true});
|
2018-12-04 07:08:40 +00:00
|
|
|
|
2020-09-11 16:50:20 +00:00
|
|
|
app.use(ToastService);
|
2020-11-26 14:53:50 +00:00
|
|
|
app.use(ConfirmationService);
|
2020-09-11 16:50:20 +00:00
|
|
|
app.use(router);
|
2018-12-07 11:02:58 +00:00
|
|
|
|
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);
|
|
|
|
app.component('Chart', Chart);
|
|
|
|
app.component('Checkbox', Checkbox);
|
|
|
|
app.component('Chips', Chips);
|
|
|
|
app.component('ColorPicker', ColorPicker);
|
|
|
|
app.component('Column', Column);
|
|
|
|
app.component('ColumnGroup', ColumnGroup);
|
2020-11-26 14:53:50 +00:00
|
|
|
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);
|
2020-11-28 13:59:11 +00:00
|
|
|
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);
|
|
|
|
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);
|
|
|
|
app.component('SelectButton', SelectButton);
|
|
|
|
app.component('Slider', Slider);
|
|
|
|
app.component('Sidebar', Sidebar);
|
|
|
|
app.component('SplitButton', SplitButton);
|
|
|
|
app.component('Steps', Steps);
|
|
|
|
app.component('TabView', TabView);
|
|
|
|
app.component('TabPanel', TabPanel);
|
|
|
|
app.component('TabMenu', TabMenu);
|
|
|
|
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-05-13 14:10:36 +00:00
|
|
|
|
2020-09-11 16:50:20 +00:00
|
|
|
app.mount('#app');
|