Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- [@nstudio/nativescript-airship-hms](packages/nativescript-airship-hms/README.md)
- [@nstudio/nativescript-appcues](packages/nativescript-appcues/README.md)
- [@nstudio/nativescript-aptabase](packages/nativescript-aptabase/README.md)
- [@nstudio/nativescript-auth0](packages/nativescript-auth0/README.md)
- [@nstudio/nativescript-barcodescanner](packages/nativescript-barcodescanner/README.md)
- [@nstudio/nativescript-blur](packages/nativescript-blur/README.md)
- [@nstudio/nativescript-camera-plus](packages/nativescript-camera-plus/README.md)
Expand Down
3 changes: 2 additions & 1 deletion apps/demo-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "./src/main.ts",
"dependencies": {
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"@nstudio/nativescript-loading-indicator": "file:../../dist/packages/nativescript-loading-indicator",
"@nstudio/nativescript-auth0": "file:../../dist/packages/nativescript-auth0",
"@nstudio/nativescript-airship": "file:../../dist/packages/nativescript-airship",
"@nstudio/nativescript-airship-adm": "file:../../dist/packages/nativescript-airship-adm",
"@nstudio/nativescript-airship-fcm": "file:../../dist/packages/nativescript-airship-fcm",
Expand All @@ -23,6 +23,7 @@
"@nstudio/nativescript-freshchat": "file:../../dist/packages/nativescript-freshchat",
"@nstudio/nativescript-input-mask": "file:../../dist/packages/nativescript-input-mask",
"@nstudio/nativescript-intercom": "file:../../dist/packages/nativescript-intercom",
"@nstudio/nativescript-loading-indicator": "file:../../dist/packages/nativescript-loading-indicator",
"@nstudio/nativescript-onfido": "file:../../dist/packages/nativescript-onfido",
"@nstudio/nativescript-persona": "file:../../dist/packages/nativescript-persona",
"@nstudio/nativescript-plaid": "file:../../dist/packages/nativescript-plaid",
Expand Down
61 changes: 31 additions & 30 deletions apps/demo-angular/src/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,37 @@ import { NativeScriptRouterModule } from '@nativescript/angular';
import { HomeComponent } from './home.component';

const routes: Routes = [
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'home', component: HomeComponent },
{ path: 'nativescript-airship', loadChildren: () => import('./plugin-demos/nativescript-airship.module').then(m => m.NativescriptAirshipModule) },
{ path: 'nativescript-airship-adm', loadChildren: () => import('./plugin-demos/nativescript-airship-adm.module').then(m => m.NativescriptAirshipAdmModule) },
{ path: 'nativescript-airship-fcm', loadChildren: () => import('./plugin-demos/nativescript-airship-fcm.module').then(m => m.NativescriptAirshipFcmModule) },
{ path: 'nativescript-airship-hms', loadChildren: () => import('./plugin-demos/nativescript-airship-hms.module').then(m => m.NativescriptAirshipHmsModule) },
{ path: 'nativescript-appcues', loadChildren: () => import('./plugin-demos/nativescript-appcues.module').then(m => m.NativescriptAppcuesModule) },
{ path: 'nativescript-aptabase', loadChildren: () => import('./plugin-demos/nativescript-aptabase.module').then(m => m.NativescriptAptabaseModule) },
{ path: 'nativescript-barcodescanner', loadChildren: () => import('./plugin-demos/nativescript-barcodescanner.module').then(m => m.NativescriptBarcodescannerModule) },
{ path: 'nativescript-blur', loadChildren: () => import('./plugin-demos/nativescript-blur.module').then(m => m.NativescriptBlurModule) },
{ path: 'nativescript-camera-plus', loadChildren: () => import('./plugin-demos/nativescript-camera-plus.module').then(m => m.NativescriptCameraPlusModule) },
{ path: 'nativescript-cardview', loadChildren: () => import('./plugin-demos/nativescript-cardview.module').then(m => m.NativescriptCardviewModule) },
{ path: 'nativescript-carousel', loadChildren: () => import('./plugin-demos/nativescript-carousel.module').then(m => m.NativescriptCarouselModule) },
{ path: 'nativescript-checkbox', loadChildren: () => import('./plugin-demos/nativescript-checkbox.module').then(m => m.NativescriptCheckboxModule) },
{ path: 'nativescript-dynatrace', loadChildren: () => import('./plugin-demos/nativescript-dynatrace.module').then(m => m.NativescriptDynatraceModule) },
{ path: 'nativescript-embrace', loadChildren: () => import('./plugin-demos/nativescript-embrace.module').then(m => m.NativescriptEmbraceModule) },
{ path: 'nativescript-exoplayer', loadChildren: () => import('./plugin-demos/nativescript-exoplayer.module').then(m => m.NativescriptExoplayerModule) },
{ path: 'nativescript-fancyalert', loadChildren: () => import('./plugin-demos/nativescript-fancyalert.module').then(m => m.NativescriptFancyalertModule) },
{ path: 'nativescript-filterable-listpicker', loadChildren: () => import('./plugin-demos/nativescript-filterable-listpicker.module').then(m => m.NativescriptFilterableListpickerModule) },
{ path: 'nativescript-freshchat', loadChildren: () => import('./plugin-demos/nativescript-freshchat.module').then(m => m.NativescriptFreshchatModule) },
{ path: 'nativescript-input-mask', loadChildren: () => import('./plugin-demos/nativescript-input-mask.module').then(m => m.NativescriptInputMaskModule) },
{ path: 'nativescript-intercom', loadChildren: () => import('./plugin-demos/nativescript-intercom.module').then(m => m.NativescriptIntercomModule) },
{ path: 'nativescript-loading-indicator', loadChildren: () => import('./plugin-demos/nativescript-loading-indicator.module').then(m => m.NativescriptLoadingIndicatorModule) },
{ path: 'nativescript-onfido', loadChildren: () => import('./plugin-demos/nativescript-onfido.module').then(m => m.NativescriptOnfidoModule) },
{ path: 'nativescript-persona', loadChildren: () => import('./plugin-demos/nativescript-persona.module').then(m => m.NativescriptPersonaModule) },
{ path: 'nativescript-plaid', loadChildren: () => import('./plugin-demos/nativescript-plaid.module').then(m => m.NativescriptPlaidModule) },
{ path: 'nativescript-qr', loadChildren: () => import('./plugin-demos/nativescript-qr.module').then(m => m.NativescriptQrModule) },
{ path: 'nativescript-tracking-transparency', loadChildren: () => import('./plugin-demos/nativescript-tracking-transparency.module').then(m => m.NativescriptTrackingTransparencyModule) },
{ path: 'nativescript-walletconnect', loadChildren: () => import('./plugin-demos/nativescript-walletconnect.module').then(m => m.NativescriptWalletconnectModule) },
{ path: 'nativescript-web-server', loadChildren: () => import('./plugin-demos/nativescript-web-server.module').then(m => m.NativescriptWebServerModule) }
{ path: '', redirectTo: '/home', pathMatch: 'full' },
{ path: 'home', component: HomeComponent },
{ path: 'nativescript-airship', loadChildren: () => import('./plugin-demos/nativescript-airship.module').then((m) => m.NativescriptAirshipModule) },
{ path: 'nativescript-airship-adm', loadChildren: () => import('./plugin-demos/nativescript-airship-adm.module').then((m) => m.NativescriptAirshipAdmModule) },
{ path: 'nativescript-airship-fcm', loadChildren: () => import('./plugin-demos/nativescript-airship-fcm.module').then((m) => m.NativescriptAirshipFcmModule) },
{ path: 'nativescript-airship-hms', loadChildren: () => import('./plugin-demos/nativescript-airship-hms.module').then((m) => m.NativescriptAirshipHmsModule) },
{ path: 'nativescript-appcues', loadChildren: () => import('./plugin-demos/nativescript-appcues.module').then((m) => m.NativescriptAppcuesModule) },
{ path: 'nativescript-aptabase', loadChildren: () => import('./plugin-demos/nativescript-aptabase.module').then((m) => m.NativescriptAptabaseModule) },
{ path: 'nativescript-auth0', loadChildren: () => import('./plugin-demos/nativescript-auth0.module').then((m) => m.NativescriptAuth0Module) },
{ path: 'nativescript-barcodescanner', loadChildren: () => import('./plugin-demos/nativescript-barcodescanner.module').then((m) => m.NativescriptBarcodescannerModule) },
{ path: 'nativescript-blur', loadChildren: () => import('./plugin-demos/nativescript-blur.module').then((m) => m.NativescriptBlurModule) },
{ path: 'nativescript-camera-plus', loadChildren: () => import('./plugin-demos/nativescript-camera-plus.module').then((m) => m.NativescriptCameraPlusModule) },
{ path: 'nativescript-cardview', loadChildren: () => import('./plugin-demos/nativescript-cardview.module').then((m) => m.NativescriptCardviewModule) },
{ path: 'nativescript-carousel', loadChildren: () => import('./plugin-demos/nativescript-carousel.module').then((m) => m.NativescriptCarouselModule) },
{ path: 'nativescript-checkbox', loadChildren: () => import('./plugin-demos/nativescript-checkbox.module').then((m) => m.NativescriptCheckboxModule) },
{ path: 'nativescript-dynatrace', loadChildren: () => import('./plugin-demos/nativescript-dynatrace.module').then((m) => m.NativescriptDynatraceModule) },
{ path: 'nativescript-embrace', loadChildren: () => import('./plugin-demos/nativescript-embrace.module').then((m) => m.NativescriptEmbraceModule) },
{ path: 'nativescript-exoplayer', loadChildren: () => import('./plugin-demos/nativescript-exoplayer.module').then((m) => m.NativescriptExoplayerModule) },
{ path: 'nativescript-fancyalert', loadChildren: () => import('./plugin-demos/nativescript-fancyalert.module').then((m) => m.NativescriptFancyalertModule) },
{ path: 'nativescript-filterable-listpicker', loadChildren: () => import('./plugin-demos/nativescript-filterable-listpicker.module').then((m) => m.NativescriptFilterableListpickerModule) },
{ path: 'nativescript-freshchat', loadChildren: () => import('./plugin-demos/nativescript-freshchat.module').then((m) => m.NativescriptFreshchatModule) },
{ path: 'nativescript-input-mask', loadChildren: () => import('./plugin-demos/nativescript-input-mask.module').then((m) => m.NativescriptInputMaskModule) },
{ path: 'nativescript-intercom', loadChildren: () => import('./plugin-demos/nativescript-intercom.module').then((m) => m.NativescriptIntercomModule) },
{ path: 'nativescript-loading-indicator', loadChildren: () => import('./plugin-demos/nativescript-loading-indicator.module').then((m) => m.NativescriptLoadingIndicatorModule) },
{ path: 'nativescript-onfido', loadChildren: () => import('./plugin-demos/nativescript-onfido.module').then((m) => m.NativescriptOnfidoModule) },
{ path: 'nativescript-persona', loadChildren: () => import('./plugin-demos/nativescript-persona.module').then((m) => m.NativescriptPersonaModule) },
{ path: 'nativescript-plaid', loadChildren: () => import('./plugin-demos/nativescript-plaid.module').then((m) => m.NativescriptPlaidModule) },
{ path: 'nativescript-qr', loadChildren: () => import('./plugin-demos/nativescript-qr.module').then((m) => m.NativescriptQrModule) },
{ path: 'nativescript-tracking-transparency', loadChildren: () => import('./plugin-demos/nativescript-tracking-transparency.module').then((m) => m.NativescriptTrackingTransparencyModule) },
{ path: 'nativescript-walletconnect', loadChildren: () => import('./plugin-demos/nativescript-walletconnect.module').then((m) => m.NativescriptWalletconnectModule) },
{ path: 'nativescript-web-server', loadChildren: () => import('./plugin-demos/nativescript-web-server.module').then((m) => m.NativescriptWebServerModule) },
];

