@networkpro/web 1.5.1 → 1.5.6

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 (97) hide show
  1. package/CODE_OF_CONDUCT.md +1 -0
  2. package/LICENSE.md +2 -39
  3. package/README.md +259 -35
  4. package/cspell.json +56 -0
  5. package/eslint.config.mjs +2 -1
  6. package/package.json +45 -52
  7. package/playwright.config.js +1 -0
  8. package/postcss.config.mjs +1 -0
  9. package/scripts/auditScripts.js +1 -0
  10. package/scripts/bundleCss.js +1 -0
  11. package/scripts/checkEnv.js +1 -0
  12. package/scripts/checkNode.js +39 -18
  13. package/scripts/checkVersions.js +1 -0
  14. package/scripts/flattenHeaders.js +1 -0
  15. package/scripts/validateHeaders.js +1 -0
  16. package/src/app.d.ts +8 -0
  17. package/src/app.html +1 -10
  18. package/src/global.d.ts +1 -0
  19. package/src/hooks.client.ts +1 -0
  20. package/src/lib/components/Badges.svelte +1 -0
  21. package/src/lib/components/ContainerSection.svelte +1 -0
  22. package/src/lib/components/FullWidthSection.svelte +15 -1
  23. package/src/lib/components/LegalNav.svelte +1 -0
  24. package/src/lib/components/Logo.svelte +1 -0
  25. package/src/lib/components/MetaTags.svelte +1 -0
  26. package/src/lib/components/PWAInstallButton.svelte +1 -0
  27. package/src/lib/components/RedirectPage.svelte +20 -12
  28. package/src/lib/components/SocialMedia.svelte +1 -0
  29. package/src/lib/components/foss/FossFeatures.svelte +1 -0
  30. package/src/lib/components/foss/FossItemContent.svelte +1 -0
  31. package/src/lib/components/layout/Footer.svelte +3 -0
  32. package/src/lib/components/layout/HeaderDefault.svelte +1 -0
  33. package/src/lib/components/layout/HeaderHome.svelte +1 -0
  34. package/src/lib/images.js +4 -1
  35. package/src/lib/img/logo-web.png +0 -0
  36. package/src/lib/img/logo-web.webp +0 -0
  37. package/src/lib/index.js +1 -0
  38. package/src/lib/meta.js +1 -0
  39. package/src/lib/pages/AboutContent.svelte +1 -0
  40. package/src/lib/pages/FossContent.svelte +1 -0
  41. package/src/lib/pages/HomeContent.svelte +1 -0
  42. package/src/lib/pages/LicenseContent.svelte +33 -3
  43. package/src/lib/pages/PrivacyContent.svelte +33 -12
  44. package/src/lib/pages/TermsConditionsContent.svelte +3 -0
  45. package/src/lib/pages/TermsUseContent.svelte +3 -0
  46. package/src/lib/registerServiceWorker.js +26 -14
  47. package/src/lib/styles/css/default.css +1 -0
  48. package/src/lib/styles/css/global.css +1 -0
  49. package/src/lib/styles/css/normalize.css +1 -0
  50. package/src/lib/styles/css/offline.css +1 -0
  51. package/src/lib/styles/css/style.css +1 -0
  52. package/src/lib/styles/fa-global.css +1 -0
  53. package/src/lib/styles/global.min.css +1 -0
  54. package/src/lib/styles/index.js +2 -1
  55. package/src/lib/types/metadata.js +1 -0
  56. package/src/lib/unregisterServiceWorker.js +1 -0
  57. package/src/lib/utils/utm.js +1 -0
  58. package/src/routes/+error.svelte +1 -0
  59. package/src/routes/+layout.js +1 -8
  60. package/src/routes/+layout.svelte +7 -0
  61. package/src/routes/+page.server.js +1 -0
  62. package/src/routes/+page.svelte +1 -0
  63. package/src/routes/about/+page.server.js +1 -0
  64. package/src/routes/about/+page.svelte +1 -0
  65. package/src/routes/consultation/+page.svelte +1 -0
  66. package/src/routes/contact/+page.svelte +1 -0
  67. package/src/routes/foss-spotlight/+page.server.js +1 -0
  68. package/src/routes/foss-spotlight/+page.svelte +1 -0
  69. package/src/routes/license/+page.server.js +1 -0
  70. package/src/routes/license/+page.svelte +1 -0
  71. package/src/routes/privacy-policy/+page.server.js +1 -0
  72. package/src/routes/privacy-policy/+page.svelte +1 -0
  73. package/src/routes/privacy-rights/+page.svelte +1 -0
  74. package/src/routes/terms-conditions/+page.server.js +1 -0
  75. package/src/routes/terms-conditions/+page.svelte +1 -0
  76. package/src/routes/terms-of-use/+page.server.js +1 -0
  77. package/src/routes/terms-of-use/+page.svelte +1 -0
  78. package/src/service-worker.d.ts +8 -0
  79. package/src/service-worker.js +51 -32
  80. package/static/docs/Home.md +63 -0
  81. package/static/docs/extensions.md +58 -0
  82. package/static/sitemap.xml +7 -7
  83. package/stylelint.config.js +2 -1
  84. package/svelte.config.js +1 -0
  85. package/tests/e2e/app.spec.js +1 -0
  86. package/tests/e2e/mobile.spec.js +1 -0
  87. package/tests/unit/auditScripts.test.js +1 -0
  88. package/tests/unit/checkEnv.test.js +1 -0
  89. package/tests/unit/checkVersions.test.js +1 -0
  90. package/tests/unit/demo.test.js +1 -0
  91. package/tests/unit/routes/page.svelte.test.js +1 -0
  92. package/tests/unit/unregisterServiceWorker.test.js +1 -0
  93. package/tests/unit/utm.test.js +1 -0
  94. package/{tsconfig.custom.json → tsconfig.custom.jsonc} +2 -1
  95. package/vite.config.js +1 -0
  96. package/vitest.config.client.js +1 -0
  97. package/vitest.config.server.js +1 -0
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  scripts/bundleCss.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  scripts/checkEnv.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
@@ -1,17 +1,22 @@
1
1
  /* ==========================================================================
2
2
  scripts/checkNode.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
7
8
 
8
9
  /**
9
- * Utility to check Node.js and NPM version
10
+ * Utility to check Node.js and npm version
10
11
  * Ensures the current environment matches the required versions from package.json
11
12
  *
13
+ * Behavior:
14
+ * - During `postinstall`: warns but does not exit
15
+ * - In all other cases (manual run, CI, verify): fails on mismatch
16
+ *
12
17
  * @module scripts/
13
18
  * @author SunDevil311
14
- * @updated 2025-05-20
19
+ * @updated 2025-05-23
15
20
  */
