cleanup: Remove legacy loader
This commit is contained in:
@@ -11,7 +11,6 @@ import { ContenteditableDirective } from './directives/contenteditable';
|
||||
|
||||
import { KeymapAddComponent, KeymapComponent, KeymapHeaderComponent } from './components/keymap';
|
||||
import { LayersComponent } from './components/layers';
|
||||
import { LegacyLoaderComponent } from './components/legacy-loader';
|
||||
import {
|
||||
MacroActionEditorComponent,
|
||||
MacroComponent,
|
||||
@@ -77,7 +76,6 @@ const storeConfig = {
|
||||
MainAppComponent,
|
||||
KeymapComponent,
|
||||
KeymapHeaderComponent,
|
||||
LegacyLoaderComponent,
|
||||
NotificationComponent,
|
||||
SvgIconTextKeyComponent,
|
||||
SvgKeyboardKeyComponent,
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from './legacy-loader.component';
|
||||
export * from './legacy-loader.routes';
|
||||
@@ -1,9 +0,0 @@
|
||||
:host {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
iframe {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
||||
import {ActivatedRoute} from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'legacy',
|
||||
template:
|
||||
`
|
||||
<iframe [src]="safeLink" frameborder="0" scrolling="no"></iframe>
|
||||
`,
|
||||
styles: [require('./legacy-loader.component.scss')]
|
||||
})
|
||||
export class LegacyLoaderComponent {
|
||||
private safeLink: SafeResourceUrl;
|
||||
|
||||
constructor(private domSanitizer: DomSanitizer, private route: ActivatedRoute) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.route.params.subscribe((params: { id: string }) => {
|
||||
if (params.id) {
|
||||
this.safeLink = this.domSanitizer.bypassSecurityTrustResourceUrl(params.id + 'Legacy.html');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
import {LegacyLoaderComponent} from './legacy-loader.component';
|
||||
|
||||
export const legacyRoutes: Routes = [
|
||||
{
|
||||
path: 'legacy/:id',
|
||||
component: LegacyLoaderComponent
|
||||
}
|
||||
];
|
||||
@@ -60,12 +60,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="sidebar__level-1--item">
|
||||
<div class="sidebar__level-1">
|
||||
<i class="fa fa-exclamation-triangle "></i> Legacy
|
||||
<i class="fa fa-chevron-up pull-right"></i>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="menu--bottom">
|
||||
<li class="sidebar__level-1--item">
|
||||
|
||||
@@ -2,12 +2,10 @@ import { ModuleWithProviders } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { keymapRoutes } from '../components/keymap';
|
||||
import { legacyRoutes } from '../components/legacy-loader';
|
||||
import { macroRoutes } from '../components/macro';
|
||||
|
||||
const appRoutes: Routes = [
|
||||
...keymapRoutes,
|
||||
...legacyRoutes,
|
||||
...macroRoutes
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user