]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/js/defs.js
Pass through the data to tell the client if it has room aide privileges and/or permis...
[citadel.git] / webcit-ng / static / js / defs.js
1 //
2 // Copyright (c) 2016-2022 by the citadel.org team
3 //
4 // This program is open source software.  Use, duplication, or
5 // disclosure are subject to the GNU General Public License v3.
6
7 // Placeholder for when we add i18n later
8 function _(x) {
9         return x;
10 }
11
12
13 var current_room = "_BASEROOM_";
14 var new_messages = 0;
15 var total_messages = 0;
16 var default_view = 0;
17 var current_view = 0;
18 var logged_in = 0;
19 var current_user = _("Not logged in.");
20 var serv_info;
21 var last_seen = 0;
22 var is_room_aide = 0;
23 var can_delete_messages = 0;
24 var messages_per_page = 20;
25 var march_list = [] ;
26
27
28 // List of defined views shamelessly swiped from libcitadel headers
29 //
30 var views = {
31         VIEW_BBS                : 0,    // Bulletin board view
32         VIEW_MAILBOX            : 1,    // Mailbox summary
33         VIEW_ADDRESSBOOK        : 2,    // Address book view
34         VIEW_CALENDAR           : 3,    // Calendar view
35         VIEW_TASKS              : 4,    // Tasks view
36         VIEW_NOTES              : 5,    // Notes view
37         VIEW_WIKI               : 6,    // Wiki view
38         VIEW_CALBRIEF           : 7,    // Brief Calendar view
39         VIEW_JOURNAL            : 8,    // Journal view
40         VIEW_DRAFTS             : 9,    // Drafts view
41         VIEW_BLOG               : 10,   // Blog view
42         VIEW_QUEUE              : 11,   // SMTP queue rooms
43         VIEW_WIKIMD             : 12,   // markdown wiki (no longer implemented)
44 };