Docs updated | added some options

This commit is contained in:
Arunavo Ray
2025-08-27 21:43:36 +05:30
parent 926737f1c5
commit 12ee065833
9 changed files with 135 additions and 7 deletions

View File

@@ -59,6 +59,7 @@ export function ConfigTabs() {
},
mirrorOptions: {
mirrorReleases: false,
mirrorLFS: false,
mirrorMetadata: false,
metadataComponents: {
issues: false,
@@ -470,10 +471,14 @@ export function ConfigTabs() {
response.giteaConfig || config.giteaConfig,
scheduleConfig:
response.scheduleConfig || config.scheduleConfig,
cleanupConfig:
response.cleanupConfig || config.cleanupConfig,
mirrorOptions:
response.mirrorOptions || config.mirrorOptions,
cleanupConfig: {
...config.cleanupConfig,
...response.cleanupConfig, // Merge to preserve all fields
},
mirrorOptions: {
...config.mirrorOptions,
...response.mirrorOptions, // Merge to preserve all fields including new mirrorLFS
},
advancedOptions:
response.advancedOptions || config.advancedOptions,
});

View File

@@ -97,6 +97,32 @@ export function MirrorOptionsForm({
</Tooltip>
</label>
</div>
<div className="flex items-center">
<Checkbox
id="mirror-lfs"
checked={config.mirrorLFS}
onCheckedChange={(checked) =>
handleChange("mirrorLFS", Boolean(checked))
}
/>
<label
htmlFor="mirror-lfs"
className="ml-2 text-sm select-none flex items-center"
>
Mirror LFS (Large File Storage)
<Tooltip>
<TooltipTrigger asChild>
<span className="ml-1 cursor-pointer text-muted-foreground">
<Info size={14} />
</span>
</TooltipTrigger>
<TooltipContent side="right" className="max-w-xs text-xs">
Mirror Git LFS objects. Requires LFS to be enabled on your Gitea server and Git v2.1.2+
</TooltipContent>
</Tooltip>
</label>
</div>
<div className="flex items-center">
<Checkbox