mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:09:23 +02:00
Resolve "Support browsing a specific library content"
This commit is contained in:
parent
ecc3ed3ac3
commit
b166182762
47 changed files with 1020 additions and 336 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue