Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nodenoggin vue3 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
nodenoggin vue3 duplicate
Commits
13f1b24b
Commit
13f1b24b
authored
3 years ago
by
Adam Procter
Browse files
Options
Downloads
Patches
Plain Diff
added markdown support
small changed to CSS for myNodes and OtherNodes vue files as well (removed scoped)
parent
a44ba5d2
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+5
-1
5 additions, 1 deletion
CHANGELOG.md
package.json
+1
-1
1 addition, 1 deletion
package.json
src/components/MyNodes.vue
+41
-7
41 additions, 7 deletions
src/components/MyNodes.vue
src/components/OtherNodes.vue
+41
-4
41 additions, 4 deletions
src/components/OtherNodes.vue
with
88 additions
and
13 deletions
CHANGELOG.md
+
5
−
1
View file @
13f1b24b
...
@@ -2,9 +2,13 @@
...
@@ -2,9 +2,13 @@
_3rd September 2021_
_3rd September 2021_
## Added
-
markdown support added for all nodes
## Fixed
## Fixed
-
nodes are now correctly colored in the Cards view
-
nodes are now correctly colored in the Cards view
as well as Collect view
# 0.2.2
# 0.2.2
...
...
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
13f1b24b
{
{
"name"
:
"nodenogg.in"
,
"name"
:
"nodenogg.in"
,
"version"
:
"0.2.
2
"
,
"version"
:
"0.2.
3
"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"serve"
:
"vue-cli-service serve"
,
...
...
This diff is collapsed.
Click to expand it.
src/components/MyNodes.vue
+
41
−
7
View file @
13f1b24b
...
@@ -45,9 +45,11 @@
...
@@ -45,9 +45,11 @@
<button
@
click.prevent=
"discardNode(nodes.node_id)"
>
Discard
</button>
<button
@
click.prevent=
"discardNode(nodes.node_id)"
>
Discard
</button>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<p
class=
"readmode"
:id=
"nodes.node_id"
>
<p
{{
nodes
.
node_text
}}
class=
"readmode"
</p>
:id=
"nodes.node_id"
v-html=
"marked(nodes.node_text)"
></p>
<button
@
click.prevent=
"toggleMode(nodes.node_id)"
>
Edit
</button>
<button
@
click.prevent=
"toggleMode(nodes.node_id)"
>
Edit
</button>
</
template
>
</
template
>
</form>
</form>
...
@@ -87,9 +89,6 @@ export default {
...
@@ -87,9 +89,6 @@ export default {
...
mapState
({
...
mapState
({
myNodes
:
(
state
)
=>
state
.
myNodes
,
myNodes
:
(
state
)
=>
state
.
myNodes
,
}),
}),
markdowntoHTML
()
{
return
marked
(
this
.
markdown
)
},
},
},
watch
:
{
watch
:
{
...
@@ -111,6 +110,7 @@ export default {
...
@@ -111,6 +110,7 @@ export default {
},
},
methods
:
{
methods
:
{
marked
,
loadData
()
{
loadData
()
{
var
nodesFiltered
=
this
.
myNodes
.
myNodes
.
filter
(
var
nodesFiltered
=
this
.
myNodes
.
myNodes
.
filter
(
(
nodes
)
=>
nodes
.
node_deleted
==
false
(
nodes
)
=>
nodes
.
node_deleted
==
false
...
@@ -155,7 +155,37 @@ export default {
...
@@ -155,7 +155,37 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
>
h1
{
margin
:
0em
;
padding
:
0em
;
font-size
:
4.2em
;
font-family
:
houschka-rounded
,
sans-serif
;
font-weight
:
700
;
font-style
:
normal
;
color
:
black
;
}
h2
{
margin
:
0em
;
padding
:
0em
;
font-size
:
3.2em
;
font-family
:
houschka-rounded
,
sans-serif
;
font-weight
:
700
;
font-style
:
normal
;
color
:
black
;
}
h3
{
margin
:
0em
;
padding
:
0em
;
font-size
:
2.2em
;
font-family
:
houschka-rounded
,
sans-serif
;
font-weight
:
700
;
font-style
:
normal
;
color
:
black
;
}
.nodes
{
.nodes
{
width
:
95%
;
width
:
95%
;
border
:
2px
dashed
black
;
border
:
2px
dashed
black
;
...
@@ -172,4 +202,8 @@ textarea {
...
@@ -172,4 +202,8 @@ textarea {
width
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
img
{
width
:
45%
;
}
</
style
>
</
style
>
This diff is collapsed.
Click to expand it.
src/components/OtherNodes.vue
+
41
−
4
View file @
13f1b24b
...
@@ -7,15 +7,18 @@
...
@@ -7,15 +7,18 @@
backgroundColor: nodes.node_color,
backgroundColor: nodes.node_color,
}"
}"
>
>
<p
class=
"readmode"
:id=
"nodes.node_id"
>
<p
{{
nodes
.
node_text
}}
class=
"readmode"
</p>
:id=
"nodes.node_id"
v-html=
"marked(nodes.node_text)"
></p>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
// @ is an alias to /src
// @ is an alias to /src
import
{
mapState
}
from
'
vuex
'
import
{
mapState
}
from
'
vuex
'
import
marked
from
'
marked
'
export
default
{
export
default
{
name
:
'
OtherNodes
'
,
name
:
'
OtherNodes
'
,
...
@@ -36,15 +39,49 @@ export default {
...
@@ -36,15 +39,49 @@ export default {
loadData
()
{
loadData
()
{
this
.
$store
.
dispatch
(
'
setOthernodes
'
)
this
.
$store
.
dispatch
(
'
setOthernodes
'
)
},
},
marked
,
},
},
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
>
h1
{
margin
:
0em
;
padding
:
0em
;
font-size
:
4.2em
;
font-family
:
houschka-rounded
,
sans-serif
;
font-weight
:
700
;
font-style
:
normal
;
color
:
black
;
}
h2
{
margin
:
0em
;
padding
:
0em
;
font-size
:
3.2em
;
font-family
:
houschka-rounded
,
sans-serif
;
font-weight
:
700
;
font-style
:
normal
;
color
:
black
;
}
h3
{
margin
:
0em
;
padding
:
0em
;
font-size
:
2.2em
;
font-family
:
houschka-rounded
,
sans-serif
;
font-weight
:
700
;
font-style
:
normal
;
color
:
black
;
}
.nodes
{
.nodes
{
width
:
95%
;
width
:
95%
;
background-color
:
rgb
(
155
,
194
,
216
);
background-color
:
rgb
(
155
,
194
,
216
);
margin-top
:
1em
;
margin-top
:
1em
;
margin-left
:
0.5em
;
margin-left
:
0.5em
;
}
}
img
{
width
:
45%
;
}
</
style
>
</
style
>
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