File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export class DemoKutoElement extends HTMLElement {
8
8
private textarea : HTMLTextAreaElement ;
9
9
private article : HTMLElement ;
10
10
private priors ?: Map < string , string > ;
11
+ private buildCount : number = 0 ;
12
+ private statusEl : HTMLElement ;
11
13
12
14
constructor ( ) {
13
15
super ( ) ;
@@ -56,12 +58,17 @@ article > pre {
56
58
font-family: monospace;
57
59
}
58
60
}
61
+
62
+ #status {
63
+ color: red;
64
+ }
59
65
</style>
60
66
61
67
<main>
62
68
<header>
63
69
<textarea></textarea>
64
70
<button autofocus>Split with Kuto</button>
71
+ <div id="status"></div>
65
72
</header>
66
73
<article></article>
67
74
</main>
@@ -78,6 +85,8 @@ article > pre {
78
85
}
79
86
} ) ;
80
87
this . textarea = textarea ;
88
+
89
+ this . statusEl = this . root . getElementById ( 'status' ) ! ;
81
90
}
82
91
83
92
private async run ( source : string ) {
@@ -97,6 +106,9 @@ article > pre {
97
106
const out = e . build ( { pretty : true } ) ;
98
107
console . info ( { liftStats, out } ) ;
99
108
109
+ const localBuild = ++ this . buildCount ;
110
+ this . statusEl . textContent = `Build #${ localBuild } ` ;
111
+
100
112
this . article . textContent = '' ;
101
113
102
114
const render = ( content : string , filename : string , className = '' ) => {
You can’t perform that action at this time.
0 commit comments