0 : ˆl–Ãa¾”*j"Tâ€Á;p.©‹FÿÅ ƒh¹Äa–Ãa¾”*j"Tâ€ÆZ¸ØÅ£Ã 0 / ˆl–ß=¿J hŠm@¹q—.å1hßÇ ƒAs_‹I|¥Žƒî4ÃVŸÀÅ ˆ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const useProgress = create(( set, get ) => ({ filter:'all', progressText:'', notices: [], error:false, percentageCompleted:0, progressLoaded:false, setFilter: (filter) => { sessionStorage.rsssl_task_filter = filter; set(state => ({ filter })) }, fetchFilter: () => { if ( typeof (Storage) !== "undefined" && sessionStorage.rsssl_task_filter ) { let filter = sessionStorage.rsssl_task_filter; set(state => ({ filter:filter })) } }, getProgressData: async () => { const {percentage, text, notices, error } = await rsssl_api.runTest('progressData', 'refresh').then( ( response ) => { return response; }); set(state => ({ notices:notices, percentageCompleted:percentage, progressText:text, progressLoaded:true, error:error, })) }, dismissNotice: async (noticeId) => { let notices = get().notices; notices = notices.filter(function (notice) { return notice.id !== noticeId; }); set(state => ({ notices:notices })) const {percentage} = await rsssl_api.runTest('dismiss_task', noticeId); set({ percentageCompleted:percentage }) } })); export default useProgress; ˆÄÀÅ -™
| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| goal.cpython-39.opt-..> | 2026-05-20 15:48 | 259 | ||
| goal.cpython-39.pyc | 2026-05-20 15:48 | 259 | ||
| selector.cpython-39...> | 2026-05-20 15:48 | 267 | ||
| selector.cpython-39.pyc | 2026-05-20 15:48 | 267 | ||
| history.cpython-39.o..> | 2026-05-20 15:48 | 286 | ||
| history.cpython-39.pyc | 2026-05-20 15:48 | 286 | ||
| subject.cpython-39.o..> | 2026-05-20 15:48 | 302 | ||
| subject.cpython-39.pyc | 2026-05-20 15:48 | 302 | ||
| __init__.cpython-39...> | 2026-05-20 15:48 | 544 | ||