This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# CLIENT TODO
|
||||
|
||||
|
||||
rishi gorang sunto
|
||||
**************************************************************************************************************************************************************************
|
||||
CURRENT ROADMAP
|
||||
|
||||
|
||||
@@ -61,7 +61,11 @@
|
||||
<v-btn depressed tile class="ml-1"> <v-icon>fa-code</v-icon></v-btn>
|
||||
<v-btn depressed tile> <v-icon>fa-square-full</v-icon></v-btn>
|
||||
</div>
|
||||
<v-textarea v-model="value" auto-grow></v-textarea>
|
||||
<v-textarea
|
||||
@input="handleInput"
|
||||
v-model="localVal"
|
||||
auto-grow
|
||||
></v-textarea>
|
||||
</v-col>
|
||||
<!-- WIKI -->
|
||||
<v-col v-if="showWiki()" :cols="currentView == 1 ? 6 : 12">
|
||||
@@ -83,6 +87,7 @@ export default {
|
||||
created() {},
|
||||
data() {
|
||||
return {
|
||||
localVal: this.value,
|
||||
currentView: 0
|
||||
};
|
||||
},
|
||||
@@ -90,7 +95,16 @@ export default {
|
||||
value: String,
|
||||
readOnly: Boolean
|
||||
},
|
||||
watch: {
|
||||
value(value) {
|
||||
this.localVal = value;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleInput(val) {
|
||||
this.$emit("input", val);
|
||||
this.localVal = val;
|
||||
},
|
||||
switchViewIcon() {
|
||||
//return the icon that indicates what it will change to if you click it
|
||||
//mirror of switchview below
|
||||
@@ -153,7 +167,7 @@ export default {
|
||||
return this.wikiVisible ? "fa-eye-slash" : "fa-eye";
|
||||
},
|
||||
compiledOutput() {
|
||||
return DOMPurify.sanitize(marked(this.value));
|
||||
return DOMPurify.sanitize(marked(this.localVal));
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -161,12 +175,6 @@ export default {
|
||||
/**
|
||||
todo:
|
||||
|
||||
try to make view without using tab control
|
||||
- user picks view in toolbar from choices of split, design or result view and toggles when they select these choices
|
||||
|
||||
Add "View" translation key
|
||||
Show/hide/edit control
|
||||
eyeball icon like password reveal
|
||||
flag as dirty when edited
|
||||
|
||||
if can't edit and no content then don't show at all
|
||||
|
||||
Reference in New Issue
Block a user