mirror of
https://github.com/gotson/komga.git
synced 2026-04-21 14:30:50 +02:00
build(webui): fix typescript config and issues after upgrading
This commit is contained in:
parent
e7374e0896
commit
d19c9d30c6
3 changed files with 7 additions and 3 deletions
|
|
@ -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) {
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -36,5 +36,7 @@
|
|||
"tests/**/*.ts",
|
||||
"tests/**/*.tsx"
|
||||
],
|
||||
"exclude": []
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue