mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-12 15:05:19 +00:00
chore: Format and lint codebase with format-and-lint:fix
This commit is contained in:
@@ -332,6 +332,7 @@ export const AddTemplate = ({ environmentId, baseUrl }: Props) => {
|
|||||||
viewMode === "detailed" && "border-b",
|
viewMode === "detailed" && "border-b",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
{/** biome-ignore lint/performance/noImgElement: this is a valid use for img tag */}
|
||||||
<img
|
<img
|
||||||
src={`${customBaseUrl || "https://templates.dokploy.com/"}/blueprints/${template?.id}/${template?.logo}`}
|
src={`${customBaseUrl || "https://templates.dokploy.com/"}/blueprints/${template?.id}/${template?.logo}`}
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ export const extractExpirationDate = (certData: string): Date | null => {
|
|||||||
|
|
||||||
// Helper: read ASN.1 length field
|
// Helper: read ASN.1 length field
|
||||||
function readLength(pos: number): { length: number; offset: number } {
|
function readLength(pos: number): { length: number; offset: number } {
|
||||||
// biome-ignore lint/style/noParameterAssign: <explanation>
|
// biome-ignore lint/style/noParameterAssign: this is for dynamic length calculation
|
||||||
let len = der[pos++];
|
let len = der[pos++];
|
||||||
if (len & 0x80) {
|
if (len & 0x80) {
|
||||||
const bytes = len & 0x7f;
|
const bytes = len & 0x7f;
|
||||||
len = 0;
|
len = 0;
|
||||||
for (let i = 0; i < bytes; i++) {
|
for (let i = 0; i < bytes; i++) {
|
||||||
// biome-ignore lint/style/noParameterAssign: <explanation>
|
// biome-ignore lint/style/noParameterAssign: this is for dynamic length calculation
|
||||||
len = (len << 8) + der[pos++];
|
len = (len << 8) + der[pos++];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -905,6 +905,7 @@ export default function Page({ children }: Props) {
|
|||||||
onOpenChange={(open) => {
|
onOpenChange={(open) => {
|
||||||
setDefaultOpen(open);
|
setDefaultOpen(open);
|
||||||
|
|
||||||
|
// biome-ignore lint/suspicious/noDocumentCookie: this sets the cookie to keep the sidebar state.
|
||||||
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}`;
|
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}`;
|
||||||
}}
|
}}
|
||||||
style={
|
style={
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ interface Props {
|
|||||||
export const Logo = ({ className = "size-14", logoUrl }: Props) => {
|
export const Logo = ({ className = "size-14", logoUrl }: Props) => {
|
||||||
if (logoUrl) {
|
if (logoUrl) {
|
||||||
return (
|
return (
|
||||||
|
// biome-ignore lint/performance/noImgElement: this is for dynamic logo loading
|
||||||
<img
|
<img
|
||||||
src={logoUrl}
|
src={logoUrl}
|
||||||
alt="Organization Logo"
|
alt="Organization Logo"
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const SidebarProvider = React.forwardRef<
|
|||||||
|
|
||||||
_setOpen(value);
|
_setOpen(value);
|
||||||
|
|
||||||
// This sets the cookie to keep the sidebar state.
|
// biome-ignore lint/suspicious/noDocumentCookie: This sets the cookie to keep the sidebar state.
|
||||||
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
||||||
},
|
},
|
||||||
[setOpenProp, open],
|
[setOpenProp, open],
|
||||||
|
|||||||
Reference in New Issue
Block a user