Skip to content

Commit

Permalink
chore: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Oct 6, 2021
1 parent ad0364f commit 70badaf
Show file tree
Hide file tree
Showing 67 changed files with 2,645 additions and 336 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm start
- [@nativescript/firebase-messaging](packages/firebase-messaging/README.md)
- [@nativescript/firebase-performance](packages/firebase-performance/README.md)
- [@nativescript/firebase-remote-config](packages/firebase-remote-config/README.md)
-[ @nativescript/firebase-storage](packages/firebase-storage/README.md)
- [@nativescript/firebase-storage](packages/firebase-storage/README.md)

# How to use?

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<ActionBar title="firebase-analytics" class="action-bar"> </ActionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test firebase-analytics" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
</StackLayout>
</ScrollView>
</StackLayout>
19 changes: 19 additions & 0 deletions apps/demo-angular/src/plugin-demos/firebase-analytics.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Component, NgZone } from '@angular/core';
import { DemoSharedFirebaseAnalytics } from '@demo/shared';
import { } from '@nativescript/firebase-analytics';

@Component({
selector: 'demo-firebase-analytics',
templateUrl: 'firebase-analytics.component.html',
})
export class FirebaseAnalyticsComponent {

demoShared: DemoSharedFirebaseAnalytics;

constructor(private _ngZone: NgZone) {}

ngOnInit() {
this.demoShared = new DemoSharedFirebaseAnalytics();
}

}
10 changes: 10 additions & 0 deletions apps/demo-angular/src/plugin-demos/firebase-analytics.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule, NativeScriptRouterModule } from '@nativescript/angular';
import { FirebaseAnalyticsComponent } from './firebase-analytics.component';

@NgModule({
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FirebaseAnalyticsComponent }])],
declarations: [FirebaseAnalyticsComponent],
schemas: [ NO_ERRORS_SCHEMA]
})
export class FirebaseAnalyticsModule {}
21 changes: 21 additions & 0 deletions apps/demo-vue/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# NativeScript
hooks/
node_modules/
platforms/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# General
.DS_Store
.AppleDouble
.LSOverride
.idea
.cloud
.project
tmp/
typings/
2 changes: 2 additions & 0 deletions apps/demo-vue/app/app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'nativescript-theme-core/scss/light';
@import 'nativescript-theme-core/scss/index';
11 changes: 11 additions & 0 deletions apps/demo-vue/app/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Vue from 'nativescript-vue'
import Home from './components/Home.vue'

declare let __DEV__: boolean;

// Prints Vue logs when --env.production is *NOT* set while building
Vue.config.silent = !__DEV__

new Vue({
render: (h) => h('frame', [h(Home)]),
}).$start()
32 changes: 32 additions & 0 deletions apps/demo-vue/app/components/Home.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<Page>
<ActionBar>
<Label text="Home"/>
</ActionBar>

<GridLayout>
<Label class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
export default Vue.extend({
computed: {
message() {
return "Demo {N}-Vue app";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-admob.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-admob"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseAdmob } from '@demo/shared';
import { } from '@nativescript/firebase-admob';
export default Vue.extend({
computed: {
message() {
return "Test firebase-admob";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-analytics.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-analytics"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseAnalytics } from '@demo/shared';
import { } from '@nativescript/firebase-analytics';
export default Vue.extend({
computed: {
message() {
return "Test firebase-analytics";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-app-check.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-app-check"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseAppCheck } from '@demo/shared';
import { } from '@nativescript/firebase-app-check';
export default Vue.extend({
computed: {
message() {
return "Test firebase-app-check";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-auth.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-auth"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseAuth } from '@demo/shared';
import { } from '@nativescript/firebase-auth';
export default Vue.extend({
computed: {
message() {
return "Test firebase-auth";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-core.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-core"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseCore } from '@demo/shared';
import { } from '@nativescript/firebase-core';
export default Vue.extend({
computed: {
message() {
return "Test firebase-core";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-crashlytics.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-crashlytics"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseCrashlytics } from '@demo/shared';
import { } from '@nativescript/firebase-crashlytics';
export default Vue.extend({
computed: {
message() {
return "Test firebase-crashlytics";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-database.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-database"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseDatabase } from '@demo/shared';
import { } from '@nativescript/firebase-database';
export default Vue.extend({
computed: {
message() {
return "Test firebase-database";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
34 changes: 34 additions & 0 deletions apps/demo-vue/app/plugin-demos/firebase-dynamic-links.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<template>
<Page>
<ActionBar>
<Label text="firebase-dynamic-links"/>
</ActionBar>

<GridLayout>
<Button class="info" :text="message"/>
</GridLayout>
</Page>
</template>

<script lang="ts">
import Vue from "nativescript-vue";
import { DemoSharedFirebaseDynamicLinks } from '@demo/shared';
import { } from '@nativescript/firebase-dynamic-links';
export default Vue.extend({
computed: {
message() {
return "Test firebase-dynamic-links";
}
}
});
</script>

<style scoped lang="scss">
.info {
font-size: 20;
horizontal-align: center;
vertical-align: center;
}
</style>
Loading

0 comments on commit 70badaf

Please sign in to comment.