@networkpro/web 1.10.0 → 1.11.0

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.
@@ -9,6 +9,11 @@ This file is part of Network Pro.
9
9
  <script>
10
10
  import { fossData } from "$lib/data/fossData.js";
11
11
  import FossItemContent from "$lib/components/foss/FossItemContent.svelte";
12
+ import { CONSTANTS } from "$lib";
13
+
14
+ console.log(CONSTANTS.COMPANY_INFO.APP_NAME);
15
+
16
+ const { PAGE } = CONSTANTS;
12
17
 
13
18
  /**
14
19
  * Process the FOSS data
@@ -48,24 +53,14 @@ This file is part of Network Pro.
48
53
  title: "FOSS Spotlight",
49
54
  lastUpdated: "May 30, 2025",
50
55
  };
51
-
52
- /** @type {any} */
53
- const constants = {
54
- classSmall: "small-text",
55
- rel: "noopener noreferrer",
56
- backTop: "Back to top",
57
- hrefTop: "#top",
58
- targetSelf: "_self",
59
- targetBlank: "_blank",
60
- };
61
56
  </script>
62
57
 
63
58
  <section id="top">
64
- <span class={constants.classSmall}>
59
+ <span class="small-text">
65
60
  <a
66
- rel={constants.rel}
61
+ rel={PAGE.REL}
67
62
  href="https://spdx.dev/learn/handling-license-info"
68
- target={constants.targetBlank}>
63
+ target={PAGE.BLANK}>
69
64
  SPDX License Identifier
70
65
  </a>: &nbsp;<code>CC-BY-4.0 OR GPL-3.0-or-later</code>
71
66
  </span>
@@ -8,10 +8,15 @@ This file is part of Network Pro.
8
8
 
9
9
  <script>
10
10
  import { base } from "$app/paths";
11
+ import { CONSTANTS } from "$lib";
11
12
 
12
13
  // Log the base path to verify its value
13
14
  //console.log("Base path:", base);
14
15
 
16
+ console.log(CONSTANTS.COMPANY_INFO.APP_NAME);
17
+
18
+ const { COMPANY_INFO, PAGE, NAV } = CONSTANTS;
19
+
15
20
  /**
16
21
  * URL to the FOSS Spotlight page, using the base path
17
22
  * @type {string}
@@ -41,31 +46,13 @@ This file is part of Network Pro.
41
46
  * @type {string}
42
47
  */
43
48
  const classLarge = "large-text-center";
44
-
45
- /**
46
- * Relation attribute for external links.
47
- * @type {string}
48
- */
49
- const rel = "noopener noreferrer";
50
-
51
- /**
52
- * Target attribute to open links in a new tab.
53
- * @type {string}
54
- */
55
- const targetBlank = "_blank";
56
-
57
- /**
58
- * Target attribute to open links in the same tab.
59
- * @type {string}
60
- */
61
- const targetSelf = "_self";
62
49
  </script>
63
50
 
64
51
  <!-- BEGIN HOME CONTENT -->
65
52
  <h3 class={classIndex}>🔒 Practical Cybersecurity. Trusted Expertise.</h3>
66
53
 
67
54
  <p class={classCenter}>
68
- At <strong>Network Pro&trade;</strong>, we specialize in network security,
55
+ At <strong>{COMPANY_INFO.NAME}</strong>, we specialize in network security,
69
56
  cybersecurity, and digital privacy consulting that meets today's real-world
70
57
  demands. Our remote-first approach combines technical depth with practical
71
58
  solutions—leveraging a strategic mix of open source and proprietary
@@ -82,7 +69,7 @@ This file is part of Network Pro.
82
69
  📡
83
70
  <em>
84
71
  <strong>Stay informed:</strong> Follow our
85
- <a href={blogLink} target={targetSelf}>blog</a>
72
+ <a href={blogLink} target={PAGE.SELF}>blog</a>
86
73
  and social channels for actionable insights, implementation guides, and the latest
87
74
  cybersecurity developments.
88
75
  </em>
@@ -94,13 +81,13 @@ This file is part of Network Pro.
94
81
 
95
82
  <p class={classLarge}>
96
83
  <strong>
97
- <a href={blogLink} target={targetSelf}>Network Pro Blog</a>
84
+ <a href={blogLink} target={PAGE.SELF}>{COMPANY_INFO.APP_NAME} Blog</a>
98
85
  </strong>
