* pin editor buttons on scroll * scaler scratch * fix langauge assignment 1st pass * set lang on navigate * refactor/breakup router * unify style for language selectro * refactor/code-cleanup * refactor/page specific components to page folder * Fix time card layout issue * fix timecard display * update mobile cards / fix overflow errors Co-authored-by: hay-kot <hay-kot@pm.me>
41 lines
1015 B
JavaScript
41 lines
1015 B
JavaScript
import Vue from "vue";
|
|
import App from "./App.vue";
|
|
import vuetify from "./plugins/vuetify";
|
|
import store from "./store";
|
|
import VueRouter from "vue-router";
|
|
import { router } from "./routes";
|
|
import i18n from "./i18n";
|
|
import FlashMessage from "@smartweb/vue-flash-message";
|
|
import "@mdi/font/css/materialdesignicons.css";
|
|
import "typeface-roboto/index.css";
|
|
|
|
Vue.use(FlashMessage);
|
|
Vue.config.productionTip = false;
|
|
Vue.use(VueRouter);
|
|
|
|
const vueApp = new Vue({
|
|
vuetify,
|
|
store,
|
|
router,
|
|
i18n,
|
|
render: h => h(App),
|
|
}).$mount("#app");
|
|
|
|
// Truncate
|
|
let truncate = function(text, length, clamp) {
|
|
clamp = clamp || "...";
|
|
let node = document.createElement("div");
|
|
node.innerHTML = text;
|
|
let content = node.textContent;
|
|
return content.length > length ? content.slice(0, length) + clamp : content;
|
|
};
|
|
|
|
let titleCase = function(value) {
|
|
return value.replace(/(?:^|\s|-)\S/g, x => x.toUpperCase());
|
|
};
|
|
|
|
Vue.filter("truncate", truncate);
|
|
Vue.filter("titleCase", titleCase);
|
|
|
|
export { router, vueApp };
|