Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit c3788f4

Browse files
committed
Version bump
1 parent 8ab06aa commit c3788f4

File tree

8 files changed

+69
-29
lines changed

8 files changed

+69
-29
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "raven-reader",
33
"productName": "Raven Reader",
4-
"version": "1.0.48",
4+
"version": "1.0.49",
55
"author": "Hello Efficiency Inc. <[email protected]>",
66
"description": "Simple desktop RSS Reader",
77
"license": "MIT",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"Connect Feedbin":"Connect Feedbin","Log into Feedbin":"Log into Feedbin","Connect Self-hosted (Google Reader API)":"Connect Self-hosted (Google Reader API)","Log into Self Hosted RSS Service":"Log into Self Hosted RSS Service","Enter username":"Enter username","Connect Fever":"Connect Fever","Log into Fever":"Log into Fever","Disconnect Self-hosted (Google Reader API)":"Disconnect Self-hosted (Google Reader API)","Copy link":"Copy link","Copy feed link":"Copy feed link","Edit feed":"Edit feed","Unsubscribe":"Unsubscribe","start in tray":"start in tray","Automatically add to Recently Read":"Automatically add to Recently Read","Manage Categories":"Manage Categories","Categories":"Categories","Manage categories":"Manage categories","Title":"Title","Subscription title updated":{"":"Subscription title updated."},"Category":"Category","Rename folder":"Rename folder","Delete":"Delete","Category renamed":"Category renamed","No categories available":"No categories available","Feed in this categories would not be deleted":"Feed in this categories would not be deleted","Feeds":"Feeds","Action":"Action","Are you sure you want delete this Category?":"Are you sure you want delete this Category?","Manage Feeds":"Manage Feeds","Manage feeds":"Manage feeds","No feeds available":"No feeds available","Feed":"Feed","selected":"selected","Articles":"Articles","Add Category":"Add Category","[object Object]":"[object Object]","Add category":"Add category","Please select atleast one feed":"Please select atleast one feed","Add to new folder":"Add to new folder","Move to folder":"Move to folder","Move to category":"Move to category","Move":"Move","Add to new category":"Add to new category","Please subscribe to atleast one feed to add category":"Please subscribe to atleast one feed to add category","Add new feed":"Add new feed","add":"add","Category cannot be empty":{"":"Category cannot be empty."},"Articles would inside this feed would be deleted":"Articles would inside this feed would be deleted","Are you sure you want unsubscrube this Feed?":"Are you sure you want unsubscrube this Feed?","Articles inside this feed would be deleted":"Articles inside this feed would be deleted","Edit Feedbin":"Edit Feedbin","Disconnect Feedbin":"Disconnect Feedbin"}
1+
{"Connect Feedbin":"Connect Feedbin","Log into Feedbin":"Log into Feedbin","Connect Self-hosted (Google Reader API)":"Connect Self-hosted (Google Reader API)","Log into Self Hosted RSS Service":"Log into Self Hosted RSS Service","Enter username":"Enter username","Connect Fever":"Connect Fever","Log into Fever":"Log into Fever","Disconnect Self-hosted (Google Reader API)":"Disconnect Self-hosted (Google Reader API)","Copy link":"Copy link","Copy feed link":"Copy feed link","Edit feed":"Edit feed","Unsubscribe":"Unsubscribe","start in tray":"start in tray","Automatically add to Recently Read":"Automatically add to Recently Read","Manage Categories":"Manage Categories","Categories":"Categories","Manage categories":"Manage categories","Title":"Title","Subscription title updated":{"":"Subscription title updated."},"Category":"Category","Rename folder":"Rename folder","Delete":"Delete","Category renamed":"Category renamed","No categories available":"No categories available","Feed in this categories would not be deleted":"Feed in this categories would not be deleted","Feeds":"Feeds","Action":"Action","Are you sure you want delete this Category?":"Are you sure you want delete this Category?","Manage Feeds":"Manage Feeds","Manage feeds":"Manage feeds","No feeds available":"No feeds available","Feed":"Feed","selected":"selected","Articles":"Articles","Add Category":"Add Category","[object Object]":"[object Object]","Add category":"Add category","Please select atleast one feed":"Please select atleast one feed","Add to new folder":"Add to new folder","Move to folder":"Move to folder","Move to category":"Move to category","Move":"Move","Add to new category":"Add to new category","Please subscribe to atleast one feed to add category":"Please subscribe to atleast one feed to add category","Add new feed":"Add new feed","add":"add","Category cannot be empty":{"":"Category cannot be empty."},"Articles would inside this feed would be deleted":"Articles would inside this feed would be deleted","Are you sure you want unsubscrube this Feed?":"Are you sure you want unsubscrube this Feed?","Articles inside this feed would be deleted":"Articles inside this feed would be deleted","Edit Feedbin":"Edit Feedbin","Disconnect Feedbin":"Disconnect Feedbin","Disable content preview":"Disable content preview","Content preview":"Content preview"}

