Skip to content

Commit eeecf91

Browse files
committed
chore: tooling
1 parent fa66f41 commit eeecf91

31 files changed

+367
-79
lines changed

apps/demo-angular/src/app-routing.module.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import { NativeScriptRouterModule } from '@nativescript/angular';
55
import { HomeComponent } from './home.component';
66

77
const routes: Routes = [
8-
{ path: '', redirectTo: '/home', pathMatch: 'full' },
9-
{ path: 'home', component: HomeComponent },
10-
{ path: 'appavailability', loadChildren: () => import('./plugin-demos/appavailability.module').then(m => m.AppavailabilityModule) },
11-
{ path: 'camera', loadChildren: () => import('./plugin-demos/camera.module').then(m => m.CameraModule) },
12-
{ path: 'datetimepicker', loadChildren: () => import('./plugin-demos/datetimepicker.module').then(m => m.DatetimepickerModule) },
13-
{ path: 'directions', loadChildren: () => import('./plugin-demos/directions.module').then(m => m.DirectionsModule) },
14-
{ path: 'email', loadChildren: () => import('./plugin-demos/email.module').then(m => m.EmailModule) },
15-
{ path: 'fingerprint-auth', loadChildren: () => import('./plugin-demos/fingerprint-auth.module').then(m => m.FingerprintAuthModule) },
16-
{ path: 'geolocation', loadChildren: () => import('./plugin-demos/geolocation.module').then(m => m.GeolocationModule) },
17-
{ path: 'imagepicker', loadChildren: () => import('./plugin-demos/imagepicker.module').then(m => m.ImagepickerModule) },
18-
{ path: 'iqkeyboardmanager', loadChildren: () => import('./plugin-demos/iqkeyboardmanager.module').then(m => m.IqkeyboardmanagerModule) },
19-
{ path: 'local-notifications', loadChildren: () => import('./plugin-demos/local-notifications.module').then(m => m.LocalNotificationsModule) },
20-
{ path: 'shared-notification-delegate', loadChildren: () => import('./plugin-demos/shared-notification-delegate.module').then(m => m.SharedNotificationDelegateModule) },
21-
{ path: 'zip', loadChildren: () => import('./plugin-demos/zip.module').then(m => m.ZipModule) }
8+
{ path: '', redirectTo: '/home', pathMatch: 'full' },
9+
{ path: 'home', component: HomeComponent },
10+
{ path: 'appavailability', loadChildren: () => import('./plugin-demos/appavailability.module').then((m) => m.AppavailabilityModule) },
11+
{ path: 'camera', loadChildren: () => import('./plugin-demos/camera.module').then((m) => m.CameraModule) },
12+
{ path: 'datetimepicker', loadChildren: () => import('./plugin-demos/datetimepicker.module').then((m) => m.DatetimepickerModule) },
13+
{ path: 'directions', loadChildren: () => import('./plugin-demos/directions.module').then((m) => m.DirectionsModule) },
14+
{ path: 'email', loadChildren: () => import('./plugin-demos/email.module').then((m) => m.EmailModule) },
15+
{ path: 'fingerprint-auth', loadChildren: () => import('./plugin-demos/fingerprint-auth.module').then((m) => m.FingerprintAuthModule) },
16+
{ path: 'geolocation', loadChildren: () => import('./plugin-demos/geolocation.module').then((m) => m.GeolocationModule) },
17+
{ path: 'imagepicker', loadChildren: () => import('./plugin-demos/imagepicker.module').then((m) => m.ImagepickerModule) },
18+
{ path: 'iqkeyboardmanager', loadChildren: () => import('./plugin-demos/iqkeyboardmanager.module').then((m) => m.IqkeyboardmanagerModule) },
19+
{ path: 'local-notifications', loadChildren: () => import('./plugin-demos/local-notifications.module').then((m) => m.LocalNotificationsModule) },
20+
{ path: 'shared-notification-delegate', loadChildren: () => import('./plugin-demos/shared-notification-delegate.module').then((m) => m.SharedNotificationDelegateModule) },
21+
{ path: 'zip', loadChildren: () => import('./plugin-demos/zip.module').then((m) => m.ZipModule) },
2222
];
2323

