Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
34b52954
Commit
34b52954
authored
Sep 08, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pages.
parent
a31b5812
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
166 additions
and
102 deletions
+166
-102
LayoutPage1.generated.cs
src/DotNetCore.CAP/Dashboard/Pages/LayoutPage1.generated.cs
+1
-1
PublishedPage.cshtml
src/DotNetCore.CAP/Dashboard/Pages/PublishedPage.cshtml
+17
-54
PublishedPage1.generated.cs
...otNetCore.CAP/Dashboard/Pages/PublishedPage1.generated.cs
+148
-47
No files found.
src/DotNetCore.CAP/Dashboard/Pages/LayoutPage1.generated.cs
View file @
34b52954
...
...
@@ -216,7 +216,7 @@ WriteLiteral(@"
#
line
61
"..\..\Dashboard\Pages\LayoutPage.cshtml"
Write
(
$"
{
version
.
Major
}
.
{
version
.
Minor
}
.
{
version
.
Build
}
"
);
Write
(
$"
{
version
.
Major
}
.
{
version
.
Minor
}
.
{
version
.
Build
}
"
);
#
line
default
...
...
src/DotNetCore.CAP/Dashboard/Pages/PublishedPage.cshtml
View file @
34b52954
...
...
@@ -35,12 +35,12 @@
@Html.JobsSidebar(MessageType.Publish)
</div>
<div class="col-md-9">
<h1 class="page-header">@Strings.
SucceededMessages
Page_Title</h1>
<h1 class="page-header">@Strings.
Published
Page_Title</h1>
@if (succeededMessages.Count == 0)
{
<div class="alert alert-info">
@Strings.
SucceededJobsPage_NoJob
s
@Strings.
PublishedPage_NoMessage
s
</div>
}
else
...
...
@@ -49,13 +49,13 @@
<div class="btn-toolbar btn-toolbar-top">
<form class="row">
<span class="col-md-3">
<input type="text" class="form-control" name="name" value="@Query("name")" placeholder="
消息名称
" />
<input type="text" class="form-control" name="name" value="@Query("name")" placeholder="
@Strings.MessagesPage_Query_MessageName
" />
</span>
<div class="col-md-5">
<div class="input-group">
<input type="text" class="form-control" name="content" value="@Query("content")" placeholder="
消息内容
" />
<input type="text" class="form-control" name="content" value="@Query("content")" placeholder="
@Strings.MessagesPage_Query_MessageBody
" />
<span class="input-group-btn">
<button class="btn btn-info">
查找
</button>
<button class="btn btn-info">
@Strings.MessagesPage_Query_Button
</button>
</span>
</div>
</div>
...
...
@@ -80,11 +80,10 @@
<th style="width:60px;">
<input type="checkbox" class="js-jobs-list-select-all" />
</th>
<th>编号</th>
<th>名称</th>
<th>内容</th>
<th class="min-width">重试次数</th>
<th class="min-width align-right">过期时间</th>
<th>@Strings.MessagesPage_Table_Code</th>
<th>@Strings.MessagesPage_Table_Name</th>
<th class="min-width">@Strings.MessagesPage_Table_Retries</th>
<th class="align-right">@Strings.MessagesPage_Table_ExpiresAt</th>
</tr>
</thead>
<tbody>
...
...
@@ -92,10 +91,10 @@
{
<tr class="js-jobs-list-row hover">
<td>
<input type="checkbox" class="js-jobs-list-checkbox" name="
job
s[]" value="@message.Id" />
<input type="checkbox" class="js-jobs-list-checkbox" name="
message
s[]" value="@message.Id" />
</td>
<td class="word-break">
<a href="javascript:;" data-
id="@message.Id" class="openModal">
@message.Id</a>
<a href="javascript:;" data-
url='@(Url.To("/published/message/")+message.Id)' class="openModal">#
@message.Id</a>
</td>
<td>
@message.Name
...
...
@@ -124,15 +123,15 @@
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">M
odal title
</h4>
<h4 class="modal-title">M
essage Content
</h4>
</div>
<div id="jsonContent" style="max-height:500px;overflow-y:auto;" class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-primary" id="formatBtn" onclick="">
格式化
</button>
<button type="button" class="btn btn-sm btn-primary" id="rawBtn" onclick="">
原生
</button>
<button type="button" class="btn btn-sm btn-primary" id="expandBtn" onclick="">
展开
</button>
<button type="button" class="btn btn-sm btn-primary" id="collapseBtn" onclick="">
收缩
</button>
<button type="button" class="btn btn-sm btn-primary" id="formatBtn" onclick="">
@Strings.MessagesPage_Modal_Format
</button>
<button type="button" class="btn btn-sm btn-primary" id="rawBtn" onclick="">
@Strings.MessagesPage_Modal_Raw
</button>
<button type="button" class="btn btn-sm btn-primary" id="expandBtn" onclick="">
@Strings.MessagesPage_Modal_Expand
</button>
<button type="button" class="btn btn-sm btn-primary" id="collapseBtn" onclick="">
@Strings.MessagesPage_Model_Collaspse
</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
...
...
@@ -140,40 +139,4 @@
</div>
}
</div>
</div>
<script>
(function () {
var json = null;
$(".openModal").click(function () {
var id = $(this).data("id");
$.ajax({
url: @Url("/published/message/")+id,
dataType: "json",
success: function (data) {
json = data;
$("#formatBtn").click();
$(".modal").modal("show");
}
});
});
$("#formatBtn").click(function () {
$('#jsonContent').JSONView(json);
});
$("#rawBtn").click(function () {
$('#jsonContent').text(JSON.stringify(json));
});
$("#expandBtn").click(function () {
$('#jsonContent').JSONView('expand');
});
$("#collapseBtn").click(function () {
$('#jsonContent').JSONView('collapse');
});
})();
</script>
\ No newline at end of file
</div>
\ No newline at end of file
src/DotNetCore.CAP/Dashboard/Pages/PublishedPage1.generated.cs
View file @
34b52954
...
...
@@ -90,7 +90,7 @@ WriteLiteral("\r\n");
Name
=
name
,
Content
=
content
,
StatusName
=
StatusName
,
CurrentPage
=
pager
.
CurrentPage
-
1
,
CurrentPage
=
pager
.
CurrentPage
-
1
,
PageSize
=
pager
.
RecordsPerPage
};
var
succeededMessages
=
monitor
.
Messages
(
queryDto
);
...
...
@@ -114,7 +114,7 @@ WriteLiteral("\r\n </div>\r\n <div class=\"col-md-9\">\r\n <h1 clas
#
line
38
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
SucceededMessages
Page_Title
);
Write
(
Strings
.
Published
Page_Title
);
#
line
default
...
...
@@ -130,17 +130,8 @@ WriteLiteral("</h1>\r\n\r\n");
#
line
default
#
line
hidden
WriteLiteral
(
" <div class=\"alert alert-info\">\r\n "
);
#
line
43
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
SucceededJobsPage_NoJobs
);
#
line
default
#
line
hidden
WriteLiteral
(
"\r\n </div>\r\n"
);
WriteLiteral
(
" <div class=\"alert alert-info\">\r\n 没有消息\r\n </d"
+
"iv>\r\n"
);
...
...
@@ -166,10 +157,19 @@ WriteLiteral(@" <div class=""js-jobs-list"">
#
line
default
#
line
hidden
WriteLiteral
(
"\" placeholder=\"消息名称\" />\r\n </span>\r\n "
+
" <div class=\"col-md-5\">\r\n <div class=\"input-group\">\r\n"
+
" <input type=\"text\" class=\"form-control\" name=\"co"
+
"ntent\" value=\""
);
WriteLiteral
(
"\" placeholder=\""
);
#
line
52
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Query_MessageName
);
#
line
default
#
line
hidden
WriteLiteral
(
"\" />\r\n </span>\r\n <div class=\"col-md"
+
"-5\">\r\n <div class=\"input-group\">\r\n "
+
" <input type=\"text\" class=\"form-control\" name=\"content\" value=\""
);
...
...
@@ -179,9 +179,28 @@ WriteLiteral("\" placeholder=\"消息名称\" />\r\n </sp
#
line
default
#
line
hidden
WriteLiteral
(
@""" placeholder=""消息内容"" />
<span class=""input-group-btn"">
<button class=""btn btn-info"">查找</button>
WriteLiteral
(
"\" placeholder=\""
);
#
line
56
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Query_MessageBody
);
#
line
default
#
line
hidden
WriteLiteral
(
"\" />\r\n <span class=\"input-group-btn\">\r\n "
+
" <button class=\"btn btn-info\">"
);
#
line
58
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Query_Button
);
#
line
default
#
line
hidden
WriteLiteral
(
@"</button>
</span>
</div>
</div>
...
...
@@ -240,14 +259,48 @@ WriteLiteral(@"
<th style=""width:60px;"">
<input type=""checkbox"" class=""js-jobs-list-select-all"" />
</th>
<th>名称</th>
<th>内容</th>
<th class=""min-width"">重试次数</th>
<th class=""min-width align-right"">过期时间</th>
</tr>
</thead>
<tbody>
"
);
<th>"
);
#
line
83
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Table_Code
);
#
line
default
#
line
hidden
WriteLiteral
(
"</th>\r\n <th>"
);
#
line
84
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Table_Name
);
#
line
default
#
line
hidden
WriteLiteral
(
"</th>\r\n <th class=\"min-width\">"
);
#
line
85
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Table_Retries
);
#
line
default
#
line
hidden
WriteLiteral
(
"</th>\r\n <th class=\"align-right\">"
);
#
line
86
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Table_ExpiresAt
);
#
line
default
#
line
hidden
WriteLiteral
(
"</th>\r\n </tr>\r\n </thead>\r\n "
+
" <tbody>\r\n"
);
...
...
@@ -260,34 +313,45 @@ WriteLiteral(@"
#
line
hidden
WriteLiteral
(
" <tr class=\"js-jobs-list-row hover\">\r\n "
+
" <td>\r\n <input typ"
+
"e=\"checkbox\" class=\"js-jobs-list-checkbox\" name=\"
job
s[]\" value=\""
);
"e=\"checkbox\" class=\"js-jobs-list-checkbox\" name=\"
message
s[]\" value=\""
);
#
line
94
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
message
.
Id
);
Write
(
message
.
Id
);
#
line
default
#
line
hidden
WriteLiteral
(
"\" />\r\n </td>\r\n "
+
" <td class=\"word-break\">\r\n "
);
" <td class=\"word-break\">\r\n <a href=\"ja"
+
"vascript:;\" data-url=\'"
);
#
line
97
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
message
.
Name
);
Write
(
Url
.
To
(
"/published/message/"
)+
message
.
Id
);
#
line
default
#
line
hidden
WriteLiteral
(
"\r\n </td>\r\n "
+
"<td>\r\n "
);
WriteLiteral
(
"\' class=\"openModal\">#"
);
#
line
97
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
message
.
Id
);
#
line
default
#
line
hidden
WriteLiteral
(
"</a>\r\n </td>\r\n "
+
" <td>\r\n "
);
#
line
100
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
message
.
Content
);
Write
(
message
.
Name
);
#
line
default
...
...
@@ -368,24 +432,61 @@ WriteLiteral(@" <div>
<div class=""modal-content"">
<div class=""modal-header"">
<button type=""button"" class=""close"" data-dismiss=""modal"" aria-label=""Close""><span aria-hidden=""true"">×</span></button>
<h4 class=""modal-title"">M
odal title
</h4>
<h4 class=""modal-title"">M
essage Content
</h4>
</div>
<div class=""modal-body"">
<p>One fine body…</p>
<div id=""jsonContent"" style=""max-height:500px;overflow-y:auto;"" class=""modal-body"">
</div>
<div class=""modal-footer"">
<button type=""button"" class=""btn btn-default"" data-dismiss=""modal"">Close</button>
<button type=""button"" class=""btn btn-primary"">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
"
);
<button type=""button"" class=""btn btn-sm btn-primary"" id=""formatBtn"" onclick="""">"
);
#
line
131
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Modal_Format
);
#
line
default
#
line
hidden
WriteLiteral
(
"</button>\r\n <button type=\"button\" class=\"btn btn-s"
+
"m btn-primary\" id=\"rawBtn\" onclick=\"\">"
);
#
line
132
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Modal_Raw
);
#
line
default
#
line
hidden
WriteLiteral
(
"</button>\r\n <button type=\"button\" class=\"btn btn-s"
+
"m btn-primary\" id=\"expandBtn\" onclick=\"\">"
);
#
line
133
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Modal_Expand
);
#
line
default
#
line
hidden
WriteLiteral
(
"</button>\r\n <button type=\"button\" class=\"btn btn-s"
+
"m btn-primary\" id=\"collapseBtn\" onclick=\"\">"
);
#
line
134
"..\..\Dashboard\Pages\PublishedPage.cshtml"
Write
(
Strings
.
MessagesPage_Model_Collaspse
);
#
line
default
#
line
hidden
WriteLiteral
(
"</button>\r\n </div>\r\n </div><!--"
+
" /.modal-content -->\r\n </div><!-- /.modal-dialog -->\r\n "
+
" </div><!-- /.modal -->\r\n </div>\r\n"
);
#
line
1
39
"..\..\Dashboard\Pages\PublishedPage.cshtml"
#
line
1
40
"..\..\Dashboard\Pages\PublishedPage.cshtml"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment