Skip to content

Commit 283580d

Browse files
authored
feat: add OxAppSuite config option for web (#2929)
2 parents 52ab8d3 + c270e72 commit 283580d

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.bingo/go-xgettext.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
33
go 1.23.4
44

55
require github.com/gosexy/gettext v0.0.0-20160830220431-74466a0a0c4a // go-xgettext
6-
7-
require github.com/jessevdk/go-flags v1.6.1 // indirect

services/web/pkg/config/defaults/defaultconfig.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ func DefaultConfig() *config.Config {
111111
Upload: &config.Upload{},
112112
TokenStorageLocal: true,
113113
UserListRequiresFilter: false,
114+
OxAppSuite: &config.OxAppSuite{},
114115
},
115116
},
116117
},

services/web/pkg/config/options.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type Options struct {
1919
UserListRequiresFilter bool `json:"userListRequiresFilter,omitempty" yaml:"userListRequiresFilter" env:"WEB_OPTION_USER_LIST_REQUIRES_FILTER" desc:"Defines whether one or more filters must be set in order to list users in the Web admin settings. Set this option to 'true' if running in an environment with a lot of users and listing all users could slow down performance. Defaults to 'false'." introductionVersion:"1.0.0"`
2020
ConcurrentRequests *ConcurrentRequests `json:"concurrentRequests,omitempty" yaml:"concurrentRequests"`
2121
DefaultAppID string `json:"defaultAppId,omitempty" yaml:"defaultAppId" env:"WEB_OPTION_DEFAULT_APP_ID" desc:"Defines the entrypoint for the web ui." introductionVersion:"4.0.0"`
22+
OxAppSuite *OxAppSuite `json:"oxAppSuite,omitempty" yaml:"oxAppSuite"`
2223
}
2324

2425
// AccountEditLink are the AccountEditLink options
@@ -65,3 +66,8 @@ type ConcurrentRequestsShares struct {
6566
Create int `json:"create,omitempty" yaml:"create" env:"WEB_OPTION_CONCURRENT_REQUESTS_SHARES_CREATE" desc:"Defines the maximum number of concurrent requests per sharing invite batch. Defaults to 4." introductionVersion:"1.0.0"`
6667
List int `json:"list,omitempty" yaml:"list" env:"WEB_OPTION_CONCURRENT_REQUESTS_SHARES_LIST" desc:"Defines the maximum number of concurrent requests when loading individual share information inside listings. Defaults to 2." introductionVersion:"1.0.0"`
6768
}
69+
70+
type OxAppSuite struct {
71+
Enabled bool `json:"enabled,omitempty" yaml:"enabled" env:"WEB_OPTION_OX_APP_SUITE_ENABLED" desc:"Enables the OX App Suite. Defaults to false." introductionVersion:"%%NEXT%%"`
72+
ApiUrl string `json:"apiUrl,omitempty" yaml:"apiUrl" env:"WEB_OPTION_OX_APP_SUITE_API_URL" desc:"The API URL for the OX App Suite. Defaults to an empty string." introductionVersion:"%%NEXT%%"`
73+
}

0 commit comments

Comments
 (0)