mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
bun run format
This commit is contained in:
@@ -8,9 +8,12 @@ import { Message } from "ui/components/display/Message";
|
||||
import { useNavigate } from "ui/lib/routes";
|
||||
import type { AdminBkndWindowContext } from "modules/server/AdminController";
|
||||
|
||||
export type BkndAdminOptions = Omit<AdminBkndWindowContext, "user" | "logout_route" | "admin_basepath"> & {
|
||||
export type BkndAdminOptions = Omit<
|
||||
AdminBkndWindowContext,
|
||||
"user" | "logout_route" | "admin_basepath"
|
||||
> & {
|
||||
admin_basepath?: string;
|
||||
}
|
||||
};
|
||||
type BkndContext = {
|
||||
version: number;
|
||||
schema: ModuleSchemas;
|
||||
|
||||
@@ -36,8 +36,8 @@ export class AppReduced {
|
||||
constructor(
|
||||
protected appJson: AppType,
|
||||
protected _options: BkndAdminOptions = {
|
||||
admin_basepath: '',
|
||||
logo_return_path: '/'
|
||||
admin_basepath: "",
|
||||
logo_return_path: "/",
|
||||
},
|
||||
) {
|
||||
//console.log("received appjson", appJson);
|
||||
@@ -88,20 +88,20 @@ export class AppReduced {
|
||||
|
||||
get options() {
|
||||
return {
|
||||
admin_basepath: '',
|
||||
logo_return_path: '/',
|
||||
admin_basepath: "",
|
||||
logo_return_path: "/",
|
||||
...this._options,
|
||||
};
|
||||
}
|
||||
|
||||
getSettingsPath(path: string[] = []): string {
|
||||
const basePath = this.options.admin_basepath ? `~/${this.options.admin_basepath}` : '~';
|
||||
const base = `${basePath}/settings`
|
||||
const basePath = this.options.admin_basepath ? `~/${this.options.admin_basepath}` : "~";
|
||||
const base = `${basePath}/settings`;
|
||||
return normalizeAdminPath([base, ...path].join("/"));
|
||||
}
|
||||
|
||||
getAbsolutePath(path?: string): string {
|
||||
const basePath = this.options.admin_basepath ? `~/${this.options.admin_basepath}` : '~';
|
||||
const basePath = this.options.admin_basepath ? `~/${this.options.admin_basepath}` : "~";
|
||||
return normalizeAdminPath(path ? `${basePath}/${path}` : basePath);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
--color-success-foreground: var(--color-green-800);
|
||||
--color-info: var(--color-blue-100);
|
||||
--color-info-foreground: var(--color-blue-800);
|
||||
|
||||
|
||||
--color-resize: var(--color-blue-300);
|
||||
|
||||
@mixin light {
|
||||
|
||||
Reference in New Issue
Block a user