Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix source browsing #167

Merged
merged 3 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
]