You've already forked AstralRinth
forked from didirus/AstralRinth
Search UI improvements (#107)
* Base impl * Make project type selectable * Update Browse.vue * address changes * Quick create * Run linter * fix merge * Addressed changes * Installation improvements * Run lint * resourcepacks * automatic installation of dependencies * Fix bugs with search * Addressed changes * Run linter * Fixed direct install not working * Remove back to search * Update Index.vue * Addressed some changes * Shader fix * fix resetting * Update Browse.vue * Direct install from search * More improvements * Update SearchCard.vue * Card V2 * Run linter * add instance ignoring * Update Browse.vue * Finalize changes * Update SearchCard.vue * More adjustments * Fix out of order rendering * Run linter * Fix issues * Add unlisteners --------- Co-authored-by: Geometrically <18202329+Geometrically@users.noreply.github.com> Co-authored-by: Jai A <jaiagr+gpg@pm.me>
This commit is contained in:
@@ -20,12 +20,13 @@ export const useSearch = defineStore('searchStore', {
|
||||
openSource: false,
|
||||
limit: 20,
|
||||
instanceContext: null,
|
||||
ignoreInstance: false,
|
||||
}),
|
||||
actions: {
|
||||
getQueryString() {
|
||||
let andFacets = [`project_type:${this.projectType === 'datapack' ? 'mod' : this.projectType}`]
|
||||
|
||||
if (this.instanceContext) {
|
||||
if (this.instanceContext && !this.ignoreInstance) {
|
||||
this.activeVersions = [this.instanceContext.metadata.game_version]
|
||||
}
|
||||
|
||||
@@ -42,7 +43,7 @@ export const useSearch = defineStore('searchStore', {
|
||||
;[...andFacets, `categories:${encodeURIComponent('datapack')}`].forEach(
|
||||
(f) => (formattedAndFacets += `["${f}"],`)
|
||||
)
|
||||
} else if (this.instanceContext && this.projectType === 'mod') {
|
||||
} else if (this.instanceContext && !this.ignoreInstance && this.projectType === 'mod') {
|
||||
;[
|
||||
...andFacets,
|
||||
`categories:${encodeURIComponent(this.instanceContext.metadata.loader)}`,
|
||||
|
||||
Reference in New Issue
Block a user