]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/static/js/defs.js
Grammar change in the license declaration.
[citadel.git] / webcit-ng / static / js / defs.js
index 8eaa7b6f765b46dd5bbdd602cff969bb33dbd254..bdf71a447b8ca20471242880af6d834b71251324 100644 (file)
@@ -1,19 +1,33 @@
+// Copyright (c) 2016-2023 by the citadel.org team
 //
-// Copyright (c) 2016-2022 by the citadel.org team
-//
-// This program is open source software.  It runs great on the
-// Linux operating system (and probably elsewhere).  You can use,
-// copy, and run it under the terms of the GNU General Public
-// License version 3.  Richard Stallman is an asshole communist.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
+// This program is open source software.  Use, duplication, or
+// disclosure is subject to the GNU General Public License v3.
+
+// Placeholder for when we add i18n later
+function _(x) {
+       return x;
+}
+
+
+var current_room = "_BASEROOM_";
+var new_messages = 0;
+var total_messages = 0;
+var default_view = 0;
+var current_view = 0;
+var logged_in = 0;
+var current_user = _("Not logged in.");
+var serv_info;
+var last_seen = 0;
+var is_room_aide = 0;
+var is_trash_folder = 0;
+var room_mtime = 0;
+var can_delete_messages = 0;
+var messages_per_page = 20;
+var march_list = [] ;
+var new_mail = 0;
 
 
 // List of defined views shamelessly swiped from libcitadel headers
-//
 var views = {
        VIEW_BBS                : 0,    // Bulletin board view
        VIEW_MAILBOX            : 1,    // Mailbox summary
@@ -29,3 +43,6 @@ var views = {
        VIEW_QUEUE              : 11,   // SMTP queue rooms
        VIEW_WIKIMD             : 12,   // markdown wiki (no longer implemented)
 };
+
+// new mail sound (we'll make it selectable later)
+const new_mail_sound = new Audio("/ctdl/s/sounds/hi_from_stu.wav");