Pre-MCP UI and architecture cleanup (#19689)
This commit is contained in:
committed by
GitHub
parent
d0061be838
commit
ea003229d3
@@ -136,9 +136,28 @@ export enum FileExtensionText {
|
||||
CS = '.cs'
|
||||
}
|
||||
|
||||
// MIME type prefixes and includes for content detection
|
||||
export enum MimeTypePrefix {
|
||||
IMAGE = 'image/',
|
||||
TEXT = 'text'
|
||||
}
|
||||
|
||||
export enum MimeTypeIncludes {
|
||||
JSON = 'json',
|
||||
JAVASCRIPT = 'javascript',
|
||||
TYPESCRIPT = 'typescript'
|
||||
}
|
||||
|
||||
// URI patterns for content detection
|
||||
export enum UriPattern {
|
||||
DATABASE_KEYWORD = 'database',
|
||||
DATABASE_SCHEME = 'db://'
|
||||
}
|
||||
|
||||
// MIME type enums
|
||||
export enum MimeTypeApplication {
|
||||
PDF = 'application/pdf'
|
||||
PDF = 'application/pdf',
|
||||
OCTET_STREAM = 'application/octet-stream'
|
||||
}
|
||||
|
||||
export enum MimeTypeAudio {
|
||||
@@ -152,6 +171,7 @@ export enum MimeTypeAudio {
|
||||
|
||||
export enum MimeTypeImage {
|
||||
JPEG = 'image/jpeg',
|
||||
JPG = 'image/jpg',
|
||||
PNG = 'image/png',
|
||||
GIF = 'image/gif',
|
||||
WEBP = 'image/webp',
|
||||
|
||||
@@ -2,11 +2,11 @@ export { AttachmentType } from './attachment';
|
||||
|
||||
export {
|
||||
ChatMessageStatsView,
|
||||
ReasoningFormat,
|
||||
ContentPartType,
|
||||
ErrorDialogType,
|
||||
MessageRole,
|
||||
MessageType,
|
||||
ContentPartType,
|
||||
ErrorDialogType
|
||||
ReasoningFormat
|
||||
} from './chat';
|
||||
|
||||
export {
|
||||
@@ -19,6 +19,9 @@ export {
|
||||
FileExtensionAudio,
|
||||
FileExtensionPdf,
|
||||
FileExtensionText,
|
||||
MimeTypePrefix,
|
||||
MimeTypeIncludes,
|
||||
UriPattern,
|
||||
MimeTypeApplication,
|
||||
MimeTypeAudio,
|
||||
MimeTypeImage,
|
||||
@@ -31,6 +34,6 @@ export { ServerRole, ServerModelStatus } from './server';
|
||||
|
||||
export { ParameterSource, SyncableParameterType, SettingsFieldType } from './settings';
|
||||
|
||||
export { KeyboardKey } from './keyboard';
|
||||
export { ColorMode, UrlPrefix } from './ui';
|
||||
|
||||
export { UrlPrefix } from './ui';
|
||||
export { KeyboardKey } from './keyboard';
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
export enum ColorMode {
|
||||
LIGHT = 'light',
|
||||
DARK = 'dark',
|
||||
SYSTEM = 'system'
|
||||
}
|
||||
|
||||
/**
|
||||
* URL prefixes for protocol detection.
|
||||
* URL prefixes for protocol detection
|
||||
*/
|
||||
export enum UrlPrefix {
|
||||
DATA = 'data:',
|
||||
|
||||
Reference in New Issue
Block a user