- Implemented register date for users

This commit is contained in:
Alexis
2020-12-24 17:55:32 +01:00
parent 772b225072
commit 01df57f510
3 changed files with 15 additions and 2 deletions

View File

@@ -43,14 +43,14 @@ import clipboard from 'v-clipboard'
Vue.use(clipboard)
// FUNCTIONS
var filter = function(text, length, clamp){
var filter = (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)
Vue.filter('truncate', filter);
// Router
import router from './routes'