cleaned code

This commit is contained in:
Vishnu Raghav B 2020-12-02 16:07:45 +05:30
parent fb6045b520
commit 55081da7c8
43 changed files with 575 additions and 604 deletions

View file

@ -22,7 +22,7 @@ EnRecipes is an easy to use, privacy-friendly digital cookbook that lets you cre
## Features ## Features
- Create recipes quickly - Create recipes quickly
- Add photo, notes and references to your recipes - Add photo, notes and combinations to your recipes
- Organise your recipes by category - Organise your recipes by category
- Quickly search for your recipes - Quickly search for your recipes
- Mark recipes as favorites and add them to your Try Later list - Mark recipes as favorites and add them to your Try Later list

View file

@ -15,15 +15,15 @@
android { android {
defaultConfig { defaultConfig {
versionCode 1 versionCode 2
versionName '1.0.0' versionName '1.0.1'
applicationId 'com.vishnuraghav.enrecipes' applicationId 'com.vishnuraghav.enrecipes'
minSdkVersion 21 minSdkVersion 21
generatedDensities = [] generatedDensities = []
// ndk { ndk {
// abiFilters.clear() abiFilters.clear()
// abiFilters.addAll(['arm64-v8a']) abiFilters.addAll(['x86','armeabi-v7a','arm64-v8a'])
// } }
} }
aaptOptions { aaptOptions {
additionalParameters "--no-version-vectors" additionalParameters "--no-version-vectors"

View file

@ -1,7 +1,6 @@
<template> <template>
<Page <Page
@loaded="onPageLoad" @loaded="onPageLoad"
@unloaded="onPageUnload"
actionBarHidden="true" actionBarHidden="true"
:androidStatusBarBackground="appTheme == 'Light' ? '#f1f3f5' : '#212529'" :androidStatusBarBackground="appTheme == 'Light' ? '#f1f3f5' : '#212529'"
> >
@ -143,10 +142,7 @@
import { import {
ApplicationSettings, ApplicationSettings,
AndroidApplication, AndroidApplication,
ApplicationEventData,
Application, Application,
Color,
Utils,
} from "@nativescript/core" } from "@nativescript/core"
import Theme from "@nativescript/theme" import Theme from "@nativescript/theme"
import * as Toast from "nativescript-toast" import * as Toast from "nativescript-toast"
@ -235,12 +231,8 @@ export default {
const window = Application.android.startActivity.getWindow() const window = Application.android.startActivity.getWindow()
const decorView = window.getDecorView() const decorView = window.getDecorView()
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR) decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR)
// window.setNavigationBarColor(new Color("#e0e0e0").android)
} }
}, },
onPageUnload() {
// this.releaseGlobalBackEvent()
},
// HELPERS // HELPERS
toggleCatEdit() { toggleCatEdit() {
@ -343,10 +335,6 @@ export default {
} }
this.editCategory = false this.editCategory = false
}, },
donate() {
Utils.openUrl("https://www.vishnuraghav.com/donate/")
},
}, },
created() { created() {
this.appTheme = ApplicationSettings.getString("appTheme", "Light") this.appTheme = ApplicationSettings.getString("appTheme", "Light")

View file

@ -246,7 +246,7 @@
<TextView <TextView
@loaded="focusField($event, 'multiLine')" @loaded="focusField($event, 'multiLine')"
col="0" col="0"
hint="Text or URL" :hint="`Note ${index + 1}`"
v-model="recipeContent.notes[index]" v-model="recipeContent.notes[index]"
/> />
<MDButton <MDButton
@ -281,7 +281,6 @@ import {
path, path,
Screen, Screen,
Utils, Utils,
ObservableArray,
} from "@nativescript/core" } from "@nativescript/core"
import * as Permissions from "@nativescript-community/perms" import * as Permissions from "@nativescript-community/perms"
import * as Toast from "nativescript-toast" import * as Toast from "nativescript-toast"

View file

@ -74,12 +74,9 @@
import { import {
ApplicationSettings, ApplicationSettings,
path, path,
getFileAccess,
knownFolders, knownFolders,
Application,
File, File,
Folder, Folder,
AndroidApplication,
} from "@nativescript/core" } from "@nativescript/core"
import * as Permissions from "@nativescript-community/perms" import * as Permissions from "@nativescript-community/perms"
import { Zip } from "@nativescript/zip" import { Zip } from "@nativescript/zip"

View file

@ -405,26 +405,18 @@
<script> <script>
import { import {
ApplicationSettings, Application,
Color, Color,
Device,
File,
knownFolders,
path,
ImageSource, ImageSource,
Screen, Screen,
Utils, Utils,
GestureTypes,
Tabs,
Span, Span,
FormattedString, FormattedString,
Label, Label,
StackLayout,
} from "@nativescript/core" } from "@nativescript/core"
import { Feedback, FeedbackType, FeedbackPosition } from "nativescript-feedback" import { Feedback, FeedbackType, FeedbackPosition } from "nativescript-feedback"
import * as Toast from "nativescript-toast" import * as Toast from "nativescript-toast"
import * as SocialShare from "@nativescript/social-share" import * as SocialShare from "@nativescript/social-share"
import { Application } from "@nativescript/core"
import { mapActions, mapState } from "vuex" import { mapActions, mapState } from "vuex"
import EditRecipe from "./EditRecipe.vue" import EditRecipe from "./EditRecipe.vue"
@ -701,20 +693,15 @@ export default {
this.$navigateBack() this.$navigateBack()
}, },
// URL ACTION // NOTES
openURL(url) {
Utils.openUrl(url)
},
createNote(note) { createNote(note) {
const vm = this const vm = this
let regex = /(https?:\/\/[^\s]+)/g let regex = /(https?:\/\/[^\s]+)/g
let label = new Label() let label = new Label()
label.class = "textCard" label.class = "textCard"
label.textWrap = true label.textWrap = true
let dispDensity = Utils.layout.getDisplayDensity()
let formattedString = new FormattedString() let formattedString = new FormattedString()
let textArray = note.split(regex) let textArray = note.split(regex)
console.log(dispDensity)
function createSpan(text, isUrl) { function createSpan(text, isUrl) {
let span = new Span() let span = new Span()

View file

@ -1,8 +1,8 @@
{ {
"time": "Wed Dec 02 2020 15:14:23 GMT+0530 (India Standard Time)", "time": "Wed Dec 02 2020 16:05:56 GMT+0530 (India Standard Time)",
"nativePlatformStatus": "3", "nativePlatformStatus": "3",
"changesRequireBuild": true, "changesRequireBuild": true,
"projectFileHash": "7e76fcc579c6b048fb6a6099b9da9192f2f9ca58fe7cc504fe760ca454b8d7ae", "projectFileHash": "7e76fcc579c6b048fb6a6099b9da9192f2f9ca58fe7cc504fe760ca454b8d7ae",
"changesRequireBuildTime": "Wed Dec 02 2020 15:14:23 GMT+0530 (India Standard Time)", "changesRequireBuildTime": "Wed Dec 02 2020 16:05:56 GMT+0530 (India Standard Time)",
"release": true "release": true
} }

View file

@ -8,6 +8,6 @@ public final class BuildConfig {
public static final String APPLICATION_ID = "com.vishnuraghav.enrecipes"; public static final String APPLICATION_ID = "com.vishnuraghav.enrecipes";
public static final String BUILD_TYPE = "release"; public static final String BUILD_TYPE = "release";
public static final String FLAVOR = ""; public static final String FLAVOR = "";
public static final int VERSION_CODE = 1; public static final int VERSION_CODE = 2;
public static final String VERSION_NAME = "1.0.0"; public static final String VERSION_NAME = "1.0.1";
} }

View file

@ -1 +1 @@
[{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""}] [{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""}]

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vishnuraghav.enrecipes" package="com.vishnuraghav.enrecipes"
android:versionCode="1" android:versionCode="2"
android:versionName="1.0.0" > android:versionName="1.0.1" >
<uses-sdk <uses-sdk
android:minSdkVersion="21" android:minSdkVersion="21"

View file

@ -1 +1 @@
[{"outputType":{"type":"BUNDLE_MANIFEST"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}] [{"outputType":{"type":"BUNDLE_MANIFEST"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}]

View file

@ -1,4 +1,4 @@
#Wed Dec 02 15:14:34 IST 2020 #Wed Dec 02 16:05:59 IST 2020
/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-anydpi-v26/ic_launcher.xml=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-anydpi-v26_ic_launcher.xml.flat /mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-anydpi-v26/ic_launcher.xml=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-anydpi-v26_ic_launcher.xml.flat
/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-mdpi/logo.png=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-mdpi_logo.png.flat /mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-mdpi/logo.png=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-mdpi_logo.png.flat
/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-xxhdpi/share.png=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-xxhdpi_share.png.flat /mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/res/drawable-xxhdpi/share.png=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/res/merged/release/drawable-xxhdpi_share.png.flat

View file

@ -1,4 +1,4 @@
#Wed Dec 02 15:15:07 IST 2020 #Wed Dec 02 16:06:23 IST 2020
base.0=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/dex/release/out/classes.dex base.0=/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/build/intermediates/dex/release/out/classes.dex
path.0=classes.dex path.0=classes.dex
renamed.0=classes.dex renamed.0=classes.dex

View file

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vishnuraghav.enrecipes" package="com.vishnuraghav.enrecipes"
android:targetSandboxVersion="2" android:targetSandboxVersion="2"
android:versionCode="1" android:versionCode="2"
android:versionName="1.0.0" > android:versionName="1.0.1" >
<uses-sdk <uses-sdk
android:minSdkVersion="21" android:minSdkVersion="21"

View file

@ -1 +1 @@
[{"outputType":{"type":"INSTANT_APP_MANIFEST"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}] [{"outputType":{"type":"INSTANT_APP_MANIFEST"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}]

View file

@ -1,8 +1,8 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android" 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="com.vishnuraghav.enrecipes" 3 package="com.vishnuraghav.enrecipes"
4 android:versionCode="1" 4 android:versionCode="2"
5 android:versionName="1.0.0" > 5 android:versionName="1.0.1" >
6 6
7 <uses-sdk 7 <uses-sdk
8 android:minSdkVersion="21" 8 android:minSdkVersion="21"

File diff suppressed because one or more lines are too long

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vishnuraghav.enrecipes" package="com.vishnuraghav.enrecipes"
android:versionCode="1" android:versionCode="2"
android:versionName="1.0.0" > android:versionName="1.0.1" >
<uses-sdk <uses-sdk
android:minSdkVersion="21" android:minSdkVersion="21"

View file

@ -1 +1 @@
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}] [{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}]

View file

@ -1 +1 @@
[{"outputType":{"type":"METADATA_FEATURE_MANIFEST"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{}}] [{"outputType":{"type":"METADATA_FEATURE_MANIFEST"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"AndroidManifest.xml","properties":{}}]

View file

@ -1 +1 @@
[{"outputType":{"type":"PROCESSED_RES"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"resources-release.ap_","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}] [{"outputType":{"type":"PROCESSED_RES"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"resources-release.ap_","properties":{"packageId":"com.vishnuraghav.enrecipes","split":"","minSdkVersion":"21"}}]

View file

@ -1,4 +1,4 @@
{ {
"prepareTime": "Wed Dec 02 2020 15:14:23 GMT+0530 (India Standard Time)", "prepareTime": "Wed Dec 02 2020 16:05:56 GMT+0530 (India Standard Time)",
"buildTime": "Wed Dec 02 2020 15:15:20 GMT+0530 (India Standard Time)" "buildTime": "Wed Dec 02 2020 16:06:33 GMT+0530 (India Standard Time)"
} }

View file

@ -60,7 +60,7 @@
"/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/package.json": "b5c23d281c6a3d2b571a570721d60bbce6c9be29", "/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/package.json": "b5c23d281c6a3d2b571a570721d60bbce6c9be29",
"/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/runtime.js": "46d6b98a238721f34ab9bc68b90c0cdea00153cf", "/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/runtime.js": "46d6b98a238721f34ab9bc68b90c0cdea00153cf",
"/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/vendor.js.LICENSE.txt": "fe0ae576f8684fbe78596ad84eddafc528dba50c", "/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/vendor.js.LICENSE.txt": "fe0ae576f8684fbe78596ad84eddafc528dba50c",
"/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/bundle.js": "fba7dc9d3f0f793674dd940f45ea1284b61bca82", "/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/bundle.js": "0ca7099ac59c7ebd179afbe76cdbe9847fe14b9f",
"/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/fonts/boxicons.ttf": "6c9944326ed3c901afcb78a9ed07906f04f9cbb2", "/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/fonts/boxicons.ttf": "6c9944326ed3c901afcb78a9ed07906f04f9cbb2",
"/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/vendor.js": "bed05d377b4836523b46f38e23bb10cea7a7fa5f" "/mnt/82e5ff15-70b8-44a5-bb66-55688fc2381f/Freelance/Projects/WIP/EnRecipes/Developement/EnRecipes/platforms/android/app/src/main/assets/app/vendor.js": "bed05d377b4836523b46f38e23bb10cea7a7fa5f"
} }

View file

@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}] [{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":2,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release","dirName":""},"path":"app-release.apk","properties":{}}]

View file

@ -176,7 +176,7 @@ document.getElementById(id).style.display = 'none';
<span class="mdl-layout-title">Lint Report: No errors or warnings</span> <span class="mdl-layout-title">Lint Report: No errors or warnings</span>
<div class="mdl-layout-spacer"></div> <div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-layout--large-screen-only"> <nav class="mdl-navigation mdl-layout--large-screen-only">
Check performed at Wed Dec 02 15:15:01 IST 2020 </nav> Check performed at Wed Dec 02 16:06:20 IST 2020 </nav>
</div> </div>
</header> </header>
<div class="mdl-layout__drawer"> <div class="mdl-layout__drawer">

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff