From 431ebbd5e40cdae5326bcd631d9e086cfa4eae1e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 May 2023 17:13:57 +0200 Subject: Migrate deprecated accordion component --- .../instance-about-accordion.component.html | 196 ++++++++++++--------- .../instance-about-accordion.component.ts | 4 +- 2 files changed, 118 insertions(+), 82 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.html b/client/src/app/shared/shared-instance/instance-about-accordion.component.html index ac8c01856..5c679685b 100644 --- a/client/src/app/shared/shared-instance/instance-about-accordion.component.html +++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.html @@ -2,91 +2,127 @@
{{ about?.instance.shortDescription }}
- - - - +
+
+
+ +
- - - - +
+
+ + + +
+
+
- - - - - Administrators & Sustainability - - - -
- Who are we? -
+
+
+ +
+ +
+
+ +
+ Who are we? +
+
+ +
+ How long do we plan to maintain this instance? +
+
+ +
+ How will we finance this instance? +
+
+
- -
- How long do we plan to maintain this instance? -
+
+
+ +
+
+ +
+ +
+
+ +
+
- -
- How will we finance this instance? -
+
+
+ +
+
+ +
+ +
+
+ +
+
- - - - - - - - {{ getTermsTitle() }} - - - -
-
-
- - - - - - Moderation information - - - -
-
-
- - - - - - Code of conduct - - - -
-
-
- - - - - - {{ pluginPanel.title }} - - - -
-
-
+
+
+ +
+
+ +
+ +
+
+ +
+
+
+
+
+ +
+
+ +
+ +
+
+ +
+
+
+
+
- +
diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.ts b/client/src/app/shared/shared-instance/instance-about-accordion.component.ts index e13703c03..e299a64a3 100644 --- a/client/src/app/shared/shared-instance/instance-about-accordion.component.ts +++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.ts @@ -1,6 +1,6 @@ import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core' import { HooksService, Notifier } from '@app/core' -import { NgbAccordion } from '@ng-bootstrap/ng-bootstrap' +import { NgbAccordionDirective } from '@ng-bootstrap/ng-bootstrap' import { ClientFilterHookName, PluginClientScope } from '@shared/models/plugins' import { About } from '@shared/models/server' import { InstanceService } from './instance.service' @@ -11,7 +11,7 @@ import { InstanceService } from './instance.service' styleUrls: [ './instance-about-accordion.component.scss' ] }) export class InstanceAboutAccordionComponent implements OnInit { - @ViewChild('accordion', { static: true }) accordion: NgbAccordion + @ViewChild('accordion', { static: true }) accordion: NgbAccordionDirective @Output() init: EventEmitter = new EventEmitter() -- cgit v1.2.3