mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Update config wording and metadata
This commit is contained in:
parent
73143e63ef
commit
8806469181
3 changed files with 12 additions and 10 deletions
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
// Config Keys
|
// Config Keys
|
||||||
const (
|
const (
|
||||||
CfgDefaultListenAddressKey = "api/listenAddress"
|
CfgDefaultListenAddressKey = "core/listenAddress"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -49,14 +49,14 @@ func registerConfig() error {
|
||||||
ValidationRegex: "^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:[0-9]{1,5}|\\[[:0-9A-Fa-f]+\\]:[0-9]{1,5})$",
|
ValidationRegex: "^([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}:[0-9]{1,5}|\\[[:0-9A-Fa-f]+\\]:[0-9]{1,5})$",
|
||||||
RequiresRestart: true,
|
RequiresRestart: true,
|
||||||
Annotations: config.Annotations{
|
Annotations: config.Annotations{
|
||||||
config.DisplayOrderAnnotation: 128,
|
config.DisplayOrderAnnotation: 513,
|
||||||
config.CategoryAnnotation: "Development",
|
config.CategoryAnnotation: "Development",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
listenAddressConfig = config.GetAsString("api/listenAddress", getDefaultListenAddress())
|
listenAddressConfig = config.GetAsString(CfgDefaultListenAddressKey, getDefaultListenAddress())
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,14 +41,15 @@ func registerExpertiseLevelOption() {
|
||||||
expertiseLevelOption = &Option{
|
expertiseLevelOption = &Option{
|
||||||
Name: "UI Mode",
|
Name: "UI Mode",
|
||||||
Key: expertiseLevelKey,
|
Key: expertiseLevelKey,
|
||||||
Description: "Controls the amount of settings and information shown. Hidden settings are still in effect - unlike with the Release Level.",
|
Description: "Control the default amount of settings and information shown. Hidden settings are still in effect. Can be changed temporarily in the top right corner.",
|
||||||
OptType: OptTypeString,
|
OptType: OptTypeString,
|
||||||
ExpertiseLevel: ExpertiseLevelUser,
|
ExpertiseLevel: ExpertiseLevelUser,
|
||||||
ReleaseLevel: ReleaseLevelStable,
|
ReleaseLevel: ReleaseLevelStable,
|
||||||
DefaultValue: ExpertiseLevelNameUser,
|
DefaultValue: ExpertiseLevelNameUser,
|
||||||
Annotations: Annotations{
|
Annotations: Annotations{
|
||||||
DisplayHintAnnotation: DisplayHintOneOf,
|
DisplayOrderAnnotation: -16,
|
||||||
CategoryAnnotation: "Expertise & Release",
|
DisplayHintAnnotation: DisplayHintOneOf,
|
||||||
|
CategoryAnnotation: "User Interface",
|
||||||
},
|
},
|
||||||
PossibleValues: []PossibleValue{
|
PossibleValues: []PossibleValue{
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,16 +37,17 @@ func init() {
|
||||||
|
|
||||||
func registerReleaseLevelOption() {
|
func registerReleaseLevelOption() {
|
||||||
releaseLevelOption = &Option{
|
releaseLevelOption = &Option{
|
||||||
Name: "Release Level",
|
Name: "Feature Stability",
|
||||||
Key: releaseLevelKey,
|
Key: releaseLevelKey,
|
||||||
Description: "Controls the amount of available settings. Hidden settings revert to default - unlike with the UI Mode.",
|
Description: `May break things. Decide if you want to experiment with unstable features. "Beta" has been tested roughly by the Safing team while "Experimental" is really raw. When "Beta" or "Experimental" are disabled, their settings use the default again.`,
|
||||||
OptType: OptTypeString,
|
OptType: OptTypeString,
|
||||||
ExpertiseLevel: ExpertiseLevelExpert,
|
ExpertiseLevel: ExpertiseLevelExpert,
|
||||||
ReleaseLevel: ReleaseLevelStable,
|
ReleaseLevel: ReleaseLevelStable,
|
||||||
DefaultValue: ReleaseLevelNameStable,
|
DefaultValue: ReleaseLevelNameStable,
|
||||||
Annotations: Annotations{
|
Annotations: Annotations{
|
||||||
DisplayHintAnnotation: DisplayHintOneOf,
|
DisplayOrderAnnotation: -8,
|
||||||
CategoryAnnotation: "Expertise & Release",
|
DisplayHintAnnotation: DisplayHintOneOf,
|
||||||
|
CategoryAnnotation: "Updates",
|
||||||
},
|
},
|
||||||
PossibleValues: []PossibleValue{
|
PossibleValues: []PossibleValue{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue