Skip to content

Commit

Permalink
优化页面,隐藏不重要的列
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jul 1, 2024
1 parent 2465e63 commit 253895d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class AppDeployController : EntityController<AppDeploy>
static AppDeployController()
{
ListFields.RemoveCreateField();
ListFields.RemoveField("AppId", "WorkingDirectory", "User", "MaxMemory", "Mode", "Remark");
ListFields.RemoveField("AppId", "Repository", "Branch", "ProjectPath", "PackageFilters", "WorkingDirectory", "UserName", "MaxMemory", "Mode", "Remark");
AddFormFields.RemoveCreateField();

LogOnChange = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class AppDeployVersionController : EntityController<AppDeployVersion>
{
static AppDeployVersionController()
{
ListFields.RemoveField("Hash", "CommitId", "CommitLog");
ListFields.RemoveCreateField();
ListFields.RemoveRemarkField();

Expand Down Expand Up @@ -99,7 +100,7 @@ protected override IEnumerable<AppDeployVersion> Search(Pager p)

protected override Boolean Valid(AppDeployVersion entity, DataObjectMethodType type, Boolean post)
{
if (type == DataObjectMethodType.Delete || type == DataObjectMethodType.Update) return base.Valid(entity, type, post);
if (type == DataObjectMethodType.Delete || type == DataObjectMethodType.Update) return base.Valid(entity, type, post);
if (!post && type == DataObjectMethodType.Insert) entity.Version = DateTime.Now.ToString("yyyyMMdd-HHmmss");

if (post)
Expand Down Expand Up @@ -192,7 +193,7 @@ protected override Int32 OnDelete(AppDeployVersion entity)
//删除记录
att.DeleteAsync();
}
}
}

var rs = base.OnDelete(entity);
entity.Deploy?.Fix();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static AppTracerController()
{
LogOnChange = true;

ListFields.RemoveField("AppId", "TimeoutExcludes", "VipClients", "Nodes", "AlarmRobot");
ListFields.RemoveField("AppId", "TimeoutExcludes", "VipClients", "Nodes", "AlarmRobot", "WhiteList", "Excludes");
ListFields.RemoveCreateField();

{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class AppServiceController : EntityController<AppService>
{
static AppServiceController()
{
ListFields.RemoveField("ServiceId");
ListFields.RemoveField("ServiceId", "OriginAddress");

{
var df = ListFields.GetField("ServiceName") as ListField;
Expand Down
4 changes: 4 additions & 0 deletions Stardust/AppClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
using NewLife.Remoting.Clients;
using NewLife.Remoting;
using NewLife.Http;
using NewLife.Security;


#if !NET40
using TaskEx = System.Threading.Tasks.Task;
Expand Down Expand Up @@ -68,6 +70,8 @@ public AppClient()
SetActions("App/");
Actions[Features.CommandReply] = "App/CommandReply";

PasswordProvider = new PasswordProvider();

// 加载已保存数据
var dic = LoadConsumeServicese();
if (dic != null && dic.Count > 0)
Expand Down

0 comments on commit 253895d

Please sign in to comment.