16
21
 
17
22
  import { execSync } from "child_process";
@@ -23,32 +28,48 @@ import semver from "semver";
23
28
  const pkg = JSON.parse(fs.readFileSync(path.resolve("./package.json"), "utf8"));
24
29
  const { node: nodeRange, npm: npmRange } = pkg.engines;
25
30
 
26
- // Check Node version
31
+ // Determine if this is running as part of npm's postinstall hook
32
+ const isPostInstall = process.env.npm_lifecycle_event === "postinstall";
33
+
34
+ let hasError = false;
35
+
36
+ // Check Node.js version
27
37
  if (!semver.satisfies(process.version, nodeRange)) {
28
- console.error(
29
- `⚠️ Node version ${process.version} does not match required range: ${nodeRange}`,
30
- );
31
- process.exit(1);
38
+ const msg = `Node.js ${process.version} does not satisfy required range: ${nodeRange}`;
39
+ if (isPostInstall) {
40
+ console.warn(`⚠️ ${msg}`);
41
+ } else {
42
+ console.error(`❌ ${msg}`);
43
+ hasError = true;
44
+ }
32
45
  }
33
46
 
34
- // Check NPM version
35
- let npmVersion;
47
+ // Check npm version
48
+ let npmVersion = null;
36
49
 
37
50
  try {
38
51
  npmVersion = execSync("npm --version").toString().trim();
39
52
  if (!semver.satisfies(npmVersion, npmRange)) {
40
- console.error(
41
- `⚠️ NPM version ${npmVersion} does not match required range: ${npmRange}`,
42
- );
43
- process.exit(1);
53
+ const msg = `npm ${npmVersion} does not satisfy required range: ${npmRange}`;
54
+ if (isPostInstall) {
55
+ console.warn(`⚠️ ${msg}`);
56
+ } else {
57
+ console.error(`❌ ${msg}`);
58
+ hasError = true;
59
+ }
44
60
  }
45
61
  } catch (err) {
46
- console.error("❌ Failed to check NPM version:", err.message);
62
+ console.error("❌ Failed to check npm version:", err.message);
47
63
  process.exit(1);
48
64
  }
49
65
 
