- Converting all to Typescript
- Installing 1.0.0.beta Quasar Upgrade - (Part 1 - Upgrade Components)
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
|
||||
interface IUriConfig {
|
||||
auth?: string
|
||||
content?: string
|
||||
site?: string
|
||||
services?: string
|
||||
auth?: string
|
||||
content?: string
|
||||
site?: string
|
||||
services?: string
|
||||
}
|
||||
|
||||
const uri: IUriConfig = {}
|
||||
|
||||
const addProp = (obj: {}, propName: string, value: string) => {
|
||||
Object.defineProperty(obj, propName, {
|
||||
enumerable: false,
|
||||
get: () => {
|
||||
return '//' + window.location.host + value
|
||||
}
|
||||
})
|
||||
Object.defineProperty(obj, propName, {
|
||||
enumerable: false,
|
||||
get: () => {
|
||||
return '//' + window.location.host + value
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
addProp(uri, 'auth', '/auth/')
|
||||
@@ -23,17 +22,17 @@ addProp(uri, 'site', process.env.MONGODB_HOST)
|
||||
addProp(uri, 'services', '/api/')
|
||||
|
||||
const config = {
|
||||
uri: uri,
|
||||
claimsNamespace: '//toucan/claims',
|
||||
auth: {
|
||||
accessTokenKey: 'AUTH-LOCAL',
|
||||
externalProviderKey: 'AUTH-EXTERNAL'
|
||||
},
|
||||
uopt: 'UOPT',
|
||||
xsrf: {
|
||||
cookieName: 'XSRF-TOKEN',
|
||||
headerName: 'X-XSRF-TOKEN'
|
||||
}
|
||||
claimsNamespace: '//toucan/claims',
|
||||
uri,
|
||||
auth: {
|
||||
accessTokenKey: 'AUTH-LOCAL',
|
||||
externalProviderKey: 'AUTH-EXTERNAL'
|
||||
},
|
||||
uopt: 'UOPT',
|
||||
xsrf: {
|
||||
cookieName: 'XSRF-TOKEN',
|
||||
headerName: 'X-XSRF-TOKEN'
|
||||
}
|
||||
}
|
||||
|
||||
export default config
|
||||
|
||||
Reference in New Issue
Block a user