Resolve "Support browsing a specific library content"

This commit is contained in:
Eliot Berriot 2020-03-04 22:18:28 +01:00
parent ecc3ed3ac3
commit b166182762
47 changed files with 1020 additions and 336 deletions

View file

@ -3,6 +3,9 @@ import Vue from 'vue'
import moment from 'moment'
export function truncate (str, max, ellipsis, middle) {
if (max === 0) {
return
}
max = max || 100
ellipsis = ellipsis || '…'
if (str.length <= max) {