From 45551a64f15a29d2e763ff4a5af9bc719ad77e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=91=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D1=83=D1=80=D0=B8=D1=81=D1=82?= Date: Tue, 19 May 2026 23:13:55 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BE=D1=82=D1=81=D0=BB=D0=B5=D0=B6=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B2=D1=8B=D0=B3=D1=80=D1=83=D0=B7?= =?UTF-8?q?=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/News_section/NewsCard.vue | 1 + src/components/Settings_section/Settings.vue | 8 ++ .../SettingsDownloadsCounts.vue | 88 +++++++++++++++++++ src/services/settingsService.js | 5 ++ 4 files changed, 102 insertions(+) create mode 100644 src/components/Settings_section/SettingsDownloadsCounts.vue diff --git a/src/components/News_section/NewsCard.vue b/src/components/News_section/NewsCard.vue index c684d91..8b1652b 100644 --- a/src/components/News_section/NewsCard.vue +++ b/src/components/News_section/NewsCard.vue @@ -30,6 +30,7 @@ const props = defineProps({ svodka: Boolean, donesenie: Boolean, bilutene: Boolean, + download: Boolean, }); const { isDark } = useDarkMode(); diff --git a/src/components/Settings_section/Settings.vue b/src/components/Settings_section/Settings.vue index 28d1fbb..e6e8fdc 100644 --- a/src/components/Settings_section/Settings.vue +++ b/src/components/Settings_section/Settings.vue @@ -126,6 +126,13 @@ > + + +
+ +
@@ -142,6 +149,7 @@ import { } from '@/services/settingsService.js' import { getTodayDate } from '@/utils/date.js' import SettingsDownloads from './SettingsDownloads.vue' +import SettingsDownloadsCounts from './SettingsDownloadsCounts.vue' import DatePicker from './DatePicker.vue' const sources = ref([{ name: '', promt: '' }]) diff --git a/src/components/Settings_section/SettingsDownloadsCounts.vue b/src/components/Settings_section/SettingsDownloadsCounts.vue new file mode 100644 index 0000000..f70201b --- /dev/null +++ b/src/components/Settings_section/SettingsDownloadsCounts.vue @@ -0,0 +1,88 @@ + + + diff --git a/src/services/settingsService.js b/src/services/settingsService.js index c2a9d00..b168216 100644 --- a/src/services/settingsService.js +++ b/src/services/settingsService.js @@ -38,3 +38,8 @@ export async function downloadAll(dataStart, dataFinish, fieldName) { { responseType: 'blob' }, ) } + +export async function fetchDownloadCounts() { + const { data } = await api8001.get('/download_counts') + return data +}