Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Papermerge.Js
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
Jonas Leder
Papermerge.Js
Commits
e63f516b
Commit
e63f516b
authored
3 years ago
by
Eugen Ciur
Browse files
Options
Downloads
Patches
Plain Diff
update code documentation
parent
31b25a40
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/dual_link_to/index.js
+28
-22
28 additions, 22 deletions
app/components/dual_link_to/index.js
with
28 additions
and
22 deletions
app/components/dual_link_to/index.js
+
28
−
22
View file @
e63f516b
...
...
@@ -7,11 +7,13 @@ export default class DualLinkToComponent extends Component {
Arguments:
@node - main node, which is visually located on left panel
@extranode - extra node, visually on right panel
@extradoc - extra document on the right
@hint = can be either "left" "right". Indicates in which panel
is current <DualLinkTo /> located at this very moment.
@node = can be a folder or a document
@hint = can be either "left" or "right". It indicates where @node is
positioned i.e. in which panel is current <DualLinkTo /> located at
this very moment.
@extranode - extra node, visually on opposite panel
@extradoc - extra document on the opposite panel
URL has one of following forms:
...
...
@@ -24,21 +26,25 @@ export default class DualLinkToComponent extends Component {
Dual panel models:
/nodes/<node_id>?extranode_id=<extranode_id> - opens dual panel mode. On left side
commander is opened with <node_id> as root folder/node. On right panel
there will be opened a commander with <extranode_id> as root
/nodes/<node_id>?extradoc_id=<extradoc_id> - opens dual panel mode. On left side
commander is opened with <node_id> as root folder/node. On right panel
there will be opened a viewer with <extradoc_id> document opened
/document/<doc_id>?extranode_id=<extranode_id> - opens dual panel mode. On left side
document viewer is opened with <doc_id> as root document. On right panel
there will be opened a commander with <extranode_id> as root node
/document/<doc_id>?extradoc_id=<extradoc_id> - opens dual panel mode. On left side
document viewer is opened with <doc_id> as root document. On right panel
there will be opened a viewer with <doc_id> as documented.
/nodes/<node_id>?extra_id=<extra_id>&extra_type=folder - opens dual
panel mode. On left side commander is opened with <node_id> as root
folder/node. On right panel there will be opened a commander with
<extra_id> as root folder.
/nodes/<node_id>?extra_id=<extradoc_id>&extra_type=doc - opens dual
panel mode. On left side commander is opened with <node_id> as root
folder. On right panel there will be opened a viewer with
<extradoc_id> document opened.
/document/<doc_id>?extra_id=<extranode_id>&extra_type=folder - opens dual
panel mode. On left side document viewer is opened with <doc_id> as
root document. On right panel there will be opened a commander with
<extranode_id> as root folder.
/document/<doc_id>?extra_id=<extradoc_id>&extra_type=doc - opens dual
panel mode. On left side document viewer is opened with <doc_id> as
root document. On right panel there will be opened a viewer with
<extradoc_id> as document.
*/
get
route
()
{
...
...
@@ -63,8 +69,8 @@ export default class DualLinkToComponent extends Component {
}
// hint == 'right'
if
(
extranode
&&
extranode
.
get
(
'
nodeType
'
)
===
'
document
'
)
{
return
'
authenticated.
document
'
;
if
(
extranode
)
{
return
'
authenticated.
nodes
'
;
}
if
(
extradoc
)
{
...
...
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