remove import typings

This commit is contained in:
Mario Romano
2016-05-23 21:41:57 +01:00
parent e9505b6cd2
commit ede8f861ee
2 changed files with 79 additions and 80 deletions

View File

@@ -1,79 +1,77 @@
///<reference path="../node_modules/angular2/typings/browser.d.ts"/> /*!
* @license
/*! * Copyright 2016 Alfresco Software, Ltd.
* @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.
* Licensed under the Apache License, Version 2.0 (the "License"); * You may obtain a copy of the License at
* 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
* *
* 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,
* Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* distributed under the License is distributed on an "AS IS" BASIS, * See the License for the specific language governing permissions and
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * limitations under the License.
* See the License for the specific language governing permissions and */
* limitations under the License.
*/ import { Component } from 'angular2/core';
import { bootstrap } from 'angular2/platform/browser';
import { Component } from 'angular2/core'; import { HTTP_PROVIDERS } from 'angular2/http';
import { bootstrap } from 'angular2/platform/browser'; import { AlfrescoSettingsService, AlfrescoTranslationService, AlfrescoTranslationLoader } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
import { HTTP_PROVIDERS } from 'angular2/http'; import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/dist/ng2-alfresco-upload';
import { AlfrescoSettingsService, AlfrescoTranslationService, AlfrescoTranslationLoader } from 'ng2-alfresco-core/dist/ng2-alfresco-core';
import { ALFRESCO_ULPOAD_COMPONENTS, UploadService } from 'ng2-alfresco-upload/dist/ng2-alfresco-upload';
@Component({
selector: 'my-app',
@Component({ template: `<alfresco-upload-button [showDialogUpload]="true"
selector: 'my-app', [showUdoNotificationBar]="true"
template: `<alfresco-upload-button [showDialogUpload]="true" [uploadFolders]="false"
[showUdoNotificationBar]="true" [multipleFiles]="false"
[uploadFolders]="false" (onSuccess)="customMethod($event)">
[multipleFiles]="false" </alfresco-upload-button>
(onSuccess)="customMethod($event)">
</alfresco-upload-button> <br><br>
<br><br> <alfresco-upload-button [showDialogUpload]="true"
[showUdoNotificationBar]="true"
<alfresco-upload-button [showDialogUpload]="true" [uploadFolders]="true"
[showUdoNotificationBar]="true" [multipleFiles]="false"
[uploadFolders]="true" (onSuccess)="customMethod($event)">
[multipleFiles]="false" </alfresco-upload-button>
(onSuccess)="customMethod($event)">
</alfresco-upload-button> <br><br>
<br><br> <alfresco-upload-button [showDialogUpload]="true"
[showUdoNotificationBar]="true"
<alfresco-upload-button [showDialogUpload]="true" [uploadFolders]="false"
[showUdoNotificationBar]="true" [multipleFiles]="true"
[uploadFolders]="false" (onSuccess)="customMethod($event)">
[multipleFiles]="true" </alfresco-upload-button>
(onSuccess)="customMethod($event)">
</alfresco-upload-button> <br><br>
<br><br> <alfresco-upload-drag-area [showDialogUpload]="true" (onSuccess)="customMethod($event)" >
<div style="width: 200px; height: 100px; border: 1px solid #888888">
<alfresco-upload-drag-area [showDialogUpload]="true" (onSuccess)="customMethod($event)" > DRAG HERE
<div style="width: 200px; height: 100px; border: 1px solid #888888"> </div>
DRAG HERE </alfresco-upload-drag-area>`,
</div> directives: [ALFRESCO_ULPOAD_COMPONENTS]
</alfresco-upload-drag-area>`, })
directives: [ALFRESCO_ULPOAD_COMPONENTS] export class MyDemoApp {
}) constructor(alfrescoSettingsService: AlfrescoSettingsService) {
export class MyDemoApp { alfrescoSettingsService.host = 'http://192.168.99.100:8080';
constructor(alfrescoSettingsService: AlfrescoSettingsService) { }
alfrescoSettingsService.host = 'http://192.168.99.100:8080';
} public customMethod(event: Object): void {
console.log('File uploaded');
public customMethod(event: Object): void { }
console.log('File uploaded'); }
}
} bootstrap(MyDemoApp, [
HTTP_PROVIDERS,
bootstrap(MyDemoApp, [ AlfrescoTranslationService,
HTTP_PROVIDERS, AlfrescoTranslationLoader,
AlfrescoTranslationService, AlfrescoSettingsService,
AlfrescoTranslationLoader, UploadService
AlfrescoSettingsService, ]);
UploadService
]);

View File

@@ -13,6 +13,7 @@
"exclude": [ "exclude": [
"dist", "dist",
"node_modules", "node_modules",
"typings" "typings/main",
"typings/main.d.ts"
] ]
} }