Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
5e8ef6b7
Commit
5e8ef6b7
authored
4 years ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
chore: use colon instead of undrsc to esc sl
parent
c30aaf93
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy/bkwdCompat/urlState.js
+1
-1
1 addition, 1 deletion
deploy/bkwdCompat/urlState.js
src/routerModule/util.ts
+2
-2
2 additions, 2 deletions
src/routerModule/util.ts
with
3 additions
and
3 deletions
deploy/bkwdCompat/urlState.js
+
1
−
1
View file @
5e8ef6b7
...
...
@@ -106,7 +106,7 @@ const templateMap = {
'
Allen Mouse
'
:
allenObj
}
const
encodeId
=
id
=>
id
.
replace
(
/
\/
/g
,
'
_
'
)
const
encodeId
=
id
=>
id
.
replace
(
/
\/
/g
,
'
:
'
)
module
.
exports
=
query
=>
{
const
{
...
...
This diff is collapsed.
Click to expand it.
src/routerModule/util.ts
+
2
−
2
View file @
5e8ef6b7
...
...
@@ -16,8 +16,8 @@ export const PARSE_ERROR = {
PARCELLATION_NOT_UPDATED
:
'
PARCELLATION_NOT_UPDATED
'
,
}
const
encodeId
=
(
id
:
string
)
=>
id
&&
id
.
replace
(
/
\/
/g
,
'
_
'
)
const
decodeId
=
(
codedId
:
string
)
=>
codedId
&&
codedId
.
replace
(
/
_
/g
,
'
/
'
)
const
encodeId
=
(
id
:
string
)
=>
id
&&
id
.
replace
(
/
\/
/g
,
'
:
'
)
const
decodeId
=
(
codedId
:
string
)
=>
codedId
&&
codedId
.
replace
(
/
:
/g
,
'
/
'
)
const
endcodePath
=
(
key
:
string
,
val
:
string
)
=>
`
${
key
}
:
${
encodeURIComponent
(
val
)}
`
const
decodePath
=
(
path
:
string
)
=>
{
const
re
=
/^
(
.*
?)
:
(
.+
)
$/
.
exec
(
path
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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