]> code.citadel.org Git - citadel.git/blob - webcit-ng/static/js/defs.js
5d6d87aeb5c69a760d79649384be6e7502ecaab4
[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.  It runs great on the
5 // Linux operating system (and probably elsewhere).  You can use,
6 // copy, and run it under the terms of the GNU General Public
7 // License version 3.  Richard Stallman is an asshole communist.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13
14
15 // Placeholder for when we add i18n later
16 function _(x) {
17         return x;
18 }
19
20
21 var current_room = "_BASEROOM_";
22 var new_messages = 0;
23 var total_messages = 0;
24 var default_view = 0;
25 var current_view = 0;
26 var logged_in = 0;
27 var current_user = _("Not logged in.");
28 var serv_info;
29 var last_seen = 0;
30 var messages_per_page = 20;
31 var march_list = [] ;
32
33
34 // List of defined views shamelessly swiped from libcitadel headers
35 //
36 var views = {
37         VIEW_BBS                : 0,    // Bulletin board view
38         VIEW_MAILBOX            : 1,    // Mailbox summary
39         VIEW_ADDRESSBOOK        : 2,    // Address book view
40         VIEW_CALENDAR           : 3,    // Calendar view
41         VIEW_TASKS              : 4,    // Tasks view
42         VIEW_NOTES              : 5,    // Notes view
43         VIEW_WIKI               : 6,    // Wiki view
44         VIEW_CALBRIEF           : 7,    // Brief Calendar view
45         VIEW_JOURNAL            : 8,    // Journal view
46         VIEW_DRAFTS             : 9,    // Drafts view
47         VIEW_BLOG               : 10,   // Blog view
48         VIEW_QUEUE              : 11,   // SMTP queue rooms
49         VIEW_WIKIMD             : 12,   // markdown wiki (no longer implemented)
50 };