2020-09-15 11:10:16 +00:00
|
|
|
<template>
|
2020-12-07 14:45:00 +00:00
|
|
|
<Page @loaded="onPageLoad">
|
|
|
|
<ActionBar :androidElevation="viewIsScrolled ? 4 : 0">
|
|
|
|
<GridLayout rows="*" columns="auto, *">
|
|
|
|
<MDButton variant="text" class="bx" :text="icon.menu" automationText="Back" @tap="showDrawer" col="0" />
|
|
|
|
<Label class="title orkm" :text="'About' | L" col="1" />
|
|
|
|
</GridLayout>
|
|
|
|
</ActionBar>
|
|
|
|
<ScrollView @scroll="onScroll">
|
|
|
|
<StackLayout class="main-container">
|
|
|
|
<StackLayout horizontalAlignment="center" orientation="horizontal" class="appIconContainer">
|
|
|
|
<Image src="res://logo" class="appIcon" stretch="aspectFit" />
|
|
|
|
</StackLayout>
|
|
|
|
<StackLayout class="m-8"></StackLayout>
|
|
|
|
<GridLayout columns="auto, *" class="option">
|
|
|
|
<Label col="0" class="bx" :text="icon.info" />
|
|
|
|
<StackLayout col="1">
|
|
|
|
<Label :text="'Version' | L" />
|
|
|
|
<Label :text="getVersion" class="info" textWrap="true" />
|
|
|
|
</StackLayout>
|
2020-10-14 19:32:32 +00:00
|
|
|
</GridLayout>
|
2020-12-07 14:45:00 +00:00
|
|
|
<GridLayout columns="auto, *" class="option">
|
|
|
|
<MDRipple colSpan="2" @tap="openURL('https://github.com/vishnuraghavb/enrecipes')" />
|
|
|
|
<Label col="0" class="bx" :text="icon.link" />
|
|
|
|
<Label verticalAlignment="center" col="1" :text="'View project on GitHub' | L" textWrap="true" />
|
|
|
|
</GridLayout>
|
|
|
|
<GridLayout columns="auto, *" class="option">
|
|
|
|
<MDRipple colSpan="2" @tap="openURL('https://t.me/enrecipes')" />
|
|
|
|
<Label col="0" class="bx" :text="icon.telegram" />
|
|
|
|
<StackLayout col="1">
|
|
|
|
<Label :text="'Join the Telegram group' | L" textWrap="true" />
|
|
|
|
<Label :text="'for reporting issues, suggestions and feedback' | L" class="info" textWrap="true" />
|
2020-10-14 19:32:32 +00:00
|
|
|
</StackLayout>
|
2020-12-07 14:45:00 +00:00
|
|
|
</GridLayout>
|
|
|
|
<StackLayout class="hr m-10"></StackLayout>
|
|
|
|
<Label :text="'Author' | L" class="group-header orkm" />
|
|
|
|
<GridLayout columns="auto, *" class="option">
|
|
|
|
<MDRipple colSpan="2" @tap="openURL('https://www.vishnuraghav.com')" />
|
|
|
|
<Label col="0" class="bx" :text="icon.user" />
|
|
|
|
<Label verticalAlignment="center" col="1" :text="'Vishnu Raghav B' | L" textWrap="true" />
|
|
|
|
</GridLayout>
|
|
|
|
<GridLayout columns="auto, *" class="option">
|
|
|
|
<MDRipple colSpan="2" @tap="openURL('https://github.com/vishnuraghavb')" />
|
|
|
|
<Label col="0" class="bx" :text="icon.link" />
|
|
|
|
<Label verticalAlignment="center" col="1" :text="'Follow on GitHub' | L" textWrap="true" />
|
|
|
|
</GridLayout>
|
|
|
|
<GridLayout columns="auto, *" class="option">
|
|
|
|
<MDRipple colSpan="2" @tap="openURL('https://mastodon.social/@vishnuraghavb')" />
|
|
|
|
<Label col="0" class="bx" :text="icon.link" />
|
|
|
|
<Label verticalAlignment="center" col="1" :text="'Follow on Mastodon' | L" textWrap="true" />
|
|
|
|
</GridLayout>
|
2020-12-12 18:06:10 +00:00
|
|
|
<StackLayout class="hr m-10"></StackLayout>
|
|
|
|
<Label :text="'Contributors' | L" class="group-header orkm" />
|
|
|
|
<GridLayout columns="auto, *" class="option">
|
|
|
|
<MDRipple colSpan="2" @tap="openURL('https://github.com/mondlicht-und-sterne')" />
|
|
|
|
<Label col="0" class="bx" :text="icon.user" />
|
|
|
|
<StackLayout col="1">
|
|
|
|
<Label text="mondstern" textWrap="true" />
|
|
|
|
<Label :text="`${$options.filters.L('Translations:')} Deutsch`" class="info" textWrap="true" />
|
|
|
|
</StackLayout>
|
|
|
|
</GridLayout>
|
2020-12-07 14:45:00 +00:00
|
|
|
</StackLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</Page>
|
2020-09-15 11:10:16 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-12-07 14:45:00 +00:00
|
|
|
import {
|
|
|
|
Application,
|
|
|
|
Utils,
|
|
|
|
Observable
|
|
|
|
} from "@nativescript/core"
|
|
|
|
import {
|
|
|
|
mapActions,
|
|
|
|
mapState
|
|
|
|
} from "vuex"
|
2020-11-23 09:49:58 +00:00
|
|
|
import * as utils from "~/shared/utils"
|
2020-09-15 11:10:16 +00:00
|
|
|
export default {
|
2020-10-14 19:32:32 +00:00
|
|
|
computed: {
|
2020-12-12 18:06:10 +00:00
|
|
|
...mapState( [ "icon", "currentComponent" ] ),
|
2020-11-02 11:36:53 +00:00
|
|
|
getVersion() {
|
|
|
|
let ctx = Application.android.context
|
2020-12-12 18:06:10 +00:00
|
|
|
return ctx.getPackageManager().getPackageInfo( ctx.getPackageName(), 0 ).versionName
|
2020-11-02 11:36:53 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
viewIsScrolled: false,
|
2020-11-06 09:07:41 +00:00
|
|
|
appTheme: "Light",
|
2020-11-02 11:36:53 +00:00
|
|
|
}
|
2020-09-15 11:10:16 +00:00
|
|
|
},
|
|
|
|
methods: {
|
2020-12-12 18:06:10 +00:00
|
|
|
...mapActions( [ "setCurrentComponentAction" ] ),
|
|
|
|
onPageLoad( args ) {
|
2020-12-07 14:45:00 +00:00
|
|
|
const page = args.object;
|
|
|
|
page.bindingContext = new Observable();
|
2020-12-12 18:06:10 +00:00
|
|
|
this.setCurrentComponentAction( "About" )
|
2020-10-21 17:54:45 +00:00
|
|
|
},
|
2020-11-10 18:28:48 +00:00
|
|
|
// HELPERS
|
2020-11-23 09:49:58 +00:00
|
|
|
showDrawer() {
|
|
|
|
utils.showDrawer()
|
|
|
|
},
|
2020-12-12 18:06:10 +00:00
|
|
|
onScroll( args ) {
|
2020-11-28 19:21:57 +00:00
|
|
|
this.viewIsScrolled = args.scrollY ? true : false
|
2020-11-02 11:36:53 +00:00
|
|
|
},
|
2020-12-12 18:06:10 +00:00
|
|
|
openURL( url ) {
|
|
|
|
Utils.openUrl( url )
|
2020-09-15 11:10:16 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|