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
aa361583
Commit
aa361583
authored
Sep 24, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
6f001fb5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
7 deletions
+5
-7
DotNetCore.CAP.MySql.csproj
src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj
+1
-1
CAP.DashboardOptionsExtensions.cs
...otNetCore.CAP/Dashboard/CAP.DashboardOptionsExtensions.cs
+1
-1
DashboardContext.cs
src/DotNetCore.CAP/Dashboard/DashboardContext.cs
+0
-3
HtmlHelper.cs
src/DotNetCore.CAP/Dashboard/HtmlHelper.cs
+1
-1
UrlHelper.cs
src/DotNetCore.CAP/Dashboard/UrlHelper.cs
+2
-1
No files found.
src/DotNetCore.CAP.MySql/DotNetCore.CAP.MySql.csproj
View file @
aa361583
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<PackageReference Include="Dapper" Version="1.50.2" />
<PackageReference Include="Dapper" Version="1.50.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.0.0" />
<PackageReference Include="MySqlConnector" Version="0.2
5.1
" />
<PackageReference Include="MySqlConnector" Version="0.2
6.5
" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
src/DotNetCore.CAP/Dashboard/CAP.DashboardOptionsExtensions.cs
View file @
aa361583
...
@@ -26,7 +26,7 @@ namespace DotNetCore.CAP
...
@@ -26,7 +26,7 @@ namespace DotNetCore.CAP
services
.
AddSingleton
<
IHttpClientCache
,
MemoryHttpClientCache
>();
services
.
AddSingleton
<
IHttpClientCache
,
MemoryHttpClientCache
>();
services
.
AddSingleton
<
IRequestMapper
,
RequestMapper
>();
services
.
AddSingleton
<
IRequestMapper
,
RequestMapper
>();
//services.AddScoped<IRequestScopedDataRepository, ScopedDataRepository>();
//services.AddScoped<IRequestScopedDataRepository, ScopedDataRepository>();
services
.
AddScoped
<
IRequestScopedDataRepository
,
HttpDataRepository
>();
//
services.AddScoped<IRequestScopedDataRepository, HttpDataRepository>();
}
}
}
}
}
}
...
...
src/DotNetCore.CAP/Dashboard/DashboardContext.cs
View file @
aa361583
...
@@ -25,8 +25,6 @@ namespace DotNetCore.CAP.Dashboard
...
@@ -25,8 +25,6 @@ namespace DotNetCore.CAP.Dashboard
public
DashboardResponse
Response
{
get
;
protected
set
;
}
public
DashboardResponse
Response
{
get
;
protected
set
;
}
public
ISession
Session
{
get
;
protected
set
;
}
public
IServiceProvider
RequestServices
{
get
;
protected
set
;
}
public
IServiceProvider
RequestServices
{
get
;
protected
set
;
}
}
}
...
@@ -44,7 +42,6 @@ namespace DotNetCore.CAP.Dashboard
...
@@ -44,7 +42,6 @@ namespace DotNetCore.CAP.Dashboard
Request
=
new
CapDashboardRequest
(
httpContext
);
Request
=
new
CapDashboardRequest
(
httpContext
);
Response
=
new
CapDashboardResponse
(
httpContext
);
Response
=
new
CapDashboardResponse
(
httpContext
);
RequestServices
=
httpContext
.
RequestServices
;
RequestServices
=
httpContext
.
RequestServices
;
Session
=
httpContext
.
Session
;
}
}
public
HttpContext
HttpContext
{
get
;
}
public
HttpContext
HttpContext
{
get
;
}
...
...
src/DotNetCore.CAP/Dashboard/HtmlHelper.cs
View file @
aa361583
...
@@ -192,7 +192,7 @@ namespace DotNetCore.CAP.Dashboard
...
@@ -192,7 +192,7 @@ namespace DotNetCore.CAP.Dashboard
public
NonEscapedString
NodeSwitchLink
(
string
id
)
public
NonEscapedString
NodeSwitchLink
(
string
id
)
{
{
return
Raw
(
$"<a class=\"job-method\"
href=\"
{
_page
.
Url
.
NodeSwitch
(
id
)}
\">
{
Strings
.
NodePage_Switch
}
</a>"
);
return
Raw
(
$"<a class=\"job-method\"
onclick=\"nodeSwitch(
{
id
}
);\" href=\"javascript:;
\">
{
Strings
.
NodePage_Switch
}
</a>"
);
}
}
#
region
MethodEscaped
#
region
MethodEscaped
...
...
src/DotNetCore.CAP/Dashboard/UrlHelper.cs
View file @
aa361583
using
System
;
using
System
;
using
System.Net
;
namespace
DotNetCore.CAP.Dashboard
namespace
DotNetCore.CAP.Dashboard
{
{
...
@@ -31,7 +32,7 @@ namespace DotNetCore.CAP.Dashboard
...
@@ -31,7 +32,7 @@ namespace DotNetCore.CAP.Dashboard
public
string
NodeSwitch
(
string
id
)
public
string
NodeSwitch
(
string
id
)
{
{
return
To
(
"/nodes/node/"
+
id
);
return
To
(
"/nodes/node/"
+
WebUtility
.
UrlEncode
(
id
)
);
}
}
public
string
LinkToPublished
()
public
string
LinkToPublished
()
...
...
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