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/components/Tree/src/TreeIcon.ts | frontend/src/components/Tree/src/TreeIcon.ts | import type { VNode, FunctionalComponent } from 'vue';
import { h } from 'vue';
import { isString } from '@vue/shared';
import { Icon } from '/@/components/Icon';
export const TreeIcon: FunctionalComponent = ({ icon }: { icon: VNode | string }) => {
if (!icon) return null;
if (isString(icon)) {
return h(Icon,... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Tree/src/hooks/useTree.ts | frontend/src/components/Tree/src/hooks/useTree.ts | import type { InsertNodeParams, KeyType, FieldNames, TreeItem } from '../types/tree';
import type { Ref, ComputedRef } from 'vue';
import type { TreeDataItem } from 'ant-design-vue/es/tree/Tree';
import { cloneDeep } from 'lodash-es';
import { unref } from 'vue';
import { forEach } from '/@/utils/helper/treeHelper';
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Tree/src/types/tree.ts | frontend/src/components/Tree/src/types/tree.ts | import type { ExtractPropTypes } from 'vue';
import type { TreeDataItem } from 'ant-design-vue/es/tree/Tree';
import { buildProps } from '/@/utils/props';
export enum ToolbarEnum {
SELECT_ALL,
UN_SELECT_ALL,
EXPAND_ALL,
UN_EXPAND_ALL,
CHECK_STRICTLY,
CHECK_UN_STRICTLY,
}
export const treeEmits = [
'upd... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Tree/style/index.ts | frontend/src/components/Tree/style/index.ts | import './index.less';
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/ContextMenu/index.ts | frontend/src/components/ContextMenu/index.ts | export { createContextMenu, destroyContextMenu } from './src/createContextMenu';
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/ContextMenu/src/typing.ts | frontend/src/components/ContextMenu/src/typing.ts | export interface Axis {
x: number;
y: number;
}
export interface ContextMenuItem {
label: string;
icon?: string;
hidden?: boolean;
disabled?: boolean;
handler?: Fn;
divider?: boolean;
children?: ContextMenuItem[];
}
export interface CreateContextOptions {
event: MouseEvent;
icon?: string;
style... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/ContextMenu/src/createContextMenu.ts | frontend/src/components/ContextMenu/src/createContextMenu.ts | // import contextMenuVue from './ContextMenu.vue';
import contextMenuVue from '/@/second/modals/ContextMenu.vue'
import { isClient } from '/@/utils/is';
import { CreateContextOptions, ContextMenuProps } from './typing';
import { createVNode, render } from 'vue';
const menuManager: {
domList: Element[];
resolve: Fn... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/SimpleMenu/index.ts | frontend/src/components/SimpleMenu/index.ts | export { default as SimpleMenu } from './src/SimpleMenu.vue';
export { default as SimpleMenuTag } from './src/SimpleMenuTag.vue';
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/SimpleMenu/src/useOpenKeys.ts | frontend/src/components/SimpleMenu/src/useOpenKeys.ts | import type { Menu as MenuType } from '/@/router/types';
import type { MenuState } from './types';
import { computed, Ref, toRaw } from 'vue';
import { unref } from 'vue';
import { uniq } from 'lodash-es';
import { getAllParentPath } from '/@/router/helper/menuHelper';
import { useTimeoutFn } from '/@/hooks/core/use... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/SimpleMenu/src/types.ts | frontend/src/components/SimpleMenu/src/types.ts | export interface MenuState {
activeName: string;
openNames: string[];
activeSubMenuNames: string[];
}
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/SimpleMenu/src/components/types.ts | frontend/src/components/SimpleMenu/src/components/types.ts | import { Ref } from 'vue';
export interface Props {
theme: string;
activeName?: string | number | undefined;
openNames: string[];
accordion: boolean;
width: string;
collapsedWidth: string;
indentSize: number;
collapse: boolean;
activeSubMenuNames: (string | number)[];
}
export interface SubMenuProvi... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/SimpleMenu/src/components/useSimpleMenuContext.ts | frontend/src/components/SimpleMenu/src/components/useSimpleMenuContext.ts | import type { InjectionKey, Ref } from 'vue';
import type { Emitter } from '/@/utils/mitt';
import { createContext, useContext } from '/@/hooks/core/useContext';
export interface SimpleRootMenuContextProps {
rootMenuEmitter: Emitter;
activeName: Ref<string | number>;
}
const key: InjectionKey<SimpleRootMenuContex... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/SimpleMenu/src/components/useMenu.ts | frontend/src/components/SimpleMenu/src/components/useMenu.ts | import { computed, ComponentInternalInstance, unref } from 'vue';
import type { CSSProperties } from 'vue';
export function useMenuItem(instance: ComponentInternalInstance | null) {
const getParentMenu = computed(() => {
return findParentMenu(['Menu', 'SubMenu']);
});
const getParentRootMenu = computed(() =... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Drawer/index.ts | frontend/src/components/Drawer/index.ts | import { withInstall } from '/@/utils';
import basicDrawer from './src/BasicDrawer.vue';
export const BasicDrawer = withInstall(basicDrawer);
export * from './src/typing';
export { useDrawer, useDrawerInner } from './src/useDrawer';
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Drawer/src/typing.ts | frontend/src/components/Drawer/src/typing.ts | import type { ButtonProps } from 'ant-design-vue/lib/button/buttonTypes';
import type { CSSProperties, VNodeChild, ComputedRef } from 'vue';
import type { ScrollContainerOptions } from '/@/components/Container/index';
export interface DrawerInstance {
setDrawerProps: (props: Partial<DrawerProps> | boolean) => void;
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Drawer/src/useDrawer.ts | frontend/src/components/Drawer/src/useDrawer.ts | import type {
UseDrawerReturnType,
DrawerInstance,
ReturnMethods,
DrawerProps,
UseDrawerInnerReturnType,
} from './typing';
import {
ref,
getCurrentInstance,
unref,
reactive,
watchEffect,
nextTick,
toRaw,
computed,
} from 'vue';
import { isProdMode } from '/@/utils/env';
import { isFunction } ... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Drawer/src/props.ts | frontend/src/components/Drawer/src/props.ts | import type { PropType } from 'vue';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
export const footerProps = {
confirmLoading: { type: Boolean },
/**
* @description: Show close button
*/
showCancelBtn: { type: Boolean, default: true },
cancelButtonProps: Object as PropType<Re... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Cropper/index.ts | frontend/src/components/Cropper/index.ts | import { withInstall } from '/@/utils';
import cropperImage from './src/Cropper.vue';
import avatarCropper from './src/CropperAvatar.vue';
export * from './src/typing';
export const CropperImage = withInstall(cropperImage);
export const CropperAvatar = withInstall(avatarCropper);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Cropper/src/typing.ts | frontend/src/components/Cropper/src/typing.ts | import type Cropper from 'cropperjs';
export interface CropendResult {
imgBase64: string;
imgInfo: Cropper.Data;
}
export type { Cropper };
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/index.ts | frontend/src/components/Form/index.ts | import BasicForm from './src/BasicForm.vue';
export * from './src/types/form';
export * from './src/types/formItem';
export { useComponentRegister } from './src/hooks/useComponentRegister';
export { useForm } from './src/hooks/useForm';
export { default as ApiSelect } from './src/components/ApiSelect.vue';
export { ... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/componentMap.ts | frontend/src/components/Form/src/componentMap.ts | import type { Component } from 'vue';
import type { ComponentType } from './types/index';
/**
* Component list, register here to setting it in the form
*/
import {
Input,
Select,
Radio,
Checkbox,
AutoComplete,
Cascader,
DatePicker,
InputNumber,
Switch,
TimePicker,
TreeSelect,
Slider,
Rate,
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/helper.ts | frontend/src/components/Form/src/helper.ts | import type { ValidationRule } from 'ant-design-vue/lib/form/Form';
import type { ComponentType } from './types/index';
import { useI18n } from '/@/hooks/web/useI18n';
import { dateUtil } from '/@/utils/dateUtil';
import { isNumber, isObject } from '/@/utils/is';
const { t } = useI18n();
/**
* @description: 生成placeh... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/props.ts | frontend/src/components/Form/src/props.ts | import type { FieldMapToTime, FormSchema } from './types/form';
import type { CSSProperties, PropType } from 'vue';
import type { ColEx } from './types';
import type { TableActionType } from '/@/components/Table';
import type { ButtonProps } from 'ant-design-vue/es/button/buttonTypes';
import type { RowProps } from 'an... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useAdvanced.ts | frontend/src/components/Form/src/hooks/useAdvanced.ts | import type { ColEx } from '../types';
import type { AdvanceState } from '../types/hooks';
import { ComputedRef, getCurrentInstance, Ref, shallowReactive } from 'vue';
import type { FormProps, FormSchema } from '../types/form';
import { computed, unref, watch } from 'vue';
import { isBoolean, isFunction, isNumber, isOb... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useForm.ts | frontend/src/components/Form/src/hooks/useForm.ts | import type { FormProps, FormActionType, UseFormReturnType, FormSchema } from '../types/form';
import type { NamePath } from 'ant-design-vue/lib/form/interface';
import type { DynamicProps } from '/#/utils';
import { ref, onUnmounted, unref, nextTick, watch } from 'vue';
import { isProdMode } from '/@/utils/env';
impor... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useFormEvents.ts | frontend/src/components/Form/src/hooks/useFormEvents.ts | import type { ComputedRef, Ref } from 'vue';
import type { FormProps, FormSchema, FormActionType } from '../types/form';
import type { NamePath } from 'ant-design-vue/lib/form/interface';
import { unref, toRaw, nextTick } from 'vue';
import {
isArray,
isFunction,
isObject,
isString,
isDef,
isNullOrUnDef,
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useLabelWidth.ts | frontend/src/components/Form/src/hooks/useLabelWidth.ts | import type { Ref } from 'vue';
import { computed, unref } from 'vue';
import type { FormProps, FormSchema } from '../types/form';
import { isNumber } from '/@/utils/is';
export function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<FormProps>) {
return computed(() => {
const schemaItem = unref... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useComponentRegister.ts | frontend/src/components/Form/src/hooks/useComponentRegister.ts | import type { ComponentType } from '../types/index';
import { tryOnUnmounted } from '@vueuse/core';
import { add, del } from '../componentMap';
import type { Component } from 'vue';
export function useComponentRegister(compName: ComponentType, comp: Component) {
add(compName, comp);
tryOnUnmounted(() => {
del(... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useFormContext.ts | frontend/src/components/Form/src/hooks/useFormContext.ts | import type { InjectionKey } from 'vue';
import { createContext, useContext } from '/@/hooks/core/useContext';
export interface FormContextProps {
resetAction: () => Promise<void>;
submitAction: () => Promise<void>;
}
const key: InjectionKey<FormContextProps> = Symbol();
export function createFormContext(context... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useAutoFocus.ts | frontend/src/components/Form/src/hooks/useAutoFocus.ts | import type { ComputedRef, Ref } from 'vue';
import type { FormSchema, FormActionType, FormProps } from '../types/form';
import { unref, nextTick, watchEffect } from 'vue';
interface UseAutoFocusContext {
getSchema: ComputedRef<FormSchema[]>;
getProps: ComputedRef<FormProps>;
isInitedDefault: Ref<boolean>;
fo... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/hooks/useFormValues.ts | frontend/src/components/Form/src/hooks/useFormValues.ts | import { isArray, isFunction, isObject, isString, isNullOrUnDef } from '/@/utils/is';
import { dateUtil } from '/@/utils/dateUtil';
import { unref } from 'vue';
import type { Ref, ComputedRef } from 'vue';
import type { FormProps, FormSchema } from '../types/form';
import { cloneDeep, set } from 'lodash-es';
interface... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/types/formItem.ts | frontend/src/components/Form/src/types/formItem.ts | import type { NamePath } from 'ant-design-vue/lib/form/interface';
import type { ColProps } from 'ant-design-vue/lib/grid/Col';
import type { HTMLAttributes, VNodeChild } from 'vue';
export interface FormItem {
/**
* Used with label, whether to display : after label text.
* @default true
* @type boolean
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/types/form.ts | frontend/src/components/Form/src/types/form.ts | import type { NamePath, RuleObject } from 'ant-design-vue/lib/form/interface';
import type { VNode } from 'vue';
import type { ButtonProps as AntdButtonProps } from '/@/components/Button';
import type { FormItem } from './formItem';
import type { ColEx, ComponentType } from './index';
import type { TableActionType } fr... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/types/index.ts | frontend/src/components/Form/src/types/index.ts | type ColSpanType = number | string;
export interface ColEx {
style?: any;
/**
* raster number of cells to occupy, 0 corresponds to display: none
* @default none (0)
* @type ColSpanType
*/
span?: ColSpanType;
/**
* raster order, used in flex layout mode
* @default 0
* @type ColSpanType
*... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Form/src/types/hooks.ts | frontend/src/components/Form/src/types/hooks.ts | export interface AdvanceState {
isAdvanced: boolean;
hideAdvanceBtn: boolean;
isLoad: boolean;
actionSpan: number;
}
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Tinymce/index.ts | frontend/src/components/Tinymce/index.ts | import { withInstall } from '/@/utils/index';
import tinymce from './src/Editor.vue';
export const Tinymce = withInstall(tinymce);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Tinymce/src/helper.ts | frontend/src/components/Tinymce/src/helper.ts | const validEvents = [
'onActivate',
'onAddUndo',
'onBeforeAddUndo',
'onBeforeExecCommand',
'onBeforeGetContent',
'onBeforeRenderUI',
'onBeforeSetContent',
'onBeforePaste',
'onBlur',
'onChange',
'onClearUndos',
'onClick',
'onContextMenu',
'onCopy',
'onCut',
'onDblclick',
'onDeactivate',... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Tinymce/src/tinymce.ts | frontend/src/components/Tinymce/src/tinymce.ts | // Any plugins you want to setting has to be imported
// Detail plugins list see https://www.tinymce.com/docs/plugins/
// Custom builds see https://www.tinymce.com/download/custom-builds/
// colorpicker/contextmenu/textcolor plugin is now built in to the core editor, please remove it from your editor configuration
exp... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/CodeEditor/index.ts | frontend/src/components/CodeEditor/index.ts | import { withInstall } from '/@/utils';
import codeEditor from './src/CodeEditor.vue';
import jsonPreview from './src/json-preview/JsonPreview.vue';
export const CodeEditor = withInstall(codeEditor);
export const JsonPreview = withInstall(jsonPreview);
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/CodeEditor/src/typing.ts | frontend/src/components/CodeEditor/src/typing.ts | export enum MODE {
JSON = 'application/json',
HTML = 'htmlmixed',
JS = 'javascript',
}
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/CodeEditor/src/codemirror/codeMirror.ts | frontend/src/components/CodeEditor/src/codemirror/codeMirror.ts | import CodeMirror from 'codemirror';
import './codemirror.css';
import 'codemirror/theme/idea.css';
import 'codemirror/theme/material-palenight.css';
// import 'codemirror/addon/lint/lint.css';
// modes
import 'codemirror/mode/javascript/javascript';
import 'codemirror/mode/css/css';
import 'codemirror/mode/htmlmixed/... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Loading/index.ts | frontend/src/components/Loading/index.ts | import Loading from './src/Loading.vue';
export { Loading };
export { useLoading } from './src/useLoading';
export { createLoading } from './src/createLoading';
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Loading/src/typing.ts | frontend/src/components/Loading/src/typing.ts | import { SizeEnum } from '/@/enums/sizeEnum';
export interface LoadingProps {
tip: string;
size: SizeEnum;
absolute: boolean;
loading: boolean;
background: string;
theme: 'dark' | 'light';
}
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Loading/src/createLoading.ts | frontend/src/components/Loading/src/createLoading.ts | import { VNode, defineComponent } from 'vue';
import type { LoadingProps } from './typing';
import { createVNode, render, reactive, h } from 'vue';
import Loading from './Loading.vue';
export function createLoading(props?: Partial<LoadingProps>, target?: HTMLElement, wait = false) {
let vm: Nullable<VNode> = null;
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Loading/src/useLoading.ts | frontend/src/components/Loading/src/useLoading.ts | import { unref } from 'vue';
import { createLoading } from './createLoading';
import type { LoadingProps } from './typing';
import type { Ref } from 'vue';
export interface UseLoadingOptions {
target?: any;
props?: Partial<LoadingProps>;
}
interface Fn {
(): void;
}
export function useLoading(props: Partial<Lo... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Icon/index.ts | frontend/src/components/Icon/index.ts | import Icon from './src/Icon.vue';
import SvgIcon from './src/SvgIcon.vue';
import IconPicker from './src/IconPicker.vue';
export { Icon, IconPicker, SvgIcon };
export default Icon;
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Icon/data/icons.data.ts | frontend/src/components/Icon/data/icons.data.ts | export default {
prefix: 'ant-design',
icons: [
'account-book-filled',
'account-book-outlined',
'account-book-twotone',
'aim-outlined',
'alert-filled',
'alert-outlined',
'alert-twotone',
'alibaba-outlined',
'align-center-outlined',
'align-left-outlined',
'align-right-outl... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/ClickOutSide/index.ts | frontend/src/components/ClickOutSide/index.ts | import { withInstall } from '/@/utils';
import clickOutSide from './src/ClickOutSide.vue';
export const ClickOutSide = withInstall(clickOutSide);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/StrengthMeter/index.ts | frontend/src/components/StrengthMeter/index.ts | import { withInstall } from '/@/utils';
import strengthMeter from './src/StrengthMeter.vue';
export const StrengthMeter = withInstall(strengthMeter);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/CountDown/index.ts | frontend/src/components/CountDown/index.ts | import { withInstall } from '/@/utils';
import countButton from './src/CountButton.vue';
import countdownInput from './src/CountdownInput.vue';
export const CountdownInput = withInstall(countdownInput);
export const CountButton = withInstall(countButton);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/CountDown/src/useCountdown.ts | frontend/src/components/CountDown/src/useCountdown.ts | import { ref, unref } from 'vue';
import { tryOnUnmounted } from '@vueuse/core';
export function useCountdown(count: number) {
const currentCount = ref(count);
const isStart = ref(false);
let timerId: ReturnType<typeof setInterval> | null
function clear() {
timerId && window.clearInterval(timerId);
}
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Menu/index.ts | frontend/src/components/Menu/index.ts | import BasicMenu from './src/BasicMenu.vue';
export { BasicMenu };
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Menu/src/props.ts | frontend/src/components/Menu/src/props.ts | import type { Menu } from '/@/router/types';
import type { PropType } from 'vue';
import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum';
import { ThemeEnum } from '/@/enums/appEnum';
import { propTypes } from '/@/utils/propTypes';
import type { MenuTheme } from 'ant-design-vue';
import type { MenuMode } from ... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Menu/src/useOpenKeys.ts | frontend/src/components/Menu/src/useOpenKeys.ts | import { MenuModeEnum } from '/@/enums/menuEnum';
import type { Menu as MenuType } from '/@/router/types';
import type { MenuState } from './types';
import { computed, Ref, toRaw } from 'vue';
import { unref } from 'vue';
import { uniq } from 'lodash-es';
import { useMenuSetting } from '/@/hooks/setting/useMenuSettin... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Menu/src/types.ts | frontend/src/components/Menu/src/types.ts | // import { ComputedRef } from 'vue';
// import { ThemeEnum } from '/@/enums/appEnum';
// import { MenuModeEnum } from '/@/enums/menuEnum';
export interface MenuState {
// 默认选中的列表
defaultSelectedKeys: string[];
// 模式
// mode: MenuModeEnum;
// // 主题
// theme: ComputedRef<ThemeEnum> | ThemeEnum;
// 缩进
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Page/index.ts | frontend/src/components/Page/index.ts | import { withInstall } from '/@/utils';
import pageFooter from './src/PageFooter.vue';
import pageWrapper from './src/PageWrapper.vue';
export const PageFooter = withInstall(pageFooter);
export const PageWrapper = withInstall(pageWrapper);
export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight';
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Verify/index.ts | frontend/src/components/Verify/index.ts | import { withInstall } from '/@/utils/index';
import basicDragVerify from './src/DragVerify.vue';
import rotateDragVerify from './src/ImgRotate.vue';
export const BasicDragVerify = withInstall(basicDragVerify);
export const RotateDragVerify = withInstall(rotateDragVerify);
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/Verify/src/typing.ts | frontend/src/components/Verify/src/typing.ts | export interface DragVerifyActionType {
resume: () => void;
}
export interface PassingData {
isPassing: boolean;
time: number;
}
export interface MoveData {
event: MouseEvent | TouchEvent;
moveDistance: number;
moveX: number;
}
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Verify/src/props.ts | frontend/src/components/Verify/src/props.ts | import type { PropType } from 'vue';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
export const basicProps = {
value: {
type: Boolean as PropType<boolean>,
default: false,
},
isSlot: {
type: Boolean as PropType<boolean>,
default: false,
},
text: {
type: [Strin... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Preview/index.ts | frontend/src/components/Preview/index.ts | export { default as ImagePreview } from './src/Preview.vue';
export { createImgPreview } from './src/functional';
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Preview/src/typing.ts | frontend/src/components/Preview/src/typing.ts | export interface Options {
show?: boolean;
imageList: string[];
index?: number;
scaleStep?: number;
defaultWidth?: number;
maskClosable?: boolean;
rememberState?: boolean;
onImgLoad?: ({ index: number, url: string, dom: HTMLImageElement }) => void;
onImgError?: ({ index: number, url: string, dom: HTML... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Preview/src/functional.ts | frontend/src/components/Preview/src/functional.ts | import type { Options, Props } from './typing';
import ImgPreview from './Functional.vue';
import { isClient } from '/@/utils/is';
import { createVNode, render } from 'vue';
let instance: ReturnType<typeof createVNode> | null = null;
export function createImgPreview(options: Options) {
if (!isClient) return;
const... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Time/index.ts | frontend/src/components/Time/index.ts | import { withInstall } from '/@/utils/index';
import time from './src/Time.vue';
export const Time = withInstall(time);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Dropdown/index.ts | frontend/src/components/Dropdown/index.ts | import { withInstall } from '/@/utils';
import dropdown from './src/Dropdown.vue';
export * from './src/typing';
export const Dropdown = withInstall(dropdown);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Dropdown/src/typing.ts | frontend/src/components/Dropdown/src/typing.ts | export interface DropMenu {
onClick?: Fn;
to?: string;
icon?: string;
event: string | number;
text: string;
disabled?: boolean;
divider?: boolean;
}
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Transition/index.ts | frontend/src/components/Transition/index.ts | import { createSimpleTransition, createJavascriptTransition } from './src/CreateTransition';
import ExpandTransitionGenerator from './src/ExpandTransition';
export { default as CollapseTransition } from './src/CollapseTransition.vue';
export const FadeTransition = createSimpleTransition('fade-transition');
export co... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Transition/src/CreateTransition.tsx | frontend/src/components/Transition/src/CreateTransition.tsx | import type { PropType } from 'vue';
import { defineComponent, Transition, TransitionGroup } from 'vue';
import { getSlot } from '/@/utils/helper/tsxHelper';
type Mode = 'in-out' | 'out-in' | 'default' | undefined;
export function createSimpleTransition(name: string, origin = 'top center 0', mode?: Mode) {
return ... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Transition/src/ExpandTransition.ts | frontend/src/components/Transition/src/ExpandTransition.ts | /**
* Makes the first character of a string uppercase
*/
export function upperFirst(str: string): string {
return str.charAt(0).toUpperCase() + str.slice(1);
}
interface HTMLExpandElement extends HTMLElement {
_parent?: (Node & ParentNode & HTMLElement) | null;
_initialStyle: {
transition: string;
over... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Upload/index.ts | frontend/src/components/Upload/index.ts | import { withInstall } from '/@/utils';
import basicUpload from './src/BasicUpload.vue';
export const BasicUpload = withInstall(basicUpload);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Upload/src/typing.ts | frontend/src/components/Upload/src/typing.ts | import { UploadApiResult } from '/@/api/sys/model/uploadModel';
export enum UploadResultStatus {
SUCCESS = 'success',
ERROR = 'error',
UPLOADING = 'uploading',
}
export interface FileItem {
thumbUrl?: string;
name: string;
size: string | number;
type?: string;
percent: number;
file: File;
status?:... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Upload/src/helper.ts | frontend/src/components/Upload/src/helper.ts | export function checkFileType(file: File, accepts: string[]) {
const newTypes = accepts.join('|');
// const reg = /\.(jpg|jpeg|png|gif|txt|doc|docx|xls|xlsx|xml)$/i;
const reg = new RegExp('\\.(' + newTypes + ')$', 'i');
return reg.test(file.name);
}
export function checkImgType(file: File) {
return isImgTy... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Upload/src/useUpload.ts | frontend/src/components/Upload/src/useUpload.ts | import { Ref, unref, computed } from 'vue';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();
export function useUploadType({
acceptRef,
helpTextRef,
maxNumberRef,
maxSizeRef,
}: {
acceptRef: Ref<string[]>;
helpTextRef: Ref<string>;
maxNumberRef: Ref<number>;
maxSizeRef: Ref<numbe... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Upload/src/data.tsx | frontend/src/components/Upload/src/data.tsx | import type { BasicColumn, ActionItem } from '/@/components/Table';
import { FileItem, PreviewFileItem, UploadResultStatus } from './typing';
import {
// checkImgType,
isImgTypeByName,
} from './helper';
import { Progress, Tag } from 'ant-design-vue';
import TableAction from '/@/components/Table/src/components/Tabl... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Upload/src/props.ts | frontend/src/components/Upload/src/props.ts | import type { PropType } from 'vue';
import { FileBasicColumn } from './typing';
export const basicProps = {
helpText: {
type: String as PropType<string>,
default: '',
},
// 文件最大多少MB
maxSize: {
type: Number as PropType<number>,
default: 2,
},
// 最大数量的文件,Infinity不限制
maxNumber: {
type: ... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Button/index.ts | frontend/src/components/Button/index.ts | import { withInstall } from '/@/utils';
import type { ExtractPropTypes } from 'vue';
import button from './src/BasicButton.vue';
import popConfirmButton from './src/PopConfirmButton.vue';
import { buttonProps } from './src/props';
export const Button = withInstall(button);
export const PopConfirmButton = withInstall(p... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Button/src/props.ts | frontend/src/components/Button/src/props.ts | const validColors = ['error', 'warning', 'success', ''] as const;
type ButtonColorType = typeof validColors[number];
export const buttonProps = {
color: {
type: String as PropType<ButtonColorType>,
validator: (v) => validColors.includes(v),
default: '',
},
loading: { type: Boolean },
disabled: { ty... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/VirtualScroll/index.ts | frontend/src/components/VirtualScroll/index.ts | import { withInstall } from '/@/utils/index';
import vScroll from './src/VirtualScroll.vue';
export const VScroll = withInstall(vScroll);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Qrcode/index.ts | frontend/src/components/Qrcode/index.ts | import { withInstall } from '/@/utils';
import qrCode from './src/Qrcode.vue';
export const QrCode = withInstall(qrCode);
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/Qrcode/src/drawCanvas.ts | frontend/src/components/Qrcode/src/drawCanvas.ts | import { toCanvas } from 'qrcode';
import type { QRCodeRenderersOptions } from 'qrcode';
import { RenderQrCodeParams, ContentType } from './typing';
import { cloneDeep } from 'lodash-es';
export const renderQrCode = ({
canvas,
content,
width = 0,
options: params = {},
}: RenderQrCodeParams) => {
const option... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Qrcode/src/typing.ts | frontend/src/components/Qrcode/src/typing.ts | import type { QRCodeSegment, QRCodeRenderersOptions } from 'qrcode';
export type ContentType = string | QRCodeSegment[];
export type { QRCodeRenderersOptions };
export type LogoType = {
src: string;
logoSize: number;
borderColor: string;
bgColor: string;
borderSize: number;
crossOrigin: string;
borderR... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Qrcode/src/toCanvas.ts | frontend/src/components/Qrcode/src/toCanvas.ts | import { renderQrCode } from './drawCanvas';
import { drawLogo } from './drawLogo';
import { RenderQrCodeParams } from './typing';
export const toCanvas = (options: RenderQrCodeParams) => {
return renderQrCode(options)
.then(() => {
return options;
})
.then(drawLogo) as Promise<string>;
};
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Qrcode/src/qrcodePlus.ts | frontend/src/components/Qrcode/src/qrcodePlus.ts | // 参考 qr-code-with-logo 进行ts版本修改
import { toCanvas } from './toCanvas';
export * from './typing';
export { toCanvas };
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Qrcode/src/drawLogo.ts | frontend/src/components/Qrcode/src/drawLogo.ts | import { isString } from '/@/utils/is';
import { RenderQrCodeParams, LogoType } from './typing';
export const drawLogo = ({ canvas, logo }: RenderQrCodeParams) => {
if (!logo) {
return new Promise((resolve) => {
resolve((canvas as HTMLCanvasElement).toDataURL());
});
}
const canvasWidth = (canvas as... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/CardList/index.ts | frontend/src/components/CardList/index.ts | import { withInstall } from '/@/utils';
import cardList from './src/CardList.vue';
export const CardList = withInstall(cardList);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/CardList/src/data.ts | frontend/src/components/CardList/src/data.ts | import { ref } from 'vue';
// 每行个数
export const grid = ref(12);
// slider属性
export const useSlider = (min = 6, max = 12) => {
// 每行显示个数滑动条
const getMarks = () => {
const l = {};
for (let i = min; i < max + 1; i++) {
l[i] = {
style: {
color: '#fff',
},
label: i,
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/CountTo/index.ts | frontend/src/components/CountTo/index.ts | import { withInstall } from '/@/utils';
import countTo from './src/CountTo.vue';
export const CountTo = withInstall(countTo);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Authority/index.ts | frontend/src/components/Authority/index.ts | import { withInstall } from '/@/utils';
import authority from './src/Authority.vue';
export const Authority = withInstall(authority);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Description/index.ts | frontend/src/components/Description/index.ts | import { withInstall } from '/@/utils';
import description from './src/Description.vue';
export * from './src/typing';
export { useDescription } from './src/useDescription';
export const Description = withInstall(description);
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Description/src/typing.ts | frontend/src/components/Description/src/typing.ts | import type { VNode, CSSProperties } from 'vue';
import type { CollapseContainerOptions } from '/@/components/Container/index';
import type { DescriptionsProps } from 'ant-design-vue/es/descriptions/index';
export interface DescItem {
labelMinWidth?: number;
contentMinWidth?: number;
labelStyle?: CSSProperties;
... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/components/Description/src/useDescription.ts | frontend/src/components/Description/src/useDescription.ts | import type { DescriptionProps, DescInstance, UseDescReturnType } from './typing';
import { ref, getCurrentInstance, unref } from 'vue';
import { isProdMode } from '/@/utils/env';
export function useDescription(props?: Partial<DescriptionProps>): UseDescReturnType {
if (!getCurrentInstance()) {
throw new Error('... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/propTypes.ts | frontend/src/utils/propTypes.ts | import { CSSProperties, VNodeChild } from 'vue';
import { createTypes, VueTypeValidableDef, VueTypesInterface } from 'vue-types';
export type VueNode = VNodeChild | JSX.Element;
type PropTypes = VueTypesInterface & {
readonly style: VueTypeValidableDef<CSSProperties>;
readonly VNodeChild: VueTypeValidableDef<VueN... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/is.ts | frontend/src/utils/is.ts | const toString = Object.prototype.toString;
export function is(val: unknown, type: string) {
return toString.call(val) === `[object ${type}]`;
}
export function isDef<T = unknown>(val?: T): val is T {
return typeof val !== 'undefined';
}
export function isUnDef<T = unknown>(val?: T): val is T {
return !isDef(v... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/color.ts | frontend/src/utils/color.ts | /**
* 判断是否 十六进制颜色值.
* 输入形式可为 #fff000 #f00
*
* @param String color 十六进制颜色值
* @return Boolean
*/
export function isHexColor(color: string) {
const reg = /^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/;
return reg.test(color);
}
/**
* RGB 颜色值转换为 十六进制颜色值.
* r, g, 和 b 需要在 [0, 255] 范围内
*
* @return String ... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/domUtils.ts | frontend/src/utils/domUtils.ts | import type { FunctionArgs } from '@vueuse/core';
import { upperFirst } from 'lodash-es';
export interface ViewportOffsetResult {
left: number;
top: number;
right: number;
bottom: number;
rightIncludeBody: number;
bottomIncludeBody: number;
}
export function getBoundingClientRect(element: Element): DOMRec... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/env.ts | frontend/src/utils/env.ts | import type { GlobEnvConfig } from '/#/config';
import { warn } from '/@/utils/log';
import pkg from '../../package.json';
import { getConfigFileName } from '../../build/getConfigFileName';
export function getCommonStoragePrefix() {
const { VITE_GLOB_APP_SHORT_NAME } = getAppEnvConfig();
return `${VITE_GLOB_APP_S... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/mitt.ts | frontend/src/utils/mitt.ts | /**
* copy to https://github.com/developit/mitt
* Expand clear method
*/
export type EventType = string | symbol;
// An event handler can take an optional event argument
// and should not return a value
export type Handler<T = any> = (event?: T) => void;
export type WildcardHandler = (type: EventType, event?: any)... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/uuid.ts | frontend/src/utils/uuid.ts | const hexList: string[] = [];
for (let i = 0; i <= 15; i++) {
hexList[i] = i.toString(16);
}
export function buildUUID(): string {
let uuid = '';
for (let i = 1; i <= 36; i++) {
if (i === 9 || i === 14 || i === 19 || i === 24) {
uuid += '-';
} else if (i === 15) {
uuid += 4;
} else if (i ... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/cipher.ts | frontend/src/utils/cipher.ts | import { encrypt, decrypt } from 'crypto-js/aes';
import { parse } from 'crypto-js/enc-utf8';
import pkcs7 from 'crypto-js/pad-pkcs7';
import ECB from 'crypto-js/mode-ecb';
import md5 from 'crypto-js/md5';
import UTF8 from 'crypto-js/enc-utf8';
import Base64 from 'crypto-js/enc-base64';
export interface EncryptionPara... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/log.ts | frontend/src/utils/log.ts | const projectName = import.meta.env.VITE_GLOB_APP_TITLE;
export function warn(message: string) {
console.warn(`[${projectName} warn]:${message}`);
}
export function error(message: string) {
throw new Error(`[${projectName} error]:${message}`);
}
| typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
tiyongliu/keeper | https://github.com/tiyongliu/keeper/blob/9bb57af82c4529e41031ea41f656e9977e0a6617/frontend/src/utils/bem.ts | frontend/src/utils/bem.ts | import { prefixCls } from '/@/settings/designSetting';
type Mod = string | { [key: string]: any };
type Mods = Mod | Mod[];
export type BEM = ReturnType<typeof createBEM>;
function genBem(name: string, mods?: Mods): string {
if (!mods) {
return '';
}
if (typeof mods === 'string') {
return ` ${name}--$... | typescript | MIT | 9bb57af82c4529e41031ea41f656e9977e0a6617 | 2026-01-05T04:59:45.217156Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.