mirror of
https://github.com/comatory/fb2iCal
synced 2025-06-05 22:09:25 +02:00
feature: add store for tracking network request to API
This commit is contained in:
5
lib/frontend/records/index.js
Normal file
5
lib/frontend/records/index.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import Request from './request'
|
||||
|
||||
export {
|
||||
Request,
|
||||
}
|
9
lib/frontend/records/request.js
Normal file
9
lib/frontend/records/request.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export default class Request {
|
||||
constructor({
|
||||
id,
|
||||
error,
|
||||
}) {
|
||||
this.id = id
|
||||
this.error = error
|
||||
}
|
||||
}
|
@@ -1,7 +1,9 @@
|
||||
import configStore from './configStore'
|
||||
import eventStore from './eventStore'
|
||||
import requestStore from './requestStore'
|
||||
|
||||
export {
|
||||
configStore,
|
||||
eventStore,
|
||||
requestStore,
|
||||
}
|
||||
|
3
lib/frontend/stores/requestStore.js
Normal file
3
lib/frontend/stores/requestStore.js
Normal file
@@ -0,0 +1,3 @@
|
||||
import { writable } from 'svelte/store'
|
||||
|
||||
export default writable(null)
|
Reference in New Issue
Block a user