Skip to content

Commit 0e12b87

Browse files
committed
Merge remote-tracking branch 'upstream/r/18.x' into develop
2 parents 3917dca + 231da8d commit 0e12b87

21 files changed

+983
-604
lines changed

.github/assets/index.css

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
@media (prefers-color-scheme: light) {
2+
:root {
3+
--header-color: linear-gradient(to bottom,#388ed6,#2075b1);
4+
--bg-color: #fafafa;
5+
--text-color: #0F0F0F;
6+
--container-color: #fafafa;
7+
--boxShadow-color: #0000004d;
8+
--border-color: #1d3041;
9+
--navbar-color: #24425c;
10+
--item-color: #ebeef1;
11+
--item-border: #c9d0d6;
12+
--item-hover: linear-gradient(to bottom, #fafafa, #e8ebef);
13+
--item-inner-boxShadow-color: #0000000d;
14+
--item-boxShadow-color: #96969626;
15+
}
16+
}
17+
18+
body {
19+
margin: 0px;
20+
background: var(--bg-color, #F8F4F1);
21+
font-family: Roboto Flex Variable, Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
22+
}
23+
24+
/* Text Container */
25+
.text-container {
26+
/* Layout */
27+
margin: 3% auto;
28+
max-width: 75%;
29+
padding: 10px 15px 10px 15px;
30+
31+
/* Styling */
32+
border-radius: 5px;
33+
background: var(--container-color, #F8F4F1);
34+
box-shadow: 0 1px 3px 1px var(--boxShadow-color, #0000004d);
35+
}
36+
.text-container > p {
37+
color: var(--text-color, #0F0F0F);
38+
text-align: center;
39+
font-size: 20px;
40+
font-weight: 400;
41+
}
42+
43+
/* Header */
44+
.head-container {
45+
width: 100%;
46+
height: 50px;
47+
box-shadow: 0 1px 3px 1px var(--boxShadow-color, #0000004d);
48+
position: relative;
49+
border-bottom: 1px solid var(--border-color, #1d3041);
50+
background: var(--header-color, linear-gradient(to bottom,#388ed6,#2075b1));
51+
52+
}
53+
.head-container > img {
54+
/*Image Style*/
55+
width: 100px;
56+
height: 20px;
57+
padding: 14px 20px 13px;
58+
}
59+
.navbar-container {
60+
width: 100%;
61+
min-height: 80px;
62+
background: var(--navbar-color, #24425c);
63+
}
64+
65+
/* Version-List */
66+
ul {
67+
list-style-type: none;
68+
display: flex;
69+
justify-content: center;
70+
align-items: center;
71+
flex-wrap: wrap;
72+
column-gap: 20px;
73+
row-gap: 10px;
74+
}
75+
76+
li {
77+
width: 160px;
78+
text-align: center;
79+
padding: 15px 10px;
80+
border-radius: 4px;
81+
border: 1px solid var(--item-border, #c9d0d6);
82+
background: var(--item-color, #ebeef1);
83+
box-shadow: inset 0 3px 10px 2px var(--item-inner-boxShadow-color, #0000000d), 0px 5px 10px 0px var(--item-boxShadow-color, #96969626);
84+
}
85+
86+
li:hover {
87+
background: var(--item-hover, linear-gradient(to bottom, #fafafa, #e8ebef));
88+
}
89+
90+
li > a {
91+
color: var(--text-color, #0F0F0F);
92+
font-size: 18px;
93+
font-weight: 400;
94+
text-decoration: none;
95+
padding:15px 50px;
96+
}

.github/assets/opencast-white.svg

Lines changed: 72 additions & 0 deletions
Loading

.github/workflows/deploy-main.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,23 @@ jobs:
5656
NODE_ENV: development
5757
VITE_TEST_SERVER_AUTH: "admin:opencast"
5858

59-
6059
- name: Prepare git
6160
run: |
6261
git config --global user.name "Release Bot"
6362
git config --global user.email "[email protected]"
6463
6564
- name: Commit new version
6665
run: |
66+
# Save the current assets from the main branch
67+
mv .github/assets assets_temp
68+
# Update and change to the gh-pages branch
6769
git fetch --unshallow origin gh-pages
6870
git checkout gh-pages
6971
# Update gh-pages
7072
rm -rf $BRANCH
7173
mv build $BRANCH
7274
#Generate an index, in case anyone lands at the root of the test domain
73-
echo '<html><body><ul>' > index.html
75+
echo $'<html><head><link rel=stylesheet type=text/css href=assets/index.css /></head><body><div class="head-container"><img src=assets/opencast-white.svg /></div><div class="navbar-container"></div><div class="text-container"><p>Deployment for the latest development versions of the Opencast admin interface.The branches listed here correspond to Opencast\'s own branches.</br><b>Please select a version.</b></p></div><ul>' > index.html
7476
find . -mindepth 1 -maxdepth 1 -type d \
7577
| grep '[0-9]*.x\|develop' \
7678
| sort -r \
@@ -81,5 +83,14 @@ jobs:
8183
env:
8284
BRANCH: ${{needs.detect.outputs.branch}}
8385

86+
- name: update CSS and other assets
87+
if: github.ref == 'refs/heads/develop'
88+
run: |
89+
rm -rf assets
90+
mv assets_temp assets
91+
git add assets
92+
git diff --staged --quiet || git commit --amend -m "Build $(date)"
93+
94+
8495
- name: Push updates
8596
run: git push origin gh-pages --force

src/components/configuration/partials/ThemesDateTimeCell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ const ThemesDateTimeCell = ({
1414

1515
return (
1616
// Link template for creation date of themes
17-
<span>
17+
<>
1818
{t("dateFormats.date.short", {
1919
date: row.creationDate ? renderValidDate(row.creationDate) : "",
2020
})}
21-
</span>
21+
</>
2222
);
2323
};
2424

src/components/events/Events.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ const Events = () => {
4747
const editMetadataEventsModalRef = useRef<ModalHandle>(null);
4848

4949
const user = useAppSelector(state => getUserInformation(state));
50-
const showActions = useAppSelector(state => isShowActions(state));
5150
const isFetchingAssetUploadOptions = useAppSelector(state => getIsFetchingAssetUploadOptions(state));
5251

5352
const location = useLocation();
@@ -118,7 +117,7 @@ const Events = () => {
118117
text: "BULK_ACTIONS.EDIT_EVENTS_METADATA.CAPTION",
119118
},
120119
]}
121-
disabled={!showActions}
120+
isShowActions={isShowActions}
122121
/>
123122
</TablePage>
124123

src/components/events/Series.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
loadSeriesIntoTable,
88
} from "../../thunks/tableThunks";
99
import { getTotalSeries, isShowActions } from "../../selectors/seriesSeletctor";
10-
import { useAppDispatch, useAppSelector } from "../../store";
10+
import { useAppDispatch } from "../../store";
1111
import {
1212
fetchSeries,
1313
fetchSeriesMetadata,
@@ -35,9 +35,6 @@ const Series = () => {
3535

3636
const location = useLocation();
3737

38-
// const series = useAppSelector(state => getTotalSeries(state));
39-
const showActions = useAppSelector(state => isShowActions(state));
40-
4138
useEffect(() => {
4239
// disable actions button
4340
dispatch(showActionsSeries(false));
@@ -82,7 +79,7 @@ const Series = () => {
8279
text: "BULK_ACTIONS.DELETE.SERIES.CAPTION",
8380
},
8481
]}
85-
disabled={!showActions}
82+
isShowActions={isShowActions}
8683
/>
8784
</TablePage>
8885

src/components/events/partials/EventsEndCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const EventsEndCell = ({
1414

1515
return (
1616
// Link template for start date of event
17-
<span>{t("dateFormats.time.short", { time: renderValidDate(row.end_date) })}</span>
17+
<>{t("dateFormats.time.short", { time: renderValidDate(row.end_date) })}</>
1818
);
1919
};
2020
export default EventsEndCell;

src/components/events/partials/EventsLocationCell.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@ const EventsLocationCell = ({
1212
row: Event
1313
}) => {
1414
return (
15-
<FilterCell
16-
resource={"events"}
17-
filterName={"location"}
18-
filterItems={[{
19-
filterValue: row.location,
20-
children: row.location,
21-
// cellTooltipText: "EVENTS.EVENTS.TABLE.TOOLTIP.LOCATION", // Disabled due to performance concerns
22-
}]}
23-
fetchResource={fetchEvents}
24-
loadResourceIntoTable={loadEventsIntoTable}
25-
/>
15+
<>
16+
{ row.location &&
17+
<FilterCell
18+
resource={"events"}
19+
filterName={"location"}
20+
filterItems={[{
21+
filterValue: row.location,
22+
children: row.location,
23+
// cellTooltipText: "EVENTS.EVENTS.TABLE.TOOLTIP.LOCATION", // Disabled due to performance concerns
24+
}]}
25+
fetchResource={fetchEvents}
26+
loadResourceIntoTable={loadEventsIntoTable}
27+
/>
28+
}
29+
</>
2630
);
2731
};
2832

src/components/events/partials/EventsStartCell.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ const EventsStartCell = ({
1414

1515
return (
1616
// Link template for start date of event
17-
<span>
18-
{t("dateFormats.time.short", { time: renderValidDate(row.start_date) })}
19-
</span>
17+
<>{t("dateFormats.time.short", { time: renderValidDate(row.start_date) })}</>
2018
);
2119
};
2220

src/components/events/partials/ModalTabsAndPages/EventDetailsSchedulingTab.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ const EventDetailsSchedulingTab = ({
304304
yearDropdownItemNumber={2}
305305
dateFormat="P"
306306
popperClassName="datepicker-custom"
307-
className="datepicker-custom-input"
308307
wrapperClassName="datepicker-custom-wrapper"
309308
locale={currentLanguage?.dateLocale}
310309
strictParsing

0 commit comments

Comments
 (0)