Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Category: Feature
Overview
Adds several new attributes into the config (under
appConfig.hideComponents
) to enable users to disable components that they do not need or want. This includes: Heading, Nav menu, Search bar, Settings box and footer. Also moved the splash screen attr into this object for consistency. All components are visible by default, but the user can disable those they don't want on a per-component basis, using these options. Because of this, the update will not have any effect on users, until they add these values into their config file.As well as the feature, I've also refactored the Config Accumulator, turning it from a series of functions, into a Class. This improves efficiency, as the config file is only processed once (when the class is initiated), rather than one time for each call.
Issue Number N/A
New Vars (if applicable)
A new (optional) object variable called
hideComponents
has been added underappConfig
. This includes the following fields:hideHeading
boolean
true
, the page title & sub-title will not be visible. Defaults tofalse
hideNav
boolean
true
, the navigation menu will not be visible. Defaults tofalse
hideSearch
boolean
true
, the search bar will not be visible. Defaults tofalse
hideSettings
boolean
true
, the settings menu will not be visible. Defaults tofalse
hideFooter
boolean
true
, the footer will not be visible. Defaults tofalse
hideSplashScreen
boolean
true
, splash screen will not be visible while the app loads. Defaults totrue
(except on first load, when the loading screen is always shown)Screenshot: N/A
Code Quality Checklist (Please complete)