-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SCB-935] Saga transaction management console UI initial commit #317
Changes from 5 commits
0576a9b
55c6b51
83e61a2
e21ce3b
b7ca4d9
23deb1d
3159d52
61a8d24
f8a11cd
2a2f31f
4b2b65f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 akveo.com | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
[![Build Status](https://travis-ci.org/akveo/ngx-admin.svg?branch=master)](https://travis-ci.org/akveo/ngx-admin) | ||
anvithks marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[![Join the chat at https://gitter.im/ng2-admin/Lobby](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ng2-admin/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![Dependency Status](https://david-dm.org/akveo/ngx-admin/status.svg)](https://david-dm.org/akveo/ng2-admin) | ||
|
||
[Who uses ngx-admin?](https://github.com/akveo/ngx-admin/issues/1645) | ||
|
||
# Admin template based on Angular 6+, Bootstrap 4 and <a href="https://github.com/akveo/nebular">Nebular</a> | ||
|
||
### Three themes available: | ||
|
||
| Corporate Theme | | ||
|:---------------:| | ||
|<a target="_blank" href="http://akveo.com/ngx-admin/#/pages/dashboard?theme=corporate&utm_source=github&utm_medium=ngx_admin_readme&utm_campaign=themes"><img src="https://i.imgur.com/axbJYdN.png"/></a>| | ||
|
||
| Cosmic Theme | Light Theme | | ||
|:------------:|:--------------:| | ||
|<a target="_blank" href="http://akveo.com/ngx-admin/#/pages/dashboard?theme=cosmic&utm_source=github&utm_medium=ngx_admin_readme&utm_campaign=themes"><img src="https://i.imgur.com/FgRZcqL.png"/></a>|<a target="_blank" href="http://akveo.com/ngx-admin/#/pages/dashboard?theme=default&utm_source=github&utm_medium=ngx_admin_readme&utm_campaign=themes"><img src="https://i.imgur.com/fozHlRJ.png"/></a>| | ||
|
||
### Ecommerce dashboard | ||
|
||
| Ecommerce Template | | ||
|:---------------:| | ||
|<a target="_blank" href="http://akveo.com/ngx-admin/#/pages/dashboard?utm_source=github&utm_medium=ngx_admin_readme&utm_campaign=themes&utm_content=ecommerce"><img src="https://i.imgur.com/UW7ZmcP.png"/></a>| | ||
|
||
### What's included: | ||
|
||
- Angular 6+ & Typescript | ||
- Bootstrap 4+ & SCSS | ||
- Responsive layout | ||
- RTL support | ||
- High resolution | ||
- Flexibly configurable themes with **hot-reload** (2 themes included) | ||
- Authentication module with multiple providers | ||
- Lots of awesome features: | ||
- Buttons | ||
- Modals | ||
- Popovers | ||
- Icons | ||
- Typography | ||
- Animated searches | ||
- Forms | ||
- Tabs | ||
- Notifications | ||
- Tables | ||
- Maps | ||
- Charts | ||
- Editors | ||
|
||
And many more! | ||
|
||
### Hot Themes Reload | ||
|
||
<a target="_blank" href="http://akveo.com/ngx-admin/#/pages/dashboard?utm_source=github&utm_medium=ngx_admin_readme&utm_campaign=demo"><img src="https://i.imgur.com/XoJtfvK.gif"/></a> | ||
|
||
### Demo | ||
|
||
<a target="_blank" href="http://akveo.com/ngx-admin/">Live Demo</a> | ||
|
||
## Documentation | ||
This template is using [Nebular](https://github.com/akveo/nebular) modules set, [here you can find documentation and other useful articles](https://akveo.github.io/nebular/docs/guides/install-based-on-starter-kit). | ||
|
||
### ng2-admin | ||
We will continue supporting [ng2-admin](https://github.com/akveo/ngx-admin/tree/ng2-admin) version, but if you are starting from scratch we recommend using `ngx-admin`. Unfortunately, there is no way to automatically update from ng2-admin to ngx-admin, but some parts (Nebular components) could be manually included. | ||
|
||
### Empty starter kit | ||
Don't need all the pages and modules and just looking for an empty starter kit for your next project? Check out our [starter-kit branch](https://github.com/akveo/ngx-admin/tree/starter-kit). | ||
|
||
### AngularJS 1.x version | ||
Here you can find AngularJS 1.x based version: [Blur Admin](http://akveo.github.io/blur-admin/) | ||
|
||
## BrowserStack | ||
This project runs its tests on multiple desktop and mobile browsers using [BrowserStack](http://www.browserstack.com). | ||
|
||
<img src="https://cloud.githubusercontent.com/assets/131406/22254249/534d889e-e254-11e6-8427-a759fb23b7bd.png" height="40" /> | ||
|
||
### How can I support developers? | ||
- Star our GitHub repo :star: | ||
- Create pull requests, submit bugs, suggest new features or documentation updates :wrench: | ||
- Follow us on [Twitter](https://twitter.com/akveo_inc) :feet: | ||
- Like our page on [Facebook](https://www.facebook.com/akveo/) :thumbsup: | ||
|
||
### Looking for engineering services? | ||
Visit [our homepage](http://akveo.com/) or simply leave us a message to [contact@akveo.com](mailto:contact@akveo.com). We will be happy to work with you! | ||
|
||
### From Akveo | ||
Made with :heart: by [Akveo team](http://akveo.com/). Follow us on [Twitter](https://twitter.com/akveo_inc) to get the latest news first! | ||
We're always happy to receive your feedback! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"saga-frontend": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-devkit/build-angular:browser", | ||
"options": { | ||
"preserveSymlinks": true, | ||
"outputPath": "dist", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"polyfills": "src/polyfills.ts", | ||
"assets": [ | ||
"src/assets", | ||
"src/favicon.ico", | ||
"src/favicon.png" | ||
], | ||
"styles": [ | ||
"node_modules/bootstrap/dist/css/bootstrap.css", | ||
"node_modules/typeface-exo/index.css", | ||
"node_modules/roboto-fontface/css/roboto/roboto-fontface.css", | ||
"node_modules/ionicons/scss/ionicons.scss", | ||
"node_modules/@fortawesome/fontawesome-free/css/all.css", | ||
"node_modules/socicon/css/socicon.css", | ||
"node_modules/nebular-icons/scss/nebular-icons.scss", | ||
"node_modules/angular-tree-component/dist/angular-tree-component.css", | ||
"node_modules/pace-js/templates/pace-theme-flash.tmpl.css", | ||
"src/app/@theme/styles/styles.scss" | ||
], | ||
"scripts": [ | ||
"node_modules/pace-js/pace.min.js", | ||
"node_modules/echarts/dist/echarts.min.js", | ||
"node_modules/echarts/dist/extension/bmap.min.js", | ||
"node_modules/chart.js/dist/Chart.min.js" | ||
] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true, | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-devkit/build-angular:dev-server", | ||
"options": { | ||
"browserTarget": "saga-frontend:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "saga-frontend:build:production" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "saga-frontend:build" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "saga-frontend", | ||
"schematics": { | ||
"@schematics/angular:component": { | ||
"prefix": "ngx", | ||
"styleext": "scss" | ||
}, | ||
"@schematics/angular:directive": { | ||
"prefix": "ngx" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"name": "saga-frontend", | ||
"version": "0.2.0", | ||
"license": "Apache 2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/apache/incubator-servicecomb-saga.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/apache/incubator-servicecomb-saga/issues" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"IE 11" | ||
], | ||
"scripts": { | ||
asifdxtreme marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"ng": "ng", | ||
"conventional-changelog": "conventional-changelog", | ||
"start": "ng serve --port 5200", | ||
"build": "ng build", | ||
"build:prod": "npm run build -- --prod --aot", | ||
"prepush": "npm run lint:ci", | ||
"release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s" | ||
}, | ||
"dependencies": { | ||
asifdxtreme marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"@agm/core": "1.0.0-beta.2", | ||
"@angular/animations": "6.0.0", | ||
"@angular/common": "6.0.0", | ||
"@angular/compiler": "6.0.0", | ||
"@angular/core": "6.0.0", | ||
"@angular/forms": "6.0.0", | ||
"@angular/http": "6.0.0", | ||
"@angular/platform-browser": "6.0.0", | ||
"@angular/platform-browser-dynamic": "6.0.0", | ||
"@angular/router": "6.0.0", | ||
"@nebular/auth": "2.0.0-rc.10", | ||
"@nebular/security": "2.0.0-rc.10", | ||
"@nebular/theme": "2.0.0-rc.10", | ||
"@ng-bootstrap/ng-bootstrap": "1.0.0", | ||
"@swimlane/ngx-charts": "7.0.1", | ||
"angular-tree-component": "7.2.0", | ||
"angular2-chartjs": "0.4.1", | ||
"angular2-toaster": "6.0.0", | ||
"bootstrap": "4.0.0", | ||
"chart.js": "2.7.1", | ||
"classlist.js": "1.1.20150312", | ||
"core-js": "2.5.1", | ||
"echarts": "^4.0.2", | ||
"intl": "1.2.5", | ||
"ionicons": "2.0.1", | ||
"nebular-icons": "1.0.9", | ||
"ng2-completer": "2.0.8", | ||
"ng2-smart-table": "1.3.5", | ||
"ngx-echarts": "2.0.1", | ||
"normalize.css": "6.0.0", | ||
"pace-js": "1.0.2", | ||
"roboto-fontface": "0.8.0", | ||
asifdxtreme marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"rxjs": "^6.1.0", | ||
"rxjs-compat": "^6.1.0", | ||
"socicon": "3.0.5", | ||
"typeface-exo": "0.0.22", | ||
"underscore": "^1.9.1", | ||
"web-animations-js": "2.2.5", | ||
"zone.js": "^0.8.26" | ||
}, | ||
"devDependencies": { | ||
asifdxtreme marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"@angular/cli": "6.0.0", | ||
"@angular/compiler-cli": "6.0.0", | ||
"@angular/language-service": "6.0.0", | ||
"@compodoc/compodoc": "1.0.1", | ||
"@fortawesome/fontawesome-free": "^5.2.0", | ||
"@types/d3-color": "1.0.5", | ||
"@types/node": "6.0.90", | ||
"codelyzer": "4.0.2", | ||
"conventional-changelog-cli": "1.3.4", | ||
"husky": "0.13.3", | ||
"npm-run-all": "4.0.2", | ||
"rimraf": "2.6.1", | ||
"ts-node": "3.2.2", | ||
"typescript": "2.7.2", | ||
"@angular-devkit/build-angular": "~0.6.0" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I need to know if this file is generated or write by hand. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated the files with appropriate license information. |
||
import { CommonModule } from '@angular/common'; | ||
import { NbAuthModule, NbDummyAuthStrategy } from '@nebular/auth'; | ||
import { NbSecurityModule, NbRoleProvider } from '@nebular/security'; | ||
import { of as observableOf } from 'rxjs'; | ||
|
||
import { throwIfAlreadyLoaded } from './module-import-guard'; | ||
import { DataModule } from './data/data.module'; | ||
import { AnalyticsService } from './utils/analytics.service'; | ||
import { UtilService } from './utils/util.service'; | ||
|
||
|
||
export class NbSimpleRoleProvider extends NbRoleProvider { | ||
getRole() { | ||
// here you could provide any role based on any auth flow | ||
return observableOf('guest'); | ||
} | ||
} | ||
|
||
export const NB_CORE_PROVIDERS = [ | ||
...DataModule.forRoot().providers, | ||
...NbAuthModule.forRoot({ | ||
|
||
strategies: [ | ||
NbDummyAuthStrategy.setup({ | ||
name: 'email', | ||
delay: 3000, | ||
}), | ||
], | ||
}).providers, | ||
|
||
NbSecurityModule.forRoot({ | ||
accessControl: { | ||
guest: { | ||
view: '*', | ||
}, | ||
user: { | ||
parent: 'guest', | ||
create: '*', | ||
edit: '*', | ||
remove: '*', | ||
}, | ||
}, | ||
}).providers, | ||
|
||
{ | ||
provide: NbRoleProvider, useClass: NbSimpleRoleProvider, | ||
}, | ||
AnalyticsService, | ||
UtilService, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
], | ||
exports: [ | ||
NbAuthModule, | ||
], | ||
declarations: [], | ||
}) | ||
export class CoreModule { | ||
constructor(@Optional() @SkipSelf() parentModule: CoreModule) { | ||
throwIfAlreadyLoaded(parentModule, 'CoreModule'); | ||
} | ||
|
||
static forRoot(): ModuleWithProviders { | ||
return <ModuleWithProviders>{ | ||
ngModule: CoreModule, | ||
providers: [ | ||
...NB_CORE_PROVIDERS, | ||
], | ||
}; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { NgModule, ModuleWithProviders } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { SagaeventsService } from './saga-events.service'; | ||
import { StateService } from './state.service'; | ||
|
||
const SERVICES = [ | ||
SagaeventsService, | ||
StateService, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
], | ||
providers: [ | ||
...SERVICES, | ||
], | ||
}) | ||
export class DataModule { | ||
static forRoot(): ModuleWithProviders { | ||
return <ModuleWithProviders>{ | ||
ngModule: DataModule, | ||
providers: [ | ||
...SERVICES, | ||
], | ||
}; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anvithks We can remove this license now, this will now be added as a part of release/license
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asifdxtreme This is fixed