first commit document viewer scaffold

This commit is contained in:
Eugenio Romano
2016-05-17 15:55:34 +01:00
parent b37eaa1bc9
commit 5a4bfb5ea8
18 changed files with 726 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
/*!
* @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 {bootstrap} from 'angular2/platform/browser';
import {Ng2AlfrescoViewerComponent} from '../../src/ng-2-alfresco-viewer.component';
bootstrap(Ng2AlfrescoViewerComponent);

View File

@@ -0,0 +1,33 @@
<html>
<head>
<title>ng-2-alfresco-viewer Angular 2</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 1. Load libraries -->
<!-- IE required polyfills, in this exact order -->
<script src="../node_modules/es6-shim/es6-shim.min.js"></script>
<script src="../node_modules/systemjs/dist/system-polyfills.js"></script>
<script src="../node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
<script src="../node_modules/angular2/bundles/angular2-polyfills.js"></script>
<script src="../node_modules/systemjs/dist/system.src.js"></script>
<script src="../node_modules/rxjs/bundles/Rx.js"></script>
<script src="../node_modules/angular2/bundles/angular2.dev.js"></script>
<script>
// #2. Configure systemjs to use the .js extension
// for imports from the app folder
System.config({
packages: {
'app': {defaultExtension: 'js'},
'../src': {defaultExtension: 'js'}
}
});
// #3. Import the spec file explicitly
System.import('app/main')
.then(null, console.error.bind(console));
</script>
</head>
<!-- 3. Display the application -->
<body>
<ng-2-alfresco-viewer>Loading...</ng-2-alfresco-viewer>
</body>
</html>