remote5-gui 0.1.2 → 0.1.4

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
@@ -1,7 +1,3 @@
1
1
  'use strict';
2
2
 
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./lib/wbase-0.1.2.js');
5
- } else {
6
- module.exports = require('./lib/wbase-0.1.2.js');
7
- }
3
+ module.exports = require('./lib/wbase-0.1.3.js');
@@ -1,14 +1,15 @@
1
1
  /*
2
- * Remote5 wBase - 2022.11.22
2
+ * Remote5 wBase - 2021.10.08~
3
3
  * Author : Willy.Lee (wiljwilj@hotmail.com)
4
4
  */
5
- // 0.1.1 - 2021.10.08 - start
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.2";
12
+ var version = "0.1.3";
12
13
 
13
14
  var w2a = {
14
15
  q: [],
@@ -174,7 +175,7 @@ var evt = {
174
175
 
175
176
  var R5;
176
177
  if (typeof exports != 'undefined')
177
- R5 = exports.R5 ? exports.R5 : (exports.R5 = {});
178
+ R5 = exports;
178
179
  else
179
180
  R5 = window.R5 ? window.R5 : (window.R5 = {});
180
181
 
@@ -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.R5 ? exports.R5 : (exports.R5={});
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 - 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
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.\(\)\+\-\/\*]*dp+/gi, function(mtch) {
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.\(\)\+\-\/\*]*px+/gi, function(mtch) {
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+1, espv, spv, oSss);
147
+ ispv = _rstrstyle2obj(spvs, ispv, espv, spv, oSss);
146
148
  }
147
149
  return ispv;
148
150
  }
@@ -294,7 +296,7 @@
294
296
 
295
297
  var R5;
296
298
  if ( typeof exports != 'undefined' )
297
- R5 = exports.R5 ? exports.R5 : (exports.R5={});
299
+ R5 = exports;
298
300
  else
299
301
  R5 = window.R5 ? window.R5 : (window.R5={});
300
302
 
package/package.json CHANGED
@@ -1,22 +1,10 @@
1
1
  {
2
2
  "name": "remote5-gui",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Remote5 GUI package.",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "",
9
- "directory": "packages/remote5-gui"
10
- },
11
- "keywords": [
12
- "remote5"
13
- ],
5
+ "main": "./index.js",
14
6
  "license": "MIT",
15
- "homepage": "",
16
- "peerDependencies": {},
17
7
  "files": [
18
- "LICENSE",
19
- "README.md",
20
8
  "index.js",
21
9
  "lib/"
22
10
  ],
@@ -24,13 +12,15 @@
24
12
  ".": {
25
13
  "default": "./index.js"
26
14
  },
15
+ "./lang": {
16
+ "default": "./index_lang.js"
17
+ },
18
+ "./style": {
19
+ "default": "./index_style.js"
20
+ },
27
21
  "./package.json": "./package.json"
28
22
  },
29
- "directories": {
30
- "lib": "lib"
31
- },
32
- "scripts": {
33
- "test": "echo \"Error: no test specified\" && exit 1"
34
- },
35
- "author": "Willy.Lee.KW"
23
+ "author": {
24
+ "name":"Willy.Lee.KW"
25
+ }
36
26
  }