packetsnitch 1.5.599
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/.eslintrc.json +28 -0
- package/.webpack/x64/main/index.js +2 -0
- package/.webpack/x64/main/index.js.map +1 -0
- package/.webpack/x64/renderer/assets/css/rubikglitch.woff2 +0 -0
- package/.webpack/x64/renderer/assets/css/style.css +1916 -0
- package/.webpack/x64/renderer/assets/images/loading.gif +0 -0
- package/.webpack/x64/renderer/assets/images/logo.webp +0 -0
- package/.webpack/x64/renderer/assets/images/packet-snitch-tag.webp +0 -0
- package/.webpack/x64/renderer/main_window/index.html +3 -0
- package/.webpack/x64/renderer/main_window/index.js +3 -0
- package/.webpack/x64/renderer/main_window/index.js.LICENSE.txt +36 -0
- package/.webpack/x64/renderer/main_window/index.js.map +1 -0
- package/.webpack/x64/renderer/main_window/preload.js +2 -0
- package/.webpack/x64/renderer/main_window/preload.js.map +1 -0
- package/backend/common/GeoLite2-City.mmdb +0 -0
- package/backend/common/mac-vendors-export.csv +56923 -0
- package/backend/common/service-names-port-numbers.csv +15368 -0
- package/backend/requirements.txt +14 -0
- package/backend/snitch.py +3611 -0
- package/forge.config.js +80 -0
- package/package.json +102 -0
- package/ps-icon.ico +0 -0
- package/snitch.spec +44 -0
- package/src/assets/css/rubikglitch.woff2 +0 -0
- package/src/assets/css/style.css +1916 -0
- package/src/assets/images/loading.gif +0 -0
- package/src/assets/images/logo.webp +0 -0
- package/src/assets/images/packet-snitch-tag.webp +0 -0
- package/src/back-comm.js +70 -0
- package/src/decoders.js +579 -0
- package/src/filter.js +461 -0
- package/src/front.js +10 -0
- package/src/index.html +1036 -0
- package/src/logging.js +150 -0
- package/src/main.js +571 -0
- package/src/preload.js +73 -0
- package/src/renderer.js +30 -0
- package/src/ui/common-frontend.js +13 -0
- package/src/ui/context-menu.js +88 -0
- package/src/ui/decoders.js +1 -0
- package/src/ui/main-frontend.js +4957 -0
- package/src/ui/panels/crypt-panel.js +565 -0
- package/src/ui/panels/data-panel.js +151 -0
- package/src/ui/panels/data-tools-panel.js +939 -0
- package/src/ui/panels/install-screen.js +59 -0
- package/src/ui/panels/keystore-panel.js +1248 -0
- package/src/ui/panels/list-panel.js +403 -0
- package/src/ui/panels/stats-panel.js +351 -0
- package/src/ui/panels/summary-panel.js +63 -0
- package/webpack.main.config.js +11 -0
- package/webpack.plugins.js +13 -0
- package/webpack.preload.config.js +7 -0
- package/webpack.renderer.config.js +30 -0
- package/webpack.rules.js +35 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
function showInstallScreen(installInfo, documentRef) {
|
|
2
|
+
const screen = documentRef.getElementById("install-screen");
|
|
3
|
+
if (!screen) return;
|
|
4
|
+
|
|
5
|
+
documentRef.getElementById("install-version").textContent =
|
|
6
|
+
"Version " + installInfo.version;
|
|
7
|
+
|
|
8
|
+
const fileList = documentRef.getElementById("install-file-list");
|
|
9
|
+
fileList.innerHTML = "";
|
|
10
|
+
installInfo.installedFiles.forEach((file) => {
|
|
11
|
+
const item = documentRef.createElement("li");
|
|
12
|
+
item.className = file.exists ? "install-file-ok" : "install-file-missing";
|
|
13
|
+
item.textContent = (file.exists ? "\u2713 " : "\u2717 ") + file.name;
|
|
14
|
+
if (!file.exists) {
|
|
15
|
+
item.title = "Not found at: " + file.path;
|
|
16
|
+
}
|
|
17
|
+
fileList.appendChild(item);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const ollamaStatus = documentRef.getElementById("install-ollama-status");
|
|
21
|
+
if (!installInfo.ollamaInstalled) {
|
|
22
|
+
ollamaStatus.textContent =
|
|
23
|
+
"\u26a0 Ollama is not installed. LLM packet summarisation will be unavailable. Install Ollama from https://ollama.com to enable this feature.";
|
|
24
|
+
ollamaStatus.className = "install-warning";
|
|
25
|
+
} else {
|
|
26
|
+
ollamaStatus.textContent =
|
|
27
|
+
"\u2713 Ollama is installed. LLM summarisation is available.";
|
|
28
|
+
ollamaStatus.className = "install-ok";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
screen.style.display = "flex";
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function initializeInstallScreen({ installapi, documentRef }) {
|
|
35
|
+
if (installapi) {
|
|
36
|
+
installapi.checkFirstRun().then((installInfo) => {
|
|
37
|
+
if (installInfo && installInfo.isFirstRun) {
|
|
38
|
+
showInstallScreen(installInfo, documentRef);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const installContinueBtn = documentRef.getElementById("install-continue-btn");
|
|
44
|
+
if (!installContinueBtn) return;
|
|
45
|
+
|
|
46
|
+
installContinueBtn.addEventListener("click", () => {
|
|
47
|
+
if (installapi) {
|
|
48
|
+
installapi.dismissFirstRun().then(() => {
|
|
49
|
+
documentRef.getElementById("install-screen").style.display = "none";
|
|
50
|
+
});
|
|
51
|
+
} else {
|
|
52
|
+
documentRef.getElementById("install-screen").style.display = "none";
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
module.exports = {
|
|
58
|
+
initializeInstallScreen,
|
|
59
|
+
};
|