Browse Source

Merge pull request #393 from think-ya/master

修正网关项目和本地化项目的翻译资源,使前后端一致
pull/396/head
yx lin 4 years ago
committed by GitHub
parent
commit
2d535d1b13
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      aspnet-core/.gitignore
  2. 2
      aspnet-core/database/ApiGateway-Init.sql
  3. 157
      aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Domain.Shared/LINGYUN/ApiGateway/Localization/DomainShared/en.json
  4. 155
      aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Domain.Shared/LINGYUN/ApiGateway/Localization/DomainShared/zh-Hans.json
  5. 4
      aspnet-core/modules/lt/LINGYUN.Abp.LocalizationManagement.Domain.Shared/LINGYUN/Abp/LocalizationManagement/Localization/Resources/en.json
  6. 4
      aspnet-core/modules/lt/LINGYUN.Abp.LocalizationManagement.Domain.Shared/LINGYUN/Abp/LocalizationManagement/Localization/Resources/zh-Hans.json
  7. 4
      aspnet-core/services/identity-server/LINGYUN.Abp.IdentityServer4.HttpApi.Host/appsettings.Development.json
  8. 1
      aspnet-core/services/start-all-service.bat

4
aspnet-core/.gitignore

@ -1,2 +1,4 @@
.vs .vs
LocalNuget LocalNuget
*.DotSettings.user
**/*.csproj.user

2
aspnet-core/database/ApiGateway-Init.sql

@ -870,7 +870,7 @@ CREATE TABLE `appapigatewayglobalconfiguration` (
-- Records of appapigatewayglobalconfiguration -- Records of appapigatewayglobalconfiguration
-- ---------------------------- -- ----------------------------
INSERT INTO `appapigatewayglobalconfiguration` VALUES (1, '{}', 'f7973118f2c2425c8cc96b59883b99aa', 1260841964962947072, NULL, 'http://localhost:30000', 'HTTP', NULL, 0, 1, 'TEST-APP'); INSERT INTO `appapigatewayglobalconfiguration` VALUES (1, '{}', 'f7973118f2c2425c8cc96b59883b99aa', 1260841964962947072, NULL, 'http://localhost:30000', 'HTTP', NULL, 0, 1, 'TEST-APP');
I
-- ---------------------------- -- ----------------------------
-- Table structure for appapigatewayheaders -- Table structure for appapigatewayheaders
-- ---------------------------- -- ----------------------------

157
aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Domain.Shared/LINGYUN/ApiGateway/Localization/DomainShared/en.json

@ -16,60 +16,125 @@
"Side:ClusterOcelot": "Server cluster", "Side:ClusterOcelot": "Server cluster",
"Side:ClusterOcelot:ServerList": "Server list", "Side:ClusterOcelot:ServerList": "Server list",
"Submit": "Save changed", "Submit": "Save changed",
"Basic": "Basic options",
"BaseUrl": "Baseurl",
"RequestIdKey": "RequestIdKey",
"DownstreamScheme": "DownstreamScheme",
"Qos": "Qos options",
"ExceptionsAllowedBeforeBreaking": "Max exception",
"DurationOfBreak": "Melting(ms)",
"TimeoutValue": "Timeout(ms)",
"RateLimit": "Rate limit",
"ClientIdHeader": "ClientIdHeader",
"QuotaExceededMessage": "Exceeded message",
"HttpStatusCode": "Httpcode",
"DisableRateLimitHeaders": "Disable header",
"HttpOptions": "Http options",
"HttpHandler": "Http handler", "HttpHandler": "Http handler",
"OtherOptions": "Other options", "OtherOptions": "Other options",
"AllowAutoRedirect": "Auto rediret",
"UseCookieContainer": "Cookie container",
"UseProxy": "Http proxy",
"UseTracing": "Http track",
"LoadBalancer": "Load balancer",
"LoadWay": "Balancer type", "LoadWay": "Balancer type",
"ServiceDiscovery": "Service discovery",
"DiscoveryType": "Service type",
"Host": "Host",
"Port": "Port",
"RouteName": "Route name", "RouteName": "Route name",
"ServiceName": "Service name",
"UpstreamPathTemplate": "UpstreamPathTemplate", /////
"DownstreamPathTemplate": "DownstreamPathTemplate", "AggregateRoutes": "Aggregate Routes",
"UpstreamHttpMethod": "UpstreamHttpMethod", "AggregateRoute:ManageRouteConfig": "Manage Route Config",
"DownstreamHostAndPorts": "DownstreamHostAndPorts", "AggregateRoute:AddNew": "Add",
"RouteClaimsRequirement": "RouteClaimsRequirement", "AggregateRoute:EditBy": "Edit - {0}",
"AggregateKey": "AggregateKey",
"Priority": "Priority", "DisplayName:Name": "Name",
"DisplayName:UpstreamPathTemplate": "Upstream Path Template",
"DisplayName:RouteKeys": "ReRouteKeys",
"DisplayName:UpstreamHost": "Upstream Host",
"DisplayName:Aggregator": "Aggregator",
"DisplayName:Priority": "Priority",
"DisplayName:Parameter": "Parameter",
"DisplayName:JsonPath": "JsonPath",
"DisplayName:AppId": "AppId",
"DisplayName:CaseSensitive": "Case Sensitive",
"DisplayName:UpstreamHttpMethod": "Upstream Http Method",
"DisplayName:RouteKey": "ReRouteKey",
/////
"Groups": "Groups",
"Group:EditBy": "Edit - {0}",
"Group:AddNew": "Add",
"DisplayName:AppName": "AppName",
"DisplayName:AppAddress": "AppAddress",
"DisplayName:IsActive": "IsActive",
"DisplayName:Description": "Description",
/////
"Globals": "Globals",
"Global:EditBy": "Edit - {0}",
"Global:AddNew": "Add",
"DisplayName:BaseUrl": "Base Url",
"DisplayName:RequestIdKey": "RequestIdKey",
"DisplayName:DownstreamScheme": "Downstream Scheme",
"DisplayName:DownstreamHttpVersion": "Downstream Http Version",
"Basic": "Basic",
"Qos": "Qos",
"HttpOptions": "Http Options",
"RateLimit": "Rate Limit",
"LoadBalancer": "Load Balancer",
"ServiceDiscovery": "Service Discovery",
"DisplayName:MaxConnectionsPerServer": "Max Connections Per Server",
"DisplayName:UseProxy": "Use HTTP Proxy",
"DisplayName:UseTracing": "Use HTTP Tracing",
"DisplayName:AllowAutoRedirect": "Allow Auto Redirect",
"DisplayName:UseCookieContainer": "Use Cookie Container",
"DisplayName:DisableRateLimitHeaders": "Disable Rate Limit Headers",
"DisplayName:ClientIdHeader": "ClientIdHeader",
"DisplayName:HttpStatusCode": "Http Status Code",
"DisplayName:RateLimitCounterPrefix": "Rate Limit Counter Prefix",
"DisplayName:QuotaExceededMessage": "Quota Exceeded Message",
"DisplayName:TimeoutValue": "Timeout(ms)",
"DisplayName:DurationOfBreak": "Duration Of Break(ms)",
"DisplayName:ExceptionsAllowedBeforeBreaking": "Exceptions Allowed Before Breaking",
"DisplayName:LoadBalancerType": "LoadBalancer Type",
"DisplayName:PollingKey": "PollingKey",
"DisplayName:Expiry": "Expiry",
"DisplayName:DiscoveryType": "Discovery Type",
"DisplayName:Host": "Host",
"DisplayName:Port": "Port",
"DisplayName:Token": "Token",
"DisplayName:ConfigurationKey": "ConfigurationKey",
"DisplayName:Namespace": "Namespace",
"DisplayName:Scheme": "Scheme",
"DisplayName:PollingInterval": "Polling Interval(ms)",
"DisplayName:Enable": "Enable",
"DisplayName:Disable": "Disable",
/////
"Routes": "Routes",
"Route:EditBy": "Edit - {0}",
"Route:AddNew": "Add",
"DisplayName:DownstreamPathTemplate": "Downstream Path Template",
"DisplayName:DownstreamHostAndPorts": "Downstream Host And Ports",
"DisplayName:Timeout": "Timeout(ms)",
"DisplayName:ServiceName": "Service Name",
"Forward": "Forward",
"RequestProcessing": "Request Processing",
"SecurityOptions": "Security Options",
"DisplayName:DangerousAcceptAnyServerCertificateValidator": "Dangerous Accept Any Server Certificate Validator",
"DisplayName:AggregateKey": "Aggregate Key",
"DisplayName:DownstreamHttpMethod": "Downstream Http Method",
"DisplayName:AddClaimsToRequest": "Add Claims To Request",
"DisplayName:AddHeadersToRequest": "Add Headers To Request",
"DisplayName:UpstreamHeaderTransform": "Upstream Header Transform",
"DisplayName:DownstreamHeaderTransform": "Downstream Header Transform",
"DisplayName:ChangeDownstreamPathTemplate": "Change Downstream Path Template",
"DisplayName:RouteClaimsRequirement": "Route Claims Requirement",
"DisplayName:DelegatingHandlers": "Delegating Handlers",
"DisplayName:Limit": "Limit",
"DisplayName:Period": "Period",
"DisplayName:PeriodTimespan": "Period Timespan(s)",
"DisplayName:ClientWhitelist": "Client White list",
"DisplayName:AuthenticationProviderKey": "Authentication Provider Key",
"DisplayName:AllowedScopes": "Allowed Scopes",
"DisplayName:IpAllowedList": "Ip Allowed List",
"DisplayName:IpBlockedList": "Ip Blocked List",
/////
"CertificateValidator": "CertificateValidator", "CertificateValidator": "CertificateValidator",
"CaseSensitive": "CaseSensitive",
"UpstreamHeaderTransform": "UpstreamHeaderTransform",
"DownstreamHeaderTransform": "DownstreamHeaderTransform",
"AddHeadersToRequest": "AddHeadersToRequest",
"AddClaimsToRequest": "AddClaimsToRequest",
"AddQueriesToRequest": "AddQueriesToRequest", "AddQueriesToRequest": "AddQueriesToRequest",
"ClientWhitelist": "Client whitelist",
"Limit": "Limit",
"PeriodTimespan": "PeriodTimespan(s)",
"Period": "Period",
"EnableRateLimiting": "EnableRateLimiting", "EnableRateLimiting": "EnableRateLimiting",
"AuthenticationProviderKey": "AuthenticationProviderKey",
"AllowedScopes": "AllowedScopes",
"IpAllowedList": "IpAllowedList",
"IpBlockedList": "IpBlockedList",
"SecurityOptions": "SecurityOptions",
"RefreshList": "RefreshList", "RefreshList": "RefreshList",
"AddReoute": "AddReoute", "AddRoute": "AddRoute",
"EditRoute": "EditRoute", "EditRoute": "EditRoute",
"DeleteSelection": "DeleteSelection", "DeleteSelection": "DeleteSelection",
"DeleteAll": "DeleteAll", "DeleteAll": "DeleteAll",

155
aspnet-core/modules/apigateway/LINGYUN.ApiGateway.Domain.Shared/LINGYUN/ApiGateway/Localization/DomainShared/zh-Hans.json

@ -16,60 +16,125 @@
"Side:ClusterOcelot": "服务器集群", "Side:ClusterOcelot": "服务器集群",
"Side:ClusterOcelot:ServerList": "服务器列表", "Side:ClusterOcelot:ServerList": "服务器列表",
"Submit": "立即提交", "Submit": "立即提交",
"HttpHandler": "HTTP处理程序",
"OtherOptions": "其他选项",
"LoadWay": "负载方式",
"RouteName": "路由名称",
/////
"AggregateRoutes": "聚合路由",
"AggregateRoute:ManageRouteConfig": "管理路由配置",
"AggregateRoute:AddNew": "添加聚合路由",
"AggregateRoute:EditBy": "编辑 - {0}",
"DisplayName:Name": "名称",
"DisplayName:UpstreamPathTemplate": "上游路径",
"DisplayName:RouteKeys": "ReRouteKeys",
"DisplayName:UpstreamHost": "上游主机地址",
"DisplayName:Aggregator": "聚合器",
"DisplayName:Priority": "优先级",
"DisplayName:Parameter": "参数",
"DisplayName:JsonPath": "JsonPath",
"DisplayName:AppId": "AppId",
"DisplayName:CaseSensitive": "区分大小写",
"DisplayName:UpstreamHttpMethod": "上游请求方式",
"DisplayName:RouteKey": "ReRouteKey",
/////
"Groups": "路由分组",
"Group:EditBy": "编辑 - {0}",
"Group:AddNew": "添加路由分组",
"DisplayName:AppName": "AppName",
"DisplayName:AppAddress": "地址",
"DisplayName:IsActive": "启用",
"DisplayName:Description": "描述",
/////
"Globals": "公共配置",
"Global:EditBy": "编辑 - {0}",
"Global:AddNew": "添加公共配置",
"DisplayName:BaseUrl": "访问路径",
"DisplayName:RequestIdKey": "访问标识",
"DisplayName:DownstreamScheme": "下游协议",
"DisplayName:DownstreamHttpVersion": "下游http协议版本",
"Basic": "基础配置", "Basic": "基础配置",
"BaseUrl": "访问路径",
"RequestIdKey": "访问标识",
"DownstreamScheme": "下游协议",
"Qos": "服务质量", "Qos": "服务质量",
"ExceptionsAllowedBeforeBreaking": "最大异常请求",
"DurationOfBreak": "熔断时间(ms)",
"TimeoutValue": "超时时间(ms)",
"RateLimit": "流量控制",
"ClientIdHeader": "客户端请求头",
"QuotaExceededMessage": "过载错误消息",
"HttpStatusCode": "HTTP错误代码",
"DisableRateLimitHeaders": "禁用HTTP头",
"HttpOptions": "HTTP选项", "HttpOptions": "HTTP选项",
"HttpHandler": "HTTP处理程序", "RateLimit": "流量控制",
"OtherOptions": "其他选项",
"AllowAutoRedirect": "HTTP重定向",
"UseCookieContainer": "Cookie容器",
"UseProxy": "HTTP代理",
"UseTracing": "HTTP追踪",
"LoadBalancer": "负载均衡", "LoadBalancer": "负载均衡",
"LoadWay": "负载方式",
"ServiceDiscovery": "服务发现", "ServiceDiscovery": "服务发现",
"DiscoveryType": "实例类型",
"Host": "主机地址", "DisplayName:MaxConnectionsPerServer": "最大连接数",
"Port": "端口号", "DisplayName:UseProxy": "HTTP代理",
"RouteName": "路由名称", "DisplayName:UseTracing": "HTTP追踪",
"ServiceName": "服务名称", "DisplayName:AllowAutoRedirect": "HTTP重定向",
"UpstreamPathTemplate": "上游路径", "DisplayName:UseCookieContainer": "Cookie容器",
"DownstreamPathTemplate": "下游路径", "DisplayName:DisableRateLimitHeaders": "禁用HTTP头",
"UpstreamHttpMethod": "上游请求方式", "DisplayName:ClientIdHeader": "客户端请求头",
"DownstreamHostAndPorts": "下游请求地址", "DisplayName:HttpStatusCode": "HTTP状态代码",
"RouteClaimsRequirement": "路由鉴权标识", "DisplayName:RateLimitCounterPrefix": "限流计数器前缀",
"AggregateKey": "聚合标识", "DisplayName:QuotaExceededMessage": "过载错误消息",
"Priority": "优先级", "DisplayName:TimeoutValue": "超时时间(ms)",
"DisplayName:DurationOfBreak": "熔断时间(ms)",
"DisplayName:ExceptionsAllowedBeforeBreaking": "最大异常请求次数",
"DisplayName:LoadBalancerType": "负载均衡类型",
"DisplayName:PollingKey": "PollingKey",
"DisplayName:Expiry": "Expiry",
"DisplayName:DiscoveryType": "实例类型",
"DisplayName:Host": "主机地址",
"DisplayName:Port": "端口号",
"DisplayName:Token": "Token",
"DisplayName:ConfigurationKey": "ConfigurationKey",
"DisplayName:Namespace": "Namespace",
"DisplayName:Scheme": "Scheme",
"DisplayName:PollingInterval": "轮询间隔(ms)",
"DisplayName:Enable": "启用",
"DisplayName:Disable": "禁用",
/////
"Routes": "路由",
"Route:EditBy": "编辑 - {0}",
"Route:AddNew": "添加路由",
"DisplayName:DownstreamPathTemplate": "下游路径",
"DisplayName:DownstreamHostAndPorts": "下游请求地址",
"DisplayName:Timeout": "超时时间(ms)",
"DisplayName:ServiceName": "服务名称",
"Forward": "转发规则",
"RequestProcessing": "请求处理",
"SecurityOptions": "安全选项",
"DisplayName:DangerousAcceptAnyServerCertificateValidator": "忽略SSL警告",
"DisplayName:AggregateKey": "聚合标识",
"DisplayName:DownstreamHttpMethod": "下游请求方式",
"DisplayName:AddClaimsToRequest": "用户声明转换",
"DisplayName:AddHeadersToRequest": "请求头转换",
"DisplayName:UpstreamHeaderTransform": "上游请求头",
"DisplayName:DownstreamHeaderTransform": "下游请求头",
"DisplayName:ChangeDownstreamPathTemplate": "变更下游路径",
"DisplayName:RouteClaimsRequirement": "路由鉴权标识",
"DisplayName:DelegatingHandlers": "委托处理器",
"DisplayName:Limit": "最大允许次数",
"DisplayName:Period": "周期",
"DisplayName:PeriodTimespan": "重试时间(s)",
"DisplayName:ClientWhitelist": "客户端白名单",
"DisplayName:AuthenticationProviderKey": "授权标识",
"DisplayName:AllowedScopes": "授权范围",
"DisplayName:IpAllowedList": "IP白名单",
"DisplayName:IpBlockedList": "IP黑名单",
/////
"CertificateValidator": "忽略SSL警告", "CertificateValidator": "忽略SSL警告",
"CaseSensitive": "区分大小写",
"UpstreamHeaderTransform": "上游请求头",
"DownstreamHeaderTransform": "下游请求头",
"AddHeadersToRequest": "请求头转换",
"AddClaimsToRequest": "用户声明转换",
"AddQueriesToRequest": "查询参数转换", "AddQueriesToRequest": "查询参数转换",
"ClientWhitelist": "客户端白名单",
"Limit": "最大允许次数",
"PeriodTimespan": "重试时间(s)",
"Period": "限制时间",
"EnableRateLimiting": "启用流量控制", "EnableRateLimiting": "启用流量控制",
"AuthenticationProviderKey": "授权标识",
"AllowedScopes": "授权范围",
"IpAllowedList": "IP白名单",
"IpBlockedList": "IP黑名单",
"SecurityOptions": "安全选项",
"RefreshList": "刷新列表", "RefreshList": "刷新列表",
"AddReoute": "添加路由", "AddRoute": "添加路由",
"EditRoute": "编辑路由", "EditRoute": "编辑路由",
"DeleteSelection": "删除选择", "DeleteSelection": "删除选择",
"DeleteAll": "删除所有", "DeleteAll": "删除所有",

4
aspnet-core/modules/lt/LINGYUN.Abp.LocalizationManagement.Domain.Shared/LINGYUN/Abp/LocalizationManagement/Localization/Resources/en.json

@ -1,6 +1,10 @@
{ {
"culture": "en", "culture": "en",
"texts": { "texts": {
"Languages": "Languages",
"Resources": "Resources",
"Texts": "Texts",
"Delete": "Delete", "Delete": "Delete",
"DisplayName:Any": "Any", "DisplayName:Any": "Any",
"DisplayName:CreationTime": "Creation Time", "DisplayName:CreationTime": "Creation Time",

4
aspnet-core/modules/lt/LINGYUN.Abp.LocalizationManagement.Domain.Shared/LINGYUN/Abp/LocalizationManagement/Localization/Resources/zh-Hans.json

@ -1,6 +1,10 @@
{ {
"culture": "zh-Hans", "culture": "zh-Hans",
"texts": { "texts": {
"Languages": "语言",
"Resources": "资源",
"Texts": "文档",
"Delete": "删除", "Delete": "删除",
"DisplayName:Any": "所有", "DisplayName:Any": "所有",
"DisplayName:CreationTime": "创建时间", "DisplayName:CreationTime": "创建时间",

4
aspnet-core/services/identity-server/LINGYUN.Abp.IdentityServer4.HttpApi.Host/appsettings.Development.json

@ -8,7 +8,9 @@
"tag": "IdentityServer.Admin" "tag": "IdentityServer.Admin"
}, },
"App": { "App": {
"TrackingEntitiesChanged": true "TrackingEntitiesChanged": true,
"SelfUrl": "http://localhost:30015/",
"CorsOrigins": "http://localhost:4200,http://localhost:9527,http://localhost:3100"
}, },
"ConnectionStrings": { "ConnectionStrings": {
"Default": "Server=localhost;Database=IdentityServer;User Id=root;Password=123456", "Default": "Server=localhost;Database=IdentityServer;User Id=root;Password=123456",

1
aspnet-core/services/start-all-service.bat

@ -5,6 +5,7 @@ start .\start-auth-server.bat --run
start .\start-identity-server.bat --run start .\start-identity-server.bat --run
start .\start-apigateway-admin.bat --run start .\start-apigateway-admin.bat --run
start .\start-backend-admin.bat --run start .\start-backend-admin.bat --run
start .\start-localization.bat --run
start .\start-messages.bat --run start .\start-messages.bat --run
start .\start-platform.bat --run start .\start-platform.bat --run
ping -n 10 127.1 >nul ping -n 10 127.1 >nul

Loading…
Cancel
Save