This commit is contained in:
BlackMageMathos
2020-06-03 18:08:32 +02:00
parent 0804eb5ec3
commit 966804efe1
10 changed files with 657 additions and 648 deletions

View File

@@ -4,9 +4,20 @@ import App from './app.vue'
import routes from './routes'
window.$ = window.jQuery = require('jquery');
Vue.config.productionTip = false
Vue.use(VueRouter)
var filter = function(text, length, clamp){
clamp = clamp || '...';
var node = document.createElement('div');
node.innerHTML = text;
var content = node.textContent;
return content.length > length ? content.slice(0, length) + clamp : content;
};
Vue.filter('truncate', filter);
const router = new VueRouter({
mode: 'history',
routes,