pixl-xyapp 2.1.32 → 2.1.34

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/css/base.css CHANGED
@@ -6,6 +6,24 @@
6
6
  }
7
7
 
8
8
  :root {
9
+ --color-red-500: oklch(63.7% 0.237 25.331);
10
+ --color-orange-500: oklch(70.5% 0.213 47.604);
11
+ --color-amber-500: oklch(76.9% 0.188 70.08);
12
+ --color-yellow-500: oklch(79.5% 0.184 86.047);
13
+ --color-lime-500: oklch(76.8% 0.233 130.85);
14
+ --color-green-500: oklch(72.3% 0.219 149.579);
15
+ --color-emerald-500: oklch(69.6% 0.17 162.48);
16
+ --color-teal-500: oklch(70.4% 0.14 182.503);
17
+ --color-cyan-500: oklch(71.5% 0.143 215.221);
18
+ --color-sky-500: oklch(68.5% 0.169 237.323);
19
+ --color-blue-500: oklch(62.3% 0.214 259.815);
20
+ --color-indigo-500: oklch(58.5% 0.233 277.117);
21
+ --color-violet-500: oklch(60.6% 0.25 292.717);
22
+ --color-purple-500: oklch(62.7% 0.265 303.9);
23
+ --color-fuchsia-500: oklch(66.7% 0.295 322.15);
24
+ --color-pink-500: oklch(65.6% 0.241 354.308);
25
+ --color-rose-500: oklch(64.5% 0.246 16.439);
26
+
9
27
  --blue: rgb(0, 123, 255);
10
28
  --indigo: rgb(102, 16, 242);
11
29
  --purple: rgb(140, 60, 220);
package/js/base.js CHANGED
@@ -304,8 +304,10 @@ var app = {
304
304
  opts.headers['X-CSRF-Token'] = app.csrf_token;
305
305
  }
306
306
 
307
- // default 10 sec timeout
308
- var timeout = opts.timeout || 10000;
307
+ // default 10 sec timeout if not configured
308
+ var default_timeout = 10000;
309
+ if (window.config && window.config.api_timeout_ms) default_timeout = window.config.api_timeout_ms;
310
+ var timeout = opts.timeout || default_timeout;
309
311
  delete opts.timeout;
310
312
 
311
313
  // retry delay (w/exp backoff)
@@ -320,7 +322,7 @@ var app = {
320
322
  Debug.trace('api', "HTTP Error: " + err);
321
323
 
322
324
  if (errorCallback) errorCallback({ code: 'http', description: '' + (err.message || err) });
323
- else app.doError( "HTTP Error: " + err.message || err );
325
+ else app.doError( "HTTP Error: " + err.message || err, 8 ); // hide timeout messages after 8s
324
326
  }, timeout );
325
327
 
326
328
  window.fetch( url, opts )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixl-xyapp",
3
- "version": "2.1.32",
3
+ "version": "2.1.34",
4
4
  "description": "Front-end web application and theme for xyOps.",
5
5
  "author": "Joseph Huckaby <jhuckaby@pixlcore.com>",
6
6
  "homepage": "https://github.com/pixlcore/pixl-xyapp",