Skip to content

Commit 70badaf

Browse files
committed
chore: publish
1 parent ad0364f commit 70badaf

File tree

67 files changed

+2645
-336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2645
-336
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm start
2020
- [@nativescript/firebase-messaging](packages/firebase-messaging/README.md)
2121
- [@nativescript/firebase-performance](packages/firebase-performance/README.md)
2222
- [@nativescript/firebase-remote-config](packages/firebase-remote-config/README.md)
23-
-[ @nativescript/firebase-storage](packages/firebase-storage/README.md)
23+
- [@nativescript/firebase-storage](packages/firebase-storage/README.md)
2424

2525
# How to use?
2626

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="firebase-analytics" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test firebase-analytics" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import { DemoSharedFirebaseAnalytics } from '@demo/shared';
3+
import { } from '@nativescript/firebase-analytics';
4+
5+
@Component({
6+
selector: 'demo-firebase-analytics',
7+
templateUrl: 'firebase-analytics.component.html',
8+
})
9+
export class FirebaseAnalyticsComponent {
10+
11+
demoShared: DemoSharedFirebaseAnalytics;
12+
13+
constructor(private _ngZone: NgZone) {}
14+
15+
ngOnInit() {
16+
this.demoShared = new DemoSharedFirebaseAnalytics();
17+
}
18+
19+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2+
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
3+
import { FirebaseAnalyticsComponent } from './firebase-analytics.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseAnalyticsComponent }])],
7+
declarations: [FirebaseAnalyticsComponent],
8+
schemas: [ NO_ERRORS_SCHEMA]
9+
})
10+
export class FirebaseAnalyticsModule {}

apps/demo-vue/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# NativeScript
2+
hooks/
3+
node_modules/
4+
platforms/
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# General
14+
.DS_Store
15+
.AppleDouble
16+
.LSOverride
17+
.idea
18+
.cloud
19+
.project
20+
tmp/
21+
typings/

apps/demo-vue/app/app.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import 'nativescript-theme-core/scss/light';
2+
@import 'nativescript-theme-core/scss/index';

apps/demo-vue/app/app.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Vue from 'nativescript-vue'
2+
import Home from './components/Home.vue'
3+
4+
declare let __DEV__: boolean;
5+
6+
// Prints Vue logs when --env.production is *NOT* set while building
7+
Vue.config.silent = !__DEV__
8+
9+
new Vue({
10+
render: (h) => h('frame', [h(Home)]),
11+
}).$start()

apps/demo-vue/app/components/Home.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<template>
2+
<Page>
3+
<ActionBar>
4+
<Label text="Home"/>
5+
</ActionBar>
6+
7+
<GridLayout>
8+
<Label class="info" :text="message"/>
9+
</GridLayout>
10+
</Page>
11+
</template>
12+
13+
<script lang="ts">
14+
import Vue from "nativescript-vue";
15+
16+
export default Vue.extend({
17+
computed: {
18+
message() {
19+
return "Demo {N}-Vue app";
20+
}
21+
}
22+
});
23+
</script>
24+
25+
<style scoped lang="scss">
26+
27+
.info {
28+
font-size: 20;
29+
horizontal-align: center;
30+
vertical-align: center;
31+
}
32+
</style>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<template>
2+
<Page>
3+
<ActionBar>
4+
<Label text="firebase-admob"/>
5+
</ActionBar>
6+
7+
<GridLayout>
8+
<Button class="info" :text="message"/>
9+
</GridLayout>
10+
</Page>
11+
</template>
12+
13+
<script lang="ts">
14+
import Vue from "nativescript-vue";
15+
import { DemoSharedFirebaseAdmob } from '@demo/shared';
16+
import { } from '@nativescript/firebase-admob';
17+
18+
export default Vue.extend({
19+
computed: {
20+
message() {
21+
return "Test firebase-admob";
22+
}
23+
}
24+
});
25+
</script>
26+
27+
<style scoped lang="scss">
28+
29+
.info {
30+
font-size: 20;
31+
horizontal-align: center;
32+
vertical-align: center;
33+
}
34+
</style>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<template>
2+
<Page>
3+
<ActionBar>
4+
<Label text="firebase-analytics"/>
5+
</ActionBar>
6+
7+
<GridLayout>
8+
<Button class="info" :text="message"/>
9+
</GridLayout>
10+
</Page>
11+
</template>
12+
13+
<script lang="ts">
14+
import Vue from "nativescript-vue";
15+
import { DemoSharedFirebaseAnalytics } from '@demo/shared';
16+
import { } from '@nativescript/firebase-analytics';
17+
18+
export default Vue.extend({
19+
computed: {
20+
message() {
21+
return "Test firebase-analytics";
22+
}
23+
}
24+
});
25+
</script>
26+
27+
<style scoped lang="scss">
28+
29+
.info {
30+
font-size: 20;
31+
horizontal-align: center;
32+
vertical-align: center;
33+
}
34+
</style>

0 commit comments

Comments
 (0)