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

Merge branch 'delete'

parents c1b157e5 b3e3b4b3
Branches shortcuts1
No related tags found
No related merge requests found
# 0.1.7
_15th March 2020_
### Changed
- Delete will now remove the node from view.
# 0.1.6 # 0.1.6
_14th March 2020_ _14th March 2020_
### Changed ### Changed
- Changed to HTML History mode, removing Hash from URL - Changed to HTML History mode, removing Hash from URL.
### Fixed ### Fixed
- Safari reload bug on initial creation of microcosms - Safari reload bug on initial creation of microcosms.
- Pressing Enter allows quick onboard aswell, also no reload - Pressing Enter allows quick onboard aswell, also no reload.
# 0.1.5 # 0.1.5
...@@ -17,9 +25,9 @@ _14th March 2020_ ...@@ -17,9 +25,9 @@ _14th March 2020_
### Changed ### Changed
- Added BaseButton Component to use for all buttons - Added BaseButton Component to use for all buttons.
- removed CanvasLayer. and DeBug.vue no longer necessary as CanvasLayer is being rebuilt and Debug buttons all moved to ControlsLayer.vue - removed CanvasLayer. and DeBug.vue no longer necessary as CanvasLayer is being rebuilt and Debug buttons all moved to ControlsLayer.vue.
- Minor CSS changes as well - Minor CSS changes as well.
# 0.1.4 # 0.1.4
...@@ -27,11 +35,11 @@ _11th March 2020_ ...@@ -27,11 +35,11 @@ _11th March 2020_
### Added ### Added
- Added a SCHEMA.md document to the repo to outline the way to call to the data in PouchDB/ CouchDB - Added a SCHEMA.md document to the repo to outline the way to call to the data in PouchDB/ CouchDB.
### Changed ### Changed
- Changed store/index.js, Home.vue, NodesLayer.vue and OtherNodeslayer.vue to work with new Schema structure - Changed store/index.js, Home.vue, NodesLayer.vue and OtherNodeslayer.vue to work with new Schema structure.
# 0.1.3 # 0.1.3
...@@ -44,7 +52,7 @@ _4th March 2020_ ...@@ -44,7 +52,7 @@ _4th March 2020_
### Changed ### Changed
- Version stated in package.json is pulled into About.vue. Meaning version can now be updated in one place. - Version stated in package.json is pulled into About.vue. Meaning version can now be updated in one place.
- Added link to this CHANGELOG.md on About.vue - Added link to this CHANGELOG.md on About.vue.
### Fixed ### Fixed
......
{ {
"name": "nodenogg.in", "name": "nodenogg.in",
"version": "0.1.6", "version": "0.1.7",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
......
...@@ -29,15 +29,11 @@ ...@@ -29,15 +29,11 @@
</div> </div>
<h3>Reactions</h3> <h3>Reactions</h3>
<div v-for="(emojis, index) in configEmoji" :key="index"> <div v-for="(emojis, index) in configEmoji" :key="index">
<p class="allemoji" v-if="nodeid == emojis.node_id"> <p class="allemoji" v-if="nodeid == emojis.node_id">{{ emojis.emoji_text }}</p>
{{ emojis.emoji_text }}
</p>
</div> </div>
<p>markdown supported</p> <p>markdown supported</p>
<BaseButton buttonClass="danger" @click="deleteFlag()" <BaseButton buttonClass="danger" @click="deleteFlag()">Delete</BaseButton>
>Delete</BaseButton
>
</form> </form>
</vue-draggable-resizable> </vue-draggable-resizable>
</div> </div>
...@@ -54,7 +50,8 @@ export default { ...@@ -54,7 +50,8 @@ export default {
nodeid: String, nodeid: String,
nodetext: String, nodetext: String,
nodewidth: Number, nodewidth: Number,
nodeheight: Number nodeheight: Number,
deleted: Boolean
}, },
data() { data() {
......
...@@ -98,6 +98,7 @@ const store = new Vuex.Store({ ...@@ -98,6 +98,7 @@ const store = new Vuex.Store({
SET_OTHER_NODES(state) { SET_OTHER_NODES(state) {
state.otherNodes = [] state.otherNodes = []
var i var i
var j var j
for (i = 0; i < Object.keys(state.allNodes).length; i++) { for (i = 0; i < Object.keys(state.allNodes).length; i++) {
...@@ -105,19 +106,22 @@ const store = new Vuex.Store({ ...@@ -105,19 +106,22 @@ const store = new Vuex.Store({
state.allNodes[i].id != state.myclient && state.allNodes[i].id != state.myclient &&
state.allNodes[i].id != state.global_pos_name && state.allNodes[i].id != state.global_pos_name &&
state.allNodes[i].id != state.global_emoji_name && state.allNodes[i].id != state.global_emoji_name &&
state.allNodes[i].id != state.global_con_name state.allNodes[i].id != state.global_con_name //&&
//
) { ) {
for ( for (
j = 0; j = 0;
j < Object.keys(state.allNodes[i].doc.nodes).length; j < Object.keys(state.allNodes[i].doc.nodes).length;
j++ j++
) { ) {
const newNode = { if (state.allNodes[i].doc.nodes[j].deleted != true) {
node_id: state.allNodes[i].doc.nodes[j].node_id, const newNode = {
node_text: state.allNodes[i].doc.nodes[j].node_text node_id: state.allNodes[i].doc.nodes[j].node_id,
} node_text: state.allNodes[i].doc.nodes[j].node_text
}
state.otherNodes.push(newNode) state.otherNodes.push(newNode)
}
} }
} }
} }
...@@ -133,7 +137,13 @@ const store = new Vuex.Store({ ...@@ -133,7 +137,13 @@ const store = new Vuex.Store({
pouchdb pouchdb
.get(state.myclient) .get(state.myclient)
.then(function(doc) { .then(function(doc) {
state.myNodes = doc.nodes var i
for (i = 0; i < Object.keys(doc.nodes).length; i++) {
if (doc.nodes[i].deleted == true) {
doc.nodes.splice(i, 1)
}
state.myNodes = doc.nodes
}
}) })
.catch(function(err) { .catch(function(err) {
if (err.status == 404) { if (err.status == 404) {
...@@ -150,13 +160,13 @@ const store = new Vuex.Store({ ...@@ -150,13 +160,13 @@ const store = new Vuex.Store({
nodes: [ nodes: [
{ {
// FIXME: these values are here as GET_ALL_NODES cant hunt a blank // FIXME: these values are here as GET_ALL_NODES cant hunt a blank
// this shouldnt need to be here // this shouldnt need to be here though
node_id: uniqueid, node_id: uniqueid,
node_text: 'Ignore this node' + state.myclient, node_text: 'Ignore this node ' + state.myclient,
node_owner: state.myclient, node_owner: state.myclient,
content_type: 'sheet', content_type: 'sheet',
// TEMP: this hides the first node card as its effectivly auto deleted // NOTE: first node is hidden due to no position
deleted: true, deleted: true,
attachment_name: '' attachment_name: ''
} }
......
...@@ -11,7 +11,10 @@ ...@@ -11,7 +11,10 @@
</p> </p>
<p> <p>
Made by Adam Procter Made by Adam Procter
<em>(+ helpers &amp; supporters)</em> <em
>(+ many helpers &amp;
<a href="https://patreon.com/procterbot">supporters</a>)</em
>
</p> </p>
<ul> <ul>
<li> <li>
...@@ -27,21 +30,15 @@ ...@@ -27,21 +30,15 @@
> >
</h3> </h3>
<h3>known issues</h3> <h3>Considerations</h3>
<ul> <ul>
<li>&nbsp;Data is not yet encrypted.</li> <li>&nbsp;Data is not yet encrypted.</li>
<li>&nbsp;Export is not turned on yet.</li> <li>&nbsp;There is no Export yet.</li>
<li>&nbsp;Delete only flags for deletion (aka it wont disappear yet).</li>
<li>
Some devices seem to have a bug when you first try to create or join an
microcosm, on second attempt it will work allowing device name.
</li>
<li> <li>
Please consider all data as not backed up, data structures and data will Please <strong>UNDERSTAND</strong> all data as not backed up, data
ocasssionaly be deleted or changed remotely which may effect and break structures and data will ocasssionaly be deleted or changed remotely
your local data. which may effect and break your local data.
</li> </li>
</ul> </ul>
<h2>Design-led ethical Edutech</h2> <h2>Design-led ethical Edutech</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment