Add gallery view to search pages (#773)

This commit is contained in:
Prospector authored and GitHub committed 2022-12-03 10:29:49 -08:00
1 parent f1a33db800
commit 964fa69fb4
18 files changed
+766 -418

No files matched your search

+6
View File
@@ -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]
}