181 lines
7.8 KiB
JavaScript
181 lines
7.8 KiB
JavaScript
import {createApp} from 'vue';
|
|
import {reactive} from 'vue'
|
|
import router from './router';
|
|
import App from './App.vue';
|
|
import AutoComplete from './components/autocomplete/AutoComplete';
|
|
import Accordion from './components/accordion/Accordion';
|
|
import AccordionTab from './components/accordiontab/AccordionTab';
|
|
import BlockUI from './components/blockui/BlockUI';
|
|
import Breadcrumb from './components/breadcrumb/Breadcrumb';
|
|
import Button from './components/button/Button';
|
|
import Calendar from './components/calendar/Calendar';
|
|
import Card from './components/card/Card';
|
|
import Carousel from './components/carousel/Carousel';
|
|
import Chart from './components/chart/Chart';
|
|
import Checkbox from './components/checkbox/Checkbox';
|
|
import Chips from './components/chips/Chips';
|
|
import ColorPicker from './components/colorpicker/ColorPicker';
|
|
import Column from './components/column/Column';
|
|
import ColumnGroup from './components/columngroup/ColumnGroup';
|
|
import ContextMenu from './components/contextmenu/ContextMenu';
|
|
import DataTable from './components/datatable/DataTable';
|
|
import DataView from './components/dataview/DataView';
|
|
import DataViewLayoutOptions from './components/dataviewlayoutoptions/DataViewLayoutOptions';
|
|
import DeferredContent from './components/deferredcontent/DeferredContent';
|
|
import Dialog from './components/dialog/Dialog';
|
|
import Dropdown from './components/dropdown/Dropdown';
|
|
import Editor from './components/editor/Editor';
|
|
import Fieldset from './components/fieldset/Fieldset';
|
|
import FileUpload from './components/fileupload/FileUpload';
|
|
import FullCalendar from './components/fullcalendar/FullCalendar';
|
|
import InlineMessage from './components/inlinemessage/InlineMessage';
|
|
import Inplace from './components/inplace/Inplace';
|
|
import InputMask from './components/inputmask/InputMask';
|
|
import InputNumber from './components/inputnumber/InputNumber';
|
|
import InputSwitch from './components/inputswitch/InputSwitch';
|
|
import InputText from './components/inputtext/InputText';
|
|
import Listbox from './components/listbox/Listbox';
|
|
import MegaMenu from './components/megamenu/MegaMenu';
|
|
import Menu from './components/menu/Menu';
|
|
import Menubar from './components/menubar/Menubar';
|
|
import Message from './components/message/Message';
|
|
import MultiSelect from './components/multiselect/MultiSelect';
|
|
import OrderList from './components/orderlist/OrderList';
|
|
import OrganizationChart from './components/organizationchart/OrganizationChart';
|
|
import OverlayPanel from './components/overlaypanel/OverlayPanel';
|
|
import Paginator from './components/paginator/Paginator';
|
|
import Panel from './components/panel/Panel';
|
|
import PanelMenu from './components/panelmenu/PanelMenu';
|
|
import Password from './components/password/Password';
|
|
import PickList from './components/picklist/PickList';
|
|
import ProgressBar from './components/progressbar/ProgressBar';
|
|
import ProgressSpinner from './components/progressspinner/ProgressSpinner';
|
|
import Rating from './components/rating/Rating';
|
|
import RadioButton from './components/radiobutton/RadioButton';
|
|
import Row from './components/row/Row';
|
|
import Ripple from './components/ripple/Ripple';
|
|
import ScrollPanel from './components/scrollpanel/ScrollPanel';
|
|
import SelectButton from './components/selectbutton/SelectButton';
|
|
import Slider from './components/slider/Slider';
|
|
import Sidebar from './components/sidebar/Sidebar';
|
|
import SplitButton from './components/splitbutton/SplitButton';
|
|
import Steps from './components/steps/Steps';
|
|
import TabMenu from './components/tabmenu/TabMenu';
|
|
import TabView from './components/tabview/TabView';
|
|
import TabPanel from './components/tabpanel/TabPanel';
|
|
import Terminal from './components/terminal/Terminal';
|
|
import Textarea from './components/textarea/Textarea';
|
|
import TieredMenu from './components/tieredmenu/TieredMenu';
|
|
import Tree from './components/tree/Tree';
|
|
import TreeTable from './components/treetable/TreeTable';
|
|
import Toast from './components/toast/Toast';
|
|
import ToastService from './components/toast/ToastService';
|
|
import Toolbar from './components/toolbar/Toolbar';
|
|
import Tooltip from './components/tooltip/Tooltip';
|
|
import ToggleButton from './components/togglebutton/ToggleButton';
|
|
import TriStateCheckbox from './components/tristatecheckbox/TriStateCheckbox';
|
|
import Galleria from './components/galleria/Galleria';
|
|
|
|
import AppInputStyleSwitch from './AppInputStyleSwitch';
|
|
import CodeHighlight from './AppCodeHighlight';
|
|
|
|
import './assets/styles/primevue.css';
|
|
import 'primeflex/primeflex.css';
|
|
import 'primeicons/primeicons.css';
|
|
import 'prismjs/themes/prism-coy.css';
|
|
import '@fullcalendar/core/main.min.css';
|
|
import '@fullcalendar/daygrid/main.min.css';
|
|
import '@fullcalendar/timegrid/main.min.css';
|
|
import './assets/styles/flags.css';
|
|
|
|
router.beforeEach(function (to, from, next) {
|
|
window.scrollTo(0, 0);
|
|
next();
|
|
});
|
|
|
|
const app = createApp(App);
|
|
|
|
app.config.globalProperties.$appState = reactive({inputStyle: 'outlined', darkTheme: false});
|
|
app.config.globalProperties.$primevue = reactive({ripple: true});
|
|
|
|
app.use(ToastService);
|
|
app.use(router);
|
|
|
|
app.directive('tooltip', Tooltip);
|
|
app.directive('ripple', Ripple);
|
|
|
|
app.component('Accordion', Accordion);
|
|
app.component('AccordionTab', AccordionTab);
|
|
app.component('AutoComplete', AutoComplete);
|
|
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);
|
|
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('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);
|
|
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);
|
|
app.directive('code', CodeHighlight);
|
|
|
|
app.mount('#app'); |