Add gallery view to search pages (#773)

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

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]
}