From e0e13475490b94d28639be80d55f323aefa34277 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@gmail.com> Date: Tue, 12 May 2020 17:38:09 +0200 Subject: [PATCH] add <<includeDOM>> to replace App.UI.DOM.includeDOM() --- src/Mods/SecExp/attackOptions.tw | 4 +-- src/Mods/SecExp/buildings/secBarracks.tw | 2 +- src/arcologyBuilding/cell.tw | 2 +- src/events/intro/introSummary.tw | 22 ++++++++-------- src/events/intro/takeoverTarget.tw | 2 +- src/gui/Encyclopedia/encyclopedia.tw | 22 ++++++++-------- src/js/utilsDOM.js | 12 +++++++++ src/npc/startingGirls/startingGirls.tw | 8 +++--- src/uncategorized/costsBudget.tw | 2 +- src/uncategorized/descriptionOptions.tw | 2 +- src/uncategorized/manageArcology.tw | 2 +- src/uncategorized/options.tw | 32 ++++++++++++------------ src/uncategorized/repBudget.tw | 2 +- src/uncategorized/summaryOptions.tw | 4 +-- 14 files changed, 65 insertions(+), 53 deletions(-) diff --git a/src/Mods/SecExp/attackOptions.tw b/src/Mods/SecExp/attackOptions.tw index a35834ca227..926c27574dd 100644 --- a/src/Mods/SecExp/attackOptions.tw +++ b/src/Mods/SecExp/attackOptions.tw @@ -8,7 +8,7 @@ <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Unit descriptions are", "unitDescriptions", $SecExp.settings) .addValueList([["Abbreviated", 1], ["Summarized", 0]])>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> <br> @@ -402,7 +402,7 @@ __Battle Plan__: <<run _options.addOption("The incoming attack's scale warrants deploying the special force.", "SFIntervention") .addValue("Green light", 1).on().addValue("Red light", 0).off() .addComment("Some upgrades will be able to support your troops even if the special force is not deployed in the fight.")>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <</if>> <<if $lastSelection.length > 0>> <br> diff --git a/src/Mods/SecExp/buildings/secBarracks.tw b/src/Mods/SecExp/buildings/secBarracks.tw index 2e922fded69..92cbb8d3976 100644 --- a/src/Mods/SecExp/buildings/secBarracks.tw +++ b/src/Mods/SecExp/buildings/secBarracks.tw @@ -130,7 +130,7 @@ Your current maximum number of units is <<print App.SecExp.battle.maxUnits()>> ( <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("Unit descriptions are", "unitDescriptions", $SecExp.settings) .addValue("Abbreviated", 1).on().addValue("Summarized", 0).off()>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> <<if App.SecExp.battle.activeUnits() >= App.SecExp.battle.maxUnits()>> <br>You have reached the maximum number of units. You'll have to disband one or enlarge the barracks before forming a new unit. <</if>> diff --git a/src/arcologyBuilding/cell.tw b/src/arcologyBuilding/cell.tw index 87d3126b7b7..aa51dc8caa3 100644 --- a/src/arcologyBuilding/cell.tw +++ b/src/arcologyBuilding/cell.tw @@ -2,4 +2,4 @@ <<set $nextButton = "Back", $nextLink = "Main">> -<<print App.UI.DOM.includeDOM(V.building.renderCell(V.cellPath))>> +<<includeDOM V.building.renderCell(V.cellPath)>> diff --git a/src/events/intro/introSummary.tw b/src/events/intro/introSummary.tw index 5ec5ef731d8..9abbd5f387e 100644 --- a/src/events/intro/introSummary.tw +++ b/src/events/intro/introSummary.tw @@ -119,7 +119,7 @@ You may review your settings before clicking "Continue" to begin.<br> <<run _options.addOption("Economic Tabs on weekly reports are", "useTabs") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Images</h2> <<set _options = new App.UI.OptionsGroup()>> @@ -127,7 +127,7 @@ You may review your settings before clicking "Continue" to begin.<br> <<run _options.addOption("Images are", "seeImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <<if $seeImages > 0>> <div class="imageRef" style="width:200px;height:200px;margin-left:50px;"> @@ -177,7 +177,7 @@ You may review your settings before clicking "Continue" to begin.<br> <<run _options.addOption("Slave images in the weekly report are", "seeReportImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <</if>> </div> </div> @@ -259,7 +259,7 @@ You may review your settings before clicking "Continue" to begin.<br> .addValue("Enable non-erotic events", 1).on().customDescription("Game mode: ''two-handed''. Includes non-erotic events concerning the changing world.") .addValue("Disable non-erotic events", 0).off().customDescription("Game mode: ''one-handed''. No non-erotic events concerning the changing world.")>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>The Free City</h2> <<set _options = new App.UI.OptionsGroup()>> @@ -302,7 +302,7 @@ You may review your settings before clicking "Continue" to begin.<br> <<run _options.addOption("The Free City could develop as many as ''$FSCreditCount'' future societies.", "FSCreditCount") .showTextBox().addComment("5 is default, 4 behaves the same as pre-patch 0.9.9.0, max is 7. This option cannot be changed during the game.")>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Content</h2> <<set _options = new App.UI.OptionsGroup()>> @@ -355,7 +355,7 @@ You may review your settings before clicking "Continue" to begin.<br> .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Mods</h2> <<set _options = new App.UI.OptionsGroup()>> @@ -373,7 +373,7 @@ You may review your settings before clicking "Continue" to begin.<br> <<run _options.addOption("The Security Expansion Mod is", "secExpEnabled").addComment("This mod introduces security and crime in the arcology, as well as attacks and battles.") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> </div> @@ -425,7 +425,7 @@ You may review your settings before clicking "Continue" to begin.<br> <<run _options.addOption("Slaves with fat lips or heavy oral piercings may lisp", "disableLisping") .addValue("Yes", 0).on().addValue("No", 1).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Age</h2> <<set _options = new App.UI.OptionsGroup()>> @@ -461,7 +461,7 @@ You may review your settings before clicking "Continue" to begin.<br> <<run _options.addOption("Children growing as they age is", "loliGrow") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> </div> @@ -591,7 +591,7 @@ You may review your settings before clicking "Continue" to begin.<br> ["Blind luck", "luck"]] )>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Sexuality</h2> <<set _options = new App.UI.OptionsGroup()>> @@ -673,7 +673,7 @@ You may review your settings before clicking "Continue" to begin.<br> .addValueList([["All natural", 0], ["Fake", 400]])>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <<else>> You are a diff --git a/src/events/intro/takeoverTarget.tw b/src/events/intro/takeoverTarget.tw index 231ec44ca00..4d59a6556e3 100644 --- a/src/events/intro/takeoverTarget.tw +++ b/src/events/intro/takeoverTarget.tw @@ -43,4 +43,4 @@ </div> </div> -<<print App.UI.DOM.includeDOM(App.Intro.generateEstablishedArcologies(), "list")>> +<<includeDOM App.Intro.generateEstablishedArcologies()>> diff --git a/src/gui/Encyclopedia/encyclopedia.tw b/src/gui/Encyclopedia/encyclopedia.tw index 5c6fa56fe2b..5cda07d18f5 100644 --- a/src/gui/Encyclopedia/encyclopedia.tw +++ b/src/gui/Encyclopedia/encyclopedia.tw @@ -867,56 +867,56 @@ SLAVE ASSIGNMENTS: SLAVE ASSIGNMENTS (COMMON): **********/ <<case "Attending Classes">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.attendingClasses(), "encyclasses")>> + <<includeDOM App.Encyclopedia.Entries.attendingClasses()>> //Associated facility: [[Schoolroom|Encyclopedia][$encyclopedia = "Schoolroom"]]// <<case "Confinement">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.confinement(), "encyconfine")>> + <<includeDOM App.Encyclopedia.Entries.confinement()>> //Associated facility: [[Cellblock|Encyclopedia][$encyclopedia = "Cellblock"]]// <<case "Fucktoy">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.fucktoy(), "encyfucktoy")>> + <<includeDOM App.Encyclopedia.Entries.fucktoy()>> //Associated facility: [[Master Suite|Encyclopedia][$encyclopedia = "Master Suite"]]// <<case "Glory Hole">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.gloryHole(), "encyglory")>> + <<includeDOM App.Encyclopedia.Entries.gloryHole()>> //Associated facility: [[Arcade|Encyclopedia][$encyclopedia = "Arcade"]]// <<case "Milking">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.milking(), "encymilk")>> + <<includeDOM App.Encyclopedia.Entries.milking()>> //Associated facility: [[Dairy|Encyclopedia][$encyclopedia = "Dairy"]]// <<case "Farming">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.farming(), "encyfarm")>> + <<includeDOM App.Encyclopedia.Entries.farming()>> //Associated facility: [[Farmyard|Encyclopedia][$encyclopedia = "Farmyard"]]// <<case "Public Service">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.publicService(), "encypublic")>> + <<includeDOM App.Encyclopedia.Entries.publicService()>> //Associated facility: [[Club|Encyclopedia][$encyclopedia = "Club"]]// <<case "Rest">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.rest(), "encyrest")>> + <<includeDOM App.Encyclopedia.Entries.rest()>> //Associated facilities: [[Spa|Encyclopedia][$encyclopedia = "Spa"]], [[Clinic|Encyclopedia][$encyclopedia = "Clinic"]]// <<case "Sexual Servitude">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.sexualServitude(), "encysexServ")>> + <<includeDOM App.Encyclopedia.Entries.sexualServitude()>> <<case "Servitude">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.servitude(), "encyserve")>> + <<includeDOM App.Encyclopedia.Entries.servitude()>> //Associated facility: [[Servants' Quarters|Encyclopedia][$encyclopedia = "Servants' Quarters"]]// <<case "Whoring">> - <<print App.UI.DOM.includeDOM(App.Encyclopedia.Entries.whoring(), "encywhore")>> + <<includeDOM App.Encyclopedia.Entries.whoring()>> //Associated facility: [[Brothel|Encyclopedia][$encyclopedia = "Brothel"]]// /********** diff --git a/src/js/utilsDOM.js b/src/js/utilsDOM.js index 967c6d1587e..2a87caf769a 100644 --- a/src/js/utilsDOM.js +++ b/src/js/utilsDOM.js @@ -356,3 +356,15 @@ App.UI.DOM.generateLinksStrip = function(links) { }, strip); return strip; }; + +/* + <<includeDOM element>> + Simply inserts a given DOM element. + */ +Macro.add("includeDOM", { + handler() { + // When given a function that expects a specific context (eg, called like "foo.bar()"), SC will screw it up and + // execute it in a different context. Putting the expanded argument through eval retains the context. + this.output.append(eval(this.args.full)); + } +}); diff --git a/src/npc/startingGirls/startingGirls.tw b/src/npc/startingGirls/startingGirls.tw index e605307ccf6..0223876a610 100644 --- a/src/npc/startingGirls/startingGirls.tw +++ b/src/npc/startingGirls/startingGirls.tw @@ -511,7 +511,7 @@ <<run _options.addOption("Education", "intelligenceImplant", $activeSlave) .addValueList([["Uneducated", 0], ["Educated", 15], ["Well educated", 30]])>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> </div> @@ -878,7 +878,7 @@ .addValue("Amputated", false, () => V.activeSlave.leg.right = null)>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> </div> @@ -972,7 +972,7 @@ ["Romantic", "romantic"]])>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> </div> @@ -1044,7 +1044,7 @@ <<run _options.addOption("").addComment(`<span class="warning">${_comment}</span>`)>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> </div> diff --git a/src/uncategorized/costsBudget.tw b/src/uncategorized/costsBudget.tw index 2ac4ee73c50..2f019b3ac1c 100644 --- a/src/uncategorized/costsBudget.tw +++ b/src/uncategorized/costsBudget.tw @@ -80,7 +80,7 @@ <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("", "costsBudget", $showAllEntries) .addValue("Normal", 0).on().addValue("Show Empty Entries", 1).neutral()>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> <p> /* Table of Totals */ diff --git a/src/uncategorized/descriptionOptions.tw b/src/uncategorized/descriptionOptions.tw index d25696f3231..19a45f677ea 100644 --- a/src/uncategorized/descriptionOptions.tw +++ b/src/uncategorized/descriptionOptions.tw @@ -71,4 +71,4 @@ .addValue("Default (20)", 20).showTextBox()>> <</if>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> diff --git a/src/uncategorized/manageArcology.tw b/src/uncategorized/manageArcology.tw index d8fd49b3ded..1cbbde4aad1 100644 --- a/src/uncategorized/manageArcology.tw +++ b/src/uncategorized/manageArcology.tw @@ -79,7 +79,7 @@ <span class="note"> The arcology's public areas are fully upgraded. </span> - <<= App.UI.DOM.includeDOM(App.Arcology.upgrades($building))>> + <<includeDOM App.Arcology.upgrades($building)>> <</if>> </div> diff --git a/src/uncategorized/options.tw b/src/uncategorized/options.tw index e090317a168..31bd7df827b 100644 --- a/src/uncategorized/options.tw +++ b/src/uncategorized/options.tw @@ -29,7 +29,7 @@ <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("End of week autosaving is currently", "autosave") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> <br> This save was created using FC version $ver build $releaseID. @@ -113,7 +113,7 @@ This save was created using FC version $ver build $releaseID. .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("This will comma-format numbers in some areas.")>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>General</h2> @@ -161,7 +161,7 @@ This save was created using FC version $ver build $releaseID. <<run _options.addOption("Line separations are", "lineSeparations") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Sidebar</h2> @@ -204,7 +204,7 @@ This save was created using FC version $ver build $releaseID. .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Images</h2> @@ -213,7 +213,7 @@ This save was created using FC version $ver build $releaseID. <<run _options.addOption("Images are", "seeImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <<if $seeImages > 0>> <div class="imageRef" style="width:200px;height:200px;margin-left:50px;"> @@ -263,7 +263,7 @@ This save was created using FC version $ver build $releaseID. <<run _options.addOption("Slave images in the weekly report are", "seeReportImages") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <</if>> </div> </div> @@ -341,7 +341,7 @@ This save was created using FC version $ver build $releaseID. <<run _options.addOption("Missing slave names are currently", "showMissingSlaves") .addValue("Enabled", true).on().addValue("Disabled", false).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Intersecting mechanics</h2> @@ -355,7 +355,7 @@ This save was created using FC version $ver build $releaseID. .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("If enabled, curatives have a chance to give slaves harmful side effects.")>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Flavour</h2> @@ -386,7 +386,7 @@ This save was created using FC version $ver build $releaseID. <<run _options.addOption("Distant relatives such as aunts, nieces and cousins are", "showDistantRelatives") .addValue("Enabled", 1).on().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> </div> @@ -412,7 +412,7 @@ This save was created using FC version $ver build $releaseID. .addComment("<div>The mod can be activated in any moment, but it may result in unbalanced gameplay if activated very late in the game.</div> <div>''If you are enabling the mod mid game for the first time, run the either the main or mod specific BC option listed near the top.''</div>")>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <<if $secExpEnabled > 0>> <h2>Security Expansion mod options</h2> @@ -491,7 +491,7 @@ This save was created using FC version $ver build $releaseID. .addValue("Yes", 1).on().addValue("No", 0).off()>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <div class="subHeading"> <<if $debugMode || $cheatMode || $cheatModeM>> @@ -656,7 +656,7 @@ This save was created using FC version $ver build $releaseID. .addValue("Enabled", 1).on().addValue("Disabled", 0).off() .addComment("Outputs performance data at the bottom of every passage.")>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <h2>Cheating</h2> @@ -667,7 +667,7 @@ This save was created using FC version $ver build $releaseID. .addComment("This will allow manual selection of events and unlock some options that would usually be restricted by progress.")>> <<if $cheatMode === 0>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <<else>> <<run _options.addOption("Sidebar Cheats are currently", "cheatModeM") .addValue("Shown", 1).on().addValue("Hidden", 0).off()>> @@ -675,7 +675,7 @@ This save was created using FC version $ver build $releaseID. <<run _options.addOption("Slave aging", "seeAge") .addValue("Enabled", 1).on().addValue("Celebrate birthdays, but don't age.", 2).neutral().addValue("Disabled", 0).off()>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> <div class="scLink2"> [[Add 100000 money|Options][$cheater = 1, cashX(100000, "cheating")]] | [[Add 10000 rep|Options][$cheater = 1, repX(10000, "cheating")]] //Cheating will be flagged in your save// @@ -736,7 +736,7 @@ This save was created using FC version $ver build $releaseID. <p> UI theme selector. Allows to select a single CSS file to be loaded. <span class="red">The file has to be located in the same directory as the HTML file otherwise it will simply not load at all.</span> - <<print App.UI.DOM.includeDOM(App.UI.Theme.selector(), "themeSelector")>> + <<includeDOM App.UI.Theme.selector(), "themeSelector">> </p> <<set _options = new App.UI.OptionsGroup()>> @@ -763,5 +763,5 @@ This save was created using FC version $ver build $releaseID. .addComment("This will enable a controversial but very broken event. Warning: Snuff, cannibalism.")>> <</if>> - <<print App.UI.DOM.includeDOM(_options.render())>> + <<includeDOM _options.render()>> </div> diff --git a/src/uncategorized/repBudget.tw b/src/uncategorized/repBudget.tw index 7e5cbc4f78e..ce03bf981b2 100644 --- a/src/uncategorized/repBudget.tw +++ b/src/uncategorized/repBudget.tw @@ -24,7 +24,7 @@ <<set _options = new App.UI.OptionsGroup()>> <<run _options.addOption("", "repBudget", $showAllEntries) .addValue("Normal", 0).on().addValue("Show Empty Entries", 1).neutral()>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> /* Table of Totals */ <<if ndef $lastWeeksRepIncome>> diff --git a/src/uncategorized/summaryOptions.tw b/src/uncategorized/summaryOptions.tw index 33378dbd662..4999d533ca7 100644 --- a/src/uncategorized/summaryOptions.tw +++ b/src/uncategorized/summaryOptions.tw @@ -39,7 +39,7 @@ ["How old they look", "visualAge"], ["Age of their body", "physicalAge"], ["Assignment", "assignment"], ["Weekly Income", "weeklyIncome"]])>> <</if>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> <h2>Individual panels</h2> Sample summary: @@ -67,7 +67,7 @@ Sample summary: .addValue("Shown", true).on().addValue("Hidden", false).off()>> <</if>> -<<print App.UI.DOM.includeDOM(_options.render())>> +<<includeDOM _options.render()>> <p style="font-style:italic"> [[FC Dev's preferred options|Summary Options ][$seeDesk = 0, $seeFCNN = 0, $sortSlavesBy = "devotion",$sortSlavesOrder = "descending",$sortSlavesMain = 0,$rulesAssistantMain = 1, $UI.slaveSummary.abbreviation = {devotion: 1, mental: 1, rules: 1, clothes: 2, health: 1, diet: 1, drugs: 1, hormoneBalance: 1, race: 1, genitalia: 1, physicals: 1, skills: 1, nationality: 1, rulesets: 1, clothes: 0, origins: 0} ,$abbreviateSidebar = 1]] -- GitLab