build(webui): fix typescript config and issues after upgrading

This commit is contained in:
Gauthier Roebroeck 2023-09-13 15:37:30 +08:00
parent e7374e0896
commit d19c9d30c6
3 changed files with 7 additions and 3 deletions

View file

@ -41,10 +41,12 @@ export const persistedModule: Module<any, any> = {
// @ts-ignore
const loc = new Intl.Locale(state.locale)
try {
// @ts-ignore
return loc.getWeekInfo().firstDay
} catch (e) {
}
try {
// @ts-ignore
return loc.weekInfo.firstDay
} catch (e) {
}

View file

@ -224,8 +224,8 @@ export default Vue.extend({
const url = `${urls.originNoSlash}/oauth2/authorization/${provider.registrationId}`
const height = 600
const width = 600
const y = window.top.outerHeight / 2 + window.top.screenY - (height / 2)
const x = window.top.outerWidth / 2 + window.top.screenX - (width / 2)
const y = window.top!.outerHeight / 2 + window.top!.screenY - (height / 2)
const x = window.top!.outerWidth / 2 + window.top!.screenX - (width / 2)
window.open(url, 'oauth2Login',
`toolbar=no,
location=off,

View file

@ -36,5 +36,7 @@
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": []
"exclude": [
"node_modules"
]
}