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

[WIP] Full Rewrite/Refactor #119

Draft
wants to merge 61 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
63925c6
WIP: display uploaded profiles in settings
beebls Jan 22, 2024
6870e88
fix up cards on profile page
beebls Jan 30, 2024
e00a988
why he do thar!
beebls Jan 30, 2024
60f5538
add public theme icon
beebls Jan 30, 2024
d7a7887
Merge pull request #111 from DeckThemes/dev
beebls Feb 27, 2024
3b54ec7
WIP: add more profile upload stuff
beebls Feb 27, 2024
6b6fa0f
Merge pull request #112 from DeckThemes/dev
beebls Mar 3, 2024
ed88cbc
Working profile uploadig!!!!!!
beebls Mar 3, 2024
9985da7
finish profile uploading
beebls Mar 6, 2024
2e5920b
Merge pull request #113 from DeckThemes/dev
suchmememanyskill Mar 14, 2024
05068b6
Merge pull request #115 from DeckThemes/dev
suchmememanyskill Apr 12, 2024
ff42d50
Merge branch 'profile-uploading' into profile-uploading-rebase
beebls May 6, 2024
ffc8373
Merge pull request #116 from DeckThemes/profile-uploading-rebase
beebls May 6, 2024
25c5640
spiff it up a bit yknow
beebls May 12, 2024
eeba16b
re-order the profiles list
beebls May 20, 2024
59fd035
first commit
beebls Jun 29, 2024
9088f72
update lockfile
beebls Jun 29, 2024
97faf89
Merge branch 'dev' into rewrite
beebls Jun 29, 2024
5f9e1ce
work on theme store
beebls Jul 7, 2024
92204e4
add decky fetchNoCors
beebls Jul 24, 2024
fe9377b
fix store
beebls Aug 3, 2024
8543324
add name
beebls Aug 4, 2024
7d2f95d
rename zustand functions
beebls Aug 4, 2024
5d99e68
finish expandedview image section
beebls Aug 5, 2024
fd0767e
No rest for the shitty js devs
beebls Aug 5, 2024
013ee9b
WIP: further work on expanded view
beebls Aug 22, 2024
d5c5546
quick visual fixes but HOLY FUCK CS2 OPERATION
beebls Oct 3, 2024
e8a349c
fix preset dropdown
beebls Oct 12, 2024
c32077a
fix styling on qam tab page
beebls Oct 12, 2024
55a52f0
merge dev into rewrite
beebls Oct 12, 2024
fc872d4
fix dummy function result padding
beebls Oct 12, 2024
ba538cf
add visual feedback to refresh button
beebls Oct 12, 2024
8d4c62c
focus refresh button after refresh
beebls Oct 12, 2024
58b49ef
begin work on auto-style-commit script
beebls Oct 12, 2024
b909ed1
fix selected preset and style fixes
beebls Oct 12, 2024
102e5de
final fixes to expanded view
beebls Oct 12, 2024
b182d81
clean up unused dependencies and port rollup config
beebls Nov 6, 2024
69eaf0e
add loading indicator to theme store
beebls Nov 9, 2024
4e13bd2
switch build to node 20
beebls Nov 9, 2024
3ac1575
(UNTESTED): fix target override
beebls Nov 9, 2024
1485804
add separate BPM and Desktop theme tabs
beebls Dec 26, 2024
23dafea
add load more button
beebls Dec 26, 2024
ed57887
finish load more button
beebls Dec 26, 2024
a0bcbe6
fix navigation back to the expanded view
beebls Dec 26, 2024
e85e9cd
add in note to futureebles
beebls Dec 26, 2024
4416431
finish account page
beebls Dec 26, 2024
ad201bb
finish author view modal
beebls Dec 26, 2024
861f81a
simplify themecard props
beebls Dec 27, 2024
321e9e1
fix require cycles and extract themecard
beebls Dec 27, 2024
600d22b
refactor
beebls Dec 29, 2024
10b9517
add in theme settings modal
beebls Jan 1, 2025
98f252c
oops
beebls Jan 1, 2025
13f1b4f
fix theme toggling
beebls Jan 1, 2025
8cb71eb
misc fixes
beebls Jan 1, 2025
77ca9e6
work.
beebls Jan 1, 2025
f279ee3
finish theme settings page
beebls Jan 3, 2025
7775bb0
fix theme settings page and modals
beebls Jan 9, 2025
caf5b9c
fix mass-deletion of themes
beebls Jan 9, 2025
8c7ab87
fix icons in square buttons
beebls Jan 9, 2025
ea5c8f8
fix onboarding animation
beebls Jan 9, 2025
ff03adb
fix selected preset dropdown not being updated
beebls Jan 9, 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
110 changes: 55 additions & 55 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,69 +8,69 @@ jobs:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Set up NodeJS 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install JS dependencies
run: |
npm i -g pnpm
pnpm install

- name: Build Frontend
run: |
pnpm run build

- name: Package Release
run: |
mkdir "SDH-CssLoader"
cp *.py "./SDH-CssLoader"
cp *.json "./SDH-CssLoader"
cp LICENSE "./SDH-CssLoader"
cp README.md "./SDH-CssLoader"
cp -r dist "./SDH-CssLoader"
mkdir upload
mv "./SDH-CssLoader" ./upload

- name: Upload package artifact
uses: actions/upload-artifact@v3
with:
name: SDH-CSSLoader-Decky
path: ./upload

