diff --git a/layout/pages/drawer/about.xml b/layout/pages/drawer/about.xml
index 91be5356..267d7853 100644
--- a/layout/pages/drawer/about.xml
+++ b/layout/pages/drawer/about.xml
@@ -16,18 +16,8 @@
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/scripts/pages/drawer/about.js b/scripts/pages/drawer/about.js
index 3efc330b..75adbed3 100644
--- a/scripts/pages/drawer/about.js
+++ b/scripts/pages/drawer/about.js
@@ -1,37 +1,14 @@
-const CHANGELOG_FILE_PATH = 'panorama/data/changelog.vdf';
-
class About {
- static sections = {
- /** @type {Panel} @static */
- credits: $('#Credits'),
- /** @type {Panel} @static */
- changelog: $('#Changelog')
- };
+ static credits = $('#Credits');
static onLoad() {
- this.loadChangelog();
-
this.initCreditEvents();
- this.switchSection('credits');
-
$.GetContextPanel().SetDialogVariable('version', MomentumAPI.GetVersionInfo().version);
}
- static switchSection(section) {
- const newSection = this.sections[section];
-
- if (!newSection) return;
-
- if (this.activeSection) this.activeSection.AddClass('about__section--hidden');
-
- newSection.RemoveClass('about__section--hidden');
-
- this.activeSection = newSection;
- }
-
static initCreditEvents() {
- for (const panel of this.sections.credits.FindChildrenWithClassTraverse('about-credits__name')) {
+ for (const panel of this.credits.FindChildrenWithClassTraverse('about-credits__name')) {
const name = panel.GetAttributeString('name', '');
const roles = panel.GetAttributeString('roles', '');
const bio = panel.GetAttributeString('bio', '');
@@ -69,27 +46,4 @@ class About {
panel.SetPanelEvent('onmouseout', () => UiToolkitAPI.HideCustomLayoutTooltip('CreditsTooltip'));
}
}
-
- static loadChangelog() {
- const changelogData = $.LoadKeyValuesFile(CHANGELOG_FILE_PATH);
-
- for (const [version, versionData] of Object.entries(changelogData)) {
- $.CreatePanel('Label', this.sections.changelog, '', {
- class: 'about-changelog__version',
- text: version
- });
-
- for (const [category, categoryData] of Object.entries(versionData)) {
- $.CreatePanel('Label', this.sections.changelog, '', {
- class: 'about-changelog__category',
- text: category
- });
-
- $.CreatePanel('Label', this.sections.changelog, '', {
- class: 'about-changelog__item',
- text: ' • ' + Object.values(categoryData).join('\n • ')
- });
- }
- }
- }
}
diff --git a/styles/pages/drawer/about.scss b/styles/pages/drawer/about.scss
index 5e4dc7f4..06817f9a 100644
--- a/styles/pages/drawer/about.scss
+++ b/styles/pages/drawer/about.scss
@@ -51,10 +51,6 @@
flow-children: down;
overflow: squish scroll;
padding: 16px 24px;
-
- &--hidden {
- visibility: collapse;
- }
}
}
@@ -124,22 +120,3 @@
}
}
}
-
-.about-changelog {
- &__version {
- @include mixin.font-styles($use-header: true);
- font-size: 36px;
- margin-bottom: 6px;
- }
-
- &__category {
- font-size: 18px;
- font-weight: bold;
- margin-left: 4px;
- }
-
- &__item {
- font-size: 14px;
- margin-bottom: 8px;
- }
-}