total5 0.0.1-39 → 0.0.1-40

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
@@ -1340,7 +1340,12 @@ F.logger = function(enable) {
1340
1340
  };
1341
1341
 
1342
1342
 
1343
- F.componentator = function(name, components, removeprev = true) {
1343
+ F.componentator = function(name, components, removeprev = true, attrs = '') {
1344
+
1345
+ if (typeof(removeprev) === 'string') {
1346
+ attrs = removeprev;
1347
+ removeprev = true;
1348
+ }
1344
1349
 
1345
1350
  var meta = {};
1346
1351
 
@@ -1349,7 +1354,7 @@ F.componentator = function(name, components, removeprev = true) {
1349
1354
 
1350
1355
  F.$events.componentator && F.emit('componentator', meta);
1351
1356
 
1352
- var url = 'https://componentator.com/download.js?id=' + meta.components;
1357
+ var url = 'https://componentator.com/download.js?id=' + meta.components + (attrs ? ('&' + attrs) : '');
1353
1358
  var nameid = meta.name.slug();
1354
1359
  var relative = 'ui-' + (removeprev ? (nameid + '-') : '') + url.makeid() + '.min.js';
1355
1360
  var filename = F.path.public(relative);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "total5",
3
- "version": "0.0.1-39",
3
+ "version": "0.0.1-40",
4
4
  "description": "Total.js framework v5",
5
5
  "main": "index.js",
6
6
  "directories": {
package/pause.html CHANGED
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
3
  <head>
4
- <title>@(Please wait)</title>
4
+ <title>Please wait</title>
5
5
  <meta charset="utf-8" />
6
6
  <meta name="format-detection" content="telephone=no" />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
package/503.html DELETED
@@ -1,65 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>@(Please wait)</title>
5
- <meta charset="utf-8" />
6
- <meta name="format-detection" content="telephone=no" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
8
- <meta name="robots" content="all,follow" />
9
- <style type="text/css">
10
- /*auto*/
11
- html,body { font: normal normal 14px Arial; background-color: white; height: 100%; margin: 0; padding: 0; font-smoothing: antialiased; }
12
- .table { display: table; width: 100%; height: 100%}
13
- .cell { display:table-cell;vertical-align:middle;text-align:center}
14
- table { max-width: 300px; margin: 20px auto; width: 100%; border:1px solid #E0E0E0; border-collapse: collapse; font-size: 12px; }
15
- table td { border: 1px solid #E0E0E0; padding: 6px 8px; text-align: center; }
16
- table td:first-child { text-align: left; width: 85%; }
17
- .anim { animation: anim 2s infinite; }
18
- .text { color: #A0A0A0; font-size: 10px; margin-bottom: 3px; text-transform: uppercase; }
19
- #time { font-size: 60px; font-weight: bold; margin-bottom: 10px; background-color: black; color: white; padding: 3px 10px; min-width: 70px; text-align: center; border-radius: 2px; position: relative; display: inline-block; }
20
-
21
- @keyframes anim {
22
- 0% { transform:scale(1); }
23
- 50%{ transform:scale(1.5) rotate(180deg); color:gray }
24
- 100%{ transform:scale(1); }
25
- }
26
- </style>
27
- </head>
28
- <body>
29
-
30
- <div class="table">
31
- <div class="cell">
32
- <div id="time" style="">10</div>
33
- <div class="text">@(Please wait)</div>
34
- <div>
35
- <b>@(Application is starting &hellip;)</b>
36
- </div>
37
- <table>
38
- @{foreach m in model}
39
- <tr>
40
- <td>@{m.key}</td>
41
- <td class="anim">&#10711;</td>
42
- </tr>
43
- @{end}
44
- </table>
45
- </div>
46
- </div>
47
-
48
- <script>
49
- var i = 10;
50
- setInterval(function() {
51
- i--;
52
- if (i >= 0) {
53
- var el = document.getElementById('time');
54
- !i && (el.style.fontSize = '40px');
55
- el.innerHTML = (i === 0 ? '@(REFRESHING)' : i);
56
- } else if (i === -1) {
57
- setTimeout(function() {
58
- window.location.reload();
59
- }, 1000);
60
- }
61
- }, 1000);
62
- </script>
63
-
64
- </body>
65
- </html>