@NgModule({
Expand Down
175 changes: 89 additions & 86 deletions apps/demo-angular/src/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,89 +6,92 @@ import { Component } from '@angular/core';
})
export class HomeComponent {
demos = [
{
name: 'nativescript-airship'
},
{
name: 'nativescript-airship-adm'
},
{
name: 'nativescript-airship-fcm'
},
{
name: 'nativescript-airship-hms'
},
{
name: 'nativescript-appcues'
},
{
name: 'nativescript-aptabase'
},
{
name: 'nativescript-barcodescanner'
},
{
name: 'nativescript-blur'
},
{
name: 'nativescript-camera-plus'
},
{
name: 'nativescript-cardview'
},
{
name: 'nativescript-carousel'
},
{
name: 'nativescript-checkbox'
},
{
name: 'nativescript-dynatrace'
},
{
name: 'nativescript-embrace'
},
{
name: 'nativescript-exoplayer'
},
{
name: 'nativescript-fancyalert'
},
{
name: 'nativescript-filterable-listpicker'
},
{
name: 'nativescript-freshchat'
},
{
name: 'nativescript-input-mask'
},
{
name: 'nativescript-intercom'
},
{
name: 'nativescript-loading-indicator'
},
{
name: 'nativescript-onfido'
},
{
name: 'nativescript-persona'
},
{
name: 'nativescript-plaid'
},
{
name: 'nativescript-qr'
},
{
name: 'nativescript-tracking-transparency'
},
{
name: 'nativescript-walletconnect'
},
{
name: 'nativescript-web-server'
}
];
}
{
name: 'nativescript-airship',
},
{
name: 'nativescript-airship-adm',
},
{
name: 'nativescript-airship-fcm',
},
{
name: 'nativescript-airship-hms',
},
{
name: 'nativescript-appcues',
},
{
name: 'nativescript-aptabase',
},
{
name: 'nativescript-auth0',
},
{
name: 'nativescript-barcodescanner',
},
{
name: 'nativescript-blur',
},
{
name: 'nativescript-camera-plus',
},
{
name: 'nativescript-cardview',
},
{
name: 'nativescript-carousel',
},
{
name: 'nativescript-checkbox',
},
{
name: 'nativescript-dynatrace',
},
{
name: 'nativescript-embrace',
},
{
name: 'nativescript-exoplayer',
},
{
name: 'nativescript-fancyalert',
},
{
name: 'nativescript-filterable-listpicker',
},
{
name: 'nativescript-freshchat',
},
{
name: 'nativescript-input-mask',
},
{
name: 'nativescript-intercom',
},
{
name: 'nativescript-loading-indicator',
},
{
name: 'nativescript-onfido',
},
{
name: 'nativescript-persona',
},
{
name: 'nativescript-plaid',
},
{
name: 'nativescript-qr',
},
{
name: 'nativescript-tracking-transparency',
},
{
name: 'nativescript-walletconnect',
},
{
name: 'nativescript-web-server',
},
];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<ActionBar title="nativescript-auth0" class="action-bar"> </ActionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-auth0" (tap)="demoShared.testIt()" class="btn btn-primary"></Button>
</StackLayout>
</ScrollView>
</StackLayout>
17 changes: 17 additions & 0 deletions apps/demo-angular/src/plugin-demos/nativescript-auth0.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Component, NgZone } from '@angular/core';
import { DemoSharedNativescriptAuth0 } from '@demo/shared';
import {} from '@nstudio/nativescript-auth0';

@Component({
selector: 'demo-nativescript-auth0',
templateUrl: 'nativescript-auth0.component.html',
})
export class NativescriptAuth0Component {
demoShared: DemoSharedNativescriptAuth0;

constructor(private _ngZone: NgZone) {}

ngOnInit() {
this.demoShared = new DemoSharedNativescriptAuth0();
}
}
10 changes: 10 additions & 0 deletions apps/demo-angular/src/plugin-demos/nativescript-auth0.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 { NativescriptAuth0Component } from './nativescript-auth0.component';

@NgModule({
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: NativescriptAuth0Component }])],
declarations: [NativescriptAuth0Component],
schemas: [NO_ERRORS_SCHEMA],
})
export class NativescriptAuth0Module {}
3 changes: 2 additions & 1 deletion apps/demo-angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"@nstudio/nativescript-freshchat": ["../../packages/nativescript-freshchat/index.d.ts"],
"@nstudio/nativescript-persona": ["../../packages/nativescript-persona/index.d.ts"],
"@nstudio/nativescript-walletconnect": ["../../packages/nativescript-walletconnect/index.d.ts"],
"@nstudio/nativescript-web-server": ["../../packages/nativescript-web-server/index.d.ts"]
"@nstudio/nativescript-web-server": ["../../packages/nativescript-web-server/index.d.ts"],
"@nstudio/nativescript-auth0": ["../../packages/nativescript-auth0/index.d.ts"]
}
},
"files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],
Expand Down
3 changes: 2 additions & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "NativeScript Application",
"dependencies": {
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"@nstudio/nativescript-loading-indicator": "file:../../packages/nativescript-loading-indicator",
"@nstudio/nativescript-auth0": "file:../../packages/nativescript-auth0",
"@nstudio/nativescript-airship": "file:../../packages/nativescript-airship",
"@nstudio/nativescript-airship-adm": "file:../../packages/nativescript-airship-adm",
"@nstudio/nativescript-airship-fcm": "file:../../packages/nativescript-airship-fcm",
Expand All @@ -24,6 +24,7 @@
"@nstudio/nativescript-freshchat": "file:../../packages/nativescript-freshchat",
"@nstudio/nativescript-input-mask": "file:../../packages/nativescript-input-mask",
"@nstudio/nativescript-intercom": "file:../../packages/nativescript-intercom",
"@nstudio/nativescript-loading-indicator": "file:../../packages/nativescript-loading-indicator",
"@nstudio/nativescript-onfido": "file:../../packages/nativescript-onfido",
"@nstudio/nativescript-persona": "file:../../packages/nativescript-persona",
"@nstudio/nativescript-plaid": "file:../../packages/nativescript-plaid",
Expand Down
1 change: 1 addition & 0 deletions apps/demo/src/main-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<Button text="nativescript-airship-hms" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-appcues" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-aptabase" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-auth0" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-barcodescanner" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-blur" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
<Button text="nativescript-camera-plus" tap="{{ viewDemo }}" class="btn btn-primary view-demo"/>
Expand Down
10 changes: 10 additions & 0 deletions apps/demo/src/plugin-demos/nativescript-auth0.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Observable, EventData, Page } from '@nativescript/core';
import { DemoSharedNativescriptAuth0 } from '@demo/shared';
import {} from '@nstudio/nativescript-auth0';

