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 +}