This commit is contained in:
2020-04-25 18:30:25 +00:00
parent 804cffe707
commit baec93c439
2 changed files with 321 additions and 330 deletions

View File

@@ -70,16 +70,16 @@ CURRENT TODOs
todo: Fix the above, then retest on all devices locally to ensure it's working properly todo: Fix the above, then retest on all devices locally to ensure it's working properly
todo: Picture input in attachments todo: attachment reveal button looks weird below wiki reveal button when read-write
https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/2080 - open read only see if it looks better if they're teh same and make it so with wiki or
https://w3c.github.io/html-media-capture/#examples - make the attach like the wiki
- Buttons would be more compact and share the title area so maybe that's teh way to go
todo: have a look at ordering the file list in attachments todo: have a look at ordering the file list in attachments
- people might want to see them in order or not. - people might want to see them in order or not.
- when doing an image the ipad just calls it image.jpg, could be more than one how to find in the list - when doing an image the ipad just calls it image.jpg, could be more than one how to find in the list
(or they should just make a note maybe) (or they should just make a note maybe)
todo: rotate photos? how to handle? (user figure out kind of thing, like always have the camera tilted x way or something?)
todo: User options input photo? todo: User options input photo?
- and show the photo on the list menu and in internal message etc? - and show the photo on the list menu and in internal message etc?
@@ -91,10 +91,7 @@ todo: have a look at this: devices and sensors specs
https://www.w3.org/wiki/DAS/Implementations https://www.w3.org/wiki/DAS/Implementations
https://wpt.fyi/results/?label=experimental&label=master&aligned https://wpt.fyi/results/?label=experimental&label=master&aligned
todo: attachment reveal button looks weird below wiki reveal button when read-write
- open read only see if it looks better if they're teh same and make it so with wiki or
- make the attach like the wiki
- Buttons would be more compact and share the title area so maybe that's teh way to go
todo: Look at attachment saving code on server, should it zip? todo: Look at attachment saving code on server, should it zip?

View File

@@ -1,24 +1,13 @@
<template> <template>
<div class="mt-6"> <div class="mt-6">
<template v-if="readonly">
<div> <div>
<v-btn depressed tile @click="switchView()"> <v-btn depressed tile @click="toggleReveal">
Wiki<v-icon right>{{ switchViewIcon() }}</v-icon></v-btn Wiki<v-icon v-text="reveal ? 'fa-eye-slash' : 'fa-eye'" right></v-icon
> ></v-btn>
</div> </div>
</template> <template v-if="reveal">
<template v-else> <template v-if="!readonly">
<span class="v-label v-label--active theme--light">
Wiki
</span>
<div class="mt-2"> <div class="mt-2">
<v-btn
text
:outlined="currentView == view.HIDDEN_VIEW"
@click="currentView = view.HIDDEN_VIEW"
>
<v-icon>fa-eye-slash</v-icon>
</v-btn>
<v-btn <v-btn
text text
:outlined="currentView == view.WIKI_VIEW" :outlined="currentView == view.WIKI_VIEW"
@@ -322,6 +311,7 @@
</v-col> </v-col>
</v-row> </v-row>
</v-sheet> </v-sheet>
</template>
</div> </div>
</template> </template>
<script> <script>
@@ -356,6 +346,7 @@ export default {
return { return {
localVal: this.value, localVal: this.value,
currentView: 0, currentView: 0,
reveal: false,
selection: { selection: {
start: 0, start: 0,
end: 0, end: 0,
@@ -415,6 +406,9 @@ export default {
// this.editAreaHeight = window.innerHeight / 2; // this.editAreaHeight = window.innerHeight / 2;
this.editAreaHeight = window.innerHeight * 0.8; this.editAreaHeight = window.innerHeight * 0.8;
}, },
toggleReveal() {
this.reveal = !this.reveal;
},
editStyle() { editStyle() {
if (this.currentView == this.view.SPLIT_VIEW) { if (this.currentView == this.view.SPLIT_VIEW) {
return "height: " + this.editAreaHeight + "px;"; return "height: " + this.editAreaHeight + "px;";