mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-17 05:56:29 +00:00
20 lines
522 B
TypeScript
20 lines
522 B
TypeScript
|
import { User } from '~/lib/api/types';
|
||
|
|
||
|
declare global {
|
||
|
interface Window {
|
||
|
WOODPECKER_USER: User | undefined;
|
||
|
WOODPECKER_SYNC: boolean | undefined;
|
||
|
WOODPECKER_DOCS: string | undefined;
|
||
|
WOODPECKER_VERSION: string | undefined;
|
||
|
WOODPECKER_CSRF: string | undefined;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default () => ({
|
||
|
user: window.WOODPECKER_USER || null,
|
||
|
syncing: window.WOODPECKER_SYNC || null,
|
||
|
docs: window.WOODPECKER_DOCS || null,
|
||
|
version: window.WOODPECKER_VERSION,
|
||
|
csrf: window.WOODPECKER_CSRF || null,
|
||
|
});
|