diff --git a/ext/src/_locales/en/messages.json b/ext/src/_locales/en/messages.json index f146de0..e300ace 100755 --- a/ext/src/_locales/en/messages.json +++ b/ext/src/_locales/en/messages.json @@ -18,32 +18,44 @@ } - , "optionsBridgeCategoryName": { - "message": "Bridge" - } - , "optionsBridgeCategoryDescription": { - "message": "Native bridge application." - } , "optionsBridgeLoading": { "message": "Loading bridge info..." } - , "optionsBridgeMissing": { - "message": "Bridge application not found. Try downloading and installing the latest version." + , "optionsBridgeFoundStatusText": { + "message": "Bridge found" + } + , "optionsBridgeNotFoundStatusText": { + "message": "Bridge not found. Try downloading and installing the latest version." } , "optionsBridgeInfo": { "message": "Bridge info:" } - , "optionsBridgeStatusCompatible": { - "message": "STATUS: COMPATIBLE" + , "optionsBridgeStatsVersion": { + "message": "Version:" } - , "optionsBridgeStatusIncompatible": { - "message": "STATUS: INCOMPATIBLE" + , "optionsBridgeStatsExpectedVersion": { + "message": "Expected version:" } - , "optionsBridgeOlder": { - "message": "Bridge version older than expected, try updating bridge to the latest bridge version." + , "optionsBridgeStatsCompatibility": { + "message": "Compatibility:" } - , "optionsBridgeNewer": { - "message": "Bridge version newer than expected, try updating extension to the latest bridge version." + , "optionsBridgeStatsRecommendedAction": { + "message": "Recommended action:" + } + , "optionsBridgeCompatible": { + "message": "COMPATIBLE" + } + , "optionsBridgeIncompatible": { + "message": "INCOMPATIBLE" + } + , "optionsBridgeOlderAction": { + "message": "Bridge version older than expected, try updating bridge to the latest version." + } + , "optionsBridgeNewerAction": { + "message": "Bridge version newer than expected, try updating extension to the latest version." + } + , "optionsBridgeNoAction": { + "message": "No action needed." } , "optionsMediaCategoryName": { @@ -66,7 +78,7 @@ "message": "Local media casting enabled" } , "optionsLocalMediaServerPort": { - "message": "HTTP server port" + "message": "HTTP server port:" } , "optionsUserAgentWhitelistCategoryName": { @@ -79,7 +91,7 @@ "message": "Site whitelist enabled" } , "optionsUserAgentWhitelistContent": { - "message": "Match patterns (newline-separated)" + "message": "Match patterns (newline-separated):" } , "optionsUserAgentWhitelistBasicView": { "message": "Basic View" @@ -113,7 +125,7 @@ "message": "Screen mirroring enabled" } , "optionsMirroringAppId": { - "message": "Receiver app ID" + "message": "Receiver app ID:" } , "optionsReset": { diff --git a/ext/src/options/assets/icons8-cancel-120.png b/ext/src/options/assets/icons8-cancel-120.png new file mode 100644 index 0000000..5f9750b Binary files /dev/null and b/ext/src/options/assets/icons8-cancel-120.png differ diff --git a/ext/src/options/assets/icons8-ok-120.png b/ext/src/options/assets/icons8-ok-120.png new file mode 100644 index 0000000..10b59df Binary files /dev/null and b/ext/src/options/assets/icons8-ok-120.png differ diff --git a/ext/src/options/index.jsx b/ext/src/options/index.jsx index 1f2afac..3b9a096 100644 --- a/ext/src/options/index.jsx +++ b/ext/src/options/index.jsx @@ -165,13 +165,84 @@ class App extends Component { render () { return (
| { _("optionsBridgeStatsVersion") } | +{ bridgeInfo.version } | +
|---|---|
| { _("optionsBridgeStatsExpectedVersion") } | +{ APPLICATION_VERSION } | +
| { _("optionsBridgeStatsCompatibility") } | ++ { bridgeInfo.isVersionCompatible + ? _("optionsBridgeCompatible") + : _("optionsBridgeIncompatible") } + | +
| { _("optionsBridgeStatsRecommendedAction") } | ++ { do { + if (bridgeInfo.isVersionOlder) { + _("optionsBridgeOlderAction") + } else if (bridgeInfo.isVersionNewer) { + _("optionsBridgeNewerAction") + } else { + _("optionsBridgeNoAction") + } + }} + | +