99
86
  </p>
100
87
 
101
88
  <p class={classLarge}>
102
89
  <strong>
103
- <a href={spotlightLink} target={targetSelf}>FOSS Spotlight</a>
90
+ <a href={spotlightLink} target={PAGE.SELF}>FOSS Spotlight</a>
104
91
  </strong>
105
92
  </p>
106
93
 
@@ -109,12 +96,13 @@ This file is part of Network Pro.
109
96
  <p class={classCenter}>
110
97
  <em>
111
98
  Join us on
112
- <a {rel} href="https://discord.neteng.pro" target={targetBlank}>Discord</a>
99
+ <a rel={PAGE.REL} href="https://discord.neteng.pro" target={PAGE.BLANK}
100
+ >Discord</a>
113
101
  or in
114
102
  <a
115
- {rel}
103
+ rel={PAGE.REL}
116
104
  href="https://github.com/netwk-pro/netwk-pro.github.io/discussions"
117
- target={targetBlank}>GitHub Discussions</a
105
+ target={PAGE.BLANK}>GitHub Discussions</a
118
106
  >!
119
107
  </em>
120
108
  </p>
@@ -11,10 +11,15 @@ This file is part of Network Pro.
11
11
  <script>
12
12
  import { base } from "$app/paths";
13
13
  import { ccSvg, bySvg } from "$lib";
14
+ import { CONSTANTS } from "$lib";
14
15
 
15
16
  // Log the base path to verify its value
16
17
  //console.log("Base path:", base);
17
18
 
19
+ console.log(CONSTANTS.COMPANY_INFO.APP_NAME);
20
+
21
+ const { COMPANY_INFO, CONTACT, PAGE, NAV } = CONSTANTS;
22
+
18
23
  /**
19
24
  * URLs using the base path
20
25
  * @type {string}
@@ -58,16 +63,11 @@ This file is part of Network Pro.
58
63
 
59
64
  /**
60
65
  * Constants for reusable content
61
- * @type {{ company: string, effectiveDate: string, classSmall: string, rel: string, hrefTop: string, targetBlank: string, targetSelf: string }}
66
+ * @type {{ effectiveDate: string, classSmall: string }}
62
67
  */
63
68
  const constants = {
64
- company: "Network Pro Strategies",
65
69
  effectiveDate: "May 28, 2025",
66
70
  classSmall: "small-text",
67
- rel: "noopener noreferrer",
68
- hrefTop: "#top",
69
- targetBlank: "_blank",
70
- targetSelf: "_self",
71
71
  };
72
72
  </script>
73
73
 
@@ -75,9 +75,9 @@ This file is part of Network Pro.
75
75
  <section id="top">
76
76
  <span class={constants.classSmall}>
77
77
  <a
78
- rel={constants.rel}
78
+ rel={PAGE.REL}
79
79
  href="https://spdx.dev/learn/handling-license-info"
80
- target={constants.targetBlank}>
80
+ target={PAGE.BLANK}>
81
81
  SPDX License Identifier
82
82
  </a>: &nbsp;<code>CC-BY-4.0 OR GPL-3.0-or-later</code>
83
83
  </span>
@@ -86,7 +86,7 @@ This file is part of Network Pro.
86
86
  <section id="page-title">
87
87
  <h1>Legal, Copyright, and Licensing</h1>
88
88
  <p>
89
- <strong>{constants.company}</strong><br />
89
+ <strong>{COMPANY_INFO.NAME}</strong><br />
90
90
  <strong>Effective Date:</strong>
91
91
  {constants.effectiveDate}
92
92
  </p>
@@ -113,7 +113,7 @@ This file is part of Network Pro.
113
113
  <strong>Formats Available:</strong> &nbsp;<span class="visited"
114
114
  >HTML</span>
115
115
  |
116
- <a href={legalLink} target={constants.targetSelf}>Docs</a>
116
+ <a href={legalLink} target={PAGE.SELF}>Docs</a>
117
117
  </sup>
118
118
  </p>
119
119
  </section>
@@ -127,22 +127,21 @@ This file is part of Network Pro.
127
127
  <p>
128
128
  All content—including text, software, logos, graphics, documentation,
129
129
  and other materials—provided by
