@reactful/create 1.2.1 → 1.2.3

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.
Files changed (73) hide show
  1. package/README.md +7 -7
  2. package/commons/package.json +21 -21
  3. package/commons/tsconfig.json +24 -24
  4. package/index.js +148 -148
  5. package/package.json +31 -31
  6. package/templates/minimal/components/hello.tsx +8 -8
  7. package/templates/minimal/components/icon.tsx +11 -0
  8. package/templates/minimal/components/index.ts +2 -1
  9. package/templates/minimal/routes/index.tsx +7 -6
  10. package/templates/sampling/apis/auth/db.ts +14 -14
  11. package/templates/sampling/apis/auth/index.ts +27 -27
  12. package/templates/sampling/apis/hello.ts +2 -2
  13. package/templates/sampling/apis/quotes.ts +15 -15
  14. package/templates/sampling/apis/sub/index.ts +2 -2
  15. package/templates/sampling/apis/sub/sub.ts +2 -2
  16. package/templates/sampling/assets/bootstrap-icons.css +5 -0
  17. package/templates/sampling/assets/default.css +94 -91
  18. package/templates/sampling/assets/fonts/bootstrap-icons.woff +0 -0
  19. package/templates/sampling/assets/fonts/bootstrap-icons.woff2 +0 -0
  20. package/templates/sampling/assets/icon.svg +6 -6
  21. package/templates/sampling/assets/manifest.json +56 -56
  22. package/templates/sampling/assets/markdown.css +273 -273
  23. package/templates/sampling/assets/robots.txt +1 -1
  24. package/templates/sampling/assets/system.css +6 -6
  25. package/templates/sampling/builds/about.html +29 -26
  26. package/templates/sampling/builds/bundle.js +34763 -13116
  27. package/templates/sampling/builds/bundle.ts +20 -25
  28. package/templates/sampling/builds/clock.html +29 -28
  29. package/templates/sampling/builds/counter.html +30 -29
  30. package/templates/sampling/builds/forms/form.html +48 -47
  31. package/templates/sampling/builds/forms/index.html +48 -47
  32. package/templates/sampling/builds/hello.html +61 -59
  33. package/templates/sampling/builds/htmlx.html +26 -23
  34. package/templates/sampling/builds/htmlx.tsx +12 -12
  35. package/templates/sampling/builds/index.html +98 -97
  36. package/templates/sampling/builds/login.html +47 -44
  37. package/templates/sampling/builds/profile/index.html +54 -53
  38. package/templates/sampling/builds/quotes.html +26 -25
  39. package/templates/sampling/builds/shared.js +77 -76
  40. package/templates/sampling/builds/system.html +27 -26
  41. package/templates/sampling/components/header.tsx +6 -6
  42. package/templates/sampling/components/hello.tsx +9 -0
  43. package/templates/sampling/components/icon.tsx +11 -0
  44. package/templates/sampling/components/index.ts +3 -0
  45. package/templates/sampling/index.html +20 -19
  46. package/templates/sampling/index.ts +18 -18
  47. package/templates/sampling/routes/about.html +12 -12
  48. package/templates/sampling/routes/clock.tsx +36 -35
  49. package/templates/sampling/routes/forms/form.tsx +50 -50
  50. package/templates/sampling/routes/hello.tsx +58 -61
  51. package/templates/sampling/routes/htmlx.html +14 -14
  52. package/templates/sampling/routes/index.md +15 -15
  53. package/templates/sampling/routes/login.tsx +35 -35
  54. package/templates/sampling/routes/profile/detail.css +12 -12
  55. package/templates/sampling/routes/profile/detail.tsx +47 -47
  56. package/templates/sampling/routes/profile/index.tsx +13 -13
  57. package/templates/sampling/routes/profile/profile.css +8 -8
  58. package/templates/sampling/routes/profile/tester.tsx +10 -10
  59. package/templates/sampling/routes/system.tsx +1 -0
  60. package/templates/sampling/tests/access.spec.ts +29 -29
  61. package/templates/sampling/tests/counter.spec.ts +18 -18
  62. package/templates/sampling/tests/form.spec.ts +50 -50
  63. package/templates/sampling/tests/hello.spec.ts +24 -24
  64. package/templates/sampling/tests/path.test.ts +19 -19
  65. package/vscode/launch.json +8 -8
  66. package/templates/sampling/builds/client.ts +0 -1
  67. /package/templates/sampling/assets/{logo-144.png → logos/logo-144.png} +0 -0
  68. /package/templates/sampling/assets/{logo-168.png → logos/logo-168.png} +0 -0
  69. /package/templates/sampling/assets/{logo-192.png → logos/logo-192.png} +0 -0
  70. /package/templates/sampling/assets/{logo-48.png → logos/logo-48.png} +0 -0
  71. /package/templates/sampling/assets/{logo-512.png → logos/logo-512.png} +0 -0
  72. /package/templates/sampling/assets/{logo-72.png → logos/logo-72.png} +0 -0
  73. /package/templates/sampling/assets/{logo-96.png → logos/logo-96.png} +0 -0
@@ -1,25 +1,20 @@
1
-
2
- import { GLOBAL_KEY } from '@reactful/commons'
3
- await import('/mnt/b/Repositorios/reactful/experiment/builds/client.ts').then(x => x.default());
4
- globalThis[GLOBAL_KEY].clients ||= {}
5
-
6
- globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx'] = { off:false, tag:'CountButton' }
7
- import('/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx').then(x => x.CountButton)
8
- .then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx'].jsx = x);
9
-
10
- globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx'] = { off:false, tag:'default' }
11
- import('/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx').then(x => x.default)
12
- .then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx'].jsx = x);
13
-
14
- globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx'] = { off:false, tag:'Hello' }
15
- import('/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx').then(x => x.default)
16
- .then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx'].jsx = x);
17
-
18
- globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/login.tsx'] = { off:false, tag:'default' }
19
- import('/mnt/b/Repositorios/reactful/experiment/routes/login.tsx').then(x => x.default)
20
- .then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/login.tsx'].jsx = x);
21
-
22
- globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx'] = { off:false, tag:'Detail' }
23
- import('/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx').then(x => x.Detail)
24
- .then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx'].jsx = x);
25
-
1
+
2
+ import { GLOBAL_KEY } from '@reactful/commons';
3
+ await import('/mnt/b/Repositorios/reactful/node_modules/@reactful/server/npm/guest/client').then(x => x.default());
4
+ globalThis[GLOBAL_KEY].clients ||= {}
5
+
6
+ globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx'] = { off:false, tag:'CountButton' }
7
+ import('/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx').then(x => x.CountButton).then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx'] = x);
8
+
9
+ globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx'] = { off:false, tag:'default' }
10
+ import('/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx').then(x => x.default).then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx'] = x);
11
+
12
+ globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx'] = { off:false, tag:'Hello' }
13
+ import('/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx').then(x => x.default).then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx'] = x);
14
+
15
+ globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/login.tsx'] = { off:false, tag:'default' }
16
+ import('/mnt/b/Repositorios/reactful/experiment/routes/login.tsx').then(x => x.default).then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/login.tsx'] = x);
17
+
18
+ globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx'] = { off:false, tag:'Detail' }
19
+ import('/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx').then(x => x.Detail).then(x => globalThis[GLOBAL_KEY].clients['/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx'] = x);
20
+
@@ -1,29 +1,30 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="description" content="Home page">
7
- <meta name="theme-color" content="#333">
8
- <link rel="stylesheet" href="/assets/markdown.css">
9
- <link rel="stylesheet" href="/assets/default.css">
10
- <link rel="manifest" href="/assets/manifest.json">
11
- <title>Welcome</title>
12
- <meta name='viewport' content='width=device-width, initial-scale=1.0' />
13
- <meta name='description' content='Home page' />
14
- <meta name='theme-color' content='#333' />
15
- <meta name='title' content='Welcome' />
16
- <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
17
- <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
18
- <body>
19
- <div id='root'>
20
- <div tag="TimeZone" uid="3" own="default$" fallback="[object Object]" class="default"
21
- retry="/clock" hidden>
22
- <h1>500</h1>
23
- <ul>
24
- <li>Was there a typo in the url or port?</li>
25
- </ul>
26
- </div>
27
- </div>
28
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Home page">
7
+ <meta name="theme-color" content="#333">
8
+ <link rel="stylesheet" href="/assets/bootstrap-icons.css">
9
+ <link rel="stylesheet" href="/assets/markdown.css">
10
+ <link rel="stylesheet" href="/assets/default.css">
11
+ <link rel="manifest" href="/assets/manifest.json">
12
+ <title>Welcome</title>
13
+ <meta name='viewport' content='width=device-width, initial-scale=1.0' />
14
+ <meta name='description' content='Home page' />
15
+ <meta name='theme-color' content='#333' />
16
+ <meta name='title' content='Welcome' />
17
+ <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
18
+ <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
19
+ <body>
20
+ <div id='root'>
21
+ <h1 tag="h1" uid="6" class="TimeZone">World Clock</h1>
22
+ <h2 tag="h2" uid="8" class="TimeZone">Europe/Amistedan timezone</h2>
23
+ <h3 style="color:yellow" tag="h3" uid="10" class="TimeZone"> <!-- -->2024-4-10<!-- -->
24
+ <!-- -->18:34:20<!-- --> </h3>
25
+ <h4
26
+ await="{&quot;name&quot;:&quot;InnerAsyncComponent&quot;,&quot;path&quot;:&quot;/mnt/b/Repositorios/reactful/experiment/routes/clock.tsx&quot;}"
27
+ tag="h4" uid="12" class="TimeZone">loading...</h4>
28
+ </div>
29
+ </body>
29
30
  </html>
@@ -1,30 +1,31 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="description" content="Home page">
7
- <meta name="theme-color" content="#333">
8
- <link rel="stylesheet" href="/assets/markdown.css">
9
- <link rel="stylesheet" href="/assets/default.css">
10
- <link rel="manifest" href="/assets/manifest.json">
11
- <title>Welcome</title>
12
- <meta name='viewport' content='width=device-width, initial-scale=1.0' />
13
- <meta name='description' content='Home page' />
14
- <meta name='theme-color' content='#333' />
15
- <meta name='title' content='Welcome' />
16
- <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
17
- <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
18
- <body>
19
- <div id='root'>
20
- <h1 tag="h1" uid="3" class="default">Counter</h1>
21
- <jsx tag="jsx" uid="9" own="default"
22
- src="/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx" hidden
23
- class="default">
24
- <button style="padding:20px">COUNTED: <b>0</b>
25
- </button>
26
- </jsx>
27
- <h6 tag="h6" uid="7" class="default" hidden>DONT SHOW ME!</h6>
28
- </div>
29
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Home page">
7
+ <meta name="theme-color" content="#333">
8
+ <link rel="stylesheet" href="/assets/bootstrap-icons.css">
9
+ <link rel="stylesheet" href="/assets/markdown.css">
10
+ <link rel="stylesheet" href="/assets/default.css">
11
+ <link rel="manifest" href="/assets/manifest.json">
12
+ <title>Welcome</title>
13
+ <meta name='viewport' content='width=device-width, initial-scale=1.0' />
14
+ <meta name='description' content='Home page' />
15
+ <meta name='theme-color' content='#333' />
16
+ <meta name='title' content='Welcome' />
17
+ <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
18
+ <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
19
+ <body>
20
+ <div id='root'>
21
+ <h1 tag="h1" uid="3" class="default">Counter</h1>
22
+ <jsx tag="jsx" uid="9" own="default"
23
+ src="/mnt/b/Repositorios/reactful/experiment/routes/counter.tsx" hidden
24
+ class="default">
25
+ <button style="padding:20px">COUNTED: <b>0</b>
26
+ </button>
27
+ </jsx>
28
+ <h6 tag="h6" uid="7" class="default" hidden>DONT SHOW ME!</h6>
29
+ </div>
30
+ </body>
30
31
  </html>
@@ -1,48 +1,49 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="description" content="Home page">
7
- <meta name="theme-color" content="#333">
8
- <link rel="stylesheet" href="/assets/markdown.css">
9
- <link rel="stylesheet" href="/assets/default.css">
10
- <link rel="manifest" href="/assets/manifest.json">
11
- <title>Welcome</title>
12
- <meta name='viewport' content='width=device-width, initial-scale=1.0' />
13
- <meta name='description' content='Home page' />
14
- <meta name='theme-color' content='#333' />
15
- <meta name='title' content='Welcome' />
16
- <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
17
- <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
18
- <body>
19
- <div id='root'>
20
- <jsx tag="jsx" uid="2" own="default"
21
- src="/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx" hidden
22
- class="default">
23
- <h1>Uncontrolled Components</h1>
24
- <progress hidden>test...</progress>
25
- <form cols="2" method="post" action="https://jsonplaceholder.typicode.com/posts1">
26
- <label>Name<input id="name" bind="name" />
27
- </label>
28
- <label>Date<input type="date" bind="date" />
29
- </label>
30
- <label>Work<input pattern="dev|test" bind="work" />
31
- </label>
32
- <label>Mode<input bind="mode" />
33
- </label>
34
- <hr />
35
- <hr />
36
- <label>Accept?<input bind="term" type="checkbox" required />
37
- </label>
38
- <button>Submit</button>
39
- </form>
40
- <fieldset>
41
- <legend>ERROR</legend>
42
- <ul>
43
- </ul>
44
- </fieldset>
45
- </jsx>
46
- </div>
47
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Home page">
7
+ <meta name="theme-color" content="#333">
8
+ <link rel="stylesheet" href="/assets/bootstrap-icons.css">
9
+ <link rel="stylesheet" href="/assets/markdown.css">
10
+ <link rel="stylesheet" href="/assets/default.css">
11
+ <link rel="manifest" href="/assets/manifest.json">
12
+ <title>Welcome</title>
13
+ <meta name='viewport' content='width=device-width, initial-scale=1.0' />
14
+ <meta name='description' content='Home page' />
15
+ <meta name='theme-color' content='#333' />
16
+ <meta name='title' content='Welcome' />
17
+ <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
18
+ <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
19
+ <body>
20
+ <div id='root'>
21
+ <jsx tag="jsx" uid="2" own="default"
22
+ src="/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx" hidden
23
+ class="default">
24
+ <h1>Uncontrolled Components</h1>
25
+ <progress hidden>test...</progress>
26
+ <form cols="2" method="post" action="https://jsonplaceholder.typicode.com/posts1">
27
+ <label>Name<input id="name" bind="name" />
28
+ </label>
29
+ <label>Date<input type="date" bind="date" />
30
+ </label>
31
+ <label>Work<input pattern="dev|test" bind="work" />
32
+ </label>
33
+ <label>Mode<input bind="mode" />
34
+ </label>
35
+ <hr />
36
+ <hr />
37
+ <label>Accept?<input bind="term" type="checkbox" required />
38
+ </label>
39
+ <button>Submit</button>
40
+ </form>
41
+ <fieldset>
42
+ <legend>ERROR</legend>
43
+ <ul>
44
+ </ul>
45
+ </fieldset>
46
+ </jsx>
47
+ </div>
48
+ </body>
48
49
  </html>
@@ -1,48 +1,49 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="description" content="Home page">
7
- <meta name="theme-color" content="#333">
8
- <link rel="stylesheet" href="/assets/markdown.css">
9
- <link rel="stylesheet" href="/assets/default.css">
10
- <link rel="manifest" href="/assets/manifest.json">
11
- <title>Welcome</title>
12
- <meta name='viewport' content='width=device-width, initial-scale=1.0' />
13
- <meta name='description' content='Home page' />
14
- <meta name='theme-color' content='#333' />
15
- <meta name='title' content='Welcome' />
16
- <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
17
- <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
18
- <body>
19
- <div id='root'>
20
- <jsx tag="jsx" uid="2" own="default"
21
- src="/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx" hidden
22
- class="default">
23
- <h1>Uncontrolled Components</h1>
24
- <progress hidden>test...</progress>
25
- <form cols="2" method="post" action="https://jsonplaceholder.typicode.com/posts1">
26
- <label>Name<input id="name" bind="name" />
27
- </label>
28
- <label>Date<input type="date" bind="date" />
29
- </label>
30
- <label>Work<input pattern="dev|test" bind="work" />
31
- </label>
32
- <label>Mode<input bind="mode" />
33
- </label>
34
- <hr />
35
- <hr />
36
- <label>Accept?<input bind="term" type="checkbox" required />
37
- </label>
38
- <button>Submit</button>
39
- </form>
40
- <fieldset>
41
- <legend>ERROR</legend>
42
- <ul>
43
- </ul>
44
- </fieldset>
45
- </jsx>
46
- </div>
47
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Home page">
7
+ <meta name="theme-color" content="#333">
8
+ <link rel="stylesheet" href="/assets/bootstrap-icons.css">
9
+ <link rel="stylesheet" href="/assets/markdown.css">
10
+ <link rel="stylesheet" href="/assets/default.css">
11
+ <link rel="manifest" href="/assets/manifest.json">
12
+ <title>Welcome</title>
13
+ <meta name='viewport' content='width=device-width, initial-scale=1.0' />
14
+ <meta name='description' content='Home page' />
15
+ <meta name='theme-color' content='#333' />
16
+ <meta name='title' content='Welcome' />
17
+ <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
18
+ <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
19
+ <body>
20
+ <div id='root'>
21
+ <jsx tag="jsx" uid="2" own="default"
22
+ src="/mnt/b/Repositorios/reactful/experiment/routes/forms/form.tsx" hidden
23
+ class="default">
24
+ <h1>Uncontrolled Components</h1>
25
+ <progress hidden>test...</progress>
26
+ <form cols="2" method="post" action="https://jsonplaceholder.typicode.com/posts1">
27
+ <label>Name<input id="name" bind="name" />
28
+ </label>
29
+ <label>Date<input type="date" bind="date" />
30
+ </label>
31
+ <label>Work<input pattern="dev|test" bind="work" />
32
+ </label>
33
+ <label>Mode<input bind="mode" />
34
+ </label>
35
+ <hr />
36
+ <hr />
37
+ <label>Accept?<input bind="term" type="checkbox" required />
38
+ </label>
39
+ <button>Submit</button>
40
+ </form>
41
+ <fieldset>
42
+ <legend>ERROR</legend>
43
+ <ul>
44
+ </ul>
45
+ </fieldset>
46
+ </jsx>
47
+ </div>
48
+ </body>
48
49
  </html>
@@ -1,60 +1,62 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="description" content="Home page">
7
- <meta name="theme-color" content="#333">
8
- <link rel="stylesheet" href="/assets/markdown.css">
9
- <link rel="stylesheet" href="/assets/default.css">
10
- <link rel="manifest" href="/assets/manifest.json">
11
- <title>Welcome</title>
12
- <meta name='viewport' content='width=device-width, initial-scale=1.0' />
13
- <meta name='description' content='Home page' />
14
- <meta name='theme-color' content='#333' />
15
- <meta name='title' content='Welcome' />
16
- <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
17
- <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
18
- <body>
19
- <div id='root'>
20
- <jsx tag="jsx" uid="2" own="default"
21
- src="/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx" hidden class="default">
22
- <h1 style="color:wheat">Hello Forms</h1>
23
- <main gaps="0 10px" cols="1">
24
- <label>
25
- <b>LOCAL state </b> <code>function(props)</code>
26
- <br />
27
- <input id="1" data="[object Object]" bind="value" placeholder="{props}" />
28
- <input id="1.1" bind="value" placeholder="default" />
29
- <input id="1.1.1" placeholder="inner" data="[object Object]" bind="value" />
30
- <label> = </label>
31
- </label>
32
- <label>
33
- <b>GLOBAL state</b> <code>function(props, <!-- -->{ store }<!-- -->)</code>
34
- <br />
35
- <input id="2" data="[object Object]" bind="value" placeholder="outer" />
36
- <input id="2.1" placeholder="inner" bind="value" />
37
- </label>
38
- <label>
39
- <b>ORBITAL state</b> <code>useStore(...) + @state(...) </code>
40
- <br />
41
- <input id="3" data="[object Object]" bind="value" placeholder="outer" />
42
- <input id="3.1" placeholder="inner" data="[object Object]" bind="value" />
43
- <input id="3.2" data="[object Object]" bind="value" placeholder="other" /> =
44
- <!-- -->1</label>
45
- </main>
46
- <br />
47
- <hr />
48
- <code>
49
- <strong>local</strong>: <label id="l1">
50
- </label>
51
- <br />
52
- <strong>global</strong>: <label id="l2">
53
- </label>
54
- <br />
55
- <strong>orbital</strong>: <label id="l3">0</label>
56
- </code>
57
- </jsx>
58
- </div>
59
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Home page">
7
+ <meta name="theme-color" content="#333">
8
+ <link rel="stylesheet" href="/assets/bootstrap-icons.css">
9
+ <link rel="stylesheet" href="/assets/markdown.css">
10
+ <link rel="stylesheet" href="/assets/default.css">
11
+ <link rel="manifest" href="/assets/manifest.json">
12
+ <title>Welcome</title>
13
+ <meta name='viewport' content='width=device-width, initial-scale=1.0' />
14
+ <meta name='description' content='Home page' />
15
+ <meta name='theme-color' content='#333' />
16
+ <meta name='title' content='Welcome' />
17
+ <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
18
+ <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
19
+ <body>
20
+ <div id='root'>
21
+ <jsx tag="jsx" uid="2" own="default"
22
+ src="/mnt/b/Repositorios/reactful/experiment/routes/hello.tsx" hidden class="default">
23
+ <h1 style="color:wheat">Hello Forms</h1>
24
+ <main gaps="0 10px" cols="1" class="hello">
25
+ <label>
26
+ <b>LOCAL state </b> <code>function(props)</code>
27
+ <br />
28
+ <input id="1" data="[object Object]" bind="value" placeholder="{props}" />
29
+ <input id="1.1" bind="value" placeholder="default" />
30
+ <input id="1.1.1" placeholder="inner" style="text-align:right"
31
+ data="[object Object]" bind="value" />
32
+ <label> = </label>
33
+ </label>
34
+ <label>
35
+ <b>GLOBAL state</b> <code>function(props, <!-- -->{ store }<!-- -->)</code>
36
+ <br />
37
+ <input id="2" data="[object Object]" bind="value" placeholder="outer" />
38
+ <input id="2.1" placeholder="inner" bind="value" />
39
+ </label>
40
+ <label>
41
+ <b>ORBITAL state</b> <code>useStore(...) + @client(true, ...) </code>
42
+ <br />
43
+ <input id="3" data="[object Object]" bind="value" placeholder="outer" />
44
+ <input id="3.1" placeholder="inner" data="[object Object]" bind="value" />
45
+ <input id="3.2" style="text-align:right" data="[object Object]" bind="value"
46
+ placeholder="other" /> = <!-- -->99</label>
47
+ </main>
48
+ <br />
49
+ <hr />
50
+ <code>
51
+ <strong>local</strong>: <label id="l1">
52
+ </label>
53
+ <br />
54
+ <strong>global</strong>: <label id="l2">
55
+ </label>
56
+ <br />
57
+ <strong>orbital</strong>: <label id="l3">11</label>
58
+ </code>
59
+ </jsx>
60
+ </div>
61
+ </body>
60
62
  </html>
@@ -1,24 +1,27 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta name="description" content="Home page">
7
- <meta name="theme-color" content="#333">
8
- <link rel="stylesheet" href="/assets/markdown.css">
9
- <link rel="stylesheet" href="/assets/default.css">
10
- <link rel="manifest" href="/assets/manifest.json">
11
- <title>Sample</title>
12
- <meta name='title' content='Sample' />
13
- <meta name='description' content='Sample page' />
14
- <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
15
- <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
16
- <body>
17
- <div id='root'>
18
- <h1 style="color:wheat">HTML-X</h1>
19
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Similique eum quaerat nesciunt
20
- est molestias accusantium aut sit odit, vero voluptate iure vel aperiam modi libero in
21
- praesentium nam obcaecati error!</p>
22
- </div>
23
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Home page">
7
+ <meta name="theme-color" content="#333">
8
+ <link rel="stylesheet" href="/assets/bootstrap-icons.css">
9
+ <link rel="stylesheet" href="/assets/markdown.css">
10
+ <link rel="stylesheet" href="/assets/default.css">
11
+ <link rel="manifest" href="/assets/manifest.json">
12
+ <title>Welcome</title>
13
+ <meta name='viewport' content='width=device-width, initial-scale=1.0' />
14
+ <meta name='description' content='Home page' />
15
+ <meta name='theme-color' content='#333' />
16
+ <meta name='title' content='Welcome' />
17
+ <script src='/mnt/b/Repositorios/reactful/experiment/builds/shared.js'></script>
18
+ <script type='module' src='/mnt/b/Repositorios/reactful/experiment/builds/bundle.js'></script></head>
19
+ <body>
20
+ <div id='root'>
21
+ <h1 style="color:wheat">HTML-X</h1>
22
+ <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Similique eum quaerat nesciunt
23
+ est molestias accusantium aut sit odit, vero voluptate iure vel aperiam modi libero in
24
+ praesentium nam obcaecati error!</p>
25
+ </div>
26
+ </body>
24
27
  </html>
@@ -1,13 +1,13 @@
1
- import React from 'react'
2
- import { Header } from '../components/header.tsx'
3
- export default function() {
4
- return <>
5
- <Header title="HTML-X" />
6
- <p>
7
- Lorem ipsum dolor sit amet consectetur adipisicing elit.
8
- Similique eum quaerat nesciunt est molestias accusantium
9
- aut sit odit, vero voluptate iure vel aperiam modi libero
10
- in praesentium nam obcaecati error!
11
- </p>
12
- </>
1
+ import React from 'react'
2
+ import { Header } from '../components/header'
3
+ export default function() {
4
+ return <>
5
+ <Header title="HTML-X" />
6
+ <p>
7
+ Lorem ipsum dolor sit amet consectetur adipisicing elit.
8
+ Similique eum quaerat nesciunt est molestias accusantium
9
+ aut sit odit, vero voluptate iure vel aperiam modi libero
10
+ in praesentium nam obcaecati error!
11
+ </p>
12
+ </>
13
13
  }