Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
duniter-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
typescript
modules
duniter-ui
Commits
58057f39
Commit
58057f39
authored
9 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
More beautiful logs
parent
935f5ea6
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/js/controllers/main/home/tabs/LogsController.js
+5
-0
5 additions, 0 deletions
app/js/controllers/main/home/tabs/LogsController.js
app/styles/main.styl
+16
-1
16 additions, 1 deletion
app/styles/main.styl
app/views/main/home/tabs/logs.jade
+2
-1
2 additions, 1 deletion
app/views/main/home/tabs/logs.jade
with
23 additions
and
2 deletions
app/js/controllers/main/home/tabs/LogsController.js
+
5
−
0
View file @
58057f39
...
...
@@ -7,6 +7,11 @@ module.exports = ($scope, ws, UIUtils) => {
let
co
=
require
(
'
co
'
);
let
_
=
require
(
'
underscore
'
);
// Default values
if
(
!
localStorage
.
getItem
(
'
log_error
'
))
localStorage
.
setItem
(
'
log_error
'
,
true
);
if
(
!
localStorage
.
getItem
(
'
log_warn
'
))
localStorage
.
setItem
(
'
log_warn
'
,
true
);
if
(
!
localStorage
.
getItem
(
'
log_info
'
))
localStorage
.
setItem
(
'
log_info
'
,
true
);
$scope
.
logsSize
=
100
;
$scope
.
logs
=
_
.
range
(
0
,
$scope
.
logsSize
).
map
(()
=>
""
);
$scope
.
logsString
=
""
;
...
...
This diff is collapsed.
Click to expand it.
app/styles/main.styl
+
16
−
1
View file @
58057f39
...
...
@@ -131,7 +131,7 @@ blockquote
#logs
font-size 12px
max-height
6
00px
max-height
4
00px
#logs p
line-height 21px
...
...
@@ -160,5 +160,20 @@ blockquote
.log-level.trace
color: #d0f
.log-msg.info
background-color: none
.log-msg.warn
background-color: #FFFE99
.log-msg.error
background-color: #F8D5D2
.log-msg.debug
background-color: rgba(29, 255, 255, 0.23)
.log-msg.trace
background-color: rgba(217, 0, 255, 0.14)
.log-time
color: #888888
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/views/main/home/tabs/logs.jade
+
2
−
1
View file @
58057f39
...
...
@@ -20,8 +20,9 @@
p {{ 'graphs.blockchain.range' | translate }}
.range-field
input(type="range" min="10" max="10000" ng-model="logsSize" ng-mouseup="changeSize()")
.card-action.left-align.ui-scrollable
pre#logs
p(ng-repeat="log in logs track by $index")
span.log-time {{ log.timestamp }}
span.log-level(class="{{ log.level }}") {{ log.level }}
span {{ log.msg }}
span
.log-msg(class="{{ log.level }}")
{{ log.msg }}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment