From 43a1811f91ccc2a11894a944094d28246b98237a Mon Sep 17 00:00:00 2001 From: Vishnu Raghav B Date: Wed, 4 Nov 2020 01:27:31 +0530 Subject: [PATCH] implemented backup feature and working on restore --- App_Resources/Android/app.gradle | 2 +- .../Android/src/main/AndroidManifest.xml | 6 +- app/app.scss | 24 +- app/components/App.vue | 2 +- app/components/EditRecipe.vue | 2 +- app/components/EnRecipes.vue | 32 +- app/components/Settings.vue | 334 ++++++++++++------ app/components/ViewRecipe.vue | 20 +- app/components/modal/ActionDialog.vue | 4 +- app/store.js | 36 +- package-lock.json | 10 +- package.json | 3 +- 12 files changed, 309 insertions(+), 166 deletions(-) diff --git a/App_Resources/Android/app.gradle b/App_Resources/Android/app.gradle index bd15716f..f31990b6 100644 --- a/App_Resources/Android/app.gradle +++ b/App_Resources/Android/app.gradle @@ -17,7 +17,7 @@ android { defaultConfig { versionCode 1 versionName '1.0.0' - minSdkVersion 25 + minSdkVersion 19 generatedDensities = [] ndk { abiFilters.clear() diff --git a/App_Resources/Android/src/main/AndroidManifest.xml b/App_Resources/Android/src/main/AndroidManifest.xml index 9b91d72e..d3173fb4 100644 --- a/App_Resources/Android/src/main/AndroidManifest.xml +++ b/App_Resources/Android/src/main/AndroidManifest.xml @@ -1,12 +1,10 @@ - + + - - - diff --git a/app/app.scss b/app/app.scss index 3b8a90ef..ae6a154c 100644 --- a/app/app.scss +++ b/app/app.scss @@ -303,10 +303,12 @@ RadListView { } .imageHolder { vertical-alignment: center; - border-radius: 6 0 0 6; - // prettier-ignore - Image { + &.card { border-radius: 6 0 0 6; + // prettier-ignore + Image { + border-radius: 6 0 0 6; + } } } .swipe-item { @@ -533,11 +535,9 @@ ActivityIndicator { animation-timing-function: ease-in-out; } .bounce-leave-active { - animation-name: bounce-in; - animation-duration: 0.1s; + animation-name: bounce-out; + animation-duration: 0.25s; animation-fill-mode: forwards; - animation-direction: reverse; - animation-timing-function: ease; } @keyframes bounce-in { 0% { @@ -559,6 +559,16 @@ ActivityIndicator { transform: scale(1); } } +@keyframes bounce-out { + 0% { + transform: scale(1); + } + + 100% { + transform: scale(0); + opacity: 0; + } +} .dolly-enter-active { animation-name: dolly; animation-duration: 1s; diff --git a/app/components/App.vue b/app/components/App.vue index 911dbe6c..99573acb 100644 --- a/app/components/App.vue +++ b/app/components/App.vue @@ -338,7 +338,7 @@ export default { }, }, created() { - let themeName = ApplicationSettings.getString("application-theme", "Light") + let themeName = ApplicationSettings.getString("appTheme", "Light") setTimeout((e) => Theme.setMode(Theme[themeName]), 50) if (!this.recipes.length) this.initializeRecipes() if (!this.categories.length) this.initializeCategories() diff --git a/app/components/EditRecipe.vue b/app/components/EditRecipe.vue index 20b7cf90..2093ef8d 100644 --- a/app/components/EditRecipe.vue +++ b/app/components/EditRecipe.vue @@ -611,7 +611,7 @@ export default { }, imageSaveOperation() { let imgSavedToPath = path.join( - knownFolders.documents().getFolder("enrecipes").path, + knownFolders.documents().getFolder("EnRecipes").path, `${this.getRandomID()}.jpg` ) let workerService = new WorkerService() diff --git a/app/components/EnRecipes.vue b/app/components/EnRecipes.vue index 416e78cc..752c9f20 100644 --- a/app/components/EnRecipes.vue +++ b/app/components/EnRecipes.vue @@ -69,7 +69,7 @@ columns="112, *" androidElevation="2" > - + diff --git a/app/components/ViewRecipe.vue b/app/components/ViewRecipe.vue index 3103071d..39d6efdc 100644 --- a/app/components/ViewRecipe.vue +++ b/app/components/ViewRecipe.vue @@ -1,7 +1,7 @@