Skip to content

Commit

Permalink
Merge pull request #167 from Suwayomi/main
Browse files Browse the repository at this point in the history
fix source browsing
  • Loading branch information
Robonau authored Mar 3, 2024
2 parents ecd1c0d + 1a3c1af commit e27548d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: string
uses: ASzc/change-string-case-action@v5
uses: ASzc/change-string-case-action@v6
with:
string: ${{ github.repository_owner }}/${{ github.event.repository.name }}
- name: Build and push Docker image
Expand Down
12 changes: 7 additions & 5 deletions src/lib/gql/graphqlClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import type { ResultOf, VariablesOf } from '$lib/gql/graphql';
import { get } from 'svelte/store';
import { lastFetched } from '../../../src/routes/(app)/browse/extensions/ExtensionsStores';
import { Meta } from '$lib/simpleStores';
import { introspection } from '../../graphql-env';
// import type { downloadChanged } from './Subscriptions';

const wsClient = createWSClient({
Expand Down Expand Up @@ -126,14 +127,14 @@ export const client = new Client({
const variables = info.variables as VariablesOf<typeof bindTrack>;
bindTrackUpdater(res, variables, cache);
},
fetchMangaInfo(result, _, cache, info) {
fetchManga(result, _, cache, info) {
const res = result as ResultOf<typeof fetchMangaInfo>;
const variables = info.variables as VariablesOf<
typeof fetchMangaInfo
>;
fetchMangaInfoUpdater(res, variables, cache);
},
fetchMangaChapters(result, _, cache, info) {
fetchChapters(result, _, cache, info) {
const res = result as ResultOf<typeof fetchMangaChapters>;
const variables = info.variables as VariablesOf<
typeof fetchMangaChapters
Expand All @@ -147,7 +148,7 @@ export const client = new Client({
>;
createCategoryUpdater(res, variables, cache);
},
setServerSettings(result, _, cache, info) {
setSettings(result, _, cache, info) {
const res = result as ResultOf<typeof setServerSettings>;
const variables = info.variables as VariablesOf<
typeof setServerSettings
Expand Down Expand Up @@ -191,7 +192,7 @@ export const client = new Client({
}
},
Query: {
getSingleChapter(result, _, cache, info) {
chapter(result, _, cache, info) {
const res = result as ResultOf<typeof getSingleChapter>;
const variables = info.variables as VariablesOf<
typeof getSingleChapter
Expand All @@ -206,7 +207,8 @@ export const client = new Client({
// downloadChangedUpdater(res, variables, cache);
// }
}
}
},
schema: introspection
}),
fetchExchange,
subscriptionExchange({
Expand Down
2 changes: 1 addition & 1 deletion versionToServerVersionMapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
{
"tag": "v1.0.0",
"uiVersion": "r567",
"uiVersion": "r573",
"serverVersion": "r1498"
}
]

0 comments on commit e27548d

Please sign in to comment.