@reactful/create 1.2.2 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) 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 +10 -10
  8. package/templates/minimal/components/index.ts +1 -1
  9. package/templates/minimal/routes/index.tsx +7 -7
  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 +4 -4
  17. package/templates/sampling/assets/default.css +93 -93
  18. package/templates/sampling/assets/icon.svg +6 -6
  19. package/templates/sampling/assets/manifest.json +56 -56
  20. package/templates/sampling/assets/markdown.css +273 -273
  21. package/templates/sampling/assets/robots.txt +1 -1
  22. package/templates/sampling/assets/system.css +6 -6
  23. package/templates/sampling/builds/about.html +29 -29
  24. package/templates/sampling/builds/bundle.js +34763 -34763
  25. package/templates/sampling/builds/bundle.ts +20 -20
  26. package/templates/sampling/builds/clock.html +29 -29
  27. package/templates/sampling/builds/counter.html +30 -30
  28. package/templates/sampling/builds/forms/form.html +48 -48
  29. package/templates/sampling/builds/forms/index.html +48 -48
  30. package/templates/sampling/builds/hello.html +61 -61
  31. package/templates/sampling/builds/htmlx.html +26 -26
  32. package/templates/sampling/builds/htmlx.tsx +12 -12
  33. package/templates/sampling/builds/index.html +98 -98
  34. package/templates/sampling/builds/login.html +47 -47
  35. package/templates/sampling/builds/profile/index.html +54 -54
  36. package/templates/sampling/builds/quotes.html +26 -26
  37. package/templates/sampling/builds/shared.js +76 -76
  38. package/templates/sampling/builds/system.html +27 -27
  39. package/templates/sampling/components/header.tsx +6 -6
  40. package/templates/sampling/components/hello.tsx +8 -8
  41. package/templates/sampling/components/icon.tsx +10 -10
  42. package/templates/sampling/components/index.ts +2 -2
  43. package/templates/sampling/index.html +20 -20
  44. package/templates/sampling/index.ts +18 -18
  45. package/templates/sampling/routes/about.html +12 -12
  46. package/templates/sampling/routes/clock.tsx +36 -36
  47. package/templates/sampling/routes/forms/form.tsx +50 -50
  48. package/templates/sampling/routes/hello.tsx +58 -58
  49. package/templates/sampling/routes/htmlx.html +14 -14
  50. package/templates/sampling/routes/index.md +14 -14
  51. package/templates/sampling/routes/login.tsx +35 -35
  52. package/templates/sampling/routes/profile/detail.css +12 -12
  53. package/templates/sampling/routes/profile/detail.tsx +47 -47
  54. package/templates/sampling/routes/profile/index.tsx +13 -13
  55. package/templates/sampling/routes/profile/profile.css +8 -8
  56. package/templates/sampling/routes/profile/tester.tsx +10 -10
  57. package/templates/sampling/tests/access.spec.ts +29 -29
  58. package/templates/sampling/tests/counter.spec.ts +18 -18
  59. package/templates/sampling/tests/form.spec.ts +50 -50
  60. package/templates/sampling/tests/hello.spec.ts +24 -24
  61. package/templates/sampling/tests/path.test.ts +19 -19
  62. package/vscode/launch.json +8 -8
