Skip to content

Commit 63f2663

Browse files
committed
dd
1 parent 1704675 commit 63f2663

47 files changed

Lines changed: 154 additions & 153 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ core/cmd/server/web/index.html
4040
frontend/auto-imports.d.ts
4141
frontend/components.d.ts
4242
frontend/src/xpack
43-
frontend/src/xpack-ee
43+
frontend/src/enterprise
4444
agent/xpack
45-
agent/xpack-ee
45+
agent/enterprise
4646
agent/router/entry_xpack.go
47-
agent/router/entry_xpackee.go
47+
agent/router/entry_enterprise.go
4848
agent/server/init_xpack.go
49-
agent/server/init_xpackee.go
49+
agent/server/init_enterprise.go
5050
agent/utils/xpack/xpack.go
51-
agent/utils/xpack/xpackee.go
51+
agent/utils/xpack/enterprise.go
5252
core/xpack
53-
core/xpack-ee
53+
core/enterprise
5454
core/router/entry_xpack.go
55-
core/router/entry_xpackee.go
55+
core/router/entry_enterprise.go
5656
core/server/init_xpack.go
57-
core/server/init_xpackee.go
57+
core/server/init_enterprise.go
5858
core/utils/xpack/xpack.go
59-
core/utils/xpack/xpackee.go
59+
core/utils/xpack/enterprise.go
6060

6161
.history/
6262
dist/

agent/router/entry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !xpack && !xpackee
1+
//go:build !xpack && !enterprise
22

33
package router
44

agent/server/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !xpack && !xpackee
1+
//go:build !xpack && !enterprise
22

33
package server
44

agent/utils/xpack/community.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !xpack && !xpackee
1+
//go:build !xpack && !enterprise
22

33
package xpack
44

core/app/api/v2/auth.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,16 @@ func (b *BaseApi) GetLoginSetting(c *gin.Context) {
238238
ip := common.GetRealClientIP(c)
239239
needCaptcha := global.IPTracker.NeedCaptcha(ip)
240240
res := &dto.LoginSetting{
241-
IsDemo: global.CONF.Base.IsDemo,
242-
IsIntl: global.CONF.Base.Edition == "intl",
243-
IsFxplay: global.CONF.Base.IsFxplay,
244-
IsOffLine: global.CONF.Base.IsOffLine,
245-
IsXPackEE: global.CONF.Base.IsXpackEE,
246-
Language: settingInfo.Language,
247-
MenuTabs: settingInfo.MenuTabs,
248-
PanelName: settingInfo.PanelName,
249-
Theme: settingInfo.Theme,
250-
NeedCaptcha: needCaptcha,
241+
IsDemo: global.CONF.Base.IsDemo,
242+
IsIntl: global.CONF.Base.Edition == "intl",
243+
IsFxplay: global.CONF.Base.IsFxplay,
244+
IsOffLine: global.CONF.Base.IsOffLine,
245+
IsEnterprise: global.CONF.Base.IsEnterprise,
246+
Language: settingInfo.Language,
247+
MenuTabs: settingInfo.MenuTabs,
248+
PanelName: settingInfo.PanelName,
249+
Theme: settingInfo.Theme,
250+
NeedCaptcha: needCaptcha,
251251
}
252252
res.PasskeySetting = xpack.AuthProvider.PasskeyStatus(c)
253253
helper.SuccessWithData(c, res)

core/app/dto/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ type LoginSetting struct {
293293
IsIntl bool `json:"isIntl"`
294294
IsOffLine bool `json:"isOffLine"`
295295
IsFxplay bool `json:"isFxplay"`
296-
IsXPackEE bool `json:"isXpackEE"`
296+
IsEnterprise bool `json:"isEnterprise"`
297297
Language string `json:"language"`
298298
MenuTabs string `json:"menuTabs"`
299299
PanelName string `json:"panelName"`

core/cmd/server/conf/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ base:
44
is_demo: false
55
is_offline: false
66
is_fxplay: false
7-
is_xpackee: true
7+
is_enterprise: false
88
port: 9999
99
username: admin
1010
password: admin123

core/global/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type Base struct {
1515
IsOffLine bool `mapstructure:"is_offline"`
1616
IsFxplay bool `mapstructure:"is_fxplay"`
1717
Edition string `mapstructure:"edition"`
18-
IsXpackEE bool `mapstructure:"is_xpackee"`
18+
IsEnterprise bool `mapstructure:"is_enterprise"`
1919
Version string `mapstructure:"version"`
2020
InstallDir string `mapstructure:"install_dir"`
2121
ChangeUserInfo string `mapstructure:"change_user_info"`

core/i18n/lang/en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ErrLicenseExist: "This license record already exists. You can directly go to the
7373
ErrXpackNotFound: "This section requires Pro Edition. Import a license in Panel Settings > License."
7474
ErrXpackExceptional: "This section requires Pro Edition. Sync the license status in Panel Settings > License."
7575
ErrXpackLost: "The license retry limit has been reached. Go to Panel Settings > License and run a manual sync."
76-
ErrXpackEELicenseRequired: "Enterprise Edition license is not imported. Import a license first."
76+
ErrEnterpriseLicenseRequired: "Enterprise Edition license is not imported. Import a license first."
7777
ErrDeviceLost: "Required files for license verification are missing, check and try again!"
7878
ErrDeviceErr: "Current environment does not match the license import environment. Edit the license and re-import."
7979
ErrXpackTimeout: "Request timeout, network connection might be unstable, try again later!"

core/i18n/lang/es-ES.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ErrXpackNotFound: "Esta sección requiere la edición Pro. Importa una licencia
7373
ErrXpackExceptional: "Esta sección requiere la edición Pro. Sincroniza el estado de la licencia en Configuración del panel > Licencia."
7474
ErrXpackOutOfDate: "La licencia actual ha expirado, importe nuevamente la licencia en Panel > Ajustes > Licencia"
7575
ErrXpackLost: "La licencia alcanzó el límite de reintentos. Ve a Configuración del panel > Licencia y ejecuta una sincronización manual."
76-
ErrXpackEELicenseRequired: "La licencia de la edición Enterprise no se ha importado. Importa primero una licencia."
76+
ErrEnterpriseLicenseRequired: "La licencia de la edición Enterprise no se ha importado. Importa primero una licencia."
7777
ErrDeviceLost: "Faltan archivos necesarios para la verificación de licencia, verifique e intente de nuevo"
7878
ErrDeviceErr: "El entorno actual no coincide con el entorno de importación de la licencia. Edite la licencia e impórtela de nuevo"
7979
ErrXpackTimeout: "Tiempo de espera de la solicitud, puede que la conexión de red sea inestable, intente más tarde"

0 commit comments

Comments
 (0)