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
- Create recipes quickly
- Add photo, notes and references to your recipes
- Add photo, notes and combinations to your recipes
- Organise your recipes by category
- Quickly search for your recipes
- Mark recipes as favorites and add them to your Try Later list

View file

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

View file

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

View file

@ -246,7 +246,7 @@
<TextView
@loaded="focusField($event, 'multiLine')"
col="0"
hint="Text or URL"
:hint="`Note ${index + 1}`"
v-model="recipeContent.notes[index]"
/>
<MDButton
@ -281,7 +281,6 @@ import {
path,
Screen,
Utils,
ObservableArray,
} from "@nativescript/core"
import * as Permissions from "@nativescript-community/perms"
import * as Toast from "nativescript-toast"
@ -448,7 +447,7 @@ export default {
this.autoFocusField("cookTime", false)
break
case "cookTime":
this.autoFocusField("yieldQuantity",true)
this.autoFocusField("yieldQuantity", true)
break
default:
break
@ -485,14 +484,14 @@ export default {
this.recipeContent.category = category
this.addCategoryAction(category)
this.modalOpen = false
if (focus) this.autoFocusField("prepTime",false)
if (focus) this.autoFocusField("prepTime", false)
}
})
} else if (action) {
this.recipeContent.category = action
this.hijackBackEvent()
this.modalOpen = false
if (focus) this.autoFocusField("prepTime",false)
if (focus) this.autoFocusField("prepTime", false)
} else {
this.hijackBackEvent()
}

View file

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

View file

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

View file

@ -8,6 +8,6 @@ public final class BuildConfig {
public static final String APPLICATION_ID = "com.vishnuraghav.enrecipes";
public static final String BUILD_TYPE = "release";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0.0";
public static final int VERSION_CODE = 2;
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"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vishnuraghav.enrecipes"
android:versionCode="1"
android:versionName="1.0.0" >
android:versionCode="2"
android:versionName="1.0.1" >
<uses-sdk
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-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

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
path.0=classes.dex
renamed.0=classes.dex

View file

@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vishnuraghav.enrecipes"
android:targetSandboxVersion="2"
android:versionCode="1"
android:versionName="1.0.0" >
android:versionCode="2"
android:versionName="1.0.1" >
<uses-sdk
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"?>
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 package="com.vishnuraghav.enrecipes"
4 android:versionCode="1"
5 android:versionName="1.0.0" >
4 android:versionCode="2"
5 android:versionName="1.0.1" >
6
7 <uses-sdk
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"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vishnuraghav.enrecipes"
android:versionCode="1"
android:versionName="1.0.0" >
android:versionCode="2"
android:versionName="1.0.1" >
<uses-sdk
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)",
"buildTime": "Wed Dec 02 2020 15:15:20 GMT+0530 (India Standard Time)"
"prepareTime": "Wed Dec 02 2020 16:05:56 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/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/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/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>
<div class="mdl-layout-spacer"></div>
<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>
</header>
<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