File tree 10 files changed +170
-20
lines changed
10 files changed +170
-20
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ export interface Options {
219
219
customNotificationHTML? : string
220
220
/** notificationProps have higher priority than locale */
221
221
notificationProps? : NotificationProps
222
+ notificationConfig? : NotificationConfig
222
223
/**
223
224
* preset: zh_CN | zh_TW | en_US
224
225
* @default ' zh_CN'
@@ -255,7 +256,22 @@ export interface Options {
255
256
injectFileBase? : string
256
257
}
257
258
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
259
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
260
+
261
+ export interface NotificationConfig {
262
+ /**
263
+ * refresh button color
264
+ * @default ' #1677ff'
265
+ */
266
+ primaryColor? : string
267
+ /**
268
+ * dismiss button color
269
+ * @default ' rgba(0,0,0,.25)'
270
+ */
271
+ secondaryColor? : string
272
+ /** @default ' bottomRight' */
273
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
274
+ }
259
275
260
276
export interface NotificationProps {
261
277
title? : string
Original file line number Diff line number Diff line change @@ -194,8 +194,6 @@ module.exports = defineConfig({
194
194
## Options
195
195
196
196
``` ts
197
- function webUpdateNotice(options ? : Options ): Plugin
198
-
199
197
export interface Options {
200
198
/**
201
199
* support 'git_commit_hash' | 'pkg_version' | 'build_timestamp' | 'custom'
@@ -219,6 +217,7 @@ export interface Options {
219
217
customNotificationHTML? : string
220
218
/** notificationProps have higher priority than locale */
221
219
notificationProps? : NotificationProps
220
+ notificationConfig? : NotificationConfig
222
221
/**
223
222
* preset: zh_CN | zh_TW | en_US
224
223
* @default ' zh_CN'
@@ -255,7 +254,22 @@ export interface Options {
255
254
injectFileBase? : string
256
255
}
257
256
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
257
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
258
+
259
+ export interface NotificationConfig {
260
+ /**
261
+ * refresh button color
262
+ * @default ' #1677ff'
263
+ */
264
+ primaryColor? : string
265
+ /**
266
+ * dismiss button color
267
+ * @default ' rgba(0,0,0,.25)'
268
+ */
269
+ secondaryColor? : string
270
+ /** @default ' bottomRight' */
271
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
272
+ }
259
273
260
274
export interface NotificationProps {
261
275
title? : string
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ export interface Options {
219
219
customNotificationHTML? : string
220
220
/** notificationProps have higher priority than locale */
221
221
notificationProps? : NotificationProps
222
+ notificationConfig? : NotificationConfig
222
223
/**
223
224
* preset: zh_CN | zh_TW | en_US
224
225
* @default ' zh_CN'
@@ -255,7 +256,22 @@ export interface Options {
255
256
injectFileBase? : string
256
257
}
257
258
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
259
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
260
+
261
+ export interface NotificationConfig {
262
+ /**
263
+ * refresh button color
264
+ * @default ' #1677ff'
265
+ */
266
+ primaryColor? : string
267
+ /**
268
+ * dismiss button color
269
+ * @default ' rgba(0,0,0,.25)'
270
+ */
271
+ secondaryColor? : string
272
+ /** @default ' bottomRight' */
273
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
274
+ }
259
275
260
276
export interface NotificationProps {
261
277
title? : string
Original file line number Diff line number Diff line change @@ -194,8 +194,6 @@ module.exports = defineConfig({
194
194
## Options
195
195
196
196
``` ts
197
- function webUpdateNotice(options ? : Options ): Plugin
198
-
199
197
export interface Options {
200
198
/**
201
199
* support 'git_commit_hash' | 'pkg_version' | 'build_timestamp' | 'custom'
@@ -219,6 +217,7 @@ export interface Options {
219
217
customNotificationHTML? : string
220
218
/** notificationProps have higher priority than locale */
221
219
notificationProps? : NotificationProps
220
+ notificationConfig? : NotificationConfig
222
221
/**
223
222
* preset: zh_CN | zh_TW | en_US
224
223
* @default ' zh_CN'
@@ -255,7 +254,22 @@ export interface Options {
255
254
injectFileBase? : string
256
255
}
257
256
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
257
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
258
+
259
+ export interface NotificationConfig {
260
+ /**
261
+ * refresh button color
262
+ * @default ' #1677ff'
263
+ */
264
+ primaryColor? : string
265
+ /**
266
+ * dismiss button color
267
+ * @default ' rgba(0,0,0,.25)'
268
+ */
269
+ secondaryColor? : string
270
+ /** @default ' bottomRight' */
271
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
272
+ }
259
273
260
274
export interface NotificationProps {
261
275
title? : string
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ export interface Options {
219
219
customNotificationHTML? : string
220
220
/** notificationProps have higher priority than locale */
221
221
notificationProps? : NotificationProps
222
+ notificationConfig? : NotificationConfig
222
223
/**
223
224
* preset: zh_CN | zh_TW | en_US
224
225
* @default ' zh_CN'
@@ -255,7 +256,22 @@ export interface Options {
255
256
injectFileBase? : string
256
257
}
257
258
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
259
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
260
+
261
+ export interface NotificationConfig {
262
+ /**
263
+ * refresh button color
264
+ * @default ' #1677ff'
265
+ */
266
+ primaryColor? : string
267
+ /**
268
+ * dismiss button color
269
+ * @default ' rgba(0,0,0,.25)'
270
+ */
271
+ secondaryColor? : string
272
+ /** @default ' bottomRight' */
273
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
274
+ }
259
275
260
276
export interface NotificationProps {
261
277
title? : string
Original file line number Diff line number Diff line change @@ -194,8 +194,6 @@ module.exports = defineConfig({
194
194
## Options
195
195
196
196
``` ts
197
- function webUpdateNotice(options ? : Options ): Plugin
198
-
199
197
export interface Options {
200
198
/**
201
199
* support 'git_commit_hash' | 'pkg_version' | 'build_timestamp' | 'custom'
@@ -219,6 +217,7 @@ export interface Options {
219
217
customNotificationHTML? : string
220
218
/** notificationProps have higher priority than locale */
221
219
notificationProps? : NotificationProps
220
+ notificationConfig? : NotificationConfig
222
221
/**
223
222
* preset: zh_CN | zh_TW | en_US
224
223
* @default ' zh_CN'
@@ -255,7 +254,22 @@ export interface Options {
255
254
injectFileBase? : string
256
255
}
257
256
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
257
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
258
+
259
+ export interface NotificationConfig {
260
+ /**
261
+ * refresh button color
262
+ * @default ' #1677ff'
263
+ */
264
+ primaryColor? : string
265
+ /**
266
+ * dismiss button color
267
+ * @default ' rgba(0,0,0,.25)'
268
+ */
269
+ secondaryColor? : string
270
+ /** @default ' bottomRight' */
271
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
272
+ }
259
273
260
274
export interface NotificationProps {
261
275
title? : string
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ export interface Options {
219
219
customNotificationHTML? : string
220
220
/** notificationProps have higher priority than locale */
221
221
notificationProps? : NotificationProps
222
+ notificationConfig? : NotificationConfig
222
223
/**
223
224
* preset: zh_CN | zh_TW | en_US
224
225
* @default ' zh_CN'
@@ -255,7 +256,22 @@ export interface Options {
255
256
injectFileBase? : string
256
257
}
257
258
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
259
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
260
+
261
+ export interface NotificationConfig {
262
+ /**
263
+ * refresh button color
264
+ * @default ' #1677ff'
265
+ */
266
+ primaryColor? : string
267
+ /**
268
+ * dismiss button color
269
+ * @default ' rgba(0,0,0,.25)'
270
+ */
271
+ secondaryColor? : string
272
+ /** @default ' bottomRight' */
273
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
274
+ }
259
275
260
276
export interface NotificationProps {
261
277
title? : string
Original file line number Diff line number Diff line change @@ -194,8 +194,6 @@ module.exports = defineConfig({
194
194
## Options
195
195
196
196
``` ts
197
- function webUpdateNotice(options ? : Options ): Plugin
198
-
199
197
export interface Options {
200
198
/**
201
199
* support 'git_commit_hash' | 'pkg_version' | 'build_timestamp' | 'custom'
@@ -219,6 +217,7 @@ export interface Options {
219
217
customNotificationHTML? : string
220
218
/** notificationProps have higher priority than locale */
221
219
notificationProps? : NotificationProps
220
+ notificationConfig? : NotificationConfig
222
221
/**
223
222
* preset: zh_CN | zh_TW | en_US
224
223
* @default ' zh_CN'
@@ -255,7 +254,22 @@ export interface Options {
255
254
injectFileBase? : string
256
255
}
257
256
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
257
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
258
+
259
+ export interface NotificationConfig {
260
+ /**
261
+ * refresh button color
262
+ * @default ' #1677ff'
263
+ */
264
+ primaryColor? : string
265
+ /**
266
+ * dismiss button color
267
+ * @default ' rgba(0,0,0,.25)'
268
+ */
269
+ secondaryColor? : string
270
+ /** @default ' bottomRight' */
271
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
272
+ }
259
273
260
274
export interface NotificationProps {
261
275
title? : string
Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ export interface Options {
219
219
customNotificationHTML? : string
220
220
/** notificationProps have higher priority than locale */
221
221
notificationProps? : NotificationProps
222
+ notificationConfig? : NotificationConfig
222
223
/**
223
224
* preset: zh_CN | zh_TW | en_US
224
225
* @default ' zh_CN'
@@ -255,7 +256,22 @@ export interface Options {
255
256
injectFileBase? : string
256
257
}
257
258
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
259
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
260
+
261
+ export interface NotificationConfig {
262
+ /**
263
+ * refresh button color
264
+ * @default ' #1677ff'
265
+ */
266
+ primaryColor? : string
267
+ /**
268
+ * dismiss button color
269
+ * @default ' rgba(0,0,0,.25)'
270
+ */
271
+ secondaryColor? : string
272
+ /** @default ' bottomRight' */
273
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
274
+ }
259
275
260
276
export interface NotificationProps {
261
277
title? : string
Original file line number Diff line number Diff line change @@ -194,8 +194,6 @@ module.exports = defineConfig({
194
194
## Options
195
195
196
196
``` ts
197
- function webUpdateNotice(options ? : Options ): Plugin
198
-
199
197
export interface Options {
200
198
/**
201
199
* support 'git_commit_hash' | 'pkg_version' | 'build_timestamp' | 'custom'
@@ -219,6 +217,7 @@ export interface Options {
219
217
customNotificationHTML? : string
220
218
/** notificationProps have higher priority than locale */
221
219
notificationProps? : NotificationProps
220
+ notificationConfig? : NotificationConfig
222
221
/**
223
222
* preset: zh_CN | zh_TW | en_US
224
223
* @default ' zh_CN'
@@ -255,7 +254,22 @@ export interface Options {
255
254
injectFileBase? : string
256
255
}
257
256
258
- export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp'
257
+ export type VersionType = ' git_commit_hash' | ' pkg_version' | ' build_timestamp' | ' custom'
258
+
259
+ export interface NotificationConfig {
260
+ /**
261
+ * refresh button color
262
+ * @default ' #1677ff'
263
+ */
264
+ primaryColor? : string
265
+ /**
266
+ * dismiss button color
267
+ * @default ' rgba(0,0,0,.25)'
268
+ */
269
+ secondaryColor? : string
270
+ /** @default ' bottomRight' */
271
+ placement? : ' topLeft' | ' topRight' | ' bottomLeft' | ' bottomRight'
272
+ }
259
273
260
274
export interface NotificationProps {
261
275
title? : string
You can’t perform that action at this time.
0 commit comments