Skip to content

Commit

Permalink
Merge pull request #865 from colinin/fix-issues
Browse files Browse the repository at this point in the history
fix: fix some issues.
  • Loading branch information
colinin authored Aug 28, 2023
2 parents 7c72807 + adbd12c commit c8ad940
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 22 deletions.
74 changes: 74 additions & 0 deletions apps/flutter/dev_app/lib/utils/logging.flutter.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import 'package:core/abstracts/logging.dart';
import 'package:core/models/environment.dart';
import 'package:flutter_logs/flutter_logs.dart';

class FlutterLogging implements ILogger {
FlutterLogging(this._environment);
final Environment _environment;

@override
void all(message, [error, StackTrace? stackTrace]) {
FlutterLogs.logThis(
tag: _environment.application.name,
logMessage: message,
level: LogLevel.INFO,
error: error,
errorMessage: stackTrace?.toString() ?? '',
);
}

@override
void debug(message, [error, StackTrace? stackTrace]) {
FlutterLogs.logThis(
tag: _environment.application.name,
logMessage: message,
level: LogLevel.INFO,
error: error,
errorMessage: stackTrace?.toString() ?? '',
);
}

@override
void error(message, [error, StackTrace? stackTrace]) {
FlutterLogs.logThis(
tag: _environment.application.name,
logMessage: message,
level: LogLevel.ERROR,
error: error,
errorMessage: stackTrace?.toString() ?? '',
);
}

@override
void info(message, [error, StackTrace? stackTrace]) {
FlutterLogs.logThis(
tag: _environment.application.name,
logMessage: message,
level: LogLevel.INFO,
error: error,
errorMessage: stackTrace?.toString() ?? '',
);
}

@override
void trace(message, [error, StackTrace? stackTrace]) {
FlutterLogs.logThis(
tag: _environment.application.name,
logMessage: message,
level: LogLevel.INFO,
error: error,
errorMessage: stackTrace?.toString() ?? '',
);
}

@override
void warn(message, [error, StackTrace? stackTrace]) {
FlutterLogs.logThis(
tag: _environment.application.name,
logMessage: message,
level: LogLevel.WARNING,
error: error,
errorMessage: stackTrace?.toString() ?? '',
);
}
}
4 changes: 2 additions & 2 deletions apps/vue/src/api/localization/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export const GetAsyncByName = (name: string) => {
return defAbpHttp.request<Language>({
service: remoteServiceName,
controller: controllerName,
action: 'GetAsync',
uniqueName: 'GetAsyncByName',
action: 'GetByNameAsync',
uniqueName: 'GetByNameAsyncByName',
params: {
name: name,
},
Expand Down
4 changes: 2 additions & 2 deletions apps/vue/src/components/Modal/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export const modalProps = {
// open drag
draggable: { type: Boolean, default: true },
centered: { type: Boolean },
cancelText: { type: String, default: 'Cancel' },
okText: { type: String, default: 'Ok' },
cancelText: { type: String },
okText: { type: String },

closeFunc: Function as PropType<() => Promise<boolean>>,
};
Expand Down
10 changes: 5 additions & 5 deletions aspnet-core/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
<OpenTelemetryContribInstrumentationEntityFrameworkCorePackageVersion>1.0.0-beta2</OpenTelemetryContribInstrumentationEntityFrameworkCorePackageVersion>
<QuartzNETPackageVersion>3.3.3</QuartzNETPackageVersion>
<StackExchangeRedisPackageVersion>2.2.4</StackExchangeRedisPackageVersion>
<SerilogPackageVersion>2.10.0</SerilogPackageVersion>
<SerilogAspNetCorePackageVersion>5.0.0</SerilogAspNetCorePackageVersion>
<SerilogPackageVersion>2.12.0</SerilogPackageVersion>
<SerilogAspNetCorePackageVersion>7.0.0</SerilogAspNetCorePackageVersion>
<SerilogEnrichersEnvironmentPackageVersion>2.2.0</SerilogEnrichersEnvironmentPackageVersion>
<SerilogEnrichersAssemblyPackageVersion>2.0.0</SerilogEnrichersAssemblyPackageVersion>
<SerilogEnrichersProcessPackageVersion>2.0.1</SerilogEnrichersProcessPackageVersion>
<SerilogEnrichersProcessPackageVersion>2.0.2</SerilogEnrichersProcessPackageVersion>
<SerilogEnrichersThreadPackageVersion>3.1.0</SerilogEnrichersThreadPackageVersion>
<SerilogExtensionsLoggingPackageVersion>3.0.1</SerilogExtensionsLoggingPackageVersion>
<SerilogSettingsConfigurationPackageVersion>3.4.0</SerilogSettingsConfigurationPackageVersion>
<SerilogSettingsConfigurationPackageVersion>7.0.1</SerilogSettingsConfigurationPackageVersion>
<SerilogSinksConsolePackageVersion>4.0.0</SerilogSinksConsolePackageVersion>
<SerilogSinksElasticsearchPackageVersion>8.4.1</SerilogSinksElasticsearchPackageVersion>
<SerilogSinksElasticsearchPackageVersion>9.0.3</SerilogSinksElasticsearchPackageVersion>
<SerilogSinksFilePackageVersion>5.0.0</SerilogSinksFilePackageVersion>
<SwashbuckleAspNetCorePackageVersion>6.3.0</SwashbuckleAspNetCorePackageVersion>
<PollyPackageVersion>7.2.3</PollyPackageVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"culture": "en",
"texts": {
"Delete": "Delete",
"DisplayName:Enable": "Enable",
"DisplayName:CreationTime": "Creation Time",
"DisplayName:LastModificationTime": "Modification Time",
"DisplayName:SaveAndNext": "Save & Next",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"culture": "zh-Hans",
"texts": {
"Delete": "删除",
"DisplayName:Enable": "启用",
"DisplayName:CreationTime": "创建时间",
"DisplayName:LastModificationTime": "变更时间",
"DisplayName:SaveAndNext": "保存并下一步",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ await _applicationManager.CreateAsync(new OpenIddictApplicationDescriptor
await _applicationManager.CreateAsync(new OpenIddictApplicationDescriptor
{
ClientId = "InternalServiceClient",
ClientSecret = "1q2w3e*",
Type = OpenIddictConstants.ClientTypes.Confidential,
ConsentType = OpenIddictConstants.ConsentTypes.Explicit,
DisplayName = "Internal Service Client",
PostLogoutRedirectUris = {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ private async Task SeedTenantDefaultRoleAsync(Guid tenantId)
await PermissionDataSeeder.SeedAsync(
RolePermissionValueProvider.ProviderName,
defaultRole.Name,
new string[] {
IdentityPermissions.UserLookup.Default,
IdentityPermissions.Users.Default
});
new string[]
{
IdentityPermissions.UserLookup.Default,
IdentityPermissions.Users.Default
},
tenantId: tenantId);
}

private async Task SeedTenantAdminAsync(CreateEventData eventData)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
},
"ConnectionStrings": {
"Default": "Server=127.0.0.1;Database=AuthServer-v70;User Id=root;Password=123456",
"Default": "Server=127.0.0.1;Database=AuthServer-v70;User Id=root;Password=123456;",
"AbpIdentity": "Server=127.0.0.1;Database=AuthServer-v70;User Id=root;Password=123456",
"OpenIddict": "Server=127.0.0.1;Database=AuthServer-v70;User Id=root;Password=123456",
"AbpSaas": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456",
Expand Down
4 changes: 2 additions & 2 deletions aspnet-core/services/LY.MicroService.AuthServer/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "7.0.2",
"version": "7.3.2",
"name": "my-app-auth-server",
"private": true,
"dependencies": {
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "2.0.4"
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "2.3.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ private async Task SeedTenantDefaultRoleAsync(Guid tenantId)
await PermissionDataSeeder.SeedAsync(
RolePermissionValueProvider.ProviderName,
defaultRole.Name,
new string[] {
IdentityPermissions.UserLookup.Default,
IdentityPermissions.Users.Default
});
new string[]
{
IdentityPermissions.UserLookup.Default,
IdentityPermissions.Users.Default
},
tenantId: tenantId);
}

private async Task SeedTenantAdminAsync(CreateEventData eventData)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "7.0.2",
"version": "7.3.2",
"name": "my-app-identityserver",
"private": true,
"dependencies": {
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "2.0.1"
"@abp/aspnetcore.mvc.ui.theme.leptonxlite": "2.3.2"
}
}

0 comments on commit c8ad940

Please sign in to comment.