2424
@NgModule({

apps/demo-angular/src/home.component.ts

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,41 @@ import { Component } from '@angular/core';
66
})
77
export class HomeComponent {
88
demos = [
9-
{
10-
name: 'appavailability'
11-
},
12-
{
13-
name: 'camera'
14-
},
15-
{
16-
name: 'datetimepicker'
17-
},
18-
{
19-
name: 'directions'
20-
},
21-
{
22-
name: 'email'
23-
},
24-
{
25-
name: 'fingerprint-auth'
26-
},
27-
{
28-
name: 'geolocation'
29-
},
30-
{
31-
name: 'imagepicker'
32-
},
33-
{
34-
name: 'iqkeyboardmanager'
35-
},
36-
{
37-
name: 'local-notifications'
38-
},
39-
{
40-
name: 'shared-notification-delegate'
41-
},
42-
{
43-
name: 'zip'
44-
}
45-
];
46-
}
9+
{
10+
name: 'appavailability',
11+
},
12+
{
13+
name: 'camera',
14+
},
15+
{
16+
name: 'datetimepicker',
17+
},
18+
{
19+
name: 'directions',
20+
},
21+
{
22+
name: 'email',
23+
},
24+
{
25+
name: 'fingerprint-auth',
26+
},
27+
{
28+
name: 'geolocation',
29+
},
30+
{
31+
name: 'imagepicker',
32+
},
33+
{
34+
name: 'iqkeyboardmanager',
35+
},
36+
{
37+
name: 'local-notifications',
38+
},
39+
{
40+
name: 'shared-notification-delegate',
41+
},
42+
{
43+
name: 'zip',
44+
},
45+
];
46+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="camera" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/camera';
3+
4+
@Component({
5+
selector: 'demo-camera',
6+
templateUrl: 'camera.component.html',
7+
})
8+
export class CameraComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { CameraComponent } from './camera.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: CameraComponent }])],
7+
declarations: [CameraComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class CameraModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="directions" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/directions';
3+
4+
@Component({
5+
selector: 'demo-directions',
6+
templateUrl: 'directions.component.html',
7+
})
8+
export class DirectionsComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { DirectionsComponent } from './directions.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: DirectionsComponent }])],
7+
declarations: [DirectionsComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class DirectionsModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="email" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/email';
3+
4+
@Component({
5+
selector: 'demo-email',
6+
templateUrl: 'email.component.html',
7+
})
8+
export class EmailComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { EmailComponent } from './email.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: EmailComponent }])],
7+
declarations: [EmailComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class EmailModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="fingerprint-auth" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/fingerprint-auth';
3+
4+
@Component({
5+
selector: 'demo-fingerprint-auth',
6+
templateUrl: 'fingerprint-auth.component.html',
7+
})
8+
export class FingerprintAuthComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { FingerprintAuthComponent } from './fingerprint-auth.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: FingerprintAuthComponent }])],
7+
declarations: [FingerprintAuthComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class FingerprintAuthModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="geolocation" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/geolocation';
3+
4+
@Component({
5+
selector: 'demo-geolocation',
6+
templateUrl: 'geolocation.component.html',
7+
})
8+
export class GeolocationComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { GeolocationComponent } from './geolocation.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: GeolocationComponent }])],
7+
declarations: [GeolocationComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class GeolocationModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="iqkeyboardmanager" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/iqkeyboardmanager';
3+
4+
@Component({
5+
selector: 'demo-iqkeyboardmanager',
6+
templateUrl: 'iqkeyboardmanager.component.html',
7+
})
8+
export class IqkeyboardmanagerComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { IqkeyboardmanagerComponent } from './iqkeyboardmanager.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: IqkeyboardmanagerComponent }])],
7+
declarations: [IqkeyboardmanagerComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class IqkeyboardmanagerModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="local-notifications" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/local-notifications';
3+
4+
@Component({
5+
selector: 'demo-local-notifications',
6+
templateUrl: 'local-notifications.component.html',
7+
})
8+
export class LocalNotificationsComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { LocalNotificationsComponent } from './local-notifications.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: LocalNotificationsComponent }])],
7+
declarations: [LocalNotificationsComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class LocalNotificationsModule {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<ActionBar title="shared-notification-delegate" class="action-bar"> </ActionBar>
2+
<StackLayout class="p-20">
3+
<ScrollView class="h-full">
4+
<StackLayout>
5+
<Button text="Test Plugin" (tap)="testIt()" class="btn btn-primary"></Button>
6+
</StackLayout>
7+
</ScrollView>
8+
</StackLayout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component, NgZone } from '@angular/core';
2+
import {} from '@nativescript/shared-notification-delegate';
3+
4+
@Component({
5+
selector: 'demo-shared-notification-delegate',
6+
templateUrl: 'shared-notification-delegate.component.html',
7+
})
8+
export class SharedNotificationDelegateComponent {
9+
constructor(private _ngZone: NgZone) {}
10+
11+
testIt() {
12+
console.log('test your plugin!');
13+
}
14+
}
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 { SharedNotificationDelegateComponent } from './shared-notification-delegate.component';
4+
5+
@NgModule({
6+
imports: [NativeScriptCommonModule, NativeScriptRouterModule.forChild([{ path: '', component: SharedNotificationDelegateComponent }])],
7+
declarations: [SharedNotificationDelegateComponent],
8+
schemas: [NO_ERRORS_SCHEMA],
9+
})
10+
export class SharedNotificationDelegateModule {}

0 commit comments

Comments
 (0)