mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-18 18:05:18 +00:00
chore: Update dependencies and clean up code formatting
- Downgraded '@trpc/server' version in package.json and pnpm-lock.yaml to match other TRPC packages. - Removed unused dependencies 'node-fetch', 'data-uri-to-buffer', 'fetch-blob', and 'formdata-polyfill' from pnpm-lock.yaml and package.json. - Improved code formatting in various components for better readability, including adjustments in 'edit-gitea-provider.tsx' and 'security-audit.tsx'. - Refactored imports in 'auth.ts' for better organization and clarity.
This commit is contained in:
@@ -26,16 +26,21 @@ export const SecurityAudit = ({ serverId }: Props) => {
|
||||
},
|
||||
);
|
||||
const _utils = api.useUtils();
|
||||
|
||||
|
||||
// Helper function to check if root login is securely configured
|
||||
const isRootLoginSecure = () => {
|
||||
if (!data?.ssh?.permitRootLogin) return false;
|
||||
|
||||
|
||||
// These are secure options for PermitRootLogin
|
||||
const secureOptions = ['no', 'prohibit-password', 'without-password', 'forced-commands-only'];
|
||||
const secureOptions = [
|
||||
"no",
|
||||
"prohibit-password",
|
||||
"without-password",
|
||||
"forced-commands-only",
|
||||
];
|
||||
return secureOptions.includes(data.ssh.permitRootLogin);
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<CardContent className="p-0">
|
||||
<div className="flex flex-col gap-4">
|
||||
@@ -49,7 +54,9 @@ export const SecurityAudit = ({ serverId }: Props) => {
|
||||
Setup Security Suggestions
|
||||
</CardTitle>
|
||||
</div>
|
||||
<CardDescription>Check the security suggestions</CardDescription>
|
||||
<CardDescription>
|
||||
Check the security suggestions
|
||||
</CardDescription>
|
||||
</div>
|
||||
<Button
|
||||
isLoading={isRefreshing}
|
||||
@@ -240,4 +247,4 @@ export const SecurityAudit = ({ serverId }: Props) => {
|
||||
</div>
|
||||
</CardContent>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user