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
cf90bc0a
Commit
cf90bc0a
authored
Aug 31, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename file.
parent
7f3b8c0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
cap.css
src/DotNetCore.CAP/Dashboard/Content/css/cap.css
+0
-0
cap.js
src/DotNetCore.CAP/Dashboard/Content/js/cap.js
+15
-15
No files found.
src/DotNetCore.CAP/Dashboard/Content/css/
hangfire
.css
→
src/DotNetCore.CAP/Dashboard/Content/css/
cap
.css
View file @
cf90bc0a
File moved
src/DotNetCore.CAP/Dashboard/Content/js/
hangfire
.js
→
src/DotNetCore.CAP/Dashboard/Content/js/
cap
.js
View file @
cf90bc0a
(
function
(
hangfire
)
{
hangfire
.
config
=
{
pollInterval
:
$
(
"
#
hangfire
Config
"
).
data
(
"
pollinterval
"
),
pollUrl
:
$
(
"
#
hangfire
Config
"
).
data
(
"
pollurl
"
),
(
function
(
cap
)
{
cap
.
config
=
{
pollInterval
:
$
(
"
#
cap
Config
"
).
data
(
"
pollinterval
"
),
pollUrl
:
$
(
"
#
cap
Config
"
).
data
(
"
pollurl
"
),
locale
:
document
.
documentElement
.
lang
};
hangfire
.
Metrics
=
(
function
()
{
cap
.
Metrics
=
(
function
()
{
function
Metrics
()
{
this
.
_metrics
=
{};
}
...
...
@@ -92,7 +92,7 @@
graph
.
render
();
}
hangfire
.
RealtimeGraph
=
(
function
()
{
cap
.
RealtimeGraph
=
(
function
()
{
function
RealtimeGraph
(
element
,
succeeded
,
failed
,
succeededStr
,
failedStr
)
{
this
.
_succeeded
=
succeeded
;
this
.
_failed
=
failed
;
...
...
@@ -130,7 +130,7 @@
return
RealtimeGraph
;
})();
hangfire
.
HistoryGraph
=
(
function
()
{
cap
.
HistoryGraph
=
(
function
()
{
function
HistoryGraph
(
element
,
succeeded
,
failed
,
succeededStr
,
failedStr
)
{
this
.
_initGraph
(
element
,
{
renderer
:
'
area
'
,
...
...
@@ -153,7 +153,7 @@
return
HistoryGraph
;
})();
hangfire
.
StatisticsPoller
=
(
function
()
{
cap
.
StatisticsPoller
=
(
function
()
{
function
StatisticsPoller
(
metricsCallback
,
statisticsUrl
,
pollInterval
)
{
this
.
_metricsCallback
=
metricsCallback
;
this
.
_listeners
=
[];
...
...
@@ -201,12 +201,12 @@
return
StatisticsPoller
;
})();
hangfire
.
Page
=
(
function
()
{
cap
.
Page
=
(
function
()
{
function
Page
(
config
)
{
this
.
_metrics
=
new
Hangfire
.
Metrics
();
this
.
_metrics
=
new
Cap
.
Metrics
();
var
self
=
this
;
this
.
_poller
=
new
Hangfire
.
StatisticsPoller
(
this
.
_poller
=
new
Cap
.
StatisticsPoller
(
function
()
{
return
self
.
_metrics
.
getNames
();
},
config
.
pollUrl
,
config
.
pollInterval
);
...
...
@@ -227,7 +227,7 @@
var
succeededStr
=
$
(
realtimeElement
).
data
(
'
succeeded-string
'
);
var
failedStr
=
$
(
realtimeElement
).
data
(
'
failed-string
'
);
var
realtimeGraph
=
new
Hangfire
.
RealtimeGraph
(
realtimeElement
,
succeeded
,
failed
,
succeededStr
,
failedStr
);
var
realtimeGraph
=
new
Cap
.
RealtimeGraph
(
realtimeElement
,
succeeded
,
failed
,
succeededStr
,
failedStr
);
this
.
_poller
.
addListener
(
function
(
data
)
{
realtimeGraph
.
appendHistory
(
data
);
...
...
@@ -264,7 +264,7 @@
var
succeededStr
=
$
(
historyElement
).
data
(
'
succeeded-string
'
);
var
failedStr
=
$
(
historyElement
).
data
(
'
failed-string
'
);
var
historyGraph
=
new
Hangfire
.
HistoryGraph
(
historyElement
,
succeeded
,
failed
,
succeededStr
,
failedStr
);
var
historyGraph
=
new
Cap
.
HistoryGraph
(
historyElement
,
succeeded
,
failed
,
succeededStr
,
failedStr
);
$
(
window
).
resize
(
function
()
{
historyGraph
.
update
();
...
...
@@ -483,8 +483,8 @@
return
Page
;
})();
})(
window
.
Hangfire
=
window
.
Hangfire
||
{});
})(
window
.
Cap
=
window
.
Cap
||
{});
$
(
function
()
{
Hangfire
.
page
=
new
Hangfire
.
Page
(
Hangfire
.
config
);
Cap
.
page
=
new
Cap
.
Page
(
Cap
.
config
);
});
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