Skip to content

Commit

Permalink
chore: first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jul 29, 2020
0 parents commit 5f0a11b
Show file tree
Hide file tree
Showing 177 changed files with 10,670 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

source "https://rubygems.org"

gem 'fastlane'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
Binary file added Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This is an example app for {N} using Svelte / Sentry / Fastlane.


### Usage

```bash
tns run android --bundle
```





1 change: 1 addition & 0 deletions android_bundle
60 changes: 60 additions & 0 deletions app/About.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<script lang="ts">
import { openUrl } from '@nativescript/core/utils/utils';
import ThirdPartySoftwareBottomSheet from './ThirdPartySoftwareBottomSheet.svelte';
import { share } from '~/utils/share';
import { mdiFontFamily, primaryColor } from '~/variables';
import * as EInfo from 'nativescript-extendedinfo';
import { l } from '~/helpers/locale';
import { openLink } from '~/utils/ui';
import CActionBar from './CActionBar.svelte';
import SettingLabelIcon from './SettingLabelIcon.svelte';
import { showBottomSheet } from '~/bottomsheet';
const appVersion = EInfo.getVersionNameSync() + '.' + EInfo.getBuildNumberSync();
function onTap(command) {
switch (command) {
case 'back': {
this.$navigateBack();
return;
}
case 'github':
openLink(GIT_URL);
break;
case 'share':
share({
message: STORE_LINK,
});
break;
case 'review':
openUrl(STORE_REVIEW_LINK);
break;
case 'third_party':
showBottomSheet({
parent:this,
view:ThirdPartySoftwareBottomSheet,
ignoreTopSafeArea: true,
trackingScrollView: 'trackingScrollView',
});
break;
}
}
</script>

<frame backgroundColor="transparent">
<page actionBarHidden="true">
<gridlayout rows="auto,*">
<CActionBar canGoBack modalWindow title={l('about')}/>
<scrollView row="1">
<stackLayout>
<SettingLabelIcon title={l('version')} subtitle={appVersion} />
<SettingLabelIcon title={l('share_application')} icon="mdi-chevron-right" on:tap={()=>onTap('share')} />
<SettingLabelIcon title={l('source_code')} subtitle="obtenir le code source de l'application sur Github" icon="mdi-chevron-right" on:tap={()=>onTap('github')} />
<SettingLabelIcon title={l('third_parties')} subtitle="les logiciels que nous aimons et utilisons" icon="mdi-chevron-right" on:tap={()=>onTap('third_party')} />
<SettingLabelIcon title={l('share_application')} icon="mdi-chevron-right" on:tap={()=>onTap('share')} />
<SettingLabelIcon title={l('review_application')} icon="mdi-chevron-right" on:tap={()=>onTap('review')} />
</stackLayout>
</scrollView>
</gridlayout>
</page>
</frame>
23 changes: 23 additions & 0 deletions app/ActionSheet.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script lang="ts">
import { onMount } from 'svelte';
import { accentColor } from '~/variables';
import { closeBottomSheet } from '~/bottomsheet';
export let options;
export let title = null;
function selectOption(option) {
closeBottomSheet(option);
}
</script>

<stacklayout class="bottomsheet">
{#if title}
<htmllabel paddingLeft="16" fontSize="17" color="#757575" text={title} height="56" verticalTextAlignment="center" />
{/if}
{#each options as item}
<stacklayout rippleColor={accentColor} paddingTop="5" paddingBottom="5" orientation="horizontal" on:tap={() => selectOption(item)} height="56">
<htmllabel paddingLeft="16" class="mdi" fontSize="24" text={item.icon} width="56" verticalAlignment="center" />
<htmllabel fontSize="17" text={item.text} verticalAlignment="center" />
</stacklayout>
{/each}
</stacklayout>
Loading

0 comments on commit 5f0a11b

Please sign in to comment.