130
- <strong>{constants.company}</strong> (“Network Pro”, “Company”, “Licensor”)
131
- is protected by U.S. and international copyright laws.
130
+ <strong>{COMPANY_INFO.NAME}</strong> ("{COMPANY_INFO.APP_NAME}",
131
+ "Company", "Licensor") is protected by U.S. and international copyright
132
+ laws.
132
133
  </p>
133
134
  <p>
134
- Copyright &copy; 2025
135
+ Copyright &copy; {COMPANY_INFO.YEAR}
135
136
  <strong>
136
- <a href={homeLink} target={constants.targetBlank}>
137
- Network Pro Strategies
138
- </a>
137
+ <a href={homeLink} target={PAGE.BLANK}> {COMPANY_INFO.NAME} </a>
139
138
  </strong>
140
- (Network Pro&trade;)
139
+ ({COMPANY_INFO.APP_NAME}&trade;)
141
140
  </p>
142
141
  {:else if link.id === "trademark"}
143
142
  <p>The following trademarks are the exclusive property of the Company:</p>
144
143
  <ul>
145
- <li><strong>Brand Name:</strong> Network Pro&trade;</li>
144
+ <li><strong>Brand Name:</strong> {COMPANY_INFO.APP_NAME}&trade;</li>
146
145
  <li><strong>Domain Names:</strong> netwk.pro, neteng.pro, neteng.cc</li>
147
146
  <li
148
147
  ><strong>Logo:</strong> The shield logo displayed on our homepage</li>
@@ -168,7 +167,7 @@ This file is part of Network Pro.
168
167
  </p>
169
168
  {:else if link.id === "lmaterial"}
170
169
  <p>
171
- Licensed Material refers solely to the publicly available code and
170
+ "Licensed Material" refers solely to the publicly available code and
172
171
  documentation distributed through the Company's open repositories and
173
172
  websites. It expressly excludes all third-party content, proprietary
174
173
  brand assets (including logos, trademarks, and visual designs), and any
@@ -200,18 +199,18 @@ This file is part of Network Pro.
200
199
  <li>
201
200
  See Creative Commons FAQ:
202
201
  <a
203
- rel={constants.rel}
202
+ rel={PAGE.REL}
204
203
  href="https://creativecommons.org/faq/#can-i-enter-into-separate-or-supplemental-agreements-with-users-of-my-work"
205
- target={constants.targetBlank}>
204
+ target={PAGE.BLANK}>
206
205
  Separate agreements
207
206
  </a>
208
207
  </li>
209
208
  <li>
210
209
  See GPL compatibility:
211
210
  <a
212
- rel={constants.rel}
211
+ rel={PAGE.REL}
213
212
  href="https://www.gnu.org/licenses/gpl-faq.html#WhatDoesCompatMean"
214
- target={constants.targetBlank}>
213
+ target={PAGE.BLANK}>
215
214
  GPL FAQ
216
215
  </a>
217
216
  </li>
@@ -219,40 +218,33 @@ This file is part of Network Pro.
219
218
  {:else if link.id === "cc-by"}
220
219
  <p class={constants.classSmall}>
221
220
  Download:
222
- <a
223
- href="/assets/license/CC-BY-4.0.html"
224
- download
225
- target={constants.targetBlank}>HTML</a>
221
+ <a href="/assets/license/CC-BY-4.0.html" download target={PAGE.BLANK}
222
+ >HTML</a>
226
223
  |
227
- <a
228
- href="/assets/license/CC-BY-4.0.md"
229
- download
230
- target={constants.targetBlank}>Markdown</a>
224
+ <a href="/assets/license/CC-BY-4.0.md" download target={PAGE.BLANK}
225
+ >Markdown</a>
231
226
  |
232
- <a
233
- href="/assets/license/CC-BY-4.0.txt"
234
- download
235
- target={constants.targetBlank}>Text</a>
227
+ <a href="/assets/license/CC-BY-4.0.txt" download target={PAGE.BLANK}
228
+ >Text</a>
236
229
  |
237
230
  <a
238
231
  href="/assets/license/CC-BY-4.0-rdfa.xml"
239
232
  download
240
- target={constants.targetBlank}>RDFa</a>
233
+ target={PAGE.BLANK}>RDFa</a>
241
234
  |
