Skip to content

Commit 4aa19e6

Browse files
committed
Replace nbsp (accidentally typed) with ordinary space
1 parent d5abb6a commit 4aa19e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+115
-115
lines changed

about.html

+3-3
Large diffs are not rendered by default.

about/index.html

+3-3
Large diffs are not rendered by default.

advanced.html

+4-4
Large diffs are not rendered by default.

advanced.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const vanJS = van.state("VanJS")
66
return span(
77
button({onclick: () => vanJS.val = b("VanJS")}, "Turn Bold"),
8-
" Welcome to ", vanJS, ". ", vanJS, " is awesome!"
8+
" Welcome to ", vanJS, ". ", vanJS, " is awesome!"
99
)
1010
}
1111

advanced/index.html

+4-4
Large diffs are not rendered by default.

codegen/vanui-README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ van.add(document.body, Tabs(
247247
pre(code("npm install vanjs-core")),
248248
],
249249
About: p(
250-
"The author of ", b("VanJS"), " is ",
250+
"The author of ", b("VanJS"), " is ",
251251
a({href: "https://github.com/Tao-VanJS"}, " Tao Xin"), "."
252252
),
253253
},
@@ -369,7 +369,7 @@ van.add(document.body,
369369
onmouseenter: () => tooltip2Show.val = true,
370370
onmouseleave: () => tooltip2Show.val = false,
371371
onclick: () => ++count.val
372-
}, "Increment Counter", Tooltip({text: tooltip2Text, show: tooltip2Show})), " ",
372+
}, "Increment Counter", Tooltip({text: tooltip2Text, show: tooltip2Show})), " ",
373373
button({
374374
style: "position: relative;",
375375
onmouseenter: () => tooltip3Show.val = true,

converter-ui/convert.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Van } from "vanjs-core"
1+
import { Van } from "vanjs-core"
22
import { htmlToVanCode, mdToVanCode } from "vanjs-converter"
33

44
declare const van: Van, Prism: any
@@ -73,7 +73,7 @@ const Converter = () => {
7373
pre(code({class: "language-js"})),
7474
)
7575
const {code: lines, tags} = result.val
76-
const space = spacing.val ? " " : ""
76+
const space = spacing.val ? " " : ""
7777
const [tagsDom, codeDom] = dom.querySelectorAll("pre code[class='language-js']")
7878
tagsDom.textContent = tags.length ? `const {${space}${tags.join(", ")}${space}} = van.tags
7979
` : ""

demo.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ <h1 class="w3-padding-16 w3-xxxlarge">
5050
<!-- !PAGE CONTENT! -->
5151
<div class="w3-main" style="margin-left:300px;">
5252
<div id="page">
53-
<div id="content"><h1 class="w3-xxlarge"><b>VanJS</b>: Learning by Example</h1><blockquote><i>Simplicity is the ultimate sophistication.<br><br>-- Steve Jobs</i></blockquote><p>Despite being an <b>ultra-lightweight</b> UI framework, <b>VanJS</b>&nbsp;allows you to write incredibly elegant and expressive code for comprehensive application logic. This page is a curated list of cool things you can do with just a few lines of JavaScript code, including several handy utilities built with <b>VanJS</b>.</p><p>See also <a href="#community-examples" class="w3-hover-opacity">Community Examples</a>.</p><p><button id="random-demo"><span id="dice">🎲 </span>Show Me a Random Demo</button></p><h2 class="w3-xxlarge w3-text-red" id="hello-world"><a class="self-link" href="#hello-world">Hello World!</a></h2><hr style="width:50px;border:5px solid red" class="w3-round"><p>This is the <code class="symbol">Hello World</code> program shown in the <a href="/" class="w3-hover-opacity">Home</a> page:</p><pre><code class="language-js">const Hello = () =&gt; div(
53+
<div id="content"><h1 class="w3-xxlarge"><b>VanJS</b>: Learning by Example</h1><blockquote><i>Simplicity is the ultimate sophistication.<br><br>-- Steve Jobs</i></blockquote><p>Despite being an <b>ultra-lightweight</b> UI framework, <b>VanJS</b> allows you to write incredibly elegant and expressive code for comprehensive application logic. This page is a curated list of cool things you can do with just a few lines of JavaScript code, including several handy utilities built with <b>VanJS</b>.</p><p>See also <a href="#community-examples" class="w3-hover-opacity">Community Examples</a>.</p><p><button id="random-demo"><span id="dice">🎲 </span>Show Me a Random Demo</button></p><h2 class="w3-xxlarge w3-text-red" id="hello-world"><a class="self-link" href="#hello-world">Hello World!</a></h2><hr style="width:50px;border:5px solid red" class="w3-round"><p>This is the <code class="symbol">Hello World</code> program shown in the <a href="/" class="w3-hover-opacity">Home</a> page:</p><pre><code class="language-js">const Hello = () =&gt; div(
5454
p("👋Hello"),
5555
ul(
5656
li("🗺️World"),
5757
li(a({href: "https://vanjs.org/"}, "🍦VanJS")),
5858
),
5959
)
60-
</code></pre><p><b>Demo:</b></p><p id="demo-hello"></p><p><a href="https://jsfiddle.net/gh/get/library/pure/vanjs-org/vanjs-org.github.io/tree/master/jsfiddle/demo/hello">Try on jsfiddle</a></p><p>This is the funnier <code class="symbol">Hello</code>&nbsp;program shown in <a href="/start" class="w3-hover-opacity">Getting Started</a> page:</p><pre><code class="language-js">const sleep = ms =&gt; new Promise(resolve =&gt; setTimeout(resolve, ms))
60+
</code></pre><p><b>Demo:</b></p><p id="demo-hello"></p><p><a href="https://jsfiddle.net/gh/get/library/pure/vanjs-org/vanjs-org.github.io/tree/master/jsfiddle/demo/hello">Try on jsfiddle</a></p><p>This is the funnier <code class="symbol">Hello</code> program shown in <a href="/start" class="w3-hover-opacity">Getting Started</a> page:</p><pre><code class="language-js">const sleep = ms =&gt; new Promise(resolve =&gt; setTimeout(resolve, ms))
6161

6262
const Run = ({sleepMs}) =&gt; {
6363
const steps = van.state(0)

demo/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ <h1 class="w3-padding-16 w3-xxxlarge">
5050
<!-- !PAGE CONTENT! -->
5151
<div class="w3-main" style="margin-left:300px;">
5252
<div id="page">
53-
<div id="content"><h1 class="w3-xxlarge"><b>VanJS</b>: Learning by Example</h1><blockquote><i>Simplicity is the ultimate sophistication.<br><br>-- Steve Jobs</i></blockquote><p>Despite being an <b>ultra-lightweight</b> UI framework, <b>VanJS</b>&nbsp;allows you to write incredibly elegant and expressive code for comprehensive application logic. This page is a curated list of cool things you can do with just a few lines of JavaScript code, including several handy utilities built with <b>VanJS</b>.</p><p>See also <a href="#community-examples" class="w3-hover-opacity">Community Examples</a>.</p><p><button id="random-demo"><span id="dice">🎲 </span>Show Me a Random Demo</button></p><h2 class="w3-xxlarge w3-text-red" id="hello-world"><a class="self-link" href="#hello-world">Hello World!</a></h2><hr style="width:50px;border:5px solid red" class="w3-round"><p>This is the <code class="symbol">Hello World</code> program shown in the <a href="/" class="w3-hover-opacity">Home</a> page:</p><pre><code class="language-js">const Hello = () =&gt; div(
53+
<div id="content"><h1 class="w3-xxlarge"><b>VanJS</b>: Learning by Example</h1><blockquote><i>Simplicity is the ultimate sophistication.<br><br>-- Steve Jobs</i></blockquote><p>Despite being an <b>ultra-lightweight</b> UI framework, <b>VanJS</b> allows you to write incredibly elegant and expressive code for comprehensive application logic. This page is a curated list of cool things you can do with just a few lines of JavaScript code, including several handy utilities built with <b>VanJS</b>.</p><p>See also <a href="#community-examples" class="w3-hover-opacity">Community Examples</a>.</p><p><button id="random-demo"><span id="dice">🎲 </span>Show Me a Random Demo</button></p><h2 class="w3-xxlarge w3-text-red" id="hello-world"><a class="self-link" href="#hello-world">Hello World!</a></h2><hr style="width:50px;border:5px solid red" class="w3-round"><p>This is the <code class="symbol">Hello World</code> program shown in the <a href="/" class="w3-hover-opacity">Home</a> page:</p><pre><code class="language-js">const Hello = () =&gt; div(
5454
p("👋Hello"),
5555
ul(
5656
li("🗺️World"),
5757
li(a({href: "https://vanjs.org/"}, "🍦VanJS")),
5858
),
5959
)
60-
</code></pre><p><b>Demo:</b></p><p id="demo-hello"></p><p><a href="https://jsfiddle.net/gh/get/library/pure/vanjs-org/vanjs-org.github.io/tree/master/jsfiddle/demo/hello">Try on jsfiddle</a></p><p>This is the funnier <code class="symbol">Hello</code>&nbsp;program shown in <a href="/start" class="w3-hover-opacity">Getting Started</a> page:</p><pre><code class="language-js">const sleep = ms =&gt; new Promise(resolve =&gt; setTimeout(resolve, ms))
60+
</code></pre><p><b>Demo:</b></p><p id="demo-hello"></p><p><a href="https://jsfiddle.net/gh/get/library/pure/vanjs-org/vanjs-org.github.io/tree/master/jsfiddle/demo/hello">Try on jsfiddle</a></p><p>This is the funnier <code class="symbol">Hello</code> program shown in <a href="/start" class="w3-hover-opacity">Getting Started</a> page:</p><pre><code class="language-js">const sleep = ms =&gt; new Promise(resolve =&gt; setTimeout(resolve, ms))
6161

6262
const Run = ({sleepMs}) =&gt; {
6363
const steps = van.state(0)

dom-valued-state.code.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const TurnBold = () => {
44
const vanJS = van.state("VanJS")
55
return span(
66
button({onclick: () => vanJS.val = b("VanJS")}, "Turn Bold"),
7-
" Welcome to ", vanJS, ". ", vanJS, " is awesome!"
7+
" Welcome to ", vanJS, ". ", vanJS, " is awesome!"
88
)
99
}
1010

jsfiddle/advanced/dom-valued-state/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const TurnBold = () => {
44
const vanJS = van.state("VanJS")
55
return span(
66
button({onclick: () => vanJS.val = b("VanJS")}, "Turn Bold"),
7-
" Welcome to ", vanJS, ". ", vanJS, " is awesome!"
7+
" Welcome to ", vanJS, ". ", vanJS, " is awesome!"
88
)
99
}
1010

jsfiddle/x/example-list2/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const TodoList = () => {
3131
button({onclick: () => vanX.replace(items, l =>
3232
l.flatMap(([k1, v1]) => [
3333
[k1, v1],
34-
["k" + ++id, {text: v1.text + " - copy", done: v1.done}],
34+
["k" + ++id, {text: v1.text + " - copy", done: v1.done}],
3535
]))},
3636
"Duplicate List"),
3737
button({onclick: () => Object.values(items).forEach(v => v.text += "!")}, 'Append "!"'),

jsfiddle/x/name-calc/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Name = () => {
66
return div(
77
"First name: ",
88
input({type: "text", value: () => data.name.first,
9-
oninput: e => data.name.first = e.target.value}), " ",
9+
oninput: e => data.name.first = e.target.value}), " ",
1010
"Last name: ",
1111
input({type: "text", value: () => data.name.last,
1212
oninput: e => data.name.last = e.target.value}), " ",

jsfiddle/x/name-existing-class/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Name = () => {
1010
return div(
1111
"First name: ",
1212
input({type: "text", value: () => person.firstName,
13-
oninput: e => person.firstName = e.target.value}), " ",
13+
oninput: e => person.firstName = e.target.value}), " ",
1414
"Last name: ",
1515
input({type: "text", value: () => person.lastName,
1616
oninput: e => person.lastName = e.target.value}), " ",

jsfiddle/x/name-state-fields/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Name = () => {
66
return div(
77
"First name: ",
88
input({type: "text", value: () => data.name.first,
9-
oninput: e => data.name.first = e.target.value}), " ",
9+
oninput: e => data.name.first = e.target.value}), " ",
1010
"Last name: ",
1111
input({type: "text", value: () => data.name.last,
1212
oninput: e => data.name.last = e.target.value}), " ",

jsfiddle/x/name/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Name = () => {
55
return div(
66
"First name: ",
77
input({type: "text", value: () => data.name.first,
8-
oninput: e => data.name.first = e.target.value}), " ",
8+
oninput: e => data.name.first = e.target.value}), " ",
99
"Last name: ",
1010
input({type: "text", value: () => data.name.last,
1111
oninput: e => data.name.last = e.target.value}), " ",

list2.code.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const TodoList = () => {
2929
button({onclick: () => vanX.replace(items, l =>
3030
l.flatMap(([k1, v1]) => [
3131
[k1, v1],
32-
["k" + ++id, {text: v1.text + " - copy", done: v1.done}],
32+
["k" + ++id, {text: v1.text + " - copy", done: v1.done}],
3333
]))},
3434
"Duplicate List"),
3535
button({onclick: () => Object.values(items).forEach(v => v.text += "!")}, 'Append "!"'),

0 commit comments

Comments
 (0)