slicejs-web-framework 4.0.2 → 4.1.1

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/LICENSE +21 -21
  2. package/README.md +97 -97
  3. package/Slice/Components/Structural/ContextManager/ContextManager.js +422 -422
  4. package/Slice/Components/Structural/ContextManager/ContextManagerDebugger.js +470 -470
  5. package/Slice/Components/Structural/Controller/Controller.js +1406 -1406
  6. package/Slice/Components/Structural/Controller/allowedValuesValidation.js +52 -52
  7. package/Slice/Components/Structural/Debugger/Debugger.html +72 -72
  8. package/Slice/Components/Structural/Debugger/Debugger.js +1505 -1505
  9. package/Slice/Components/Structural/EventManager/EventManager.js +651 -651
  10. package/Slice/Components/Structural/EventManager/EventManagerDebugger.js +985 -985
  11. package/Slice/Components/Structural/LeakInspector/LeakInspector.js +296 -296
  12. package/Slice/Components/Structural/Logger/Log.js +10 -10
  13. package/Slice/Components/Structural/Logger/LogViewer/LogViewer.js +662 -662
  14. package/Slice/Components/Structural/Logger/Logger.js +225 -225
  15. package/Slice/Components/Structural/Router/Router.js +820 -810
  16. package/Slice/Components/Structural/Router/applyRouteMetadata.js +39 -0
  17. package/Slice/Components/Structural/StylesManager/StylesManager.js +82 -82
  18. package/Slice/Components/Structural/StylesManager/ThemeManager/ThemeManager.js +175 -175
  19. package/Slice/Slice.js +711 -710
  20. package/api/framework/devDepsOptimizer.js +335 -335
  21. package/api/framework/express.js +3 -3
  22. package/api/framework/precompressedStatic.js +102 -93
  23. package/api/framework/publicEnvResolver.js +123 -123
  24. package/api/framework/securityMiddleware.js +197 -197
  25. package/api/framework/seo.js +387 -0
  26. package/api/framework/server.js +777 -410
  27. package/api/index.js +14 -4
  28. package/package.json +6 -2
  29. package/sliceConfig.schema.json +122 -122
  30. package/src/App/index.html +69 -69
  31. package/src/App/index.js +20 -20
  32. package/src/App/style.css +11 -11
  33. package/src/Components/AppComponents/AboutSection/AboutSection.css +9 -9
  34. package/src/Components/AppComponents/AboutSection/AboutSection.html +8 -8
  35. package/src/Components/AppComponents/AboutSection/AboutSection.js +12 -12
  36. package/src/Components/AppComponents/AppShell/AppShell.css +10 -10
  37. package/src/Components/AppComponents/AppShell/AppShell.html +4 -4
  38. package/src/Components/AppComponents/AppShell/AppShell.js +36 -36
  39. package/src/Components/AppComponents/HomeSection/HomeSection.css +20 -20
  40. package/src/Components/AppComponents/HomeSection/HomeSection.html +10 -10
  41. package/src/Components/AppComponents/HomeSection/HomeSection.js +19 -19
  42. package/src/Components/components.js +8 -8
  43. package/src/public/Styles/sliceStyles.css +34 -34
  44. package/src/public/Themes/Dark.css +42 -42
  45. package/src/public/Themes/Light.css +31 -31
  46. package/src/public/Themes/Slice.css +47 -47
  47. package/src/public/manifest.json +15 -15
  48. package/src/public/robots.txt +4 -4
  49. package/src/public/sitemap.xml +8 -8
  50. package/src/routes.js +9 -9
  51. package/src/sliceConfig.json +72 -72
  52. package/types/index.d.ts +219 -219
  53. package/.opencode/opencode.json +0 -15
  54. package/Slice/tests/build-bundled-component-without-category.test.js +0 -103
  55. package/Slice/tests/build-js-only-visual-components.test.js +0 -144
  56. package/Slice/tests/build-singleton.test.js +0 -244
  57. package/Slice/tests/bundle-v2-runtime-contract.test.js +0 -747
  58. package/Slice/tests/context-patch-use.test.js +0 -95
  59. package/Slice/tests/destroy-cascade.test.js +0 -215
  60. package/Slice/tests/event-emitters.test.js +0 -79
  61. package/Slice/tests/event-registry.test.js +0 -141
  62. package/Slice/tests/fixtures/real-runtime-loader.mjs +0 -21
  63. package/Slice/tests/leak-orphans.test.js +0 -131
  64. package/Slice/tests/props-allowed-values-validation.test.js +0 -119
  65. package/Slice/tests/public-env-runtime-accessors.test.js +0 -44
  66. package/Slice/tests/public-env-typed-accessors.test.js +0 -66
  67. package/Slice/tests/router-loading-finally.test.js +0 -68
  68. package/api/tests/dev-deps-optimizer.test.js +0 -137
  69. package/api/tests/dev-server-external.test.js +0 -56
  70. package/api/tests/precompressed-static.test.js +0 -119
  71. package/api/tests/public-env-resolver.test.js +0 -193
  72. package/tests/router-build-failure.test.js +0 -125
  73. package/tests/router-emit-ordering.test.js +0 -63
