File tree Expand file tree Collapse file tree 17 files changed +63
-93
lines changed Expand file tree Collapse file tree 17 files changed +63
-93
lines changed Original file line number Diff line number Diff line change @@ -120,16 +120,20 @@ function greeting () {
120
120
const cols = process . stdout . columns
121
121
let text = ''
122
122
123
- if ( cols > 85 ) text = 'lets-build'
124
- else if ( cols > 60 ) text = 'lets-|build'
125
- else text = false
123
+ if ( cols > 85 ) {
124
+ text = 'lets-build'
125
+ } else if ( cols > 60 ) {
126
+ text = 'lets-|build'
127
+ } else {
128
+ text = false
129
+ }
126
130
127
131
if ( text && ! isCI ) {
128
132
say ( text , {
129
- colors : [ 'yellow ' ] ,
133
+ colors : [ 'magentaBright ' ] ,
130
134
font : 'simple3d' ,
131
135
space : false
132
136
} )
133
- } else console . log ( chalk . yellow . bold ( '\n lets-build' ) )
137
+ } else console . log ( chalk . magentaBright . bold ( '\n lets-build' ) )
134
138
console . log ( )
135
139
}
Original file line number Diff line number Diff line change @@ -128,17 +128,21 @@ function greeting () {
128
128
const cols = process . stdout . columns
129
129
let text = ''
130
130
131
- if ( cols > 104 ) text = 'electron-vue'
132
- else if ( cols > 76 ) text = 'electron-|vue'
133
- else text = false
131
+ if ( cols > 104 ) {
132
+ text = 'motrix-dev'
133
+ } else if ( cols > 76 ) {
134
+ text = 'motrix-|dev'
135
+ } else {
136
+ text = false
137
+ }
134
138
135
139
if ( text ) {
136
140
say ( text , {
137
- colors : [ 'yellow ' ] ,
141
+ colors : [ 'magentaBright ' ] ,
138
142
font : 'simple3d' ,
139
143
space : false
140
144
} )
141
- } else console . log ( chalk . yellow . bold ( '\n electron-vue ' ) )
145
+ } else console . log ( chalk . magentaBright . bold ( '\n motrix-dev ' ) )
142
146
console . log ( chalk . blue ( ' getting ready...' ) + '\n' )
143
147
}
144
148
Original file line number Diff line number Diff line change 43
43
"electron-store" : " ^8.1.0" ,
44
44
"electron-updater" : " ^5.3.0" ,
45
45
"element-ui" : " ^2.15.13" ,
46
- "i18next" : " ^22.4.12 " ,
46
+ "i18next" : " ^22.4.13 " ,
47
47
"lodash" : " ^4.17.21" ,
48
48
"node-fetch" : " ^2.6.1" ,
49
49
"normalize.css" : " ^8.0.1" ,
85
85
"eslint" : " ^7.32.0" ,
86
86
"eslint-friendly-formatter" : " ^4.0.1" ,
87
87
"eslint-plugin-import" : " ^2.27.5" ,
88
- "eslint-plugin-n" : " ^15.6.1" ,
89
88
"eslint-plugin-node" : " ^11.1.0" ,
90
89
"eslint-plugin-promise" : " ^6.1.1" ,
91
90
"eslint-plugin-vue" : " ^9.9.0" ,
101
100
"vue-loader" : " ^15.10.1" ,
102
101
"vue-style-loader" : " ^4.1.3" ,
103
102
"vue-template-compiler" : " ^2.7.14" ,
104
- "webpack" : " ^5.76.2 " ,
103
+ "webpack" : " ^5.77.0 " ,
105
104
"webpack-cli" : " ^5.0.1" ,
106
- "webpack-dev-server" : " ^4.12.0 " ,
105
+ "webpack-dev-server" : " ^4.13.1 " ,
107
106
"webpack-hot-middleware" : " ^2.25.3" ,
108
107
"webpack-merge" : " ^5.8.0" ,
109
108
"worker-loader" : " ^3.0.8"
Original file line number Diff line number Diff line change @@ -713,7 +713,7 @@ export default class Application extends EventEmitter {
713
713
} )
714
714
715
715
this . on ( 'application:setup-protocols-client' , ( protocols ) => {
716
- if ( is . dev ( ) || is . mas ( ) ) {
716
+ if ( is . dev ( ) || is . mas ( ) || ! protocols ) {
717
717
return
718
718
}
719
719
logger . info ( '[Motrix] setup protocols client:' , protocols )
Original file line number Diff line number Diff line change 1
1
import { EventEmitter } from 'events'
2
2
import { nativeTheme } from 'electron'
3
- import is from 'electron-is'
4
3
5
4
import { APP_THEME } from '@shared/constants'
6
5
import logger from '../core/Logger'
@@ -25,10 +24,6 @@ export default class ThemeManager extends EventEmitter {
25
24
}
26
25
27
26
handleEvents ( ) {
28
- if ( ! is . macOS ( ) ) {
29
- return
30
- }
31
-
32
27
nativeTheme . on ( 'updated' , ( ) => {
33
28
const theme = getSystemTheme ( )
34
29
this . systemTheme = theme
You can’t perform that action at this time.
0 commit comments