Commit 4f0ea7e2 authored by Markus Weissenbeck's avatar Markus Weissenbeck
Browse files

init

parents
composer-logs/
**/*.bna
**/*.card
/target/
**/target/
**/.settings/
.project
marketplace-frontend/package-lock.json
marketplace/Servers/**
/marketplace/.recommenders/**
**/db.json
**/.sts4-cache/
marketplace-frontend/src/app/main/content/_components/help-seeker/configuration/class-instances/form-editor/class-instance-form-editor.component.scss
marketplace-frontend/src/app/main/content/_components/help-seeker/configuration/class-instances/form-editor/class-instance-form-editor.component.html
marketplace-frontend/src/app/main/content/_components/help-seeker/task-management/task-select/task-select.component.ts
**/.vscode/
**/node_modules/
**/upload-dir/**
# iVolunteerPrototype v4
### Marketplace-DB:
docker run --name marketplace-db --restart=unless-stopped -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=root -p 27017:27017 -d mongo:3.6.2
### Marketplace-Workflow-DB
docker run --name marketplace-workflow-db --restart=unless-stopped -e MYSQL_DATABASE=workflow -e MYSQL_USER=workflow -e MYSQL_PASSWORD=workflow -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -d mysql:5.7.22
### Install MxGraph
npm i mxgraph
### start fabric and deploy business network (precondition: hlf1.1):
1. cd ~/iVolunteerPrototype/blockchain/network/ivolunteer-blockchain
2. ./init
### start rest server:
1. cd ~/iVolunteerPrototype/blockchain/rest\ server
2. docker-compose up -d
### Deployment:
mvn clean install -Pdev
mvn clean install -Pprod1
mvn clean install -Pprod2
start: nohup java -jar target/marketplace-application-0.0.1-SNAPSHOT.jar &> marketplace.out &
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
max_line_length = off
trim_trailing_whitespace = false
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# dependencies
/node_modules
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
# System Files
.DS_Store
Thumbs.db
save-prefix=''
\ No newline at end of file
https://themeforest.net/licenses/terms/regular
\ No newline at end of file
# Fuse2
Material Design Admin Template with Angular 6+ and Angular Material 2
## The Community
Share your ideas, discuss Fuse and help each other.
[Click here](http://fusetheme.com/community) to see our Community page.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## 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).
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"marketplace-frontend": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss"
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets",
"src/assets/mxgraph_resources/",
{
"glob": "**/*",
"input": "src/assets/mxgraph_resources/",
"output": "./"
}
],
"styles": [
"src/styles.scss"
],
"scripts": [
"src/assets/periodpicker/jquery.min.js",
"src/assets/periodpicker/build/jquery.periodpicker.full.min.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "marketplace-frontend:build"
},
"configurations": {
"production": {
"browserTarget": "marketplace-frontend:build:production"
},
"hmr": {
"hmr": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.hmr.ts"
}
]
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "marketplace-frontend:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"styles.scss"
],
"scripts": [
"src/assets/periodpicker/jquery.min.js",
"src/assets/periodpicker/build/jquery.periodpicker.full.min.js"
],
"assets": [
"src/favicon.ico",
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"marketplace-frontend-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "marketplace-frontend:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "marketplace-frontend"
}
\ No newline at end of file
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const {SpecReporter} = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs : [
'./src/**/*.e2e-spec.ts'
],
capabilities : {
'browserName': 'chrome'
},
directConnect : true,
baseUrl : 'http://localhost:4200/',
framework : 'jasmine',
jasmineNodeOpts : {
showColors : true,
defaultTimeoutInterval: 30000,
print : function ()
{
}
},
onPrepare()
{
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.e2e.json')
});
jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true}}));
}
};
\ No newline at end of file
import { Fuse2Page } from './app.po';
describe('Fuse2 App', () => {
let page: Fuse2Page;
beforeEach(() => {
page = new Fuse2Page();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to Fuse2!');
});
});
import { browser, by, element } from 'protractor';
export class Fuse2Page {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
}
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "commonjs",
"target": "es5",
"types": [
"jasmine",
"jasminewd2",
"node"
]
}
}
\ No newline at end of file
{
"name": "marketplace-frontend",
"version": "6.0.1",
"license": "https://themeforest.net/licenses/terms/regular",
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0 --disable-host-check",
"start2": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --disable-host-check",
"startprod2": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng serve --prod --host 0.0.0.0 --disable-host-check",
"startprod": "ng serve --prod --host 0.0.0.0 --disable-host-check",
"startxnet": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --port 4000 --disable-host-check",
"start-hmr": "ng serve --configuration hmr -sm=false --host 0.0.0.0",
"start-hmr-sourcemaps": "ng serve --hmr -e=hmr --host 0.0.0.0",
"build": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --dev",
"build-stats": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --dev --stats-json",
"build-prod": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --prod",
"build-prod-stats": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --prod --stats-json",
"test": "ng test",
"json-server": "json-server --watch db.json",
"lint": "ng lint",
"e2e": "ng e2e",
"bundle-report": "webpack-bundle-analyzer dist/stats.json"
},
"private": true,
"dependencies": {
"@agm/core": "1.1.0",
"@angular/animations": "8.2.14",
"@angular/cdk": "8.2.3",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/core": "^8.2.14",
"@angular/flex-layout": "8.0.0-beta.27",
"@angular/forms": "^8.2.14",
"@angular/http": "7.2.15",
"@angular/material": "8.2.3",
"@angular/material-moment-adapter": "8.2.3",
"@angular/platform-browser": "^8.2.14",
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/router": "^8.2.14",
"@auth0/angular-jwt": "3.0.1",
"@ng-bootstrap/ng-bootstrap": "5.1.4",
"@ngrx/effects": "8.5.2",
"@ngrx/router-store": "8.5.2",
"@ngrx/store": "8.5.2",
"@ngrx/store-devtools": "8.5.2",
"@ngx-translate/core": "11.0.1",
"@swimlane/ngx-charts": "13.0.1",
"@swimlane/ngx-datatable": "16.0.2",
"@swimlane/ngx-dnd": "8.1.0",
"@types/mxgraph": "github:lgleim/mxgraph-typings",
"@types/prismjs": "1.16.0",
"angular-calendar": "0.28.2",
"angular-gridster2": "8.2.0",
"angular-in-memory-web-api": "0.9.0",
"chart.js": "2.9.3",
"classlist.js": "1.1.20150312",
"core-js": "2.5.7",
"d3": "5.14.2",
"dropbox": "5.2.1",
"hammerjs": "2.0.8",
"highcharts": "8.0.0",
"highcharts-angular": "2.4.0",
"highcharts-custom-events": "3.0.2",
"jquery": "3.4.1",
"json-server": "0.15.1",
"lodash": "4.17.15",
"moment": "2.24.0",
"mxgraph": "github:jgraph/mxgraph",
"ng-dynamic-component": "5.0.0",
"ng2-charts": "2.3.0",
"ng2-dragula": "2.1.1",
"ngx-beautiful-charts": "2.0.4",
"ngx-color-picker": "^8.2.0",
"ngx-cookie-service": "2.3.0",
"ngx-material-file-input": "2.1.0",
"ngx-spinner": "9.0.1",
"perfect-scrollbar": "1.4.0",
"prismjs": "1.17.1",
"rxjs": "6.5.4",
"tslib": "1.11.1",
"vis": "4.21.0",
"web-animations-js": "2.3.2",
"webdav": "3.3.0",
"zone.js": "0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.803.19",
"@angular/cli": "8.3.19",
"@angular/compiler-cli": "8.2.14",
"@angular/language-service": "8.2.14",
"@angularclass/hmr": "2.1.3",
"@types/chart.js": "2.9.2",
"@types/jasmine": "3.5.0",
"@types/jasminewd2": "2.0.8",
"@types/jquery": "3.3.31",
"@types/lodash": "4.14.149",
"@types/node": "12.12.12",
"@types/vis": "4.21.19",
"codelyzer": "5.2.0",
"jasmine-core": "3.5.0",
"jasmine-spec-reporter": "4.2.1",
"karma": "4.4.1",
"karma-chrome-launcher": "3.1.0",
"karma-coverage-istanbul-reporter": "2.1.1",
"karma-jasmine": "2.0.1",
"karma-jasmine-html-reporter": "1.4.2",
"protractor": "5.4.2",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "3.5.3",
"webpack-bundle-analyzer": "3.6.0"
}
}
{
"name": "marketplace-frontend",
"version": "6.0.1",
"license": "https://themeforest.net/licenses/terms/regular",
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0 --disable-host-check",
"start2": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --disable-host-check",
"startprod2": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng serve --prod --host 0.0.0.0 --disable-host-check",
"startprod": "ng serve --prod --host 0.0.0.0 --disable-host-check",
"startxnet": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng serve --host 0.0.0.0 --port 4000 --disable-host-check",
"start-hmr": "ng serve --configuration hmr -sm=false --host 0.0.0.0",
"start-hmr-sourcemaps": "ng serve --hmr -e=hmr --host 0.0.0.0",
"build": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --dev",
"build-stats": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --dev --stats-json",
"build-prod": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --prod",
"build-prod-stats": "node --max_old_space_size=6144 ./node_modules/@angular/cli/bin/ng build --prod --stats-json",
"test": "ng test",
"json-server": "json-server --watch db.json",
"lint": "ng lint",
"e2e": "ng e2e",
"bundle-report": "webpack-bundle-analyzer dist/stats.json"
},
"private": true,
"dependencies": {
"@agm/core": "1.1.0",
"@angular/animations": "8.2.14",
"@angular/cdk": "8.2.3",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/core": "^8.2.14",
"@angular/flex-layout": "8.0.0-beta.27",
"@angular/forms": "^8.2.14",
"@angular/http": "7.2.15",
"@angular/material": "8.2.3",
"@angular/material-moment-adapter": "8.2.3",
"@angular/platform-browser": "^8.2.14",
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/router": "^8.2.14",
"@auth0/angular-jwt": "3.0.1",
"@ng-bootstrap/ng-bootstrap": "5.1.4",
"@ngrx/effects": "8.5.2",
"@ngrx/router-store": "8.5.2",
"@ngrx/store": "8.5.2",
"@ngrx/store-devtools": "8.5.2",
"@ngx-translate/core": "11.0.1",
"@swimlane/ngx-charts": "13.0.1",
"@swimlane/ngx-datatable": "16.0.2",
"@swimlane/ngx-dnd": "8.1.0",
"@types/prismjs": "1.16.0",
"angular-calendar": "0.28.2",
"angular-gridster2": "8.2.0",
"angular-in-memory-web-api": "0.9.0",
"chart.js": "2.9.3",
"classlist.js": "1.1.20150312",
"core-js": "2.5.7",
"d3": "5.14.2",
"dropbox": "5.2.1",
"hammerjs": "2.0.8",
"highcharts": "8.0.0",
"highcharts-angular": "2.4.0",
"highcharts-custom-events": "3.0.2",
"jquery": "3.4.1",
"json-server": "0.15.1",
"lodash": "4.17.15",
"moment": "2.24.0",
"ng-dynamic-component": "5.0.0",
"ng2-charts": "2.3.0",
"ngx-beautiful-charts": "2.0.4",
"ngx-color-picker": "^8.2.0",
"ngx-cookie-service": "2.3.0",
"ngx-material-file-input": "2.1.0",
"ngx-spinner": "9.0.1",
"perfect-scrollbar": "1.4.0",
"prismjs": "1.17.1",
"rxjs": "6.5.4",
"tslib": "1.11.1",
"vis": "4.21.0",
"web-animations-js": "2.3.2",
"webdav": "3.3.0",
"zone.js": "0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.803.19",
"@angular/cli": "8.3.19",
"@angular/compiler-cli": "8.2.14",
"@angular/language-service": "8.2.14",
"@angularclass/hmr": "2.1.3",
"@types/chart.js": "2.9.2",
"@types/jasmine": "3.5.0",
"@types/jasminewd2": "2.0.8",
"@types/jquery": "3.3.31",
"@types/lodash": "4.14.149",
"@types/node": "12.12.12",
"@types/vis": "4.21.19",
"codelyzer": "5.2.0",
"jasmine-core": "3.5.0",
"jasmine-spec-reporter": "4.2.1",
"karma": "4.4.1",
"karma-chrome-launcher": "3.1.0",
"karma-coverage-istanbul-reporter": "2.1.1",
"karma-jasmine": "2.0.1",
"karma-jasmine-html-reporter": "1.4.2",
"protractor": "5.4.2",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "3.5.3",
"webpack-bundle-analyzer": "3.6.0"
}
}
import { sequence, trigger, animate, style, group, query, transition, animateChild, state, animation, useAnimation, stagger } from '@angular/animations';
const customAnimation = animation([
style({