Logo
Explore Help
Register Sign In
big-bro-watches-everything/devstar
1
0
Fork 0
You've already forked devstar
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
devstar-doc
devstar/web_src/js/modules/worker.ts

10 lines
274 B
TypeScript
Raw Permalink Normal View History

Convert frontend code to typescript (#31559) None of the frontend js/ts files was touched besides these two commands (edit: no longer true, I touched one file in https://github.com/go-gitea/gitea/pull/31559/commits/61105d0618e285d97e95044bfb64415f364a4526 because of a deprecation that was not showing before the rename). `tsc` currently reports 778 errors, so I have disabled it in CI as planned. Everything appears to work fine.
2024-07-07 17:32:30 +02:00
import {sleep} from '../utils.ts';
Improve logout from worker (#30775) A quick fix for #30756
2024-04-30 23:35:42 +08:00
const {appSubUrl} = window.config;
Fix some typescript issues (#32586) Fixes around 30 or so typescript errors. No runtime changes.
2024-11-21 14:57:42 +01:00
export async function logoutFromWorker(): Promise<void> {
Improve logout from worker (#30775) A quick fix for #30756
2024-04-30 23:35:42 +08:00
// wait for a while because other requests (eg: logout) may be in the flight
await sleep(5000);
window.location.href = `${appSubUrl}/`;
}
Reference in New Issue Copy Permalink
Powered by DevStar Version: 1.25.3+324-g0772a31744 Page: 44ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API ©Mengning Software . 2024-2025 All rights reserved. 苏ICP备2024068144号-3