This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# CLIENT TODO
|
# CLIENT TODO
|
||||||
|
|
||||||
|
rishi gorang sunto
|
||||||
**************************************************************************************************************************************************************************
|
**************************************************************************************************************************************************************************
|
||||||
CURRENT ROADMAP
|
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 class="ml-1"> <v-icon>fa-code</v-icon></v-btn>
|
||||||
<v-btn depressed tile> <v-icon>fa-square-full</v-icon></v-btn>
|
<v-btn depressed tile> <v-icon>fa-square-full</v-icon></v-btn>
|
||||||
</div>
|
</div>
|
||||||
<v-textarea v-model="value" auto-grow></v-textarea>
|
<v-textarea
|
||||||
|
@input="handleInput"
|
||||||
|
v-model="localVal"
|
||||||
|
auto-grow
|
||||||
|
></v-textarea>
|
||||||
</v-col>
|
</v-col>
|
||||||
<!-- WIKI -->
|
<!-- WIKI -->
|
||||||
<v-col v-if="showWiki()" :cols="currentView == 1 ? 6 : 12">
|
<v-col v-if="showWiki()" :cols="currentView == 1 ? 6 : 12">
|
||||||
@@ -83,6 +87,7 @@ export default {
|
|||||||
created() {},
|
created() {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
localVal: this.value,
|
||||||
currentView: 0
|
currentView: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -90,7 +95,16 @@ export default {
|
|||||||
value: String,
|
value: String,
|
||||||
readOnly: Boolean
|
readOnly: Boolean
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
value(value) {
|
||||||
|
this.localVal = value;
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleInput(val) {
|
||||||
|
this.$emit("input", val);
|
||||||
|
this.localVal = val;
|
||||||
|
},
|
||||||
switchViewIcon() {
|
switchViewIcon() {
|
||||||
//return the icon that indicates what it will change to if you click it
|
//return the icon that indicates what it will change to if you click it
|
||||||
//mirror of switchview below
|
//mirror of switchview below
|
||||||
@@ -153,7 +167,7 @@ export default {
|
|||||||
return this.wikiVisible ? "fa-eye-slash" : "fa-eye";
|
return this.wikiVisible ? "fa-eye-slash" : "fa-eye";
|
||||||
},
|
},
|
||||||
compiledOutput() {
|
compiledOutput() {
|
||||||
return DOMPurify.sanitize(marked(this.value));
|
return DOMPurify.sanitize(marked(this.localVal));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -161,12 +175,6 @@ export default {
|
|||||||
/**
|
/**
|
||||||
todo:
|
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
|
flag as dirty when edited
|
||||||
|
|
||||||
if can't edit and no content then don't show at all
|
if can't edit and no content then don't show at all
|
||||||
|
|||||||
Reference in New Issue
Block a user