@@ -1,99 +1,99 @@
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>Welcome</h1>
22
- <blockquote>
23
- <p>with markdown (powered by marked)</p>
24
- </blockquote>
25
- <table>
26
- <thead>
27
- <tr>
28
- <th align="right">
29
- </th>
30
- <th>
31
- </th>
32
- </tr>
33
- </thead>
34
- <tbody>
35
- <tr>
36
- <td align="right">
37
- <a href="/about">About</a>
38
- </td>
39
- <td>Static generation (default)</td>
40
- </tr>
41
- <tr>
42
- <td align="right">
43
- <a href="/clock">Clock</a>
44
- </td>
45
- <td>Dynamic generation (with lazy)</td>
46
- </tr>
47
- <tr>
48
- <td align="right">
49
- <a href="/htmlx">HTML-X</a>
50
- </td>
51
- <td>HTML with JSX using link[type="component"]</td>
52
- </tr>
53
- <tr>
54
- <td align="right">
55
- <a href="/system">System</a>
56
- </td>
57
- <td>Server component</td>
58
- </tr>
59
- <tr>
60
- <td align="right">
61
- <a href="/quotes">Quotes</a>
62
- </td>
63
- <td>Periodic genreation</td>
64
- </tr>
65
- <tr>
66
- <td align="right">
67
- <a href="/counter">Counter</a>
68
- </td>
69
- <td>Client component</td>
70
- </tr>
71
- <tr>
72
- <td align="right">
73
- <a href="/hello">Hello</a>
74
- </td>
75
- <td>Stateful object + data bind props</td>
76
- </tr>
77
- <tr>
78
- <td align="right">
79
- <a href="/forms">Forms</a>
80
- </td>
81
- <td>reactful forms + validation API + RESTful action</td>
82
- </tr>
83
- <tr>
84
- <td align="right">
85
- <a href="/login">Login</a>
86
- </td>
87
- <td>reactful forms RESTful action authentication</td>
88
- </tr>
89
- <tr>
90
- <td align="right">
91
- <a href="/profile/123">Profile</a>
92
- </td>
93
- <td>Parametric (dynamic) routes with modular CSS</td>
94
- </tr>
95
- </tbody>
96
- </table>
97
- </div>
98
- </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>Welcome</h1>
22
+ <blockquote>
23
+ <p>with markdown (powered by marked)</p>
24
+ </blockquote>
25
+ <table>
26
+ <thead>
27
+ <tr>
28
+ <th align="right">
29
+ </th>
30
+ <th>
31
+ </th>
32
+ </tr>
33
+ </thead>
34
+ <tbody>
35
+ <tr>
36
+ <td align="right">
37
+ <a href="/about">About</a>
38
+ </td>
39
+ <td>Static generation (default)</td>
40
+ </tr>
41
+ <tr>
42
+ <td align="right">
43
+ <a href="/clock">Clock</a>
44
+ </td>
45
+ <td>Dynamic generation (with lazy)</td>
46
+ </tr>
47
+ <tr>
48
+ <td align="right">
49
+ <a href="/htmlx">HTML-X</a>
50
+ </td>
51
+ <td>HTML with JSX using link[type="component"]</td>
52
+ </tr>
53
+ <tr>
54
+ <td align="right">
55
+ <a href="/system">System</a>
56
+ </td>
57
+ <td>Server component</td>
58
+ </tr>
59
+ <tr>
60
+ <td align="right">
61
+ <a href="/quotes">Quotes</a>
62
+ </td>
63
+ <td>Periodic genreation</td>
64
+ </tr>
65
+ <tr>
66
+ <td align="right">
67
+ <a href="/counter">Counter</a>
68
+ </td>
69
+ <td>Client component</td>
70
+ </tr>
71
+ <tr>
72
+ <td align="right">
73
+ <a href="/hello">Hello</a>
74
+ </td>
75
+ <td>Stateful object + data bind props</td>
76
+ </tr>
77
+ <tr>
78
+ <td align="right">
79
+ <a href="/forms">Forms</a>
80
+ </td>
81
+ <td>reactful forms + validation API + RESTful action</td>
82
+ </tr>
83
+ <tr>
84
+ <td align="right">
85
+ <a href="/login">Login</a>
86
+ </td>
87
+ <td>reactful forms RESTful action authentication</td>
88
+ </tr>
89
+ <tr>
90
+ <td align="right">
91
+ <a href="/profile/123">Profile</a>
92
+ </td>
93
+ <td>Parametric (dynamic) routes with modular CSS</td>
94
+ </tr>
95
+ </tbody>
96
+ </table>
97
+ </div>
98
+ </body>
99
99
  </html>
@@ -1,48 +1,48 @@
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/login.tsx" hidden class="default">
23
- <h1>
24
- <i class="bi bi-undefined bi-user" title>
25
- </i>Login</h1>
26
- <progress hidden>loading...</progress>
27
- <form method="POST" action="http://localhost:3000/api/auth" bearer="access_token">
28
- <section cols="1">
29
- <label>UserName<input bind="username" />
30
- </label>
31
- <label>PassWord<input type="password" bind="password" />
32
- </label>
33
- </section>
34
- <button>Submit</button>
35
- </form>
36
- <fieldset>
37
- <legend>ERROR</legend>
38
- <ul>
39
- </ul>
40
- </fieldset>
41
- <br />
42
- <fieldset style="word-break:break-all">
43
- <legend>token</legend>
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/login.tsx" hidden class="default">
23
+ <h1>
24
+ <i class="bi bi-undefined bi-user" title>
25
+ </i>Login</h1>
26
+ <progress hidden>loading...</progress>
27
+ <form method="POST" action="http://localhost:3000/api/auth" bearer="access_token">
28
+ <section cols="1">
29
+ <label>UserName<input bind="username" />
30
+ </label>
31
+ <label>PassWord<input type="password" bind="password" />
32
+ </label>
33
+ </section>
34
+ <button>Submit</button>
35
+ </form>
36
+ <fieldset>
37
+ <legend>ERROR</legend>
38
+ <ul>
39
+ </ul>
40
+ </fieldset>
41
+ <br />
42
+ <fieldset style="word-break:break-all">
43
+ <legend>token</legend>
44
+ </fieldset>
45
+ </jsx>
46
+ </div>
47
+ </body>
48
48
  </html>
