@networkpro/web 0.13.2 → 1.1.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.
Files changed (293) hide show
  1. package/CODE_OF_CONDUCT.md +172 -0
  2. package/LICENSE.md +4 -4
  3. package/README.md +13 -12
  4. package/_headers +2 -0
  5. package/assets/bin/contact.vcf +13 -0
  6. package/assets/bin/contact@s.neteng.pro.aexpk +17 -0
  7. package/assets/bin/contact@s.neteng.pro.asc +17 -0
  8. package/assets/bin/github@sl.neteng.cc.aexpk +29 -0
  9. package/assets/bin/github@sl.neteng.cc.asc +29 -0
  10. package/assets/bin/linksheet.json +8 -0
  11. package/assets/bin/support@neteng.pro.aexpk +47 -0
  12. package/assets/bin/support@neteng.pro.asc +47 -0
  13. package/assets/consulting-terms.pdf +0 -0
  14. package/eslint.config.mjs +112 -0
  15. package/jsconfig.json +28 -0
  16. package/netlify.toml +3 -0
  17. package/package.json +63 -60
  18. package/playwright.config.js +79 -0
  19. package/postcss.config.mjs +14 -0
  20. package/scripts/bundleCss.js +40 -0
  21. package/src/app.d.ts +15 -0
  22. package/src/app.html +83 -0
  23. package/src/demo.spec.js +14 -0
  24. package/src/lib/components/Badges.svelte +74 -0
  25. package/src/lib/components/ContainerSection.svelte +19 -0
  26. package/src/lib/components/FullWidthSection.svelte +13 -0
  27. package/src/lib/components/LegalNav.svelte +75 -0
  28. package/src/lib/components/Logo.svelte +110 -0
  29. package/src/lib/components/MetaTags.svelte +41 -0
  30. package/src/lib/components/SocialMedia.svelte +70 -0
  31. package/src/lib/components/foss/FossFeatures.svelte +24 -0
  32. package/src/lib/components/foss/FossItemContent.svelte +153 -0
  33. package/src/lib/components/layout/Footer.svelte +188 -0
  34. package/src/lib/components/layout/HeaderDefault.svelte +86 -0
  35. package/src/lib/components/layout/HeaderHome.svelte +84 -0
  36. package/src/lib/data/fossData.js +233 -0
  37. package/src/lib/images.js +77 -0
  38. package/src/lib/img/badges/cc-by-badge.png +0 -0
  39. package/src/lib/img/badges/gpl-badge.svg +1 -0
  40. package/src/lib/img/by.svg +1 -0
  41. package/src/lib/img/cc.svg +1 -0
  42. package/src/lib/img/logo-web.png +0 -0
  43. package/src/lib/img/logo-web.webp +0 -0
  44. package/src/lib/img/obtainium.webp +0 -0
  45. package/src/lib/img/posts/acode.png +0 -0
  46. package/src/lib/img/posts/acode.webp +0 -0
  47. package/src/lib/img/posts/linksheet.png +0 -0
  48. package/src/lib/img/posts/linksheet.webp +0 -0
  49. package/src/lib/img/posts/pmx.png +0 -0
  50. package/src/lib/img/posts/pmx.webp +0 -0
  51. package/src/lib/img/posts/tosdr.png +0 -0
  52. package/src/lib/img/posts/tosdr.webp +0 -0
  53. package/src/lib/img/posts/urlcheck.png +0 -0
  54. package/src/lib/img/posts/urlcheck.webp +0 -0
  55. package/src/lib/index.js +43 -0
  56. package/src/lib/meta.js +73 -0
  57. package/src/lib/pages/AboutContent.svelte +294 -0
  58. package/src/lib/pages/FossContent.svelte +109 -0
  59. package/src/lib/pages/HomeContent.svelte +120 -0
  60. package/src/lib/pages/LicenseContent.svelte +486 -0
  61. package/src/lib/pages/PrivacyContent.svelte +249 -0
  62. package/src/lib/pages/TermsConditionsContent.svelte +240 -0
  63. package/src/lib/pages/TermsUseContent.svelte +236 -0
  64. package/src/lib/registerServiceWorker.js +65 -0
  65. package/src/lib/styles/css/brands.css +76 -0
  66. package/src/lib/styles/css/brands.min.css +6 -0
  67. package/src/lib/styles/css/default.css +454 -0
  68. package/src/lib/styles/css/fontawesome.min.css +9 -0
  69. package/src/lib/styles/css/global.css +10 -0
  70. package/src/lib/styles/css/normalize.css +349 -0
  71. package/src/lib/styles/css/offline.css +120 -0
  72. package/src/lib/styles/css/solid.min.css +6 -0
  73. package/src/lib/styles/css/style.css +310 -0
  74. package/src/lib/styles/fa-global.css +10 -0
  75. package/src/lib/styles/global.min.css +9 -0
  76. package/src/lib/styles/index.js +11 -0
  77. package/src/lib/styles/webfonts/fa-brands-400.ttf +0 -0
  78. package/src/lib/styles/webfonts/fa-brands-400.woff2 +0 -0
  79. package/src/lib/styles/webfonts/fa-solid-900.ttf +0 -0
  80. package/src/lib/styles/webfonts/fa-solid-900.woff2 +0 -0
  81. package/src/routes/+error.svelte +43 -0
  82. package/src/routes/+layout.js +38 -0
  83. package/src/routes/+layout.svelte +113 -0
  84. package/src/routes/+page.server.js +27 -0
  85. package/src/routes/+page.svelte +82 -0
  86. package/src/routes/about/+page.server.js +17 -0
  87. package/src/routes/about/+page.svelte +66 -0
  88. package/src/routes/contact/+page.server.js +24 -0
  89. package/src/routes/example.svx +9 -0
  90. package/src/routes/foss-spotlight/+page.server.js +17 -0
  91. package/src/routes/foss-spotlight/+page.svelte +68 -0
  92. package/src/routes/license/+page.server.js +17 -0
  93. package/src/routes/license/+page.svelte +68 -0
  94. package/src/routes/page.svelte.test.js +29 -0
  95. package/src/routes/privacy-policy/+page.server.js +17 -0
  96. package/src/routes/privacy-policy/+page.svelte +68 -0
  97. package/src/routes/privacy-rights/+page.server.js +24 -0
  98. package/src/routes/terms-conditions/+page.server.js +17 -0
  99. package/src/routes/terms-conditions/+page.svelte +68 -0
  100. package/src/routes/terms-of-use/+page.server.js +17 -0
  101. package/src/routes/terms-of-use/+page.svelte +68 -0
  102. package/src/service-worker.d.ts +4 -0
  103. package/src/service-worker.js +90 -0
  104. package/static/icon-512x512-maskable.png +0 -0
  105. package/static/icon-contact.png +0 -0
  106. package/static/icon-services.png +0 -0
  107. package/static/img/qr/pgp-github.png +0 -0
  108. package/static/img/svelte.png +0 -0
  109. package/static/manifest.json +64 -0
  110. package/static/offline.html +79 -0
  111. package/static/offline.min.css +7 -0
  112. package/{robots.txt → static/robots.txt} +0 -2
  113. package/static/sitemap.xml +102 -0
  114. package/stylelint.config.js +118 -0
  115. package/svelte.config.js +56 -0
  116. package/tests/app.spec.js +67 -0
  117. package/tests/mobile.spec.js +58 -0
  118. package/tests-examples/demo-todo-app.spec.js +504 -0
  119. package/tsconfig.custom.json +39 -0
  120. package/vite.config.js +19 -0
  121. package/vitest-setup-client.js +33 -0
  122. package/vitest.config.client.js +34 -0
  123. package/vitest.config.server.js +30 -0
  124. package/404.html +0 -84
  125. package/about.html +0 -334
  126. package/about.html.br +0 -0
  127. package/about.html.gz +0 -0
  128. package/css/default.css +0 -1
  129. package/css/normalize.css +0 -1
  130. package/css/style.css +0 -1
  131. package/docs/404.html +0 -1187
  132. package/docs/assets/external/avatars.githubusercontent.com/u/170266279.png +0 -0
  133. package/docs/assets/external/img.shields.io/badge/GitHub_Package_Registry-white.ed8def48.svg +0 -1
  134. package/docs/assets/external/img.shields.io/badge/npmjs-white.681714c1.svg +0 -1
  135. package/docs/assets/external/mirrors.creativecommons.org/presskit/icons/by.svg +0 -20
  136. package/docs/assets/external/mirrors.creativecommons.org/presskit/icons/cc.svg +0 -27
  137. package/docs/assets/external/unpkg.com/mermaid@11/dist/mermaid.min.js +0 -2607
  138. package/docs/assets/images/favicon.png +0 -0
  139. package/docs/assets/javascripts/bundle.c8b220af.min.js +0 -16
  140. package/docs/assets/javascripts/bundle.c8b220af.min.js.map +0 -7
  141. package/docs/assets/javascripts/lunr/min/lunr.ar.min.js +0 -1
  142. package/docs/assets/javascripts/lunr/min/lunr.da.min.js +0 -18
  143. package/docs/assets/javascripts/lunr/min/lunr.de.min.js +0 -18
  144. package/docs/assets/javascripts/lunr/min/lunr.du.min.js +0 -18
  145. package/docs/assets/javascripts/lunr/min/lunr.el.min.js +0 -1
  146. package/docs/assets/javascripts/lunr/min/lunr.es.min.js +0 -18
  147. package/docs/assets/javascripts/lunr/min/lunr.fi.min.js +0 -18
  148. package/docs/assets/javascripts/lunr/min/lunr.fr.min.js +0 -18
  149. package/docs/assets/javascripts/lunr/min/lunr.he.min.js +0 -1
  150. package/docs/assets/javascripts/lunr/min/lunr.hi.min.js +0 -1
  151. package/docs/assets/javascripts/lunr/min/lunr.hu.min.js +0 -18
  152. package/docs/assets/javascripts/lunr/min/lunr.hy.min.js +0 -1
  153. package/docs/assets/javascripts/lunr/min/lunr.it.min.js +0 -18
  154. package/docs/assets/javascripts/lunr/min/lunr.ja.min.js +0 -1
  155. package/docs/assets/javascripts/lunr/min/lunr.jp.min.js +0 -1
  156. package/docs/assets/javascripts/lunr/min/lunr.kn.min.js +0 -1
  157. package/docs/assets/javascripts/lunr/min/lunr.ko.min.js +0 -1
  158. package/docs/assets/javascripts/lunr/min/lunr.multi.min.js +0 -1
  159. package/docs/assets/javascripts/lunr/min/lunr.nl.min.js +0 -18
  160. package/docs/assets/javascripts/lunr/min/lunr.no.min.js +0 -18
  161. package/docs/assets/javascripts/lunr/min/lunr.pt.min.js +0 -18
  162. package/docs/assets/javascripts/lunr/min/lunr.ro.min.js +0 -18
  163. package/docs/assets/javascripts/lunr/min/lunr.ru.min.js +0 -18
  164. package/docs/assets/javascripts/lunr/min/lunr.sa.min.js +0 -1
  165. package/docs/assets/javascripts/lunr/min/lunr.stemmer.support.min.js +0 -1
  166. package/docs/assets/javascripts/lunr/min/lunr.sv.min.js +0 -18
  167. package/docs/assets/javascripts/lunr/min/lunr.ta.min.js +0 -1
  168. package/docs/assets/javascripts/lunr/min/lunr.te.min.js +0 -1
  169. package/docs/assets/javascripts/lunr/min/lunr.th.min.js +0 -1
  170. package/docs/assets/javascripts/lunr/min/lunr.tr.min.js +0 -18
  171. package/docs/assets/javascripts/lunr/min/lunr.vi.min.js +0 -1
  172. package/docs/assets/javascripts/lunr/min/lunr.zh.min.js +0 -1
  173. package/docs/assets/javascripts/lunr/tinyseg.js +0 -206
  174. package/docs/assets/javascripts/lunr/wordcut.js +0 -6708
  175. package/docs/assets/javascripts/workers/search.f8cc74c7.min.js +0 -42
  176. package/docs/assets/javascripts/workers/search.f8cc74c7.min.js.map +0 -7
  177. package/docs/assets/stylesheets/main.2afb09e1.min.css +0 -1
  178. package/docs/assets/stylesheets/main.2afb09e1.min.css.map +0 -1
  179. package/docs/assets/stylesheets/palette.06af60db.min.css +0 -1
  180. package/docs/assets/stylesheets/palette.06af60db.min.css.map +0 -1
  181. package/docs/blog/2015/01/04/secure-secure-shell/index.html +0 -1771
  182. package/docs/blog/2025/04/30/our-blog-is-live/index.html +0 -1436
  183. package/docs/blog/archive/2015/index.html +0 -1303
  184. package/docs/blog/archive/2025/index.html +0 -1291
  185. package/docs/blog/category/security/index.html +0 -1303
  186. package/docs/blog/index.html +0 -1350
  187. package/docs/conduct/index.html +0 -1509
  188. package/docs/feed_json_created.json +0 -1
  189. package/docs/feed_json_updated.json +0 -1
  190. package/docs/feed_rss_created.xml +0 -1
  191. package/docs/feed_rss_updated.xml +0 -1
  192. package/docs/fontawesome/LICENSE.txt +0 -165
  193. package/docs/fontawesome/brands/facebook.svg +0 -1
  194. package/docs/fontawesome/brands/instagram.svg +0 -1
  195. package/docs/fontawesome/brands/linkedin.svg +0 -1
  196. package/docs/fontawesome/brands/mastodon.svg +0 -1
  197. package/docs/fontawesome/solid/at.svg +0 -1
  198. package/docs/index.html +0 -1395
  199. package/docs/legal/index.html +0 -1740
  200. package/docs/privacy/index.html +0 -1615
  201. package/docs/search/search_index.json +0 -1
  202. package/docs/sitemap.xml +0 -55
  203. package/docs/sitemap.xml.gz +0 -0
  204. package/docs/tags/index.html +0 -2084
  205. package/docs/terms-conditions/index.html +0 -1655
  206. package/docs/terms-use/index.html +0 -1584
  207. package/favicon-192.png +0 -0
  208. package/favicon-512.png +0 -0
  209. package/favicon.svg.br +0 -0
  210. package/favicon.svg.gz +0 -0
  211. package/html/spotlight.html +0 -516
  212. package/html/spotlight.html.br +0 -0
  213. package/html/spotlight.html.gz +0 -0
  214. package/img/banner-1440.png +0 -0
  215. package/img/favicon-template.png +0 -0
  216. package/img/fb-cover.png +0 -0
  217. package/img/fb-cover2.png +0 -0
  218. package/img/fsf-member.png +0 -0
  219. package/img/gh-logo.png +0 -0
  220. package/img/gpl3-small.png +0 -0
  221. package/img/gpl3.png +0 -0
  222. package/img/linkedin-banner-new.png +0 -0
  223. package/img/linkedin-banner.png +0 -0
  224. package/img/linkedin-banner2.png +0 -0
  225. package/img/logo-1024x1024.png +0 -0
  226. package/img/logo-alt.png +0 -0
  227. package/img/logo-elevated.png +0 -0
  228. package/img/logo-light-elevated.png +0 -0
  229. package/img/logo-light-slogan.png +0 -0
  230. package/img/logo-light.png +0 -0
  231. package/img/logo-slogan.png +0 -0
  232. package/img/logo-transparent-black-small.png +0 -0
  233. package/img/logo-transparent-black.png +0 -0
  234. package/img/logo-transparent-elevated.png +0 -0
  235. package/img/logo-transparent-slogan.png +0 -0
  236. package/img/mastodon-banner.png +0 -0
  237. package/img/netpro-logo-transparent.png +0 -0
  238. package/img/posts/acode.png +0 -0
  239. package/img/posts/linksheet.png +0 -0
  240. package/img/posts/pmx.png +0 -0
  241. package/img/posts/tosdr.png +0 -0
  242. package/img/posts/urlcheck.png +0 -0
  243. package/img/sd311.png +0 -0
  244. package/img/shield.png +0 -0
  245. package/img/shield.svg +0 -1
  246. package/img/shield.svg.br +0 -0
  247. package/img/shield.svg.gz +0 -0
  248. package/img/shield2.png +0 -0
  249. package/img/shield3-2000x2000.png +0 -0
  250. package/img/shield3-black-1024x1024.png +0 -0
  251. package/img/shield3-black.png +0 -0
  252. package/img/shield3-white.png +0 -0
  253. package/img/trademark.jpg +0 -0
  254. package/index.html +0 -268
  255. package/index.html.br +0 -0
  256. package/index.html.gz +0 -0
  257. package/js/app.d544156ea2ba85a7d486.mjs +0 -1
  258. package/js/runtime.52b1ac291305b90de3df.mjs +0 -1
  259. package/js/vendor/.gitkeep +0 -0
  260. package/legal.html +0 -535
  261. package/legal.html.br +0 -0
  262. package/legal.html.gz +0 -0
  263. package/privacy.html +0 -404
  264. package/privacy.html.br +0 -0
  265. package/privacy.html.gz +0 -0
  266. package/site.webmanifest +0 -25
  267. package/sitemap.xml +0 -177
  268. package/terms-and-conditions.html +0 -409
  269. package/terms-and-conditions.html.br +0 -0
  270. package/terms-and-conditions.html.gz +0 -0
  271. package/terms-of-use.html +0 -380
  272. package/terms-of-use.html.br +0 -0
  273. package/terms-of-use.html.gz +0 -0
  274. /package/{docs/assets/external/raw.githubusercontent.com/netwk-pro/netwk-pro.github.io/refs/heads/master/assets → assets}/nsa-happy-dance.png +0 -0
  275. /package/{favicon.svg → src/lib/img/favicon.svg} +0 -0
  276. /package/{favicon-180.png → src/lib/img/icon-180x180.png} +0 -0
  277. /package/{img/badge_obtainium.png → src/lib/img/obtainium.png} +0 -0
  278. /package/{docs/assets/external/raw.githubusercontent.com/netwk-pro/netwk-pro.github.io/refs/heads/master → src/lib}/img/qr/pgp-contact.png +0 -0
  279. /package/{img → src/lib/img}/qr/pgp-github.png +0 -0
  280. /package/{docs/assets/external/raw.githubusercontent.com/netwk-pro/netwk-pro.github.io/refs/heads/master → src/lib}/img/qr/pgp-support.png +0 -0
  281. /package/{docs/assets/external/raw.githubusercontent.com/netwk-pro/netwk-pro.github.io/refs/heads/master → src/lib}/img/qr/vcard.png +0 -0
  282. /package/{CNAME → static/CNAME} +0 -0
  283. /package/{favicon.ico → static/favicon.ico} +0 -0
  284. /package/{docs/img/favicon.png → static/icon-192x192.png} +0 -0
  285. /package/{docs/img/logo.png → static/icon-512x512.png} +0 -0
  286. /package/{favicon-splash.png → static/icon-splash.png} +0 -0
  287. /package/{img → static/img}/banner-1280x640.png +0 -0
  288. /package/{img → static/img}/banner-og-1200x630.png +0 -0
  289. /package/{img → static/img}/logo-transparent.png +0 -0
  290. /package/{img → static/img}/logo.png +0 -0
  291. /package/{img → static/img}/qr/pgp-contact.png +0 -0
  292. /package/{img → static/img}/qr/pgp-support.png +0 -0
  293. /package/{img → static/img}/qr/vcard.png +0 -0
@@ -0,0 +1,66 @@
1
+ <!-- ==========================================================================
2
+ src/routes/about/+page.svelte
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== -->
7
+
8
+ <script>
9
+ import AboutContent from "$lib/pages/AboutContent.svelte";
10
+ import Badges from "$lib/components/Badges.svelte";
11
+ import FullWidthSection from "$lib/components/FullWidthSection.svelte";
12
+ import LegalNav from "$lib/components/LegalNav.svelte";
13
+ import SocialMedia from "$lib/components/SocialMedia.svelte";
14
+ import MetaTags from "$lib/components/MetaTags.svelte";
15
+
16
+ /**
17
+ * @type {string}
18
+ * Style class for the horizontal rule element.
19
+ */
20
+ const hrStyle = "hr-styled";
21
+
22
+ /**
23
+ * @type {string}
24
+ * Style class for the div element.
25
+ */
26
+ const spaceStyle = "spacer";
27
+
28
+ export let data;
29
+ </script>
30
+
31
+ <MetaTags title={data.meta.title} description={data.meta.description} />
32
+
33
+ <link rel="canonical" href="https://netwk.pro/about" />
34
+
35
+ <section id="about">
36
+ <FullWidthSection>
37
+ <!-- BEGIN MAIN CONTENT -->
38
+ <section id="main-content">
39
+ <AboutContent />
40
+ </section>
41
+ <!-- END MAIN CONTENT -->
42
+
43
+ <div class={spaceStyle}></div>
44
+
45
+ <!-- SOCIAL MEDIA -->
46
+ <section id="social-media">
47
+ <SocialMedia />
48
+ </section>
49
+
50
+ <hr class={hrStyle} />
51
+
52
+ <div class={spaceStyle}></div>
53
+
54
+ <!-- LEGAL NAVIGATION -->
55
+ <section id="legal-nav">
56
+ <LegalNav />
57
+ </section>
58
+
59
+ <div class={spaceStyle}></div>
60
+
61
+ <!-- BADGES -->
62
+ <section id="badges">
63
+ <Badges />
64
+ </section>
65
+ </FullWidthSection>
66
+ </section>
@@ -0,0 +1,24 @@
1
+ /* ==========================================================================
2
+ src/routes/contact/+page.server.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import { redirect } from "@sveltejs/kit";
9
+
10
+ export const prerender = false;
11
+
12
+ /** @type {import('./$types').PageServerLoad} */
13
+ export function load({ url }) {
14
+ const utmSource = url.searchParams.get("utm_source");
15
+
16
+ // Set target to your actual contact page path
17
+ const target =
18
+ "https://cloud.neteng.pro/index.php/apps/forms/s/nyWEq9fdE7kWAjqMtMySLqJc";
19
+
20
+ // Preserve the tracking parameter
21
+ const redirectTo = utmSource ? `${target}?utm_source=${utmSource}` : target;
22
+
23
+ throw redirect(302, redirectTo);
24
+ }
@@ -0,0 +1,9 @@
1
+ # Welcome to My Page
2
+
3
+ This is an example of an `.svx` file with Markdown and Svelte.
4
+
5
+ <script>
6
+ let count = 0;
7
+ </script>
8
+
9
+ <button on:click={() => count++}>Clicked {count} times</button>
@@ -0,0 +1,17 @@
1
+ /* ==========================================================================
2
+ src/routes/foss-spotlight/+page.server.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import { defaultMeta, meta } from "$lib/meta.js";
9
+
10
+ export const prerender = false;
11
+
12
+ /** @type {import('./$types').PageServerLoad} */
13
+ export function load() {
14
+ return {
15
+ meta: meta["/foss-spotlight"] || defaultMeta,
16
+ };
17
+ }
@@ -0,0 +1,68 @@
1
+ <!-- ==========================================================================
2
+ src/lib/pages/FossSpotlightContent.svelte
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== -->
7
+
8
+ <script>
9
+ import Badges from "$lib/components/Badges.svelte";
10
+ import FullWidthSection from "$lib/components/FullWidthSection.svelte";
11
+ import FossContent from "$lib/pages/FossContent.svelte";
12
+ import LegalNav from "$lib/components/LegalNav.svelte";
13
+ import SocialMedia from "$lib/components/SocialMedia.svelte";
14
+ import MetaTags from "$lib/components/MetaTags.svelte";
15
+
16
+ /**
17
+ * @type {string}
18
+ * Style class for the horizontal rule element.
19
+ */
20
+ const hrStyle = "hr-styled";
21
+
22
+ /**
23
+ * @type {string}
24
+ * Style class for the div element.
25
+ */
26
+ const spaceStyle = "spacer";
27
+
28
+ export let data;
29
+ </script>
30
+
31
+ <MetaTags title={data.meta.title} description={data.meta.description} />
32
+
33
+ <link rel="canonical" href="https://netwk.pro/foss-spotlight" />
34
+
35
+ <section id="license">
36
+ <FullWidthSection>
37
+ <!-- BEGIN FOSS SPOTLIGHT -->
38
+ <section id="main-content">
39
+ <FossContent />
40
+ </section>
41
+ <!-- END FOSS SPOTLIGHT -->
42
+
43
+ <div class={spaceStyle}></div>
44
+
45
+ <!-- BEGIN SOCIAL MEDIA -->
46
+ <section id="social-media">
47
+ <SocialMedia />
48
+ </section>
49
+ <!-- END SOCIAL MEDIA -->
50
+
51
+ <hr class={hrStyle} />
52
+
53
+ <div class={spaceStyle}></div>
54
+
55
+ <!-- BEGIN LEGAL -->
56
+ <section id="legal-nav">
57
+ <LegalNav />
58
+ </section>
59
+ <!-- END LEGAL -->
60
+
61
+ <div class={spaceStyle}></div>
62
+
63
+ <!-- BEGIN BADGES -->
64
+ <section id="badges">
65
+ <Badges />
66
+ </section>
67
+ </FullWidthSection>
68
+ </section>
@@ -0,0 +1,17 @@
1
+ /* ==========================================================================
2
+ src/routes/license/+page.server.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import { defaultMeta, meta } from "$lib/meta.js";
9
+
10
+ export const prerender = false;
11
+
12
+ /** @type {import('./$types').PageServerLoad} */
13
+ export function load() {
14
+ return {
15
+ meta: meta["/license"] || defaultMeta,
16
+ };
17
+ }
@@ -0,0 +1,68 @@
1
+ <!-- ==========================================================================
2
+ src/routes/license/+page.svelte
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== -->
7
+
8
+ <script>
9
+ import Badges from "$lib/components/Badges.svelte";
10
+ import FullWidthSection from "$lib/components/FullWidthSection.svelte";
11
+ import LicenseContent from "$lib/pages/LicenseContent.svelte";
12
+ import LegalNav from "$lib/components/LegalNav.svelte";
13
+ import SocialMedia from "$lib/components/SocialMedia.svelte";
14
+ import MetaTags from "$lib/components/MetaTags.svelte";
15
+
16
+ /**
17
+ * @type {string}
18
+ * Style class for the horizontal rule element.
19
+ */
20
+ const hrStyle = "hr-styled";
21
+
22
+ /**
23
+ * @type {string}
24
+ * Style class for the div element.
25
+ */
26
+ const spaceStyle = "spacer";
27
+
28
+ export let data;
29
+ </script>
30
+
31
+ <MetaTags title={data.meta.title} description={data.meta.description} />
32
+
33
+ <link rel="canonical" href="https://netwk.pro/license" />
34
+
35
+ <section id="license">
36
+ <FullWidthSection>
37
+ <!-- BEGIN LEGAL, COPYRIGHT, AND LICENSING -->
38
+ <section id="main-content">
39
+ <LicenseContent />
40
+ </section>
41
+ <!-- END LEGAL, COPYRIGHT, AND LICENSING -->
42
+
43
+ <div class={spaceStyle}></div>
44
+
45
+ <!-- BEGIN SOCIAL MEDIA -->
46
+ <section id="social-media">
47
+ <SocialMedia />
48
+ </section>
49
+ <!-- END SOCIAL MEDIA -->
50
+
51
+ <hr class={hrStyle} />
52
+
53
+ <div class={spaceStyle}></div>
54
+
55
+ <!-- BEGIN LEGAL -->
56
+ <section id="legal-nav">
57
+ <LegalNav />
58
+ </section>
59
+ <!-- END LEGAL -->
60
+
61
+ <div class={spaceStyle}></div>
62
+
63
+ <!-- BEGIN BADGES -->
64
+ <section id="badges">
65
+ <Badges />
66
+ </section>
67
+ </FullWidthSection>
68
+ </section>
@@ -0,0 +1,29 @@
1
+ /* ==========================================================================
2
+ src/routes/page.svelte.test.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import "@testing-library/jest-dom/vitest";
9
+ import { render, screen } from "@testing-library/svelte";
10
+ import { describe, expect, test } from "vitest";
11
+ import Page from "./+page.svelte";
12
+
13
+ describe("/+page.svelte", () => {
14
+ test("should render the home page section", () => {
15
+ const mockData = {
16
+ pathname: "/", // Required because layout uses it
17
+ meta: {
18
+ title:
19
+ "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro™",
20
+ description:
21
+ "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro™",
22
+ },
23
+ };
24
+
25
+ render(Page, { props: { data: mockData } });
26
+
27
+ expect(screen.getByTestId("home-page")).toBeInTheDocument();
28
+ });
29
+ });
@@ -0,0 +1,17 @@
1
+ /* ==========================================================================
2
+ src/routes/privacy-policy/+page.server.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import { defaultMeta, meta } from "$lib/meta.js";
9
+
10
+ export const prerender = false;
11
+
12
+ /** @type {import('./$types').PageServerLoad} */
13
+ export function load() {
14
+ return {
15
+ meta: meta["/privacy-policy"] || defaultMeta,
16
+ };
17
+ }
@@ -0,0 +1,68 @@
1
+ <!-- ==========================================================================
2
+ src/routes/privacy-policy/+page.svelte
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== -->
7
+
8
+ <script>
9
+ import Badges from "$lib/components/Badges.svelte";
10
+ import FullWidthSection from "$lib/components/FullWidthSection.svelte";
11
+ import PrivacyContent from "$lib/pages/PrivacyContent.svelte";
12
+ import LegalNav from "$lib/components/LegalNav.svelte";
13
+ import SocialMedia from "$lib/components/SocialMedia.svelte";
14
+ import MetaTags from "$lib/components/MetaTags.svelte";
15
+
16
+ /**
17
+ * @type {string}
18
+ * Style class for the horizontal rule element.
19
+ */
20
+ const hrStyle = "hr-styled";
21
+
22
+ /**
23
+ * @type {string}
24
+ * Style class for the div element.
25
+ */
26
+ const spaceStyle = "spacer";
27
+
28
+ export let data;
29
+ </script>
30
+
31
+ <MetaTags title={data.meta.title} description={data.meta.description} />
32
+
33
+ <link rel="canonical" href="https://netwk.pro/privacy-policy" />
34
+
35
+ <section id="privacy-policy">
36
+ <FullWidthSection>
37
+ <!-- BEGIN PRIVACY POLICY -->
38
+ <section id="main-content">
39
+ <PrivacyContent />
40
+ </section>
41
+ <!-- END PRIVACY POLICY -->
42
+
43
+ <div class={spaceStyle}></div>
44
+
45
+ <!-- BEGIN SOCIAL MEDIA -->
46
+ <section id="social-media">
47
+ <SocialMedia />
48
+ </section>
49
+ <!-- END SOCIAL MEDIA -->
50
+
51
+ <hr class={hrStyle} />
52
+
53
+ <div class={spaceStyle}></div>
54
+
55
+ <!-- BEGIN LEGAL -->
56
+ <section id="legal-nav">
57
+ <LegalNav />
58
+ </section>
59
+ <!-- END LEGAL -->
60
+
61
+ <div class={spaceStyle}></div>
62
+
63
+ <!-- BEGIN BADGES -->
64
+ <section id="badges">
65
+ <Badges />
66
+ </section>
67
+ </FullWidthSection>
68
+ </section>
@@ -0,0 +1,24 @@
1
+ /* ==========================================================================
2
+ src/routes/privacy-rights/+page.server.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import { redirect } from "@sveltejs/kit";
9
+
10
+ export const prerender = false;
11
+
12
+ /** @type {import('./$types').PageServerLoad} */
13
+ export function load({ url }) {
14
+ const utmSource = url.searchParams.get("utm_source");
15
+
16
+ // Set target to your actual privacy rights form path
17
+ const target =
18
+ "https://cloud.neteng.pro/index.php/apps/forms/s/6HpZKZCaLwb6TXYL99nLQM8t";
19
+
20
+ // Preserve the tracking parameter
21
+ const redirectTo = utmSource ? `${target}?utm_source=${utmSource}` : target;
22
+
23
+ throw redirect(302, redirectTo);
24
+ }
@@ -0,0 +1,17 @@
1
+ /* ==========================================================================
2
+ src/routes/terms-conditions/+page.server.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import { defaultMeta, meta } from "$lib/meta.js";
9
+
10
+ export const prerender = false;
11
+
12
+ /** @type {import('./$types').PageServerLoad} */
13
+ export function load() {
14
+ return {
15
+ meta: meta["/terms-conditions"] || defaultMeta,
16
+ };
17
+ }
@@ -0,0 +1,68 @@
1
+ <!-- ==========================================================================
2
+ src/routes/terms-conditions/+page.svelte
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== -->
7
+
8
+ <script>
9
+ import Badges from "$lib/components/Badges.svelte";
10
+ import FullWidthSection from "$lib/components/FullWidthSection.svelte";
11
+ import TermsConditionsContent from "$lib/pages/TermsConditionsContent.svelte";
12
+ import LegalNav from "$lib/components/LegalNav.svelte";
13
+ import SocialMedia from "$lib/components/SocialMedia.svelte";
14
+ import MetaTags from "$lib/components/MetaTags.svelte";
15
+
16
+ /**
17
+ * @type {string}
18
+ * Style class for the horizontal rule element.
19
+ */
20
+ const hrStyle = "hr-styled";
21
+
22
+ /**
23
+ * @type {string}
24
+ * Style class for the div element.
25
+ */
26
+ const spaceStyle = "spacer";
27
+
28
+ export let data;
29
+ </script>
30
+
31
+ <MetaTags title={data.meta.title} description={data.meta.description} />
32
+
33
+ <link rel="canonical" href="https://netwk.pro/terms-conditions" />
34
+
35
+ <section id="terms-conditions">
36
+ <FullWidthSection>
37
+ <!-- BEGIN TERMS AND CONDITIONS -->
38
+ <section id="main-content">
39
+ <TermsConditionsContent />
40
+ </section>
41
+ <!-- END TERMS AND CONDITIONS -->
42
+
43
+ <div class={spaceStyle}></div>
44
+
45
+ <!-- BEGIN SOCIAL MEDIA -->
46
+ <section id="social-media">
47
+ <SocialMedia />
48
+ </section>
49
+ <!-- END SOCIAL MEDIA -->
50
+
51
+ <hr class={hrStyle} />
52
+
53
+ <div class={spaceStyle}></div>
54
+
55
+ <!-- BEGIN LEGAL -->
56
+ <section id="legal-nav">
57
+ <LegalNav />
58
+ </section>
59
+ <!-- END LEGAL -->
60
+
61
+ <div class={spaceStyle}></div>
62
+
63
+ <!-- BEGIN BADGES -->
64
+ <section id="badges">
65
+ <Badges />
66
+ </section>
67
+ </FullWidthSection>
68
+ </section>
@@ -0,0 +1,17 @@
1
+ /* ==========================================================================
2
+ src/routes/terms-of-use/+page.server.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ import { defaultMeta, meta } from "$lib/meta.js";
9
+
10
+ export const prerender = false;
11
+
12
+ /** @type {import('./$types').PageServerLoad} */
13
+ export function load() {
14
+ return {
15
+ meta: meta["/terms-of-use"] || defaultMeta,
16
+ };
17
+ }
@@ -0,0 +1,68 @@
1
+ <!-- ==========================================================================
2
+ src/routes/terms-of-use/+page.svelte
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== -->
7
+
8
+ <script>
9
+ import Badges from "$lib/components/Badges.svelte";
10
+ import FullWidthSection from "$lib/components/FullWidthSection.svelte";
11
+ import TermsUseContent from "$lib/pages/TermsUseContent.svelte";
12
+ import LegalNav from "$lib/components/LegalNav.svelte";
13
+ import SocialMedia from "$lib/components/SocialMedia.svelte";
14
+ import MetaTags from "$lib/components/MetaTags.svelte";
15
+
16
+ /**
17
+ * @type {string}
18
+ * Style class for the horizontal rule element.
19
+ */
20
+ const hrStyle = "hr-styled";
21
+
22
+ /**
23
+ * @type {string}
24
+ * Style class for the div element.
25
+ */
26
+ const spaceStyle = "spacer";
27
+
28
+ export let data;
29
+ </script>
30
+
31
+ <MetaTags title={data.meta.title} description={data.meta.description} />
32
+
33
+ <link rel="canonical" href="https://netwk.pro/terms-of-use" />
34
+
35
+ <section id="terms-of-use">
36
+ <FullWidthSection>
37
+ <!-- BEGIN TERMS OF USE -->
38
+ <section id="main-content">
39
+ <TermsUseContent />
40
+ </section>
41
+ <!-- END TERMS OF USE -->
42
+
43
+ <div class={spaceStyle}></div>
44
+
45
+ <!-- BEGIN SOCIAL MEDIA -->
46
+ <section id="social-media">
47
+ <SocialMedia />
48
+ </section>
49
+ <!-- END SOCIAL MEDIA -->
50
+
51
+ <hr class={hrStyle} />
52
+
53
+ <div class={spaceStyle}></div>
54
+
55
+ <!-- BEGIN LEGAL -->
56
+ <section id="legal-nav">
57
+ <LegalNav />
58
+ </section>
59
+ <!-- END LEGAL -->
60
+
61
+ <div class={spaceStyle}></div>
62
+
63
+ <!-- BEGIN BADGES -->
64
+ <section id="badges">
65
+ <Badges />
66
+ </section>
67
+ </FullWidthSection>
68
+ </section>
@@ -0,0 +1,4 @@
1
+ /// <reference lib="webworker" />
2
+
3
+ // Give access to ServiceWorkerGlobalScope when using JSDoc
4
+ export { }; // ensures this file is treated as a module
@@ -0,0 +1,90 @@
1
+ /* ==========================================================================
2
+ src/service-worker.js
3
+
4
+ SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
5
+ This file is part of Network Pro.
6
+ ========================================================================== */
7
+
8
+ /** @type {ServiceWorkerGlobalScope} */
9
+ const sw = self;
10
+
11
+ import { build, files, version } from "$service-worker";
12
+
13
+ /** @type {string} */
14
+ const CACHE = `cache-${version}`;
15
+
16
+ /** @type {string[]} */
17
+ const ASSETS = Array.from(new Set([...build, ...files, "/offline.html"]));
18
+
19
+ console.log("[SW] Assets to cache:", ASSETS); // Helps debug duplicates
20
+
21
+ /**
22
+ * @param {ExtendableEvent} event
23
+ */
24
+ sw.addEventListener("install", (event) => {
25
+ /** @type {ExtendableEvent} */ (event).waitUntil(
26
+ caches
27
+ .open(CACHE)
28
+ .then((cache) => cache.addAll(ASSETS))
29
+ .then(() => sw.skipWaiting()),
30
+ );
31
+ });
32
+
33
+ /**
34
+ * @param {ExtendableEvent} event
35
+ */
36
+ sw.addEventListener("activate", (event) => {
37
+ /** @type {ExtendableEvent} */ (event).waitUntil(
38
+ (async () => {
39
+ const tasks = [];
40
+
41
+ if (sw.registration.navigationPreload) {
42
+ tasks.push(sw.registration.navigationPreload.enable());
43
+ }
44
+
45
+ tasks.push(
46
+ caches.keys().then((keys) =>
47
+ Promise.all(
48
+ keys.map((key) => {
49
+ if (key !== CACHE) return caches.delete(key);
50
+ }),
51
+ ),
52
+ ),
53
+ );
54
+
55
+ await Promise.all(tasks);
56
+ await sw.clients.claim();
57
+ })(),
58
+ );
59
+ });
60
+
61
+ /**
62
+ * @param {FetchEvent} event
63
+ */
64
+ sw.addEventListener("fetch", (event) => {
65
+ /** @type {FetchEvent} */ (event).respondWith(
66
+ (async () => {
67
+ const cached = await caches.match(event.request);
68
+ if (cached) return cached;
69
+
70
+ try {
71
+ if (event.request.mode === "navigate") {
72
+ const preloadResponse = await event.preloadResponse;
73
+ if (preloadResponse) return preloadResponse;
74
+ }
75
+
76
+ return await fetch(event.request);
77
+ } catch {
78
+ if (event.request.mode === "navigate") {
79
+ const offline = await caches.match("/offline.html");
80
+ if (offline) return offline;
81
+ return new Response("<h1>Offline</h1>", {
82
+ headers: { "Content-Type": "text/html" },
83
+ });
84
+ }
85
+
86
+ return Response.error();
87
+ }
88
+ })(),
89
+ );
90
+ });