forked from MapComplete/MapComplete
Small fixes and cleanup of package scripts
This commit is contained in:
parent
630bcd8dad
commit
220d65ef85
4 changed files with 15 additions and 48 deletions
|
@ -1,34 +0,0 @@
|
|||
import {FixedUiElement} from "./Base/FixedUiElement";
|
||||
import Combine from "./Base/Combine";
|
||||
import MoreScreen from "./BigComponents/MoreScreen";
|
||||
import Translations from "./i18n/Translations";
|
||||
import Constants from "../Models/Constants";
|
||||
import UserRelatedState from "../Logic/State/UserRelatedState";
|
||||
import {Utils} from "../Utils";
|
||||
import LanguagePicker from "./LanguagePicker";
|
||||
import IndexText from "./BigComponents/IndexText";
|
||||
import FeaturedMessage from "./BigComponents/FeaturedMessage";
|
||||
|
||||
export default class Professional {
|
||||
constructor() {
|
||||
new FixedUiElement("").AttachTo("centermessage")
|
||||
|
||||
const state = new UserRelatedState(undefined);
|
||||
const intro = new Combine([
|
||||
LanguagePicker.CreateLanguagePicker(Translations.t.index.title.SupportedLanguages())
|
||||
.SetClass("absolute top-2 right-3"),
|
||||
new IndexText()
|
||||
]);
|
||||
new Combine([
|
||||
intro,
|
||||
new FeaturedMessage(),
|
||||
new MoreScreen(state, true),
|
||||
Translations.t.general.aboutMapcomplete
|
||||
.Subs({"osmcha_link": Utils.OsmChaLinkFor(7)})
|
||||
.SetClass("link-underline"),
|
||||
new FixedUiElement("v" + Constants.vNumber)
|
||||
]).SetClass("block m-5 lg:w-3/4 lg:ml-40")
|
||||
.SetStyle("pointer-events: all;")
|
||||
.AttachTo("topleft-tools");
|
||||
}
|
||||
}
|
|
@ -97,7 +97,7 @@ export default class ProfessionalGui {
|
|||
Svg.back_svg().SetStyle("height: 1.5rem;"),
|
||||
t.backToMapcomplete,
|
||||
{
|
||||
url: window.location.host + "/index.html"
|
||||
url: "./index.html"
|
||||
}
|
||||
)]).SetClass("block")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue