mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-27 14:08:46 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -429,8 +429,7 @@ const MENU: Menu = {
|
|||||||
url: "/dashboard/settings/whitelabeling",
|
url: "/dashboard/settings/whitelabeling",
|
||||||
icon: Palette,
|
icon: Palette,
|
||||||
// Only enabled for owners in non-cloud environments (enterprise)
|
// Only enabled for owners in non-cloud environments (enterprise)
|
||||||
isEnabled: ({ auth, isCloud }) =>
|
isEnabled: ({ auth, isCloud }) => !!(auth?.role === "owner" && !isCloud),
|
||||||
!!(auth?.role === "owner" && !isCloud),
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -460,7 +459,13 @@ function createMenuForAuthUser(opts: {
|
|||||||
supportUrl?: string | null;
|
supportUrl?: string | null;
|
||||||
} | null;
|
} | null;
|
||||||
}): Menu {
|
}): Menu {
|
||||||
const filterEnabled = <T extends { isEnabled?: (o: { auth?: AuthQueryOutput; isCloud: boolean }) => boolean }>(items: readonly T[]): T[] =>
|
const filterEnabled = <
|
||||||
|
T extends {
|
||||||
|
isEnabled?: (o: { auth?: AuthQueryOutput; isCloud: boolean }) => boolean;
|
||||||
|
},
|
||||||
|
>(
|
||||||
|
items: readonly T[],
|
||||||
|
): T[] =>
|
||||||
items.filter((item) =>
|
items.filter((item) =>
|
||||||
!item.isEnabled
|
!item.isEnabled
|
||||||
? true
|
? true
|
||||||
|
|||||||
@@ -164,10 +164,10 @@ export const CodeEditor = ({
|
|||||||
: language === "json"
|
: language === "json"
|
||||||
? json()
|
? json()
|
||||||
: language === "css"
|
: language === "css"
|
||||||
? css()
|
? css()
|
||||||
: language === "shell"
|
: language === "shell"
|
||||||
? StreamLanguage.define(shell)
|
? StreamLanguage.define(shell)
|
||||||
: StreamLanguage.define(properties),
|
: StreamLanguage.define(properties),
|
||||||
props.lineWrapping ? EditorView.lineWrapping : [],
|
props.lineWrapping ? EditorView.lineWrapping : [],
|
||||||
language === "yaml"
|
language === "yaml"
|
||||||
? autocompletion({
|
? autocompletion({
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
import { relations } from "drizzle-orm";
|
import { relations } from "drizzle-orm";
|
||||||
import {
|
import { boolean, jsonb, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
||||||
boolean,
|
|
||||||
jsonb,
|
|
||||||
pgTable,
|
|
||||||
text,
|
|
||||||
timestamp,
|
|
||||||
} from "drizzle-orm/pg-core";
|
|
||||||
import { createInsertSchema } from "drizzle-zod";
|
import { createInsertSchema } from "drizzle-zod";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|||||||
Reference in New Issue
Block a user