From a920c581df1a1d27b417e95994e754b85a4ff94c Mon Sep 17 00:00:00 2001 From: davidcanonieto Date: Fri, 29 Jun 2018 11:19:23 +0200 Subject: [PATCH] [ADF-3149] New Report Issue page created (#3452) * [ADF-3149] New Report Issue page created * [ADF-3149] Added missing comma --- demo-shell/src/app/app.module.ts | 9 +++++-- demo-shell/src/app/app.routes.ts | 5 ++++ .../report-issue/report-issue.component.html | 9 +++++++ .../report-issue/report-issue.component.scss | 24 +++++++++++++++++ .../report-issue/report-issue.component.ts | 26 +++++++++++++++++++ lib/core/i18n/en.json | 2 +- 6 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 demo-shell/src/app/components/report-issue/report-issue.component.html create mode 100644 demo-shell/src/app/components/report-issue/report-issue.component.scss create mode 100644 demo-shell/src/app/components/report-issue/report-issue.component.ts diff --git a/demo-shell/src/app/app.module.ts b/demo-shell/src/app/app.module.ts index aaf3e5e302..186a552d28 100644 --- a/demo-shell/src/app/app.module.ts +++ b/demo-shell/src/app/app.module.ts @@ -54,6 +54,7 @@ import { PreviewService } from './services/preview.service'; import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component'; import { ContentNodeSelectorComponent } from './components/content-node-selector/content-node-selector.component'; import { NotificationsComponent } from './components/notifications/notifications.component'; +import { ReportIssueComponent } from './components/report-issue/report-issue.component'; @NgModule({ imports: [ @@ -108,7 +109,8 @@ import { NotificationsComponent } from './components/notifications/notifications BlobPreviewComponent, BreadcrumbDemoComponent, NotificationsComponent, - ContentNodeSelectorComponent + ContentNodeSelectorComponent, + ReportIssueComponent ], providers: [ { provide: AppConfigService, useClass: DebugAppConfigService }, // not use this service in production @@ -130,7 +132,10 @@ import { NotificationsComponent } from './components/notifications/notifications }, PreviewService ], - entryComponents: [VersionManagerDialogAdapterComponent, MetadataDialogAdapterComponent], + entryComponents: [ + VersionManagerDialogAdapterComponent, + MetadataDialogAdapterComponent + ], bootstrap: [AppComponent] }) export class AppModule {} diff --git a/demo-shell/src/app/app.routes.ts b/demo-shell/src/app/app.routes.ts index 92933c670c..bbf9f89188 100644 --- a/demo-shell/src/app/app.routes.ts +++ b/demo-shell/src/app/app.routes.ts @@ -51,6 +51,7 @@ import { BlobPreviewComponent } from './components/blob-preview/blob-preview.com import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component'; import { NotificationsComponent } from './components/notifications/notifications.component'; import { ContentNodeSelectorComponent } from './components/content-node-selector/content-node-selector.component'; +import { ReportIssueComponent } from './components/report-issue/report-issue.component'; export const appRoutes: Routes = [ { path: 'login', component: LoginComponent }, @@ -221,6 +222,10 @@ export const appRoutes: Routes = [ component: OverlayViewerComponent, canActivate: [AuthGuardEcm] }, + { + path: 'report-issue', + component: ReportIssueComponent + }, { path: 'datatable-lazy', loadChildren: 'app/components/lazy-loading/lazy-loading.module#LazyLoadingModule' diff --git a/demo-shell/src/app/components/report-issue/report-issue.component.html b/demo-shell/src/app/components/report-issue/report-issue.component.html new file mode 100644 index 0000000000..244ab876f7 --- /dev/null +++ b/demo-shell/src/app/components/report-issue/report-issue.component.html @@ -0,0 +1,9 @@ +
+

Report Issue

+
+ + + +
+ +
\ No newline at end of file diff --git a/demo-shell/src/app/components/report-issue/report-issue.component.scss b/demo-shell/src/app/components/report-issue/report-issue.component.scss new file mode 100644 index 0000000000..c411604a6a --- /dev/null +++ b/demo-shell/src/app/components/report-issue/report-issue.component.scss @@ -0,0 +1,24 @@ +.adf-report-issue { + margin: 50px 0; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + + &-form { + + width: 50%; + min-width: 250px; + margin-bottom: 50px; + + & mat-form-field { + width: 100%; + } + + &-textarea { + background-color: white; + width: 100%; + height: 250px; + } + } +} \ No newline at end of file diff --git a/demo-shell/src/app/components/report-issue/report-issue.component.ts b/demo-shell/src/app/components/report-issue/report-issue.component.ts new file mode 100644 index 0000000000..5ed1436682 --- /dev/null +++ b/demo-shell/src/app/components/report-issue/report-issue.component.ts @@ -0,0 +1,26 @@ +/*! + * @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 { Component } from '@angular/core'; + +@Component({ + templateUrl: './report-issue.component.html', + styleUrls: [`./report-issue.component.scss`], +}) +export class ReportIssueComponent { + +} diff --git a/lib/core/i18n/en.json b/lib/core/i18n/en.json index 5abf2c1a00..39c8f4f622 100644 --- a/lib/core/i18n/en.json +++ b/lib/core/i18n/en.json @@ -307,7 +307,7 @@ "DESCRIPTION": "You're not allowed access to this resource on the server.", "SECONDARY_BUTTON": { "TEXT": "Report issue", - "URL": "" + "URL": "report-issue" }, "RETURN_BUTTON": { "TEXT": "Back to home",