mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-02 08:34:17 -05:00
* migration redesign init * new color picker * changelog * added UI language selection * fix layout issue on recipe editor * remove git as dependency * added UI editor for original URL * CI/CD Tests * test: fixed migration routes Co-authored-by: Hayden <hay-kot@pm.me>
38 lines
809 B
JavaScript
38 lines
809 B
JavaScript
import Vue from "vue";
|
|
import App from "./App.vue";
|
|
import vuetify from "./plugins/vuetify";
|
|
import store from "./store/store";
|
|
import VueRouter from "vue-router";
|
|
import { routes } from "./routes";
|
|
import i18n from "./i18n";
|
|
|
|
Vue.config.productionTip = false;
|
|
Vue.use(VueRouter);
|
|
|
|
const router = new VueRouter({
|
|
routes,
|
|
mode: process.env.NODE_ENV === "production" ? "history" : "hash",
|
|
});
|
|
|
|
|
|
new Vue({
|
|
vuetify,
|
|
store,
|
|
router,
|
|
i18n,
|
|
render: h => h(App),
|
|
}).$mount("#app");
|
|
|
|
// Truncate
|
|
let filter = 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;
|
|
};
|
|
|
|
Vue.filter("truncate", filter);
|
|
|
|
export { router };
|