Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 10 additions & 4 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ const isDev = !app.isPackaged;

let mainWindow;

// Handle Linux-specific sandbox issues
if (process.platform === 'linux') {
app.commandLine.appendSwitch('--no-sandbox');
app.commandLine.appendSwitch('--disable-dev-shm-usage');
app.commandLine.appendSwitch('--disable-gpu-sandbox');
}

function createWindow() {

mainWindow = new BrowserWindow({
width: 1200,
width: 1400,
height: 900,
minWidth: 800,
minHeight: 600,
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
enableRemoteModule: false,
webSecurity: true,
preload: path.join(__dirname, 'preload.js')
sandbox: false,
webSecurity: true
},
icon: path.join(__dirname, '../public/logo.png'),
title: 'istSOS4 Configurator',
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/logo.jpg" />
<link rel="icon" type="image/png" href="/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>istSOS4 Configurator</title>
</head>
Expand Down
31 changes: 23 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"build": "vite build",
"lint": "eslint .",
"preview": "vite preview",
"electron": "electron .",
"electron-dev": "concurrently \"npm run dev\" \"wait-on http://localhost:5173 && electron .\"",
"electron": "electron . --no-sandbox --disable-gpu --disable-dev-shm-usage",
"electron-dev": "concurrently \"npm run dev\" \"wait-on http://localhost:5173 && electron . --no-sandbox --disable-gpu --disable-dev-shm-usage\"",
"dist": "npm run build && electron-builder --publish=never",
"dist:win": "npm run build && electron-builder --win --publish=never",
"dist:mac": "npm run build && electron-builder --mac --publish=never",
Expand Down Expand Up @@ -51,22 +51,36 @@
"files": [
"dist/**/*",
"electron/**/*",
"public/logo.jpg"
"public/logo.png"
],
"win": {
"target": "nsis",
"icon": "public/logo.jpg",
"icon": "public/logo.png",
"signAndEditExecutable": false
},
"mac": {
"target": "dmg",
"icon": "public/logo.jpg",
"icon": "public/logo.png",
"category": "public.app-category.developer-tools"
},
"linux": {
"target": "AppImage",
"icon": "public/logo.jpg",
"category": "Development"
"target": [
{
"target": "AppImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
}
],
"icon": "public/logo.png",
"category": "Development",
"executableName": "istsos4-configurator"
},
"nsis": {
"oneClick": false,
Expand All @@ -81,3 +95,4 @@
"email": "info@istsos.org"
}
}

Binary file removed public/logo.jpg
Binary file not shown.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 13 additions & 9 deletions src/components/steps/CompletionStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,19 @@ function CompletionStep() {
</p>
<p className="text-sm text-purple-800 italic mb-2">
<span className="font-semibold">Rahull004</span>. "istSOS4
Configuration Wizard" GitHub repository, 2025. Available:
<a
href="https://github.com/Rahull004/istSOS4-wizard"
className="text-purple-600 hover:text-purple-800 underline ml-1"
target="_blank"
rel="noopener noreferrer"
>
https://github.com/Rahull004/istSOS4-wizard
</a>
Configuration Wizard" GitHub repository, 2025.
<p>
{" "}
Available:
<a
href="https://github.com/Rahull004/istSOS4-wizard"
className="text-purple-600 hover:text-purple-800 underline ml-1"
target="_blank"
rel="noopener noreferrer"
>
https://github.com/Rahull004/istSOS4-wizard
</a>
</p>
</p>
<p className="text-xs text-purple-700">
Developed through{" "}
Expand Down
8 changes: 2 additions & 6 deletions src/components/steps/PerformanceStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function PerformanceStep() {
<p className="text-gray-600">
Configure performance optimization and advanced database settings
</p>
<div className="bg-gray-50 p-4 rounded-lg">
<div className="bg-gray-50 p-4 rounded-xl">
<div className="flex items-start">
<div className="flex-1">
<Toggle
Expand All @@ -47,11 +47,7 @@ function PerformanceStep() {
Docker Compose configuration
</p>
</div>
<ul className="text-sm text-gray-600 space-y-1">
<li>• Default connection: redis://redis:6379</li>
<li>• Recommended memory: 512MB minimum</li>
<li>• Cache TTL: 1 hour (configurable)</li>
</ul>

</div>
)}
</div>
Expand Down
36 changes: 25 additions & 11 deletions src/components/steps/ReviewStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ FREQUENCY=${configuration.frequency}
START_DATETIME=${
configuration.baseDatetime +
"." +
"000"+ (configuration.timezoneOffset || "+01:00")
"000" +
(configuration.timezoneOffset || "+01:00")
}
PARTITION_CHUNK=${configuration.partitionChunk}
CHUNK_INTERVAL=${configuration.chunkInterval}
Expand All @@ -77,13 +78,8 @@ TOP_VALUE=${configuration.topValue}

# Coordinate System
EPSG=${configuration.epsg}

# Docker Network Configuration (if using Redis)
${
configuration.redis === 1
? "REDIS_HOST=redis\nREDIS_PORT=6379"
: "# Redis disabled"
}`;

`;

return env;
};
Expand Down Expand Up @@ -342,6 +338,24 @@ ${
<h3 className="text-lg font-semibold text-gray-900 mb-4">
Download Configuration Files
</h3>

{/* Important Note */}
<div className="bg-amber-50 border border-amber-200 rounded-lg p-3 mb-4">
<div className="flex items-start">
<span className="text-amber-600 text-lg mr-2">*</span>
<div>
<h4 className="text-sm font-medium text-amber-900 mb-1">
Important Note
</h4>
<p className="text-sm text-amber-800">
The downloaded file will be named <strong>istsos4.env</strong>.
Please rename it to <strong>.env</strong> after downloading, or
copy the content and paste it into your existing <strong>.env</strong> file.
</p>
</div>
</div>
</div>

<div className="flex flex-col sm:flex-row gap-4">
<button
onClick={downloadEnvFile}
Expand All @@ -353,7 +367,7 @@ ${
}`}
>
<Download className="w-5 h-5 mr-2" />
Download .env File
Download .env file
</button>

<button
Expand All @@ -366,7 +380,7 @@ ${
}`}
>
<Download className="w-5 h-5 mr-2" />
Download Docker Compose File
Download docker-compose.yml file
</button>
</div>
</div>
Expand Down Expand Up @@ -405,7 +419,7 @@ ${
<code className="bg-blue-100 px-2 py-1 rounded font-mono text-blue-900">
docker-compose.yml
</code>{" "}
files with the newly generated files in your project. directory
files with the newly generated files in your project directory.
</li>
<li>
Ensure Docker and Docker Compose are installed on your system.
Expand Down