mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-31 08:37:35 -04:00
ac8d71ff07
Follow #23394
There were many bad smells in old code. This PR only moves the code into
Vue SFC, doesn't touch the unrelated logic.
update: after
5f23218c85
, there should be no usage of the vue-rumtime-compiler anymore
(hopefully), so I think this PR could close #19851
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 lines
99 B
JavaScript
4 lines
99 B
JavaScript
export function pathEscapeSegments(s) {
|
|
return s.split('/').map(encodeURIComponent).join('/');
|
|
}
|