premerge
This commit is contained in:
parent
ea80131505
commit
f6b084f66f
|
@ -1,5 +1,5 @@
|
||||||
overwrite: true
|
overwrite: true
|
||||||
schema: 'http://localhost:8080'
|
schema: 'https://testapi.discours.io'
|
||||||
generates:
|
generates:
|
||||||
src/graphql/introspec.gen.ts:
|
src/graphql/introspec.gen.ts:
|
||||||
plugins:
|
plugins:
|
||||||
|
|
|
@ -2,9 +2,18 @@ import { createClient } from '@urql/core'
|
||||||
import { isDev } from '../utils/config'
|
import { isDev } from '../utils/config'
|
||||||
|
|
||||||
const localClient = (options) => {
|
const localClient = (options) => {
|
||||||
console.info('[graphql] using local client')
|
const url = 'http://localhost:8080'
|
||||||
options.url = 'http://localhost:8080'
|
let c
|
||||||
return createClient(options)
|
try {
|
||||||
|
c = createClient({ ...options, url })
|
||||||
|
console.info('[graphql] using local client')
|
||||||
|
} catch (e) {
|
||||||
|
c = createClient(options)
|
||||||
|
console.info(
|
||||||
|
`[graphql] using ${options.url.replace('https://', '').replace('/graphql', '').replace('/', '')}`
|
||||||
|
)
|
||||||
|
}
|
||||||
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
export const initClient = (options) => {
|
export const initClient = (options) => {
|
||||||
|
|
|
@ -13,8 +13,8 @@ export default gql`
|
||||||
_id: shouts
|
_id: shouts
|
||||||
shouts
|
shouts
|
||||||
authors
|
authors
|
||||||
# viewed
|
|
||||||
followers
|
followers
|
||||||
|
viewed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ export default gql`
|
||||||
_id: shouts
|
_id: shouts
|
||||||
shouts
|
shouts
|
||||||
authors
|
authors
|
||||||
# viewed
|
|
||||||
followers
|
followers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ export default gql`
|
||||||
_id: shouts
|
_id: shouts
|
||||||
shouts
|
shouts
|
||||||
authors
|
authors
|
||||||
# viewed
|
|
||||||
followers
|
followers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,6 @@ export default gql`
|
||||||
_id: shouts
|
_id: shouts
|
||||||
shouts
|
shouts
|
||||||
authors
|
authors
|
||||||
# viewed
|
|
||||||
followers
|
followers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -667,7 +667,7 @@ export type TopicStat = {
|
||||||
rating?: Maybe<Scalars['Int']>
|
rating?: Maybe<Scalars['Int']>
|
||||||
reacted: Scalars['Int']
|
reacted: Scalars['Int']
|
||||||
shouts: Scalars['Int']
|
shouts: Scalars['Int']
|
||||||
viewed: Scalars['Int']
|
viewed?: Maybe<Scalars['Int']>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type User = {
|
export type User = {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
@import 'globals';
|
@import 'globals';
|
||||||
@import 'bootstrap/scss/functions';
|
@import 'bootstrap/scss/functions';
|
||||||
@import 'bootstrap/scss/variables';
|
@import 'bootstrap/scss/variables';
|
||||||
|
@import 'bootstrap/scss/maps';
|
||||||
@import 'bootstrap/scss/vendor/rfs';
|
@import 'bootstrap/scss/vendor/rfs';
|
||||||
@import 'bootstrap/scss/mixins/breakpoints';
|
@import 'bootstrap/scss/mixins/breakpoints';
|
||||||
@import 'bootstrap/scss/mixins/grid';
|
@import 'bootstrap/scss/mixins/grid';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user