-
Notifications
You must be signed in to change notification settings - Fork 0
feat: finalize lo-fi defragger v1 #1
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
Open
EmergentKnowledgeGroup
wants to merge
15
commits into
main
Choose a base branch
from
codex/lofi-defragger
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2216016
chore: initialize repository
58d013b
feat: build lo-fi defragger desktop app
6c064e4
feat: add distribution helpers
95d1050
feat: add AsciiBar component with sector-tile progress bars
f7ca0ea
feat: remove header, flatten dashboard layout, rename board title
9503679
feat: overhaul StatusPanel to inline rows with ASCII progress bar
5996117
feat: overhaul TransportPanel with ASCII seek and volume bars
49d2b10
feat: simplify PlaylistPanel to DOS-style text list
b2cf640
style: complete DOS-style CSS overhaul
623da99
chore: clean up unused props and imports from DOS UI overhaul
8d4a8e6
feat: rewrite grid as terminal character mosaic
d534d4f
feat: finalize lo-fi defragger v1
1f25b2e
chore: merge origin main for github history
fdaaa0d
chore: ignore local checkpoints and screenshots
510e835
fix: address review feedback
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "env": { | ||
| "browser": true, | ||
| "es6": true, | ||
| "node": true | ||
| }, | ||
| "parserOptions": { | ||
| "ecmaVersion": 2022, | ||
| "sourceType": "module", | ||
| "ecmaFeatures": { | ||
| "jsx": true | ||
| } | ||
| }, | ||
| "extends": [ | ||
| "eslint:recommended", | ||
| "plugin:@typescript-eslint/eslint-recommended", | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:import/recommended", | ||
| "plugin:import/electron", | ||
| "plugin:import/typescript" | ||
| ], | ||
| "parser": "@typescript-eslint/parser", | ||
| "ignorePatterns": ["out", ".vite", ".bootstrap-app"], | ||
| "rules": { | ||
| "import/no-unresolved": "off" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Build Windows EXE | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| cache: npm | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Build Windows installer | ||
| run: npm run make:win | ||
|
|
||
| - name: Upload Windows artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: lofi-defragger-windows-exe | ||
| if-no-files-found: error | ||
| path: | | ||
| out/make/squirrel.windows/x64/*.exe | ||
| out/make/squirrel.windows/x64/*.nupkg | ||
| out/make/squirrel.windows/x64/RELEASES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| lerna-debug.log* | ||
|
|
||
| # Diagnostic reports (https://nodejs.org/api/report.html) | ||
| report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
|
||
| # Runtime data | ||
| pids | ||
| *.pid | ||
| *.seed | ||
| *.pid.lock | ||
| .DS_Store | ||
|
|
||
| # Directory for instrumented libs generated by jscoverage/JSCover | ||
| lib-cov | ||
|
|
||
| # Coverage directory used by tools like istanbul | ||
| coverage | ||
| *.lcov | ||
|
|
||
| # nyc test coverage | ||
| .nyc_output | ||
|
|
||
| # node-waf configuration | ||
| .lock-wscript | ||
|
|
||
| # Compiled binary addons (https://nodejs.org/api/addons.html) | ||
| build/Release | ||
|
|
||
| # Dependency directories | ||
| node_modules/ | ||
| jspm_packages/ | ||
|
|
||
| # TypeScript v1 declaration files | ||
| typings/ | ||
|
|
||
| # TypeScript cache | ||
| *.tsbuildinfo | ||
|
|
||
| # Optional npm cache directory | ||
| .npm | ||
|
|
||
| # Optional eslint cache | ||
| .eslintcache | ||
|
|
||
| # Optional REPL history | ||
| .node_repl_history | ||
|
|
||
| # Output of 'npm pack' | ||
| *.tgz | ||
|
|
||
| # Yarn Integrity file | ||
| .yarn-integrity | ||
|
|
||
| # dotenv environment variables file | ||
| .env | ||
| .env.test | ||
|
|
||
| # parcel-bundler cache (https://parceljs.org/) | ||
| .cache | ||
|
|
||
| # next.js build output | ||
| .next | ||
|
|
||
| # nuxt.js build output | ||
| .nuxt | ||
|
|
||
| # vuepress build output | ||
| .vuepress/dist | ||
|
|
||
| # Serverless directories | ||
| .serverless/ | ||
|
|
||
| # FuseBox cache | ||
| .fusebox/ | ||
|
|
||
| # DynamoDB Local files | ||
| .dynamodb/ | ||
|
|
||
| # Webpack | ||
| .webpack/ | ||
|
|
||
| # Vite | ||
| .vite/ | ||
|
|
||
| # Electron-Forge | ||
| out/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Distribution | ||
|
|
||
| ## Windows EXE | ||
|
|
||
| - Local Windows build: double-click `build-windows.bat` or run `npm run make:win` from Windows. | ||
| - GitHub one-click build: run the workflow in `.github/workflows/windows-exe.yml`. | ||
| - Expected output folder: `out/make/squirrel.windows/x64/` | ||
| - Expected artifacts: | ||
| - `*.exe` | ||
| - `RELEASES` | ||
| - one or more `.nupkg` files | ||
|
|
||
| ## macOS / Linux | ||
|
|
||
| - Use `python3 launch.py`. | ||
| - Default behavior: | ||
| - if a packaged app for the current OS already exists, it launches that | ||
| - otherwise it runs `npm ci` if needed and starts the app with `npm run dev` | ||
| - Useful options: | ||
| - `python3 launch.py --dry-run` | ||
| - `python3 launch.py --source` | ||
| - `python3 launch.py --install` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| @echo off | ||
| setlocal | ||
|
|
||
| where node >nul 2>nul | ||
| if errorlevel 1 ( | ||
| echo Node.js is required to build the Windows EXE. | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| where npm >nul 2>nul | ||
| if errorlevel 1 ( | ||
| echo npm is required to build the Windows EXE. | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| pushd "%~dp0" | ||
|
|
||
| echo Installing dependencies... | ||
| call npm ci | ||
| if errorlevel 1 ( | ||
| popd | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| echo Building Windows EXE... | ||
| call npm run make:win | ||
| if errorlevel 1 ( | ||
| popd | ||
| exit /b 1 | ||
| ) | ||
|
|
||
| echo Windows artifacts are in out\make\squirrel.windows\x64 | ||
| if exist "out\make\squirrel.windows\x64" start "" "out\make\squirrel.windows\x64" | ||
|
|
||
| popd | ||
| exit /b 0 | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| import type { ForgeConfig } from '@electron-forge/shared-types'; | ||
| import { MakerSquirrel } from '@electron-forge/maker-squirrel'; | ||
| import { MakerZIP } from '@electron-forge/maker-zip'; | ||
| import { MakerDeb } from '@electron-forge/maker-deb'; | ||
| import { MakerRpm } from '@electron-forge/maker-rpm'; | ||
| import { VitePlugin } from '@electron-forge/plugin-vite'; | ||
| import { FusesPlugin } from '@electron-forge/plugin-fuses'; | ||
| import { FuseV1Options, FuseVersion } from '@electron/fuses'; | ||
|
|
||
| const config: ForgeConfig = { | ||
| packagerConfig: { | ||
| asar: true, | ||
| }, | ||
| rebuildConfig: {}, | ||
| makers: [ | ||
| new MakerSquirrel({}), | ||
| new MakerZIP({}, ['darwin']), | ||
| new MakerRpm({}), | ||
| new MakerDeb({}), | ||
| ], | ||
| plugins: [ | ||
| new VitePlugin({ | ||
| // `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc. | ||
| // If you are familiar with Vite configuration, it will look really familiar. | ||
| build: [ | ||
| { | ||
| // `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`. | ||
| entry: 'src/main.ts', | ||
| config: 'vite.main.config.ts', | ||
| target: 'main', | ||
| }, | ||
| { | ||
| entry: 'src/preload.ts', | ||
| config: 'vite.preload.config.ts', | ||
| target: 'preload', | ||
| }, | ||
| ], | ||
| renderer: [ | ||
| { | ||
| name: 'main_window', | ||
| config: 'vite.renderer.config.ts', | ||
| }, | ||
| ], | ||
| }), | ||
| // Fuses are used to enable/disable various Electron functionality | ||
| // at package time, before code signing the application | ||
| new FusesPlugin({ | ||
| version: FuseVersion.V1, | ||
| [FuseV1Options.RunAsNode]: false, | ||
| [FuseV1Options.EnableCookieEncryption]: true, | ||
| [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, | ||
| [FuseV1Options.EnableNodeCliInspectArguments]: false, | ||
| [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true, | ||
| [FuseV1Options.OnlyLoadAppFromAsar]: true, | ||
| }), | ||
| ], | ||
| }; | ||
|
|
||
| export default config; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /// <reference types="@electron-forge/plugin-vite/forge-vite-env" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <!doctype html> | ||
| <html> | ||
|
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta | ||
| name="viewport" | ||
| content="width=device-width, initial-scale=1, maximum-scale=1" | ||
| /> | ||
| <title>Lo-fi Defragger</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/renderer.tsx"></script> | ||
| </body> | ||
| </html> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.