Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions public/_locales/ca/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Gràfics i dades",
"storage": "Emmagatzematge i memòria cau"
},
"includeSubfolders": {
"description": "En filtrar missatges d'una carpeta, s'inclouran els missatges de les subcarpetes.",
"label": "Incloure subcarpetes"
},
"liveCountUp": {
"description": "Mostra el progrés en directe dels números calculats quan es processen les dades estadístiques",
"info": "Habilitar això pot augmentar el temps de processament",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Grafy a data",
"storage": "Úložiště a mezipaměť"
},
"includeSubfolders": {
"description": "Při filtrování zpráv ve složce budou zahrnuty i zprávy z podsložek.",
"label": "Zahrnout podsložky"
},
"liveCountUp": {
"description": "Zobrazit aktuální průběh vypočítaných čísel při zpracování statistických dat",
"info": "Tato aktivace může prodloužit dobu zpracování",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Diagramme & Daten",
"storage": "Speicher & Cache"
},
"includeSubfolders": {
"description": "Beim Filtern von Nachrichten eines Ordners werden auch Nachrichten aus Unterordnern einbezogen.",
"label": "Unterordner einbeziehen"
},
"liveCountUp": {
"description": "Live-Fortschritt der berechneten Zahlen bei der Berechnung von Statistikdaten anzeigen",
"info": "Das Aktivieren dieser Option kann eine erhöhte Berechnungsdauer zur Folge haben",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
"stats": "Charts & Data",
"storage": "Storage & Cache"
},
"includeSubfolders": {
"description": "When filtering messages of a folder, messages of subfolders will be included.",
"label": "Include Subfolders"
},
"liveCountUp": {
"description": "Show live progress of calculated numbers when processing stats data",
"info": "Enabling this may increase processing time",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Gráficos y Datos",
"storage": "Almacenamiento y Caché"
},
"includeSubfolders": {
"description": "Al filtrar mensajes de una carpeta, se incluirán los mensajes de las subcarpetas.",
"label": "Incluir subcarpetas"
},
"liveCountUp": {
"description": "Mostrar el progreso en directo de los números calculados al procesar datos de estadísticas",
"info": "Habilitar esto puede aumentar el tiempo de procesamiento",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/fi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Kaaviot ja tiedot",
"storage": "Tallennus ja välimuisti"
},
"includeSubfolders": {
"description": "Kun viestejä suodatetaan kansion mukaan, myös alikansioiden viestit sisällytetään mukaan.",
"label": "Sisällytä alikansiot"
},
"liveCountUp": {
"description": "Näytä laskutoimitusten eteneminen reaaliajassa tilastotietoja käsiteltäessä.",
"info": "Tämän toiminnon ottaminen käyttöön voi pidentää käsittelyaikaa",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Graphiques et Données",
"storage": "Stockage et Cache"
},
"includeSubfolders": {
"description": "Lors du filtrage des messages d'un dossier, les messages des sous-dossiers seront inclus.",
"label": "Inclure les sous-dossiers"
},
"liveCountUp": {
"description": "Afficher la progression en direct des nombres calculés lors du traitement des données statistiques",
"info": "Activer cette option peut augmenter le temps de traitement",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/gl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Gráficos e datos",
"storage": "Almacenamento e caché"
},
"includeSubfolders": {
"description": "Ao filtrar mensaxes dun cartafol, tamén se incluirán as mensaxes dos seus subcartafoles.",
"label": "Incluír subcartafoles"
},
"liveCountUp": {
"description": "Mostra o progreso en directo dos números calculados ao procesar os datos das estatísticas",
"info": "Activar isto pode aumentar o tempo de procesamento",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "चार्ट और डेटा",
"storage": "भंडारण और कैश"
},
"includeSubfolders": {
"description": "किसी फ़ोल्डर के संदेशों को फ़िल्टर करते समय, उप-फ़ोल्डर के संदेशों को भी शामिल किया जाएगा।",
"label": "उप-फ़ोल्डर शामिल करें"
},
"liveCountUp": {
"description": "आँकड़ों के डेटा को संसाधित करते समय परिकलित संख्याओं की लाइव प्रगति दिखाएं",
"info": "इसे सक्षम करने से प्रसंस्करण समय बढ़ सकता है",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/hu/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Ábrázolások és adatok",
"storage": "Tárolás és gyorsítótár"
},
"includeSubfolders": {
"description": "Ha egy mappa üzeneteit szűrjük, az almappák üzenetei is bekerülnek.",
"label": "Almappák belefoglalása"
},
"liveCountUp": {
"description": "A kiszámított számok élő előrehaladásának megjelenítése statisztikai adatok feldolgozásakor",
"info": "Ennek engedélyezése növelheti a feldolgozási időt",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Grafik & Data",
"storage": "Penyimpanan & Cache"
},
"includeSubfolders": {
"description": "Saat memfilter pesan dari sebuah folder, pesan dari subfolder juga akan disertakan.",
"label": "Sertakan Subfolder"
},
"liveCountUp": {
"description": "Tampilkan kemajuan langsung dari angka yang dihitung saat memproses data statistik",
"info": "Mengaktifkan ini dapat meningkatkan waktu pemrosesan",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Grafici e Dati",
"storage": "Archiviazione e Cache"
},
"includeSubfolders": {
"description": "Quando si filtrano i messaggi di una cartella, verranno inclusi anche i messaggi delle sottocartelle.",
"label": "Includi sottocartelle"
},
"liveCountUp": {
"description": "Mostra i progressi in tempo reale dei numeri calcolati durante l'elaborazione dei dati",
"info": "L'attivazione di questa opzione può aumentare il tempo",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "チャートとデータ",
"storage": "ストレージとキャッシュ"
},
"includeSubfolders": {
"description": "フォルダーのメッセージをフィルタリングする際、サブフォルダーのメッセージも含まれます。",
"label": "サブフォルダーを含める"
},
"liveCountUp": {
"description": "統計データの処理時に計算された数値の進捗をライブで表示",
"info": "これを有効にすると、処理時間が長くなる場合があります",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/nl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Diagrammen en gegevens",
"storage": "Opslag en cache"
},
"includeSubfolders": {
"description": "Bij het filteren van berichten van een map worden ook berichten uit submappen opgenomen.",
"label": "Submappen opnemen"
},
"liveCountUp": {
"description": "Live-voortgang van berekende getallen weergeven bij het verwerken van statistische gegevens",
"info": "Dit inschakelen kan de verwerkingstijd verlengen",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Wykresy & Dane",
"storage": "Pamięć masowa & Podręczna"
},
"includeSubfolders": {
"description": "Podczas filtrowania wiadomości z folderu uwzględnione zostaną również wiadomości z podfolderów.",
"label": "Uwzględnij podfoldery"
},
"liveCountUp": {
"description": "Pokaż na żywo postęp obliczonych liczb podczas przetwarzania danych statystycznych",
"info": "Włączenie tego może wydłużyć czas przetwarzania",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/pt-BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Gráficos e Dados",
"storage": "Armazenamento e Cache"
},
"includeSubfolders": {
"description": "Ao filtrar mensagens de uma pasta, as mensagens das subpastas também serão incluídas.",
"label": "Incluir subpastas"
},
"liveCountUp": {
"description": "Mostre o progresso ao vivo de números calculados ao processar dados de estatísticas",
"info": "Ativar isso pode aumentar o tempo de processamento",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Gráficos e Dados",
"storage": "Armazenamento e Cache"
},
"includeSubfolders": {
"description": "Ao filtrar mensagens de uma pasta, as mensagens das subpastas serão incluídas.",
"label": "Incluir subpastas"
},
"liveCountUp": {
"description": "Mostrar o progresso ao vivo dos números calculados ao processar dados estatísticos",
"info": "Ativar isso pode aumentar o tempo de processamento",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Графики & Данные",
"storage": "Данные & Кэш"
},
"includeSubfolders": {
"description": "При фильтрации сообщений по папке будут также включены сообщения из подпапок.",
"label": "Включить подпапки"
},
"liveCountUp": {
"description": "Показывать ход вычисления чисел в реальном времени при обработке статистических данных",
"info": "Включение этого параметра может увеличить время обработки",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/sk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Grafy a údaje",
"storage": "Ukladanie a vyrovnávacia pamäť"
},
"includeSubfolders": {
"description": "Pri filtrovaní správ v priečinku budú zahrnuté aj správy z podpriečinkov.",
"label": "Zahrnúť podpriečinky"
},
"liveCountUp": {
"description": "Zobraziť aktuálny stav vypočítaných čísel pri spracovaní údajov štatistík",
"info": "Povolenie tejto funkcie môže predĺžiť čas spracovania",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/sv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Diagram & Data",
"storage": "Lagring & Cache"
},
"includeSubfolders": {
"description": "Vid filtrering av meddelanden i en mapp inkluderas även meddelanden i undermappar.",
"label": "Inkludera undermappar"
},
"liveCountUp": {
"description": "Visa direktförlopp för beräknade tal vid bearbetning av statistikdata",
"info": "Aktivering av detta kan öka bearbetningstiden",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/th/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "แผนภูมิและข้อมูล",
"storage": "ที่เก็บข้อมูลและแคช"
},
"includeSubfolders": {
"description": "เมื่อกรองข้อความของโฟลเดอร์ ข้อความในโฟลเดอร์ย่อยจะถูกรวมด้วย",
"label": "รวมโฟลเดอร์ย่อย"
},
"liveCountUp": {
"description": "แสดงความคืบหน้าของตัวเลขที่คำนวณได้เมื่อประมวลผลข้อมูลสถิติ",
"info": "การเปิดใช้งานนี้อาจเพิ่มเวลาในการประมวลผล",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/tr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Grafikler ve Veriler",
"storage": "Depolama ve Önbellek"
},
"includeSubfolders": {
"description": "Bir klasörün mesajları filtrelenirken, alt klasörlerdeki mesajlar da dahil edilecektir.",
"label": "Alt Klasörleri Dahil Et"
},
"liveCountUp": {
"description": "İstatistik verilerini işlerken hesaplanan sayıların canlı ilerlemesini göster",
"info": "Bunu etkinleştirmek işlem süresini artırabilir",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/uk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Графіки й дані",
"storage": "Сховище та кеш"
},
"includeSubfolders": {
"description": "Під час фільтрування повідомлень теки повідомлення з підтек також будуть включені.",
"label": "Включити підтеки"
},
"liveCountUp": {
"description": "Показувати прогрес обчислення в реальному часі під час обробки даних статистики",
"info": "Увімкнення цього параметра може збільшити час обробки",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/uz/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "Жадваллар Ва Маълумотлар",
"storage": "Сақлаш Ва Кеш"
},
"includeSubfolders": {
"description": "Жилд хабарларини фильтрлашда, ички папкалар хабарлари ҳам киритилади.",
"label": "Ички папкаларни киритиш"
},
"liveCountUp": {
"description": "Статистик маълумотларни қайта ишлашда ҳисобланган рақамларнинг жонли ўсишини кўрсатиш",
"info": "Буни ёқиш ишлов бериш вақтини ошириши мумкин",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/zh-Hans-CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "图表与资料",
"storage": "存储与缓存"
},
"includeSubfolders": {
"description": "筛选文件夹邮件时,将包含子文件夹中的邮件。",
"label": "包含子文件夹"
},
"liveCountUp": {
"description": "处理统计数据时显示计算数字的实时进度",
"info": "启用此选项可能会增加处理时间",
Expand Down
4 changes: 4 additions & 0 deletions public/_locales/zh-Hant-TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
"stats": "圖表和資料",
"storage": "儲存和快取"
},
"includeSubfolders": {
"description": "篩選文件夾郵件時,也會包含子文件夾中的郵件。",
"label": "包含子文件夾"
},
"liveCountUp": {
"description": "在處理統計數據時顯示計算數字的實時進度",
"info": "啟用此選項可能會增加處理時間",
Expand Down
3 changes: 3 additions & 0 deletions src/Options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<start-of-week-option />
<!-- option: addresses -->
<addresses-option />
<!-- option: includeSubfolders -->
<include-subfolders-option />
<!-- option: account selection -->
<accounts-option />
<!-- option: selfMessages -->
Expand Down Expand Up @@ -95,6 +97,7 @@ import LiveCountUpOption from '@/options/LiveCountUpOption.vue';
import AutoRefreshOption from '@/options/AutoRefreshOption.vue';
import StartOfWeekOption from '@/options/StartOfWeekOption.vue';
import AddressesOption from '@/options/AddressesOption.vue';
import IncludeSubfoldersOption from '@/options/IncludeSubfoldersOption.vue';
import AccountsOption from '@/options/AccountsOption.vue';
import SelfMessagesOption from '@/options/SelfMessagesOption.vue';
import MaxListCountOption from '@/options/MaxListCountOption.vue';
Expand Down
12 changes: 11 additions & 1 deletion src/composables/useStatsData.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useI18n } from 'vue-i18n';
import { accentColors, defaultColors, defaultOptions } from '@/definitions.js';
import {
filterActiveAccounts,
flattenSubfolders,
queryMessages,
setTheme,
sortAndLimitObject,
Expand Down Expand Up @@ -124,6 +125,9 @@ export function useStatsData() {
.split(',')
.map((x) => x.trim());
}
if (n.includeSubfolders != o.includeSubfolders) {
options.includeSubfolders = n.includeSubfolders;
}
if (JSON.stringify(n.accounts) != JSON.stringify(o.accounts)) {
options.accounts = n.accounts;
}
Expand Down Expand Up @@ -170,6 +174,7 @@ export function useStatsData() {
.split(',')
.map((x) => x.trim())
: defaultOptions.addresses;
options.includeSubfolders = result.options.includeSubfolders ?? defaultOptions.includeSubfolders;
options.accounts = result.options.accounts ?? defaultOptions.accounts;
options.accountColors = result.options.accountColors ?? defaultOptions.accountColors;
options.selfMessages = result.options.selfMessages ?? defaultOptions.selfMessages;
Expand Down Expand Up @@ -260,7 +265,12 @@ export function useStatsData() {
? a.identities.map((i) => i.email.toLowerCase())
: options.addresses;
// get all folders and subfolders from given account or selected folder of active account (filter field)
const foldersList = active.folder ? [JSON.parse(JSON.stringify(active.folder))] : await traverseAccount(a);
const foldersList = active.folder
? [
JSON.parse(JSON.stringify(active.folder)),
...(options.includeSubfolders ? flattenSubfolders(active.folder) : []),
]
: await traverseAccount(a);
// build folder list for filter selection, if not already present
if (!folders.value.length) {
folders.value = foldersList;
Expand Down
1 change: 1 addition & 0 deletions src/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const defaultOptions = {
autoRefreshInterval: 30,
startOfWeek: localStartOfWeek(),
addresses: '',
includeSubfolders: false,
accounts: [],
accountColors: {},
selfMessages: 'none',
Expand Down
35 changes: 35 additions & 0 deletions src/options/IncludeSubfoldersOption.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<template>
<div class="entry">
<label for="includeSubfolders">
<div class="label-head">
{{ t('options.includeSubfolders.label') }}
<span class="note-icon" v-tooltip="t('options.note.refreshCacheRequired')">
<ts-icon size="tiny">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path
d="M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"
/>
<path
d="M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"
/>
<path d="M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" />
<line x1="3" y1="3" x2="21" y2="21" />
</ts-icon>
</span>
</div>
<div class="description">{{ t('options.includeSubfolders.description') }}</div>
</label>
<div class="action">
<ts-switch v-model="options.includeSubfolders" id="includeSubfolders" />
</div>
</div>
</template>

<script setup>
import { inject } from 'vue';
import { useI18n } from 'vue-i18n';

const { options } = inject('engine');

const { t } = useI18n();
</script>
Loading