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

Release 2.0.4 #1334

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7595b7e
fix: connect modal close loop
wwills2 Sep 18, 2024
242d353
Merge branch 'develop' into 9-2024-bug-fixes-updates
wwills2 Sep 18, 2024
7252307
feat: dependency updates
wwills2 Sep 18, 2024
b36da10
fix: error if registry id does not exist in my projects page
wwills2 Sep 24, 2024
116e5d1
ci: Use Glue Action for requests instead of curl
Starttoaster Sep 24, 2024
cb3ca5d
feat: improved staging diff modal behavior
wwills2 Sep 26, 2024
86a1f27
Merge remote-tracking branch 'origin/9-2024-bug-fixes-updates' into 9…
wwills2 Sep 26, 2024
ca8b428
fix: split unit form
wwills2 Sep 27, 2024
d1bfe9d
fix: create and edit unit timestamp error
wwills2 Oct 1, 2024
cd1aaac
Merge pull request #1325 from Chia-Network/9-2024-bug-fixes-updates
TheLastCicada Oct 1, 2024
6a65b7e
fix: hardcoded api host in fila download fetch requests
wwills2 Oct 10, 2024
0e37faa
Merge pull request #1332 from Chia-Network/fix/download-buttons-hardc…
TheLastCicada Oct 10, 2024
0b9fea9
chore: version bump
TheLastCicada Oct 10, 2024
7684ff6
Merge pull request #1333 from Chia-Network/204
TheLastCicada Oct 10, 2024
8ba7cb8
fix: page query param set when navigating to a paginated page
wwills2 Oct 10, 2024
0849e8b
Merge pull request #1336 from Chia-Network/queryparam-hook-update
TheLastCicada Nov 18, 2024
3759962
ci: check for secrets and allow dependabot to build binaries
TheLastCicada Nov 18, 2024
1a063e8
Merge pull request #1342 from Chia-Network/dependabot-updates
TheLastCicada Nov 18, 2024
ecbaa56
chore(deps): bump cross-spawn from 7.0.3 to 7.0.6
dependabot[bot] Nov 18, 2024
1c4adb9
chore(deps): bump softprops/action-gh-release from 0.1.15 to 2.1.0
dependabot[bot] Nov 18, 2024
3a4c33c
chore(deps): bump Apple-Actions/import-codesign-certs from 1 to 3
dependabot[bot] Nov 18, 2024
f30b9e3
chore(deps): bump actions/download-artifact from 3 to 4
dependabot[bot] Nov 18, 2024
2aac55d
chore(deps): bump actions/upload-artifact from 3 to 4
dependabot[bot] Nov 18, 2024
5bdab08
Merge pull request #1248 from Chia-Network/dependabot/github_actions/…
TheLastCicada Nov 18, 2024
ea234a4
Merge pull request #1341 from Chia-Network/dependabot/github_actions/…
TheLastCicada Nov 18, 2024
1b23401
Merge pull request #1250 from Chia-Network/dependabot/github_actions/…
TheLastCicada Nov 18, 2024
e44be2e
Merge pull request #1249 from Chia-Network/dependabot/github_actions/…
TheLastCicada Nov 18, 2024
06ec71a
chore(deps): bump react-intl from 6.6.8 to 7.0.1
dependabot[bot] Nov 18, 2024
551efa2
chore(deps): bump cookie and express
dependabot[bot] Nov 18, 2024
73fb019
chore(deps): bump rollup from 4.21.3 to 4.27.3
dependabot[bot] Nov 18, 2024
e0b98fd
Merge pull request #1345 from Chia-Network/dependabot/npm_and_yarn/ro…
TheLastCicada Nov 25, 2024
27033bc
Merge pull request #1344 from Chia-Network/dependabot/npm_and_yarn/re…
TheLastCicada Nov 25, 2024
2c79426
Merge pull request #1343 from Chia-Network/dependabot/npm_and_yarn/cr…
TheLastCicada Nov 25, 2024
8bc363f
Merge pull request #1335 from Chia-Network/dependabot/npm_and_yarn/mu…
TheLastCicada Nov 25, 2024
a9beb4c
feat: removed unnecessary production express server
wwills2 Nov 26, 2024
78d7f2b
Merge branch 'develop' into remove-express-server-for-production-ui
wwills2 Nov 26, 2024
8a5827b
Merge pull request #1356 from Chia-Network/remove-express-server-for-…
TheLastCicada Nov 26, 2024
37c257e
fix: locked in flowbite-react version
wwills2 Dec 2, 2024
720f1db
Merge pull request #1357 from Chia-Network/lock-working-flowbite-ver
TheLastCicada Dec 2, 2024
00e2968
chore: address flowbite-react 0.8.0+ breaking changes
wwills2 Dec 2, 2024
4da3425
Merge pull request #1358 from Chia-Network/address-flowbite-breaking-…
TheLastCicada Dec 2, 2024
9eb7a86
chore(deps): bump diff from 5.2.0 to 7.0.0
dependabot[bot] Dec 2, 2024
c48dda4
chore(deps-dev): bump concurrently from 8.2.2 to 9.1.0
dependabot[bot] Dec 2, 2024
b648ce2
chore(deps-dev): bump wait-on from 7.2.0 to 8.0.1
dependabot[bot] Dec 3, 2024
5e52e89
fix: address breaking changes in flowbite datepicker
wwills2 Dec 5, 2024
9d0b0bc
Merge pull request #1361 from Chia-Network/fix-date-picker
TheLastCicada Dec 5, 2024
5c490b3
chore(deps-dev): bump prettier from 3.4.1 to 3.4.2
dependabot[bot] Dec 17, 2024
79d3ccd
chore(deps): bump @emotion/react from 11.13.5 to 11.14.0
dependabot[bot] Dec 17, 2024
1458fd2
chore: Update dependabot
ChiaAutomation Dec 19, 2024
0c4abc6
Merge pull request #1371 from Chia-Network/managed-files
TheLastCicada Dec 19, 2024
637e51c
Merge pull request #1346 from Chia-Network/dependabot/npm_and_yarn/di…
TheLastCicada Dec 19, 2024
7126669
Merge pull request #1368 from Chia-Network/dependabot/npm_and_yarn/em…
TheLastCicada Dec 19, 2024
1447705
chore(deps): bump @emotion/styled from 11.13.5 to 11.14.0
dependabot[bot] Dec 19, 2024
05ba108
ci: add rc workflow
TheLastCicada Dec 20, 2024
d3238e6
chore: dependency updates
TheLastCicada Dec 20, 2024
b49f6b8
chore: revert dependency updates
TheLastCicada Dec 20, 2024
d59f5af
ci: target develop branch for rc workflow
TheLastCicada Dec 20, 2024
8ec407d
Merge pull request #1373 from Chia-Network/rcrelease
TheLastCicada Dec 20, 2024
38cd01b
Merge pull request #1360 from Chia-Network/dependabot/npm_and_yarn/wa…
TheLastCicada Dec 20, 2024
9b2bdc9
Merge pull request #1351 from Chia-Network/dependabot/npm_and_yarn/co…
TheLastCicada Dec 20, 2024
00a83c3
Merge pull request #1366 from Chia-Network/dependabot/npm_and_yarn/pr…
TheLastCicada Dec 20, 2024
5782ccf
Merge pull request #1362 from Chia-Network/dependabot/npm_and_yarn/em…
TheLastCicada Dec 20, 2024
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
Prev Previous commit
Next Next commit
feat: removed unnecessary production express server
  • Loading branch information
