From eae58320fe6fabe7ae035c18561c90bb5138fb82 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 20 Dec 2023 12:13:03 -0500 Subject: [PATCH] Added stub renderers for Calendar and Contacts rooms --- webcit-ng/static/index.html | 2 ++ webcit-ng/static/js/view_calendar.js | 12 ++++++++++++ webcit-ng/static/js/view_contacts.js | 12 ++++++++++++ webcit-ng/static/js/views.js | 6 ++---- 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 webcit-ng/static/js/view_calendar.js create mode 100644 webcit-ng/static/js/view_contacts.js diff --git a/webcit-ng/static/index.html b/webcit-ng/static/index.html index 9fa702b25..cb42038e0 100644 --- a/webcit-ng/static/index.html +++ b/webcit-ng/static/index.html @@ -72,6 +72,8 @@ + + diff --git a/webcit-ng/static/js/view_calendar.js b/webcit-ng/static/js/view_calendar.js new file mode 100644 index 000000000..b6d135d36 --- /dev/null +++ b/webcit-ng/static/js/view_calendar.js @@ -0,0 +1,12 @@ +// This module handles the view for "calendar" rooms. +// +// Copyright (c) 2016-2023 by the citadel.org team +// +// This program is open source software. Use, duplication, or +// disclosure are subject to the GNU General Public License v3. + + +// RENDERER FOR THIS VIEW +function view_render_calendar() { + document.getElementById("ctdl-main").innerHTML = `STUB RENDERER FOR CALENDAR ROOM`; +} diff --git a/webcit-ng/static/js/view_contacts.js b/webcit-ng/static/js/view_contacts.js new file mode 100644 index 000000000..d6503eaac --- /dev/null +++ b/webcit-ng/static/js/view_contacts.js @@ -0,0 +1,12 @@ +// This module handles the view for "address book" rooms. +// +// Copyright (c) 2016-2023 by the citadel.org team +// +// This program is open source software. Use, duplication, or +// disclosure are subject to the GNU General Public License v3. + + +// RENDERER FOR THIS VIEW +function view_render_contacts() { + document.getElementById("ctdl-main").innerHTML = `STUB RENDERER FOR ADDRESS BOOK`; +} diff --git a/webcit-ng/static/js/views.js b/webcit-ng/static/js/views.js index b266dbe99..6c235fcde 100644 --- a/webcit-ng/static/js/views.js +++ b/webcit-ng/static/js/views.js @@ -59,14 +59,12 @@ function render_room_view() { // The "contacts" module displays rooms with the VIEW_ADDRESSBOOK view as a contacts manager. case views.VIEW_ADDRESSBOOK: - document.getElementById("ctdl-main").innerHTML = - `
'${current_room}' is an address book but there is no renderer.
`; + view_render_contacts(); break; case views.VIEW_CALENDAR: case views.VIEW_CALBRIEF: - document.getElementById("ctdl-main").innerHTML = - `
'${current_room}' is a calendar but there is no renderer.
`; + view_render_calendar(); break; case views.VIEW_TASKS: -- 2.30.2