mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
document-list cleanup
- removed HelloWorld from the package - renamed namespace
This commit is contained in:
@@ -6,7 +6,7 @@ import {AuthRouterOutlet} from './components/AuthRouterOutlet';
|
|||||||
import {HomeView} from './components/home.view';
|
import {HomeView} from './components/home.view';
|
||||||
import {Page1View} from './components/page1.view';
|
import {Page1View} from './components/page1.view';
|
||||||
import {Page2View} from './components/page2.view';
|
import {Page2View} from './components/page2.view';
|
||||||
import {AlfrescoService} from 'ng2-alfresco-documentlist/component';
|
import {AlfrescoService} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-app',
|
selector: 'my-app',
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import {Component} from 'angular2/core';
|
import {Component} from 'angular2/core';
|
||||||
import {DocumentList} from 'ng2-alfresco-documentlist/component';
|
import {DocumentList} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'home-view',
|
selector: 'home-view',
|
||||||
|
@@ -3,7 +3,7 @@ import {AppComponent} from './app.component';
|
|||||||
import {ROUTER_PROVIDERS} from 'angular2/router';
|
import {ROUTER_PROVIDERS} from 'angular2/router';
|
||||||
import {HTTP_PROVIDERS} from 'angular2/http';
|
import {HTTP_PROVIDERS} from 'angular2/http';
|
||||||
import {Authentication} from './services/authentication';
|
import {Authentication} from './services/authentication';
|
||||||
import {ALFRESCO_PROVIDERS} from 'ng2-alfresco-documentlist/component';
|
import {ALFRESCO_PROVIDERS} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
|
||||||
|
|
||||||
bootstrap(AppComponent, [
|
bootstrap(AppComponent, [
|
||||||
ROUTER_PROVIDERS,
|
ROUTER_PROVIDERS,
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"component.js","sourceRoot":"","sources":["component.ts"],"names":[],"mappings":";;;;QAaa,mBAAmB,EACnB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;YAN/B,oBAAe;gBACX,UAAU,EAAE,CAAC,uBAAU,EAAE,sCAAY,CAAC;gBACtC,SAAS,EAAE,CAAC,kCAAe,CAAC;aAC/B,EAAA;YAEY,iCAAA,mBAAmB,GAAU,CAAC,uBAAU,EAAE,sCAAY,CAAC,CAAA,CAAC;YACxD,gCAAA,kBAAkB,GAAU,CAAC,kCAAe,CAAC,CAAA,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|||||||
import { HelloWorld } from './src/HelloWorld';
|
|
||||||
import { DocumentList } from './src/document-list.component';
|
import { DocumentList } from './src/document-list.component';
|
||||||
import { AlfrescoService } from './src/alfresco.service';
|
import { AlfrescoService } from './src/alfresco.service';
|
||||||
export * from './src/HelloWorld';
|
|
||||||
export * from './src/document-list.component';
|
export * from './src/document-list.component';
|
||||||
export * from './src/alfresco.service';
|
export * from './src/alfresco.service';
|
||||||
declare var _default: {
|
declare var _default: {
|
||||||
directives: (typeof HelloWorld | typeof DocumentList)[];
|
directives: typeof DocumentList[];
|
||||||
providers: typeof AlfrescoService[];
|
providers: typeof AlfrescoService[];
|
||||||
};
|
};
|
||||||
export default _default;
|
export default _default;
|
@@ -1,7 +1,7 @@
|
|||||||
System.register(['./src/HelloWorld', './src/document-list.component', './src/alfresco.service'], function(exports_1, context_1) {
|
System.register(['./src/document-list.component', './src/alfresco.service'], function(exports_1, context_1) {
|
||||||
"use strict";
|
"use strict";
|
||||||
var __moduleName = context_1 && context_1.id;
|
var __moduleName = context_1 && context_1.id;
|
||||||
var HelloWorld_1, document_list_component_1, alfresco_service_1;
|
var document_list_component_1, alfresco_service_1;
|
||||||
var ALFRESCO_DIRECTIVES, ALFRESCO_PROVIDERS;
|
var ALFRESCO_DIRECTIVES, ALFRESCO_PROVIDERS;
|
||||||
var exportedNames_1 = {
|
var exportedNames_1 = {
|
||||||
'ALFRESCO_DIRECTIVES': true,
|
'ALFRESCO_DIRECTIVES': true,
|
||||||
@@ -16,10 +16,6 @@ System.register(['./src/HelloWorld', './src/document-list.component', './src/alf
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
setters:[
|
setters:[
|
||||||
function (HelloWorld_1_1) {
|
|
||||||
HelloWorld_1 = HelloWorld_1_1;
|
|
||||||
exportStar_1(HelloWorld_1_1);
|
|
||||||
},
|
|
||||||
function (document_list_component_1_1) {
|
function (document_list_component_1_1) {
|
||||||
document_list_component_1 = document_list_component_1_1;
|
document_list_component_1 = document_list_component_1_1;
|
||||||
exportStar_1(document_list_component_1_1);
|
exportStar_1(document_list_component_1_1);
|
||||||
@@ -30,12 +26,12 @@ System.register(['./src/HelloWorld', './src/document-list.component', './src/alf
|
|||||||
}],
|
}],
|
||||||
execute: function() {
|
execute: function() {
|
||||||
exports_1("default",{
|
exports_1("default",{
|
||||||
directives: [HelloWorld_1.HelloWorld, document_list_component_1.DocumentList],
|
directives: [document_list_component_1.DocumentList],
|
||||||
providers: [alfresco_service_1.AlfrescoService]
|
providers: [alfresco_service_1.AlfrescoService]
|
||||||
});
|
});
|
||||||
exports_1("ALFRESCO_DIRECTIVES", ALFRESCO_DIRECTIVES = [HelloWorld_1.HelloWorld, document_list_component_1.DocumentList]);
|
exports_1("ALFRESCO_DIRECTIVES", ALFRESCO_DIRECTIVES = [document_list_component_1.DocumentList]);
|
||||||
exports_1("ALFRESCO_PROVIDERS", ALFRESCO_PROVIDERS = [alfresco_service_1.AlfrescoService]);
|
exports_1("ALFRESCO_PROVIDERS", ALFRESCO_PROVIDERS = [alfresco_service_1.AlfrescoService]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//# sourceMappingURL=component.js.map
|
//# sourceMappingURL=ng2-alfresco-documentlist.js.map
|
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"ng2-alfresco-documentlist.js","sourceRoot":"","sources":["ng2-alfresco-documentlist.ts"],"names":[],"mappings":";;;;QAWa,mBAAmB,EACnB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;YAN/B,oBAAe;gBACX,UAAU,EAAE,CAAC,sCAAY,CAAC;gBAC1B,SAAS,EAAE,CAAC,kCAAe,CAAC;aAC/B,EAAA;YAEY,iCAAA,mBAAmB,GAAU,CAAC,sCAAY,CAAC,CAAA,CAAC;YAC5C,gCAAA,kBAAkB,GAAU,CAAC,kCAAe,CAAC,CAAA,CAAC"}
|
@@ -1,15 +1,13 @@
|
|||||||
import {HelloWorld} from './src/HelloWorld';
|
|
||||||
import {DocumentList} from './src/document-list.component';
|
import {DocumentList} from './src/document-list.component';
|
||||||
import {AlfrescoService} from './src/alfresco.service';
|
import {AlfrescoService} from './src/alfresco.service';
|
||||||
|
|
||||||
export * from './src/HelloWorld';
|
|
||||||
export * from './src/document-list.component';
|
export * from './src/document-list.component';
|
||||||
export * from './src/alfresco.service';
|
export * from './src/alfresco.service';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
directives: [HelloWorld, DocumentList],
|
directives: [DocumentList],
|
||||||
providers: [AlfrescoService]
|
providers: [AlfrescoService]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ALFRESCO_DIRECTIVES: [any] = [HelloWorld, DocumentList];
|
export const ALFRESCO_DIRECTIVES: [any] = [DocumentList];
|
||||||
export const ALFRESCO_PROVIDERS: [any] = [AlfrescoService];
|
export const ALFRESCO_PROVIDERS: [any] = [AlfrescoService];
|
@@ -1,4 +0,0 @@
|
|||||||
export declare class HelloWorld {
|
|
||||||
message: string;
|
|
||||||
onClick(): void;
|
|
||||||
}
|
|
@@ -1,43 +0,0 @@
|
|||||||
System.register(['angular2/core'], function(exports_1, context_1) {
|
|
||||||
"use strict";
|
|
||||||
var __moduleName = context_1 && context_1.id;
|
|
||||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
||||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
||||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
||||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
||||||
};
|
|
||||||
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
||||||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
||||||
};
|
|
||||||
var core_1;
|
|
||||||
var HelloWorld;
|
|
||||||
return {
|
|
||||||
setters:[
|
|
||||||
function (core_1_1) {
|
|
||||||
core_1 = core_1_1;
|
|
||||||
}],
|
|
||||||
execute: function() {
|
|
||||||
HelloWorld = (function () {
|
|
||||||
function HelloWorld() {
|
|
||||||
this.message = "Click Me ...";
|
|
||||||
}
|
|
||||||
HelloWorld.prototype.onClick = function () {
|
|
||||||
this.message = "Hello World!";
|
|
||||||
console.log(this.message);
|
|
||||||
};
|
|
||||||
HelloWorld = __decorate([
|
|
||||||
core_1.Component({
|
|
||||||
selector: 'hello-world',
|
|
||||||
styles: ["\n h1 {\n color: blue;\n }\n "],
|
|
||||||
template: "<div>\n <h1 (click)=\"onClick()\">{{message}}</h1>\n </div>"
|
|
||||||
}),
|
|
||||||
__metadata('design:paramtypes', [])
|
|
||||||
], HelloWorld);
|
|
||||||
return HelloWorld;
|
|
||||||
}());
|
|
||||||
exports_1("HelloWorld", HelloWorld);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
//# sourceMappingURL=HelloWorld.js.map
|
|
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"HelloWorld.js","sourceRoot":"","sources":["HelloWorld.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;YAaA;gBAAA;oBAEI,YAAO,GAAG,cAAc,CAAC;gBAQ7B,CAAC;gBANG,4BAAO,GAAP;oBACI,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC;oBAC9B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;gBAE9B,CAAC;gBAnBL;oBAAC,gBAAS,CAAC;wBACP,QAAQ,EAAE,aAAa;wBACvB,MAAM,EAAE,CAAC,0DAIR,CAAC;wBACF,QAAQ,EAAE,4FAEQ;qBACrB,CAAC;;8BAAA;gBAWF,iBAAC;YAAD,CAAC,AAVD,IAUC;YAVD,mCAUC,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|||||||
import {Component} from 'angular2/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'hello-world',
|
|
||||||
styles: [`
|
|
||||||
h1 {
|
|
||||||
color: blue;
|
|
||||||
}
|
|
||||||
`],
|
|
||||||
template: `<div>
|
|
||||||
<h1 (click)="onClick()">{{message}}</h1>
|
|
||||||
</div>`
|
|
||||||
})
|
|
||||||
export class HelloWorld {
|
|
||||||
|
|
||||||
message = "Click Me ...";
|
|
||||||
|
|
||||||
onClick() {
|
|
||||||
this.message = "Hello World!";
|
|
||||||
console.log(this.message);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Reference in New Issue
Block a user