wwills2 committed Nov 26, 2024
commit a9beb4cffa4004294adb2726339cb8c3bc3fbaa8
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@
"components": "^0.1.0",
"dayjs": "^1.11.13",
"diff": "^5.2.0",
"express": "^4.21.0",
"flowbite": "^2.5.1",
"flowbite-react": "^0.7.8",
"flowbite-typography": "^1.0.3",
45 changes: 23 additions & 22 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
import { app, BrowserWindow, shell } from 'electron';
import path from 'path';
import express from 'express';
import { fileURLToPath } from 'url';

//electron
const serverPort = 61310;
const appServer = express();

const buildPath = path.join(app.getAppPath(), 'build/renderer'); // Path to your Vite build

appServer.use(express.static(buildPath)); // Serve static files from the build directory

// Catch-all handler to return index.html for any non-static file request
appServer.get('*', (_, res) => {
res.sendFile(path.join(buildPath, 'index.html'));
});

appServer.listen(serverPort);
// Manually define __dirname
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

function createWindow() {
const win = new BrowserWindow({
@@ -25,17 +14,29 @@ function createWindow() {
contextIsolation: false,
nodeIntegration: true,
webviewTag: true,
// preload: path.join(__dirname, 'preload.js'),
},
});

// Load URL based on the environment
const loadUrl =
process.env.NODE_ENV === 'development'
? 'http://localhost:5173/' // Development URL
: `http://localhost:${serverPort}/`; // Production URL served by Express

win.loadURL(loadUrl);
if (process.env.NODE_ENV === 'development') {
console.log('loading app from dev node server');
win.loadURL('http://localhost:5173/'); // Development URL
} else {
// load app from packaged static html
const indexPath = path.join(__dirname, 'renderer', 'index.html');
console.log('Loading file:', indexPath); // Log to confirm the correct path
win.loadFile(indexPath).catch((err) => {
console.error('Failed to load index.html:', err);
});

// app is a SPA. reload index.html when the app tries to load a virtual route
win.webContents.on('did-fail-load', (_event, _errorCode, _errorDescription, validatedURL) => {
console.log(`Failed to load: ${validatedURL}, loading index.html instead`);
win.loadFile(indexPath).catch((err) => {
console.error('Failed to load index.html:', err);
});
});
}

win.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url);