mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Always use .wsz in museum pages
This commit is contained in:
parent
96ffdcda59
commit
50d5dbbf4f
2 changed files with 12 additions and 10 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import * as Utils from "./utils";
|
||||
import { gql } from "./utils";
|
||||
import { algoliasearch } from "algoliasearch";
|
||||
|
||||
const client = algoliasearch("HQ9I5Z6IM5", "6466695ec3f624a5fccf46ec49680e51");
|
||||
|
|
@ -6,14 +7,15 @@ const client = algoliasearch("HQ9I5Z6IM5", "6466695ec3f624a5fccf46ec49680e51");
|
|||
// Fallback search that uses SQLite. Useful for when we've exceeded the Algolia
|
||||
// search quota.
|
||||
export async function graphqlSearch(query) {
|
||||
const queryText = Utils.gql`
|
||||
query SearchQuery($query: String!) {
|
||||
search_classic_skins(query: $query, first: 500) {
|
||||
filename
|
||||
md5
|
||||
nsfw
|
||||
}
|
||||
}`;
|
||||
const queryText = gql`
|
||||
query SearchQuery($query: String!) {
|
||||
search_classic_skins(query: $query, first: 500) {
|
||||
filename(normalize_extension: true)
|
||||
md5
|
||||
nsfw
|
||||
}
|
||||
}
|
||||
`;
|
||||
const data = await Utils.fetchGraphql(queryText, { query });
|
||||
const hits = data.search_classic_skins.map((skin) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ const unloadedSkinEpic = (actions, _states) =>
|
|||
count
|
||||
nodes {
|
||||
md5
|
||||
filename
|
||||
filename(normalize_extension: true)
|
||||
nsfw
|
||||
}
|
||||
}
|
||||
|
|
@ -481,7 +481,7 @@ const skinDataEpic = (actions, state) => {
|
|||
const QUERY = gql`
|
||||
query IndividualSkin($md5: String!) {
|
||||
fetch_skin_by_md5(md5: $md5) {
|
||||
filename
|
||||
filename(normalize_extension: true)
|
||||
nsfw
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue