init
This commit is contained in:
commit
d69342b2e9
160 changed files with 28681 additions and 0 deletions
10
studio/src/stores/analytics.ts
Normal file
10
studio/src/stores/analytics.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { atom } from 'nanostores'
|
||||
import { createFetcherStore } from './fetcher'
|
||||
import type { AnalyticsSummary } from '../types'
|
||||
|
||||
export const $days = atom(30)
|
||||
|
||||
export const $analytics = createFetcherStore<AnalyticsSummary>([
|
||||
'/api/studio/analytics?days=',
|
||||
$days,
|
||||
])
|
||||
Loading…
Add table
Add a link
Reference in a new issue