@steedos/standard-ui 2.5.14 → 2.5.15-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,6 +13,16 @@ const path = require('path');
|
|
|
13
13
|
|
|
14
14
|
const getConfig = (key, platform)=>{
|
|
15
15
|
if(platform === 'cordova'){
|
|
16
|
+
if(key === 'STEEDOS_PUBLIC_PAGE_ASSETURLS'){
|
|
17
|
+
const values = _.map(_.split(process.env.STEEDOS_PUBLIC_PAGE_ASSETURLS), (item)=>{
|
|
18
|
+
if(_.startsWith(item, '/')){
|
|
19
|
+
return Meteor.absoluteUrl(item) ;
|
|
20
|
+
}else{
|
|
21
|
+
return item;
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
return _.join(values, ',')
|
|
25
|
+
}
|
|
16
26
|
let value = process.env[key];
|
|
17
27
|
//如果不是以http开头的,就是相对路径, 则加上ROOT_URL
|
|
18
28
|
if(_.startsWith(value, '/')){
|
|
@@ -45,7 +55,7 @@ router.get('/main_head.js', async function (req, res) {
|
|
|
45
55
|
STEEDOS_PUBLIC_STYLE_PLUGINS: getConfig('STEEDOS_PUBLIC_STYLE_PLUGINS', platform),
|
|
46
56
|
STEEDOS_VERSION: process.env.STEEDOS_VERSION,
|
|
47
57
|
STEEDOS_LOCALE: "",
|
|
48
|
-
STEEDOS_PUBLIC_PAGE_ASSETURLS:
|
|
58
|
+
STEEDOS_PUBLIC_PAGE_ASSETURLS: getConfig("STEEDOS_PUBLIC_PAGE_ASSETURLS", platform),
|
|
49
59
|
STEEDOS_AMIS_VERSION: process.env.STEEDOS_AMIS_VERSION,
|
|
50
60
|
platform: __meteor_runtime_config__.PUBLIC_SETTINGS && __meteor_runtime_config__.PUBLIC_SETTINGS.platform || {}
|
|
51
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.15-beta.2",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"repository": {},
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "00bbdae28184b789ff9e4f513f37cc4bf190ccfd"
|
|
16
16
|
}
|