Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: migration to leveldb #1401

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2c5fb8a
feat: adding initial leveldb configuration
thegrannychaseroperation Jan 15, 2025
08bcf09
feat: adding initial leveldb configuration
thegrannychaseroperation Jan 15, 2025
c59b039
fix: removing unused navigate
thegrannychaseroperation Jan 15, 2025
8b47082
fix: removing unused navigate
thegrannychaseroperation Jan 15, 2025
2c881a6
fix: fixing duplicate export
thegrannychaseroperation Jan 15, 2025
a23106b
feat: migrating achievements to level
thegrannychaseroperation Jan 16, 2025
c115040
fix: fixing sonar issues
thegrannychaseroperation Jan 16, 2025
1f0e195
feat: migrating games to leveldb
thegrannychaseroperation Jan 19, 2025
d760d01
feat: migrating games to level
thegrannychaseroperation Jan 20, 2025
f1e0ba4
feat: migrating user preferences
thegrannychaseroperation Jan 21, 2025
facca3e
chore: merge with main
thegrannychaseroperation Jan 21, 2025
eb11eb2
chore: merge with main
thegrannychaseroperation Jan 21, 2025
0f0a67b
chore: merge with main
thegrannychaseroperation Jan 21, 2025
71cb4cd
chore: level as external dep
thegrannychaseroperation Jan 22, 2025
2aff983
fix: fixing sonar issues
thegrannychaseroperation Jan 22, 2025
f387560
fix: migrating level to classic-level
thegrannychaseroperation Jan 22, 2025
549481f
chore: improving download queue
thegrannychaseroperation Jan 22, 2025
f5532fa
chore: encrypting real-debrid
thegrannychaseroperation Jan 22, 2025
4c5c602
fix: adding bit validation to is deleted
thegrannychaseroperation Jan 22, 2025
bfd54d5
fix: fixing sonar issues
thegrannychaseroperation Jan 22, 2025
dcd1634
fix: fixing sonar issues
thegrannychaseroperation Jan 22, 2025
93fc486
fix: fixing sonar issues
thegrannychaseroperation Jan 22, 2025
a839e51
chore: changing boolean strategy on migration
thegrannychaseroperation Jan 22, 2025
f81e4ac
fix: adding catch to tables
thegrannychaseroperation Jan 22, 2025
3335e98
Merge branch 'main' into feat/migration-to-leveldb
zamitto Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export default defineConfig(({ mode }) => {
build: {
sourcemap: true,
},
css: {
preprocessorOptions: {
scss: {
api: "modern",
},
},
},
resolve: {
alias: {
"@renderer": resolve("src/renderer/src"),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"auto-launch": "^5.0.6",
"axios": "^1.7.9",
"better-sqlite3": "^11.7.0",
"classic-level": "^2.0.0",
"classnames": "^2.5.1",
"color": "^4.2.3",
"color.js": "^1.2.0",
Expand Down Expand Up @@ -74,7 +75,6 @@
"sound-play": "^1.1.0",
"sudo-prompt": "^9.2.1",
"tar": "^7.4.3",
"typeorm": "^0.3.20",
"user-agents": "^1.1.387",
"yaml": "^2.6.1",
"yup": "^1.5.0",
Expand Down
7 changes: 6 additions & 1 deletion src/main/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ export const defaultDownloadsPath = app.getPath("downloads");

export const isStaging = import.meta.env.MAIN_VITE_API_URL.includes("staging");

export const levelDatabasePath = path.join(
app.getPath("userData"),
`hydra-db${isStaging ? "-staging" : ""}`
);

export const databaseDirectory = path.join(app.getPath("appData"), "hydra");
export const databasePath = path.join(
databaseDirectory,
isStaging ? "hydra_test.db" : "hydra.db"
);
thegrannychaseroperation marked this conversation as resolved.
Show resolved Hide resolved

export const logsPath = path.join(app.getPath("appData"), "hydra", "logs");
export const logsPath = path.join(app.getPath("userData"), "logs");

export const seedsPath = app.isPackaged
? path.join(process.resourcesPath, "seeds")
Expand Down
27 changes: 0 additions & 27 deletions src/main/data-source.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/main/entity/download-queue.entity.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/main/entity/game-achievements.entity.ts

This file was deleted.

35 changes: 0 additions & 35 deletions src/main/entity/game-shop-cache.entity.ts

This file was deleted.

90 changes: 0 additions & 90 deletions src/main/entity/game.entity.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/main/entity/index.ts

This file was deleted.

45 changes: 0 additions & 45 deletions src/main/entity/user-auth.entity.ts

This file was deleted.

55 changes: 0 additions & 55 deletions src/main/entity/user-preferences.entity.ts

This file was deleted.

Loading
Loading