@@ -51,9 +51,21 @@ type RepositoryStruct struct {
5151 OpenWithEditorApps * config.Value [OpenWithEditorAppsType ]
5252}
5353
54+ type ExplorePage struct {
55+ RequireSigninView * config.Value [bool ]
56+ DisableUsersPage * config.Value [bool ]
57+ DisableOrganizationsPage * config.Value [bool ]
58+ DisableCodePage * config.Value [bool ]
59+ }
60+
61+ type ServiceStruct struct {
62+ ExplorePage * ExplorePage
63+ }
64+
5465type ConfigStruct struct {
5566 Picture * PictureStruct
5667 Repository * RepositoryStruct
68+ Service * ServiceStruct
5769}
5870
5971var (
@@ -71,6 +83,14 @@ func initDefaultConfig() {
7183 Repository : & RepositoryStruct {
7284 OpenWithEditorApps : config.ValueJSON [OpenWithEditorAppsType ]("repository.open-with.editor-apps" ),
7385 },
86+ Service : & ServiceStruct {
87+ ExplorePage : & ExplorePage {
88+ RequireSigninView : config.ValueJSON [bool ]("service.explore.require_signin_view" ).WithFileConfig (config.CfgSecKey {Sec : "service.explore" , Key : "REQUIRE_SIGNIN_VIEW" }),
89+ DisableUsersPage : config.ValueJSON [bool ]("service.explore.disable_users_page" ).WithFileConfig (config.CfgSecKey {Sec : "service.explore" , Key : "DISABLE_USERS_PAGE" }),
90+ DisableOrganizationsPage : config.ValueJSON [bool ]("service.explore.disable_organizations_page" ).WithFileConfig (config.CfgSecKey {Sec : "service.explore" , Key : "DISABLE_ORGANIZATIONS_PAGE" }),
91+ DisableCodePage : config.ValueJSON [bool ]("service.explore.disable_code_page" ).WithFileConfig (config.CfgSecKey {Sec : "service.explore" , Key : "DISABLE_CODE_PAGE" }),
92+ },
93+ },
7494 }
7595}
7696
0 commit comments