新增用户意图确认功能
This commit is contained in:
1 parent
cf2e4bdd9c
commit
b8926f00d7
574 files changed
+97664
-97208
No files matched your search
+10
-10
@@ -1,10 +1,10 @@
|
||||
import type { KeyboardEvent } from "react";
|
||||
|
||||
type IMEKeyboardEvent = KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>;
|
||||
|
||||
export function isIMEComposing(
|
||||
event: IMEKeyboardEvent,
|
||||
isComposing = false,
|
||||
): boolean {
|
||||
return isComposing || event.nativeEvent.isComposing || event.keyCode === 229;
|
||||
}
|
||||
import type { KeyboardEvent } from "react";
|
||||
|
||||
type IMEKeyboardEvent = KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>;
|
||||
|
||||
export function isIMEComposing(
|
||||
event: IMEKeyboardEvent,
|
||||
isComposing = false,
|
||||
): boolean {
|
||||
return isComposing || event.nativeEvent.isComposing || event.keyCode === 229;
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
/** Shared class for external links (underline by default). */
|
||||
export const externalLinkClass =
|
||||
"text-primary underline underline-offset-2 hover:no-underline";
|
||||
/** Link style without underline by default (e.g. for streaming/loading). */
|
||||
export const externalLinkClassNoUnderline = "text-primary hover:underline";
|
||||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
/** Shared class for external links (underline by default). */
|
||||
export const externalLinkClass =
|
||||
"text-primary underline underline-offset-2 hover:no-underline";
|
||||
/** Link style without underline by default (e.g. for streaming/loading). */
|
||||
export const externalLinkClassNoUnderline = "text-primary hover:underline";
|
||||
Reference in new issue
Block a user