feat(src/assets/icons/icon-names.ts): добавляет новый иконку 'sprite' в список иконок

 feat(src/views/dev/TestView.vue): упрощает типизацию ответа от API для загрузки профилей
 feat(src/assets/icons/sprite.svg): добавляет новые иконки в спрайт
♻️ refactor(tsconfig.json): удаляет базовый URL из конфигурации TypeScript
This commit is contained in:
Oscar
2026-06-24 16:24:41 +03:00
parent a1261ce0db
commit ed51218249
6 changed files with 1395 additions and 1223 deletions

View File

@@ -149,7 +149,7 @@ function addLog(type: LogEntry['type'], message: string) {
async function loadProfiles() {
loadingProfiles.value = true
try {
const res = await axiosInstance.get<{ data: DevProfile[] }>('/api/v1/dev/profiles')
const res = await axiosInstance.get<DevProfile[]>('/api/v1/dev/profiles')
profiles.value = res.data
addLog('info', `Загружено профилей: ${profiles.value.length}`)
}
@@ -181,7 +181,7 @@ async function doReset(ids: string[]) {
return
resetting.value = true
try {
const res = await axiosInstance.delete<{ data: { deleted: Record<string, number>, reset: number } }>(
const res = await axiosInstance.delete<{ deleted: Record<string, number>, reset: number }>(
`/api/v1/dev/reset-flow?profileIds=${ids.join(',')}`,
)
const { deleted, reset } = res.data