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
1ac70cae
Commit
1ac70cae
authored
2 years ago
by
Maximilian Giller
Browse files
Options
Downloads
Patches
Plain Diff
Adjusts sidepanel layout
parent
ebf20922
No related branches found
No related tags found
1 merge request
!2
Implemented editor in the react framework
Pipeline
#56902
passed
2 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/editor/js/components/editor.tsx
+18
-18
18 additions, 18 deletions
src/editor/js/components/editor.tsx
src/editor/js/components/nodedetails.css
+5
-0
5 additions, 0 deletions
src/editor/js/components/nodedetails.css
with
23 additions
and
18 deletions
src/editor/js/components/editor.tsx
+
18
−
18
View file @
1ac70cae
...
@@ -484,24 +484,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
...
@@ -484,24 +484,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
onChange
=
{
this
.
onHistoryChange
}
onChange
=
{
this
.
onHistoryChange
}
/>
/>
<
hr
/>
<
hr
/>
<
ul
className
=
"instructions"
>
<
li
>
Click background to create node
</
li
>
<
li
>
SHIFT+Click background to clear selection
</
li
>
<
li
>
Click node to select and edit
</
li
>
<
li
>
CTRL+Click node to delete
</
li
>
<
li
>
CTRL+Click link to delete
</
li
>
<
li
>
SHIFT+Click a second node to connect
</
li
>
{
this
.
state
.
connectOnDrag
?
(
<
li
>
Drag node close to other node to connect
</
li
>
)
:
(
""
)
}
<
li
>
DELETE to delete selected node
</
li
>
<
li
>
ESCAPE to clear selection
</
li
>
</
ul
>
<
hr
/>
<
NodeDetails
<
NodeDetails
selectedNode
=
{
this
.
state
.
selectedNode
}
selectedNode
=
{
this
.
state
.
selectedNode
}
allTypes
=
{
allTypes
=
{
...
@@ -554,6 +536,24 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
...
@@ -554,6 +536,24 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
<
label
htmlFor
=
"connect-on-drag"
>
<
label
htmlFor
=
"connect-on-drag"
>
Connect nodes when dragged
Connect nodes when dragged
</
label
>
</
label
>
<
hr
/>
<
ul
className
=
"instructions"
>
<
li
>
Click background to create node
</
li
>
<
li
>
SHIFT+Click background to clear selection
</
li
>
<
li
>
Click node to select and edit
</
li
>
<
li
>
CTRL+Click node to delete
</
li
>
<
li
>
CTRL+Click link to delete
</
li
>
<
li
>
SHIFT+Click a second node to connect
</
li
>
{
this
.
state
.
connectOnDrag
?
(
<
li
>
Drag node close to other node to connect
</
li
>
)
:
(
""
)
}
<
li
>
DELETE to delete selected node
</
li
>
<
li
>
ESCAPE to clear selection
</
li
>
</
ul
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/editor/js/components/nodedetails.css
+
5
−
0
View file @
1ac70cae
...
@@ -7,3 +7,8 @@ div#ks-editor #nodedetails .preview-image {
...
@@ -7,3 +7,8 @@ div#ks-editor #nodedetails .preview-image {
max-width
:
3rem
;
max-width
:
3rem
;
width
:
auto
;
width
:
auto
;
}
}
div
#ks-editor
#nodedetails
#node-name
{
font-weight
:
bold
;
font-size
:
large
;
}
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