UNPKG
jsreport-studio
Version:
beta (1.4.2-beta)
latest (2.10.1)
next (1.3.1)
2.10.1
2.10.0
2.9.0
2.8.0
2.7.0
2.6.6
2.6.5
2.6.4
2.6.3
2.6.2
2.6.1
2.6.0
2.5.1
2.5.0
2.4.1
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
1.6.2
1.6.1
1.6.0
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.3
1.4.2
1.4.2-beta
1.4.1-beta
1.4.0-beta
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.5-next.0
0.1.4-next.0
0.1.3
0.1.2
0.1.1
jsreport templates editor and designer
github.com/jsreport/jsreport-studio
jsreport/jsreport-studio
jsreport-studio
/
src
/
helpers
/
resolveUrl.js
11 lines
(8 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import { rootPath }
from
'../lib/configuration.js'
const
join
= (a, b) => {
const
slashless = b[
0
] ===
'/'
? b.substring(
1
) : b
return
a[a.length -
1
] ===
'/'
? a + slashless : a +
'/'
+ slashless }
export
default
(
url
)
=> {
return
join
(rootPath(), url) }