@@ -51,21 +51,9 @@ 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-
6554type ConfigStruct struct {
6655 Picture * PictureStruct
6756 Repository * RepositoryStruct
68- Service * ServiceStruct
6957}
7058
7159var (
@@ -83,14 +71,6 @@ func initDefaultConfig() {
8371 Repository : & RepositoryStruct {
8472 OpenWithEditorApps : config.ValueJSON [OpenWithEditorAppsType ]("repository.open-with.editor-apps" ),
8573 },
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- },
9474 }
9575}
9676
0 commit comments