export function navigatingTo(args: EventData) {
const page = <Page>args.object;
page.bindingContext = new DemoModel();
}

export class DemoModel extends DemoSharedNativescriptAuth0 {}
14 changes: 14 additions & 0 deletions apps/demo/src/plugin-demos/nativescript-auth0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo" class="page">
<Page.actionBar>
<ActionBar title="nativescript-auth0" icon="" class="action-bar">
</ActionBar>
</Page.actionBar>
<StackLayout class="p-20">
<ScrollView class="h-full">
<StackLayout>
<Button text="Test nativescript-auth0" tap="{{ testIt }}" class="btn btn-primary"/>

</StackLayout>
</ScrollView>
</StackLayout>
</Page>
3 changes: 2 additions & 1 deletion apps/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"@nstudio/nativescript-freshchat": ["../../packages/nativescript-freshchat/index.d.ts"],
"@nstudio/nativescript-persona": ["../../packages/nativescript-persona/index.d.ts"],
"@nstudio/nativescript-walletconnect": ["../../packages/nativescript-walletconnect/index.d.ts"],
"@nstudio/nativescript-web-server": ["../../packages/nativescript-web-server/index.d.ts"]
"@nstudio/nativescript-web-server": ["../../packages/nativescript-web-server/index.d.ts"],
"@nstudio/nativescript-auth0": ["../../packages/nativescript-auth0/index.d.ts"]
}
}
}
Loading