Changes for page Home

Last modified by Benjamin Fischer on 2025/06/04 14:20

From version 73.2
edited by Benjamin Fischer
on 2024/11/07 16:47
Change comment: There is no comment for this version
To version 72.81
edited by Benjamin Fischer
on 2024/11/07 14:22
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,6 @@
1 1  {{box cssClass="floatinginfobox" image="https://wiki.test.erumdatahub.de/bin/download/Main/WebHome/logo_horizontal_23_neu.png?width=200"}}
2 2  {{displayIcon name="application_view_tile"/}} [[Indico>>https://indico.desy.de/category/984/]]
3 -{{displayIcon name="email"/}} [[Mailing Lists>>https://wiki.erumdatahub.de/de/mailing-lists]]
3 +{{displayIcon name="email"/}} [[Mailing Lists]]
4 4  {{displayIcon name="world"/}} [[Website>>https://erumdatahub.de/]]
5 5  {{/box}}
6 6  
XWiki.JavaScriptExtension[0]
Code
... ... @@ -9,6 +9,12 @@
9 9   const range = num => Array(num).fill().map((_, i) => i);
10 10   FC.defineView('monthCols', {
11 11   class: FC.View.extend({
12 + Qrender() {
13 + console.debug("render");
14 + },
15 + QrenderSkeleton() {
16 + console.debug("renderSkeleton");
17 + },
12 12   renderEvents(events) {
13 13   console.debug("renderEvents", events);
14 14   debugger;
... ... @@ -66,13 +66,11 @@
66 66   for (const i of range(d))
67 67   bgc[day + i] = v.color;
68 68   } else {
69 - const href = v.html.match(/<span class="wikiexternallink"><a href="([^"]+)">\1</)?.[1] ?? v.url;
70 - const e = E("div", E("a", {href}, v.title));
75 + const u = v.html.match(/<span class="wikiexternallink"><a href="([^"]+)">\1</)?.[1];
76 + const e = E("div", u ? E("a", {href: u}, v.title) : v.title);
71 71   e.style.height = `${100 * d}%`;
72 72   if (v.color) e.style.borderColor = e.style.backgroundColor = v.color;
73 73   if (v.textColor) e.style.color = v.textColor;
74 - if (v.start.isBefore(ms)) e.classList.add("fc-cut-start");
75 - if (me.isBefore(v.end)) e.classList.add("fc-cut-end");
76 76   oc.push(e);
77 77   // TODO: soft-columns
78 78   }
... ... @@ -130,7 +130,7 @@
130 130   right: "month,monthCols",
131 131   },
132 132   timeFormat: "H:mm",
133 - defaultView: "monthCols",
137 + defaultView: "month",
134 134   firstDay: "1",
135 135   minTime: "8:00",
136 136   maxTime: "23:00",
XWiki.StyleSheetExtension[0]
Code
... ... @@ -2,7 +2,7 @@
2 2   td.fc-sat, td.fc-sun {
3 3   background-color: #f5f5f5;
4 4   &.fc-dayVal {
5 - background-color: #f5f5f5 !important;
5 + background-color: inherit !important;
6 6   }
7 7   }
8 8   .fc-month-cols-view > table {
... ... @@ -13,17 +13,11 @@
13 13   col.fc-fitCol {
14 14   width: 1px;
15 15   }
16 + col.fc-borderLeft {
17 + border-left-width: 1px;
18 + }
16 16   .fc-body {
17 - tr:nth-child(4n+3) > * {
18 - border-top: 1px solid #ddd;
19 - }
20 - tr:nth-child(4n+5) > * {
21 - border-top: 1px solid #bbb;
22 - }
23 - tr:hover {
24 - filter: brightness(0.95);
25 - }
26 - td.fc-mainVal {
20 + td {
27 27   position: relative;
28 28   & > div {
29 29   z-index: 5;
... ... @@ -31,14 +31,6 @@
31 31   width: 100%;
32 32   overflow: hidden;
33 33   border-radius: 4px;
34 - &.fc-cut-start {
35 - border-top-left-radius: 0px;
36 - border-top-right-radius: 0px;
37 - }
38 - &.fc-cut-end {
39 - border-bottom-left-radius: 0px;
40 - border-bottom-right-radius: 0px;
41 - }
42 42   &:hover {
43 43   width: auto;
44 44   max-width: 10vw;
... ... @@ -52,12 +52,12 @@
52 52   }
53 53   }
54 54   }
55 - td.fc-dayVal, td.fc-weelVal {
56 - color: lighten(#1D3B58, 70%);
57 - }
58 58   td.fc-weekVal {
59 59   text-align: right;
60 60   }
61 - }
62 - }
44 + .fc-fade {
45 + opacity: 0.3;
46 + }
47 + }
48 + }
63 63  }