- Converting all to Typescript

- Installing 1.0.0.beta Quasar Upgrade
   - (Part 1 - Upgrade Components)
This commit is contained in:
Paolo Arena
2019-03-11 19:16:39 +01:00
parent 58967a1650
commit bb3be0ec16
85 changed files with 3961 additions and 32086 deletions

View File

@@ -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