-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
2,645 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
apps/demo-angular/src/plugin-demos/firebase-analytics.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
19
apps/demo-angular/src/plugin-demos/firebase-analytics.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
apps/demo-angular/src/plugin-demos/firebase-analytics.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.