@@ -1,36 +1,36 @@
1
- export default class AppShell extends HTMLElement {
2
- constructor(props) {
3
- super();
4
- slice.attachTemplate(this);
5
- this.$header = this.querySelector('.app-shell__header');
6
- this.$content = this.querySelector('.app-shell__content');
7
- slice.controller.setComponentProps(this, props);
8
- }
9
-
10
- async init() {
11
- // Persistent navbar — built once, stays across navigations.
12
- const navbar = await slice.build('Navbar', {
13
- sliceId: 'app-navbar',
14
- position: 'fixed',
15
- items: [
16
- { text: 'Home', path: '/' },
17
- { text: 'About', path: '/about' }
18
- ]
19
- });
20
- this.$header.appendChild(navbar);
21
-
22
- // Content area — a MultiRoute swaps the matching section by URL.
23
- // MultiRoute caches each section instance, so give sections an update()
24
- // method if they show dynamic data.
25
- const content = await slice.build('MultiRoute', {
26
- sliceId: 'app-content',
27
- routes: [
28
- { path: '/', component: 'HomeSection' },
29
- { path: '/about', component: 'AboutSection' }
30
- ]
31
- });
32
- this.$content.appendChild(content);
33
- }
34
- }
35
-
36
- customElements.define('slice-app-shell', AppShell);
1
+ export default class AppShell extends HTMLElement {
2
+ constructor(props) {
3
+ super();
4
+ slice.attachTemplate(this);
5
+ this.$header = this.querySelector('.app-shell__header');
6
+ this.$content = this.querySelector('.app-shell__content');
7
+ slice.controller.setComponentProps(this, props);
8
+ }
9
+
10
+ async init() {
11
+ // Persistent navbar — built once, stays across navigations.
12
+ const navbar = await slice.build('Navbar', {
13
+ sliceId: 'app-navbar',
14
+ position: 'fixed',
15
+ items: [
16
+ { text: 'Home', path: '/' },
17
+ { text: 'About', path: '/about' }
18
+ ]
19
+ });
20
+ this.$header.appendChild(navbar);
21
+
22
+ // Content area — a MultiRoute swaps the matching section by URL.
23
+ // MultiRoute caches each section instance, so give sections an update()
24
+ // method if they show dynamic data.
25
+ const content = await slice.build('MultiRoute', {
26
+ sliceId: 'app-content',
27
+ routes: [
28
+ { path: '/', component: 'HomeSection' },
29
+ { path: '/about', component: 'AboutSection' }
30
+ ]
31
+ });
32
+ this.$content.appendChild(content);
33
+ }
34
+ }
35
+
36
+ customElements.define('slice-app-shell', AppShell);
@@ -1,20 +1,20 @@
1
- .home {
2
- text-align: center;
3
- padding: 32px 0;
4
- }
5
-
6
- .home__title {
7
- font-size: 2rem;
8
- margin-bottom: 12px;
9
- }
10
-
11
- .home__lead {
12
- color: var(--font-secondary-color);
13
- max-width: 60ch;
14
- margin: 0 auto 24px;
15
- line-height: 1.6;
16
- }
17
-
18
- .home__lead code {
19
- color: var(--font-primary-color);
20
- }
1
+ .home {
2
+ text-align: center;
3
+ padding: 32px 0;
4
+ }
5
+
6
+ .home__title {
7
+ font-size: 2rem;
8
+ margin-bottom: 12px;
9
+ }
10
+
11
+ .home__lead {
12
+ color: var(--font-secondary-color);
13
+ max-width: 60ch;
14
+ margin: 0 auto 24px;
15
+ line-height: 1.6;
16
+ }
17
+
18
+ .home__lead code {
19
+ color: var(--font-primary-color);
20
+ }
@@ -1,10 +1,10 @@
1
- <section class="home">
2
- <h1 class="home__title">Welcome to your Slice app</h1>
3
- <p class="home__lead">
4
- This is the App Shell + MultiRoute starter. Edit
5
- <code>src/Components/AppComponents/HomeSection/</code> to change this page, or add a
6
- section: create an AppComponent, then register it in <code>src/routes.js</code> and in
7
- the AppShell's MultiRoute.
8
- </p>
9
- <div class="home__cta"></div>
10
- </section>
1
+ <section class="home">
2
+ <h1 class="home__title">Welcome to your Slice app</h1>
3
+ <p class="home__lead">
4
+ This is the App Shell + MultiRoute starter. Edit
5
+ <code>src/Components/AppComponents/HomeSection/</code> to change this page, or add a
6
+ section: create an AppComponent, then register it in <code>src/routes.js</code> and in
7
+ the AppShell's MultiRoute.
8
+ </p>
9
+ <div class="home__cta"></div>
10
+ </section>
@@ -1,19 +1,19 @@
1
- export default class HomeSection extends HTMLElement {
2
- constructor(props) {
3
- super();
4
- slice.attachTemplate(this);
5
- this.$cta = this.querySelector('.home__cta');
6
- slice.controller.setComponentProps(this, props);
7
- }
8
-
9
- async init() {
10
- // Build child components with slice.build (always await).
11
- const button = await slice.build('Button', {
12
- value: 'Go to About',
13
- onClickCallback: () => slice.router.navigate('/about')
14
- });
15
- this.$cta.appendChild(button);
16
- }
17
- }
18
-
19
- customElements.define('slice-home-section', HomeSection);
1
+ export default class HomeSection extends HTMLElement {
2
+ constructor(props) {
3
+ super();
4
+ slice.attachTemplate(this);
5
+ this.$cta = this.querySelector('.home__cta');
6
+ slice.controller.setComponentProps(this, props);
7
+ }
8
+
9
+ async init() {
10
+ // Build child components with slice.build (always await).
11
+ const button = await slice.build('Button', {
12
+ value: 'Go to About',
13
+ onClickCallback: () => slice.router.navigate('/about')
14
+ });
15
+ this.$cta.appendChild(button);
16
+ }
17
+ }
18
+
19
+ customElements.define('slice-home-section', HomeSection);
@@ -1,8 +1,8 @@
1
- // Template registry: only the AppComponents the starter ships in-tree.
2
- // Visual and Service components are installed from the registry by `slice init`
3
- // (and any later `slice get`), which registers them here automatically.
4
- const components = {
5
- "AppShell": "AppComponents",
6
- "HomeSection": "AppComponents",
7
- "AboutSection": "AppComponents"
8
- }; export default components;
1
+ // Template registry: only the AppComponents the starter ships in-tree.
2
+ // Visual and Service components are installed from the registry by `slice init`
3
+ // (and any later `slice get`), which registers them here automatically.
4
+ const components = {
5
+ "AppShell": "AppComponents",
6
+ "HomeSection": "AppComponents",
7
+ "AboutSection": "AppComponents"
8
+ }; export default components;
@@ -1,34 +1,34 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Poppins&family=Roboto&display=swap");
2
-
3
- :root {
4
- --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
5
- Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
6
- --border-radius-slice: 5px;
7
- --slice-border: 1px;
8
- }
9
- body {
10
- margin: 0;
11
- background-color: var(--primary-background-color);
12
- }
13
- .caret {
14
- cursor: pointer;
15
- width: 0;
16
- height: 0;
17
- border-left: 5px solid transparent;
18
- border-right: 5px solid transparent;
19
- border-top: 6px solid;
20
- transition: transform 0.3s;
21
- }
22
- .caret_open {
23
- transform: rotate(180deg);
24
- }
25
- *::-webkit-scrollbar {
26
- width: 5px;
27
- }
28
- *::-webkit-scrollbar:horizontal {
29
- height: 3px;
30
- }
31
- *::-webkit-scrollbar-thumb {
32
- background: var(--secondary-color);
33
- border-radius: var(--border-radius-slice);
34
- }
1
+ @import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Poppins&family=Roboto&display=swap");
2
+
3
+ :root {
4
+ --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
5
+ Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
6
+ --border-radius-slice: 5px;
7
+ --slice-border: 1px;
8
+ }
9
+ body {
10
+ margin: 0;
11
+ background-color: var(--primary-background-color);
12
+ }
13
+ .caret {
14
+ cursor: pointer;
15
+ width: 0;
16
+ height: 0;
17
+ border-left: 5px solid transparent;
18
+ border-right: 5px solid transparent;
19
+ border-top: 6px solid;
20
+ transition: transform 0.3s;
21
+ }
22
+ .caret_open {
23
+ transform: rotate(180deg);
24
+ }
25
+ *::-webkit-scrollbar {
26
+ width: 5px;
27
+ }
28
+ *::-webkit-scrollbar:horizontal {
29
+ height: 3px;
30
+ }
31
+ *::-webkit-scrollbar-thumb {
32
+ background: var(--secondary-color);
33
+ border-radius: var(--border-radius-slice);
34
+ }
@@ -1,42 +1,42 @@
1
- :root {
2
- --font-primary-color: #fff;
3
-
4
- /** primary **/
5
- --primary-color: #0066ff;
6
- --primary-color-rgb: rgb(0, 102, 255);
7
- /* Se reemplaza el negro puro por un gris muy oscuro, más cálido y agradable */
8
- --primary-background-color: #282828; /* antes: #000 */
9
- --primary-color-contrast: #000;
10
- /* Ajustamos la sombra para que armonice con el fondo aclarado */
11
- --primary-color-shade: #383838; /* antes: #222 */
12
-
13
- /** secondary **/
14
- --secondary-color: #63ccfd;
15
- --secondary-color-rgb: rgb(99, 204, 253);
16
- /* Se aclara el fondo secundario para suavizar el efecto general */
17
- --secondary-background-color: #333333; /* antes: #222 */
18
- --secondary-color-contrast: #fff;
19
-
20
- /** tertiary **/
21
- /* Se levanta ligeramente el fondo terciario para mantener la coherencia visual */
22
- --tertiary-background-color: #555555; /* antes: #444 */
23
-
24
- /** success **/
25
- --success-color: #00ff40;
26
- --success-contrast: #000;
27
-
28
- /** warning **/
29
- --warning-color: #ffff40;
30
- --warning-contrast: #000;
31
-
32
- /** danger **/
33
- --danger-color: #ff0000;
34
- --danger-contrast: #000;
35
-
36
- /** medium **/
37
- --medium-color: #92949c;
38
- --medium-contrast: #fff;
39
-
40
- /* Disabled color */
41
- --disabled-color: #7f7f7f;
42
- }
1
+ :root {
2
+ --font-primary-color: #fff;
3
+
4
+ /** primary **/
5
+ --primary-color: #0066ff;
6
+ --primary-color-rgb: rgb(0, 102, 255);
7
+ /* Se reemplaza el negro puro por un gris muy oscuro, más cálido y agradable */
8
+ --primary-background-color: #282828; /* antes: #000 */
9
+ --primary-color-contrast: #000;
10
+ /* Ajustamos la sombra para que armonice con el fondo aclarado */
11
+ --primary-color-shade: #383838; /* antes: #222 */
12
+
13
+ /** secondary **/
14
+ --secondary-color: #63ccfd;
15
+ --secondary-color-rgb: rgb(99, 204, 253);
16
+ /* Se aclara el fondo secundario para suavizar el efecto general */
17
+ --secondary-background-color: #333333; /* antes: #222 */
18
+ --secondary-color-contrast: #fff;
19
+
20
+ /** tertiary **/
21
+ /* Se levanta ligeramente el fondo terciario para mantener la coherencia visual */
22
+ --tertiary-background-color: #555555; /* antes: #444 */
23
+
24
+ /** success **/
25
+ --success-color: #00ff40;
26
+ --success-contrast: #000;
27
+
28
+ /** warning **/
29
+ --warning-color: #ffff40;
30
+ --warning-contrast: #000;
31
+
32
+ /** danger **/
33
+ --danger-color: #ff0000;
34
+ --danger-contrast: #000;
35
+
36
+ /** medium **/
37
+ --medium-color: #92949c;
38
+ --medium-contrast: #fff;
39
+
40
+ /* Disabled color */
41
+ --disabled-color: #7f7f7f;
42
+ }
@@ -1,31 +1,31 @@
1
- :root {
2
- --font-primary-color: #000;
3
- --font-secondary-color: #474747;
4
- /** primary **/
5
- --primary-color: #0066ff;
6
- --primary-color-rgb: rgb(0, 102, 255);
7
- --primary-background-color: #fff;
8
- --primary-color-contrast: #fff;
9
- --primary-color-shade: #ddd;
10
- /** secondary **/
11
- --secondary-color: #63ccfd;
12
- --secondary-color-rgb: rgb(99, 204, 253);
13
- --secondary-background-color: #ddd;
14
- --secondary-color-contrast: #fff;
15
- /** tertiary **/
16
- --tertiary-background-color: #c4c4c4;
17
- /** success **/
18
- --success-color: #00ff40;
19
- --success-contrast: #fff;
20
- /** warning **/
21
- --warning-color: #ffff40;
22
- --warning-contrast: #000;
23
- /** danger **/
24
- --danger-color: #ff0000;
25
- --danger-contrast: #fff;
26
- /** medium **/
27
- --medium-color: #92949c;
28
- --medium--contrast: #000;
29
-
30
- --disabled-color: #7f7f7f;
31
- }
1
+ :root {
2
+ --font-primary-color: #000;
3
+ --font-secondary-color: #474747;
4
+ /** primary **/
5
+ --primary-color: #0066ff;
6
+ --primary-color-rgb: rgb(0, 102, 255);
7
+ --primary-background-color: #fff;
8
+ --primary-color-contrast: #fff;
9
+ --primary-color-shade: #ddd;
10
+ /** secondary **/
11
+ --secondary-color: #63ccfd;
12
+ --secondary-color-rgb: rgb(99, 204, 253);
13
+ --secondary-background-color: #ddd;
14
+ --secondary-color-contrast: #fff;
15
+ /** tertiary **/
16
+ --tertiary-background-color: #c4c4c4;
17
+ /** success **/
18
+ --success-color: #00ff40;
19
+ --success-contrast: #fff;
20
+ /** warning **/
21
+ --warning-color: #ffff40;
22
+ --warning-contrast: #000;
23
+ /** danger **/
24
+ --danger-color: #ff0000;
25
+ --danger-contrast: #fff;
26
+ /** medium **/
27
+ --medium-color: #92949c;
28
+ --medium--contrast: #000;
29
+
30
+ --disabled-color: #7f7f7f;
31
+ }
@@ -1,47 +1,47 @@
1
- :root {
2
- /* Tipografía */
3
- --font-primary-color: #2E1A47; /* Uva oscuro, elegante para lectura */
4
- --font-secondary-color: #7D3AC1; /* Uva brillante para títulos y resaltes */
5
-
6
- /** Primary - Uva intenso **/
7
- --primary-color: #7D3AC1;
8
- --primary-color-rgb: 125, 58, 193;
9
- --primary-background-color: #F8F4FF; /* Lila muy claro como fondo principal */
10
- --primary-color-contrast: #ffffff;
11
- --primary-color-shade: #4E2279;
12
-
13
- /** Secondary - Lima vibrante **/
14
- --secondary-color: #C6FF00; /* Amarillo lima brillante, capta la atención */
15
- --secondary-color-rgb: 198, 255, 0;
16
- --secondary-background-color: #F9FFE1;
17
- --secondary-color-contrast: #2E2E2E;
18
-
19
- /** Tertiary - Turquesa suave **/
20
- --tertiary-background-color: #D0F4F2; /* Fondo suave, fresco y moderno */
21
-
22
- /** Success - Verde esmeralda claro **/
23
- --success-color: #00B894;
24
- --success-contrast: #ffffff;
25
-
26
- /** Warning - Amarillo más tradicional pero suave **/
27
- --warning-color: #FFD54F;
28
- --warning-contrast: #3E2723;
29
-
30
- /** Danger - Coral vibrante (sin caer en rojo tradicional) **/
31
- --danger-color: #FF6F61;
32
- --danger-contrast: #ffffff;
33
-
34
- /** Medium - Gris lavanda para texto secundario **/
35
- --medium-color: #A89FB5;
36
- --medium-contrast: #000000;
37
-
38
- /** Disabled - Gris pastel lavanda **/
39
- --disabled-color: #E6E0F1;
40
-
41
- /** Accent - Turquesa brillante para detalles elegantes **/
42
- --accent-color: #00CFC1;
43
-
44
- /* Sombras */
45
- --box-shadow-primary: 0px 4px 12px rgba(125, 58, 193, 0.15);
46
- --box-shadow-secondary: 0px 3px 8px rgba(198, 255, 0, 0.1);
47
- }
1
+ :root {
2
+ /* Tipografía */
3
+ --font-primary-color: #2E1A47; /* Uva oscuro, elegante para lectura */
4
+ --font-secondary-color: #7D3AC1; /* Uva brillante para títulos y resaltes */
5
+
6
+ /** Primary - Uva intenso **/
7
+ --primary-color: #7D3AC1;
8
+ --primary-color-rgb: 125, 58, 193;
9
+ --primary-background-color: #F8F4FF; /* Lila muy claro como fondo principal */
10
+ --primary-color-contrast: #ffffff;
11
+ --primary-color-shade: #4E2279;
12
+
13
+ /** Secondary - Lima vibrante **/
14
+ --secondary-color: #C6FF00; /* Amarillo lima brillante, capta la atención */
15
+ --secondary-color-rgb: 198, 255, 0;
16
+ --secondary-background-color: #F9FFE1;
17
+ --secondary-color-contrast: #2E2E2E;
18
+
19
+ /** Tertiary - Turquesa suave **/
20
+ --tertiary-background-color: #D0F4F2; /* Fondo suave, fresco y moderno */
21
+
22
+ /** Success - Verde esmeralda claro **/
23
+ --success-color: #00B894;
24
+ --success-contrast: #ffffff;
25
+
26
+ /** Warning - Amarillo más tradicional pero suave **/
27
+ --warning-color: #FFD54F;
28
+ --warning-contrast: #3E2723;
29
+
30
+ /** Danger - Coral vibrante (sin caer en rojo tradicional) **/
31
+ --danger-color: #FF6F61;
32
+ --danger-contrast: #ffffff;
33
+
34
+ /** Medium - Gris lavanda para texto secundario **/
35
+ --medium-color: #A89FB5;
36
+ --medium-contrast: #000000;
37
+
38
+ /** Disabled - Gris pastel lavanda **/
39
+ --disabled-color: #E6E0F1;
40
+
41
+ /** Accent - Turquesa brillante para detalles elegantes **/
42
+ --accent-color: #00CFC1;
43
+
44
+ /* Sombras */
45
+ --box-shadow-primary: 0px 4px 12px rgba(125, 58, 193, 0.15);
46
+ --box-shadow-secondary: 0px 3px 8px rgba(198, 255, 0, 0.1);
47
+ }
@@ -1,15 +1,15 @@
1
- {
2
- "name": "Slice.js Web Framework",
3
- "short_name": "Slice.js",
4
- "start_url": "/",
5
- "display": "standalone",
6
- "background_color": "#F8F4FF",
7
- "theme_color": "#F8F4FF",
8
- "icons": [
9
- {
10
- "src": "/images/favicon.ico",
11
- "sizes": "192x192 512x512",
12
- "type": "image/x-icon"
13
- }
14
- ]
15
- }
1
+ {
2
+ "name": "Slice.js Web Framework",
3
+ "short_name": "Slice.js",
4
+ "start_url": "/",
5
+ "display": "standalone",
6
+ "background_color": "#F8F4FF",
7
+ "theme_color": "#F8F4FF",
8
+ "icons": [
9
+ {
10
+ "src": "/images/favicon.ico",
11
+ "sizes": "192x192 512x512",
12
+ "type": "image/x-icon"
13
+ }
14
+ ]
15
+ }
@@ -1,4 +1,4 @@
1
- User-agent: *
2
- Allow: /
3
-
4
- Sitemap: https://slicejs.com/sitemap.xml
1
+ User-agent: *
2
+ Allow: /
3
+
4
+ Sitemap: https://slicejs.com/sitemap.xml
@@ -1,8 +1,8 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
- <url>
4
- <loc>https://slicejs.com/</loc>
5
- <priority>1.0</priority>
6
- <changefreq>weekly</changefreq>
7
- </url>
8
- </urlset>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
+ <url>
4
+ <loc>https://slicejs.com/</loc>
5
+ <priority>1.0</priority>
6
+ <changefreq>weekly</changefreq>
7
+ </url>
8
+ </urlset>
package/src/routes.js CHANGED
@@ -1,10 +1,10 @@
1
- // App Shell + MultiRoute starter.
2
- // Every section URL renders AppShell, which swaps the content area via a MultiRoute.
3
- // Dynamic params use ${name} (NOT :name). Keep the 404 route last.
4
- const routes = [
5
- { path: '/', component: 'AppShell', metadata: { title: 'Home' } },
6
- { path: '/about', component: 'AppShell', metadata: { title: 'About' } },
7
- { path: '/404', component: 'NotFound', metadata: { title: 'Not Found' } }
8
- ];
9
-
1
+ // App Shell + MultiRoute starter.
2
+ // Every section URL renders AppShell, which swaps the content area via a MultiRoute.
3
+ // Dynamic params use ${name} (NOT :name). Keep the 404 route last.
4
+ const routes = [
5
+ { path: '/', component: 'AppShell', metadata: { title: 'Home' } },
6
+ { path: '/about', component: 'AppShell', metadata: { title: 'About' } },
7
+ { path: '/404', component: 'NotFound', metadata: { title: 'Not Found' } }
8
+ ];
9
+
10
10
  export default routes;