repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/settings/siteSetting.ts
frontend/src/settings/siteSetting.ts
// github repo url export const GITHUB_URL = 'https://github.com/anncwb/vue-vben-admin'; // vue-vben-admin-next-doc export const DOC_URL = 'https://vvbin.cn/doc-next/'; // site url export const SITE_URL = 'https://vvbin.cn/next/';
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/settings/designSetting.ts
frontend/src/settings/designSetting.ts
import { ThemeEnum } from '../enums/appEnum'; export const prefixCls = 'vben'; export const darkMode = ThemeEnum.LIGHT; // app theme preset color export const APP_PRESET_COLOR_LIST: string[] = [ '#0960bd', '#0084f4', '#009688', '#536dfe', '#ff5c93', '#ee4f12', '#0096c7', '#9c27b0', '#ff9800', ]; /...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/settings/componentSetting.ts
frontend/src/settings/componentSetting.ts
// Used to configure the general configuration of some components without modifying the components import type { SorterResult } from '../components/Table'; export default { // basic-table setting table: { // Form interface request general configuration // support xxx.xxx.xxx fetchSetting: { // T...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/settings/encryptionSetting.ts
frontend/src/settings/encryptionSetting.ts
import { isDevMode } from '/@/utils/env'; // System default cache time, in seconds export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7; // aes encryption key export const cacheCipher = { key: '_11111000001111@', iv: '@11111000001111_', }; // Whether the system cache is encrypted using aes export const enableStora...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/event/useIntersectionObserver.ts
frontend/src/hooks/event/useIntersectionObserver.ts
import { Ref, watchEffect, ref } from 'vue'; interface IntersectionObserverProps { target: Ref<Element | null | undefined>; root?: Ref<any>; onIntersect: IntersectionObserverCallback; rootMargin?: string; threshold?: number; } export function useIntersectionObserver({ target, root, onIntersect, root...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/event/useBreakpoint.ts
frontend/src/hooks/event/useBreakpoint.ts
import { ref, computed, ComputedRef, unref } from 'vue'; import { useEventListener } from '/@/hooks/event/useEventListener'; import { screenMap, sizeEnum, screenEnum } from '/@/enums/breakpointEnum'; let globalScreenRef: ComputedRef<sizeEnum | undefined>; let globalWidthRef: ComputedRef<number>; let globalRealWidthRef...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/event/useScroll.ts
frontend/src/hooks/event/useScroll.ts
import type { Ref } from 'vue'; import { ref, onMounted, watch, onUnmounted } from 'vue'; import { isWindow, isObject } from '/@/utils/is'; import { useThrottleFn } from '@vueuse/core'; export function useScroll( refEl: Ref<Element | Window | null>, options?: { wait?: number; leading?: boolean; traili...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/event/useEventListener.ts
frontend/src/hooks/event/useEventListener.ts
import type { Ref } from 'vue'; import { ref, watch, unref } from 'vue'; import { useThrottleFn, useDebounceFn } from '@vueuse/core'; export type RemoveEventFn = () => void; export interface UseEventParams { el?: Element | Ref<Element | undefined> | Window | any; name: string; listener: EventListener; options?...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/event/useScrollTo.ts
frontend/src/hooks/event/useScrollTo.ts
import { isFunction, isUnDef } from '/@/utils/is'; import { ref, unref } from 'vue'; export interface ScrollToParams { el: any; to: number; duration?: number; callback?: () => any; } const easeInOutQuad = (t: number, b: number, c: number, d: number) => { t /= d / 2; if (t < 1) { return (c / 2) * t * t...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/event/useWindowSizeFn.ts
frontend/src/hooks/event/useWindowSizeFn.ts
import { tryOnMounted, tryOnUnmounted, useDebounceFn } from '@vueuse/core'; interface WindowSizeOptions { once?: boolean; immediate?: boolean; listenerOptions?: AddEventListenerOptions | boolean; } export function useWindowSizeFn<T>(fn: Fn<T>, wait = 150, options?: WindowSizeOptions) { let handler = () => { ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/core/useContext.ts
frontend/src/hooks/core/useContext.ts
import { InjectionKey, provide, inject, reactive, readonly as defineReadonly, // defineComponent, UnwrapRef, } from 'vue'; export interface CreateContextOptions { readonly?: boolean; createProvider?: boolean; native?: boolean; } type ShallowUnwrap<T> = { [P in keyof T]: UnwrapRef<T[P]>; }; expo...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/core/onMountedOrActivated.ts
frontend/src/hooks/core/onMountedOrActivated.ts
import { nextTick, onMounted, onActivated } from 'vue'; export function onMountedOrActivated(hook: Fn) { let mounted: boolean; onMounted(() => { hook(); nextTick(() => { mounted = true; }); }); onActivated(() => { if (mounted) { hook(); } }); }
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/core/useAttrs.ts
frontend/src/hooks/core/useAttrs.ts
import { getCurrentInstance, reactive, shallowRef, watchEffect } from 'vue'; import type { Ref } from 'vue'; interface Params { excludeListeners?: boolean; excludeKeys?: string[]; excludeDefaultKeys?: boolean; } const DEFAULT_EXCLUDE_KEYS = ['class', 'style']; const LISTENER_PREFIX = /^on[A-Z]/; export function...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/core/useRefs.ts
frontend/src/hooks/core/useRefs.ts
import type { Ref } from 'vue'; import { ref, onBeforeUpdate } from 'vue'; export function useRefs(): [Ref<HTMLElement[]>, (index: number) => (el: HTMLElement) => void] { const refs = ref([]) as Ref<HTMLElement[]>; onBeforeUpdate(() => { refs.value = []; }); const setRefs = (index: number) => (el: HTMLEl...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/core/useLockFn.ts
frontend/src/hooks/core/useLockFn.ts
import { ref, unref } from 'vue'; export function useLockFn<P extends any[] = any[], V = any>(fn: (...args: P) => Promise<V>) { const lockRef = ref(false); return async function (...args: P) { if (unref(lockRef)) return; lockRef.value = true; try { const ret = await fn(...args); lockRef.val...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/core/useTimeout.ts
frontend/src/hooks/core/useTimeout.ts
import { ref, watch } from 'vue'; import { tryOnUnmounted } from '@vueuse/core'; import { isFunction } from '/@/utils/is'; export function useTimeoutFn(handle: Fn<any>, wait: number, native = false) { if (!isFunction(handle)) { throw new Error('handle is not Function!'); } const { readyRef, stop, start } = ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/component/usePageContext.ts
frontend/src/hooks/component/usePageContext.ts
import type { InjectionKey, ComputedRef, Ref } from 'vue'; import { createContext, useContext } from '/@/hooks/core/useContext'; export interface PageContextProps { contentHeight: ComputedRef<number>; pageHeight: Ref<number>; setPageHeight: (height: number) => Promise<void>; } const key: InjectionKey<PageContex...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/component/useFormItem.ts
frontend/src/hooks/component/useFormItem.ts
import type { UnwrapRef, Ref, WritableComputedRef, DeepReadonly } from 'vue'; import { reactive, readonly, computed, getCurrentInstance, watchEffect, unref, nextTick, toRaw, } from 'vue'; import { isEqual } from 'lodash-es'; export function useRuleFormItem<T extends Recordable, K extends keyof T, V = ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/setting/useMultipleTabSetting.ts
frontend/src/hooks/setting/useMultipleTabSetting.ts
import type { MultiTabsSetting } from '/#/config'; import { computed } from 'vue'; import { useAppStore } from '/@/store/modules/app'; export function useMultipleTabSetting() { const appStore = useAppStore(); const getShowMultipleTab = computed(() => appStore.getMultiTabsSetting.show); const getShowQuick = c...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/setting/useRootSetting.ts
frontend/src/hooks/setting/useRootSetting.ts
import type { ProjectConfig } from '/#/config'; import { computed } from 'vue'; import { useAppStore } from '/@/store/modules/app'; import { ContentEnum, ThemeEnum } from '/@/enums/appEnum'; type RootSetting = Omit< ProjectConfig, 'locale' | 'headerSetting' | 'menuSetting' | 'multiTabsSetting' >; export functio...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/setting/useMenuSetting.ts
frontend/src/hooks/setting/useMenuSetting.ts
import type { MenuSetting } from '/#/config'; import { computed, unref, ref } from 'vue'; import { useAppStore } from '/@/store/modules/app'; import { SIDE_BAR_MINI_WIDTH, SIDE_BAR_SHOW_TIT_MINI_WIDTH } from '/@/enums/appEnum'; import { MenuModeEnum, MenuTypeEnum, TriggerEnum } from '/@/enums/menuEnum'; import { use...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/setting/useHeaderSetting.ts
frontend/src/hooks/setting/useHeaderSetting.ts
import type { HeaderSetting } from '/#/config'; import { computed, unref } from 'vue'; import { useAppStore } from '/@/store/modules/app'; import { useMenuSetting } from '/@/hooks/setting/useMenuSetting'; import { useRootSetting } from '/@/hooks/setting/useRootSetting'; import { useFullContent } from '/@/hooks/web/u...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/setting/index.ts
frontend/src/hooks/setting/index.ts
import type { GlobConfig } from '/#/config'; import { warn } from '/@/utils/log'; import { getAppEnvConfig } from '/@/utils/env'; export const useGlobSetting = (): Readonly<GlobConfig> => { const { VITE_GLOB_APP_TITLE, VITE_GLOB_API_URL, VITE_GLOB_APP_SHORT_NAME, VITE_GLOB_API_URL_PREFIX, VITE_G...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/setting/useTransitionSetting.ts
frontend/src/hooks/setting/useTransitionSetting.ts
import type { TransitionSetting } from '/#/config'; import { computed } from 'vue'; import { useAppStore } from '/@/store/modules/app'; export function useTransitionSetting() { const appStore = useAppStore(); const getEnableTransition = computed(() => appStore.getTransitionSetting?.enable); const getOpenNPro...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useAppInject.ts
frontend/src/hooks/web/useAppInject.ts
import { useAppProviderContext } from '/@/components/Application'; import { computed, unref } from 'vue'; export function useAppInject() { const values = useAppProviderContext(); return { getIsMobile: computed(() => unref(values.isMobile)), }; }
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/usePage.ts
frontend/src/hooks/web/usePage.ts
import type { RouteLocationRaw, Router } from 'vue-router'; import { PageEnum } from '/@/enums/pageEnum'; import { unref } from 'vue'; import { useRouter } from 'vue-router'; import { REDIRECT_NAME } from '/@/router/constant'; export type PathAsPageEnum<T> = T extends { path: string } ? T & { path: PageEnum } : T; e...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useTabs.ts
frontend/src/hooks/web/useTabs.ts
import type { RouteLocationNormalized, Router } from 'vue-router'; import { useRouter } from 'vue-router'; import { unref } from 'vue'; import { useMultipleTabStore } from '/@/store/modules/multipleTab'; import { useAppStore } from '/@/store/modules/app'; enum TableActionEnum { REFRESH, CLOSE_ALL, CLOSE_LEFT, ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useTitle.ts
frontend/src/hooks/web/useTitle.ts
import { watch, unref } from 'vue'; import { useI18n } from '/@/hooks/web/useI18n'; import { useTitle as usePageTitle } from '@vueuse/core'; import { useGlobSetting } from '/@/hooks/setting'; import { useRouter } from 'vue-router'; import { useLocaleStore } from '/@/store/modules/locale'; import { REDIRECT_NAME } from...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useDesign.ts
frontend/src/hooks/web/useDesign.ts
import { useAppProviderContext } from '/@/components/Application'; // import { computed } from 'vue'; // import { lowerFirst } from 'lodash-es'; export function useDesign(scope: string) { const values = useAppProviderContext(); // const $style = cssModule ? useCssModule() : {}; // const style: Record<string, str...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useECharts.ts
frontend/src/hooks/web/useECharts.ts
import type { EChartsOption } from 'echarts'; import type { Ref } from 'vue'; import { useTimeoutFn } from '/@/hooks/core/useTimeout'; import { tryOnUnmounted } from '@vueuse/core'; import { unref, nextTick, watch, computed, ref } from 'vue'; import { useDebounceFn } from '@vueuse/core'; import { useEventListener } fro...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/usePermission.ts
frontend/src/hooks/web/usePermission.ts
import { RoleEnum } from '/@/enums/roleEnum'; // User permissions related operations export function usePermission() { /** * Determine whether there is permission */ function hasPermission(value?: RoleEnum | RoleEnum[] | string | string[], def = true): boolean { // Visible by default if (!value) { ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useMessage.tsx
frontend/src/hooks/web/useMessage.tsx
import type { ModalFunc, ModalFuncProps } from 'ant-design-vue/lib/modal/Modal'; import { Modal, message as Message, notification } from 'ant-design-vue'; import { InfoCircleFilled, CheckCircleFilled, CloseCircleFilled } from '@ant-design/icons-vue'; import { NotificationArgsProps, ConfigProps } from 'ant-design-vue/...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useSortable.ts
frontend/src/hooks/web/useSortable.ts
import { nextTick, unref } from 'vue'; import type { Ref } from 'vue'; import type { Options } from 'sortablejs'; export function useSortable(el: HTMLElement | Ref<HTMLElement>, options?: Options) { function initSortable() { nextTick(async () => { if (!el) return; const Sortable = (await import('sor...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useContextMenu.ts
frontend/src/hooks/web/useContextMenu.ts
import { onUnmounted, getCurrentInstance } from 'vue'; // import { createContextMenu, destroyContextMenu } from '/@/components/ContextMenu'; import { createContextMenu, destroyContextMenu } from '/@/second/modals/createContextMenu'; import type { ContextMenuItem } from '/@/components/ContextMenu'; export type { Context...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useContentHeight.ts
frontend/src/hooks/web/useContentHeight.ts
import { ComputedRef, isRef, nextTick, Ref, ref, unref, watch } from 'vue'; import { onMountedOrActivated } from '/@/hooks/core/onMountedOrActivated'; import { useWindowSizeFn } from '/@/hooks/event/useWindowSizeFn'; import { useLayoutHeight } from '/@/layouts/default/content/useContentViewHeight'; import { getViewport...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useI18n.ts
frontend/src/hooks/web/useI18n.ts
import { i18n } from '/@/locales/setupI18n'; type I18nGlobalTranslation = { (key: string): string; (key: string, locale: string): string; (key: string, locale: string, list: unknown[]): string; (key: string, locale: string, named: Record<string, unknown>): string; (key: string, list: unknown[]): string; (k...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/usePagination.ts
frontend/src/hooks/web/usePagination.ts
import type { Ref } from 'vue'; import { ref, unref, computed } from 'vue'; function pagination<T = any>(list: T[], pageNo: number, pageSize: number): T[] { const offset = (pageNo - 1) * Number(pageSize); const ret = offset + Number(pageSize) >= list.length ? list.slice(offset, list.length) : list....
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useCopyToClipboard.ts
frontend/src/hooks/web/useCopyToClipboard.ts
import { ref, watch } from 'vue'; import { isDef } from '/@/utils/is'; interface Options { target?: HTMLElement; } export function useCopyToClipboard(initial?: string) { const clipboardRef = ref(initial || ''); const isSuccessRef = ref(false); const copiedRef = ref(false); watch( clipboardRef, (str?...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useWatermark.ts
frontend/src/hooks/web/useWatermark.ts
import { getCurrentInstance, onBeforeUnmount, ref, Ref, shallowRef, unref } from 'vue'; import { useRafThrottle } from '/@/utils/domUtils'; import { addResizeListener, removeResizeListener } from '/@/utils/event'; import { isDef } from '/@/utils/is'; const domSymbol = Symbol('watermark-dom'); export function useWater...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useFullContent.ts
frontend/src/hooks/web/useFullContent.ts
import { computed, unref } from 'vue'; import { useAppStore } from '/@/store/modules/app'; import { useRouter } from 'vue-router'; /** * @description: Full screen display content */ export const useFullContent = () => { const appStore = useAppStore(); const router = useRouter(); const { currentRoute } = rout...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/hooks/web/useScript.ts
frontend/src/hooks/web/useScript.ts
import { onMounted, onUnmounted, ref } from 'vue'; interface ScriptOptions { src: string; } export function useScript(opts: ScriptOptions) { const isLoading = ref(false); const error = ref(false); const success = ref(false); let script: HTMLScriptElement; const promise = new Promise((resolve, reject) => ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/registerGlobComp.ts
frontend/src/components/registerGlobComp.ts
import type {App} from 'vue'; import {Button} from './Button'; import {Input} from 'ant-design-vue'; export function registerGlobComp(app: App) { app.use(Input).use(Button) }
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Markdown/index.ts
frontend/src/components/Markdown/index.ts
import { withInstall } from '/@/utils'; import markDown from './src/Markdown.vue'; import markDownViewer from './src/MarkdownViewer.vue'; export const MarkDown = withInstall(markDown); export const MarkdownViewer = withInstall(markDownViewer); export * from './src/typing';
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Markdown/src/typing.ts
frontend/src/components/Markdown/src/typing.ts
import Vditor from 'vditor'; export interface MarkDownActionType { getVditor: () => Vditor; }
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Markdown/src/getTheme.ts
frontend/src/components/Markdown/src/getTheme.ts
/** * 获取主题类型 深色浅色模式 对应的值 * @param darkModeVal 深色模式值 * @param themeMode 主题类型——外观(默认), 内容, 代码块 */ export const getTheme = ( darkModeVal: 'light' | 'dark' | string, themeMode: 'default' | 'content' | 'code' = 'default', ) => { const isDark = darkModeVal === 'dark'; switch (themeMode) { case 'default': ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Application/index.ts
frontend/src/components/Application/index.ts
import { withInstall } from '/@/utils'; import appLogo from './src/AppLogo.vue'; import appProvider from './src/AppProvider.vue'; import appSearch from './src/search/AppSearch.vue'; import appLocalePicker from './src/AppLocalePicker.vue'; import appDarkModeToggle from './src/AppDarkModeToggle.vue'; export { useAppPro...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Application/src/useAppContext.ts
frontend/src/components/Application/src/useAppContext.ts
import { InjectionKey, Ref } from 'vue'; import { createContext, useContext } from '/@/hooks/core/useContext'; export interface AppProviderContextProps { prefixCls: Ref<string>; isMobile: Ref<boolean>; } const key: InjectionKey<AppProviderContextProps> = Symbol(); export function createAppProviderContext(context...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Application/src/search/useMenuSearch.ts
frontend/src/components/Application/src/search/useMenuSearch.ts
import type { Menu } from '/@/router/types'; import { ref, onBeforeMount, unref, Ref, nextTick } from 'vue'; import { getMenus } from '/@/router/menus'; import { cloneDeep } from 'lodash-es'; import { filter, forEach } from '/@/utils/helper/treeHelper'; import { useGo } from '/@/hooks/web/usePage'; import { useScrollTo...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Excel/index.ts
frontend/src/components/Excel/index.ts
import { withInstall } from '/@/utils'; import impExcel from './src/ImportExcel.vue'; import expExcelModal from './src/ExportExcelModal.vue'; export const ImpExcel = withInstall(impExcel); export const ExpExcelModal = withInstall(expExcelModal); export * from './src/typing'; export { jsonToSheetXlsx, aoaToSheetXlsx } ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Excel/src/typing.ts
frontend/src/components/Excel/src/typing.ts
import type { JSON2SheetOpts, WritingOptions, BookType } from 'xlsx'; export interface ExcelData<T = any> { header: string[]; results: T[]; meta: { sheetName: string }; } export interface JsonToSheet<T = any> { data: T[]; header?: T; filename?: string; json2sheetOpts?: JSON2SheetOpts; write2excelOpts?...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Excel/src/Export2Excel.ts
frontend/src/components/Excel/src/Export2Excel.ts
import * as xlsx from 'xlsx'; import type { WorkBook } from 'xlsx'; import type { JsonToSheet, AoAToSheet } from './typing'; const { utils, writeFile } = xlsx; const DEF_FILE_NAME = 'excel-list.xlsx'; /** * @param data source data * @param worksheet worksheet object * @param min min width */ function setColumnWi...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Basic/index.ts
frontend/src/components/Basic/index.ts
import { withInstall } from '/@/utils'; import basicArrow from './src/BasicArrow.vue'; import basicTitle from './src/BasicTitle.vue'; import basicHelp from './src/BasicHelp.vue'; export const BasicArrow = withInstall(basicArrow); export const BasicTitle = withInstall(basicTitle); export const BasicHelp = withInstall(b...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/index.ts
frontend/src/components/Modal/index.ts
import { withInstall } from '/@/utils'; import './src/index.less'; import basicModal from './src/BasicModal.vue'; export const BasicModal = withInstall(basicModal); export { useModalContext } from './src/hooks/useModalContext'; export { useModal, useModalInner } from './src/hooks/useModal'; export * from './src/typing...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/src/typing.ts
frontend/src/components/Modal/src/typing.ts
import type { ButtonProps } from 'ant-design-vue/lib/button/buttonTypes'; import type { CSSProperties, VNodeChild, ComputedRef } from 'vue'; /** * @description: 弹窗对外暴露的方法 */ export interface ModalMethods { setModalProps: (props: Partial<ModalProps>) => void; emitVisible?: (visible: boolean, uid: number) => void; ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/src/props.ts
frontend/src/components/Modal/src/props.ts
import type { PropType, CSSProperties } from 'vue'; import type { ModalWrapperProps } from './typing'; import { ButtonProps } from 'ant-design-vue/es/button/buttonTypes'; import { useI18n } from '/@/hooks/web/useI18n'; const { t } = useI18n(); export const modalProps = { visible: { type: Boolean }, scrollTop: { t...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/src/hooks/useModalDrag.ts
frontend/src/components/Modal/src/hooks/useModalDrag.ts
import { Ref, unref, watchEffect } from 'vue'; import { useTimeoutFn } from '/@/hooks/core/useTimeout'; export interface UseModalDragMoveContext { draggable: Ref<boolean>; destroyOnClose: Ref<boolean | undefined> | undefined; visible: Ref<boolean>; } export function useModalDragMove(context: UseModalDragMoveCon...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/src/hooks/useModalFullScreen.ts
frontend/src/components/Modal/src/hooks/useModalFullScreen.ts
import { computed, Ref, ref, unref } from 'vue'; export interface UseFullScreenContext { wrapClassName: Ref<string | undefined>; modalWrapperRef: Ref<ComponentRef>; extHeightRef: Ref<number>; } export function useFullScreen(context: UseFullScreenContext) { // const formerHeightRef = ref(0); const fullScreen...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/src/hooks/useModal.ts
frontend/src/components/Modal/src/hooks/useModal.ts
import type { UseModalReturnType, ModalMethods, ModalProps, ReturnMethods, UseModalInnerReturnType, } from '../typing'; import { ref, onUnmounted, unref, getCurrentInstance, reactive, watchEffect, nextTick, toRaw, } from 'vue'; import { isProdMode } from '/@/utils/env'; import { isFunction } f...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/src/hooks/useModalContext.ts
frontend/src/components/Modal/src/hooks/useModalContext.ts
import { InjectionKey } from 'vue'; import { createContext, useContext } from '/@/hooks/core/useContext'; export interface ModalContextProps { redoModalHeight: () => void; } const key: InjectionKey<ModalContextProps> = Symbol(); export function createModalContext(context: ModalContextProps) { return createContex...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Modal/src/components/Modal.tsx
frontend/src/components/Modal/src/components/Modal.tsx
import { Modal } from 'ant-design-vue'; import { defineComponent, toRefs, unref } from 'vue'; import { basicProps } from '../props'; import { useModalDragMove } from '../hooks/useModalDrag'; import { useAttrs } from '/@/hooks/core/useAttrs'; import { extendSlots } from '/@/utils/helper/tsxHelper'; export default defin...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/FlowChart/index.ts
frontend/src/components/FlowChart/index.ts
import { withInstall } from '/@/utils'; import flowChart from './src/FlowChart.vue'; export const FlowChart = withInstall(flowChart);
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/FlowChart/src/config.ts
frontend/src/components/FlowChart/src/config.ts
export const nodeList = [ { text: '开始', type: 'start', class: 'node-start', }, { text: '矩形', type: 'rect', class: 'node-rect', }, { type: 'user', text: '用户', class: 'node-user', }, { type: 'push', text: '推送', class: 'node-push', }, { type: 'download'...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/FlowChart/src/useFlowContext.ts
frontend/src/components/FlowChart/src/useFlowContext.ts
import type LogicFlow from '@logicflow/core'; import { provide, inject } from 'vue'; const key = Symbol('flow-chart'); type Instance = { logicFlow: LogicFlow; }; export function createFlowChartContext(instance: Instance) { provide(key, instance); } export function useFlowChartContext(): Instance { return inj...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/FlowChart/src/enum.ts
frontend/src/components/FlowChart/src/enum.ts
export enum ToolbarTypeEnum { ZOOM_IN = 'zoomIn', ZOOM_OUT = 'zoomOut', RESET_ZOOM = 'resetZoom', UNDO = 'undo', REDO = 'redo', SNAPSHOT = 'snapshot', VIEW_DATA = 'viewData', }
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/FlowChart/src/adpterForTurbo.ts
frontend/src/components/FlowChart/src/adpterForTurbo.ts
const TurboType = { SEQUENCE_FLOW: 1, START_EVENT: 2, END_EVENT: 3, USER_TASK: 4, SERVICE_TASK: 5, EXCLUSIVE_GATEWAY: 6, }; function convertFlowElementToEdge(element) { const { incoming, outgoing, properties, key } = element; const { text, startPoint, endPoint, pointsList, logicFlowType } = properties;...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/FlowChart/src/types.ts
frontend/src/components/FlowChart/src/types.ts
import { NodeConfig } from '@logicflow/core'; import { ToolbarTypeEnum } from './enum'; export interface NodeItem extends NodeConfig { icon: string; } export interface ToolbarConfig { type?: string | ToolbarTypeEnum; tooltip?: string | boolean; icon?: string; disabled?: boolean; separate?: boolean; }
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Container/index.ts
frontend/src/components/Container/index.ts
import { withInstall } from '/@/utils'; import collapseContainer from './src/collapse/CollapseContainer.vue'; import scrollContainer from './src/ScrollContainer.vue'; import lazyContainer from './src/LazyContainer.vue'; export const CollapseContainer = withInstall(collapseContainer); export const ScrollContainer = wit...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Container/src/typing.ts
frontend/src/components/Container/src/typing.ts
export type ScrollType = 'default' | 'main'; export interface CollapseContainerOptions { canExpand?: boolean; title?: string; helpMessage?: Array<any> | string; } export interface ScrollContainerOptions { enableScroll?: boolean; type?: ScrollType; } export type ScrollActionType = RefType<{ scrollBottom: (...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Scrollbar/index.ts
frontend/src/components/Scrollbar/index.ts
/** * copy from element-ui */ import Scrollbar from './src/Scrollbar.vue'; export { Scrollbar }; export type { ScrollbarType } from './src/types';
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Scrollbar/src/types.d.ts
frontend/src/components/Scrollbar/src/types.d.ts
export interface BarMapItem { offset: string; scroll: string; scrollSize: string; size: string; key: string; axis: string; client: string; direction: string; } export interface BarMap { vertical: BarMapItem; horizontal: BarMapItem; } export interface ScrollbarType { wrap: ElRef; }
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Scrollbar/src/util.ts
frontend/src/components/Scrollbar/src/util.ts
import type { BarMap } from './types'; export const BAR_MAP: BarMap = { vertical: { offset: 'offsetHeight', scroll: 'scrollTop', scrollSize: 'scrollHeight', size: 'height', key: 'vertical', axis: 'Y', client: 'clientY', direction: 'top', }, horizontal: { offset: 'offsetWidth', ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Scrollbar/src/bar.ts
frontend/src/components/Scrollbar/src/bar.ts
import { defineComponent, h, computed, ref, getCurrentInstance, onUnmounted, inject, Ref, } from 'vue'; import { on, off } from '/@/utils/domUtils'; import { renderThumbStyle, BAR_MAP } from './util'; export default defineComponent({ name: 'Bar', props: { vertical: Boolean, size: String, ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/index.ts
frontend/src/components/Table/index.ts
export { default as BasicTable } from './src/BasicTable.vue'; export { default as TableAction } from './src/components/TableAction.vue'; export { default as EditTableHeaderIcon } from './src/components/EditTableHeaderIcon.vue'; export { default as TableImg } from './src/components/TableImg.vue'; export * from './src/t...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/componentMap.ts
frontend/src/components/Table/src/componentMap.ts
import type { Component } from 'vue'; import { Input, Select, Checkbox, InputNumber, Switch, DatePicker, TimePicker, AutoComplete, Radio, } from 'ant-design-vue'; import type { ComponentType } from './types/componentType'; import { ApiSelect, ApiTreeSelect, RadioButtonGroup, ApiRadioGroup } from '/@/c...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/const.ts
frontend/src/components/Table/src/const.ts
import componentSetting from '/@/settings/componentSetting'; const { table } = componentSetting; const { pageSizeOptions, defaultPageSize, fetchSetting, defaultSize, defaultSortFn, defaultFilterFn, } = table; export const ROW_KEY = 'key'; // Optional display number per page; export const PAGE_SIZE_OPTIO...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/props.ts
frontend/src/components/Table/src/props.ts
import type { PropType } from 'vue'; import type { PaginationProps } from './types/pagination'; import type { BasicColumn, FetchSetting, TableSetting, SorterResult, TableCustomRecord, TableRowSelection, SizeType, } from './types/table'; import type { FormProps } from '/@/components/Form'; import { DEFAUL...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useColumns.ts
frontend/src/components/Table/src/hooks/useColumns.ts
import type { BasicColumn, BasicTableProps, CellFormat, GetColumnsParams } from '../types/table'; import type { PaginationProps } from '../types/pagination'; import type { ComputedRef } from 'vue'; import { computed, Ref, ref, reactive, toRaw, unref, watch } from 'vue'; import { renderEditCell } from '../components/edi...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTableForm.ts
frontend/src/components/Table/src/hooks/useTableForm.ts
import type { ComputedRef, Slots } from 'vue'; import type { BasicTableProps, FetchParams } from '../types/table'; import { unref, computed } from 'vue'; import type { FormProps } from '/@/components/Form'; import { isFunction } from '/@/utils/is'; export function useTableForm( propsRef: ComputedRef<BasicTableProps>...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTableHeader.ts
frontend/src/components/Table/src/hooks/useTableHeader.ts
import type { ComputedRef, Slots } from 'vue'; import type { BasicTableProps, InnerHandlers } from '../types/table'; import { unref, computed, h } from 'vue'; import TableHeader from '../components/TableHeader.vue'; import { isString } from '/@/utils/is'; import { getSlot } from '/@/utils/helper/tsxHelper'; export fun...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTableScroll.ts
frontend/src/components/Table/src/hooks/useTableScroll.ts
import type { BasicTableProps, TableRowSelection, BasicColumn } from '../types/table'; import { Ref, ComputedRef, ref } from 'vue'; import { computed, unref, nextTick, watch } from 'vue'; import { getViewportOffset } from '/@/utils/domUtils'; import { isBoolean } from '/@/utils/is'; import { useWindowSizeFn } from '/@/...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTableFooter.ts
frontend/src/components/Table/src/hooks/useTableFooter.ts
import type { ComputedRef, Ref } from 'vue'; import type { BasicTableProps } from '../types/table'; import { unref, computed, h, nextTick, watchEffect } from 'vue'; import TableFooter from '../components/TableFooter.vue'; import { useEventListener } from '/@/hooks/event/useEventListener'; export function useTableFoote...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTableExpand.ts
frontend/src/components/Table/src/hooks/useTableExpand.ts
import type { ComputedRef, Ref } from 'vue'; import type { BasicTableProps } from '../types/table'; import { computed, unref, ref, toRaw } from 'vue'; import { ROW_KEY } from '../const'; export function useTableExpand( propsRef: ComputedRef<BasicTableProps>, tableData: Ref<Recordable[]>, emit: EmitType, ) { co...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/usePagination.tsx
frontend/src/components/Table/src/hooks/usePagination.tsx
import type { PaginationProps } from '../types/pagination'; import type { BasicTableProps } from '../types/table'; import { computed, unref, ref, ComputedRef, watch } from 'vue'; import { LeftOutlined, RightOutlined } from '@ant-design/icons-vue'; import { isBoolean } from '/@/utils/is'; import { PAGE_SIZE, PAGE_SIZE_O...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTableContext.ts
frontend/src/components/Table/src/hooks/useTableContext.ts
import type { Ref } from 'vue'; import type { BasicTableProps, TableActionType } from '../types/table'; import { provide, inject, ComputedRef } from 'vue'; const key = Symbol('basic-table'); type Instance = TableActionType & { wrapRef: Ref<Nullable<HTMLElement>>; getBindValues: ComputedRef<Recordable>; }; type R...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useScrollTo.ts
frontend/src/components/Table/src/hooks/useScrollTo.ts
import type { ComputedRef, Ref } from 'vue'; import { nextTick, unref } from 'vue'; import { warn } from '/@/utils/log'; export function useTableScrollTo( tableElRef: Ref<ComponentRef>, getDataSourceRef: ComputedRef<Recordable[]>, ) { let bodyEl: HTMLElement | null; async function findTargetRowToScroll(target...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useLoading.ts
frontend/src/components/Table/src/hooks/useLoading.ts
import { ref, ComputedRef, unref, computed, watch } from 'vue'; import type { BasicTableProps } from '../types/table'; export function useLoading(props: ComputedRef<BasicTableProps>) { const loadingRef = ref(unref(props).loading); watch( () => unref(props).loading, (loading) => { loadingRef.value = ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useCustomRow.ts
frontend/src/components/Table/src/hooks/useCustomRow.ts
import type { ComputedRef } from 'vue'; import type { BasicTableProps } from '../types/table'; import { unref } from 'vue'; import { ROW_KEY } from '../const'; import { isString, isFunction } from '/@/utils/is'; interface Options { setSelectedRowKeys: (keys: string[]) => void; getSelectRowKeys: () => string[]; c...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTable.ts
frontend/src/components/Table/src/hooks/useTable.ts
import type { BasicTableProps, TableActionType, FetchParams, BasicColumn } from '../types/table'; import type { PaginationProps } from '../types/pagination'; import type { DynamicProps } from '/#/utils'; import type { FormActionType } from '/@/components/Form'; import type { WatchStopHandle } from 'vue'; import { getDy...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useTableStyle.ts
frontend/src/components/Table/src/hooks/useTableStyle.ts
import type { ComputedRef } from 'vue'; import type { BasicTableProps, TableCustomRecord } from '../types/table'; import { unref } from 'vue'; import { isFunction } from '/@/utils/is'; export function useTableStyle(propsRef: ComputedRef<BasicTableProps>, prefixCls: string) { function getRowClassName(record: TableCus...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useDataSource.ts
frontend/src/components/Table/src/hooks/useDataSource.ts
import type { BasicTableProps, FetchParams, SorterResult } from '../types/table'; import type { PaginationProps } from '../types/pagination'; import { ref, unref, ComputedRef, computed, onMounted, watch, reactive, Ref, watchEffect, } from 'vue'; import { useTimeoutFn } from '/@/hooks/core/useTimeout';...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/hooks/useRowSelection.ts
frontend/src/components/Table/src/hooks/useRowSelection.ts
import { isFunction } from '/@/utils/is'; import type { BasicTableProps, TableRowSelection } from '../types/table'; import { computed, ComputedRef, nextTick, Ref, ref, toRaw, unref, watch } from 'vue'; import { ROW_KEY } from '../const'; import { omit } from 'lodash-es'; import { findNodeAll } from '/@/utils/helper/tre...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/components/editable/helper.ts
frontend/src/components/Table/src/components/editable/helper.ts
import { ComponentType } from '../../types/componentType'; import { useI18n } from '/@/hooks/web/useI18n'; const { t } = useI18n(); /** * @description: 生成placeholder */ export function createPlaceholderMessage(component: ComponentType) { if (component.includes('Input') || component.includes('AutoComplete')) { ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/components/editable/CellComponent.ts
frontend/src/components/Table/src/components/editable/CellComponent.ts
import type { FunctionalComponent, defineComponent } from 'vue'; import type { ComponentType } from '../../types/componentType'; import { componentMap } from '/@/components/Table/src/componentMap'; import { Popover } from 'ant-design-vue'; import { h } from 'vue'; export interface ComponentProps { component: Compon...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/components/editable/index.ts
frontend/src/components/Table/src/components/editable/index.ts
import type { BasicColumn } from '/@/components/Table/src/types/table'; import { h, Ref } from 'vue'; import EditableCell from './EditableCell.vue'; import { isArray } from '/@/utils/is'; interface Params { text: string; record: Recordable; index: number; } export function renderEditCell(column: BasicColumn) ...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/types/tableAction.ts
frontend/src/components/Table/src/types/tableAction.ts
import { ButtonProps } from 'ant-design-vue/es/button/buttonTypes'; import { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip'; import { RoleEnum } from '/@/enums/roleEnum'; export interface ActionItem extends ButtonProps { onClick?: Fn; label?: string; color?: 'success' | 'error' | 'warning'; icon?: stri...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/types/pagination.ts
frontend/src/components/Table/src/types/pagination.ts
import Pagination from 'ant-design-vue/lib/pagination'; import { VNodeChild } from 'vue'; interface PaginationRenderProps { page: number; type: 'page' | 'prev' | 'next'; originalElement: any; } type PaginationPositon = | 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomR...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/types/column.ts
frontend/src/components/Table/src/types/column.ts
import { VNodeChild } from 'vue'; export interface ColumnFilterItem { text?: string; value?: string; children?: any; } export declare type SortOrder = 'ascend' | 'descend'; export interface RecordProps<T> { text: any; record: T; index: number; } export interface FilterDropdownProps { prefixCls?: strin...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/types/table.ts
frontend/src/components/Table/src/types/table.ts
import type { VNodeChild } from 'vue'; import type { PaginationProps } from './pagination'; import type { FormProps } from '/@/components/Form'; import type { TableRowSelection as ITableRowSelection } from 'ant-design-vue/lib/table/interface'; import type { ColumnProps } from 'ant-design-vue/lib/table'; import { Compo...
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Table/src/types/componentType.ts
frontend/src/components/Table/src/types/componentType.ts
export type ComponentType = | 'Input' | 'InputNumber' | 'Select' | 'ApiSelect' | 'AutoComplete' | 'ApiTreeSelect' | 'Checkbox' | 'Switch' | 'DatePicker' | 'TimePicker' | 'RadioGroup' | 'RadioButtonGroup' | 'ApiRadioGroup';
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false
tiyongliu/keeper
https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Tree/index.ts
frontend/src/components/Tree/index.ts
import BasicTree from './src/BasicTree.vue'; import './style'; export { BasicTree }; export type { ContextMenuItem } from '/@/hooks/web/useContextMenu'; export * from './src/types/tree';
typescript
MIT
9bb57af82c4529e41031ea41f656e9977e0a6617
2026-01-05T04:59:45.217156Z
false