feat: add import for config files from oldmarr (#1019)
* wip: add oldmarr config import
* wip: add support for wrong amount of categories / sections with autofix, color mapping, position adjustments of wrappers
* fix: lockfile broken
* feat: add support for form data trpc requests
* wip: improve file upload
* refactor: restructure import, add import configuration
* wip: add configurations for import to modal
* refactor: move oldmarr import to old-import package
* fix: column count not respects screen size for board
* feat: add beta badge for oldmarr config import
* chore: address pull request feedback
* fix: format issues
* fix: inconsistent versions
* fix: deepsource issues
* fix: revert {} to Record<string, never> convertion to prevent typecheck issue
* fix: inconsistent zod version
* fix: format issue
* chore: address pull request feedback
* fix: wrong import
* fix: broken lock file
* fix: inconsistent versions
* fix: format issues
This commit is contained in:
@@ -530,6 +530,7 @@ export default {
|
||||
symbols: {
|
||||
colon: ": ",
|
||||
},
|
||||
beta: "Beta",
|
||||
error: "Error",
|
||||
errors: {
|
||||
noData: "No data to show",
|
||||
@@ -541,6 +542,7 @@ export default {
|
||||
backToOverview: "Back to overview",
|
||||
create: "Create",
|
||||
edit: "Edit",
|
||||
import: "Import",
|
||||
insert: "Insert",
|
||||
remove: "Remove",
|
||||
save: "Save",
|
||||
@@ -644,6 +646,9 @@ export default {
|
||||
passwordsDoNotMatch: "Passwords do not match",
|
||||
passwordRequirements: "Password does not meet the requirements",
|
||||
boardAlreadyExists: "A board with this name already exists",
|
||||
invalidFileType: "Invalid file type, expected {expected}",
|
||||
fileTooLarge: "File is too large, maximum size is {maxSize}",
|
||||
invalidConfiguration: "Invalid configuration",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -1202,6 +1207,61 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
oldImport: {
|
||||
label: "Import from homarr before 1.0.0",
|
||||
notification: {
|
||||
success: {
|
||||
title: "Import successful",
|
||||
message: "The board was successfully imported",
|
||||
},
|
||||
error: {
|
||||
title: "Import failed",
|
||||
message: "The board could not be imported, check the logs for further details",
|
||||
},
|
||||
},
|
||||
form: {
|
||||
file: {
|
||||
label: "Select JSON file",
|
||||
invalidError: "Invalid configuration file",
|
||||
},
|
||||
apps: {
|
||||
label: "Apps",
|
||||
avoidDuplicates: {
|
||||
label: "Avoid duplicates",
|
||||
description: "Ignores apps where an app with the same href already exists",
|
||||
},
|
||||
onlyImportApps: {
|
||||
label: "Only import apps",
|
||||
description: "Only adds the apps, the board need to be recreated manually",
|
||||
},
|
||||
},
|
||||
name: {
|
||||
label: "Board name",
|
||||
},
|
||||
screenSize: {
|
||||
label: "Screen size",
|
||||
option: {
|
||||
sm: "Small",
|
||||
md: "Medium",
|
||||
lg: "Large",
|
||||
},
|
||||
},
|
||||
sidebarBehavior: {
|
||||
label: "Sidebar behavior",
|
||||
description: "Sidebars were removed in 1.0, you can select what should happen with the items inside them.",
|
||||
option: {
|
||||
lastSection: {
|
||||
label: "Last section",
|
||||
description: "Sidebar will be displayed below the last section",
|
||||
},
|
||||
removeItems: {
|
||||
label: "Remove items",
|
||||
description: "Items contained in the sidebar will be removed",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
field: {
|
||||
pageTitle: {
|
||||
|
||||
Reference in New Issue
Block a user