-
${i18n('oss_code_and_content')}
-
-
+export default {
+ id: 'about',
+ title_i18n_key: 'about',
+ icon: 'logo-outline.svg',
+ html: () => {
+ return `
+
`;
- h += `
`;
+
+
+
+
`;
+ },
+ init: ($el_window) => {
+ // version
+ $.ajax({
+ url: api_origin + "/version",
+ type: 'GET',
+ async: true,
+ contentType: "application/json",
+ headers: {
+ "Authorization": "Bearer " + auth_token
+ },
+ statusCode: {
+ 401: function () {
+ logout();
+ },
+ },
+ success: function (res) {
+ var d = new Date(0);
+ $el_window.find('.version').html('Version: ' + res.version + ' • ' + 'Server: ' + res.location + ' • ' + 'Deployed: ' + new Date(res.deploy_timestamp));
+ }
+ });
- return h;
-}
-export default UITabAbout;
\ No newline at end of file
+ $el_window.find('.credits').on('click', function (e) {
+ if($(e.target).hasClass('credits')){
+ $('.credits').get(0).close();
+ }
+ });
+
+ $el_window.find('.show-credits').on('click', function (e) {
+ $('.credits').get(0).showModal();
+ })
+
+ },
+};
diff --git a/src/UI/Settings/UIWindowSettings.js b/src/UI/Settings/UIWindowSettings.js
index 1b2c9a231..3073f8b04 100644
--- a/src/UI/Settings/UIWindowSettings.js
+++ b/src/UI/Settings/UIWindowSettings.js
@@ -23,7 +23,7 @@ import UIWindowChangeEmail from './UIWindowChangeEmail.js'
import UIWindowChangeUsername from '../UIWindowChangeUsername.js'
import changeLanguage from "../../i18n/i18nChangeLanguage.js"
import UIWindowConfirmUserDeletion from './UIWindowConfirmUserDeletion.js';
-import UITabAbout from './UITabAbout.js';
+import AboutTab from './UITabAbout.js';
import UIWindowThemeDialog from '../UIWindowThemeDialog.js';
import UIWindowManageSessions from '../UIWindowManageSessions.js';
@@ -31,13 +31,24 @@ async function UIWindowSettings(options){
return new Promise(async (resolve) => {
options = options ?? {};
+ const tabs = [
+ AboutTab,
+ // UsageTab,
+ // AccountTab,
+ // PersonalizationTab,
+ // LanguageTab,
+ // ClockTab,
+ ];
+
let h = '';
h += `