Add attribution script and some attributions

This commit is contained in:
Pieter Vander Vennet 2021-04-07 01:32:39 +02:00
parent 99b0f937b7
commit 0fea2c87cd
11 changed files with 223 additions and 8 deletions

View file

@ -0,0 +1,26 @@
import {UIElement} from "../UIElement";
import Combine from "../Base/Combine";
import Translations from "../i18n/Translations";
import Attribution from "./Attribution";
import State from "../../State";
import {UIEventSource} from "../../Logic/UIEventSource";
import LayoutConfig from "../../Customizations/JSON/LayoutConfig";
import {FixedUiElement} from "../Base/FixedUiElement";
/**
* The attribution panel shown on mobile
*/
export default class AttributionPanel extends Combine {
constructor(layoutToUse: UIEventSource<LayoutConfig>) {
super([
Translations.t.general.attribution.attributionContent,
Translations.t.general.attribution.themeBy.Subs({author: layoutToUse.data.maintainer}),
"<br/>",
new Attribution(undefined, undefined, State.state.layoutToUse, undefined),
"<br/>",
"<h4>", Translations.t.general.attribution.iconAttribution.title, "</h4>"
]);
}
}