mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
feat: Add recipekeeper migration (#3642)
This commit is contained in:
parent
a7fcb6c84d
commit
f4f2b863e0
12 changed files with 201 additions and 53 deletions
|
@ -82,6 +82,7 @@ const MIGRATIONS = {
|
|||
nextcloud: "nextcloud",
|
||||
paprika: "paprika",
|
||||
plantoeat: "plantoeat",
|
||||
recipekeeper: "recipekeeper",
|
||||
tandoor: "tandoor",
|
||||
};
|
||||
|
||||
|
@ -135,6 +136,10 @@ export default defineComponent({
|
|||
text: i18n.tc("migration.tandoor.title"),
|
||||
value: MIGRATIONS.tandoor,
|
||||
},
|
||||
{
|
||||
text: i18n.tc("migration.recipekeeper.title"),
|
||||
value: MIGRATIONS.recipekeeper,
|
||||
},
|
||||
];
|
||||
const _content = {
|
||||
[MIGRATIONS.mealie]: {
|
||||
|
@ -347,6 +352,26 @@ export default defineComponent({
|
|||
}
|
||||
],
|
||||
},
|
||||
[MIGRATIONS.recipekeeper]: {
|
||||
text: i18n.tc("migration.recipekeeper.description-long"),
|
||||
acceptedFileType: ".zip",
|
||||
tree: [
|
||||
{
|
||||
id: 1,
|
||||
icon: $globals.icons.zip,
|
||||
name: "recipekeeperhtml.zip",
|
||||
children: [
|
||||
{ id: 2, name: "recipes.html", icon: $globals.icons.codeJson },
|
||||
{ id: 3, name: "images", icon: $globals.icons.folderOutline,
|
||||
children: [
|
||||
{ id: 4, name: "image1.jpeg", icon: $globals.icons.fileImage },
|
||||
{ id: 5, name: "image2.jpeg", icon: $globals.icons.fileImage },
|
||||
]
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
function setFileObject(fileObject: File) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue