Skip to content

Commit 943d838

Browse files
committed
.
1 parent 1f48d59 commit 943d838

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

bundle/examples/simple/client.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"WDR Last Update **{{ [https://webdatarender.com] updates.items.0.description }}**",
1616
"WDR Last last Update **{{ [https://webdatarender.com] updates.items.1.description }}**",
1717
"WDR Subscribe **{{ [https://webdatarender.com] subscribe }}**",
18+
"Evaluatly code **{{ [https://evaluatly.com] code.description }}**",
1819
""
1920
],
2021
"#sec": [

bundle/src/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ html, body {
1616
box-sizing: inherit;
1717
}
1818
html {
19+
font-size: 18px;
1920
-moz-osx-font-smoothing: grayscale;
2021
-webkit-font-smoothing: antialiased;
2122
text-rendering: optimizeLegibility;
2223
text-size-adjust: 100%;
2324
}
2425
body {
25-
font-size: 18px;
2626
color: var(--font_color);
2727
font-weight: 400;
2828
background-color: #ffffff;

src/Render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function renderItem(parent, key, value, level) {
3636

3737
value.forEach(v => {
3838
if (typeof v == 'object') {
39-
const sectionItem = el.create('div', { class: "highlight" });
39+
const sectionItem = el.create('div', {});
4040
el.append(section, sectionItem);
4141
renderItem(sectionItem, key, v, level);
4242
} else {

src/Variables.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ function createVariables(defaultData) {
1111
if (key) {
1212
if (DATA[key] == undefined) {
1313
DATA[key] = fetch(key)
14-
.then(x => new Promise(resolve => setTimeout(() => resolve(x), Math.random()*10000)))
14+
// .then(x => new Promise(resolve => setTimeout(() => resolve(x), Math.random()*10000)))
15+
.then(x => new Promise(resolve => setTimeout(() => resolve(x), 500)))
1516
.then(r => r.json());
1617
}
1718
return DATA[key];
@@ -25,7 +26,9 @@ function createVariables(defaultData) {
2526
async function getValue(url, path) {
2627

2728
const data = await getData(url);
28-
return path.split(".").reduce((acc, cur) => acc[cur.trim()], data);
29+
const ret = path.split(".").reduce((acc, cur) => acc[(cur+"").trim()], data);
30+
console.log(ret);
31+
return ret;
2932
}
3033

3134
return {
@@ -49,7 +52,7 @@ function createVariables(defaultData) {
4952
try {
5053
ret.push(await getValue(url, path));
5154
} catch (error) {
52-
ret.push(`[ERROR]`);
55+
ret.push("[ERROR]");
5356
}
5457

5558
i = reg.lastIndex;

0 commit comments

Comments
 (0)