mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
#440 demo page for demo shell
This commit is contained in:
@@ -26,6 +26,7 @@ env:
|
|||||||
- MODULE=ng2-alfresco-search
|
- MODULE=ng2-alfresco-search
|
||||||
- MODULE=ng2-alfresco-upload
|
- MODULE=ng2-alfresco-upload
|
||||||
- MODULE=ng2-alfresco-viewer
|
- MODULE=ng2-alfresco-viewer
|
||||||
|
- MODULE=ng2-alfresco-activiti-form
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then
|
- if ([ "$MODULE" != "ng2-alfresco-core" ] && [ "$MODULE" != "ng2-alfresco-viewer" ]); then
|
||||||
@@ -47,4 +48,4 @@ before_script:
|
|||||||
script: npm run test
|
script: npm run test
|
||||||
# Send coverage data to Coveralls
|
# Send coverage data to Coveralls
|
||||||
after_success:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
@@ -15,6 +15,7 @@
|
|||||||
<a class="mdl-navigation__link" data-automation-id="files" href="" [routerLink]="['Files']">DocumentList</a>
|
<a class="mdl-navigation__link" data-automation-id="files" href="" [routerLink]="['Files']">DocumentList</a>
|
||||||
<a class="mdl-navigation__link" data-automation-id="datatable" href="" [routerLink]="['DataTable']">DataTable</a>
|
<a class="mdl-navigation__link" data-automation-id="datatable" href="" [routerLink]="['DataTable']">DataTable</a>
|
||||||
<a class="mdl-navigation__link" data-automation-id="uploader" href="" [routerLink]="['Uploader']">Uploader</a>
|
<a class="mdl-navigation__link" data-automation-id="uploader" href="" [routerLink]="['Uploader']">Uploader</a>
|
||||||
|
<a class="mdl-navigation__link" data-automation-id="tasks" href="" [routerLink]="['Activiti']">Activiti</a>
|
||||||
<a class="mdl-navigation__link" data-automation-id="tasks" href="" [routerLink]="['Tasks']">Tasks</a>
|
<a class="mdl-navigation__link" data-automation-id="tasks" href="" [routerLink]="['Tasks']">Tasks</a>
|
||||||
<a class="mdl-navigation__link" data-automation-id="login" href="" [routerLink]="['Login']">Login</a>
|
<a class="mdl-navigation__link" data-automation-id="login" href="" [routerLink]="['Login']">Login</a>
|
||||||
</nav>
|
</nav>
|
||||||
@@ -39,11 +40,12 @@
|
|||||||
<div class="mdl-layout__drawer">
|
<div class="mdl-layout__drawer">
|
||||||
<span class="mdl-layout-title">Components List</span>
|
<span class="mdl-layout-title">Components List</span>
|
||||||
<nav class="mdl-navigation">
|
<nav class="mdl-navigation">
|
||||||
<a class="mdl-navigation__link" href="" [routerLink]="['Files']" (click)="hideDrawer()">DocumentList</a>
|
<a class="mdl-navigation__link" href="" [routerLink]="['Files']" (click)="hideDrawer()">DocumentList Demo</a>
|
||||||
<a class="mdl-navigation__link" href="" [routerLink]="['DataTable']" (click)="hideDrawer()">DataTable</a>
|
<a class="mdl-navigation__link" href="" [routerLink]="['DataTable']" (click)="hideDrawer()">DataTable Demo</a>
|
||||||
<a class="mdl-navigation__link" href="" [routerLink]="['Uploader']" (click)="hideDrawer()">Uploader</a>
|
<a class="mdl-navigation__link" href="" [routerLink]="['Uploader']" (click)="hideDrawer()">Uploader Demo</a>
|
||||||
<a class="mdl-navigation__link" href="" [routerLink]="['Login']" (click)="hideDrawer()">Login</a>
|
<a class="mdl-navigation__link" href="" [routerLink]="['Login']" (click)="hideDrawer()">Login Demo</a>
|
||||||
<a class="mdl-navigation__link" href="" [routerLink]="['Tasks']" (click)="hideDrawer()">Tasks</a>
|
<a class="mdl-navigation__link" href="" [routerLink]="['Activiti']" (click)="hideDrawer()">Activiti Components Demo</a>
|
||||||
|
<a class="mdl-navigation__link" href="" [routerLink]="['Tasks']" (click)="hideDrawer()">Activiti Tasks Demo</a>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<main class="mdl-layout__content">
|
<main class="mdl-layout__content">
|
||||||
|
@@ -32,6 +32,7 @@ import { SearchComponent } from './components/search/search.component';
|
|||||||
import { SearchBarComponent } from './components/search/search-bar.component';
|
import { SearchBarComponent } from './components/search/search-bar.component';
|
||||||
import { LoginDemoComponent } from './components/login/login-demo.component';
|
import { LoginDemoComponent } from './components/login/login-demo.component';
|
||||||
import { TasksDemoComponent } from './components/tasks/tasks-demo.component';
|
import { TasksDemoComponent } from './components/tasks/tasks-demo.component';
|
||||||
|
import { ActivitiDemoComponent } from './components/activiti/activiti-demo.component';
|
||||||
|
|
||||||
declare var document: any;
|
declare var document: any;
|
||||||
|
|
||||||
@@ -50,7 +51,8 @@ declare var document: any;
|
|||||||
{path: '/uploader', name: 'Uploader', component: UploadButtonComponent},
|
{path: '/uploader', name: 'Uploader', component: UploadButtonComponent},
|
||||||
{path: '/login', name: 'Login', component: LoginDemoComponent},
|
{path: '/login', name: 'Login', component: LoginDemoComponent},
|
||||||
{path: '/search', name: 'Search', component: SearchComponent},
|
{path: '/search', name: 'Search', component: SearchComponent},
|
||||||
{path: '/tasks', name: 'Tasks', component: TasksDemoComponent}
|
{path: '/tasks', name: 'Tasks', component: TasksDemoComponent},
|
||||||
|
{path: '/activiti', name: 'Activiti', component: ActivitiDemoComponent}
|
||||||
])
|
])
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
translate: AlfrescoTranslationService;
|
translate: AlfrescoTranslationService;
|
||||||
|
@@ -0,0 +1,30 @@
|
|||||||
|
/*!
|
||||||
|
* @license
|
||||||
|
* Copyright 2016 Alfresco Software, Ltd.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { ActivitiForm } from 'ng2-alfresco-activiti-form';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'activiti-demo',
|
||||||
|
template: `
|
||||||
|
<activiti-form></activiti-form>
|
||||||
|
`,
|
||||||
|
directives: [ActivitiForm]
|
||||||
|
})
|
||||||
|
export class ActivitiDemoComponent {
|
||||||
|
|
||||||
|
}
|
@@ -81,7 +81,8 @@
|
|||||||
"ng2-alfresco-login": "0.2.0",
|
"ng2-alfresco-login": "0.2.0",
|
||||||
"ng2-alfresco-search": "0.2.0",
|
"ng2-alfresco-search": "0.2.0",
|
||||||
"ng2-alfresco-upload": "0.2.0",
|
"ng2-alfresco-upload": "0.2.0",
|
||||||
"ng2-alfresco-viewer": "0.2.0"
|
"ng2-alfresco-viewer": "0.2.0",
|
||||||
|
"ng2-alfresco-activiti-form": "0.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
@@ -94,7 +95,8 @@
|
|||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
"./app/**/*.js"
|
"./app/**/*.js",
|
||||||
|
"!./app/js/xml2json.js"
|
||||||
],
|
],
|
||||||
"path": "assets/license_header.txt",
|
"path": "assets/license_header.txt",
|
||||||
"blocking": true,
|
"blocking": true,
|
||||||
|
@@ -17,7 +17,8 @@
|
|||||||
'ng2-alfresco-login': 'node_modules/ng2-alfresco-login/dist',
|
'ng2-alfresco-login': 'node_modules/ng2-alfresco-login/dist',
|
||||||
'ng2-alfresco-search': 'node_modules/ng2-alfresco-search/dist',
|
'ng2-alfresco-search': 'node_modules/ng2-alfresco-search/dist',
|
||||||
'ng2-alfresco-upload': 'node_modules/ng2-alfresco-upload/dist',
|
'ng2-alfresco-upload': 'node_modules/ng2-alfresco-upload/dist',
|
||||||
'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer/dist'
|
'ng2-alfresco-viewer': 'node_modules/ng2-alfresco-viewer/dist',
|
||||||
|
'ng2-alfresco-activiti-form': 'node_modules/ng2-alfresco-activiti-form/dist'
|
||||||
};
|
};
|
||||||
// packages tells the System loader how to load when no filename and/or no extension
|
// packages tells the System loader how to load when no filename and/or no extension
|
||||||
var packages = {
|
var packages = {
|
||||||
@@ -33,7 +34,8 @@
|
|||||||
'ng2-alfresco-login': { main: 'index.js', defaultExtension: 'js'},
|
'ng2-alfresco-login': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-search': { main: 'index.js', defaultExtension: 'js'},
|
'ng2-alfresco-search': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-upload': { main: 'index.js', defaultExtension: 'js'},
|
'ng2-alfresco-upload': { main: 'index.js', defaultExtension: 'js'},
|
||||||
'ng2-alfresco-viewer': { main: 'index.js', defaultExtension: 'js'}
|
'ng2-alfresco-viewer': { main: 'index.js', defaultExtension: 'js'},
|
||||||
|
'ng2-alfresco-activiti-form': { main: 'index.js', defaultExtension: 'js'}
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
'common',
|
'common',
|
||||||
|
@@ -22,7 +22,7 @@ declare let __moduleName: string;
|
|||||||
@Component({
|
@Component({
|
||||||
moduleId: __moduleName,
|
moduleId: __moduleName,
|
||||||
selector: 'activiti-form',
|
selector: 'activiti-form',
|
||||||
template: '<h1>Activiti Form Content</h1>'
|
template: '<h3>Activiti Form Content</h3>'
|
||||||
})
|
})
|
||||||
export class ActivitiForm {
|
export class ActivitiForm {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user