50
- if (!process.env.CI || process.env.VERBOSE === "true") {
51
- console.log(
52
- `✅ Node (${process.version}) matches ${nodeRange}, and NPM (${npmVersion}) matches ${npmRange}`,
53
- );
66
+ // Final output
67
+ if (!hasError) {
68
+ if (!process.env.CI || process.env.VERBOSE === "true") {
69
+ console.log(
70
+ `✅ Node (${process.version}) matches ${nodeRange}, and npm (${npmVersion}) matches ${npmRange}`,
71
+ );
72
+ }
73
+ } else {
74
+ process.exit(1);
54
75
  }
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  scripts/checkVersions.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  scripts/flattenHeaders.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  scripts/validateHeaders.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
package/src/app.d.ts CHANGED
@@ -1,3 +1,11 @@
1
+ /* ==========================================================================
2
+ src/global.d.ts
3
+
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
5
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
6
+ This file is part of Network Pro.
7
+ ========================================================================== */
8
+
1
9
  /// <reference types="svelte" />
2
10
  // See https://svelte.dev/docs/kit/types#app.d.ts
3
11
  // for information about these interfaces
package/src/app.html CHANGED
@@ -5,6 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
 
7
7
  <!-- =====================================================================
8
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
8
9
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
9
10
  This file is part of Network Pro.
10
11
  ====================================================================== -->
@@ -65,16 +66,6 @@
65
66
  if (location.search.includes("nosw")) {
66
67
  window.__DISABLE_SW__ = true;
67
68
  console.warn("🧪 Service worker disabled via ?nosw flag in URL.");
68
-
69
- if ("serviceWorker" in navigator) {
70
- navigator.serviceWorker.getRegistrations().then((registrations) => {
71
- for (const registration of registrations) {
72
- registration.unregister().then((success) => {
73
- console.log("🧹 SW unregistered:", success);
74
- });
75
- }
76
- });
77
- }
78
69
  }
79
70
  </script>
80
71
 
package/src/global.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  src/global.d.ts
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  src/hooks.client.ts
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/Badges.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/ContainerSection.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,13 +1,27 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/FullWidthSection.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
7
8
 
8
- <div class="full-width-section">
9
+ <script>
10
+ export let centered = false; // this prop lets us control vertical centering
11
+ </script>
12
+
13
+ <div class="full-width-section {centered ? 'centered' : ''}">
9
14
  <div class="container">
10
15
  <slot></slot>
11
16
  <!-- Slot to allow child content -->
12
17
  </div>
13
18
  </div>
19
+
20
+ <style>
21
+ .full-width-section.centered {
22
+ display: flex;
23
+ justify-content: center;
24
+ flex-direction: column;
25
+ min-height: 80vh;
26
+ }
27
+ </style>
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/LegalNav.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/Logo.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/MetaTags.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/PWAInstallButton.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,12 +1,14 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/RedirectPage.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
7
8
 
8
9
  <script>
9
10
  import { onMount } from "svelte";
11
+ import FullWidthSection from "$lib/components/FullWidthSection.svelte";
10
12
 
11
13
  export let to;
12
14
  export let delay = 3;
@@ -30,14 +32,26 @@ This file is part of Network Pro.
30
32
  <meta name="robots" content="noindex, nofollow" />
31
33
  </svelte:head>
32
34
 
33
- <div class="container">
34
- <h1>Redirecting…</h1>
35
- <p>You'll be taken to the destination in just a moment.</p>
36
- <div class="loading-spinner" aria-hidden="true"></div>
37
- <p>If nothing happens, <a href={to}>click here</a>.</p>
38
- </div>
35
+ <!-- MAIN CONTENT -->
36
+
37
+ <FullWidthSection centered>
38
+ <div class="redirect-content">
39
+ <h1>Redirecting…</h1>
40
+ <p>You'll be taken to the destination in just a moment.</p>
41
+ <div class="loading-spinner" aria-hidden="true"></div>
42
+ <p>If nothing happens, <a href={to}>click here</a>.</p>
43
+ </div>
44
+ </FullWidthSection>
45
+
46
+ <!-- END MAIN CONTENT -->
39
47
 
40
48
  <style>
49
+ .redirect-content {
50
+ text-align: center;
51
+ font-family: system-ui, sans-serif;
52
+ margin-top: 2rem; /* adjust as needed */
53
+ }
54
+
41
55
  .loading-spinner {
42
56
  width: 48px;
43
57
  height: 48px;
@@ -53,10 +67,4 @@ This file is part of Network Pro.
53
67
  transform: rotate(360deg);
54
68
  }
55
69
  }
56
-
57
- .container {
58
- text-align: center;
59
- font-family: system-ui, sans-serif;
60
- margin-top: 5rem;
61
- }
62
70
  </style>
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/SocialMedia.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/foss/FossFeatures.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/foss/FossItemContent.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,10 +1,13 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/layout/Footer.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
7
8
 
9
+ <!-- cspell:ignore ccby gnugpl -->
10
+
8
11
  <script>
9
12
  import { base } from "$app/paths";
