caldav-client

standalone CalDAV web client
git clone https://git.ce9e.org/caldav-client.git

commit
788272ec50fa3ee3666a0b598f51f476209b6304
parent
7d21c477deece0ff63a6fd7290f501cfa23cc1bc
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2022-02-11 05:43
mv some calendar settings to config

Diffstat

M config.js 12 ++++++++++++
M main.js 6 ++----

2 files changed, 14 insertions, 4 deletions


diff --git a/config.js b/config.js

@@ -1 +1,13 @@
    1     1 export var rootUrl = '/path/to/principal/';
   -1     2 
   -1     3 // See https://fullcalendar.io/docs
   -1     4 export var calendarOptions = {
   -1     5     scrollTime: '07:00',
   -1     6     weekNumberCalculation: 'ISO',
   -1     7     headerToolbar: {
   -1     8         left: 'timeGridWeek,dayGridMonth',
   -1     9         center: 'title',
   -1    10         right: 'today prev,next',
   -1    11     },
   -1    12     initialView: 'timeGridWeek',
   -1    13 };

diff --git a/main.js b/main.js

@@ -92,12 +92,10 @@ form.addEventListener('submit', function(e) {
   92    92 
   93    93 var calendar = new FullCalendar.Calendar(
   94    94     document.querySelector('.calendar'),
   95    -1     {
   -1    95     Object.assign({
   96    96         schedulerLicenseKey: 'GPL-My-Project-Is-Open-Source',
   97    97         locale: navigator.language,
   98    -1         scrollTime: '07:00',
   99    98         nowIndicator: true,
  100    -1         weekNumberCalculation: 'ISO',
  101    99         eventClick: info => openForm(info.event),
  102   100         dateClick: (function() {
  103   101             var timeout = null;
@@ -136,7 +134,7 @@ var calendar = new FullCalendar.Calendar(
  136   134             right: 'today prev,next',
  137   135         },
  138   136         initialView: 'timeGridWeek',
  139    -1     }
   -1   137     }, config.calendarOptions)
  140   138 );
  141   139 calendar.render();
  142   140