242
- <a
243
- href="/assets/license/CC-BY-4.0.xml"
244
- download
245
- target={constants.targetBlank}>XMP</a>
235
+ <a href="/assets/license/CC-BY-4.0.xml" download target={PAGE.BLANK}
236
+ >XMP</a>
246
237
  </p>
247
238
 
248
239
  <p>
249
- Network Pro&trade; (the "Licensed Material") is licensed under
240
+ {COMPANY_INFO.APP_NAME}&trade; (the "Licensed Material") is licensed
241
+ under
250
242
  <strong>Creative Commons Attribution 4.0 International</strong> (CC BY
251
243
  4.0)
252
244
  <a
253
- rel={constants.rel}
245
+ rel={PAGE.REL}
254
246
  href="https://creativecommons.org/licenses/by/4.0/"
255
- target={constants.targetBlank}>
247
+ target={PAGE.BLANK}>
256
248
  <img
257
249
  decoding="async"
258
250
  loading="lazy"
@@ -267,9 +259,9 @@ This file is part of Network Pro.
267
259
  alt="Creative Commons BY" />
268
260
  </a>
269
261
  <a
270
- rel={constants.rel}
262
+ rel={PAGE.REL}
271
263
  href="https://creativecommons.org/licenses/by/4.0/"
272
- target={constants.targetBlank}>
264
+ target={PAGE.BLANK}>
273
265
  <img
274
266
  decoding="async"
275
267
  loading="lazy"
@@ -302,9 +294,9 @@ This file is part of Network Pro.
302
294
  <p>
303
295
  SPDX Reference:<br />
304
296
  <a
305
- rel={constants.rel}
297
+ rel={PAGE.REL}
306
298
  href="https://spdx.org/licenses/CC-BY-4.0.html"
307
- target={constants.targetBlank}>
299
+ target={PAGE.BLANK}>
308
300
  https://spdx.org/licenses/CC-BY-4.0.html
309
301
  </a>
310
302
  </p>
@@ -312,9 +304,9 @@ This file is part of Network Pro.
312
304
  <p>
313
305
  Canonical URL:<br />
314
306
  <a
315
- rel={constants.rel}
307
+ rel={PAGE.REL}
316
308
  href="https://creativecommons.org/licenses/by/4.0/"
317
- target={constants.targetBlank}>
309
+ target={PAGE.BLANK}>
318
310
  https://creativecommons.org/licenses/by/4.0/
319
311
  </a>
320
312
  </p>
@@ -322,52 +314,39 @@ This file is part of Network Pro.
322
314
  {:else if link.id === "gnu-gpl"}
323
315
  <p class={constants.classSmall}>
324
316
  Download:
325
- <a
326
- href="/assets/license/COPYING.html"
327
- download
328
- target={constants.targetBlank}>HTML</a>
317
+ <a href="/assets/license/COPYING.html" download target={PAGE.BLANK}
318
+ >HTML</a>
329
319
  |
330
- <a
331
- href="/assets/license/COPYING.md"
332
- download
333
- target={constants.targetBlank}>Markdown</a>
320
+ <a href="/assets/license/COPYING.md" download target={PAGE.BLANK}
321
+ >Markdown</a>
334
322
  |
335
- <a
336
- href="/assets/license/COPYING.txt"
337
- download
338
- target={constants.targetBlank}>Text</a>
323
+ <a href="/assets/license/COPYING.txt" download target={PAGE.BLANK}
324
+ >Text</a>
339
325
  |
340
- <a
341
- href="/assets/license/COPYING-rdfa.xml"
342
- download
343
- target={constants.targetBlank}>RDFa</a>
326
+ <a href="/assets/license/COPYING-rdfa.xml" download target={PAGE.BLANK}
327
+ >RDFa</a>
344
328
  |
345
- <a
346
- href="/assets/license/COPYING.odt"
347
- download
348
- target={constants.targetBlank}>ODT</a>
329
+ <a href="/assets/license/COPYING.odt" download target={PAGE.BLANK}
330
+ >ODT</a>
349
331
  </p>
350
332
 
351
333
  <p>
352
- Network Pro&trade; is free software: you can redistribute it and/or
353
- modify it under the terms of the
334
+ {COMPANY_INFO.APP_NAME}&trade; is free software: you can redistribute it
335
+ and/or modify it under the terms of the
354
336
  <strong>GNU General Public License</strong> (GNU GPL) as published by
