ComunicWeb/system/config/dev.config.php

602 lines
15 KiB
PHP
Raw Normal View History

2018-01-02 17:48:39 +00:00
<?php
/**
* PHP dev config for the website
*
* @author Pierre HUBERT
*/
class Dev {
2018-04-29 19:04:30 +00:00
/**
* API access and credentials
*/
2020-04-11 06:49:43 +00:00
const API_URL = "https://devweb.local/comunic/api-v2/"; //"http://devweb.local/comunic/api/";
2021-02-13 14:33:17 +00:00
const API_CLIENT_NAME = "ComunicWeb";
2018-04-29 19:04:30 +00:00
2018-01-02 17:48:39 +00:00
/**
* Site URL
*/
2020-04-11 06:49:43 +00:00
const SITE_URL = "https://devweb.local/comunic/v2/";
2018-01-02 17:48:39 +00:00
/**
2018-05-10 13:00:10 +00:00
* About website access
*/
const ABOUT_WEBSITE_URL = "http://127.0.0.1:4000/";
/**
2018-01-02 17:48:39 +00:00
* Site production mode
*/
const PROD_MODE = false;
/**
2018-04-29 18:58:01 +00:00
* Path to assets (relative to the base project)
*/
const PATH_ASSETS = "assets/";
/**
* URL to assets
2018-01-02 17:48:39 +00:00
*/
2020-04-11 06:49:43 +00:00
const ASSETS_URL = "https://devweb.local/comunic/v2/assets/";
2018-01-02 17:48:39 +00:00
/**
* Third party CSS files
*/
const THIRD_PARTY_CSS = array(
//CSS files - adminLTE distribution / bootstrap / plugins
"3rdparty/adminLTE/bootstrap/css/bootstrap.min.css",
"3rdparty/adminLTE/plugins/font-awesome/css/font-awesome.min.css",
"3rdparty/adminLTE/plugins/ionicons/css/ionicons.min.css",
2018-04-29 18:58:01 +00:00
"3rdparty/adminLTE/plugins/googleFonts/css.css",
2018-01-04 18:39:22 +00:00
//iCheck
2018-01-02 17:48:39 +00:00
"3rdparty/adminLTE/plugins/iCheck/square/blue.css",
"3rdparty/adminLTE/plugins/iCheck/flat/blue.css",
2018-01-04 18:39:22 +00:00
"3rdparty/adminLTE/plugins/iCheck/minimal/blue.css",
2018-01-02 17:48:39 +00:00
"3rdparty/adminLTE/plugins/select2/select2.min.css",
"3rdparty/adminLTE/dist/css/AdminLTE.min.css",
"3rdparty/adminLTE/dist/css/skins/_all-skins.min.css",
//Light box
2018-01-03 09:16:34 +00:00
"3rdparty/lightbox/ekko-lightbox.min.css",
//Datepicker
"3rdparty/adminLTE/plugins/datepicker/datepicker3.css",
//Timepicker
"3rdparty/adminLTE/plugins/timepicker/bootstrap-timepicker.min.css",
2018-01-03 09:16:34 +00:00
//VideoJS
2018-04-20 13:40:09 +00:00
//"3rdparty/videojs/6.4.0/video-js.min.css",
//Emoji picker
"3rdparty/wdt-emoji/wdt-emoji-bundle.css",
2018-12-27 13:02:01 +00:00
//SCEditor (BBCode editor)
"css/common/custom-sceditor.css",
// Color picker
"3rdparty/adminLTE/plugins/colorpicker/bootstrap-colorpicker.min.css",
2018-01-02 17:48:39 +00:00
);
/**
* Third party Javascript files
*/
const THIRD_PARTY_JS = array(
//Jquery
"3rdparty/adminLTE/plugins/jQuery/jquery-2.2.3.min.js",
//Bootstrap
"3rdparty/adminLTE/bootstrap/js/bootstrap.min.js",
//JQuery UI
"3rdparty/adminLTE/plugins/jquery-ui/jquery-ui.min.js",
// Vue JS
"3rdparty/vueJS/vue-3.0.5.js",
2018-01-02 17:48:39 +00:00
//iCheck
"3rdparty/adminLTE/plugins/iCheck/icheck.min.js",
//Slimscroll
"3rdparty/adminLTE/plugins/slimScroll/jquery.slimscroll.min.js",
//Select2
"3rdparty/adminLTE/plugins/select2/select2.min.js",
//adminLTE script
"3rdparty/adminLTE/dist/js/app.min.js",
//Bootstrap notify
"3rdparty/bootstrap-notify-3.1.3.min.js",
//Twitter emojies
"3rdparty/twemoji/2/twemoji.min.js",
//Textarea auto-size
"3rdparty/jquery.textarea_autosize/jquery.textarea_autosize.min.js",
//Light box
"3rdparty/lightbox/ekko-lightbox.min.js",
2018-01-03 09:16:34 +00:00
2018-01-04 10:22:41 +00:00
//ChartJS
"3rdparty/adminLTE/plugins/chartjs/Chart.min.js",
2018-01-04 17:51:49 +00:00
//Jquery hotkeys
"3rdparty/jquery.hotkeys.js",
//Bootstrap-WYSIWYG
"3rdparty/bootstrap-wysiwyg.js",
//Datepicker
"3rdparty/adminLTE/plugins/datepicker/bootstrap-datepicker.js",
//Timepicker
"3rdparty/adminLTE/plugins/timepicker/bootstrap-timepicker.js",
2018-01-03 09:16:34 +00:00
//VideoJS
2018-04-20 13:40:09 +00:00
//"3rdparty/videojs/6.4.0/video.min.js",
//Emoji picker
"3rdparty/wdt-emoji/emoji.min.js",
"3rdparty/wdt-emoji/wdt-emoji-bundle.js",
2018-05-12 07:51:25 +00:00
//Identicon.JS
"3rdparty/identicon.js/pnglib.js",
"3rdparty/identicon.js/identicon.js",
2018-05-13 18:29:07 +00:00
2018-05-13 19:08:34 +00:00
//FileSaver.js
"3rdparty/FileSaver.js",
2018-05-13 18:29:07 +00:00
//JSZip
"3rdparty/jszip/jszip.min.js",
2018-05-14 14:25:49 +00:00
//JSZip utils
2018-05-14 14:53:11 +00:00
"3rdparty/jszip-utils/jszip-utils.js",
2018-12-27 13:02:01 +00:00
//SCEditor (BBCode editor)
"3rdparty/sceditor/sceditor.min.js",
"3rdparty/sceditor/formats/bbcode.js",
"3rdparty/sceditor/formats/xhtml.js",
2018-12-27 18:07:39 +00:00
"3rdparty/sceditor/icons/material.js",
2018-12-27 13:02:01 +00:00
//JS BBCode Parser
"3rdparty/js-bbcode-parser/bbcode-config.js",
"3rdparty/js-bbcode-parser/bbcode-parser.js",
2019-01-25 14:24:32 +00:00
//Simple peer
2019-01-26 15:46:36 +00:00
array("path" => "3rdparty/simplepeer/simplepeer.min.js", "uglifyjs" => false),
2020-04-13 14:48:58 +00:00
// Share screen
"3rdparty/getScreenId.js",
2020-04-13 16:47:28 +00:00
// Record MediaStream
2021-01-30 18:13:21 +00:00
"3rdparty/MediaStreamRecorder.min.js",
// Color picker
"3rdparty/adminLTE/plugins/colorpicker/bootstrap-colorpicker.min.js",
2018-01-02 17:48:39 +00:00
);
/**
* Application CSS files
*/
const APP_CSS = array(
//App stylesheets - common stylesheets
"css/common/global.css",
2018-05-26 05:32:32 +00:00
"css/common/page/error.css",
2018-01-02 17:48:39 +00:00
"css/common/page/waitSplashScreen.css",
"css/common/network/networkError.css",
//Components stylesheets
//Menubar stylesheet
"css/components/menuBar.css",
2018-04-08 13:38:11 +00:00
//Language picker stylesheet
"css/components/languagePicker.css",
2018-01-02 17:48:39 +00:00
//Searchform stylesheet
"css/components/searchForm.css",
//Friendbar stylesheet
"css/components/friends/friendsBar.css",
2018-03-07 16:53:26 +00:00
"css/components/friends/listModal.css",
"css/components/friends/ui.css",
2018-01-02 17:48:39 +00:00
//Conversations stylesheet
"css/components/conversations/manager.css",
"css/components/conversations/windows.css",
"css/components/conversations/list.css",
2018-03-03 12:52:25 +00:00
"css/components/conversations/unreadDropdown.css",
"css/components/conversations/writingNotifier.css",
2018-01-02 17:48:39 +00:00
//User selector stylesheet
"css/components/userSelect/userSelect.css",
//Emojies
"css/components/emoji/parser.css",
2018-04-20 13:40:09 +00:00
"css/components/emoji/picker.css",
2018-01-02 17:48:39 +00:00
//Posts component
"css/components/posts/ui.css",
2018-01-04 17:51:49 +00:00
"css/components/posts/form.css",
"css/components/posts/edit.css",
2019-05-19 15:16:18 +00:00
"css/components/posts/targetPicker.css",
2018-01-02 17:48:39 +00:00
2018-01-05 14:58:36 +00:00
2018-01-19 05:58:23 +00:00
//Comments component
"css/components/comments/ui.css",
2018-01-28 16:03:54 +00:00
"css/components/comments/form.css",
2018-01-19 05:58:23 +00:00
2018-02-19 14:58:33 +00:00
//Notifications component
"css/components/notifications/dropdown.css",
2018-02-19 14:58:33 +00:00
"css/components/notifications/ui.css",
2019-01-11 13:50:06 +00:00
//Incognito mode component
"css/components/incognito/ui.css",
2019-01-24 13:40:36 +00:00
//Calls component
"css/components/calls/window.css",
2019-01-24 13:40:36 +00:00
2019-05-16 13:48:50 +00:00
//Sidebar component
"css/components/sidebar.css",
2019-01-11 15:34:43 +00:00
//Pacman (easter egg) stylesheet
"css/components/pacman.css",
// Password input
"css/components/passwordInput.css",
2018-01-02 17:48:39 +00:00
//Pages stylesheets
//User Page
"css/pages/userPage/main.css",
"css/pages/userPage/accessForbidden.css",
2018-05-03 19:56:58 +00:00
"css/pages/userPage/profileInfos.css",
2018-07-20 12:27:49 +00:00
"css/pages/userPage/posts.css",
2018-02-02 05:43:26 +00:00
//Post page
"css/pages/postPage/main.css",
2018-02-02 05:56:52 +00:00
2018-05-13 12:06:32 +00:00
//Conversations page
"css/pages/conversations/main.css",
"css/pages/conversations/listPane.css",
"css/pages/conversations/conversation.css",
2018-05-13 12:06:32 +00:00
2018-07-02 06:07:59 +00:00
//Groups page
//Groups pages
"css/pages/groups/pages/main.css",
"css/pages/groups/pages/create.css",
2018-07-03 09:45:57 +00:00
"css/pages/groups/pages/group.css",
2018-07-04 04:05:14 +00:00
"css/pages/groups/pages/settings.css",
2018-07-07 13:27:27 +00:00
"css/pages/groups/pages/members.css",
"css/pages/groups/pages/forbidden.css",
2018-07-03 09:45:57 +00:00
//Groups sections
"css/pages/groups/sections/header.css",
2018-07-05 11:37:56 +00:00
"css/pages/groups/sections/membershipBlock.css",
2018-07-17 07:23:44 +00:00
"css/pages/groups/sections/posts.css",
2018-07-03 09:45:57 +00:00
2018-07-02 06:07:59 +00:00
2018-04-16 16:44:13 +00:00
//Settings page
//Sections sections
"css/pages/settings/sections/general.css",
2018-08-15 06:51:02 +00:00
"css/pages/settings/sections/language.css",
"css/pages/settings/sections/customEmojis.css",
2018-04-18 16:11:45 +00:00
"css/pages/settings/sections/security.css",
"css/pages/settings/sections/password.css",
"css/pages/settings/sections/globalLogout.css",
"css/pages/settings/sections/accountImage.css",
2018-05-09 10:18:28 +00:00
"css/pages/settings/sections/privacy.css",
2018-04-16 16:44:13 +00:00
2018-02-02 05:56:52 +00:00
//Latest post page stylesheet
"css/pages/latestPosts/main.css",
2018-04-11 08:10:11 +00:00
2018-04-12 14:17:41 +00:00
//User account page
"css/pages/settings/main.css",
2018-04-11 08:10:11 +00:00
//Create account page
"css/pages/createAccount.css",
2018-05-21 08:05:32 +00:00
//Password forgotten page
"css/pages/passwordForgotten/main.css",
2018-05-23 19:14:54 +00:00
"css/pages/passwordForgotten/promptOption.css",
2018-05-26 13:50:33 +00:00
"css/pages/passwordForgotten/mailAdmin.css",
//Password reset page
2018-07-31 11:53:57 +00:00
"css/pages/resetPassword/main.css",
//Search page
"css/pages/search/main.css"
2018-01-02 17:48:39 +00:00
);
/**
* Application JS files
*/
const APP_JS = array(
//Utilities
"js/common/utils.js",
"js/common/customEvents.js",
2018-01-02 17:48:39 +00:00
//Functions schema
"js/common/functionsSchema.js",
//Pages list
"js/pagesList.js",
//App scripts -- common scripts
"js/common/cacheManager.js",
"js/common/network.js",
"js/common/api.js",
"js/common/errors.js",
"js/common/messages.js",
"js/common/langs.js",
"js/common/url.js",
"js/common/jsFiles.js",
"js/common/debug.js",
"js/common/page.js",
"js/common/pageTitle.js",
2018-01-02 17:48:39 +00:00
"js/common/notifications.js",
"js/common/formChecker.js",
"js/common/date.js",
"js/common/system.js",
"js/common/ServerConfig.js",
2019-01-26 15:46:36 +00:00
array("path" => "js/common/songPlayer.js", "uglifyjs" => false),
2020-03-29 16:04:50 +00:00
array("path" => "js/common/ws.js", "uglifyjs" => false),
2018-01-02 17:48:39 +00:00
2018-02-04 08:25:04 +00:00
//Languages
2018-01-02 17:48:39 +00:00
"js/langs/en.inc.js",
2018-02-04 08:25:04 +00:00
"js/langs/fr.inc.js",
2018-01-02 17:48:39 +00:00
//Components
//Account component
"js/components/account/interface.js",
2018-05-13 14:52:19 +00:00
//Account export
"js/components/account/export/ui.js",
"js/components/account/export/worker.js",
2018-01-02 17:48:39 +00:00
//Mail caching
"js/components/mailCaching.js",
2018-01-02 17:48:39 +00:00
//Search form
"js/components/search/interface.js",
"js/components/search/form.js",
"js/components/search/ui.js",
"js/components/search/utils.js",
//Settings
"js/components/settings/interface.js",
"js/components/settings/helper.js",
2018-01-02 17:48:39 +00:00
//Main menubar
"js/components/menuBar/common.js",
"js/components/menuBar/notAuthenticated.js",
"js/components/menuBar/authenticated.js",
2018-04-08 13:16:32 +00:00
2019-05-11 14:43:55 +00:00
// Main side bar
"js/components/sidebar/main.js",
2018-04-08 13:16:32 +00:00
//Bottom view
"js/components/bottom/links.js",
2018-04-08 13:16:32 +00:00
"js/components/bottom/main.js",
2018-04-08 13:38:11 +00:00
//Language picker
"js/components/languagePicker.js",
2018-01-02 17:48:39 +00:00
//Friends components
"js/components/friends/friendsList.js",
"js/components/friends/friendsBar.js",
"js/components/friends/ui.js",
2018-03-05 17:50:56 +00:00
"js/components/friends/listModal.js",
2018-03-07 16:53:26 +00:00
"js/components/friends/interface.js",
2018-03-07 18:42:18 +00:00
"js/components/friends/utils.js",
"js/components/friends/actions.js",
2018-01-02 17:48:39 +00:00
//Private conversations
"js/components/conversations/manager.js",
"js/components/conversations/list.js",
"js/components/conversations/windows.js",
"js/components/conversations/chatWindows.js",
"js/components/conversations/interface.js",
"js/components/conversations/service.js",
"js/components/conversations/cachingOpened.js",
"js/components/conversations/utils.js",
"js/components/conversations/unreadDropdown.js",
"js/components/conversations/messageEditor.js",
"js/components/conversations/writingNotifier.js",
2018-01-02 17:48:39 +00:00
//User selector
"js/components/userSelect/userSelect.js",
//Emojies
"js/components/emoji/parser.js",
"js/components/emoji/list.js",
2018-04-20 13:40:09 +00:00
"js/components/emoji/picker.js",
2018-01-02 17:48:39 +00:00
//Like button
"js/components/like/button.js",
"js/components/like/interface.js",
//Posts component
2018-01-16 05:52:01 +00:00
"js/components/posts/actions.js",
"js/components/posts/visibilityLevels.js",
2018-01-02 17:48:39 +00:00
"js/components/posts/interface.js",
"js/components/posts/ui.js",
2018-01-04 17:51:49 +00:00
"js/components/posts/form.js",
"js/components/posts/edit.js",
2019-05-19 15:16:18 +00:00
"js/components/posts/targetPicker.js",
2018-01-02 17:48:39 +00:00
2018-01-18 05:53:00 +00:00
//Comments component
"js/components/comments/ui.js",
2018-01-27 17:49:05 +00:00
"js/components/comments/actions.js",
2018-01-18 05:53:00 +00:00
"js/components/comments/interface.js",
2018-01-28 16:03:54 +00:00
"js/components/comments/form.js",
"js/components/comments/editor.js",
2018-01-18 05:53:00 +00:00
"js/components/comments/utils.js",
2018-01-02 17:48:39 +00:00
//Modern textarea handler
"js/components/textarea.js",
2018-05-03 20:05:06 +00:00
//Comunic custom text parser
"js/components/textParser.js",
2018-01-03 12:38:06 +00:00
//Countdown timer
"js/components/countdown.js",
2018-02-18 18:12:17 +00:00
//Notifications
"js/components/notifications/dropdown.js",
2018-02-19 08:39:00 +00:00
"js/components/notifications/service.js",
"js/components/notifications/interface.js",
"js/components/notifications/song.js",
2018-02-19 14:14:49 +00:00
"js/components/notifications/ui.js",
"js/components/notifications/utils.js",
2018-02-18 18:12:17 +00:00
//Groups component
"js/components/groups/interface.js",
2018-07-07 13:27:27 +00:00
"js/components/groups/utils.js",
"js/components/groups/info.js",
"js/components/groups/GroupsList.js",
//Virtual directory component
"js/components/virtualDirectory/interface.js",
2019-01-10 14:44:39 +00:00
//Dark theme component
"js/components/darkTheme.js",
2019-01-11 13:50:06 +00:00
//Incognito mode component
"js/components/incognito/ui.js",
"js/components/incognito/management.js",
"js/components/incognito/keyboard.js",
2020-04-10 09:17:10 +00:00
//Calls component
2020-04-10 09:24:46 +00:00
"js/components/calls/controller.js",
2020-04-10 11:18:26 +00:00
"js/components/calls/window.js",
2019-05-16 13:48:50 +00:00
// Web app component
"js/components/webApp/interface.js",
2019-01-11 15:34:43 +00:00
//Pacman component (easter egg)
"js/components/pacman.js",
// Manon
2021-03-06 10:09:59 +00:00
//"js/components/manon.js",
2019-01-11 15:34:43 +00:00
// Password input
"js/components/passwordInput.js",
2021-03-06 10:19:17 +00:00
// Small media player
"js/components/smallMediaPlayer.js",
2021-03-06 10:09:59 +00:00
2018-01-02 17:48:39 +00:00
//User scripts
"js/user/loginTokens.js",
"js/user/userLogin.js",
"js/user/userInfos.js",
2019-05-19 14:30:20 +00:00
"js/user/usersList.js",
2018-01-02 17:48:39 +00:00
//Pages scripts
//Home page
"js/pages/home/home.js",
"js/pages/home/landingPage.js",
//User page
"js/pages/userPage/main.js",
"js/pages/userPage/accessForbidden.js",
"js/pages/userPage/friendshipStatus.js",
"js/pages/userPage/profileInfos.js",
"js/pages/userPage/posts.js",
2018-02-01 05:57:01 +00:00
//Post page
"js/pages/postPage/main.js",
2018-07-02 06:07:59 +00:00
2018-02-02 05:56:52 +00:00
//Latest posts page
"js/pages/latestPosts/main.js",
2018-05-13 12:06:32 +00:00
//Conversations page
"js/pages/conversations/main.js",
"js/pages/conversations/listPane.js",
"js/pages/conversations/conversation.js",
"js/pages/conversations/utils.js",
2018-05-13 12:06:32 +00:00
2018-07-02 06:07:59 +00:00
//Groups page
"js/pages/groups/main.js",
//Groups sub pages
"js/pages/groups/pages/main.js",
"js/pages/groups/pages/create.js",
2018-07-03 09:45:57 +00:00
"js/pages/groups/pages/group.js",
2018-07-04 04:05:14 +00:00
"js/pages/groups/pages/settings.js",
2018-07-07 13:27:27 +00:00
"js/pages/groups/pages/members.js",
"js/pages/groups/pages/forbidden.js",
2018-07-03 09:45:57 +00:00
//Groups sections
"js/pages/groups/sections/header.js",
"js/pages/groups/sections/membershipBlock.js",
2018-07-17 07:23:44 +00:00
"js/pages/groups/sections/posts.js",
2018-07-19 12:34:19 +00:00
"js/pages/groups/sections/followBlock.js",
2018-07-03 09:45:57 +00:00
2018-07-02 06:07:59 +00:00
2018-04-12 14:17:41 +00:00
//User settings page
"js/pages/settings/main.js",
"js/pages/settings/navigationPane.js",
2018-04-13 17:00:49 +00:00
"js/pages/settings/sectionsList.js",
2018-04-13 17:00:49 +00:00
//Settings sections
"js/pages/settings/sections/general.js",
2018-08-15 06:51:02 +00:00
"js/pages/settings/sections/language.js",
"js/pages/settings/sections/emojis.js",
2018-04-18 16:11:45 +00:00
"js/pages/settings/sections/security.js",
"js/pages/settings/sections/password.js",
"js/pages/settings/sections/globalLogout.js",
"js/pages/settings/sections/accountImage.js",
2018-05-09 10:18:28 +00:00
"js/pages/settings/sections/privacy.js",
2018-04-12 14:17:41 +00:00
2018-01-02 17:48:39 +00:00
//Login page
"js/pages/login.js",
2018-04-11 08:10:11 +00:00
//Create account page
"js/pages/createAccount.js",
2018-04-11 10:25:50 +00:00
"js/pages/accountCreated.js",
2018-05-21 08:05:32 +00:00
//Password forgotten page
"js/pages/passwordForgotten/main.js",
2018-05-21 08:40:44 +00:00
"js/pages/passwordForgotten/promptEmail.js",
"js/pages/passwordForgotten/promptOption.js",
2018-05-23 19:14:54 +00:00
"js/pages/passwordForgotten/mailAdmin.js",
"js/pages/passwordForgotten/promptSecurityQuestions.js",
2018-01-02 17:48:39 +00:00
2018-05-26 13:50:33 +00:00
//Reset password page
"js/pages/resetPassword/main.js",
2018-01-02 17:48:39 +00:00
//Logout page
"js/pages/logout.js",
//Virtual directory page
"js/pages/virtualDirectory/page.js",
2018-07-31 11:53:57 +00:00
//Search page
"js/pages/search/main.js",
2018-01-02 17:48:39 +00:00
//Create shortcuts for common functions
"js/common/shorcuts.js",
"js/common/helpers.js",
//Init script
"js/init.js",
);
/**
* Language settings
*/
const LANGUAGE_PATH = "js/langs/";
const DEFAULT_LANGUAGE = "en";
/**
* Templates settings
*/
const TEMPLATES_PATH = "templates/";
}