Add gallery view to search pages (#773)
This commit is contained in:
1 parent
f1a33db800
commit
964fa69fb4
18 files changed
+766
-418
No files matched your search
@@ -175,6 +175,7 @@ export default (ctx, inject) => {
|
||||
return type
|
||||
}
|
||||
})
|
||||
inject('cycleValue', cycleValue)
|
||||
}
|
||||
|
||||
export const formatNumber = (number) => {
|
||||
@@ -333,3 +334,8 @@ export const formatVersions = (versionArray, store) => {
|
||||
|
||||
return output.join(', ')
|
||||
}
|
||||
|
||||
export const cycleValue = (value, values) => {
|
||||
const index = values.indexOf(value) + 1
|
||||
return values[index % values.length]
|
||||
}
|
||||
Reference in new issue
Block a user