Skip to content

Commit

Permalink
basic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusPlays78 committed Dec 11, 2024
1 parent 8bc3478 commit ff73600
Show file tree
Hide file tree
Showing 11 changed files with 9,247 additions and 0 deletions.
133 changes: 133 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Created by https://www.toptal.com/developers/gitignore/api/jetbrains+all,extjs,nextjs,dotenv
# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains+all,extjs,nextjs,dotenv

### dotenv ###
.env

### ExtJs ###
.architect
bootstrap.css
bootstrap.js
Expand All @@ -12,3 +19,129 @@ modern.jsonp
resources/sass/.sass-cache/
resources/.arch-internal-preview.css
.arch-internal-preview.css

### JetBrains+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### JetBrains+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.

.idea/*

!.idea/codeStyles
!.idea/runConfigurations

### NextJS ###
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# End of https://www.toptal.com/developers/gitignore/api/jetbrains+all,extjs,nextjs,dotenv
44 changes: 44 additions & 0 deletions forge.config.js
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,
}),
],
};
127 changes: 127 additions & 0 deletions index.html
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>
Loading

0 comments on commit ff73600

Please sign in to comment.