@networkpro/web 1.12.2 → 1.12.4
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.
- package/CHANGELOG.md +55 -3
- package/LICENSE.md +1 -1
- package/cspell.json +10 -1
- package/package.json +6 -6
- package/src/service-worker.js +1 -5
- package/static/docs/Home.md +0 -63
- package/static/docs/extensions.md +0 -58
- package/static/docs/tracking.md +0 -63
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
<!-- =====================================================================
|
|
2
|
+
CHANGELOG.md
|
|
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
|
# Changelog
|
|
2
10
|
|
|
3
11
|
<!-- markdownlint-disable MD024 -->
|
|
4
12
|
|
|
13
|
+
<!-- Use sections: Added, Changed, Deprecated, Removed, Fixed, Security -->
|
|
14
|
+
|
|
5
15
|
All notable changes to this project will be documented in this file.
|
|
6
16
|
|
|
7
|
-
This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en/1.
|
|
17
|
+
This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), though versioning and formatting may vary.
|
|
8
18
|
|
|
9
19
|
---
|
|
10
20
|
|
|
@@ -12,7 +22,42 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
|
|
|
12
22
|
|
|
13
23
|
---
|
|
14
24
|
|
|
15
|
-
## [1.12.
|
|
25
|
+
## [1.12.4] - 2025-06-05
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
|
|
29
|
+
- Introduced `.md-smart-quotes.js` script for use with markdownlint to flag "smart quotes" in Markdown files.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- Cleaned up `IGNORE_PATHS` in `src/service-worker.js`: removed the `static/docs/` entry, as the directory no longer exists.
|
|
34
|
+
- Upgraded development dependencies:
|
|
35
|
+
- `@vitest/coverage-v8`
|
|
36
|
+
- `posthog-js`
|
|
37
|
+
- `vitest`
|
|
38
|
+
- Corrected the "Effective Date" in `LICENSE.md`.
|
|
39
|
+
- Refactored `.markdownlint.jsonc` into `.markdownlint.mjs` to support the custom linting script.
|
|
40
|
+
|
|
41
|
+
### Removed
|
|
42
|
+
|
|
43
|
+
- Removed the entire `static/docs/` directory; its contents have been migrated to the [Wiki](https://github.com/netwk-pro/netwk-pro.github.io/wiki).
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## [1.12.3] - 2025-06-04
|
|
48
|
+
|
|
49
|
+
### Added
|
|
50
|
+
|
|
51
|
+
- `static/docs/pgp.md`, `pgp-win.md`, and `pgp-email.md` added for reference.
|
|
52
|
+
These files have been temporarily stored until they can be migrated to the wiki.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- Added the new Markdown files in `static/docs` to the `service-worker.js` cache ignore list.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 1.12.2 – 2025-06-04
|
|
16
61
|
|
|
17
62
|
### Changed
|
|
18
63
|
|
|
@@ -39,7 +84,7 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
|
|
|
39
84
|
|
|
40
85
|
---
|
|
41
86
|
|
|
42
|
-
##
|
|
87
|
+
## 1.12.0 – 2025-06-04
|
|
43
88
|
|
|
44
89
|
### Added
|
|
45
90
|
|
|
@@ -64,3 +109,10 @@ This project attempts to follow [Keep a Changelog](https://keepachangelog.com/en
|
|
|
64
109
|
- Deprecated `shouldTrackUser()` logic and legacy cookie checks.
|
|
65
110
|
|
|
66
111
|
---
|
|
112
|
+
|
|
113
|
+
<!-- Link references -->
|
|
114
|
+
|
|
115
|
+
[Unreleased]: https://github.com/netwk-pro/netwk-pro.github.io/compare/v1.12.4...HEAD
|
|
116
|
+
[1.12.4]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.12.4
|
|
117
|
+
[1.12.3]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.12.3
|
|
118
|
+
[1.12.1]: https://github.com/netwk-pro/netwk-pro.github.io/releases/tag/v1.12.1
|
package/LICENSE.md
CHANGED
|
@@ -14,7 +14,7 @@ This file is part of Network Pro.
|
|
|
14
14
|
# Legal, Copyright, and Licensing
|
|
15
15
|
|
|
16
16
|
**Network Pro Strategies**
|
|
17
|
-
**Effective Date:**
|
|
17
|
+
**Effective Date:** June 4, 2025
|
|
18
18
|
|
|
19
19
|
**Official Version Notice**
|
|
20
20
|
This document is provided for convenience only. In the event of any discrepancy, the authoritative version is the one published at [https://netwk.pro](https://netwk.pro).
|
package/cspell.json
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"autorun",
|
|
9
9
|
"BACKTOP",
|
|
10
10
|
"beforeinstallprompt",
|
|
11
|
+
"Betterbird",
|
|
11
12
|
"bootentry",
|
|
12
13
|
"ccby",
|
|
13
14
|
"CCPA",
|
|
@@ -22,12 +23,17 @@
|
|
|
22
23
|
"homescreen",
|
|
23
24
|
"HREFTOP",
|
|
24
25
|
"Izzy",
|
|
26
|
+
"Keybase",
|
|
27
|
+
"keypair",
|
|
28
|
+
"keyserver",
|
|
29
|
+
"Kleopatra",
|
|
25
30
|
"lhci",
|
|
26
31
|
"lifecycles",
|
|
27
32
|
"lighthouseci",
|
|
28
33
|
"lighthouserc",
|
|
29
34
|
"lightningcss",
|
|
30
35
|
"linksheet",
|
|
36
|
+
"Mailvelope",
|
|
31
37
|
"Maricopa",
|
|
32
38
|
"mdsvex",
|
|
33
39
|
"navigations",
|
|
@@ -43,8 +49,10 @@
|
|
|
43
49
|
"npmjs",
|
|
44
50
|
"ntfy",
|
|
45
51
|
"obtainium",
|
|
52
|
+
"openpgp",
|
|
46
53
|
"posthog",
|
|
47
54
|
"prefs",
|
|
55
|
+
"publickey",
|
|
48
56
|
"reconsent",
|
|
49
57
|
"SIEM",
|
|
50
58
|
"SPDY",
|
|
@@ -59,7 +67,8 @@
|
|
|
59
67
|
"vcard",
|
|
60
68
|
"vite",
|
|
61
69
|
"vitest",
|
|
62
|
-
"webfonts"
|
|
70
|
+
"webfonts",
|
|
71
|
+
"Webmail"
|
|
63
72
|
],
|
|
64
73
|
"ignorePaths": [
|
|
65
74
|
".gitignore",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@networkpro/web",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.12.
|
|
5
|
-
"description": "Locking Down Networks, Unlocking Confidence | Security, Networking, Privacy — Network Pro Strategies",
|
|
4
|
+
"version": "1.12.4",
|
|
5
|
+
"description": "Locking Down Networks, Unlocking Confidence™ | Security, Networking, Privacy — Network Pro Strategies",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"advisory",
|
|
8
8
|
"consulting",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"homepage": "https://netwk.pro",
|
|
18
18
|
"bugs": {
|
|
19
|
-
"url": "https://github.com/netwk-pro/netwk-pro.github.io/issues"
|
|
19
|
+
"url": "https://github.com/netwk-pro/netwk-pro.github.io/issues/new/choose"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"dompurify": "^3.2.6",
|
|
80
|
-
"posthog-js": "^1.249.
|
|
80
|
+
"posthog-js": "^1.249.4",
|
|
81
81
|
"semver": "^7.7.2",
|
|
82
82
|
"svelte": "5.33.14"
|
|
83
83
|
},
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@sveltejs/vite-plugin-svelte": "5.1.0",
|
|
92
92
|
"@testing-library/jest-dom": "^6.6.3",
|
|
93
93
|
"@testing-library/svelte": "^5.2.8",
|
|
94
|
-
"@vitest/coverage-v8": "^3.2.
|
|
94
|
+
"@vitest/coverage-v8": "^3.2.2",
|
|
95
95
|
"autoprefixer": "^10.4.21",
|
|
96
96
|
"browserslist": "^4.25.0",
|
|
97
97
|
"eslint": "^9.28.0",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"vite": "^6.3.5",
|
|
120
120
|
"vite-plugin-lightningcss": "^0.0.5",
|
|
121
121
|
"vite-tsconfig-paths": "^5.1.4",
|
|
122
|
-
"vitest": "^3.2.
|
|
122
|
+
"vitest": "^3.2.2"
|
|
123
123
|
},
|
|
124
124
|
"overrides": {
|
|
125
125
|
"@sveltejs/kit": {
|
package/src/service-worker.js
CHANGED
|
@@ -27,19 +27,15 @@ const CACHE = `cache-${version}`;
|
|
|
27
27
|
/** @type {string[]} */
|
|
28
28
|
const excludedAssets = [];
|
|
29
29
|
|
|
30
|
-
//TODO: Remove files in docs once migrated to documentation subsite
|
|
31
|
-
|
|
32
30
|
const IGNORE_PATHS = new Set([
|
|
33
|
-
"/docs/extensions.md",
|
|
34
|
-
"/docs/Home.md",
|
|
35
31
|
"/img/banner-1280x640.png",
|
|
36
32
|
"/img/logo-transparent.png",
|
|
37
33
|
"/img/logo.png",
|
|
38
34
|
"/img/svelte.png",
|
|
35
|
+
"/screenshots/desktop-foss.png",
|
|
39
36
|
"/webfonts/fa-brands-400.ttf",
|
|
40
37
|
"/webfonts/fa-solid-900.ttf",
|
|
41
38
|
"/robots.txt",
|
|
42
|
-
"/screenshots/desktop-foss.png",
|
|
43
39
|
"/sitemap.xml",
|
|
44
40
|
"/CNAME",
|
|
45
41
|
]);
|
package/static/docs/Home.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# 🧠 Network Pro — Developer Wiki
|
|
2
|
-
|
|
3
|
-
> Internal documentation and contributor onboarding resources for the [Network Pro™ Web Presence](https://github.com/netwk-pro/netwk-pro.github.io) project.
|
|
4
|
-
> **Note:** Most of the below links are currently non-functional and serve solely as placeholders. Once pages are added, the placeholder links will be removed.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 📌 Overview
|
|
9
|
-
|
|
10
|
-
This wiki provides documentation, conventions, and internal tooling references to support development, testing, and deployment workflows across the Network Pro stack.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## 📁 Sections
|
|
15
|
-
|
|
16
|
-
### 🛠 Setup & Tooling
|
|
17
|
-
|
|
18
|
-
- [Environment Requirements](Environment-Requirements.md)
|
|
19
|
-
Node, npm, version managers, OS-specific notes.
|
|
20
|
-
- [Editor Configuration](Editor-Configuration.md)
|
|
21
|
-
Workspace settings, recommended VS Code/VSCodium extensions.
|
|
22
|
-
- [CLI Scripts Reference](CLI-Scripts.md)
|
|
23
|
-
`npm run` scripts explained with tips for usage.
|
|
24
|
-
|
|
25
|
-
### 🚧 Development
|
|
26
|
-
|
|
27
|
-
- [Local Development](Local-Development.md)
|
|
28
|
-
Running the project, debugging, hot reload, ENV_MODE behavior.
|
|
29
|
-
- [Testing & Audits](Testing-&-Audits.md)
|
|
30
|
-
Vitest, Playwright, Lighthouse, CI reports.
|
|
31
|
-
- [Styling & Components](Styling-&-Components.md)
|
|
32
|
-
Design system, reusable components, naming conventions.
|
|
33
|
-
|
|
34
|
-
### 🚀 CI/CD
|
|
35
|
-
|
|
36
|
-
- [GitHub Actions Workflows](CI-CD-Workflows.md)
|
|
37
|
-
How our deploy/audit pipelines are structured.
|
|
38
|
-
- [Versioning & Releases](Versioning-&-Releases.md)
|
|
39
|
-
Publishing, changelog generation, NPM tagging conventions.
|
|
40
|
-
|
|
41
|
-
### 📚 Documentation Maintenance
|
|
42
|
-
|
|
43
|
-
- [Contributing to the Wiki](Contributing-to-the-Wiki.md)
|
|
44
|
-
Format, tone, and content guidelines for internal docs.
|
|
45
|
-
- [MkDocs Subsite Overview](MkDocs-Subsite.md)
|
|
46
|
-
How the public documentation repo is built and deployed.
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
## 📎 Related Repositories
|
|
51
|
-
|
|
52
|
-
- [Main Site (Web)](https://github.com/netwk-pro/netwk-pro.github.io)
|
|
53
|
-
- [Documentation Site](https://github.com/netwk-pro/docs)
|
|
54
|
-
- [Blog Subsite](https://github.com/netwk-pro/blog)
|
|
55
|
-
- [GitHub Wiki](https://github.com/netwk-pro/netwk-pro.github.io/wiki)
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## 🤝 Contributing
|
|
60
|
-
|
|
61
|
-
If you're new to the project, start with [Environment Requirements](Environment-Requirements.md) and [Local Development](Local-Development.md). See [Contributing to the Wiki](Contributing-to-the-Wiki.md) for how to add or edit content.
|
|
62
|
-
|
|
63
|
-
---
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# 🧩 Recommended VS Code Extensions
|
|
2
|
-
|
|
3
|
-
To streamline development and align with project conventions, we recommend the following [VSCodium](https://vscodium.com/) and [Visual Studio Code](https://code.visualstudio.com/) (VS Code) extensions. These tools enhance productivity, enforce code quality, and ensure consistency across the codebase.
|
|
4
|
-
|
|
5
|
-
> Note: While these extensions are optional, they are thoughtfully curated to complement our development workflow.
|
|
6
|
-
|
|
7
|
-
<!-- cspell:disable -->
|
|
8
|
-
|
|
9
|
-
| Extension Name | Identifier | Description |
|
|
10
|
-
| ------------------------- | --------------------------------------- | --------------------------------------------------------------------------- |
|
|
11
|
-
| Prettier - Code formatter | `esbenp.prettier-vscode` | Formats code consistently across various languages. |
|
|
12
|
-
| ESLint | `dbaeumer.vscode-eslint` | Integrates ESLint into VS Code for JavaScript and TypeScript linting. |
|
|
13
|
-
| Stylelint | `stylelint.vscode-stylelint` | Lints CSS/SCSS and enforces consistent styling conventions. |
|
|
14
|
-
| Markdownlint | `DavidAnson.vscode-markdownlint` | Provides linting and style checking for Markdown files. |
|
|
15
|
-
| EditorConfig for VS Code | `EditorConfig.EditorConfig` | Maintains consistent coding styles between different editors and IDEs. |
|
|
16
|
-
| Svelte for VS Code | `svelte.svelte-vscode` | Offers syntax highlighting, code completion, and error checking for Svelte. |
|
|
17
|
-
| Code Spell Checker | `streetsidesoftware.code-spell-checker` | Inline spell checking (comments, Markdown, etc.) |
|
|
18
|
-
|
|
19
|
-
## 🛠 Installation
|
|
20
|
-
|
|
21
|
-
To install these extensions, you can use the following command in your terminal:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
code --install-extension esbenp.prettier-vscode
|
|
25
|
-
code --install-extension dbaeumer.vscode-eslint
|
|
26
|
-
code --install-extension stylelint.vscode-stylelint
|
|
27
|
-
code --install-extension DavidAnson.vscode-markdownlint
|
|
28
|
-
code --install-extension EditorConfig.EditorConfig
|
|
29
|
-
code --install-extension svelte.svelte-vscode
|
|
30
|
-
code --install-extension volta.volta
|
|
31
|
-
code --install-extension eamodio.gitlens
|
|
32
|
-
code --install-extension github.vscode-pull-request-github
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
<!-- cspell:enable -->
|
|
36
|
-
|
|
37
|
-
Alternatively, you can search for each extension by name in [Open VSX Registry](https://open-vsx.org/) and/or the [VS Code Extensions Marketplace](https://marketplace.visualstudio.com/vscode) and install them individually.
|
|
38
|
-
|
|
39
|
-
## 📁 Workspace Recommendations
|
|
40
|
-
|
|
41
|
-
Our repository includes a `.vscode/extensions.json` file that specifies these recommended extensions. When you open the project in VS Code, you'll be prompted to install any missing recommended extensions. This ensures a consistent development environment across all contributors.
|
|
42
|
-
|
|
43
|
-
## 🔧 Configuration
|
|
44
|
-
|
|
45
|
-
The `.vscode/settings.json` file in the repository contains workspace-specific settings that align with our coding standards and practices. These settings include formatter configurations, linting rules, and other preferences to maintain code quality and consistency.
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
<div style="font-size: 12px; text-align: center;">
|
|
50
|
-
|
|
51
|
-
Copyright © 2025
|
|
52
|
-
**[Network Pro Strategies](https://netwk.pro) (Network Pro™)**
|
|
53
|
-
|
|
54
|
-
Network Pro™, the shield logo, and the "Locking Down Networks™" slogan are [trademarks](https://netwk.pro/license#trademark) of Network Pro Strategies.
|
|
55
|
-
|
|
56
|
-
Licensed under **[CC BY 4.0](https://netwk.pro/license#cc-by)** and the **[GNU GPL](https://netwk.pro/license#gnu-gpl)**, as published by the [Free Software Foundation](https://www.fsf.org), either version 3 of the License, or (at your option) any later version.
|
|
57
|
-
|
|
58
|
-
</div>
|
package/static/docs/tracking.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# Tracking Preferences & Privacy Signals
|
|
2
|
-
|
|
3
|
-
<!-- markdownlint-disable MD018 -->
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
This document explains how Network Pro handles analytics tracking in a privacy-aware, user-consented, and standards-compliant manner. It covers:
|
|
8
|
-
|
|
9
|
-
- Tracking preference storage (cookies)
|
|
10
|
-
- Browser signals (DNT and GPC)
|
|
11
|
-
- Reconsent logic
|
|
12
|
-
- Reactive store architecture
|
|
13
|
-
|
|
14
|
-
### 🔐 Principles
|
|
15
|
-
|
|
16
|
-
- **Privacy by default**: Tracking is disabled when browser signals indicate user preference (DNT/GPC).
|
|
17
|
-
- **Explicit consent**: Users may opt-in or opt-out manually, overriding signals.
|
|
18
|
-
- **Persistent choice**: Consent state is remembered via first-party cookies.
|
|
19
|
-
- **Transparency**: The tracking status is shown to users in the UI.
|
|
20
|
-
|
|
21
|
-
### 🧠 Architecture Summary
|
|
22
|
-
|
|
23
|
-
- **Store**: `src/lib/stores/trackingPreferences.js`
|
|
24
|
-
- Consolidates logic for cookie preferences, browser signals, and consent state.
|
|
25
|
-
- SSR-safe, reactive, and fully declarative.
|
|
26
|
-
- **Deprecated**:
|
|
27
|
-
- `utils/privacy.js` → replaced by derived store logic.
|
|
28
|
-
- `utils/trackingCookies.js` → merged into the store with SSR-safe cookie APIs.
|
|
29
|
-
|
|
30
|
-
### Reactive State
|
|
31
|
-
|
|
32
|
-
| Store | Type | Description |
|
|
33
|
-
| ----------------------- | ------------------------- | ----------------------------------------------------------------------- |
|
|
34
|
-
| `trackingPreferences` | `Readable<TrackingState>` | Contains current tracking metadata (opt-in/out, DNT, GPC, status, etc). |
|
|
35
|
-
| `trackingEnabled` | `Writable<boolean>` | Exposed to toggle or query PostHog tracking state reactively. |
|
|
36
|
-
| `remindUserToReconsent` | `Readable<boolean>` | Indicates whether a consent renewal prompt should be shown. |
|
|
37
|
-
| `showReminder` | `Writable<boolean>` | Used by PostHog to conditionally display a reminder or banner. |
|
|
38
|
-
|
|
39
|
-
### ⏳ Reconsent Logic
|
|
40
|
-
|
|
41
|
-
The derived store `remindUserToReconsent` evaluates whether a user should be reminded to re-consent to tracking.
|
|
42
|
-
|
|
43
|
-
It checks for:
|
|
44
|
-
|
|
45
|
-
- Manual opt-in or opt-out
|
|
46
|
-
- A valid `tracking_consent_timestamp` cookie
|
|
47
|
-
- Whether 6+ months have elapsed since that timestamp
|
|
48
|
-
|
|
49
|
-
### ⚙️ Developer Notes
|
|
50
|
-
|
|
51
|
-
- Changes to tracking preferences update cookies and reactive state
|
|
52
|
-
- Reconsent timestamp is written/cleared via store utility functions
|
|
53
|
-
- Use `$trackingPreferences` and `remindUserToReconsent` wherever reactive values are needed
|
|
54
|
-
|
|
55
|
-
### 💡 Related Components
|
|
56
|
-
|
|
57
|
-
| File | Purpose |
|
|
58
|
-
| ------------------------------- | -------------------------------------------------------------------------------- |
|
|
59
|
-
| `+layout.svelte` | Initializes PostHog client and service worker; references `trackingPreferences`. |
|
|
60
|
-
| `PrivacyDashboard.svelte` | UI control panel for opt-in/out toggles and consent status display. |
|
|
61
|
-
| `PrivacyContent.svelte` | Informational content rendered in modals, footers, and standalone pages. |
|
|
62
|
-
| `stores/trackingPreferences.js` | Primary source of truth; tracks and derives tracking state. |
|
|
63
|
-
| `stores/posthog.js` | Encapsulates privacy-safe analytics setup and event capture logic. |
|