10
13
  // Import icons for licenses
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/layout/HeaderDefault.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/components/layout/HeaderHome.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
package/src/lib/images.js CHANGED
@@ -1,17 +1,20 @@
1
1
  /* ==========================================================================
2
2
  src/lib/images.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
7
8
 
9
+ // cspell:ignore lsheet tosdr
10
+
8
11
  /**
9
12
  * Image import utility
10
13
  * Provides convenient access to images in the src/lib/img directory
11
14
  *
12
15
  * @module src/lib
13
16
  * @author SunDevil311
14
- * @updated 2025-05-15
17
+ * @updated 2025-05-24
15
18
  */
16
19
 
17
20
  // Import favicon images
Binary file
Binary file
package/src/lib/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  src/lib/index.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
package/src/lib/meta.js CHANGED
@@ -1,6 +1,7 @@
1
1
  /* ==========================================================================
2
2
  src/lib/meta.js
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== */
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/pages/AboutContent.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/pages/FossContent.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,6 +1,7 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/pages/HomeContent.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
@@ -1,12 +1,16 @@
1
1
  <!-- ==========================================================================
2
2
  src/lib/pages/LicenseContent.svelte
3
3
 
4
+ Copyright © 2025 Network Pro Strategies (Network Pro™)
4
5
  SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
6
  This file is part of Network Pro.
6
7
  ========================================================================== -->
7
8
 
9
+ <!-- cspell:ignore lmaterial lterms dlnotes -->
10
+
8
11
  <script>
9
12
  import { base } from "$app/paths";
13
+ import { ccSvg, bySvg } from "$lib";
10
14
 
11
15
  // Log the base path to verify its value
12
16
  //console.log("Base path:", base);
@@ -18,6 +22,13 @@ This file is part of Network Pro.
18
22
  const homeLink = base || "/";
19
23
  const contactLink = `${base}/contact`;
20
24
 
25
+ /**
26
+ * Icons for Creative Commons
27
+ * @type {string}
28
+ */
29
+ const ccSrc = ccSvg;
30
+ const bySrc = bySvg;
31
+
21
32
  /**
22
33
  * URL to the internal MkDocs documentation
23
34
  * @type {string}
@@ -42,6 +53,7 @@ This file is part of Network Pro.
42
53
  { id: "disclaimer", text: "Modifications and Liability Disclaimer" },
43
54
  { id: "contact", text: "Contact" },
44
55
  { id: "revisions", text: "Revisions" },
56
+ { id: "authoritative", text: "Authoritative Version Clause" },
45
57
  ];
46
58
 
47
59
  /**
@@ -50,7 +62,7 @@ This file is part of Network Pro.
50
62
  */
51
63
  const constants = {
52
64
  company: "Network Pro Strategies",
53
- effectiveDate: "May 18, 2025",
65
+ effectiveDate: "May 24, 2025",
54
66
  classSmall: "small-text",
55
67
  rel: "noopener noreferrer",
56
68
  hrefTop: "#top",
@@ -254,7 +266,7 @@ This file is part of Network Pro.
254
266
  text-decoration: none;
255
267
  vertical-align: text-bottom;
256
268
  "
257
- src="https://mirrors.creativecommons.org/presskit/icons/cc.svg"
269
+ src={ccSrc}
258
270
  alt="Creative Commons BY" />
259
271
  </a>
260
272
  <a
@@ -271,7 +283,7 @@ This file is part of Network Pro.
271
283
  text-decoration: none;
272
284
  vertical-align: text-bottom;
273
285
  "
274
- src="https://mirrors.creativecommons.org/presskit/icons/by.svg"
286
+ src={bySrc}
275
287
  alt="Creative Commons BY" />
276
288
  </a>.
277
289
  </p>
@@ -475,6 +487,24 @@ This file is part of Network Pro.
475
487
  changes. The current effective date is listed at the top of this
476
488
  document.
477
489
  </p>
490
+ {:else if link.id === "authoritative"}
491
+ <p>
492
+ In the event of any discrepancy between different versions, formats, or
493
+ distributions of any legal document issued by the Company—including but
494
+ not limited to license terms, policies, notices, or agreements—the
495
+ version published on the Company's primary website at <a
496
+ rel={constants.rel}
497
+ href={homeLink}
498
+ target={constants.targetSelf}>https://netwk.pro</a>
499
+ shall be deemed the official and controlling version.
500
+ </p>
501
+
502
+ <p>
503
+ It is your responsibility to review the most current version of any
504
+ applicable legal document before relying on its contents. Continued use
505
+ of the Company's materials, services, or Licensed Material constitutes
506
+ acceptance of the most current version then in effect.
507
+ </p>
478
508
  {/if}
479
509
 
480
510
  <span class={constants.classSmall}>