-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bc3478
commit ff73600
Showing
11 changed files
with
9,247 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,44 @@ | ||
const { FusesPlugin } = require('@electron-forge/plugin-fuses'); | ||
const { FuseV1Options, FuseVersion } = require('@electron/fuses'); | ||
|
||
module.exports = { | ||
packagerConfig: { | ||
asar: true, | ||
}, | ||
rebuildConfig: {}, | ||
makers: [ | ||
{ | ||
name: '@electron-forge/maker-squirrel', | ||
config: {}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-zip', | ||
platforms: ['darwin'], | ||
}, | ||
{ | ||
name: '@electron-forge/maker-deb', | ||
config: {}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-rpm', | ||
config: {}, | ||
}, | ||
], | ||
plugins: [ | ||
{ | ||
name: '@electron-forge/plugin-auto-unpack-natives', | ||
config: {}, | ||
}, | ||
// 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, | ||
}), | ||
], | ||
}; |
This file contains 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,127 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="dark"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Task Management</title> | ||
<!--<link href="./main.css" rel="stylesheet">--> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet"> | ||
<script defer src="renderer.js"></script> | ||
</head> | ||
<body class="bg-gray-900 text-gray-100 dark:bg-gray-900 dark:text-gray-100"> | ||
<header class="bg-blue-600 text-white shadow-lg dark:bg-blue-800 dark:text-gray-200"> | ||
<nav class="container mx-auto flex justify-between items-center py-4 px-6"> | ||
<h1 class="text-2xl font-bold">Task Manager</h1> | ||
<ul class="flex space-x-6"> | ||
<li><a href="#" class="hover:underline transition">Home</a></li> | ||
<li><a href="#" class="hover:underline transition">Tasks</a></li> | ||
<li><a href="#" class="hover:underline transition">Settings</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
|
||
<section class="container mx-auto p-6 bg-gray-800 shadow-md rounded-lg mt-6"> | ||
<div class="space-y-6"> | ||
<div class="flex space-x-4"> | ||
<div class="w-full"> | ||
<label for="day-dropdown" class="block text-sm font-medium text-gray-300">Day</label> | ||
<select id="day-dropdown" class="mt-1 block w-full p-2 border border-gray-600 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white dark:border-gray-600" style="background-color: #2d3748 !important;" onchange="handleDayChange()"> | ||
<option value="">Choose Day</option> | ||
</select> | ||
</div> | ||
|
||
<div class="w-full"> | ||
<label for="type-dropdown" class="block text-sm font-medium text-gray-300">Change Type:</label> | ||
<select id="type-dropdown" class="mt-1 block w-full p-2 border border-gray-600 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white dark:border-gray-600" style="background-color: #2d3748 !important;"> | ||
<option value="Fix">Fix</option> | ||
<option value="Feat">Feat</option> | ||
<option value="Sonst">Sonst</option> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="flex space-x-4"> | ||
<div class="w-full"> | ||
<label for="role-dropdown" class="block text-sm font-medium text-gray-300">Ticket:</label> | ||
<select id="role-dropdown" class="mt-1 block w-full p-2 border border-gray-600 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white dark:border-gray-600" style="background-color: #2d3748 !important;"> | ||
<option value="QA">QA</option> | ||
<option value="DEV">DEV</option> | ||
<option value="DEV">GD</option> | ||
</select> | ||
</div> | ||
<div class="w-full"> | ||
<label for="short-input" class="block text-sm font-medium text-gray-300">Ticketnumber:</label> | ||
<input id="short-input" type="text" maxlength="7" class="mt-1 block w-full p-2 border border-gray-600 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white dark:border-gray-600" style="background-color: #2d3748 !important;"> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="space-y-6"> | ||
<div> | ||
<label for="long-input" class="block text-sm font-medium text-gray-300">Description:</label> | ||
<input id="long-input" type="text" class="mt-1 block w-full p-2 border border-gray-600 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-800 dark:text-white dark:border-gray-600" style="background-color: #2d3748 !important;"> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="text-right"> | ||
<button id="add-button" class="bg-blue-600 text-white px-4 py-2 rounded-md shadow hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-blue-700 dark:hover:bg-blue-600"> | ||
Add | ||
</button> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="container mx-auto p-6 bg-gray-800 shadow-md rounded-lg mt-6"> | ||
<h3 class="text-xl font-bold">Day</h3> | ||
<table class="w-full table-auto border-collapse"> | ||
<thead class="bg-gray-700"> | ||
<tr> | ||
<th class="px-4 py-2 border border-gray-600 text-left text-gray-200">Type</th> | ||
<th class="px-4 py-2 border border-gray-600 text-left text-gray-200">Role</th> | ||
<th class="px-4 py-2 border border-gray-600 text-left text-gray-200">Short Input</th> | ||
</tr> | ||
</thead> | ||
<tbody id="task-table-body"> | ||
<!-- Dynamically populated rows --> | ||
</tbody> | ||
</table> | ||
</section> | ||
|
||
<script> | ||
// JavaScript Logic | ||
|
||
function handleDayChange() { | ||
const selectedDay = document.getElementById('day-dropdown').value; | ||
console.log('Selected day:', selectedDay); | ||
} | ||
|
||
function handleAdd() { | ||
const day = document.getElementById('day-dropdown').value; | ||
const type = document.getElementById('type-dropdown').value; | ||
const role = document.getElementById('role-dropdown').value; | ||
const shortInput = document.getElementById('short-input').value; | ||
const longInput = document.getElementById('long-input').value; | ||
|
||
if (!day || !type || !role || !shortInput || !longInput) { | ||
alert('Please fill in all fields!'); | ||
return; | ||
} | ||
|
||
const tableBody = document.getElementById('task-table-body'); | ||
const newRow = document.createElement('tr'); | ||
|
||
newRow.innerHTML = ` | ||
<td class="px-4 py-2 border border-gray-300 dark:text-gray-200">${type}</td> | ||
<td class="px-4 py-2 border border-gray-300 dark:text-gray-200">${role}</td> | ||
<td class="px-4 py-2 border border-gray-300 dark:text-gray-200">${shortInput}</td> | ||
`; | ||
|
||
tableBody.appendChild(newRow); | ||
|
||
console.log('Added task:', { day, type, role, shortInput, longInput }); | ||
} | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.