Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
epoc-editor
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
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
learninglab
epoc
epoc-editor
Merge requests
!80
Resolve "Make Sidebar resizable"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Make Sidebar resizable"
263-make-sidebar-resizable
into
main
Overview
0
Commits
5
Pipelines
12
Changes
4
Merged
VIAUD Nathan
requested to merge
263-make-sidebar-resizable
into
main
1 year ago
Overview
0
Commits
5
Pipelines
12
Changes
4
Expand
Closes
#263 (closed)
0
0
Merge request reports
Compare
main
version 9
114a272b
1 year ago
version 8
c944bd10
1 year ago
version 7
9a63cff4
1 year ago
version 6
daeba2a4
1 year ago
version 5
34fc3813
1 year ago
version 4
130cc930
1 year ago
version 3
6b26df42
1 year ago
version 2
5cda95ae
1 year ago
version 1
413b1a9b
1 year ago
main (base)
and
latest version
latest version
05f7545f
5 commits,
1 year ago
version 9
114a272b
5 commits,
1 year ago
version 8
c944bd10
4 commits,
1 year ago
version 7
9a63cff4
3 commits,
1 year ago
version 6
daeba2a4
3 commits,
1 year ago
version 5
34fc3813
2 commits,
1 year ago
version 4
130cc930
3 commits,
1 year ago
version 3
6b26df42
2 commits,
1 year ago
version 2
5cda95ae
1 commit,
1 year ago
version 1
413b1a9b
1 commit,
1 year ago
4 files
+
135
−
56
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/features/forms/FormPanel.vue
+
28
−
52
Options
@@ -84,66 +84,42 @@ function checkIfDisabled(disabledProp: any): boolean {
@@ -84,66 +84,42 @@ function checkIfDisabled(disabledProp: any): boolean {
}
}
}
}
function
handleKeydown
(
event
:
KeyboardEvent
)
{
const
{
key
,
metaKey
,
ctrlKey
}
=
event
;
if
(
metaKey
||
ctrlKey
)
{
if
(
key
===
'
v
'
)
{
event
.
stopPropagation
();
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"panel"
@
keydown=
"handleKeydown"
>
<button
class=
"btn btn-close"
@
click=
"editorStore.closeFormPanel"
><i
class=
"icon-x"
></i></button>
<button
class=
"btn btn-close"
@
click=
"editorStore.closeFormPanel"
><i
class=
"icon-x"
></i></button>
<div
class=
"title"
>
<div
class=
"title"
>
<div
class=
"form-icon"
><i
:class=
"editorStore.formPanel.icon"
></i></div>
<div
class=
"form-icon"
><i
:class=
"editorStore.formPanel.icon"
></i></div>
<h1>
{{
editorStore
.
formPanel
.
name
}}
</h1>
<h1>
{{
editorStore
.
formPanel
.
name
}}
</h1>
</div>
</div>
<div
class=
"buttons"
>
<div
class=
"buttons"
>
<FormButton
<FormButton
v-for=
"button in editorStore.formPanel.buttons"
v-for=
"button in editorStore.formPanel.buttons"
:key=
"button.label"
:key=
"button.label"
:label=
"button.label"
:label=
"button.label"
:icon=
"button.icon"
:icon=
"button.icon"
:disabled=
"checkIfDisabled(button.disabled)"
:disabled=
"checkIfDisabled(button.disabled)"
@
click=
"actionOnForm(button.action)"
@
click=
"actionOnForm(button.action)"
/>
</div>
<div
v-for=
"(field, index) of editorStore.formPanel.fields"
:key=
"index"
class=
"field"
>
<GenericField
:inputs=
"(field.inputs as Input[])"
:field-name=
"field.name"
:field-index=
"index"
:display-field-index=
"editorStore.formPanel.displayFieldIndex"
/>
</div>
<LinkedBadges
:element-id=
"editorStore.openedElementId"
/>
/>
</div>
</div>
<div
v-for=
"(field, index) of editorStore.formPanel.fields"
:key=
"index"
class=
"field"
>
<GenericField
:inputs=
"(field.inputs as Input[])"
:field-name=
"field.name"
:field-index=
"index"
:display-field-index=
"editorStore.formPanel.displayFieldIndex"
/>
</div>
<LinkedBadges
:element-id=
"editorStore.openedElementId"
/>
</
template
>
</
template
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.panel
{
position
:
absolute
;
top
:
80px
;
right
:
0
;
height
:
calc
(
100%
-
80px
);
width
:
27rem
;
background-color
:
white
;
padding
:
0
1rem
;
display
:
flex
;
flex-direction
:
column
;
overflow-y
:
auto
;
}
.title
{
.title
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
Loading