public/locales/fr/translation.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"All Feeds": "Tous les aliments",
2+
"All Feeds": "Tous les flux",
33
"Favourites": "Favoris",
44
"Unread Articles": "Articles non lus",
55
"Recently Read": "Lu récemment",
66
"Recently Played": "Joué récemment",
77
"Saved articles": "Articles sauvegardés",
8-
"Show more": "En savoir plus",
8+
"Show more": "Montrer plus",
99
"Show less": "Montrer moins",
1010
"Subscriptions": "Abonnements",
1111
"Add": "Ajouter",
@@ -19,7 +19,7 @@
1919
"Enter website or feed url": "Entrez l'url du site web ou du flux",
2020
"Enter new category": "Entrez dans une nouvelle catégorie",
2121
"Search": "Recherchez",
22-
"Refresh All Feeds": "Rafraîchir tous les aliments",
22+
"Refresh All Feeds": "Rafraîchir tous les flux",
2323
"Mark all as read": "Tout marquer comme lu",
2424
"Settings": "Paramètres",
2525
"Preferences": "Préférences",
@@ -29,22 +29,22 @@
2929
"Oldest articles first": "Les articles les plus anciens en premier",
3030
"Disable images in Articles": "Désactiver les images dans les articles",
3131
"Full article view by default": "Affichage de l'article complet par défaut",
32-
"Delete all feed, category and article data": "Supprimer toutes les données relatives aux aliments pour animaux, aux catégories et aux articles",
32+
"Delete all feed, category and article data": "Supprimer les données de flux, de catégorie et d'article",
3333
"Clear all data": "Effacer toutes les données",
34-
"Proxy Setting": "Paramètres de procuration",
34+
"Proxy Setting": "Paramètres du proxy",
3535
"Web Server (HTTP)": "Serveur web (HTTP) :",
3636
"Secure Web Server (HTTPS)": "Serveur Web sécurisé (HTTPS) :",
3737
"Bypass proxy settings for these hosts & domains": "Contournez les paramètres de proxy pour ces hôtes et domaines :",
38-
"Set proxy & restart": "Définir la procuration et redémarrer",
39-
"Connect Instapaper": "Connect Instapaper",
40-
"Connect pocket": "Connect pocket",
38+
"Set proxy & restart": "Définir le proxy et redémarrer",
39+
"Connect Instapaper": "Se connecter à Instapaper",
40+
"Connect pocket": "Se connecter à Pocket",
4141
"Log into Instapaper": "Se connecter à Instapaper",
4242
"Enter endpoint": "Entrer le point final",
4343
"Enter email": "Entrez votre adresse électronique",
4444
"Enter password": "Entrez le mot de passe",
45-
"Read it later services": "Lisez-le plus tard services",
45+
"Read it later services": "Services de lecture différée",
4646
"Sharing": "Partage",
47-
"Save articles to read it later services": "Sauvegarder les articles pour les lire plus tard services",
47+
"Save articles to read it later services": "Sauvegarder les articles vers un service de lecture différée",
4848
"Instapaper": "Instapaper",
4949
"Connect": "Connexion",
5050
"Pocket": "Pocket",
@@ -71,25 +71,25 @@
7171
"Format Options": "Options de format",
7272
"Mark as unread": "Marquer comme non lu",
7373
"Mark as read": "Marquer comme lu",
74-
"Mark as unfavourite": "Marquer comme défavorable",
74+
"Mark as unfavourite": "Retirer des favoris",
7575
"Mark as favourite": "Marquer comme favori",
7676
"Disconnect": "déconnecter",
7777
"Sync Account": "Compte de synchronisation",
7878
"Quit": "quitter",
7979
"Edit": "Éditer",
80-
"View": "Voir",
80+
"View": "Affichage",
8181
"Add subscription": "Ajouter un abonnement",
82-
"Item": "Point",
83-
"Next item": "Point suivant",
84-
"Previous item": "Point précédent",
82+
"Item": "Élément",
83+
"Next item": "Élément suivant",
84+
"Previous item": "Élément précédent",
8585
"Toggle read": "Basculer pour lire",
8686
"Toggle favourite": "Basculer le favori",
8787
"Mark all read": "Marquer tout comme lu",
8888
"Save offline": "Sauvegarder hors ligne",
8989
"View in browser": "Afficher dans le navigateur",
9090
"Import and Export": "Importation et exportation",
91-
"Import subscriptions": "Abonnements à l'importation",
92-
"Export subscriptions": "Abonnements à l'exportation",
91+
"Import subscriptions": "Importer des abonnements",
92+
"Export subscriptions": "Exporter des abonnements",
9393
"Speech": "Discours",
9494
"Automatically add to Recently": "Ajouter automatiquement à Récemment"
9595
}

