mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
rework modals and more
This commit is contained in:
committed by
Aiden McClelland
parent
b16ef3c621
commit
01c6b91c52
15
ui/src/app/modals/markdown/markdown.module.ts
Normal file
15
ui/src/app/modals/markdown/markdown.module.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { NgModule } from '@angular/core'
|
||||
import { CommonModule } from '@angular/common'
|
||||
import { IonicModule } from '@ionic/angular'
|
||||
import { MarkdownPage } from './markdown.page'
|
||||
import { SharingModule } from 'src/app/modules/sharing.module'
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
IonicModule,
|
||||
SharingModule,
|
||||
],
|
||||
declarations: [MarkdownPage],
|
||||
})
|
||||
export class MarkdownPageModule { }
|
||||
3
ui/src/app/modals/markdown/markdown.page.html
Normal file
3
ui/src/app/modals/markdown/markdown.page.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<ion-content>
|
||||
<div [innerHTML]="content | markdown"></div>
|
||||
</ion-content>
|
||||
0
ui/src/app/modals/markdown/markdown.page.scss
Normal file
0
ui/src/app/modals/markdown/markdown.page.scss
Normal file
19
ui/src/app/modals/markdown/markdown.page.ts
Normal file
19
ui/src/app/modals/markdown/markdown.page.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Component, Input } from '@angular/core'
|
||||
import { ModalController } from '@ionic/angular'
|
||||
|
||||
@Component({
|
||||
selector: 'markdown',
|
||||
templateUrl: './markdown.page.html',
|
||||
styleUrls: ['./markdown.page.scss'],
|
||||
})
|
||||
export class MarkdownPage {
|
||||
@Input() content: string
|
||||
|
||||
constructor (
|
||||
private readonly modalCtrl: ModalController,
|
||||
) { }
|
||||
|
||||
async dismiss () {
|
||||
return this.modalCtrl.dismiss(true)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user