mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Fix datatable/documentlist demo projects
This commit is contained in:
parent
f1410431e1
commit
9cf7322acf
@ -43,8 +43,10 @@
|
|||||||
"rimraf": "2.5.2",
|
"rimraf": "2.5.2",
|
||||||
"material-design-icons": "2.2.3",
|
"material-design-icons": "2.2.3",
|
||||||
"material-design-lite": "1.1.3",
|
"material-design-lite": "1.1.3",
|
||||||
|
"ng2-translate": "2.2.2",
|
||||||
|
|
||||||
"ng2-alfresco-datatable": "^0.1.12"
|
"ng2-alfresco-datatable": "^0.1.12",
|
||||||
|
"ng2-alfresco-core": "^0.1.36"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { bootstrap } from '@angular/platform-browser-dynamic';
|
import { bootstrap } from '@angular/platform-browser-dynamic';
|
||||||
|
import { CONTEXT_MENU_DIRECTIVES, CONTEXT_MENU_PROVIDERS } from 'ng2-alfresco-core';
|
||||||
import {
|
import {
|
||||||
ALFRESCO_DATATABLE_DIRECTIVES,
|
ALFRESCO_DATATABLE_DIRECTIVES,
|
||||||
ObjectDataTableAdapter,
|
ObjectDataTableAdapter,
|
||||||
@ -66,7 +67,7 @@ import {
|
|||||||
':host > .container {padding: 10px}',
|
':host > .container {padding: 10px}',
|
||||||
'.p-10 { padding: 10px; }'
|
'.p-10 { padding: 10px; }'
|
||||||
],
|
],
|
||||||
directives: [ALFRESCO_DATATABLE_DIRECTIVES]
|
directives: [ALFRESCO_DATATABLE_DIRECTIVES, CONTEXT_MENU_DIRECTIVES]
|
||||||
})
|
})
|
||||||
class DataTableDemo {
|
class DataTableDemo {
|
||||||
|
|
||||||
@ -135,4 +136,6 @@ class DataTableDemo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bootstrap(DataTableDemo, []);
|
bootstrap(DataTableDemo, [
|
||||||
|
CONTEXT_MENU_PROVIDERS
|
||||||
|
]);
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
|
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api',
|
||||||
'rxjs': 'node_modules/rxjs',
|
'rxjs': 'node_modules/rxjs',
|
||||||
|
|
||||||
|
'ng2-translate': 'node_modules/ng2-translate',
|
||||||
|
'ng2-alfresco-core': 'node_modules/ng2-alfresco-core/dist',
|
||||||
'ng2-alfresco-datatable': 'node_modules/ng2-alfresco-datatable/dist'
|
'ng2-alfresco-datatable': 'node_modules/ng2-alfresco-datatable/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
|
||||||
@ -18,6 +20,8 @@
|
|||||||
'rxjs': { defaultExtension: 'js' },
|
'rxjs': { defaultExtension: 'js' },
|
||||||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' },
|
||||||
|
|
||||||
|
'ng2-translate': { defaultExtension: 'js' },
|
||||||
|
'ng2-alfresco-core': { main: 'index.js', defaultExtension: 'js' },
|
||||||
'ng2-alfresco-datatable': { main: 'index.js', defaultExtension: 'js' }
|
'ng2-alfresco-datatable': { main: 'index.js', defaultExtension: 'js' }
|
||||||
};
|
};
|
||||||
var ngPackageNames = [
|
var ngPackageNames = [
|
||||||
|
@ -192,7 +192,7 @@ class DocumentListDemo implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
login() {
|
login() {
|
||||||
this.authService.login('admin', 'admin').subscribe(
|
this.authService.login('admin', 'admin', ['ECM']).subscribe(
|
||||||
token => {
|
token => {
|
||||||
console.log(token);
|
console.log(token);
|
||||||
this.authenticated = true;
|
this.authenticated = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user