+
+
+
+
+ {{ message }}
+
+
+
+
+
+
+
+
+
diff --git a/src/renderer/components/ft-prompt/ft-prompt.css b/src/renderer/components/ft-prompt/ft-prompt.css
index cb3b2cf1..dc95ddab 100644
--- a/src/renderer/components/ft-prompt/ft-prompt.css
+++ b/src/renderer/components/ft-prompt/ft-prompt.css
@@ -11,7 +11,11 @@
.promptCard {
width: 95%;
- margin-top: 40vh;
+ margin: 0;
+ position: absolute;
+ top: 40%;
+ -ms-transform: translateY(-40%);
+ transform: translateY(-40%);
}
.center {
diff --git a/src/renderer/components/general-settings/general-settings.js b/src/renderer/components/general-settings/general-settings.js
index bcd41525..50aee467 100644
--- a/src/renderer/components/general-settings/general-settings.js
+++ b/src/renderer/components/general-settings/general-settings.js
@@ -547,6 +547,9 @@ export default Vue.extend({
checkForUpdates: function () {
return this.$store.getters.getCheckForUpdates
},
+ checkForBlogPosts: function () {
+ return this.$store.getters.getCheckForBlogPosts
+ },
backendPreference: function () {
return this.$store.getters.getBackendPreference
},
@@ -658,6 +661,7 @@ export default Vue.extend({
'updateEnableSearchSuggestions',
'updateBackendFallback',
'updateCheckForUpdates',
+ 'updateCheckForBlogPosts',
'updateBarColor',
'updateBackendPreference',
'updateLandingPage',
diff --git a/src/renderer/components/general-settings/general-settings.vue b/src/renderer/components/general-settings/general-settings.vue
index 4bc37022..a2b00c86 100644
--- a/src/renderer/components/general-settings/general-settings.vue
+++ b/src/renderer/components/general-settings/general-settings.vue
@@ -7,24 +7,36 @@
>
{{ $t("Settings.General Settings.General Settings") }}
-
-
-
-
-
+
{
+ return state.checkForBlogPosts
+ },
+
getBarColor: () => {
return state.barColor
},
@@ -194,6 +199,9 @@ const actions = {
case 'checkForUpdates':
commit('setCheckForUpdates', result.value)
break
+ case 'checkForBlogPosts':
+ commit('setCheckForBlogPosts', result.value)
+ break
case 'enableSearchSuggestions':
commit('setEnableSearchSuggestions', result.value)
break
@@ -300,6 +308,14 @@ const actions = {
})
},
+ updateCheckForBlogPosts ({ commit }, checkForBlogPosts) {
+ settingsDb.update({ _id: 'checkForBlogPosts' }, { _id: 'checkForBlogPosts', value: checkForBlogPosts }, { upsert: true }, (err, numReplaced) => {
+ if (!err) {
+ commit('setCheckForBlogPosts', checkForBlogPosts)
+ }
+ })
+ },
+
updateEnableSearchSuggestions ({ commit }, enableSearchSuggestions) {
settingsDb.update({ _id: 'enableSearchSuggestions' }, { _id: 'enableSearchSuggestions', value: enableSearchSuggestions }, { upsert: true }, (err, numReplaced) => {
if (!err) {
@@ -502,6 +518,9 @@ const mutations = {
setCheckForUpdates (state, checkForUpdates) {
state.checkForUpdates = checkForUpdates
},
+ setCheckForBlogPosts (state, checkForBlogPosts) {
+ state.checkForBlogPosts = checkForBlogPosts
+ },
setBackendPreference (state, backendPreference) {
state.backendPreference = backendPreference
},
diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js
index 2bc4b4ee..d327db0f 100644
--- a/src/renderer/store/modules/utils.js
+++ b/src/renderer/store/modules/utils.js
@@ -7,6 +7,7 @@ const state = {
trendingCache: null,
showProgressBar: false,
progressBarPercentage: 0,
+ recentBlogPosts: [],
searchSettings: {
sortBy: 'relevance',
time: '',
@@ -86,6 +87,10 @@ const getters = {
getProgressBarPercentage () {
return state.progressBarPercentage
+ },
+
+ getRecentBlogPosts () {
+ return state.recentBlogPosts
}
}
@@ -399,6 +404,10 @@ const mutations = {
setSearchDuration (state, value) {
state.searchSettings.duration = value
+ },
+
+ setRecentBlogPosts (state, value) {
+ state.recentBlogPosts = value
}
}
diff --git a/static/locales/en-US.yaml b/static/locales/en-US.yaml
index aa0cc2ad..b520ef17 100644
--- a/static/locales/en-US.yaml
+++ b/static/locales/en-US.yaml
@@ -29,6 +29,10 @@ Close: Close
Back: Back
Forward: Forward
+Version $ is now available! Click for more details: Version $ is now available! Click for more details
+Download From Site: Download From Site
+A new blog is now available, $. Click to view more: A new blog is now available, $. Click to view more
+
# Search Bar
Search / Go to URL: Search / Go to URL
# In Filter Button
@@ -87,6 +91,8 @@ Settings:
Settings: Settings
General Settings:
General Settings: General Settings
+ Check for Updates: Check for Updates
+ Check for Latest Blog Posts: Check for Latest Blog Posts
Fallback to Non-Preferred Backend on Failure: Fallback to Non-Preferred Backend
on Failure
Enable Search Suggestions: Enable Search Suggestions