mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-03-02 03:40:21 +00:00
replace gif status indicators with unicode symbols
This commit is contained in:
committed by
Oliver Giles
parent
6e4c89bd73
commit
ae961b97cb
Binary file not shown.
|
Before Width: | Height: | Size: 178 B |
@@ -48,6 +48,22 @@
|
||||
right: 10px;
|
||||
padding: 20px;
|
||||
}
|
||||
span.status {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
text-align: center;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
span.success { color: forestgreen; }
|
||||
span.failed { color: firebrick; }
|
||||
span.aborted { color: indigo; }
|
||||
span.spin {
|
||||
color: steelblue;
|
||||
animation: 2s linear infinite spin;
|
||||
}
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -229,7 +245,7 @@
|
||||
</nav>
|
||||
<a v-on:click="toggleNotifications(!notify)" v-show="supportsNotifications" class="bell pull-right" :class="{'active':notify}" :title="(notify?'Disable':'Enable')+' notifications'">🔔</a>
|
||||
<router-view></router-view>
|
||||
<div v-show="!connected" id="popup-connecting"><img src="/spin.gif"> Connecting...</div>
|
||||
<div v-show="!connected" id="popup-connecting"><span class="status spin">⚙︎</span> Connecting...</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -75,7 +75,15 @@ const WebsocketHandler = function() {
|
||||
const Utils = {
|
||||
methods: {
|
||||
runIcon(result) {
|
||||
return result === "success" ? '<img src="/tick.gif">' : result === "failed" || result === "aborted" ? '<img src="/cross.gif">' : '<img src="/spin.gif">';
|
||||
var marker = '⚙';
|
||||
var classname = result;
|
||||
if (result === 'success')
|
||||
marker = '✔';
|
||||
else if (result === 'failed' || result === 'aborted')
|
||||
marker = '✘';
|
||||
else
|
||||
classname = 'spin';
|
||||
return '<span title="' + result + '" class="status ' + classname + '">' + marker + '︎</span>';
|
||||
},
|
||||
formatDate: function(unix) {
|
||||
// TODO: reimplement when toLocaleDateString() accepts formatting options on most browsers
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 114 B |
Reference in New Issue
Block a user