- name: Set up NodeJS 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install JS dependencies
run: |
npm i -g pnpm
pnpm install

- name: Build Frontend
run: |
pnpm run build

- name: Package Release
run: |
mkdir "SDH-CssLoader"
cp *.py "./SDH-CssLoader"
cp *.json "./SDH-CssLoader"
cp LICENSE "./SDH-CssLoader"
cp README.md "./SDH-CssLoader"
cp -r dist "./SDH-CssLoader"
mkdir upload
mv "./SDH-CssLoader" ./upload

- name: Upload package artifact
uses: actions/upload-artifact@v3
with:
name: SDH-CSSLoader-Decky
path: ./upload

build-standalone-win:
name: Build SDH-CSSLoader Standalone for Windows
runs-on: windows-2022

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.10.2
uses: actions/setup-python@v4
with:
python-version: "3.10.2"
- name: Set up Python 3.10.2
uses: actions/setup-python@v4
with:
python-version: "3.10.2"

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller==5.5
pip install -r requirements.txt
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller==5.5
pip install -r requirements.txt

- name: Build Python Backend
run: pyinstaller --noconfirm --onefile --add-data "./assets;/assets" --name "CssLoader-Standalone" ./main.py ./css_win_tray.py
- name: Build Python Backend
run: pyinstaller --noconfirm --onefile --add-data "./assets;/assets" --name "CssLoader-Standalone" ./main.py ./css_win_tray.py

- name: Build Python Backend Headless
run: pyinstaller --noconfirm --noconsole --onefile --add-data "./assets;/assets" --name "CssLoader-Standalone-Headless" ./main.py ./css_win_tray.py
- name: Build Python Backend Headless
run: pyinstaller --noconfirm --noconsole --onefile --add-data "./assets;/assets" --name "CssLoader-Standalone-Headless" ./main.py ./css_win_tray.py

- name: Upload package artifact
uses: actions/upload-artifact@v3
with:
name: SDH-CSSLoader-Win-Standalone
path: |
./dist/CssLoader-Standalone.exe
./dist/CssLoader-Standalone-Headless.exe
- name: Upload package artifact
uses: actions/upload-artifact@v3
with:
name: SDH-CSSLoader-Win-Standalone
path: |
./dist/CssLoader-Standalone.exe
./dist/CssLoader-Standalone-Headless.exe
14 changes: 14 additions & 0 deletions commit-styles-macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# TODO: NOT FINISHED

# This uses macos' sed, which is different from the one in linux

css_file_path="$(dirname "$0")/src/styles/styles.css"
css_as_string_path="$(dirname "$0")/src/styles/styles-as-string.ts"

# Read the content of the CSS file, ignoring lines that start with '/*'
css_content=$(sed '/^\s*\/\*/d' "$css_file_path")

export_header_line_number=$(grep -n "export const styles" $css_as_string_path | cut -d: -f1)
echo export_header_line_number: $export_header_line_number
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

try:
if setting_redirect_logs():
import decky_plugin
import decky
except:
pass

Expand Down Expand Up @@ -217,7 +217,8 @@ async def run(self):
count = 0
while count < 5:
try:
task = asyncio.create_task(Plugin._main(Plugin))
instance = Plugin()
task = asyncio.create_task(instance._main())
await asyncio.shield(task)
except asyncio.CancelledError as e:
print(str(e))
Expand Down
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "SDH-CssLoader",
"version": "2.1.2",
"type": "module",
"version": "2.2.0",
"description": "A css loader",
"scripts": {
"build": "shx rm -rf dist && rollup -c",
Expand All @@ -18,34 +19,33 @@
"steam-deck",
"deck"
],
"author": "Jonas Dellinger <[email protected]>",
"author": "Deckthemes",
"license": "GPL-2.0-or-later",
"bugs": {
"url": "https://github.com/SteamDeckHomebrew/decky-plugin-template/issues"
},
"homepage": "https://github.com/SteamDeckHomebrew/decky-plugin-template#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-typescript": "^8.3.2",
"@rollup/plugin-alias": "^5.1.0",
"@types/color": "^3.0.3",
"@types/lodash": "^4.14.191",
"@types/react": "16.14.0",
"@types/webpack": "^5.28.0",
"rollup": "^2.70.2",
"rollup-plugin-import-assets": "^1.1.1",
"rollup-plugin-styles": "^4.0.0",
"rollup": "^4.24.4",
"shx": "^0.3.4",
"tslib": "^2.4.0",
"typescript": "^4.6.4"
"typescript": "^5.6.3"
},
"dependencies": {
"@decky/api": "^1.0.6",
"@decky/rollup": "^1.0.1",
"@decky/ui": "^4.4.0",
"clsx": "^2.1.1",
"color": "^4.2.3",
"decky-frontend-lib": "^3.25.0",
"lodash": "^4.17.21",
"react-icons": "^4.12.0"
"react-icons": "^4.12.0",
"tailwind-merge": "^2.3.0",
"zustand": "^4.5.2"
},
"pnpm": {
"peerDependencyRules": {
Expand All @@ -54,5 +54,6 @@
"react-dom"
]
}
}
},
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
}
1 change: 1 addition & 0 deletions plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "CSS Loader",
"author": "DeckThemes",
"api_version": 1,
"flags": [],
"publish": {
"tags": ["style"],
Expand Down
Loading