Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/605042fb38e38ee4ad276a200dad14473a52f1da
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
8 additions and
5 deletions
@ -358,6 +358,7 @@ export function cleanServiceGroups(groups) {
mappings , // customapi widget
refreshInterval ,
integrations , // calendar widget
firstDayInWeek ,
} = cleanedService . widget ;
let fieldsList = fields ;
@ -443,6 +444,7 @@ export function cleanServiceGroups(groups) {
}
if ( type === "calendar" ) {
if ( integrations ) cleanedService . widget . integrations = integrations ;
if ( firstDayInWeek ) cleanedService . widget . firstDayInWeek = firstDayInWeek ;
}
}
@ -98,13 +98,13 @@ export default function MonthlyView({ service }) {
const dayNames = Info . weekdays ( "short" , { locale : i18n . language } ) ;
const firstDayIn Calendar = widget ? . firstDayIn Calendar ? widget ? . firstDayInCalendar ? . toLowerCase ( ) : "monday" ;
for ( let i = 1 ; i < dayInWeekId [ firstDayIn Calendar] ; i += 1 ) {
const firstDayIn Week Calendar = widget ? . firstDayIn Week ? widget ? . firstDayInWeek ? . toLowerCase ( ) : "monday" ;
for ( let i = 1 ; i < dayInWeekId [ firstDayIn Week Calendar] ; i += 1 ) {
dayNames . push ( dayNames . shift ( ) ) ;
}
const daysInWeek = useMemo ( ( ) => [ ... Array ( 7 ) . keys ( ) ] . map ( i => i + dayInWeekId [ firstDayIn Calendar]
) , [ ( firstDayIn Calendar) ] ) ;
const daysInWeek = useMemo ( ( ) => [ ... Array ( 7 ) . keys ( ) ] . map ( i => i + dayInWeekId [ firstDayIn Week Calendar]
) , [ firstDayIn Week Calendar] ) ;
if ( ! showDate ) {
return < div className = "w-full text-center" / > ;
@ -112,8 +112,9 @@ export default function MonthlyView({ service }) {
const firstWeek = DateTime . local ( showDate . year , showDate . month , 1 ) . setLocale ( i18n . language ) ;
const weekIncrementChange = dayInWeekId [ firstDayInWeekCalendar ] > firstWeek . weekday ? - 1 : 0 ;
let weekNumbers = [ ... Array ( Math . ceil ( 5 ) + 1 ) . keys ( ) ]
. map ( i => firstWeek . weekNumber + i ) ;
. map ( i => firstWeek . weekNumber + weekIncrementChange + i ) ;
if ( weekNumbers . includes ( 55 ) ) {
/ / i f w e w e n t t o o f a r w i t h t h e w e e k s , i t ' s t h e b e g i n n i n g o f t h e y e a r