mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
Stub for a redistributable package
This commit is contained in:
parent
5d9f65cd92
commit
78fffbb32e
6
demo-shell-ng2/.gitignore
vendored
6
demo-shell-ng2/.gitignore
vendored
@ -1,8 +1,6 @@
|
||||
typings/
|
||||
node_modules/
|
||||
bower_components/
|
||||
*.js
|
||||
*.js.map
|
||||
app/**/*.js
|
||||
app/**/*.js.map
|
||||
.idea
|
||||
!app/widgets/*.js
|
||||
!app/js/*.js
|
||||
|
@ -1,13 +1,17 @@
|
||||
import {Component} from "angular2/core";
|
||||
import {HelloWorld} from 'ng2-alfresco/components';
|
||||
|
||||
@Component({
|
||||
selector: 'page2-view',
|
||||
template: `
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h2>Page 2</h2>
|
||||
<hello-world></hello-world>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
`,
|
||||
directives: [HelloWorld]
|
||||
})
|
||||
export class Page2View {
|
||||
|
||||
|
@ -32,7 +32,8 @@
|
||||
<script>
|
||||
System.config({
|
||||
map: {
|
||||
'ng2-uploader': 'node_modules/ng2-uploader'
|
||||
'ng2-uploader': 'node_modules/ng2-uploader',
|
||||
'ng2-alfresco': 'node_modules/ng2-alfresco'
|
||||
},
|
||||
packages: {
|
||||
app: {
|
||||
@ -42,6 +43,10 @@
|
||||
'ng2-uploader': {
|
||||
format: 'register',
|
||||
defaultExtension: 'js'
|
||||
},
|
||||
'ng2-alfresco': {
|
||||
format: 'register',
|
||||
defaultExtension: 'js'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
8
demo-shell-ng2/ng2-alfresco/.gitignore
vendored
Normal file
8
demo-shell-ng2/ng2-alfresco/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
jspm_packages
|
||||
.idea
|
||||
lib
|
||||
build
|
||||
src/**/**.js
|
||||
src/**/*.js.map
|
2
demo-shell-ng2/ng2-alfresco/.npmignore
Normal file
2
demo-shell-ng2/ng2-alfresco/.npmignore
Normal file
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/typings
|
7
demo-shell-ng2/ng2-alfresco/components.d.ts
vendored
Normal file
7
demo-shell-ng2/ng2-alfresco/components.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import { HelloWorld } from './src/HelloWorld';
|
||||
export * from './src/HelloWorld';
|
||||
|
||||
declare var _default: {
|
||||
directives: (typeof HelloWorld)[];
|
||||
};
|
||||
export default _default;
|
25
demo-shell-ng2/ng2-alfresco/components.js
Normal file
25
demo-shell-ng2/ng2-alfresco/components.js
Normal file
@ -0,0 +1,25 @@
|
||||
System.register(['./src/HelloWorld'], function(exports_1, context_1) {
|
||||
"use strict";
|
||||
var __moduleName = context_1 && context_1.id;
|
||||
var HelloWorld_1;
|
||||
function exportStar_1(m) {
|
||||
var exports = {};
|
||||
for(var n in m) {
|
||||
if (n !== "default") exports[n] = m[n];
|
||||
}
|
||||
exports_1(exports);
|
||||
}
|
||||
return {
|
||||
setters:[
|
||||
function (HelloWorld_1_1) {
|
||||
HelloWorld_1 = HelloWorld_1_1;
|
||||
exportStar_1(HelloWorld_1_1);
|
||||
}],
|
||||
execute: function() {
|
||||
exports_1("default",{
|
||||
directives: [HelloWorld_1.HelloWorld]
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=components.js.map
|
1
demo-shell-ng2/ng2-alfresco/components.js.map
Normal file
1
demo-shell-ng2/ng2-alfresco/components.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"components.js","sourceRoot":"","sources":["components.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;YAGA,oBAAe;gBACX,UAAU,EAAE,CAAC,uBAAU,CAAC;aAC3B,EAAA"}
|
7
demo-shell-ng2/ng2-alfresco/components.ts
Normal file
7
demo-shell-ng2/ng2-alfresco/components.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { HelloWorld } from './src/HelloWorld';
|
||||
export * from './src/HelloWorld';
|
||||
|
||||
export default {
|
||||
directives: [HelloWorld]
|
||||
}
|
||||
|
4
demo-shell-ng2/ng2-alfresco/package.json
Normal file
4
demo-shell-ng2/ng2-alfresco/package.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "ng2-alfresco",
|
||||
"version": "0.1.0"
|
||||
}
|
24
demo-shell-ng2/ng2-alfresco/src/HelloWorld.ts
Normal file
24
demo-shell-ng2/ng2-alfresco/src/HelloWorld.ts
Normal file
@ -0,0 +1,24 @@
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -18,6 +18,7 @@
|
||||
"es6-shim": "^0.35.0",
|
||||
"font-awesome": "^4.5.0",
|
||||
"jquery": "^2.2.2",
|
||||
"ng2-alfresco": "file:ng2-alfresco",
|
||||
"ng2-uploader": "denisvuyka/ng2-uploader",
|
||||
"reflect-metadata": "0.1.2",
|
||||
"rxjs": "5.0.0-beta.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user