Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
92 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,49 @@ | ||
.plugin-web-update-notice-anchor { | ||
cursor: pointer; | ||
} | ||
.plugin-web-update-notice { | ||
position: fixed; | ||
right: 24px; | ||
bottom: 24px; | ||
user-select: none; | ||
} | ||
|
||
.plugin-web-update-notice-content { | ||
background-color: #fff; | ||
border-radius: 4px; | ||
color: #000000d9; | ||
box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d; | ||
padding: 12px 16px; | ||
padding: 8px 16px; | ||
line-height: 1.5715; | ||
width: 280px; | ||
} | ||
|
||
.plugin-web-update-notice-content-title { | ||
font-weight: 500; | ||
margin-bottom: 8px; | ||
margin-bottom: 4px; | ||
font-size: 15px; | ||
line-height: 24px; | ||
} | ||
|
||
.plugin-web-update-notice-content-desc { | ||
font-size: 13px; | ||
line-height: 24px; | ||
line-height: 20px; | ||
} | ||
.plugin-web-update-notice-refresh-btn { | ||
position: absolute; | ||
top: 8px; | ||
right: 8px; | ||
padding: 8px 12px; | ||
.plugin-web-update-notice-tools { | ||
margin-top: 4px; | ||
text-align: right; | ||
} | ||
.plugin-web-update-notice-btn { | ||
padding: 3px 8px; | ||
line-height: 1; | ||
border-radius: 4px; | ||
transition: background-color .2s linear; | ||
color: #1890ff; | ||
cursor: pointer; | ||
font-size: 14px; | ||
} | ||
|
||
.plugin-web-update-notice-refresh-btn:hover { | ||
background-color: rgba(64,87,109,.1); | ||
.plugin-web-update-notice-btn:hover { | ||
background-color: rgba(64, 87, 109, .1); | ||
} | ||
.plugin-web-update-notice-refresh-btn { | ||
color: #1677ff; | ||
} | ||
.plugin-web-update-notice-dismiss-btn { | ||
color: rgba(0,0,0,.25); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
export const JSON_FILE_NAME = 'web_version_by_plugin' | ||
|
||
export const INJECT_STYLE_FILE_NAME = 'webUpdateNoticeInjectStyle' | ||
|
||
/** .global is iife suffix */ | ||
export const INJECT_SCRIPT_FILE_NAME = 'webUpdateNoticeInjectScript.global' | ||
|
||
export const CUSTOM_UPDATE_EVENT_NAME = 'system_update_plugin_web_update_notification' | ||
|
||
export const NOTIFICATION_ANCHOR_CLASS_NAME = 'plugin-web-update-notice-anchor' | ||
|
||
/** refresh button class name */ | ||
export const NOTIFICATION_REFRESH_BTN_CLASS_NAME = 'plugin-web-update-notice-refresh-btn' | ||
/** dismiss button class name */ | ||
export const NOTIFICATION_DISMISS_BTN_CLASS_NAME = 'plugin-web-update-notice-dismiss-btn' | ||
export const LOCAL_STORAGE_PREFIX = 'web_update_check_dismiss_version_' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters