Skip to content
Snippets Groups Projects
Commit 37116cd6 authored by Adam Procter's avatar Adam Procter
Browse files

fixed up some UX stuff

This was some simple fixes that might help with new users
parent 1802f02c
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
<style lang="css" scoped> <style lang="css" scoped>
button { button {
font-size: 1em; font-size: 0.8em;
touch-action: manipulation; touch-action: manipulation;
color: black; color: black;
border: none; border: none;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
:id="nodeid" :id="nodeid"
class="drag-cancel" class="drag-cancel"
ref="nodetext" ref="nodetext"
placeholder="Idea goes here!" placeholder="Idea goes here! (auto saved every keystroke)"
></textarea> ></textarea>
</div> </div>
</div> </div>
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
</div> </div>
<p class="info">*markdown supported</p> <p class="info">*markdown supported</p>
<p class="info">*autosaves</p>
<div class="btn-row"> <div class="btn-row">
<BaseButton buttonClass="danger" @click="deleteFlag()" <BaseButton buttonClass="danger" @click="deleteFlag()"
>Delete</BaseButton >Delete</BaseButton
...@@ -56,7 +57,7 @@ ...@@ -56,7 +57,7 @@
class="read" class="read"
buttonClass="action" buttonClass="action"
@click="readFlag()" @click="readFlag()"
>Edit >Edit Mode
</BaseButton> </BaseButton>
</div> </div>
<div v-else> <div v-else>
...@@ -64,7 +65,7 @@ ...@@ -64,7 +65,7 @@
class="read" class="read"
buttonClass="action" buttonClass="action"
@click="readFlag()" @click="readFlag()"
>Read</BaseButton >Read Mode</BaseButton
> >
</div> </div>
</div> </div>
...@@ -104,7 +105,7 @@ ...@@ -104,7 +105,7 @@
:id="nodeid" :id="nodeid"
class="drag-cancel" class="drag-cancel"
ref="nodetext" ref="nodetext"
placeholder="Idea goes here!" placeholder="Idea goes here! (auto saved every keystroke)"
></textarea> ></textarea>
</div> </div>
</div> </div>
...@@ -125,6 +126,7 @@ ...@@ -125,6 +126,7 @@
</div> </div>
<p class="info">*markdown supported</p> <p class="info">*markdown supported</p>
<p class="info">*autosaves</p>
<div class="btn-row"> <div class="btn-row">
<BaseButton buttonClass="danger" @click="deleteFlag()" <BaseButton buttonClass="danger" @click="deleteFlag()"
>Delete</BaseButton >Delete</BaseButton
...@@ -134,7 +136,7 @@ ...@@ -134,7 +136,7 @@
class="read" class="read"
buttonClass="action" buttonClass="action"
@click="readFlag()" @click="readFlag()"
>Edit >Edit Mode
</BaseButton> </BaseButton>
</div> </div>
<div v-else> <div v-else>
...@@ -142,7 +144,7 @@ ...@@ -142,7 +144,7 @@
class="read" class="read"
buttonClass="action" buttonClass="action"
@click="readFlag()" @click="readFlag()"
>Read</BaseButton >Read Mode</BaseButton
> >
</div> </div>
</div> </div>
......
...@@ -13,10 +13,11 @@ ...@@ -13,10 +13,11 @@
<form> <form>
<div> <div>
<p id="nodeid" :inner-html.prop="nodetext | marked"></p> <p id="nodeid" :inner-html.prop="nodetext | marked"></p>
<div v-if="name == false">
<input <input
type="text" type="text"
v-model.trim="clientid" v-model.trim="clientid"
placeholder="device name" placeholder="name"
autocorrect="off" autocorrect="off"
autocapitalize="none" autocapitalize="none"
ref="objectname" ref="objectname"
...@@ -24,12 +25,17 @@ ...@@ -24,12 +25,17 @@
@focus="editTrue(true)" @focus="editTrue(true)"
@blur="editTrue(false)" @blur="editTrue(false)"
/> />
<div class="btn-row"> <div class="btn-row">
<BaseButton buttonClass="special" @click="setClient()" <BaseButton buttonClass="special" @click="setClient()"
>Store</BaseButton >Store</BaseButton
> >
</div> </div>
</div> </div>
<div v-else>
<h4>Saved</h4>
</div>
</div>
</form> </form>
</vue-draggable-resizable> </vue-draggable-resizable>
...@@ -46,6 +52,7 @@ ...@@ -46,6 +52,7 @@
<form> <form>
<div> <div>
<p id="nodeid" :inner-html.prop="nodetext2 | marked"></p> <p id="nodeid" :inner-html.prop="nodetext2 | marked"></p>
<div v-if="microcosm == false">
<input <input
type="text" type="text"
v-model.trim="localmicrocosm" v-model.trim="localmicrocosm"
...@@ -57,14 +64,19 @@ ...@@ -57,14 +64,19 @@
@focus="editTrue(true)" @focus="editTrue(true)"
@blur="editTrue(false)" @blur="editTrue(false)"
/> />
<div class="btn-row"> <div class="btn-row">
<BaseButton <BaseButton
buttonClass="special" buttonClass="special"
@click="createMicrocosm(), letsGo()" @click="createMicrocosm(), letsGo()"
>Create Microcosm</BaseButton >Create or Rejoin a Microcosm</BaseButton
> >
</div> </div>
</div> </div>
<div v-else>
<h4>Loading...</h4>
</div>
</div>
</form> </form>
</vue-draggable-resizable> </vue-draggable-resizable>
</div> </div>
...@@ -83,8 +95,8 @@ export default { ...@@ -83,8 +95,8 @@ export default {
'## 3. What shall we call you ? 💥 \n First we need to connect this device to your ideas. This name is what allows you to create and edit your nodes and can be anything you like and this name is always anonymous.', '## 3. What shall we call you ? 💥 \n First we need to connect this device to your ideas. This name is what allows you to create and edit your nodes and can be anything you like and this name is always anonymous.',
nodetext2: nodetext2:
'## 5. Start those engines ! 🏎 \n Now you can create your own microcosm to store your ideas and ask people to join you, either just tell them the name of the microcosm or share the alpha.nodenogg.in URL and add the ending; </br><em><b>/microcosm/nameofyourmicrocosm</b></em>', '## 5. Start those engines ! 🏎 \n Now you can create your own microcosm to store your ideas and ask people to join you, either just tell them the name of the microcosm or share the alpha.nodenogg.in URL and add the ending; </br><em><b>/microcosm/nameofyourmicrocosm</b></em>',
// parta: true, name: false,
// partb: false, microcosm: false,
// partc: false, // partc: false,
} }
}, },
...@@ -106,10 +118,12 @@ export default { ...@@ -106,10 +118,12 @@ export default {
createMicrocosm() { createMicrocosm() {
this.$store.dispatch('createMicrocosm', this.localmicrocosm) this.$store.dispatch('createMicrocosm', this.localmicrocosm)
localStorage.setItem('mylastMicrocosm', this.localmicrocosm) localStorage.setItem('mylastMicrocosm', this.localmicrocosm)
this.microcosm = true
}, },
setClient() { setClient() {
this.$store.dispatch('setClient', this.clientid), this.$store.dispatch('setClient', this.clientid),
localStorage.setItem('myNNClient', this.clientid) localStorage.setItem('myNNClient', this.clientid)
this.name = true
}, },
editTrue(e) { editTrue(e) {
......
...@@ -31,16 +31,16 @@ export const move = { ...@@ -31,16 +31,16 @@ export const move = {
shortcut: false, shortcut: false,
} }
export const connect = { // export const connect = {
name: 'connect', // name: 'connect',
view: { // view: {
pan: false, // pan: false,
zoom: false, // zoom: false,
}, // },
icon: 'connection', // icon: 'connection',
cursor: 'crosshair', // cursor: 'crosshair',
shortcut: false, // shortcut: false,
} // }
export const draw = { export const draw = {
name: 'draw', name: 'draw',
......
...@@ -366,7 +366,7 @@ const store = new Vuex.Store({ ...@@ -366,7 +366,7 @@ const store = new Vuex.Store({
x_pos: 50, x_pos: 50,
y_pos: 50, y_pos: 50,
width: 220, width: 220,
height: 275, height: 295,
z_index: 1, z_index: 1,
read_mode: false, read_mode: false,
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment