Fix image import

This commit is contained in:
Igor Kulikov 2020-08-14 15:41:28 +03:00
parent 3615597851
commit 367bae32bb
7 changed files with 19 additions and 24 deletions

View File

@ -30,7 +30,6 @@ import { MatSidenav } from '@angular/material/sidenav';
import { AuthState } from '@core/auth/auth.models';
import { WINDOW } from '@core/services/window.service';
import { instanceOfSearchableComponent, ISearchableComponent } from '@home/models/searchable-component.models';
import logo from '../../../assets/logo_title_white.svg';
const screenfull = _screenfull as _screenfull.Screenfull;
@ -51,7 +50,7 @@ export class HomeComponent extends PageComponent implements AfterViewInit, OnIni
sidenavMode: 'over' | 'push' | 'side' = 'side';
sidenavOpened = true;
logo = logo;
logo = require('../../../assets/logo_title_white.svg').default;
@ViewChild('sidenav')
sidenav: MatSidenav;

View File

@ -17,7 +17,7 @@
-->
<h2 mat-dialog-title>Coming soon!</h2>
<div mat-dialog-content>
<img [src]="comingSoon"/>
<h1>COMING SOON!</h1>
</div>
<div mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">
<button mat-button color="primary" [mat-dialog-close]="true" cdkFocusInitial>Ok</button>

View File

@ -16,7 +16,6 @@
import { Component } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog';
import comingSoon from '@assets/coming-soon.jpg';
@Component({
selector: 'tb-todo-dialog',
@ -24,9 +23,6 @@ import comingSoon from '@assets/coming-soon.jpg';
styleUrls: ['./todo-dialog.component.scss']
})
export class TodoDialogComponent {
comingSoon = comingSoon;
constructor(public dialogRef: MatDialogRef<TodoDialogComponent>) {
}
}

View File

@ -1,3 +1,19 @@
///
/// Copyright © 2016-2020 The Thingsboard Authors
///
/// 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.
///
export function enumerable(value: boolean) {
return (
target: any,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 KiB

View File

@ -1,14 +0,0 @@
declare module '*.png' {
const value: any;
export = value;
}
declare module '*.jpg' {
const value: any;
export = value;
}
declare module '*.svg' {
const value: any;
export = value;
}

View File

@ -21,8 +21,7 @@
"src/typings/jquery.jstree.typings.d.ts",
"src/typings/split.js.typings.d.ts",
"src/typings/add-marker.d.ts",
"src/typings/leaflet-editable.d.ts",
"src/typings/imageloader.typings.d.ts"
"src/typings/leaflet-editable.d.ts"
],
"paths": {
"@app/*": ["src/app/*"],
@ -33,7 +32,6 @@
"@modules/*": ["src/app/modules/*"],
"@shared/*": ["src/app/shared/*"],
"@home/*": ["src/app/modules/home/*"],
"@assets/*": ["src/assets/*"],
"jszip": [
"node_modules/jszip/dist/jszip.min.js"
]