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
b5251ec2
Commit
b5251ec2
authored
4 years ago
by
Adam Procter
Browse files
Options
Downloads
Patches
Plain Diff
tweaks
the device name has to be in place to identify what you want to edit
parent
1614707b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/router/index.js
+1
-1
1 addition, 1 deletion
app/src/router/index.js
app/src/views/Home.vue
+14
-1
14 additions, 1 deletion
app/src/views/Home.vue
with
15 additions
and
2 deletions
app/src/router/index.js
+
1
−
1
View file @
b5251ec2
...
@@ -21,7 +21,7 @@ const routes = [
...
@@ -21,7 +21,7 @@ const routes = [
},
},
// dynamic segement `:microcosm` is added to the path
// dynamic segement `:microcosm` is added to the path
{
{
path
:
'
/
:device/
microcosm/:microcosm
'
,
path
:
'
/microcosm/:microcosm
'
,
component
:
Home
component
:
Home
}
}
// TODO: Nodecard ID in URL
// TODO: Nodecard ID in URL
...
...
This diff is collapsed.
Click to expand it.
app/src/views/Home.vue
+
14
−
1
View file @
b5251ec2
<
template
>
<
template
>
<div
class=
"home"
>
<div
class=
"home"
>
<div
v-if=
"clientset"
>
<div
v-if=
"clientset"
>
<p>
microcosm/
{{
myMicrocosm
}}
</p>
<p>
microcosm/
<b>
{{
myMicrocosm
}}
</b>
| client
<b>
{{
myClient
}}
</b>
</p>
<OtherNodeslayer
<OtherNodeslayer
v-for=
"value in otherNodes"
v-for=
"value in otherNodes"
v-bind:key=
"value.node_id"
v-bind:key=
"value.node_id"
...
@@ -32,6 +37,8 @@ import ControlsLayer from '@/components/ControlsLayer.vue'
...
@@ -32,6 +37,8 @@ import ControlsLayer from '@/components/ControlsLayer.vue'
import
{
mapState
}
from
'
vuex
'
import
{
mapState
}
from
'
vuex
'
import
{
shortcutsMixin
}
from
'
@/components/mixins/shortcutsMixin.js
'
import
{
shortcutsMixin
}
from
'
@/components/mixins/shortcutsMixin.js
'
// import Router from '@/router'
// console.log(Router.currentRoute.params.microcosm)
export
default
{
export
default
{
name
:
'
Home
'
,
name
:
'
Home
'
,
...
@@ -41,6 +48,11 @@ export default {
...
@@ -41,6 +48,11 @@ export default {
if
(
typeof
window
!==
'
undefined
'
)
{
if
(
typeof
window
!==
'
undefined
'
)
{
document
.
addEventListener
(
'
keydown
'
,
this
.
handleKeyPress
)
document
.
addEventListener
(
'
keydown
'
,
this
.
handleKeyPress
)
}
}
if
(
localStorage
.
myNNClient
==
null
)
{
// visiting from URL get them to name client
// localStorage.setItem('myNNClient', 'unknown client')
// console.log(localStorage.myNNClient)
}
},
},
beforeDestroy
()
{
beforeDestroy
()
{
if
(
typeof
window
!==
'
undefined
'
)
{
if
(
typeof
window
!==
'
undefined
'
)
{
...
@@ -63,6 +75,7 @@ export default {
...
@@ -63,6 +75,7 @@ export default {
},
},
computed
:
mapState
({
computed
:
mapState
({
myMicrocosm
:
state
=>
state
.
microcosm
,
myMicrocosm
:
state
=>
state
.
microcosm
,
myClient
:
state
=>
state
.
myclient
,
myNodes
:
state
=>
state
.
myNodes
,
myNodes
:
state
=>
state
.
myNodes
,
otherNodes
:
state
=>
state
.
otherNodes
,
otherNodes
:
state
=>
state
.
otherNodes
,
shortcutstate
:
state
=>
state
.
shortcutstate
shortcutstate
:
state
=>
state
.
shortcutstate
...
...
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