@@ -1,55 +1,55 @@
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" style="color:#ffb300">Profile</h1>
22
- <jsx tag="jsx" uid="12" own="default"
23
- src="/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx" hidden
24
- class="default">
25
- <h3>Detail</h3>Parametric value = <b>
26
- </b>
27
- <hr />
28
- <p>modular CSS keep original color</p>
29
- <fieldset>
30
- <legend>Mode</legend>
31
- <section>
32
- <button link="./developer">developer</button>
33
- <button link="./manager">manager</button>
34
- <button link="./tester">tester(component)</button>
35
- </section>
36
- <hr />
37
- <section route="./developer">
38
- <b>DEVELOPER</b> is Lorem ipsum dolor sit amet consectetur adipisicing elit.
39
- Aspernatur similique ipsa, molestiae numquam laudantium quod, aliquid soluta
40
- cumque placeat saepe mollitia sint consectetur labore consequatur pariatur
41
- praesentium animi. Obcaecati, nihil?</section>
42
- <section route="./manager">
43
- <b>MANAGER</b> is Lorem ipsum dolor sit amet consectetur adipisicing elit.
44
- Aspernatur similique ipsa, molestiae numquam laudantium quod, aliquid soluta
45
- cumque placeat saepe mollitia sint consectetur labore consequatur pariatur
46
- praesentium animi. Obcaecati, nihil?</section>
47
- <div>
48
- </div>
49
- </fieldset>
50
- </jsx>
51
- <hr tag="hr" uid="8" class="default" />
52
- <p tag="p" uid="10" class="default" style="color:red">modular CSS chainging to red</p>
53
- </div>
54
- </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" style="color:#ffb300">Profile</h1>
22
+ <jsx tag="jsx" uid="12" own="default"
23
+ src="/mnt/b/Repositorios/reactful/experiment/routes/profile/detail.tsx" hidden
24
+ class="default">
25
+ <h3>Detail</h3>Parametric value = <b>
26
+ </b>
27
+ <hr />
28
+ <p>modular CSS keep original color</p>
29
+ <fieldset>
30
+ <legend>Mode</legend>
31
+ <section>
32
+ <button link="./developer">developer</button>
33
+ <button link="./manager">manager</button>
34
+ <button link="./tester">tester(component)</button>
35
+ </section>
36
+ <hr />
37
+ <section route="./developer">
38
+ <b>DEVELOPER</b> is Lorem ipsum dolor sit amet consectetur adipisicing elit.
39
+ Aspernatur similique ipsa, molestiae numquam laudantium quod, aliquid soluta
40
+ cumque placeat saepe mollitia sint consectetur labore consequatur pariatur
41
+ praesentium animi. Obcaecati, nihil?</section>
42
+ <section route="./manager">
43
+ <b>MANAGER</b> is Lorem ipsum dolor sit amet consectetur adipisicing elit.
44
+ Aspernatur similique ipsa, molestiae numquam laudantium quod, aliquid soluta
45
+ cumque placeat saepe mollitia sint consectetur labore consequatur pariatur
46
+ praesentium animi. Obcaecati, nihil?</section>
47
+ <div>
48
+ </div>
49
+ </fieldset>
50
+ </jsx>
51
+ <hr tag="hr" uid="8" class="default" />
52
+ <p tag="p" uid="10" class="default" style="color:red">modular CSS chainging to red</p>
53
+ </div>
54
+ </body>
55
55
  </html>
@@ -1,27 +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/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>My custom error component</h1>
22
- <p> <!-- -->Unable to connect. Is the computer able to access the url?<!-- --> </p>
23
- <hr />
24
- <code>it will be regenerated in each 30min(press F5 to check)</code>
25
- </div>
26
- </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>My custom error component</h1>
22
+ <p> <!-- -->Unable to connect. Is the computer able to access the url?<!-- --> </p>
23
+ <hr />
24
+ <code>it will be regenerated in each 30min(press F5 to check)</code>
25
+ </div>
26
+ </body>
27
27
  </html>