Skip to content

Commit 6ce3c36

Browse files
committed
Add a message block above the editor for later.
Not currently used, but certainly will be handy.
1 parent 2ddc44c commit 6ce3c36

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

playground/next/editor.bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39937,6 +39937,7 @@ ${O$2.repeat(r.depth)}}`:r.close="}";break}case f$4.TAG:e+=String(i),e+=a(f$4.PO
3993739937
},
3993839938
remoteDocURL: '',
3993939939
remoteSideDocURL: '',
39940+
message: {type: '', text: ''},
3994039941
parseError: '',
3994139942
inputTab: 'json-ld',
3994239943
outputTab: 'expanded',

playground/next/editor.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ window.app = createApp({
318318
},
319319
remoteDocURL: '',
320320
remoteSideDocURL: '',
321+
message: {type: '', text: ''},
321322
parseError: '',
322323
inputTab: 'json-ld',
323324
outputTab: 'expanded',

playground/next/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ <h2 class="ui massive header">JSON-LD Playground</h2>
113113
<!-- main editor area -->
114114
<div class="ui one column compact grid container" :class="[editorColumns]">
115115
<div class="column" :class="{ 'sixteen wide': editorColumns == '' }">
116+
<div class="ui icon message" v-show="message.text" :class="message.type">
117+
<i class="icon" :class="{
118+
'info circle': message.type == 'info',
119+
'check circle': message.type == 'success',
120+
'times circle': message.type == 'error',
121+
'exclamation triangle': message.type == 'warning'
122+
}"></i>
123+
<div class="content">
124+
<div class="header" v-text="message.text"></div>
125+
</div>
126+
</div>
116127
<div class="ui top attached tabular menu">
117128
<div :class="{ active: inputTab == 'json-ld' }" class="item" @click="inputTab = 'json-ld'"><i class="pencil alternate icon"></i> JSON-LD Input</div>
118129
<div :class="{ active: inputTab == 'options' }" class="item" @click="inputTab = 'options'"><i class="wrench icon"></i> Options</div>

0 commit comments

Comments
 (0)