;
-
-
- /**
- * Returns a float between 0 and 1 indicating the current upload progress of the file. If relative is true, the value is returned relative to all files in the Resumable.js instance.
- **/
- progress: (relative: boolean) => number;
- /**
- * Abort uploading the file.
- **/
- abort: () => void;
- /**
- * Abort uploading the file and delete it from the list of files to upload.
- **/
- cancel: () => void;
- /**
- * Retry uploading the file.
- **/
- retry: () => void;
- /**
- * Rebuild the state of a ResumableFile object, including reassigning chunks and XMLHttpRequest instances.
- **/
- bootstrap: () => void;
- /**
- * Returns a boolean indicating whether file chunks is uploading.
- **/
- isUploading: () => boolean;
- /**
- * Returns a boolean indicating whether the file has completed uploading and received a server response.
- **/
- isComplete: () => boolean;
- }
-
- class ResumableChunk {}
-}
-
-declare module 'resumablejs' {
- export = Resumable.Resumable;
-}
diff --git a/projects/common/tsconfig.lib.json b/projects/common/tsconfig.lib.json
index de024ef..7d312cd 100644
--- a/projects/common/tsconfig.lib.json
+++ b/projects/common/tsconfig.lib.json
@@ -30,7 +30,7 @@
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
- "enableResourceInlining": true
+ "enableResourceInlining": true
},
"exclude": [
"src/test.ts",
diff --git a/projects/material/README.md b/projects/material/README.md
deleted file mode 100644
index 9d53f24..0000000
--- a/projects/material/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# Material
-
-This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
-
-## Code scaffolding
-
-Run `ng generate component component-name --project material` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project material`.
-> Note: Don't forget to add `--project material` or else it will be added to the default project in your `angular.json` file.
-
-## Build
-
-Run `ng build material` to build the project. The build artifacts will be stored in the `dist/` directory.
-
-## Publishing
-
-After building your library with `ng build material`, go to the dist folder `cd dist/material` and run `npm publish`.
-
-## Running unit tests
-
-Run `ng test material` to execute the unit tests via [Karma](https://karma-runner.github.io).
-
-## Further help
-
-To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
diff --git a/projects/material/karma.conf.js b/projects/material/karma.conf.js
deleted file mode 100644
index cda7929..0000000
--- a/projects/material/karma.conf.js
+++ /dev/null
@@ -1,32 +0,0 @@
-// Karma configuration file, see link for more information
-// https://karma-runner.github.io/1.0/config/configuration-file.html
-
-module.exports = function (config) {
- config.set({
- basePath: '',
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
- plugins: [
- require('karma-jasmine'),
- require('karma-chrome-launcher'),
- require('karma-jasmine-html-reporter'),
- require('karma-coverage-istanbul-reporter'),
- require('@angular-devkit/build-angular/plugins/karma')
- ],
- client: {
- clearContext: false // leave Jasmine Spec Runner output visible in browser
- },
- coverageIstanbulReporter: {
- dir: require('path').join(__dirname, '../../coverage/material'),
- reports: ['html', 'lcovonly'],
- fixWebpackSourcePaths: true
- },
- reporters: ['progress', 'kjhtml'],
- port: 9876,
- colors: true,
- logLevel: config.LOG_INFO,
- autoWatch: true,
- browsers: ['Chrome'],
- singleRun: false,
- restartOnFileChange: true
- });
-};
diff --git a/projects/material/ng-package.json b/projects/material/ng-package.json
deleted file mode 100644
index d7e2240..0000000
--- a/projects/material/ng-package.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
- "dest": "../../dist/material",
- "lib": {
- "entryFile": "src/public-api.ts"
- }
-}
\ No newline at end of file
diff --git a/projects/material/package-lock.json b/projects/material/package-lock.json
deleted file mode 100644
index 6a234c4..0000000
--- a/projects/material/package-lock.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "material",
- "version": "0.0.1",
- "lockfileVersion": 1
-}
diff --git a/projects/material/package.json b/projects/material/package.json
deleted file mode 100644
index 8b74a3b..0000000
--- a/projects/material/package.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "material",
- "version": "0.0.1",
- "peerDependencies": {
- "@angular/common": "^7.2.0",
- "@angular/core": "^7.2.0"
- }
-}
diff --git a/projects/material/src/lib/cropfield-selector/cropfield-selector.component.css b/projects/material/src/lib/cropfield-selector/cropfield-selector.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/projects/material/src/lib/cropfield-selector/cropfield-selector.component.html b/projects/material/src/lib/cropfield-selector/cropfield-selector.component.html
deleted file mode 100644
index adbc828..0000000
--- a/projects/material/src/lib/cropfield-selector/cropfield-selector.component.html
+++ /dev/null
@@ -1,3 +0,0 @@
-
- cropfield-selector works!
-
diff --git a/projects/material/src/lib/cropfield-selector/cropfield-selector.component.spec.ts b/projects/material/src/lib/cropfield-selector/cropfield-selector.component.spec.ts
deleted file mode 100644
index 464332d..0000000
--- a/projects/material/src/lib/cropfield-selector/cropfield-selector.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { CropfieldSelectorComponent } from './cropfield-selector.component';
-
-describe('CropfieldSelectorComponent', () => {
- let component: CropfieldSelectorComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ CropfieldSelectorComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(CropfieldSelectorComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/projects/material/src/lib/cropfield-selector/cropfield-selector.component.ts b/projects/material/src/lib/cropfield-selector/cropfield-selector.component.ts
deleted file mode 100644
index 71ff8ff..0000000
--- a/projects/material/src/lib/cropfield-selector/cropfield-selector.component.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-
-@Component({
- selector: 'farmmaps-cropfield-selector',
- templateUrl: './cropfield-selector.component.html',
- styleUrls: ['./cropfield-selector.component.css']
-})
-export class CropfieldSelectorComponent implements OnInit {
-
- constructor() { }
-
- ngOnInit() {
- }
-
-}
diff --git a/projects/material/src/lib/material.component.spec.ts b/projects/material/src/lib/material.component.spec.ts
deleted file mode 100644
index 7293b78..0000000
--- a/projects/material/src/lib/material.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MaterialComponent } from './material.component';
-
-describe('MaterialComponent', () => {
- let component: MaterialComponent;
- let fixture: ComponentFixture;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ MaterialComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(MaterialComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/projects/material/src/lib/material.component.ts b/projects/material/src/lib/material.component.ts
deleted file mode 100644
index db22201..0000000
--- a/projects/material/src/lib/material.component.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-
-@Component({
- selector: 'farmmaps-material',
- template: `
-
- material works!
-
- `,
- styles: []
-})
-export class MaterialComponent implements OnInit {
-
- constructor() { }
-
- ngOnInit() {
- }
-
-}
diff --git a/projects/material/src/lib/material.module.ts b/projects/material/src/lib/material.module.ts
deleted file mode 100644
index b08dc99..0000000
--- a/projects/material/src/lib/material.module.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { NgModule } from '@angular/core';
-import { MaterialComponent } from './material.component';
-import { CropfieldSelectorComponent } from './cropfield-selector/cropfield-selector.component';
-
-@NgModule({
- declarations: [
- MaterialComponent,
- CropfieldSelectorComponent
- ],
- imports: [
- ],
- exports: [
- MaterialComponent,
- CropfieldSelectorComponent
- ]
-})
-export class MaterialModule { }
diff --git a/projects/material/src/lib/material.service.spec.ts b/projects/material/src/lib/material.service.spec.ts
deleted file mode 100644
index e010574..0000000
--- a/projects/material/src/lib/material.service.spec.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { TestBed } from '@angular/core/testing';
-
-import { MaterialService } from './material.service';
-
-describe('MaterialService', () => {
- beforeEach(() => TestBed.configureTestingModule({}));
-
- it('should be created', () => {
- const service: MaterialService = TestBed.get(MaterialService);
- expect(service).toBeTruthy();
- });
-});
diff --git a/projects/material/src/lib/material.service.ts b/projects/material/src/lib/material.service.ts
deleted file mode 100644
index a39cce5..0000000
--- a/projects/material/src/lib/material.service.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { Injectable } from '@angular/core';
-
-@Injectable({
- providedIn: 'root'
-})
-export class MaterialService {
-
- constructor() { }
-}
diff --git a/projects/material/src/public-api.ts b/projects/material/src/public-api.ts
deleted file mode 100644
index da67cf1..0000000
--- a/projects/material/src/public-api.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
- * Public API Surface of material
- */
-
-export * from './lib/material.service';
-export * from './lib/material.component';
-export * from './lib/material.module';
-
-export * from './lib/cropfield-selector/cropfield-selector.component';
\ No newline at end of file
diff --git a/projects/material/src/test.ts b/projects/material/src/test.ts
deleted file mode 100644
index e11ff1c..0000000
--- a/projects/material/src/test.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-// This file is required by karma.conf.js and loads recursively all the .spec and framework files
-
-import 'core-js/es7/reflect';
-import 'zone.js/dist/zone';
-import 'zone.js/dist/zone-testing';
-import { getTestBed } from '@angular/core/testing';
-import {
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting
-} from '@angular/platform-browser-dynamic/testing';
-
-declare const require: any;
-
-// First, initialize the Angular testing environment.
-getTestBed().initTestEnvironment(
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting()
-);
-// Then we find all the tests.
-const context = require.context('./', true, /\.spec\.ts$/);
-// And load the modules.
-context.keys().map(context);
diff --git a/projects/material/tsconfig.lib.json b/projects/material/tsconfig.lib.json
deleted file mode 100644
index 3fe337f..0000000
--- a/projects/material/tsconfig.lib.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "extends": "../../tsconfig.json",
- "compilerOptions": {
- "outDir": "../../out-tsc/lib",
- "target": "es2015",
- "module": "es2015",
- "moduleResolution": "node",
- "declaration": true,
- "sourceMap": true,
- "inlineSources": true,
- "emitDecoratorMetadata": true,
- "experimentalDecorators": true,
- "importHelpers": true,
- "types": [],
- "lib": [
- "dom",
- "es2018"
- ]
- },
- "angularCompilerOptions": {
- "annotateForClosureCompiler": true,
- "skipTemplateCodegen": true,
- "strictMetadataEmit": true,
- "fullTemplateTypeCheck": true,
- "strictInjectionParameters": true,
- "enableResourceInlining": true
- },
- "exclude": [
- "src/test.ts",
- "**/*.spec.ts"
- ]
-}
diff --git a/projects/material/tsconfig.spec.json b/projects/material/tsconfig.spec.json
deleted file mode 100644
index 16da33d..0000000
--- a/projects/material/tsconfig.spec.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "extends": "../../tsconfig.json",
- "compilerOptions": {
- "outDir": "../../out-tsc/spec",
- "types": [
- "jasmine",
- "node"
- ]
- },
- "files": [
- "src/test.ts"
- ],
- "include": [
- "**/*.spec.ts",
- "**/*.d.ts"
- ]
-}
diff --git a/projects/material/tslint.json b/projects/material/tslint.json
deleted file mode 100644
index fe96d6c..0000000
--- a/projects/material/tslint.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "extends": "../../tslint.json",
- "rules": {
- "directive-selector": [
- true,
- "attribute",
- "farmmaps",
- "camelCase"
- ],
- "component-selector": [
- true,
- "element",
- "farmmaps",
- "kebab-case"
- ]
- }
-}
diff --git a/src/app/app-content.component.ts b/src/app/app-content.component.ts
new file mode 100644
index 0000000..9feb023
--- /dev/null
+++ b/src/app/app-content.component.ts
@@ -0,0 +1,8 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-content',
+ template: 'Hello daar
'
+})
+export class AppContentComponent {
+}
\ No newline at end of file
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
new file mode 100644
index 0000000..7e6a518
--- /dev/null
+++ b/src/app/app-routing.module.ts
@@ -0,0 +1,16 @@
+import { NgModule } from '@angular/core';
+import { RouterModule } from '@angular/router';
+
+import { AuthGuard } from '@farmmaps/common';
+import { AppContentComponent} from './app-content.component';
+
+const routes = [
+ { path: '', canLoad: [AuthGuard], component: AppContentComponent}
+];
+
+@NgModule({
+ imports: [RouterModule.forRoot(routes,
+ { initialNavigation: false })], // , enableTracing: true
+ exports: [RouterModule]
+})
+export class AppRoutingModule { }
diff --git a/src/app/app.component.html b/src/app/app.component.html
index e5d31c2..676801c 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -5,12 +5,8 @@
-Material Test
-
-Material Test Cropfield Selector
Common Test
-
-
+
Here are some links to help you start:
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index c791fd9..e261d13 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -1,18 +1,57 @@
+import {
+ NgModule,
+ Inject,
+ APP_BOOTSTRAP_LISTENER,
+ InjectionToken, Type,
+} from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
-import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
-import { MaterialModule } from 'material';
-import { CommonModule } from '@farmmaps/common';
+import { AppContentComponent } from './app-content.component';
+import { AppCommonModule } from '@farmmaps/common';
+
+import {StoreModule, Store} from '@ngrx/store';
+import {EffectsModule, EffectSources} from '@ngrx/effects';
+import { StoreRouterConnectingModule} from '@ngrx/router-store';
+
+import {AppRoutingModule} from './app-routing.module';
+
+export const BOOTSTRAP_EFFECTS = new InjectionToken('Bootstrap Effects');
+
+export function bootstrapEffects(effects: Type[], sources: EffectSources) {
+ return () => {
+ effects.forEach(effect => sources.addEffects(effect));
+ };
+}
+
+export function createInstances(...instances: any[]) {
+ return instances;
+}
+
+export function provideBootstrapEffects(effects: Type[]) {
+ return [
+ effects,
+ {provide: BOOTSTRAP_EFFECTS, deps: effects, useFactory: createInstances},
+ {
+ provide: APP_BOOTSTRAP_LISTENER,
+ multi: true,
+ useFactory: bootstrapEffects,
+ deps: [[new Inject(BOOTSTRAP_EFFECTS)], EffectSources],
+ },
+ ];
+}
@NgModule({
declarations: [
- AppComponent
+ AppComponent,
+ AppContentComponent
],
imports: [
+ AppRoutingModule,
+ AppCommonModule.forRoot() ,
BrowserModule,
- MaterialModule,
- CommonModule
+ StoreModule.forRoot({}),
+ EffectsModule.forRoot([])
],
providers: [],
bootstrap: [AppComponent]
diff --git a/src/configuration.json b/src/configuration.json
new file mode 100644
index 0000000..3c074a5
--- /dev/null
+++ b/src/configuration.json
@@ -0,0 +1,8 @@
+{
+ "issuer": "http://accounts.awtest.nl",
+ "clientId": "v1t",
+ "audience": "http://localhost:8082/,http://awtest.nl/,http://aan.awtest.nl",
+ "requireHttps": false,
+ "apiEndPoint": "http://localhost:8082"
+ }
+
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 36df828..1f5e7c6 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -17,22 +17,6 @@
"lib": [
"es2018",
"dom"
- ],
- "paths": {
- "material": [
- "dist/material"
- ],
- "material/*": [
- "dist/material/*"
- ],
- "common": [
- "dist/common",
- "dist/common"
- ],
- "common/*": [
- "dist/common/*",
- "dist/common/*"
- ]
- }
+ ]
}
}
\ No newline at end of file