src/background.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ async function createWindow () {
7878
})
7979

8080
// Maximize window on startup when not in development
81-
if (!isDevelopment) win.maximize()
81+
if (!isDevelopment && win !== null) {
82+
win.maximize()
83+
}
8284

8385
i18nextBackend.mainBindings(ipcMain, win, fs)
8486

@@ -100,10 +102,6 @@ async function createWindow () {
100102
// Load the index.html when not in development
101103
win.loadURL(winUrl)
102104

103-
win.on('closed', () => {
104-
win = null
105-
})
106-
107105
const proxy = store.get('settings.proxy') ? store.get('settings.proxy') : null
108106
let proxyRules = 'direct://'
109107
if (proxy) {
@@ -316,7 +314,7 @@ ipcMain.on('online-status-changed', (event, status) => {
316314
app.on('activate', () => {
317315
// On macOS it's common to re-create a window in the app when the
318316
// dock icon is clicked and there are no other windows open.
319-
if (win === null) {
317+
if (BrowserWindow.getAllWindows().length === 0) {
320318
createWindow()
321319
}
322320
})
@@ -355,7 +353,9 @@ app.whenReady().then(() => {
355353
app.on('before-quit', () => {
356354
app.isQuiting = true
357355
globalShortcut.unregisterAll()
358-
tray.destroy()
356+
if (typeof tray !== typeof undefined) {
357+
tray.destroy()
358+
}
359359
})
360360

361361
// Exit cleanly on request from parent process in development mode.

src/components/ArticleListItem.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
</div>
2727
<h6><strong>{{ article.articles.title }}</strong></h6>
2828
<img
29-
v-if="article.articles.cover"
29+
v-if="contentPreview && article.articles.cover"
3030
:src="article.articles.cover"
3131
class="img-fluid ratio-16x9 my-2"
3232
:alt="article.articles.title"
3333
loading="lazy"
3434
>
35-
<p>{{ article.articles.contentSnippet }}</p>
35+
<p v-if="contentPreview">{{ article.articles.contentSnippet }}</p>
3636
<p
3737
v-if="article.articles.favourite"
3838
class="text-right mb-0"
@@ -66,6 +66,11 @@ export default {
6666
default: null
6767
}
6868
},
69+
computed: {
70+
contentPreview () {
71+
return this.$store.state.Setting.contentPreview
72+
}
73+
},
6974
methods: {
7075
formatDate (article) {
7176
let formatDate

src/components/PreferenceWindowModal.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@
100100
@input="saveFullArticlePreferences"
101101
/>
102102
</b-form-group>
103+
<b-form-group :label="getTranslatedLabel('Content preview')">
104+
<b-form-radio-group
105+
id="contentPreview"
106+
v-model="contentPreview"
107+
buttons
108+
button-variant="outline-primary"
109+
size="sm"
110+
:options="options"
111+
name="contentPreview"
112+
@input="saveContentPreviewPreferences"
113+
/>
114+
</b-form-group>
103115
<b-form-group :label="getTranslatedLabel('Delete all feed, category and article data')">
104116
<b-button
105117
variant="danger"
@@ -369,6 +381,7 @@ export default {
369381
disableImages: 'off',
370382
recentlyRead: 'off',
371383
fullArticleDefault: 'off',
384+
contentPreview: 'on',
372385
keepread_options: [
373386
{ value: 1, text: '1 week' },
374387
{ value: 2, text: '2 weeks' },
@@ -435,6 +448,7 @@ export default {
435448
this.disableImages = this.$store.state.Setting.disableImages ? 'on' : 'off'
436449
this.recentlyRead = this.$store.state.Setting.recentlyReadPreference ? 'on' : 'off'
437450
this.fullArticleDefault = this.$store.state.Setting.fullArticleDefault ? 'on' : 'off'
451+
this.contentPreview = this.$store.state.Setting.contentPreview ? 'on' : 'off'
438452
if (this.$store.state.Setting.proxy) {
439453
this.proxy.http = this.$store.state.Setting.proxy.http
440454
this.proxy.https = this.$store.state.Setting.proxy.https
@@ -502,6 +516,17 @@ export default {
502516
})
503517
this.hideModal()
504518
},
519+
saveContentPreviewPreferences (preference) {
520+
this.$store.dispatch('setContentPreviewPreference', preference).then(() => {
521+
this.$store.dispatch('loadArticles')
522+
})
523+
this.$toasted.show('Content Preview preference changed.', {
524+
theme: 'outline',
525+
position: 'top-center',
526+
duration: 3000
527+
})
528+
this.hideModal()
529+
},
505530
saveFullArticlePreferences (preference) {
506531
this.$store.dispatch('setFullArticlePreference', preference)
507532
this.$toasted.show('Full Article preference changed.', {

src/main/tray.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export default function createTray (mainWindow, i18nextMain) {
5454
tray.setContextMenu(contextMenu)
5555
}
5656
tray.on('click', () => {
57-
mainWindow.show()
57+
if (mainWindow !== null) {
58+
mainWindow.show()
59+
}
5860
if (process.platform === 'darwin' && !app.dock.isVisible()) {
5961
app.dock.show()
6062
}

src/store/modules/Setting.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const state = {
3737
disableImages: false,
3838
fullArticleDefault: false,
3939
recentlyReadPreference: false,
40+
contentPreview: false,
4041
offline: false,
4142
proxy: {
4243
http: '',
@@ -79,6 +80,9 @@ const mutations = {
7980
SET_THEME_OPTION (state, data) {
8081
state.darkMode = data
8182
},
83+
SET_CONTENT_PREVIEW_PREFERENCE (state, data) {
84+
state.contentPreview = data
85+
},
8286
SET_FULL_ARTICLE_PREFERENCE (state, data) {
8387
state.fullArticleDefault = data
8488
},
@@ -242,6 +246,10 @@ const actions = {
242246
electronstore.storeSetSettingItem('set', 'settings.recentlyReadPreference', data === 'on')
243247
commit('SET_RECENTLY_READ_PREFERENCE', data === 'on')
244248
},
249+
setContentPreviewPreference ({ commit }, data) {
250+
electronstore.storeSetSettingItem('set', 'settings.contentPreviewPreference', data === 'on')
251+
commit('SET_CONTENT_PREVIEW_PREFERENCE', data === 'on')
252+
},
245253
setFullArticlePreference ({ commit }, data) {
246254
electronstore.storeSetSettingItem('set', 'settings.fullArticlePreference', data === 'on')
247255
commit('SET_FULL_ARTICLE_PREFERENCE', data === 'on')

0 commit comments

Comments
 (0)