diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 9e65ebf6..6a2f8423 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -245,6 +245,11 @@ todo: would like to see who I'm logged in as at all times 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 + - server should send the list of attachments on an object with the object as a read only property + - This way they can be displayed in the UI without another hit to the server and used for attaching wiki images etc etc + - Server needs route to get attached files from direct url without headers being set + - dl token I guess in url? Appended to image urls? + - is there a way at the client to intercept urls and change them to include the dl token? - ability to rename file on upload https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3546 - stuff https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3484 - handle initially missing files on import (they might fuck up the export from v7, ghost files idea see case in AyaNova regarding datadump) diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index 26cd4bee..5dde5868 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -163,7 +163,11 @@ export default { "Table", "InsertLink", "LinkUrl", - "LinkText" + "LinkText", + "InsertImage", + "ImageUrl", + "ImageDescription", + "File" ], //////////////////////////////////////////////////////// diff --git a/ayanova/src/components/wiki-control.vue b/ayanova/src/components/wiki-control.vue index a9b98286..6dbb6619 100644 --- a/ayanova/src/components/wiki-control.vue +++ b/ayanova/src/components/wiki-control.vue @@ -202,7 +202,6 @@ fa-image - + {{ $ay.t("InsertImage") }} +
+ + URL + {{ $ay.t("File") }} -
- - +
+ +
+
+ FILE SELECT HERE FILE UPLOAD HERE + +
+
- @@ -719,7 +733,7 @@ export default { e.preventDefault(); this.imageMenu = false; this.getSelectedRange(); - this.linkText = this.getSelectedText(); + this.imageText = this.getSelectedText(); this.menuX = e.clientX; this.menuY = e.clientY; this.$nextTick(() => {