Changes for page Desk allocation
Last modified by Ricardo Julio Rodríguez Fernández on 2025/06/02 10:02
From version 164.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/03/09 21:28
on 2024/03/09 21:28
Change comment:
Kanban content updated
To version 212.1
edited by Abdullah Sharifi
on 2024/03/12 16:59
on 2024/03/12 16:59
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
-
Objects (1 modified, 1 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. RicardoJulioRodriguezFernandez1 +XWiki.AbdullahSharifi - Content
-
... ... @@ -1,3 +1,3 @@ 1 -{{kanban width="2 9%" source="https://portal.igfae.usc.es/xwiki/bin/download/Kanban%20playground%20for%20Ricardo/WebHome/jsonformatter.txt?rev=1.1" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}2 -[{"id":" board2","title":"Working","color":"green","item":[{"title":"Item121"},{"title":"Item4"}]},{"id":"board3","title":"Done","color":"orange","item":[{"title":"Item2"},{"title":"Item7"}]},{"id":"board1","title":"ToDo","color":"red","item":[{"title":"Item5"},{"title":"Item1"}]},{"id":"board4","title":"NewBoard01","color":"blue","item":[{"title":"Item1"}]},{"id":"board5","title":"NewBoard02","color":"orange","item":[{"title":"Item 3"}]},{"id":"board6","title":"New Board03","color":"red","item":[{"title":"Item1"},{"title":"Item 1"}]}]1 +{{kanban width="235px" source="https://portal.igfae.usc.es/xwiki/bin/view/Towards%20JSON/Rooms/?outputSyntax=plain&xpage=plain" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}} 2 +[{"id":"room 01, floor 1","item":[{"title":"person 001 - LHCB"}],"color":"green","title":"Room#: 01, Floor#: 1"},{"id":"room 02, floor 1","item":[{"title":"person 002 - STRI"}],"color":"blue","title":"Room#: 02, Floor#: 1"},{"id":"room 03, floor 2","item":[{"title":"person 003 - LHCB"}],"color":"red","title":"Room#: 03, Floor#: 2"},{"id":"room 05, floor 2","item":[{"title":"person 003 - LHCB"},{"title":"person 004 - NUCL"}],"color":"yellow","title":"Room#: 05, Floor#: 2"},{"id":"room 08, floor 1","item":[{"title":"person 119 - HQCD"},{"title":"person 135 - LHCB"},{"title":"person 078 - HQCD"}],"color":"orange","title":"Room#: 08, Floor#: 1"},{"id":"room 16, floor 1","item":[{"title":"person 123 - AUGE"}],"color":"green","title":"Room#: 16, Floor#: 1"},{"id":"room 30, floor 1","item":[{"title":"person 354 - NEXT"}],"color":"green","title":"Room#: 30, Floor#: 1"},{"id":"room 18, floor 1","item":[{"title":"person 256 - GRWA"}],"color":"green","title":"Room#: 18, Floor#: 1"},{"id":"room 19, floor 1","item":[{"title":"person 354 - LACC"}],"color":"green","title":"Room#: 19, Floor#: 1"}] 3 3 {{/kanban}}
- room.json
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.RicardoJulioRodriguezFernandez - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.8 KB - Content
-
... ... @@ -1,0 +1,101 @@ 1 +[ 2 + { 3 + "id": "room 01, floor 1", 4 + "color": "green", 5 + "item": [ 6 + { 7 + "title": "person 001 - LHCB" 8 + } 9 + ], 10 + "title": "Room#: 01, Floor#: 1" 11 + }, 12 + { 13 + "id": "room 02, floor 1", 14 + "color": "blue", 15 + "item": [ 16 + { 17 + "title": "person 002 - STRI" 18 + } 19 + ], 20 + "title": "Room#: 02, Floor#: 1" 21 + }, 22 + { 23 + "id": "room 03, floor 2", 24 + "color": "red", 25 + "item": [ 26 + { 27 + "title": "person 003 - LHCB" 28 + } 29 + ], 30 + "title": "Room#: 03, Floor#: 2" 31 + }, 32 + { 33 + "id": "room 05, floor 2", 34 + "color": "yellow", 35 + "item": [ 36 + { 37 + "title": "person 003 - LHCB" 38 + }, 39 + { 40 + "title": "person 004 - NUCL" 41 + } 42 + ], 43 + "title": "Room#: 05, Floor#: 2" 44 + }, 45 + { 46 + "id": "room 08, floor 1", 47 + "color": "orange", 48 + "item": [ 49 + { 50 + "title": "person 119 - HQCD" 51 + }, 52 + { 53 + "title": "person 135 - LHCB" 54 + }, 55 + { 56 + "title": "person 078 - HQCD" 57 + } 58 + ], 59 + "title": "Room#: 08, Floor#: 1" 60 + }, 61 + { 62 + "id": "room 16, floor 1", 63 + "color": "green", 64 + "item": [ 65 + { 66 + "title": "person 123 - AUGE" 67 + } 68 + ], 69 + "title": "Room#: 16, Floor#: 1" 70 + }, 71 + { 72 + "id": "room 18, floor 1", 73 + "color": "green", 74 + "item": [ 75 + { 76 + "title": "person 256 - GRWA" 77 + } 78 + ], 79 + "title": "Room#: 18, Floor#: 1" 80 + }, 81 + { 82 + "id": "room 19, floor 1", 83 + "color": "green", 84 + "item": [ 85 + { 86 + "title": "person 354 - LACC" 87 + } 88 + ], 89 + "title": "Room#: 19, Floor#: 1" 90 + }, 91 + { 92 + "id": "room 30, floor 1", 93 + "color": "green", 94 + "item": [ 95 + { 96 + "title": "person 354 - NEXT" 97 + } 98 + ], 99 + "title": "Room#: 30, Floor#: 1" 100 + } 101 +]
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,0 +1,110 @@ 1 +window.onload = function() { 2 + const titleElements = document.getElementsByClassName('kanban-item-title'); 3 + const headerElements = document.getElementsByClassName('kanban-board-header'); 4 + const titleContainers = document.getElementsByClassName('kanban-item'); 5 + 6 + const kanbanContainer = document.querySelector('.kanban-container'); 7 + kanbanContainer.style.display = "flex"; 8 + kanbanContainer.style.justifyContent = "space-between" 9 + kanbanContainer.style.gap = "30px" 10 + kanbanContainer.style.alignItems = "start" 11 + kanbanContainer.style.flexWrap = "wrap" 12 + 13 + for (let i = 0; i < titleElements.length; i++) { 14 + const titleElement = titleElements[i]; 15 + titleElement.style.padding = "2px 4px"; 16 + titleElement.style.borderRadius = "4px"; 17 + 18 + if (titleElement.textContent.includes('LHCB')) { 19 + titleElement.style.color = 'white'; 20 + titleElement.style.backgroundColor = 'red'; 21 + const parentElement = titleElement.closest('.kanban-item'); 22 + if (parentElement) { 23 + parentElement.style.backgroundColor = 'yellow'; 24 + } 25 + } 26 + if (titleElement.textContent.includes('STRI')) { 27 + titleElement.style.color = 'white'; 28 + titleElement.style.backgroundColor = 'navy'; 29 + const parentElement = titleElement.closest('.kanban-item'); 30 + if (parentElement) { 31 + parentElement.style.backgroundColor = '#FFDB58'; 32 + } 33 + } 34 + if (titleElement.textContent.includes('AUGE')) { 35 + titleElement.style.color = 'white'; 36 + titleElement.style.backgroundColor = '#FF7F50'; 37 + const parentElement = titleElement.closest('.kanban-item'); 38 + if (parentElement) { 39 + parentElement.style.backgroundColor = '#008080'; 40 + } 41 + } 42 + if (titleElement.textContent.includes('HQCD')) { 43 + titleElement.style.color = 'white'; 44 + titleElement.style.backgroundColor = 'crimson'; 45 + const parentElement = titleElement.closest('.kanban-item'); 46 + if (parentElement) { 47 + parentElement.style.backgroundColor = '#808000'; 48 + } 49 + } 50 + if (titleElement.textContent.includes('NUCL')) { 51 + titleElement.style.color = 'white'; 52 + titleElement.style.backgroundColor = '#E2725B'; 53 + const parentElement = titleElement.closest('.kanban-item'); 54 + if (parentElement) { 55 + parentElement.style.backgroundColor = '#708090'; 56 + } 57 + } 58 + if (titleElement.textContent.includes('GRWA')) { 59 + titleElement.style.color = 'white'; 60 + titleElement.style.backgroundColor = '#FF00FF'; 61 + const parentElement = titleElement.closest('.kanban-item'); 62 + if (parentElement) { 63 + parentElement.style.backgroundColor = '#F4C430'; 64 + } 65 + } 66 + if (titleElement.textContent.includes('NEXT')) { 67 + titleElement.style.color = 'white'; 68 + titleElement.style.backgroundColor = '#4B0082'; 69 + const parentElement = titleElement.closest('.kanban-item'); 70 + if (parentElement) { 71 + parentElement.style.backgroundColor = '#E0115F'; 72 + } 73 + } 74 + if (titleElement.textContent.includes('LACC')) { 75 + titleElement.style.color = 'white'; 76 + titleElement.style.backgroundColor = '#87CEEB'; 77 + const parentElement = titleElement.closest('.kanban-item'); 78 + if (parentElement) { 79 + parentElement.style.backgroundColor = '#98FF98'; 80 + } 81 + } 82 + } 83 + 84 + for (let i = 0; i < headerElements.length; i++) { 85 + const element = headerElements[i]; 86 + if (element.innerHTML.includes('Floor#: 2')) { 87 + for (let j = 0; j < element.classList.length; j++) { 88 + if (/kanban-header-\w+/.test(element.classList[j])) { 89 + element.classList.remove(element.classList[j]); 90 + element.style.backgroundColor = '#98FF98'; 91 + break; 92 + } 93 + } 94 + } 95 + } 96 + 97 + for (let i = 0; i < headerElements.length; i++) { 98 + const element = headerElements[i]; 99 + if (element.innerHTML.includes('Floor#: 1')) { 100 + for (let j = 0; j < element.classList.length; j++) { 101 + if (/kanban-header-\w+/.test(element.classList[j])) { 102 + element.classList.remove(element.classList[j]); 103 + element.style.backgroundColor = '#FF7F50'; 104 + break; 105 + } 106 + } 107 + } 108 + } 109 +}; 110 + - Name
-
... ... @@ -1,0 +1,1 @@ 1 +Styling boards - Parse content
-
... ... @@ -1,0 +1,1 @@ 1 +No - Use this extension
-
... ... @@ -1,0 +1,1 @@ 1 +currentPage
- XWiki.XWikiRights[1]
-
- Allow/Deny
-
... ... @@ -1,0 +1,1 @@ 1 +Allow - Levels
-
... ... @@ -1,0 +1,1 @@ 1 +view - Users
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.XWikiGuest