Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Knowledge Space WP Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
alg
Knowledge Space WP Plugin
Commits
4460c4ec
Commit
4460c4ec
authored
3 years ago
by
Harm Kube
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning up some unused code
parent
bf58b9c8
No related branches found
No related tags found
No related merge requests found
Pipeline
#53287
passed
3 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
display/display.css
+0
-14
0 additions, 14 deletions
display/display.css
display/overlays/neighbors.js
+6
-4
6 additions, 4 deletions
display/overlays/neighbors.js
with
6 additions
and
18 deletions
display/display.css
+
0
−
14
View file @
4460c4ec
...
@@ -309,17 +309,3 @@
...
@@ -309,17 +309,3 @@
flex-direction
:
row
;
flex-direction
:
row
;
overflow-x
:
auto
;
overflow-x
:
auto
;
}
}
.category-div
{
padding
:
0
;
background-color
:
#5d5a5a
;
color
:
#444
;
cursor
:
pointer
;
width
:
5%
;
height
:
100%
;
border
:
none
;
outline
:
none
;
float
:
left
;
display
:
flex
;
flex-direction
:
column
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
display/overlays/neighbors.js
+
6
−
4
View file @
4460c4ec
...
@@ -37,7 +37,6 @@ class NodeNeighborOverlay {
...
@@ -37,7 +37,6 @@ class NodeNeighborOverlay {
);
);
coll
.
className
=
"
collapsible
"
;
coll
.
className
=
"
collapsible
"
;
coll
.
innerText
=
"
Verwandte Inhalte
"
;
coll
.
innerText
=
"
Verwandte Inhalte
"
;
// TODO: Scrolling wheel for content
var
contentTabs
=
Helpers
.
createDiv
(
var
contentTabs
=
Helpers
.
createDiv
(
"
neighbor-content-tabs
"
,
"
neighbor-content-tabs
"
,
bottomContainerDiv
bottomContainerDiv
...
@@ -54,7 +53,6 @@ class NodeNeighborOverlay {
...
@@ -54,7 +53,6 @@ class NodeNeighborOverlay {
this
.
type
===
"
link
"
this
.
type
===
"
link
"
?
this
.
graph
.
edgeColors
?
this
.
graph
.
edgeColors
:
this
.
graph
.
nodeColors
;
:
this
.
graph
.
nodeColors
;
// TODO: Colors only fill little part of div
for
(
const
[
cls
,
color
]
of
Object
.
entries
(
colors
))
{
for
(
const
[
cls
,
color
]
of
Object
.
entries
(
colors
))
{
...
@@ -64,7 +62,6 @@ class NodeNeighborOverlay {
...
@@ -64,7 +62,6 @@ class NodeNeighborOverlay {
);
);
collTab
.
className
=
"
collapsible
"
;
collTab
.
className
=
"
collapsible
"
;
collTab
.
innerText
=
cls
;
collTab
.
innerText
=
cls
;
//collTab.style.backgroundColor = color;
collTab
.
style
.
borderLeftColor
=
color
;
collTab
.
style
.
borderLeftColor
=
color
;
collTab
.
style
.
borderLeftWidth
=
"
12px
"
;
collTab
.
style
.
borderLeftWidth
=
"
12px
"
;
collTab
.
type
=
cls
;
collTab
.
type
=
cls
;
...
@@ -88,7 +85,8 @@ class NodeNeighborOverlay {
...
@@ -88,7 +85,8 @@ class NodeNeighborOverlay {
}
}
/**
/**
* Clears the images from all tab content pages.
* Clears the images from all tab content pages and makes the object
* invisible.
*/
*/
clearTabContentPages
()
{
clearTabContentPages
()
{
for
(
const
page
of
Object
.
values
(
this
.
tabContentPages
))
{
for
(
const
page
of
Object
.
values
(
this
.
tabContentPages
))
{
...
@@ -151,6 +149,10 @@ class NodeNeighborOverlay {
...
@@ -151,6 +149,10 @@ class NodeNeighborOverlay {
this
.
hideContentPages
();
this
.
hideContentPages
();
}
}
/**
* Hides all the categories of a node that are not represented by a link
* to another neighbor.
*/
hideContentPages
()
{
hideContentPages
()
{
for
(
const
page
of
Object
.
values
(
this
.
tabContentPages
))
{
for
(
const
page
of
Object
.
values
(
this
.
tabContentPages
))
{
if
(
!
page
.
hasChildNodes
())
{
if
(
!
page
.
hasChildNodes
())
{
...
...
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