Commit 73126f9b authored by Adam Procter's avatar Adam Procter

--no commit message

--no commit message
parent d113cc9d
Pipeline #128 failed with stages
in 1 minute and 6 seconds
# Coding Guidelines
Don’t show off. Its ok if your code is verbose the easier to read, the _better_.
All code must fit into the GNU Affero General Public License. Basic rule is free software all the way.
## Problem solving
## Language
Vuejs
## Code organization
Use comments, in fact over use comments.
Feel free to retro add comments after a batch of code
## Framework
## User Interface
Now this is the exciting part, node noggin has been build to make this the most extensable part of the code base.
The main view once connected to any instance is home.vue which conatins logo.vue & current-instance.vue. current-instance houses two components knowledge-object.vue (the data) and user-interface.vue which is the main interface for said data. You can change the complete behaviour of this by building a new user-interface.vue component.
## Version Control
We use feature branches for everything. Never work from master, check out master and branch. Once work is completed request a merge, however at this stage its your job to resolve conflicts.
This diff is collapsed.
......@@ -5,7 +5,7 @@
<knowledgeobject v-for="(knowledgeobject, index) in allobjects" :key="index" :object="knowledgeobject"/>
<!-- <spatialui v-for="spatialui in allobjects" :key="spatialui.id" :object="spatialui"></spatialui> -->
<spatialui></spatialui>
<userinterface></userinterface>
</div>
......@@ -15,7 +15,7 @@
<script>
import knowledgeobject from './knowledge-object.vue'
import spatialui from './spatial-ui.vue'
import userinterface from './user-interface.vue'
// helper to access data from vuex
import { mapActions, mapGetters } from 'vuex'
......@@ -23,7 +23,7 @@ export default {
name: 'current-instance',
components: {
knowledgeobject,
spatialui
userinterface
},
props: {
allobjects: Array
......
......@@ -8,7 +8,7 @@
<script>
export default {
name: 'logo',
name: 'instance-logo',
props: {
}
......
<template>
<div id="spatialui">
<div id="user-interface">
<!-- the SVG.js stuff appears here -->
</div>
</template>
......@@ -12,14 +12,14 @@ import draggy from 'svg.draggy.js'
import connectable from 'svg.connectable.js'
export default {
name: 'spatial-ui',
name: 'user-interface',
props: {
object: Object
},
mounted: function() {
// SVG UI next
var draw = SVG('spatialui').size(600, 300)
var draw = SVG('user-interface').size(600, 300)
var links = draw.group()
var markers = draw.group()
......
......@@ -9,7 +9,7 @@
<script>
import logo from "@/components/logo.vue";
import logo from "@/components/instance-logo.vue";
export default {
......
......@@ -27,7 +27,7 @@ var localdb = new pouchdb('accounts');
// server admin has to create DB first and CORS allows specific domains.
var db = new pouchdb('https://nn.adamprocter.co.uk/knowledge');
import logo from "@/components/logo.vue";
import logo from "@/components/instance-logo.vue";
export default {
......
......@@ -17,7 +17,7 @@ var grabbed = Array
var allobjects = Array
// @ is an alias to /src
import instance from "@/components/current-instance.vue";
import logo from "@/components/logo.vue";
import logo from "@/components/instance-logo.vue";
export default {
......
......@@ -31,7 +31,7 @@
<script>
import logo from "@/components/logo.vue";
import logo from "@/components/instance-logo.vue";
export default {
......
......@@ -14,7 +14,7 @@
</template>
<script>
import logo from "@/components/logo.vue";
import logo from "@/components/instance-logo.vue";
import signin from "@/components/sign-in.vue";
import register from "@/components/register-account.vue";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment