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
e980b486
Commit
e980b486
authored
2 years ago
by
Maximilian Giller
Browse files
Options
Downloads
Patches
Plain Diff
Changed format of instructions
parent
fe44af7d
No related branches found
No related tags found
1 merge request
!2
Implemented editor in the react framework
Pipeline
#56740
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.css
+2
-2
2 additions, 2 deletions
src/editor/js/components/editor.css
src/editor/js/components/editor.tsx
+7
-30
7 additions, 30 deletions
src/editor/js/components/editor.tsx
with
9 additions
and
32 deletions
src/editor/js/components/editor.css
+
2
−
2
View file @
e980b486
...
...
@@ -18,9 +18,9 @@ div#ks-editor #sidepanel > * {
margin
:
0.25rem
;
}
div
#ks-editor
#sidepanel
.instruction
{
div
#ks-editor
#sidepanel
ul
.instruction
s
li
{
border-radius
:
4px
;
background-color
:
#
EEE
;
background-color
:
#
eee
;
padding-left
:
3px
;
padding-right
:
2px
;
}
...
...
This diff is collapsed.
Click to expand it.
src/editor/js/components/editor.tsx
+
7
−
30
View file @
e980b486
...
...
@@ -387,36 +387,13 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
onChange
=
{
this
.
onHistoryChange
}
/>
<
hr
/>
<
ul
>
<
li
>
<
div
className
=
"instruction"
>
Click background to create node
</
div
>
</
li
>
<
li
>
<
div
className
=
"instruction"
>
Click node to select and edit
</
div
>
</
li
>
<
li
>
<
div
className
=
"instruction"
>
CTRL+Click node to delete
</
div
>
</
li
>
<
li
>
<
div
className
=
"instruction"
>
Click link to delete
</
div
>
</
li
>
<
li
>
<
div
className
=
"instruction"
>
SHIFT+Click a second node to connect
</
div
>
or
<
div
className
=
"instruction"
>
Drag node close to other node to connect
</
div
>
</
li
>
<
ul
className
=
"instructions"
>
<
li
>
Click background to create node
</
li
>
<
li
>
Click node to select and edit
</
li
>
<
li
>
CTRL+Click node to delete
</
li
>
<
li
>
Click link to delete
</
li
>
<
li
>
SHIFT+Click a second node to connect
</
li
>
<
li
>
Drag node close to other node to connect
</
li
>
</
ul
>
<
hr
/>
<
NodeDetails
...
...
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