Compare commits

..

1 Commits

Author SHA1 Message Date
e450585d37 fixed bug: import was missing
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
2025-11-26 08:26:42 +01:00
6 changed files with 9 additions and 49 deletions

View File

@@ -185,10 +185,6 @@
highlight.archive = true;
}
function is_custom(state){
return [10,20,40,60,100].includes(state);
}
function openTask(task_id){
window.open(`/task/${task_id}/view`, '_blank').focus();
}
@@ -248,7 +244,7 @@
{#each users as u}
<div class="user">{u.name}</div>
{#each Object.entries(project.allowed_states) as [state,name]}
<div class={['state_'+state, is_custom(state) ? '':'state_custom' ,highlight.user == u.id && highlight.state == state ? 'highlight':'']} ondragover={ev => hover(ev,u.id,state)} ondragleave={e => delete highlight.user} ondrop={ev => drop(u.id,state)} >
<div class={['state_'+state, highlight.user == u.id && highlight.state == state ? 'highlight':'']} ondragover={ev => hover(ev,u.id,state)} ondragleave={e => delete highlight.user} ondrop={ev => drop(u.id,state)} >
{#each Object.values(tasks[u.id][state]).sort(byName) as task}
{#if !filter || task.name.toLowerCase().includes(filter) || (task.tags && task.tags.filter(tag => tag.toLowerCase().includes(filter)).length)}
<Card onclick={e => openTask(task.id)} ondragstart={ev => dragged=task} {task} tag_colors={project.tag_colors} />

View File

@@ -145,7 +145,6 @@
error(res);
return null;
}
}
async function loadProperties(){

View File

@@ -1,5 +1,5 @@
<script>
import { api, get } from '../../urls.svelte';
import { api, get, post } from '../../urls.svelte';
import { error, yikes } from '../../warn.svelte';
import { t } from '../../translations.svelte';

View File

@@ -139,10 +139,6 @@ tr:hover .taglist .tag button {
color: red;
}
.states .active{
background: red;
}
.taglist .tag{
border-color: red;
}
@@ -190,6 +186,8 @@ tr:hover .taglist .tag button {
border-color: 1px solid;
}
.warn {
background-color: yellow;
color: black;
@@ -203,7 +201,6 @@ tr:hover .taglist .tag button {
.task.p10 .name{
color: #ffa736;
}
.kanban .state_custom .box.p10,
.kanban .state_20 .box.p10,
.kanban .state_40 .box.p10{
border: 5px solid #ffa736;
@@ -212,7 +209,6 @@ tr:hover .taglist .tag button {
.task.p20 .name{
color: #ff8f00;
}
.kanban .state_custom .box.p20,
.kanban .state_20 .box.p20,
.kanban .state_40 .box.p20{
border: 5px solid #ff8f00;
@@ -221,7 +217,6 @@ tr:hover .taglist .tag button {
.task.p30 .name{
color: #ff7b06;
}
.kanban .state_custom .box.p30,
.kanban .state_20 .box.p30,
.kanban .state_40 .box.p30{
border: 5px solid #ff7b06;
@@ -230,7 +225,6 @@ tr:hover .taglist .tag button {
.task.p40 .name{
color: #ff6306;
}
.kanban .state_custom .box.p40,
.kanban .state_20 .box.p40,
.kanban .state_40 .box.p40{
border: 5px solid #ff6306;
@@ -239,7 +233,6 @@ tr:hover .taglist .tag button {
.task.p50 .name{
color: #ff4c06;
}
.kanban .state_custom .box.p50,
.kanban .state_20 .box.p50,
.kanban .state_40 .box.p50{
border: 5px solid #ff4c06;
@@ -248,7 +241,6 @@ tr:hover .taglist .tag button {
.task.p60 .name{
color: #ff3506;
}
.kanban .state_custom .box.p60,
.kanban .state_20 .box.p60,
.kanban .state_40 .box.p60{
border: 5px solid #ff3506;
@@ -257,7 +249,6 @@ tr:hover .taglist .tag button {
.task.p70 .name{
color: #ff0000;
}
.kanban .state_custom .box.p70,
.kanban .state_20 .box.p70,
.kanban .state_40 .box.p70{
border: 5px solid #ff0000;
@@ -266,7 +257,6 @@ tr:hover .taglist .tag button {
.task.p80 .name{
color: #df153b;
}
.kanban .state_custom .box.p80,
.kanban .state_20 .box.p80,
.kanban .state_40 .box.p80{
border: 5px solid #df153b;
@@ -276,7 +266,6 @@ tr:hover .taglist .tag button {
background-color: #991c34;
color: #ffff00;
}
.kanban .state_custom .box.p90,
.kanban .state_20 .box.p90,
.kanban .state_40 .box.p90{
border: 5px solid #991c34;
@@ -286,7 +275,6 @@ tr:hover .taglist .tag button {
background-color: #733440;
color: #ffff00;
}
.kanban .state_custom .box.p100,
.kanban .state_20 .box.p100,
.kanban .state_40 .box.p100{
border: 5px solid #733440;

View File

@@ -176,6 +176,7 @@ tr:hover .taglist .tag button {
background: black;
}
.version a.selected{
border-color: orange;
}
@@ -193,7 +194,6 @@ tr:hover .taglist .tag button {
.task.p10 .name{
color: #fff066;
}
.kanban .state_custom .box.p10,
.kanban .state_20 .box.p10,
.kanban .state_40 .box.p10{
border: 5px solid #fff066;
@@ -202,7 +202,6 @@ tr:hover .taglist .tag button {
.task.p20 .name{
color: #ffe706;
}
.kanban .state_custom .box.p20,
.kanban .state_20 .box.p20,
.kanban .state_40 .box.p20{
border: 5px solid #ffe706;
@@ -211,7 +210,6 @@ tr:hover .taglist .tag button {
.task.p30 .name{
color: #ffa906;
}
.kanban .state_custom .box.p30,
.kanban .state_20 .box.p30,
.kanban .state_40 .box.p30{
border: 5px solid #ffa906;
@@ -220,7 +218,6 @@ tr:hover .taglist .tag button {
.task.p40 .name{
color: #ff8606;
}
.kanban .state_custom .box.p40,
.kanban .state_20 .box.p40,
.kanban .state_40 .box.p40{
border: 5px solid #ff8606;
@@ -229,7 +226,6 @@ tr:hover .taglist .tag button {
.task.p50 .name{
color: #ff4c06;
}
.kanban .state_custom .box.p50,
.kanban .state_20 .box.p50,
.kanban .state_40 .box.p50{
border: 5px solid #ff4c06;
@@ -238,7 +234,6 @@ tr:hover .taglist .tag button {
.task.p60 .name{
color: #ff3506;
}
.kanban .state_custom .box.p60,
.kanban .state_20 .box.p60,
.kanban .state_40 .box.p60{
border: 5px solid #ff3506;
@@ -247,7 +242,6 @@ tr:hover .taglist .tag button {
.task.p70 .name{
color: #ff0000;
}
.kanban .state_custom .box.p70,
.kanban .state_20 .box.p70,
.kanban .state_40 .box.p70{
border: 5px solid #ff0000;
@@ -256,7 +250,6 @@ tr:hover .taglist .tag button {
.task.p80 .name{
color: #df153b;
}
.kanban .state_custom .box.p80,
.kanban .state_20 .box.p80,
.kanban .state_40 .box.p80{
border: 5px solid #df153b;
@@ -266,7 +259,6 @@ tr:hover .taglist .tag button {
background-color: #991c34;
color: #ffff00;
}
.kanban .state_custom .box.p90,
.kanban .state_20 .box.p90,
.kanban .state_40 .box.p90{
border: 5px solid #991c34;
@@ -276,7 +268,6 @@ tr:hover .taglist .tag button {
background-color: #733440;
color: #ffff00;
}
.kanban .state_custom .box.p100,
.kanban .state_20 .box.p100,
.kanban .state_40 .box.p100{
border: 5px solid #733440;

View File

@@ -124,10 +124,6 @@ tr:hover .taglist .tag button {
border-color: blue;
}
.states .active{
background: #dfe4ff;
}
.taglist .tag{
border-color: blue;
}
@@ -183,7 +179,6 @@ tr:hover .taglist .tag button {
.task.p10 .name{
color: #c9fbb2;
}
.kanban .state_custom .box.p10,
.kanban .state_20 .box.p10,
.kanban .state_40 .box.p10{
border: 5px solid #c9fbb2;
@@ -192,7 +187,6 @@ tr:hover .taglist .tag button {
.task.p20 .name{
color: #cbff57;
}
.kanban .state_custom .box.p20,
.kanban .state_20 .box.p20,
.kanban .state_40 .box.p20{
border: 5px solid #cbff57;
@@ -201,7 +195,6 @@ tr:hover .taglist .tag button {
.task.p30 .name{
color: #dfff44;
}
.kanban .state_custom .box.p30,
.kanban .state_20 .box.p30,
.kanban .state_40 .box.p30{
border: 5px solid #dfff44;
@@ -210,7 +203,6 @@ tr:hover .taglist .tag button {
.task.p40 .name{
color: #f8ff29;
}
.kanban .state_custom .box.p40,
.kanban .state_20 .box.p40,
.kanban .state_40 .box.p40{
border: 5px solid #f8ff29;
@@ -219,7 +211,6 @@ tr:hover .taglist .tag button {
.task.p50 .name{
color: #ffdb1b;
}
.kanban .state_custom .box.p50,
.kanban .state_20 .box.p50,
.kanban .state_40 .box.p50{
border: 5px solid #ffdb1b;
@@ -228,7 +219,6 @@ tr:hover .taglist .tag button {
.task.p60 .name{
color: #ff9309;
}
.kanban .state_custom .box.p60,
.kanban .state_20 .box.p60,
.kanban .state_40 .box.p60{
border: 5px solid #ff9309;
@@ -237,7 +227,6 @@ tr:hover .taglist .tag button {
.task.p70 .name{
color: #ff6c00;
}
.kanban .state_custom .box.p70,
.kanban .state_20 .box.p70,
.kanban .state_40 .box.p70{
border: 5px solid #ff6c00;
@@ -246,7 +235,6 @@ tr:hover .taglist .tag button {
.task.p80 .name{
color: #ff3c00;
}
.kanban .state_custom .box.p80,
.kanban .state_20 .box.p80,
.kanban .state_40 .box.p80{
border: 5px solid #ff3c00;
@@ -255,7 +243,6 @@ tr:hover .taglist .tag button {
.task.p90 .name{
color: #ff0000;
}
.kanban .state_custom .box.p90,
.kanban .state_20 .box.p90,
.kanban .state_40 .box.p90{
border: 5px solid #ff0000;
@@ -264,7 +251,6 @@ tr:hover .taglist .tag button {
.task.p100 .name{
color: #ff0048;
}
.kanban .state_custom .box.p100,
.kanban .state_20 .box.p100,
.kanban .state_40 .box.p100{
border: 5px solid #ff0048;