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
<!-- Copyright (C) Microsoft Corporation. All rights reserved. --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self' https: data: blob: vscode-remote-resource:; media-src 'none'; frame-src 'self' vscode-webview: https://*.vscode-webview-test.com; object-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src 'self' https: ws:; font-src 'self' https: vscode-remote-resource:;"> | |
</head> | |
<body aria-label=""> | |
</body> |
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 { unrefElement, useEventListener } from '@vueuse/core' | |
const defaultWindow = typeof window !== 'undefined' ? window : undefined | |
/** | |
* Listen for clicks outside of an element. | |
* | |
* @see https://vueuse.org/onClickOutside | |
* @param target | |
* @param handler |
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 { computed, nextTick, reactive, ref, unref, watch } from 'vue' | |
import type { MaybeElementRef, MaybeRef } from '@vueuse/core' | |
import { clamp, createEventHook, tryOnScopeDispose, unrefElement, useEventListener } from '@vueuse/core' | |
type Edges = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left' | 'right' | 'top' | 'bottom' | |
export interface UseResizeOptions { | |
disabled?: boolean | |
mode?: MaybeRef<'auto' | 'manual'> | |
disableCursor?: MaybeRef<boolean> | |
xMultiplier?: MaybeRef<number> |
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 { render, Switch, h, useEffect, ObservableReadonly, Observable, If } from 'voby'; | |
import { $, useMemo, useReadonly, store } from 'voby'; | |
// --- Event & Context Types --- | |
type EventObject = { type: string; payload?: any }; | |
type GuardCondition<TContext, TEvent extends EventObject = EventObject> = | |
(context: TContext, event: TEvent) => boolean; | |
// --- Action Types --- |
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 { $, For, render } from "voby"; | |
import { animate, createTimeline } from "animejs"; | |
const ViewSlider = () => { | |
const viewsData = [ | |
{ title: "View 1", content: "This is the content of View 1." }, | |
{ title: "View 2", content: "Welcome to View 2!" }, | |
{ title: "View 3", content: "You've reached View 3." }, | |
{ title: "View 4", content: "This is the final view, View 4." }, | |
]; |
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
{ | |
"imports": { | |
"voby": "https://esm.sh/voby", | |
"oby": "https://esm.sh/oby" | |
} | |
} |
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
{ | |
"imports": { | |
"voby": "https://esm.sh/voby", | |
"oby": "https://esm.sh/oby" | |
} | |
} |
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
{ | |
"imports": { | |
"voby": "https://esm.sh/voby", | |
"voby-query": "https://esm.sh/voby-query" | |
} | |
} |
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
{ | |
"imports": { | |
"voby": "https://esm.sh/voby" | |
} | |
} |
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 { type Context, createContext } from 'voby'; | |
import type { QueryClient } from './useQuery.ts'; | |
// #region Context | |
export const QueryClientContext: Context<QueryClient> = | |
createContext<QueryClient>(); | |
export const QueryClientProvider = | |
QueryClientContext.Provider as typeof QueryClientContext.Provider; |
OlderNewer