diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4de06280..5b69762e 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -224,6 +224,7 @@ RESEARCH todo: BUG Something fucked with history? When I click on a widget's history button in admin user history view it shows two created record with differing timestamps - note, it doesn't seem to do it on the most recent widgets, but only on the first few created for some reason?! +todo: QUOTE icon being used is fa-edit, but, that is much more useful in the UI for edit buttons on things, so change quote icon to something else todo: ATTACHMENTS - ability to rename file on upload https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3546 diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index 2c1037be..9362e939 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -3,7 +3,16 @@ Wiki +
+ + {{ visibleIcon() }} + +
+ + fa-edit ({}), + data() { + return { + wikiVisible: false, + designerVisible: false + }; + }, props: { - value: String + value: String, + canEdit: Boolean }, methods: { + toggleEditMode() {}, + visibleIcon() { + return this.wikiVisible ? "fa-eye-slash" : "fa-eye"; + }, compiledOutput() { return DOMPurify.sanitize(marked(this.value)); } @@ -29,13 +48,21 @@ export default { /** todo: -figure out why parts are fucked (blockquote) -remove extra spacing on sides in xs mode (gutters maybe on column or row?) + Show/hide/edit control eyeball icon like password reveal + +if can't edit and no content then don't show at all + - does it need to have a column wrapper then and remove it from the parent form? + + baseurl setting for local images: https://marked.js.org/#/USING_ADVANCED.md#options + +Clean up the example markdown, go through and use mine and sprinkle in the marked sample stuff where it differs + + */ diff --git a/ayanova/src/views/widget.vue b/ayanova/src/views/widget.vue index 2f98d27c..1506e6dc 100644 --- a/ayanova/src/views/widget.vue +++ b/ayanova/src/views/widget.vue @@ -205,7 +205,11 @@ > -