This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { writable } from 'svelte/store' | |
const storedKeys: any = {} | |
/** | |
* Create a Writable localStorage store that allows both updating and reading by subscription | |
*/ | |
export function storable<T>(initialValue: T) { | |
const storedKey = `$-${Object.keys(storedKeys).length}` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gets the URL search params. | |
* | |
* @param string $url The URL to parse. If no URL is passed, `$_SERVER["REQUEST_URI"]` will be used instead | |
* @param bool $arrays If false, search params that are added at the end will overwrite any existing values | |
*/ | |
function getQuery(string $url = "", bool $arrays = true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useSyncExternalStore } from "react" | |
const cache = new Map() | |
function defaultActions() { | |
return {} | |
} | |
type StateType<R, actionsType> = { | |
key: string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export * from './sidebar' | |
export * from './accordion' | |
export * from './alert' | |
export * from './alert-dialog' | |
export * from './aspect-ratio' | |
export * from './avatar' | |
export * from './badge' | |
export * from './breadcrumb' | |
export * from './button' | |
export * from './calendar' |
OlderNewer