aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2024-06-29 20:59:16 +0200
committerRaindropsSys <raindrops@equestria.dev>2024-06-29 20:59:16 +0200
commit914bcbb474f6f186c212b2da0d9d864b5e75d8e4 (patch)
treeb77a3e341f87e7a9c4ad9e1f9d4928f5b2495329
parent1c94bd658c2469f9ca9f465db82e71b6f7d2bfe8 (diff)
downloadfaunerie-914bcbb474f6f186c212b2da0d9d864b5e75d8e4.tar.gz
faunerie-914bcbb474f6f186c212b2da0d9d864b5e75d8e4.tar.bz2
faunerie-914bcbb474f6f186c212b2da0d9d864b5e75d8e4.zip
Rename to Faunerie
-rwxr-xr-x.fleet/settings.json3
-rwxr-xr-x.gitignore1
-rwxr-xr-x.idea/faunerie.iml (renamed from .idea/prisbeam.iml)0
-rwxr-xr-x.idea/modules.xml2
-rwxr-xr-xREADME.md6
-rwxr-xr-xbuild.sh42
-rwxr-xr-xbuildversion.js15
-rwxr-xr-xdom/index.html6
-rwxr-xr-xe621/match.js2
-rwxr-xr-xe621/update.js2
-rwxr-xr-xmain.js2
-rwxr-xr-xpackage-lock.json46
-rwxr-xr-xpackage.json4
-rwxr-xr-xsrc/FaunerieAI.ts (renamed from src/PrisbeamAI.ts)14
-rwxr-xr-xsrc/FaunerieActions.ts13
-rwxr-xr-xsrc/FaunerieApp.ts (renamed from src/PrisbeamApp.ts)60
-rwxr-xr-xsrc/FaunerieAppDisplay.ts (renamed from src/PrisbeamAppDisplay.ts)40
-rwxr-xr-xsrc/FaunerieDataStore.ts (renamed from src/PrisbeamDataStore.ts)10
-rwxr-xr-xsrc/FaunerieDerpibooru.ts (renamed from src/PrisbeamDerpibooru.ts)10
-rwxr-xr-xsrc/FaunerieLoader.ts (renamed from src/PrisbeamLoader.ts)26
-rwxr-xr-xsrc/FaunerieSearch.ts (renamed from src/PrisbeamSearch.ts)16
-rwxr-xr-xsrc/FaunerieSettings.ts (renamed from src/PrisbeamSettings.ts)16
-rwxr-xr-xsrc/FaunerieUtilities.ts (renamed from src/PrisbeamUtilities.ts)2
-rwxr-xr-xsrc/PrisbeamActions.ts13
-rwxr-xr-xsrc/index.ts4
-rwxr-xr-xupdater/main.js18
-rwxr-xr-xupdater/package-lock.json25
-rwxr-xr-xupdater/package.json2
28 files changed, 187 insertions, 213 deletions
diff --git a/.fleet/settings.json b/.fleet/settings.json
deleted file mode 100755
index 7266b6b..0000000
--- a/.fleet/settings.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "nodejs.typescript.rebuildOnChanges": true
-} \ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 432d2ca..aa803ba 100755
--- a/.gitignore
+++ b/.gitignore
@@ -16,5 +16,4 @@ e621/tag_aliases.json
e621/parsed_tags.json
e621/node_modules
e621/credentials.json
-libprisbeam
intimate/build
diff --git a/.idea/prisbeam.iml b/.idea/faunerie.iml
index 41eb966..41eb966 100755
--- a/.idea/prisbeam.iml
+++ b/.idea/faunerie.iml
diff --git a/.idea/modules.xml b/.idea/modules.xml
index 58ece80..468ea56 100755
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
- <module fileurl="file://$PROJECT_DIR$/.idea/prisbeam.iml" filepath="$PROJECT_DIR$/.idea/prisbeam.iml" />
+ <module fileurl="file://$PROJECT_DIR$/.idea/faunerie.iml" filepath="$PROJECT_DIR$/.idea/faunerie.iml" />
</modules>
</component>
</project> \ No newline at end of file
diff --git a/README.md b/README.md
index d3dba1e..67b5128 100755
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
-# Prisbeam
-A browser and search engine for local copies of various image boards (Derpibooru, Furbooru, e621, ...)
+# Faunerie
+A browser and search engine for local copies of various image boards (e621, Derpibooru, Furbooru, ...)
## Development
Assuming you are using macOS or Linux. Other POSIX systems won't work as Electron does not have binaries for these.
### Cloning
```
-git clone https://source.equestria.dev/equestria.dev/prisbeam
+git clone https://github.com/equestria-dev/faunerie
```
### Setup
diff --git a/build.sh b/build.sh
index 83bdd6b..affdb98 100755
--- a/build.sh
+++ b/build.sh
@@ -3,44 +3,14 @@
rm -rf ./build
# Build the app JS
-cd src
+cd src || exit
tsc
-cd ..
+cd .. || exit
# Build main app
-v1=$(node buildversion.js)
-v2=$(node buildversion.js 1)
-
-npx electron-packager . Prisbeam --ignore sql/win --ignore sql/preprocessed.db --ignore updater --ignore intimate --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --ignore e621 --overwrite --platform=darwin --arch=arm64 --icon=./logo/logo.icns --out=./build
-npx electron-packager . Prisbeam --ignore sql/mac --ignore sql/preprocessed.db --ignore updater --ignore intimate --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --ignore e621 --overwrite --platform=win32 --arch=x64 --icon=./logo/logo-round.ico --out=./build
-/Library/Atomic/SDK/convert_darwin_arm64.sh ./build/Prisbeam-darwin-arm64/Prisbeam.app
-
-cd ./build/Prisbeam-darwin-arm64 || exit
-zip -r ../../build/Prisbeam-Mac-ARM64.zip ./Prisbeam.app
-cd ../..
-curl -v --header "PRIVATE-TOKEN: $(cat ~/.deploy.txt)" --header "Content-Type: multipart/form-data" --upload-file ./build/Prisbeam-Mac-ARM64.zip https://source.equestria.dev/api/v4/projects/168/packages/generic/prisbeam/$v1/Prisbeam-Mac-ARM64.zip
-
-cd ./build/Prisbeam-win32-x64 || exit
-zip -r ../../build/Prisbeam-Win32-x64.zip ./*
-cd ../..
-curl -v --header "PRIVATE-TOKEN: $(cat ~/.deploy.txt)" --header "Content-Type: multipart/form-data" --upload-file ./build/Prisbeam-Win32-x64.zip https://source.equestria.dev/api/v4/projects/168/packages/generic/prisbeam/$v1/Prisbeam-Win32-x64.zip
+npx electron-packager . Faunerie --ignore sql/win --ignore sql/preprocessed.db --ignore updater --ignore intimate --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --ignore e621 --overwrite --platform=darwin --arch=arm64 --icon=./logo/logo.icns --out=./build
+npx electron-packager . Faunerie --ignore sql/mac --ignore sql/preprocessed.db --ignore updater --ignore intimate --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --ignore e621 --overwrite --platform=win32 --arch=x64 --icon=./logo/logo-round.ico --out=./build
# Build updater
-npx electron-packager ./updater "Prisbeam Updater" --ignore sql/win --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --overwrite --platform=darwin --arch=arm64 --icon=./logo/logo-updater.icns --out=./build
-npx electron-packager ./updater "Prisbeam Updater" --ignore sql/mac --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --overwrite --platform=win32 --arch=x64 --icon=./logo/logo-updater-round.ico --out=./build
-/Library/Atomic/SDK/convert_darwin_arm64.sh ./build/Prisbeam\ Updater-darwin-arm64/Prisbeam\ Updater.app
-
-cd ./build/Prisbeam\ Updater-darwin-arm64 || exit
-zip -r ../../build/Prisbeam-Updater-Mac-ARM64.zip ./Prisbeam\ Updater.app
-cd ../..
-curl -v --header "PRIVATE-TOKEN: $(cat ~/.deploy.txt)" --header "Content-Type: multipart/form-data" --upload-file ./build/Prisbeam-Updater-Mac-ARM64.zip https://source.equestria.dev/api/v4/projects/168/packages/generic/prisbeam-updater/$v2/Prisbeam-Updater-Mac-ARM64.zip
-
-cd ./build/Prisbeam\ Updater-win32-x64 || exit
-zip -r ../../build/Prisbeam-Updater-Win32-x64.zip ./*
-cd ../..
-curl -v --header "PRIVATE-TOKEN: $(cat ~/.deploy.txt)" --header "Content-Type: multipart/form-data" --upload-file ./build/Prisbeam-Updater-Win32-x64.zip https://source.equestria.dev/api/v4/projects/168/packages/generic/prisbeam-updater/$v2/Prisbeam-Updater-Win32-x64.zip
-
-# Remove uploaded files
-rm -rf ./build
-rm -rf ./build
-rm -rf ./build
+npx electron-packager ./updater "Faunerie Updater" --ignore sql/win --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --overwrite --platform=darwin --arch=arm64 --icon=./logo/logo-updater.icns --out=./build
+npx electron-packager ./updater "Faunerie Updater" --ignore sql/mac --ignore sql/preprocessed.db --ignore sql/preprocessed2.db --overwrite --platform=win32 --arch=x64 --icon=./logo/logo-updater-round.ico --out=./build
diff --git a/buildversion.js b/buildversion.js
deleted file mode 100755
index 72b2d9d..0000000
--- a/buildversion.js
+++ /dev/null
@@ -1,15 +0,0 @@
-const isUpdater = !!process.argv[2];
-let baseVersion = "0.0.0";
-
-if (isUpdater) {
- baseVersion = require('./updater/package.json')['version'];
-} else {
- baseVersion = require('./package.json')['version'];
-}
-
-process.stdout.write(baseVersion + "-" + new Date().toISOString()
- .replaceAll("-", "")
- .replaceAll(":", "")
- .split(".")[0]
- .replace("T", ".")
-);
diff --git a/dom/index.html b/dom/index.html
index 7b090b3..4239a1d 100755
--- a/dom/index.html
+++ b/dom/index.html
@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
- <title>Prisbeam</title>
+ <title>Faunerie</title>
<link rel="stylesheet" href="../bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="./app.css">
<script src="../bootstrap/bootstrap.bundle.min.js"></script>
@@ -13,7 +13,7 @@
<div class="modal-content">
<div class="modal-body">
<div id="derpibooru-login-initial">
- <p>Log into your Derpibooru account on Prisbeam to access your filters, watched tags, and more. All the information about your Derpibooru account is encrypted and stored securely on your own device.</p>
+ <p>Log into your Derpibooru account on Faunerie to access your filters, watched tags, and more. All the information about your Derpibooru account is encrypted and stored securely on your own device.</p>
<div style="display: grid; grid-template-columns: 1fr 2fr; grid-column-gap: 10px; grid-row-gap: 5px;">
<div style="display: flex; align-items: center;">
<label for="derpibooru-email" class="col-form-label">Email address:</label>
@@ -96,7 +96,7 @@
<div style="text-align: center;">
<a class="fancy-btn" id="logo" onclick="instance.actions.goHome();" href="#" style="padding: 5px 10px; display: inline-block; color: white; text-decoration: none; -webkit-app-region: no-drag;">
<img alt="Logo" src="../logo/logo.png" style="width: 32px; height: 32px; border-radius: 5px; vertical-align: middle;">
- <span>&nbsp;Prisbeam</span>
+ <span>&nbsp;Faunerie</span>
</a>
</div>
<input tabindex="-1" autocomplete="false" autocapitalize="off" spellcheck="false" onblur="instance.dataStore.lastPress = new Date().getTime() - 5000; instance.dataStore.needUpdate = true;" onkeyup="instance.dataStore.lastPress = new Date().getTime(); instance.dataStore.needUpdate = true;" class="form-control" placeholder="Search in your images..." id="search" style="-webkit-app-region: no-drag;">
diff --git a/e621/match.js b/e621/match.js
index f2272e7..3837500 100755
--- a/e621/match.js
+++ b/e621/match.js
@@ -1,4 +1,4 @@
-const PATH = require('fs').readFileSync(require('os').homedir() + "/.prisbeam_path").toString().trim();
+const PATH = require('fs').readFileSync(require('os').homedir() + "/.faunerie_path").toString().trim();
const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database(PATH, sqlite3.OPEN_READONLY);
diff --git a/e621/update.js b/e621/update.js
index 7c44c73..08d61af 100755
--- a/e621/update.js
+++ b/e621/update.js
@@ -46,7 +46,7 @@ db.serialize(async () => {
let res = await fetch("https://e621.net/posts.json?page=" + page + "&limit=320&tags=" + encodeURIComponent("fav:" + API_ID), {
headers: {
"Authorization": "Basic " + btoa(TOKEN),
- "User-Agent": "Mozilla/5.0 (+Prisbeam; https://source.equestria.dev/equestria.dev/prisbeam)"
+ "User-Agent": "Mozilla/5.0 (+Faunerie; https://github.com/equestria-dev/faunerie)"
}
});
diff --git a/main.js b/main.js
index 05851e0..1ecab42 100755
--- a/main.js
+++ b/main.js
@@ -19,7 +19,7 @@ function open() {
global.win = new BrowserWindow({
width: 1500,
minWidth: 800,
- title: "Prisbeam",
+ title: "Faunerie",
height: 800,
minHeight: 450,
webPreferences: {
diff --git a/package-lock.json b/package-lock.json
index ef8d051..a1c7bc6 100755
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,17 +1,18 @@
{
- "name": "prisbeam",
+ "name": "faunerie",
"version": "3.0.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
+ "name": "faunerie",
"version": "3.0.4",
"hasInstallScript": true,
"dependencies": {
"@electron/remote": "^2.1.2",
"axios": "^1.6.7",
"fuse.js": "^6.6.2",
- "libprisbeam": "github:equestria-dev/libprisbeam",
+ "libfaunerie": "github:equestria-dev/libfaunerie",
"sqlite3": "^5.1.7",
"systeminformation": "^5.21.11"
},
@@ -2003,11 +2004,18 @@
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
},
- "node_modules/ip": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.1.tgz",
- "integrity": "sha512-lJUL9imLTNi1ZfXT+DU6rBBdbiKGBuay9B6xGSPVjUeQwaH1RIGqef8RZkUtHioLmSNpPR5M4HVKJGm1j8FWVQ==",
- "devOptional": true
+ "node_modules/ip-address": {
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz",
+ "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==",
+ "devOptional": true,
+ "dependencies": {
+ "jsbn": "1.1.0",
+ "sprintf-js": "^1.1.3"
+ },
+ "engines": {
+ "node": ">= 12"
+ }
},
"node_modules/is-arrayish": {
"version": "0.2.1",
@@ -2108,6 +2116,12 @@
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"devOptional": true
},
+ "node_modules/jsbn": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz",
+ "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==",
+ "devOptional": true
+ },
"node_modules/json-buffer": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
@@ -2144,9 +2158,9 @@
"json-buffer": "3.0.1"
}
},
- "node_modules/libprisbeam": {
- "version": "2.3.4",
- "resolved": "git+ssh://git@github.com/equestria-dev/libprisbeam.git#d211ab6d26ff8caf4dcb7352c59b5f43df3526e0",
+ "node_modules/libfaunerie": {
+ "version": "2.4.0",
+ "resolved": "git+ssh://git@github.com/equestria-dev/libfaunerie.git#e2dc982e0530f11c5afd673b08ccab2e7d1341ad",
"hasInstallScript": true,
"dependencies": {
"@types/sqlite3": "^3.1.11"
@@ -3222,16 +3236,16 @@
}
},
"node_modules/socks": {
- "version": "2.7.1",
- "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz",
- "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==",
+ "version": "2.8.3",
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz",
+ "integrity": "sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==",
"devOptional": true,
"dependencies": {
- "ip": "^2.0.0",
+ "ip-address": "^9.0.5",
"smart-buffer": "^4.2.0"
},
"engines": {
- "node": ">= 10.13.0",
+ "node": ">= 10.0.0",
"npm": ">= 3.0.0"
}
},
@@ -3285,7 +3299,7 @@
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz",
"integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==",
- "optional": true
+ "devOptional": true
},
"node_modules/sqlite3": {
"version": "5.1.7",
diff --git a/package.json b/package.json
index c816b63..3c66aa5 100755
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
"version": "3.0.4",
"scripts": {
"install": "cd updater && npm install && cd ..",
- "postinstall": "echo \"============================\n\nThank you for developing on Prisbeam!\n\n- Run 'npm run build' to build TypeScript code\n- Run 'npm run debug' to start the application in debug mode\n- Run 'npm run debug-updater' to start Prisbeam Updater in debug mode\n- Run 'npm run release' to build the release application\n\n============================\"",
+ "postinstall": "echo \"============================\n\nThank you for developing on Faunerie!\n\n- Run 'npm run build' to build TypeScript code\n- Run 'npm run debug' to start the application in debug mode\n- Run 'npm run debug-updater' to start Faunerie Updater in debug mode\n- Run 'npm run release' to build the release application\n\n============================\"",
"build": "cd src && tsc && cd ..",
"debug": "npm run build && electron main.js",
"debug-updater": "npm run build && cd updater && npx electron main.js && cd ..",
@@ -13,7 +13,7 @@
"@electron/remote": "^2.1.2",
"axios": "^1.6.7",
"fuse.js": "^6.6.2",
- "libprisbeam": "github:equestria-dev/libprisbeam",
+ "libfaunerie": "github:equestria-dev/libfaunerie",
"sqlite3": "^5.1.7",
"systeminformation": "^5.21.11"
},
diff --git a/src/PrisbeamAI.ts b/src/FaunerieAI.ts
index a9fc4d4..aa93cbb 100755
--- a/src/PrisbeamAI.ts
+++ b/src/FaunerieAI.ts
@@ -1,15 +1,15 @@
-import {PrisbeamApp} from "./PrisbeamApp";
+import {FaunerieApp} from "./FaunerieApp";
import {ChildProcess} from "node:child_process";
-import {PrisbeamImageType} from "libprisbeam";
+import {FaunerieImageType} from "libfaunerie";
import * as fs from "node:fs";
import * as cp from "node:child_process";
-export class PrisbeamAI {
- instance: PrisbeamApp;
+export class FaunerieAI {
+ instance: FaunerieApp;
aiProcess: ChildProcess;
aiStarting: boolean;
- constructor(instance: PrisbeamApp) {
+ constructor(instance: FaunerieApp) {
this.instance = instance;
}
@@ -125,11 +125,11 @@ export class PrisbeamAI {
}
await this.startAI();
- let url = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, PrisbeamImageType.ViewURL);
+ let url = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, FaunerieImageType.ViewURL);
let data: any;
if (url.startsWith("blob:") || url.startsWith("pbip:")) {
- fs.writeFileSync(_dataStore.appData + "/.temp", protectedDecode(fs.readFileSync(_dataStore.database.frontend.getImageFile(_dataStore.currentImage, PrisbeamImageType.ViewFile))));
+ fs.writeFileSync(_dataStore.appData + "/.temp", protectedDecode(fs.readFileSync(_dataStore.database.frontend.getImageFile(_dataStore.currentImage, FaunerieImageType.ViewFile))));
url = "file://" + (_dataStore.appData + "/.temp").replaceAll("\\", "/");
}
diff --git a/src/FaunerieActions.ts b/src/FaunerieActions.ts
new file mode 100755
index 0000000..853ac12
--- /dev/null
+++ b/src/FaunerieActions.ts
@@ -0,0 +1,13 @@
+import {FaunerieApp} from "./FaunerieApp";
+
+export class FaunerieActions {
+ instance: FaunerieApp;
+
+ constructor(instance: FaunerieApp) {
+ this.instance = instance;
+ }
+
+ goHome() {
+ this.instance.search.startTagSearch("");
+ }
+}
diff --git a/src/PrisbeamApp.ts b/src/FaunerieApp.ts
index a44e1e4..6614d07 100755
--- a/src/PrisbeamApp.ts
+++ b/src/FaunerieApp.ts
@@ -1,36 +1,36 @@
-import {PrisbeamDataStore} from "./PrisbeamDataStore";
-import {PrisbeamListType} from "libprisbeam";
-import {PrisbeamAppDisplay} from "./PrisbeamAppDisplay";
-import {PrisbeamSettings} from "./PrisbeamSettings";
-import {PrisbeamSearch} from "./PrisbeamSearch";
-import {PrisbeamActions} from "./PrisbeamActions";
-import {PrisbeamAI} from "./PrisbeamAI";
-import {PrisbeamLoader} from "./PrisbeamLoader";
-import {PrisbeamPropertyStore} from "libprisbeam/src/PrisbeamPropertyStore";
-import {PrisbeamDerpibooru} from "./PrisbeamDerpibooru";
-
-export class PrisbeamApp {
- dataStore: PrisbeamDataStore;
+import {FaunerieDataStore} from "./FaunerieDataStore";
+import {FaunerieListType} from "libfaunerie";
+import {FaunerieAppDisplay} from "./FaunerieAppDisplay";
+import {FaunerieSettings} from "./FaunerieSettings";
+import {FaunerieSearch} from "./FaunerieSearch";
+import {FaunerieActions} from "./FaunerieActions";
+import {FaunerieAI} from "./FaunerieAI";
+import {FaunerieLoader} from "./FaunerieLoader";
+import {FauneriePropertyStore} from "libfaunerie/src/FauneriePropertyStore";
+import {FaunerieDerpibooru} from "./FaunerieDerpibooru";
+
+export class FaunerieApp {
+ dataStore: FaunerieDataStore;
bootstrap: any;
- display: PrisbeamAppDisplay;
- settings: PrisbeamSettings;
- search: PrisbeamSearch;
- actions: PrisbeamActions;
- ai: PrisbeamAI;
- loader: PrisbeamLoader;
- propertyStore: PrisbeamPropertyStore;
- derpibooru: PrisbeamDerpibooru;
+ display: FaunerieAppDisplay;
+ settings: FaunerieSettings;
+ search: FaunerieSearch;
+ actions: FaunerieActions;
+ ai: FaunerieAI;
+ loader: FaunerieLoader;
+ propertyStore: FauneriePropertyStore;
+ derpibooru: FaunerieDerpibooru;
constructor(bootstrap: any) {
this.bootstrap = bootstrap;
- this.dataStore = new PrisbeamDataStore(this);
- this.display = new PrisbeamAppDisplay(this);
- this.settings = new PrisbeamSettings(this);
- this.search = new PrisbeamSearch(this);
- this.actions = new PrisbeamActions(this);
- this.ai = new PrisbeamAI(this);
- this.loader = new PrisbeamLoader(this);
- this.derpibooru = new PrisbeamDerpibooru(this);
+ this.dataStore = new FaunerieDataStore(this);
+ this.display = new FaunerieAppDisplay(this);
+ this.settings = new FaunerieSettings(this);
+ this.search = new FaunerieSearch(this);
+ this.actions = new FaunerieActions(this);
+ this.ai = new FaunerieAI(this);
+ this.loader = new FaunerieLoader(this);
+ this.derpibooru = new FaunerieDerpibooru(this);
this.search.loadSearchModule();
}
@@ -48,7 +48,7 @@ export class PrisbeamApp {
this.dataStore.loaded = true;
this.dataStore.page = 1;
- this.dataStore.currentView = await this.dataStore.database.frontend.getAllImages(PrisbeamListType.Array) as any[];
+ this.dataStore.currentView = await this.dataStore.database.frontend.getAllImages(FaunerieListType.Array) as any[];
this.display.updateDisplay();
this.dataStore.loader.hide();
diff --git a/src/PrisbeamAppDisplay.ts b/src/FaunerieAppDisplay.ts
index e3a9ee6..66f592b 100755
--- a/src/PrisbeamAppDisplay.ts
+++ b/src/FaunerieAppDisplay.ts
@@ -1,13 +1,13 @@
-import {PrisbeamApp} from "./PrisbeamApp";
-import {PrisbeamImageType} from "libprisbeam";
+import {FaunerieApp} from "./FaunerieApp";
+import {FaunerieImageType} from "libfaunerie";
import * as fs from "node:fs";
-import {PrisbeamUtilities} from "./PrisbeamUtilities";
+import {FaunerieUtilities} from "./FaunerieUtilities";
import {shell} from "@electron/remote";
-export class PrisbeamAppDisplay {
- private instance: PrisbeamApp;
+export class FaunerieAppDisplay {
+ private instance: FaunerieApp;
- constructor(app: PrisbeamApp) {
+ constructor(app: FaunerieApp) {
this.instance = app;
}
@@ -37,7 +37,7 @@ export class PrisbeamAppDisplay {
getThumbnailHTML(i: any) {
if (i['representations']['thumb'].endsWith(".webm")) i['representations']['thumb'] = i['representations']['thumb'].substring(0, i['representations']['thumb'].length - 5) + ".gif";
- let thumbnail = this.instance.dataStore.database.frontend.getImageFile(i, PrisbeamImageType.ThumbnailURL);
+ let thumbnail = this.instance.dataStore.database.frontend.getImageFile(i, FaunerieImageType.ThumbnailURL);
// noinspection CssUnknownTarget
return `
@@ -174,15 +174,15 @@ export class PrisbeamAppDisplay {
if (_dataStore.searching) {
if (_dataStore.loadedFromCache) {
- document.title = "Searching for " + (document.getElementById("search") as HTMLInputElement).value.trim() + " (page " + _dataStore.page + "/" + totalPages + ") — Prisbeam (Cached)";
+ document.title = "Searching for " + (document.getElementById("search") as HTMLInputElement).value.trim() + " (page " + _dataStore.page + "/" + totalPages + ") — Faunerie (Cached)";
} else {
- document.title = "Searching for " + (document.getElementById("search") as HTMLInputElement).value.trim() + " (page " + _dataStore.page + "/" + totalPages + ") — Prisbeam";
+ document.title = "Searching for " + (document.getElementById("search") as HTMLInputElement).value.trim() + " (page " + _dataStore.page + "/" + totalPages + ") — Faunerie";
}
} else {
if (_dataStore.loadedFromCache) {
- document.title = "All images (page " + _dataStore.page + "/" + totalPages + ") — Prisbeam (Cached)";
+ document.title = "All images (page " + _dataStore.page + "/" + totalPages + ") — Faunerie (Cached)";
} else {
- document.title = "All images (page " + _dataStore.page + "/" + totalPages + ") — Prisbeam";
+ document.title = "All images (page " + _dataStore.page + "/" + totalPages + ") — Faunerie";
}
}
}
@@ -229,7 +229,7 @@ export class PrisbeamAppDisplay {
? "</span> (<span class='selectable'>" + _dataStore.currentImage.source_name + "</span>)"
: "") +
"" +
- PrisbeamUtilities.getMimeBadge(_dataStore.currentImage.mime_type)
+ FaunerieUtilities.getMimeBadge(_dataStore.currentImage.mime_type)
}
displayImageSize() {
@@ -237,28 +237,28 @@ export class PrisbeamAppDisplay {
let size = 0;
let sizeExplanation = [];
- let file = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, PrisbeamImageType.ViewFile);
- let thumb = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, PrisbeamImageType.ThumbnailFile);
+ let file = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, FaunerieImageType.ViewFile);
+ let thumb = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, FaunerieImageType.ThumbnailFile);
if (file) {
let cSize = fs.lstatSync(file).size;
size += cSize;
- sizeExplanation.push("Image: " + PrisbeamUtilities.formatSize(cSize));
+ sizeExplanation.push("Image: " + FaunerieUtilities.formatSize(cSize));
}
if (thumb) {
let cSize = fs.lstatSync(thumb).size;
size += cSize;
- sizeExplanation.push("Thumbnail: " + PrisbeamUtilities.formatSize(cSize));
+ sizeExplanation.push("Thumbnail: " + FaunerieUtilities.formatSize(cSize));
}
let cSize = JSON.stringify(_dataStore.currentImage).length;
size += cSize;
- sizeExplanation.push("Metadata: " + PrisbeamUtilities.formatSize(cSize));
+ sizeExplanation.push("Metadata: " + FaunerieUtilities.formatSize(cSize));
document.getElementById("preview-size").innerHTML =
"<span data-bs-toggle='tooltip' data-bs-html='true' title='" + sizeExplanation.join("<br>") + "'>" +
- PrisbeamUtilities.formatSize(size) + "</span>";
+ FaunerieUtilities.formatSize(size) + "</span>";
}
categorySortingNumber(cat: string) {
@@ -352,7 +352,7 @@ export class PrisbeamAppDisplay {
document.getElementById("preview-parts-list").style.display = "none";
document.title = "Viewing image #" + (_dataStore.currentImage.source_id ?? id) + " — " + document.title;
document.getElementById("preview-title").innerHTML = this.buildImageTitle();
- document.getElementById("preview-date").innerHTML = "Uploaded <span data-bs-toggle='tooltip' title='" + new Date(_dataStore.currentImage.created_at * 1000).toString() + "'>" + PrisbeamUtilities.timeAgo(_dataStore.currentImage.created_at * 1000) + "</span>";
+ document.getElementById("preview-date").innerHTML = "Uploaded <span data-bs-toggle='tooltip' title='" + new Date(_dataStore.currentImage.created_at * 1000).toString() + "'>" + FaunerieUtilities.timeAgo(_dataStore.currentImage.created_at * 1000) + "</span>";
document.getElementById("preview-resolution").innerText = _dataStore.currentImage.width + " × " + _dataStore.currentImage.height;
document.getElementById("preview-source-cta").innerText = "View on " + _dataStore.currentImage.source_name ?? "Derpibooru";
}
@@ -424,7 +424,7 @@ export class PrisbeamAppDisplay {
displayViewer() {
let _dataStore = this.instance.dataStore;
- let url = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, PrisbeamImageType.ViewURL)
+ let url = _dataStore.database.frontend.getImageFile(_dataStore.currentImage, FaunerieImageType.ViewURL)
if (_dataStore.currentImage.mime_type.startsWith("video/")) {
document.getElementById("preview-content").innerHTML = `
diff --git a/src/PrisbeamDataStore.ts b/src/FaunerieDataStore.ts
index cf910f0..3506841 100755
--- a/src/PrisbeamDataStore.ts
+++ b/src/FaunerieDataStore.ts
@@ -1,14 +1,14 @@
-import {PrisbeamApp} from "./PrisbeamApp";
-import {Prisbeam} from "libprisbeam";
+import {FaunerieApp} from "./FaunerieApp";
+import {Faunerie} from "libfaunerie";
-export class PrisbeamDataStore {
+export class FaunerieDataStore {
public loaded: boolean;
public loadedFromCache: boolean;
public hadErrorsLoading: boolean;
public searching: boolean;
public source: string;
public appData: string;
- public database: Prisbeam;
+ public database: Faunerie;
public db: object;
public tags: any[][];
public tagsHashed: object;
@@ -26,7 +26,7 @@ export class PrisbeamDataStore {
public lastPress: number;
public close: boolean;
- constructor(instance: PrisbeamApp) {
+ constructor(instance: FaunerieApp) {
let bootstrap = instance.bootstrap;
this.page = 1;
diff --git a/src/PrisbeamDerpibooru.ts b/src/FaunerieDerpibooru.ts
index 0680f13..84252f9 100755
--- a/src/PrisbeamDerpibooru.ts
+++ b/src/FaunerieDerpibooru.ts
@@ -1,4 +1,4 @@
-import {PrisbeamApp} from "./PrisbeamApp";
+import {FaunerieApp} from "./FaunerieApp";
import {BrowserWindow, shell} from "@electron/remote";
import {BrowserWindow as TBrowserWindow, SafeStorage} from "electron";
@@ -18,13 +18,13 @@ interface DerpibooruJSDataStore {
watchedTagList: number[];
}
-export class PrisbeamDerpibooru {
- instance: PrisbeamApp;
+export class FaunerieDerpibooru {
+ instance: FaunerieApp;
enabled: boolean;
window: TBrowserWindow;
dataStore: DerpibooruJSDataStore;
- constructor(instance: PrisbeamApp) {
+ constructor(instance: FaunerieApp) {
this.instance = instance;
this.enabled = null;
}
@@ -186,7 +186,7 @@ export class PrisbeamDerpibooru {
}
async logOut() {
- if (confirm("Are you sure you want to log out from Derpibooru? Any features using Derpibooru will stop working and your Derpibooru user data will be removed from Prisbeam.")) {
+ if (confirm("Are you sure you want to log out from Derpibooru? Any features using Derpibooru will stop working and your Derpibooru user data will be removed from Faunerie.")) {
await this.instance.propertyStore.removeItem("pba_derpibooru_user_name");
await this.instance.propertyStore.removeItem("pba_derpibooru_key_encrypted");
await this.instance.propertyStore.removeItem("pba_derpibooru_avatar");
diff --git a/src/PrisbeamLoader.ts b/src/FaunerieLoader.ts
index 935b003..926ece6 100755
--- a/src/PrisbeamLoader.ts
+++ b/src/FaunerieLoader.ts
@@ -1,14 +1,14 @@
-import {PrisbeamApp} from "./PrisbeamApp";
+import {FaunerieApp} from "./FaunerieApp";
import {ipcRenderer} from "electron";
import * as si from "systeminformation";
import fs from "fs";
-import {Prisbeam, PrisbeamListType} from "libprisbeam";
+import {Faunerie, FaunerieListType} from "libfaunerie";
-export class PrisbeamLoader {
- instance: PrisbeamApp;
+export class FaunerieLoader {
+ instance: FaunerieApp;
dataPath: string;
- constructor(instance: PrisbeamApp) {
+ constructor(instance: FaunerieApp) {
this.instance = instance;
}
@@ -142,7 +142,7 @@ export class PrisbeamLoader {
let valid = false;
try {
- valid = (await fs.promises.lstat(_dataStore.appData + "/PrisbeamCache/current.pbdb")).isFile();
+ valid = (await fs.promises.lstat(_dataStore.appData + "/FaunerieCache/current.pbdb")).isFile();
} catch (e) {
valid = false;
}
@@ -150,7 +150,7 @@ export class PrisbeamLoader {
if (valid) {
this.instance.loadingError("No valid image source found, images will be downloaded from their source");
_dataStore.loadedFromCache = true;
- return _dataStore.appData + "/PrisbeamCache";
+ return _dataStore.appData + "/FaunerieCache";
} else {
alert("Unable to load images from cache as the cache is empty or corrupted.");
this.instance.dataStore.unloaded = true;
@@ -169,7 +169,7 @@ export class PrisbeamLoader {
if (validSources.length > 0) {
return this.openFirstSource(validSources);
} else {
- if (fs.existsSync(_dataStore.appData + "/PrisbeamCache")) {
+ if (fs.existsSync(_dataStore.appData + "/FaunerieCache")) {
return await this.loadFromCache();
} else {
await this.triggerInvalidSource(list);
@@ -205,7 +205,7 @@ export class PrisbeamLoader {
}
if (isUpdating) {
- alert("This database is locked because an external Prisbeam Updater is updating its content. Please try again later.");
+ alert("This database is locked because an external Faunerie Updater is updating its content. Please try again later.");
this.instance.dataStore.unloaded = true;
window.close();
}
@@ -215,7 +215,7 @@ export class PrisbeamLoader {
async initializeDatabase() {
let _dataStore = this.instance.dataStore;
- _dataStore.database = new Prisbeam({
+ _dataStore.database = new Faunerie({
database: this.dataPath,
cachePath: _dataStore.appData,
sqlitePath: process.platform === "darwin" ? "../../../sql/mac" : "../../../sql/win",
@@ -235,8 +235,8 @@ export class PrisbeamLoader {
document.getElementById("progress").classList.remove("progress-bar-striped");
document.getElementById("progress").style.width = "0%";
- if (!fs.existsSync(_dataStore.appData + "/PrisbeamCache")) await fs.promises.mkdir(_dataStore.appData + "/PrisbeamCache");
- await fs.promises.copyFile(this.dataPath + "/current.pbdb", _dataStore.appData + "/PrisbeamCache/current.pbdb");
+ if (!fs.existsSync(_dataStore.appData + "/FaunerieCache")) await fs.promises.mkdir(_dataStore.appData + "/FaunerieCache");
+ await fs.promises.copyFile(this.dataPath + "/current.pbdb", _dataStore.appData + "/FaunerieCache/current.pbdb");
document.getElementById("progress").style.width = "100%";
}
@@ -245,7 +245,7 @@ export class PrisbeamLoader {
async completeLoading() {
let _dataStore = this.instance.dataStore;
- _dataStore.db = await _dataStore.database.frontend.getAllImages(PrisbeamListType.Object);
+ _dataStore.db = await _dataStore.database.frontend.getAllImages(FaunerieListType.Object);
_dataStore.tags = _dataStore.database.frontend.tags;
_dataStore.tagsHashed = _dataStore.database.frontend.tagsHashed;
diff --git a/src/PrisbeamSearch.ts b/src/FaunerieSearch.ts
index 5e352d8..eb4db33 100755
--- a/src/PrisbeamSearch.ts
+++ b/src/FaunerieSearch.ts
@@ -1,10 +1,10 @@
-import {PrisbeamApp} from "./PrisbeamApp";
-import {PrisbeamListType} from "libprisbeam";
+import {FaunerieApp} from "./FaunerieApp";
+import {FaunerieListType} from "libfaunerie";
-export class PrisbeamSearch {
- instance: PrisbeamApp;
+export class FaunerieSearch {
+ instance: FaunerieApp;
- constructor(instance: PrisbeamApp) {
+ constructor(instance: FaunerieApp) {
this.instance = instance;
}
@@ -22,8 +22,8 @@ export class PrisbeamSearch {
document.getElementById("pages").style.display = "none";
document.getElementById("search-error").innerHTML = `
<p><b>${this.resolveError(e)}</b></p>
- <p>Prisbeam uses the same search query format as Derpibooru/Philomena. To make sure you make correct use of the search syntax, you can try to search for the same query on Derpibooru directly (if possible). Please keep in mind that fuzzy matching, boosting, escaping, the <code>faved_by</code> and <code>uploader</code> fields as well as the <code>my:hidden</code> are not supported.</code></p>
- <p>If you think something is wrong with Prisbeam, please send a bug report, so we can fix it.</p>
+ <p>Faunerie uses the same search query format as Derpibooru/Philomena. To make sure you make correct use of the search syntax, you can try to search for the same query on Derpibooru directly (if possible). Please keep in mind that fuzzy matching, boosting, escaping, the <code>faved_by</code> and <code>uploader</code> fields as well as the <code>my:hidden</code> are not supported.</code></p>
+ <p>If you think something is wrong with Faunerie, please send a bug report, so we can fix it.</p>
<hr>
<details>
<summary>Show technical information</summary>
@@ -38,7 +38,7 @@ export class PrisbeamSearch {
async displayAll() {
this.instance.dataStore.page = 1;
this.instance.dataStore.searching = false;
- this.instance.dataStore.currentView = await this.instance.dataStore.database.frontend.getAllImages(PrisbeamListType.Array) as any[];
+ this.instance.dataStore.currentView = await this.instance.dataStore.database.frontend.getAllImages(FaunerieListType.Array) as any[];
this.instance.display.updateDisplay();
}
diff --git a/src/PrisbeamSettings.ts b/src/FaunerieSettings.ts
index 7ec0b2b..74919ae 100755
--- a/src/PrisbeamSettings.ts
+++ b/src/FaunerieSettings.ts
@@ -1,12 +1,12 @@
-import {PrisbeamApp} from "./PrisbeamApp";
+import {FaunerieApp} from "./FaunerieApp";
import * as fs from "node:fs";
import * as path from "node:path";
-import {PrisbeamImageType, PrisbeamListType} from "libprisbeam";
+import {FaunerieImageType, FaunerieListType} from "libfaunerie";
-export class PrisbeamSettings {
- instance: PrisbeamApp;
+export class FaunerieSettings {
+ instance: FaunerieApp;
- constructor(instance: PrisbeamApp) {
+ constructor(instance: FaunerieApp) {
this.instance = instance;
}
@@ -176,7 +176,7 @@ export class PrisbeamSettings {
instance.loadingError("Image " + i.id + " is corrupted");
res(true);
}
- img.src = _dataStore.database.frontend.getImageFile(i, PrisbeamImageType.ViewURL);
+ img.src = _dataStore.database.frontend.getImageFile(i, FaunerieImageType.ViewURL);
}
let imageIsCorrupted: Function;
@@ -192,7 +192,7 @@ export class PrisbeamSettings {
instance.loadingError("Image " + i.id + " is corrupted");
res(true);
}
- img.src = _dataStore.database.frontend.getImageFile(i, PrisbeamImageType.ThumbnailURL);
+ img.src = _dataStore.database.frontend.getImageFile(i, FaunerieImageType.ThumbnailURL);
});
}
@@ -246,7 +246,7 @@ export class PrisbeamSettings {
document.getElementById("progress").style.width = "0%";
- for (let image of await _dataStore.database.frontend.getAllImages(PrisbeamListType.Array) as any[]) {
+ for (let image of await _dataStore.database.frontend.getAllImages(FaunerieListType.Array) as any[]) {
document.getElementById("load").innerText = "Checking for corrupted images... " + Math.round(((index / total) * 100)) + "% (" + image.id + ")";
if (await this.checkImageForCorruptions(image)) {
corrupted.push(image);
diff --git a/src/PrisbeamUtilities.ts b/src/FaunerieUtilities.ts
index 455a4d7..1c84300 100755
--- a/src/PrisbeamUtilities.ts
+++ b/src/FaunerieUtilities.ts
@@ -1,4 +1,4 @@
-export class PrisbeamUtilities {
+export class FaunerieUtilities {
static timeAgo(time: number | Date | string) {
if (!isNaN(parseInt(time as string))) {
time = new Date(time).getTime();
diff --git a/src/PrisbeamActions.ts b/src/PrisbeamActions.ts
deleted file mode 100755
index 06e69fe..0000000
--- a/src/PrisbeamActions.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import {PrisbeamApp} from "./PrisbeamApp";
-
-export class PrisbeamActions {
- instance: PrisbeamApp;
-
- constructor(instance: PrisbeamApp) {
- this.instance = instance;
- }
-
- goHome() {
- this.instance.search.startTagSearch("");
- }
-}
diff --git a/src/index.ts b/src/index.ts
index f6d526f..5413d83 100755
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,5 +1,5 @@
import {ipcRenderer} from "electron";
-import {PrisbeamApp} from "./PrisbeamApp";
+import {FaunerieApp} from "./FaunerieApp";
let loaded = false;
@@ -10,7 +10,7 @@ window.onload = () => {
// noinspection JSUnusedGlobalSymbols
export function runApp(bootstrap: any) {
ipcRenderer.on('path', (_, appDataPath) => {
- let instance = window['instance'] = new PrisbeamApp(bootstrap);
+ let instance = window['instance'] = new FaunerieApp(bootstrap);
instance.dataStore.appData = appDataPath;
let loadInterval = setInterval(() => {
diff --git a/updater/main.js b/updater/main.js
index 15ca4dc..e3d59e6 100755
--- a/updater/main.js
+++ b/updater/main.js
@@ -4,19 +4,19 @@ require('os').setPriority(19);
const { app, Tray, Menu, shell } = require('electron');
const fs = require('fs');
-const libprisbeam = require('libprisbeam');
+const libfaunerie = require('libfaunerie');
const execCb = require('child_process').exec;
let tray = null;
app.whenReady().then(() => {
const config = app.getPath("userData");
- if (!fs.existsSync(config + "/database.txt")) fs.writeFileSync(config + "/database.txt", "# Insert the full path to your Prisbeam database below:\n\n# Insert your Derpibooru username below:\n\n# (if you have not registered for Prisbeam Cloud, please contact Equestria.dev)");
+ if (!fs.existsSync(config + "/database.txt")) fs.writeFileSync(config + "/database.txt", "# Insert the full path to your Faunerie database below:\n\n# Insert your Derpibooru username below:\n\n# (if you have not registered for Faunerie Cloud, please contact Equestria.dev)");
if (!fs.existsSync(config + "/last.txt")) fs.writeFileSync(config + "/last.txt", "0");
if (process.platform === "darwin") app.dock.hide();
tray = new Tray(__dirname + "/tray/16x16Template@2x.png");
- tray.setToolTip("Prisbeam Updater");
+ tray.setToolTip("Faunerie Updater");
let update = null;
@@ -100,7 +100,7 @@ app.whenReady().then(() => {
fs.writeFileSync(databasePath + "/updater.pbmk", process.pid.toString());
- let database = new libprisbeam.Prisbeam({
+ let database = new libfaunerie.Faunerie({
database: databasePath,
cachePath: config + "/temp",
sqlitePath: process.platform === "darwin" ? "../../../sql/mac" : "../../../sql/win",
@@ -110,7 +110,7 @@ app.whenReady().then(() => {
});
await database.initialize(true);
- let updater = new libprisbeam.PrisbeamUpdater(database);
+ let updater = new libfaunerie.FaunerieUpdater(database);
await updater.updateFromPreprocessed(config + "/temp/preprocessed.db", config + "/temp/tags.db", (status) => {
update = status;
updateTray();
@@ -132,7 +132,7 @@ app.whenReady().then(() => {
function updateTray() {
let template = [
- { label: "Prisbeam Updater", type: 'normal', enabled: false, icon: __dirname + "/menu/16x16@2x.png" },
+ { label: "Faunerie Updater", type: 'normal', enabled: false, icon: __dirname + "/menu/16x16@2x.png" },
{ type: 'separator' },
];
@@ -149,7 +149,7 @@ app.whenReady().then(() => {
{ type: 'separator' },
- { label: "Open Prisbeam", enabled: false },
+ { label: "Open Faunerie", enabled: false },
]);
} else {
template.push(...[
@@ -164,7 +164,7 @@ app.whenReady().then(() => {
{ type: 'separator' },
- { label: "Open Prisbeam", enabled: false, },
+ { label: "Open Faunerie", enabled: false, },
]);
}
} else {
@@ -179,7 +179,7 @@ app.whenReady().then(() => {
{ type: 'separator' },
- { label: "Open Prisbeam", enabled: false },
+ { label: "Open Faunerie", enabled: false },
]);
}
diff --git a/updater/package-lock.json b/updater/package-lock.json
index e1098d5..99658cf 100755
--- a/updater/package-lock.json
+++ b/updater/package-lock.json
@@ -7,7 +7,7 @@
"": {
"version": "1.0.0",
"dependencies": {
- "libprisbeam": "git+https://github.com/equestria-dev/libprisbeam.git/",
+ "libfaunerie": "github:equestria-dev/libfaunerie",
"sqlite3": "^5.1.7"
},
"devDependencies": {
@@ -333,7 +333,6 @@
"version": "20.12.7",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz",
"integrity": "sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg==",
- "dev": true,
"dependencies": {
"undici-types": "~5.26.4"
}
@@ -347,6 +346,14 @@
"@types/node": "*"
}
},
+ "node_modules/@types/sqlite3": {
+ "version": "3.1.11",
+ "resolved": "https://registry.npmjs.org/@types/sqlite3/-/sqlite3-3.1.11.tgz",
+ "integrity": "sha512-KYF+QgxAnnAh7DWPdNDroxkDI3/MspH1NMx6m/N/6fT1G6+jvsw4/ZePt8R8cr7ta58aboeTfYFBDxTJ5yv15w==",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@types/yauzl": {
"version": "2.10.3",
"resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz",
@@ -2224,10 +2231,13 @@
"json-buffer": "3.0.1"
}
},
- "node_modules/libprisbeam": {
- "version": "2.3.3",
- "resolved": "git+ssh://git@github.com/equestria-dev/libprisbeam.git#7bf016d82110d45de4287ee91b5b1a1a2e75d45d",
- "hasInstallScript": true
+ "node_modules/libfaunerie": {
+ "version": "2.4.0",
+ "resolved": "git+ssh://git@github.com/equestria-dev/libfaunerie.git#e2dc982e0530f11c5afd673b08ccab2e7d1341ad",
+ "hasInstallScript": true,
+ "dependencies": {
+ "@types/sqlite3": "^3.1.11"
+ }
},
"node_modules/load-json-file": {
"version": "2.0.0",
@@ -3507,8 +3517,7 @@
"node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
- "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
- "dev": true
+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="
},
"node_modules/unique-filename": {
"version": "1.1.1",
diff --git a/updater/package.json b/updater/package.json
index 0e53ee8..34f86f2 100755
--- a/updater/package.json
+++ b/updater/package.json
@@ -2,7 +2,7 @@
"main": "main.js",
"version": "1.0.0",
"dependencies": {
- "libprisbeam": "git+https://github.com/equestria-dev/libprisbeam.git/",
+ "libfaunerie": "github:equestria-dev/libfaunerie",
"sqlite3": "^5.1.7"
},
"devDependencies": {