]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/js/defs.js
new license declaration text
[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 messages_per_page = 20;
23 var march_list = [] ;
24
25
26 // List of defined views shamelessly swiped from libcitadel headers
27 //
28 var views = {
29         VIEW_BBS                : 0,    // Bulletin board view
30         VIEW_MAILBOX            : 1,    // Mailbox summary
31         VIEW_ADDRESSBOOK        : 2,    // Address book view
32         VIEW_CALENDAR           : 3,    // Calendar view
33         VIEW_TASKS              : 4,    // Tasks view
34         VIEW_NOTES              : 5,    // Notes view
35         VIEW_WIKI               : 6,    // Wiki view
36         VIEW_CALBRIEF           : 7,    // Brief Calendar view
37         VIEW_JOURNAL            : 8,    // Journal view
38         VIEW_DRAFTS             : 9,    // Drafts view
39         VIEW_BLOG               : 10,   // Blog view
40         VIEW_QUEUE              : 11,   // SMTP queue rooms
41         VIEW_WIKIMD             : 12,   // markdown wiki (no longer implemented)
42 };