web: fix formatting mostly, add pipeline
This commit is contained in:
		| @ -1,13 +1,17 @@ | ||||
| import { DefaultClient } from "./client"; | ||||
|  | ||||
| export class AdminOverview { | ||||
|     version?: string; | ||||
|     version_latest?: string; | ||||
|     worker_count?: number; | ||||
|     providers_without_application?: number; | ||||
|     policies_without_binding?: number; | ||||
|     cached_policies?: number; | ||||
|     cached_flows?: number; | ||||
|     version: string; | ||||
|     version_latest: string; | ||||
|     worker_count: number; | ||||
|     providers_without_application: number; | ||||
|     policies_without_binding: number; | ||||
|     cached_policies: number; | ||||
|     cached_flows: number; | ||||
|  | ||||
|     constructor() { | ||||
|         throw Error(); | ||||
|     } | ||||
|  | ||||
|     static get(): Promise<AdminOverview> { | ||||
|         return DefaultClient.fetch<AdminOverview>(["admin", "overview"]); | ||||
|  | ||||
| @ -1,17 +1,21 @@ | ||||
| import { DefaultClient, PBResponse } from "./client"; | ||||
|  | ||||
| export class Application { | ||||
|     pk?: string; | ||||
|     name?: string; | ||||
|     slug?: string; | ||||
|     provider?: number; | ||||
|     pk: string; | ||||
|     name: string; | ||||
|     slug: string; | ||||
|     provider: number; | ||||
|  | ||||
|     launch_url?: string; | ||||
|     meta_launch_url?: string; | ||||
|     meta_icon?: string; | ||||
|     meta_description?: string; | ||||
|     meta_publisher?: string; | ||||
|     policies?: string[]; | ||||
|     launch_url: string; | ||||
|     meta_launch_url: string; | ||||
|     meta_icon: string; | ||||
|     meta_description: string; | ||||
|     meta_publisher: string; | ||||
|     policies: string[]; | ||||
|  | ||||
|     constructor() { | ||||
|         throw Error(); | ||||
|     } | ||||
|  | ||||
|     static get(slug: string): Promise<Application> { | ||||
|         return DefaultClient.fetch<Application>(["core", "applications", slug]); | ||||
|  | ||||
| @ -4,12 +4,16 @@ import { Integrations } from "@sentry/tracing"; | ||||
| import { VERSION } from "../constants"; | ||||
|  | ||||
| export class Config { | ||||
|     branding_logo?: string; | ||||
|     branding_title?: string; | ||||
|     branding_logo: string; | ||||
|     branding_title: string; | ||||
|  | ||||
|     error_reporting_enabled?: boolean; | ||||
|     error_reporting_environment?: string; | ||||
|     error_reporting_send_pii?: boolean; | ||||
|     error_reporting_enabled: boolean; | ||||
|     error_reporting_environment: string; | ||||
|     error_reporting_send_pii: boolean; | ||||
|  | ||||
|     constructor() { | ||||
|         throw Error(); | ||||
|     } | ||||
|  | ||||
|     static get(): Promise<Config> { | ||||
|         return DefaultClient.fetch<Config>(["root", "config"]).then((config) => { | ||||
|  | ||||
| @ -1,12 +1,16 @@ | ||||
| import { DefaultClient, PBResponse } from "./client"; | ||||
|  | ||||
| export class User { | ||||
|     pk?: number; | ||||
|     username?: string; | ||||
|     name?: string; | ||||
|     is_superuser?: boolean; | ||||
|     email?: boolean; | ||||
|     avatar?: string; | ||||
|     pk: number; | ||||
|     username: string; | ||||
|     name: string; | ||||
|     is_superuser: boolean; | ||||
|     email: boolean; | ||||
|     avatar: string; | ||||
|  | ||||
|     constructor() { | ||||
|         throw Error(); | ||||
|     } | ||||
|  | ||||
|     static me(): Promise<User> { | ||||
|         return DefaultClient.fetch<User>(["core", "users", "me"]); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer