Skip to content

Commit f866ad5

Browse files
committed
Fix spinners, change socket emit names
1 parent 5ca6538 commit f866ad5

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

resources/assets/scripts/components/server/Server.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@
129129
},
130130
131131
_socket_error: function (err) {
132-
this.$emit('socket-error', {err});
132+
this.$emit('socket::error', {err});
133133
},
134134
135135
_socket_connect: function () {
136-
this.$emit('socket-connected');
136+
this.$emit('socket::connected');
137137
},
138138
139139
_socket_status: function (data) {
140-
this.$emit('socket-status', {data});
140+
this.$emit('socket::status', {data});
141141
},
142142
143143
_socket_serverLog: function (data) {

resources/assets/scripts/components/server/subpages/ConsolePage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* logs from the server to populate into the terminal.
4040
*/
4141
mounted: function () {
42-
this.$parent.$on('socket-connected', () => {
42+
this.$parent.$on('socket::connected', () => {
4343
this.terminal.open(this.$refs.terminal);
4444
this.terminal.fit();
4545
this.terminal.clear();
@@ -52,7 +52,7 @@
5252
this.terminal.writeln(data);
5353
});
5454
55-
this.$parent.$on('socket-status', s => {
55+
this.$parent.$on('socket::status', s => {
5656
if (s === Status.STATUS_OFF) {
5757
this.loadingConsole = false;
5858
}

resources/assets/styles/components/spinners.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.spinner {
2-
color: transparent;
2+
@apply .h-4 .relative .bg-transparent;
33
pointer-events: none;
4-
position: relative;
5-
@apply .h-16;
4+
5+
&.spinner-xl {
6+
@apply .h-16;
7+
}
68

79
&:after {
810
@apply .border-2 .border-grey-light .absolute .block .h-4 .w-4 .rounded-full;

0 commit comments

Comments
 (0)