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

Feature/custom themes #1409

Draft
wants to merge 54 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
c9e99d3
feat: migrated to scss
bumyy32 Nov 7, 2024
4b59a00
feat: migration to scss
bumyy32 Nov 8, 2024
a292164
feat: adding demo theme composer
thegrannychaseroperation Nov 8, 2024
cedb61c
feat: removing insert custom styles
thegrannychaseroperation Dec 16, 2024
ee4c564
Merge branch 'main' into feature/migration-to-scss
Hachi-R Jan 16, 2025
f6707a5
lint
Hachi-R Jan 16, 2025
395f77e
refactor: change notifications header to paragraph
Hachi-R Jan 16, 2025
b41e3de
revert: rollback to 395f77e17c3f186dc8bd5359240cf08019155bef
Hachi-R Jan 19, 2025
f74061a
refactor: migrate achievement panel styles from VE to SCSS + BEM
Hachi-R Jan 19, 2025
2d665b2
refactor: update achievement panel styles
Hachi-R Jan 19, 2025
86d7ced
refactor: migrate achievement list styles from VE to SCSS + BEM
Hachi-R Jan 19, 2025
b855abb
refactor: migrate filter item and section styles from VE to SCSS + BEM
Hachi-R Jan 19, 2025
2e38419
refactor: migrate pagination styles from VE to SCSS + BEM
Hachi-R Jan 19, 2025
57a8368
refactor: migrate download page styles from VE to SCSS + BEM
Hachi-R Jan 19, 2025
d758f32
refactor: update download group styles
Hachi-R Jan 19, 2025
296524f
lint
Hachi-R Jan 19, 2025
a52979d
refactor: migrate game details styles from VE to SCSS + BEM
Hachi-R Jan 19, 2025
f037d3d
fix: border color
Hachi-R Jan 19, 2025
88fe3d8
fix: background color
Hachi-R Jan 19, 2025
cbe9466
fix
Hachi-R Jan 19, 2025
c44b5fa
refactor: migrate home page styles from VE to SCSS + BEM
Hachi-R Jan 19, 2025
e457950
refactor: migrate profile page styles from VE to SCSS + BEM
Hachi-R Jan 20, 2025
8cb2313
refactor: enhance text field styles
Hachi-R Jan 21, 2025
eed28d7
feat: add disabled state styles for checkbox component
Hachi-R Jan 21, 2025
c51b615
refactor: migrate settings page styles from VE to SCSS + BEM
Hachi-R Jan 21, 2025
19976da
refactor: migrate shared modals styles from VE to SCSS + BEM
Hachi-R Jan 21, 2025
c7bc868
refactor: migrate playtime styles from VE to SCSS + BEM
Hachi-R Jan 21, 2025
28a2f1d
refactor: fix some styles in game details modals
Hachi-R Jan 21, 2025
52f7647
refactor: remove css-in-ts styles from all pages
Hachi-R Jan 21, 2025
36bd588
Merge branch 'main' into feature/custom-themes
thegrannychaseroperation Jan 23, 2025
148e577
feat: add theme page
Hachi-R Jan 23, 2025
44aed56
Merge branch 'feature/custom-themes' of https://github.com/hydralaunc…
Hachi-R Jan 23, 2025
6bf049d
Merge branch 'feat/migration-to-leveldb' into feature/custom-themes
Hachi-R Jan 23, 2025
58f63ca
feat: implement custom theme management
Hachi-R Jan 24, 2025
3e2d7a7
feat: use leveldb instead of localStorage
Hachi-R Jan 24, 2025
c8044f6
chore: update upload-build script
zamitto Jan 28, 2025
ab44348
Merge branch 'main' into feature/custom-themes
zamitto Jan 28, 2025
5a19e9f
feat: add theme editor with Monaco and custom CSS injection
Hachi-R Jan 29, 2025
b56fc4d
refactor: lint
Hachi-R Jan 29, 2025
1fe6abb
refactor: convert theme author span to button
Hachi-R Jan 29, 2025
a42975a
refactor: move hex color validation to theme types
Hachi-R Jan 29, 2025
613d8ca
Merge branch 'feature/custom-themes' of https://github.com/hydralaunc…
Hachi-R Jan 29, 2025
56e686f
fix: close dev tools when editor window closes
Hachi-R Jan 29, 2025
5510036
lint
Hachi-R Jan 29, 2025
f542b2d
fix: handle null user preferences in get-user-preferences
Hachi-R Jan 29, 2025
e49a321
feat: fix editor theme load
Hachi-R Jan 30, 2025
61d4910
feat: prevent multiple editor windows for the same theme
Hachi-R Jan 30, 2025
13eeb2c
feat: add active theme handling in theme deletion modals
Hachi-R Jan 30, 2025
afcd99a
refactor: sonar issues
Hachi-R Jan 30, 2025
d91d8dd
refactor: remove unused ThemesManager export
Hachi-R Jan 30, 2025
964e9bb
feat: close theme editor if the theme was deleted
Hachi-R Jan 30, 2025
6a6e3ca
feat: add F12 shortcut to toggle dev tools
Hachi-R Jan 30, 2025
4758b8c
fix: open dev tools on main window when editor window is ready
Hachi-R Jan 30, 2025
4535ebc
fix: prevent error when injecting empty theme CSS
Hachi-R Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@electron-toolkit/utils": "^3.0.0",
"@fontsource/noto-sans": "^5.1.0",
"@hookform/resolvers": "^3.9.1",
"@monaco-editor/react": "^4.6.0",
"@primer/octicons-react": "^19.9.0",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@reduxjs/toolkit": "^2.2.3",
Expand All @@ -47,6 +48,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 +76,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
22 changes: 21 additions & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,27 @@
"become_subscriber": "Be Hydra Cloud",
"subscription_renew_cancelled": "Automatic renewal is disabled",
"subscription_renews_on": "Your subscription renews on {{date}}",
"bill_sent_until": "Your next bill will be sent until this day"
"bill_sent_until": "Your next bill will be sent until this day",
"no_themes": "Seems like you don't have any themes yet, but no worries, click here to create your first masterpiece.",
"editor_tab_code": "Code",
"editor_tab_info": "Info",
"editor_tab_save": "Save",
"web_store": "Web store",
"clear_themes": "Clear",
"add_theme": "Add",
"add_theme_modal_title": "Add custom theme",
"add_theme_modal_description": "Create a new theme to customize Hydra's appearance",
"theme_name": "Name",
"insert_theme_name": "Insert theme name",
"set_theme": "Set theme",
"unset_theme": "Unset theme",
"delete_theme": "Delete theme",
"edit_theme": "Edit theme",
"delete_all_themes": "Delete all themes",
"delete_all_themes_description": "This will delete all your custom themes",
"delete_theme_description": "This will delete the theme {{theme}}",
"cancel": "Cancel",
"appearance": "Appearance"
},
"notifications": {
"download_complete": "Download complete",
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"
);

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