Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nodenogg-duplicate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam Procter
nodenogg-duplicate
Commits
ea75100e
Commit
ea75100e
authored
4 years ago
by
Adam Procter
Browse files
Options
Downloads
Patches
Plain Diff
edits
parent
aa085bf9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/src/components/ConnectionsLayer.vue
+1
-1
1 addition, 1 deletion
app/src/components/ConnectionsLayer.vue
app/src/store/index.js
+19
-20
19 additions, 20 deletions
app/src/store/index.js
app/src/views/Home.vue
+1
-0
1 addition, 0 deletions
app/src/views/Home.vue
with
21 additions
and
21 deletions
app/src/components/ConnectionsLayer.vue
+
1
−
1
View file @
ea75100e
...
...
@@ -67,7 +67,7 @@ export default {
this
.
drawPixi
()
},
}
// TODO: This is a sample of drawing lines with mouse with PIXI
// Opt-in to interactivity
// graphics.interactive = true
...
...
This diff is collapsed.
Click to expand it.
app/src/store/index.js
+
19
−
20
View file @
ea75100e
...
...
@@ -169,25 +169,24 @@ const store = new Vuex.Store({
})
.
catch
(
function
(
err
)
{
if
(
err
.
status
==
404
)
{
var
uniqueid
=
Math
.
random
().
toString
(
36
).
substring
(
2
,
15
)
+
Math
.
random
().
toString
(
36
).
substring
(
2
,
15
)
//
var uniqueid =
//
Math.random().toString(36).substring(2, 15) +
//
Math.random().toString(36).substring(2, 15)
return
pouchdb
.
put
({
_id
:
state
.
myclient
,
_attachments
:
{},
nodes
:
[
{
// FIXME: these values are here as GET_ALL_NODES cant hunt a blank
// this shouldnt need to be here though
node_id
:
uniqueid
,
node_text
:
'
Ignore this node
'
+
state
.
myclient
,
node_owner
:
state
.
myclient
,
content_type
:
'
sheet
'
,
// NOTE: first node is hidden due to no position
deleted
:
true
,
attachment_name
:
''
,
},
// {
// // FIXME: these values are here as GET_ALL_NODES cant hunt a blank
// // this shouldnt need to be here though
// node_id: uniqueid,
// node_text: 'Ignore this node ' + state.myclient,
// node_owner: state.myclient,
// content_type: 'sheet',
// // NOTE: the first node is hidden due to a position not being created
// deleted: true,
// attachment_name: '',
// },
],
})
}
...
...
@@ -237,14 +236,13 @@ const store = new Vuex.Store({
connect_id
:
connectid
,
start_id
:
e
.
fromnode
,
end_id
:
e
.
tonode
,
path
:
e
.
path
,
color
:
e
.
color
,
line_dash
:
e
.
linedash
,
line_width
:
e
.
linewidth
,
x_pos_start
:
e
.
xposstart
,
y_pos_start
:
e
.
yposstart
,
x_pos_end
:
e
.
xposend
,
y_pos_end
:
e
.
yposend
,
})
// from db | in app
// connect_id | connectID
// start_id | startID
...
...
@@ -513,6 +511,7 @@ const store = new Vuex.Store({
.
catch
(
function
(
err
)
{
console
.
log
(
err
)
if
(
err
.
status
==
404
)
{
console
.
log
(
'
ok
'
)
return
pouchdb
.
put
({
_id
:
state
.
global_emoji_name
,
emojis
:
[],
...
...
This diff is collapsed.
Click to expand it.
app/src/views/Home.vue
+
1
−
0
View file @
ea75100e
...
...
@@ -69,6 +69,7 @@
@
clientAdded=
"clientAdded()"
@
editTrue=
"(e) => editTrue(e)"
/>
<ConnectionsLayer
/>
</div>
<ScribbleLayer
v-bind:drawready=
"drawready"
></ScribbleLayer>
</PanZoomContainer>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment