remote5-gui 0.1.3 → 0.1.5
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.
package/index.js
CHANGED
package/index_lang.js
ADDED
package/index_style.js
ADDED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Remote5 wBase -
|
|
2
|
+
* Remote5 wBase - 2021.10.08~
|
|
3
3
|
* Author : Willy.Lee (wiljwilj@hotmail.com)
|
|
4
4
|
*/
|
|
5
|
-
// 0.1.1 - 2021.10.08
|
|
6
|
-
// 0.1.2 - 2022.11.22
|
|
5
|
+
// 0.1.1 - 2021.10.08 start
|
|
6
|
+
// 0.1.2 - 2022.11.22
|
|
7
|
+
// 0.1.3 - 2026.02.21 apply npm library
|
|
7
8
|
|
|
8
9
|
(function(){
|
|
9
10
|
"use strict";
|
|
10
11
|
|
|
11
|
-
var version = "0.1.
|
|
12
|
+
var version = "0.1.3";
|
|
12
13
|
|
|
13
14
|
var w2a = {
|
|
14
15
|
q: [],
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
// 0.1.1 - 2023.11.03
|
|
6
6
|
// 0.1.3 - 2025.05.05 loading default lang-json
|
|
7
7
|
// 0.1.4 - 2026.02.13 syntex error fixed
|
|
8
|
+
// 0.1.5 - 2026.02.19 add function finding by contrycode
|
|
9
|
+
// 0.1.6 - 2026.02.21 apply npm library
|
|
8
10
|
|
|
9
11
|
(function(){
|
|
10
12
|
"use strict";
|
|
@@ -106,6 +108,11 @@
|
|
|
106
108
|
if (list[l].split('-')[0] == lang)
|
|
107
109
|
return list[l];
|
|
108
110
|
}
|
|
111
|
+
var contry = userLang.split('-')[1];
|
|
112
|
+
for (let l in list) {
|
|
113
|
+
if (list[l].split('-')[1] == contry)
|
|
114
|
+
return list[l];
|
|
115
|
+
}
|
|
109
116
|
return null;
|
|
110
117
|
}
|
|
111
118
|
|
|
@@ -118,7 +125,7 @@
|
|
|
118
125
|
|
|
119
126
|
var R5;
|
|
120
127
|
if ( typeof exports != 'undefined' )
|
|
121
|
-
R5 = exports
|
|
128
|
+
R5 = exports;
|
|
122
129
|
else
|
|
123
130
|
R5 = window.R5 ? window.R5 : (window.R5={});
|
|
124
131
|
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
* Author : Willy.Lee (wiljwilj@hotmail.com)
|
|
4
4
|
*/
|
|
5
5
|
// 0.1.1 - 2021.10.13
|
|
6
|
-
// 0.2.0 - 2022.03.09
|
|
7
|
-
// 0.3.0 - 2022.11.22
|
|
8
|
-
// 0.3.1 - 2022.12.12
|
|
9
|
-
// 0.3.2 - 2023.06.06
|
|
10
|
-
// 0.3.3 - 2023.09.16
|
|
11
|
-
// 0.4.0 - 2026.02.16
|
|
6
|
+
// 0.2.0 - 2022.03.09 wstyle=""
|
|
7
|
+
// 0.3.0 - 2022.11.22 add style type="text/wcss", add link rel="wstylesheet", remove function type
|
|
8
|
+
// 0.3.1 - 2022.12.12 loading wcss after load, add data-wstyle=""
|
|
9
|
+
// 0.3.2 - 2023.06.06 bugfix: parsing key:v1:v2 to key + v1:v2 (add _toKV)
|
|
10
|
+
// 0.3.3 - 2023.09.16 add R5.wStyle.load <url>, cb(object)
|
|
11
|
+
// 0.4.0 - 2026.02.16 media query css support
|
|
12
|
+
// 0.4.1 - 2026.02.20 stop formula support
|
|
13
|
+
// 0.4.2 - 2026.02.21 apply npm library
|
|
12
14
|
|
|
13
15
|
(function(){
|
|
14
16
|
"use strict";
|
|
@@ -63,7 +65,7 @@
|
|
|
63
65
|
|
|
64
66
|
function _evalValue( v, sd ) {
|
|
65
67
|
var v1 = v.replace(/screenDensity/gi, sd);
|
|
66
|
-
var v2 = v1.replace(/s?[\-0-9
|
|
68
|
+
var v2 = v1.replace(/s?[\-0-9.]*dp+/gi, function(mtch) {
|
|
67
69
|
var mm = mtch.replace(/dp/gi, "*"+sd);
|
|
68
70
|
try {
|
|
69
71
|
mm = eval(mm) + "px";
|
|
@@ -72,7 +74,7 @@
|
|
|
72
74
|
}
|
|
73
75
|
return mm;
|
|
74
76
|
});
|
|
75
|
-
var v3 = v2.replace(/s?[\-0-9
|
|
77
|
+
var v3 = v2.replace(/s?[\-0-9.]*px+/gi, function(mtch) {
|
|
76
78
|
var mm = mtch.replace(/px$/gi, "");
|
|
77
79
|
try {
|
|
78
80
|
mm = eval(mm) + "px";
|
|
@@ -142,7 +144,7 @@
|
|
|
142
144
|
if (spv === "")
|
|
143
145
|
return ispv+1;
|
|
144
146
|
spv = spv.split(/\s*{\s*/);
|
|
145
|
-
ispv = _rstrstyle2obj(spvs, ispv
|
|
147
|
+
ispv = _rstrstyle2obj(spvs, ispv, espv, spv, oSss);
|
|
146
148
|
}
|
|
147
149
|
return ispv;
|
|
148
150
|
}
|
|
@@ -294,9 +296,11 @@
|
|
|
294
296
|
|
|
295
297
|
var R5;
|
|
296
298
|
if ( typeof exports != 'undefined' )
|
|
297
|
-
R5 = exports
|
|
298
|
-
else
|
|
299
|
+
R5 = exports;
|
|
300
|
+
else {
|
|
299
301
|
R5 = window.R5 ? window.R5 : (window.R5={});
|
|
302
|
+
window.addEventListener("load", function(){ R5.setScreenDensity() });
|
|
303
|
+
}
|
|
300
304
|
|
|
301
305
|
R5.wStyle = wStyle;
|
|
302
306
|
R5.wStyle.styles = [];
|
|
@@ -305,5 +309,4 @@
|
|
|
305
309
|
R5.screenDensity = 1;
|
|
306
310
|
R5.setScreenDensity = setScreenDensity;
|
|
307
311
|
|
|
308
|
-
window.addEventListener("load", function(){ R5.setScreenDensity() });
|
|
309
312
|
})();
|
package/package.json
CHANGED
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remote5-gui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Remote5 GUI package.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"index.js",
|
|
9
|
+
"index_lang.js",
|
|
10
|
+
"index_style.js",
|
|
9
11
|
"lib/"
|
|
10
12
|
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"default": "./index.js"
|
|
16
|
+
},
|
|
17
|
+
"./lang": {
|
|
18
|
+
"default": "./index_lang.js"
|
|
19
|
+
},
|
|
20
|
+
"./style": {
|
|
21
|
+
"default": "./index_style.js"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
11
25
|
"author": {
|
|
12
26
|
"name":"Willy.Lee.KW"
|
|
13
27
|
}
|