355
337
  the
356
- <a
357
- rel={constants.rel}
358
- href="https://fsf.org"
359
- target={constants.targetBlank}>Free Software Foundation</a
338
+ <a rel={PAGE.REL} href="https://fsf.org" target={PAGE.BLANK}
339
+ >Free Software Foundation</a
360
340
  >, either version 3 of the License, or (at your option) any later
361
341
  version.
362
342
  </p>
363
343
 
364
344
  <p>
365
345
  You should have received a copy of the GNU General Public License along
366
- with this material. If not, see &lt;
367
- <a
368
- rel={constants.rel}
346
+ with this material. If not, see &lt;<a
347
+ rel={PAGE.REL}
369
348
  href="https://www.gnu.org/licenses"
370
- target={constants.targetBlank}>https://www.gnu.org/licenses/</a
349
+ target={PAGE.BLANK}>https://www.gnu.org/licenses/</a
371
350
  >&gt;.
372
351
  </p>
373
352
 
@@ -375,9 +354,9 @@ This file is part of Network Pro.
375
354
  <p>
376
355
  SPDX Reference:<br />
377
356
  <a
378
- rel={constants.rel}
357
+ rel={PAGE.REL}
379
358
  href="https://spdx.org/licenses/GPL-3.0-or-later.html"
380
- target={constants.targetBlank}>
359
+ target={PAGE.BLANK}>
381
360
  https://spdx.org/licenses/GPL-3.0-or-later.html
382
361
  </a>
383
362
  </p>
@@ -385,9 +364,9 @@ This file is part of Network Pro.
385
364
  <p>
386
365
  Canonical URL:<br />
387
366
  <a
388
- rel={constants.rel}
367
+ rel={PAGE.REL}
389
368
  href="https://www.gnu.org/licenses/gpl-3.0.html"
390
- target={constants.targetBlank}>
369
+ target={PAGE.BLANK}>
391
370
  https://gnu.org/licenses/gpl-3.0.html
392
371
  </a>
393
372
  </p>
@@ -450,7 +429,7 @@ This file is part of Network Pro.
450
429
 
451
430
  <blockquote>
452
431
  <strong>
453
- THE LICENSED MATERIAL IS PROVIDED AS IS AND AS AVAILABLE,” WITHOUT
432
+ THE LICENSED MATERIAL IS PROVIDED "AS IS" AND "AS AVAILABLE," WITHOUT
454
433
  ANY EXPRESS OR IMPLIED WARRANTIES. TO THE MAXIMUM EXTENT PERMITTED BY
455
434
  LAW, THE COMPANY DISCLAIMS ALL WARRANTIES, INCLUDING BUT NOT LIMITED
456
435
  TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
@@ -474,9 +453,9 @@ This file is part of Network Pro.
474
453
  distributions of any legal document issued by the Company—including but
475
454
  not limited to license terms, policies, notices, or agreements—the
476
455
  version published on the Company's primary website at <a
477
- rel={constants.rel}
456
+ rel={PAGE.REL}
478
457
  href={homeLink}
479
- target={constants.targetSelf}>https://netwk.pro</a>
458
+ target={PAGE.SELF}>https://netwk.pro</a>
480
459
  shall be deemed the official and controlling version.
481
460
  </p>
482
461
 
@@ -495,15 +474,15 @@ This file is part of Network Pro.
495
474
  {:else if link.id === "contact"}
496
475
  <p>
497
476
  The Company can be contacted via our
498
- <a rel={constants.rel} href={contactLink} target={constants.targetBlank}
499
- >contact form</a>
477
+ <a rel={PAGE.REL} href={contactLink} target={PAGE.BLANK}
478
+ >Contact Form</a>
500
479
  or by email at:<br />
501
- 📧 <code>contact (at) s.neteng.pro</code>
480
+ 📧 <strong>{CONTACT.EMAIL}</strong>
502
481
  </p>
503
482
  {/if}
504
483
 
505
484
  <span class={constants.classSmall}>
506
- <a href={constants.hrefTop}>Back to top</a>
485
+ <a href={NAV.HREFTOP}>{NAV.BACKTOP}</a>
507
486
  </span>
508
487
  </section>
509
488
  {/each}