Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
feat: support file media on web (#6318)
Kilu.Hee4029d05dc7d
diff --git a/frontend/appflowy_web_app/src/application/database-yjs/cell.parse.ts b/frontend/appflowy_web_app/src/application/database-yjs/cell.parse.tsindex 4124381c06..ab42f360e1 100644--- a/frontend/appflowy_web_app/src/application/database-yjs/cell.parse.ts+++ b/frontend/appflowy_web_app/src/application/database-yjs/cell.parse.ts@@ -1,8 +1,9 @@import { YDatabaseCell, YjsDatabaseKey } from '@/application/collab.type';import { FieldType } from '@/application/database-yjs/database.type';-import { Cell, CheckboxCell, DateTimeCell } from './cell.type';+import { YArray } from 'yjs/dist/src/types/YArray';+import { Cell, CheckboxCell, DateTimeCell, FileMediaCell, FileMediaCellData } from './cell.type';-export function parseYDatabaseCommonCellToCell(cell: YDatabaseCell): Cell {+export function parseYDatabaseCommonCellToCell (cell: YDatabaseCell): Cell {return {createdAt: Number(cell.get(YjsDatabaseKey.created_at)),lastModified: Number(cell.get(YjsDatabaseKey.last_modified)),@@ -11,7 +12,7 @@ export function parseYDatabaseCommonCellToCell(cell: YDatabaseCell): Cell {};}-export function parseYDatabaseCellToCell(cell: YDatabaseCell): Cell {+export function parseYDatabaseCellToCell (cell: YDatabaseCell): Cell {const fieldType = parseInt(cell.get(YjsDatabaseKey.field_type));if (fieldType === FieldType.DateTime) {@@ -22,10 +23,14 @@ export function parseYDatabaseCellToCell(cell: YDatabaseCell): Cell {return parseYDatabaseCheckboxCellToCell(cell);}+ if (fieldType === FieldType.FileMedia) {+ return parseYDatabaseFileMediaCellToCell(cell);+ }+return parseYDatabaseCommonCellToCell(cell);}-export function parseYDatabaseDateTimeCellToCell(cell: YDatabaseCell): DateTimeCell {+export function parseYDatabaseDateTimeCellToCell (cell: YDatabaseCell): DateTimeCell {return {...parseYDatabaseCommonCellToCell(cell),data: cell.get(YjsDatabaseKey.data) as string,@@ -37,7 +42,18 @@ export function parseYDatabaseDateTimeCellToCell(cell: YDatabaseCell): DateTimeC};}-export function parseYDatabaseCheckboxCellToCell(cell: YDatabaseCell): CheckboxCell {+export function parseYDatabaseFileMediaCellToCell (cell: YDatabaseCell): FileMediaCell {+ const data = cell.get(YjsDatabaseKey.data) as YArray<string>;+ const dataJson = data.toJSON().map((item: string) => JSON.parse(item)) as FileMediaCellData;++ return {+ ...parseYDatabaseCommonCellToCell(cell),+ data: dataJson,+ fieldType: FieldType.FileMedia,+ };+}++export function parseYDatabaseCheckboxCellToCell (cell: YDatabaseCell): CheckboxCell {return {...parseYDatabaseCommonCellToCell(cell),data: cell.get(YjsDatabaseKey.data) === 'Yes',diff --git a/frontend/appflowy_web_app/src/application/database-yjs/cell.type.ts b/frontend/appflowy_web_app/src/application/database-yjs/cell.type.tsindex 9e4bf77737..41249cba7a 100644--- a/frontend/appflowy_web_app/src/application/database-yjs/cell.type.ts+++ b/frontend/appflowy_web_app/src/application/database-yjs/cell.type.ts@@ -52,6 +52,33 @@ export interface DateTimeCell extends Cell {reminderId?: string;}+export enum FileMediaType {+ Image = 'Image',+ Video = 'Video',+ Link = 'Link',+ Other = 'Other',+}++export enum FileMediaUploadType {+ CloudMedia = 'CloudMedia',+ NetworkMedia = 'NetworkMedia',+}++export interface FileMediaCellDataItem {+ file_type: FileMediaType;+ id: string;+ name: string;+ upload_type: FileMediaUploadType;+ url: string;+}++export type FileMediaCellData = FileMediaCellDataItem[]++export interface FileMediaCell extends Cell {+ fieldType: FieldType.FileMedia;+ data: FileMediaCellData;+}+export interface DateTimeCellData {date?: string;time?: string;diff --git a/frontend/appflowy_web_app/src/application/database-yjs/database.type.ts b/frontend/appflowy_web_app/src/application/database-yjs/database.type.tsindex f7c4dc3a03..97da184fc5 100644--- a/frontend/appflowy_web_app/src/application/database-yjs/database.type.ts+++ b/frontend/appflowy_web_app/src/application/database-yjs/database.type.ts@@ -20,6 +20,7 @@ export enum FieldType {Relation = 10,AISummaries = 11,AITranslations = 12,+ FileMedia = 14}export enum CalculationType {diff --git a/frontend/appflowy_web_app/src/assets/media.svg b/frontend/appflowy_web_app/src/assets/media.svgnew file mode 100644index 0000000000..72ce1f38fa--- /dev/null+++ b/frontend/appflowy_web_app/src/assets/media.svg@@ -0,0 +1,6 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 16 16" fill="none" stroke="currentColor"+ stroke-linecap="round" stroke-linejoin="round" id="Paperclip--Streamline-Lucide.svg" height="16" width="16">+ <desc>Paperclip Streamline Icon: https://streamlinehq.com</desc>+ <path d="m13.4 6.90625 -5.7437499999999995 5.7437499999999995a3.75 3.75 0 0 1 -5.30625 -5.30625l5.35625 -5.35625A2.5 2.5 0 1 1 11.25 5.525l-5.36875 5.35625a1.25 1.25 0 0 1 -1.76875 -1.76875l5.30625 -5.300000000000001"+ stroke-width="1"></path>+</svg>\ No newline at end of filediff --git a/frontend/appflowy_web_app/src/assets/video.svg b/frontend/appflowy_web_app/src/assets/video.svgnew file mode 100644index 0000000000..902075ae39--- /dev/null+++ b/frontend/appflowy_web_app/src/assets/video.svg@@ -0,0 +1,8 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.5 -0.5 16 16" fill="none" stroke="currentColor"+ stroke-linecap="round" stroke-linejoin="round" id="Video--Streamline-Lucide.svg" height="16" width="16">+ <desc>Video Streamline Icon: https://streamlinehq.com</desc>+ <path d="m10 8.125 3.264375 2.17625a0.3125 0.3125 0 0 0 0.48562500000000003 -0.26V4.91875a0.3125 0.3125 0 0 0 -0.47 -0.27L10 6.5625"+ stroke-width="1"></path>+ <path d="M2.5 3.75h6.25s1.25 0 1.25 1.25v5s0 1.25 -1.25 1.25H2.5s-1.25 0 -1.25 -1.25V5s0 -1.25 1.25 -1.25"+ stroke-width="1"></path>+</svg>\ No newline at end of filediff --git a/frontend/appflowy_web_app/src/components/_shared/gallery-preview/GalleryPreview.tsx b/frontend/appflowy_web_app/src/components/_shared/gallery-preview/GalleryPreview.tsxindex eb4a0c9af4..b163aeb665 100644--- a/frontend/appflowy_web_app/src/components/_shared/gallery-preview/GalleryPreview.tsx+++ b/frontend/appflowy_web_app/src/components/_shared/gallery-preview/GalleryPreview.tsx@@ -1,9 +1,9 @@import { notify } from '@/components/_shared/notify';import { copyTextToClipboard } from '@/utils/copy';import { IconButton, Portal, Tooltip } from '@mui/material';-import React, { memo, useCallback, useEffect, useState } from 'react';+import React, { memo, useCallback, useEffect, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';-import { TransformWrapper, TransformComponent } from 'react-zoom-pan-pinch';+import { TransformWrapper, TransformComponent, ReactZoomPanPinchContentRef } from 'react-zoom-pan-pinch';import { ReactComponent as RightIcon } from '@/assets/arrow_right.svg';import { ReactComponent as ReloadIcon } from '@/assets/reload.svg';import { ReactComponent as AddIcon } from '@/assets/add.svg';@@ -14,8 +14,6 @@ import { ReactComponent as CloseIcon } from '@/assets/close.svg';export interface GalleryImage {src: string;- thumb: string;- responsive: string;}export interface GalleryPreviewProps {@@ -35,12 +33,16 @@ function GalleryPreview ({}: GalleryPreviewProps) {const { t } = useTranslation();const [index, setIndex] = useState(previewIndex);+ const transformComponentRef = useRef<ReactZoomPanPinchContentRef>(null);+const handleToPrev = useCallback(() => {setIndex((prev) => prev === 0 ? images.length - 1 : prev - 1);+ transformComponentRef.current?.resetTransform();}, [images.length]);const handleToNext = useCallback(() => {setIndex((prev) => prev === images.length - 1 ? 0 : prev + 1);+ transformComponentRef.current?.resetTransform();}, [images.length]);const handleCopy = useCallback(async () => {@@ -96,19 +98,21 @@ function GalleryPreview ({}return (- <Portal container={document.body}>+ <Portal container={document.getElementById('root')}><div className={'fixed inset-0 bg-black bg-opacity-80 z-[1400]'} onClick={onClose}><TransformWrapper+ ref={transformComponentRef}initialScale={1}- centerOnInit={true}maxScale={1.5}minScale={0.5}+ limitToBounds={false}>{({ zoomIn, zoomOut, resetTransform }) => (<React.Fragment>- <div className="absolute bottom-20 left-1/2 z-10 transform flex gap-4 -translate-x-1/2 p-4"- onClick={e => e.stopPropagation()}+ <div+ className="absolute bottom-20 left-1/2 z-10 transform flex gap-4 -translate-x-1/2 p-4"+ onClick={e => e.stopPropagation()}>{images.length > 1 &&<div className={'flex gap-2 w-fit bg-bg-mask rounded-[8px] p-2'}>@@ -166,11 +170,24 @@ function GalleryPreview ({</IconButton></Tooltip></div>- <TransformComponent contentProps={{- onClick: e => e.stopPropagation(),- }} wrapperStyle={{ width: '100%', height: '100%' }}+ <TransformComponent+ contentProps={{+ onClick: e => e.stopPropagation(),+ }} wrapperStyle={{+ width: '100%',+ height: '100%',+ display: 'flex',+ justifyContent: 'center',+ alignItems: 'center',+ }}>- <img src={images[index].src} alt={images[index].src}+ <img+ src={images[index].src} alt={images[index].src}+ style={{+ maxWidth: '100%',+ maxHeight: '100%',+ objectFit: 'contain',+ }}/></TransformComponent></React.Fragment>diff --git a/frontend/appflowy_web_app/src/components/database/components/cell/Cell.tsx b/frontend/appflowy_web_app/src/components/database/components/cell/Cell.tsxindex 3835db12ff..acd8f5858d 100644--- a/frontend/appflowy_web_app/src/components/database/components/cell/Cell.tsx+++ b/frontend/appflowy_web_app/src/components/database/components/cell/Cell.tsx@@ -12,8 +12,9 @@ import { DateTimeCell } from '@/components/database/components/cell/date';import { ChecklistCell } from '@/components/database/components/cell/checklist';import { CellProps, Cell as CellType } from '@/application/database-yjs/cell.type';import { RelationCell } from '@/components/database/components/cell/relation';+import { FileMediaCell } from 'src/components/database/components/cell/file-media';-export function Cell(props: CellProps<CellType>) {+export function Cell (props: CellProps<CellType>) {const { cell, rowId, fieldId, style } = props;const { field } = useFieldSelector(fieldId);const fieldType = Number(field?.get(YjsDatabaseKey.type)) as FieldType;@@ -37,6 +38,8 @@ export function Cell(props: CellProps<CellType>) {return ChecklistCell;case FieldType.Relation:return RelationCell;+ case FieldType.FileMedia:+ return FileMediaCell;default:return TextCell;}diff --git a/frontend/appflowy_web_app/src/components/database/components/cell/file-media/FileMediaCell.tsx b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/FileMediaCell.tsxnew file mode 100644index 0000000000..e13803acb6--- /dev/null+++ b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/FileMediaCell.tsx@@ -0,0 +1,74 @@+import {+ CellProps,+ FileMediaCell as FileMediaCellType,+ FileMediaCellDataItem,+ FileMediaType,+} from '@/application/database-yjs/cell.type';+import { GalleryPreview } from '@/components/_shared/gallery-preview';+import PreviewImage from '@/components/database/components/cell/file-media/PreviewImage';+import UnPreviewFile from '@/components/database/components/cell/file-media/UnPreviewFile';++import React, { useCallback, useMemo, Suspense } from 'react';++export function FileMediaCell ({ cell, style, placeholder }: CellProps<FileMediaCellType>) {+ const value = cell?.data;+ const className = useMemo(() => {+ const classList = ['flex items-center gap-1.5', 'cursor-text'];++ return classList.join(' ');+ }, []);+ const [openPreview, setOpenPreview] = React.useState(false);+ const previewIndexRef = React.useRef(0);+ const photos = useMemo(() => {+ return value?.filter(item => {+ return item.file_type === FileMediaType.Image;+ }).map(image => {+ return {+ src: image.url,+ };+ }) || [];+ }, [value]);++ const renderItem = useCallback((file: FileMediaCellDataItem, index: number) => {++ switch (file.file_type) {+ case FileMediaType.Image:+ return <PreviewImage+ key={file.id}+ file={file} onClick={() => {+ previewIndexRef.current = index;+ setOpenPreview(true);+ }}+ />;+ default:+ return <UnPreviewFile key={file.id} file={file} />;+ }+ }, []);++ const renderChildren = useMemo(() => {+ return value?.map(renderItem);+ }, [renderItem, value]);++ if (!value || value?.length === 0)+ return placeholder ? (+ <div style={style} className={'text-text-placeholder'}>+ {placeholder}+ </div>+ ) : null;++ return (+ <div style={style} className={className}>+ {renderChildren}+ {openPreview && <Suspense><GalleryPreview+ images={photos}+ previewIndex={previewIndexRef.current}+ open={openPreview}+ onClose={() => {+ setOpenPreview(false);+ }}+ /></Suspense>}+ </div>+ );+}++export default FileMediaCell;\ No newline at end of filediff --git a/frontend/appflowy_web_app/src/components/database/components/cell/file-media/PreviewImage.tsx b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/PreviewImage.tsxnew file mode 100644index 0000000000..1196f2541d--- /dev/null+++ b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/PreviewImage.tsx@@ -0,0 +1,24 @@+import { FileMediaCellDataItem } from '@/application/database-yjs/cell.type';+import React, { useMemo } from 'react';++function PreviewImage ({ file, onClick }: { file: FileMediaCellDataItem, onClick: () => void }) {+ const thumb = useMemo(() => {+ const url = new URL(file.url);++ url.searchParams.set('auto', 'format');+ url.searchParams.set('fit', 'crop');++ return url.toString() + '&w=240&q=80';+ }, [file.url]);++ return (+ <div onClick={onClick} className={'p-1 cursor-pointer hover:scale-110 transform transition-all duration-200'}>+ <img+ src={thumb} alt={file.name}+ className={'w-fit h-full object-cover border border-line-divider rounded-[8px] overflow-hidden'}+ />+ </div>+ );+}++export default PreviewImage;\ No newline at end of filediff --git a/frontend/appflowy_web_app/src/components/database/components/cell/file-media/UnPreviewFile.tsx b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/UnPreviewFile.tsxnew file mode 100644index 0000000000..ddd65bfffe--- /dev/null+++ b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/UnPreviewFile.tsx@@ -0,0 +1,53 @@+import { FileMediaCellDataItem, FileMediaType } from '@/application/database-yjs/cell.type';+import { ReactComponent as DocumentSvg } from '@/assets/document.svg';+import { ReactComponent as LinkSvg } from '@/assets/link.svg';+import { ReactComponent as CheckedSvg } from '@/assets/selected.svg';+import { ReactComponent as VideoSvg } from '@/assets/video.svg';+import { notify } from '@/components/_shared/notify';+import { copyTextToClipboard } from '@/utils/copy';+import { IconButton, Tooltip } from '@mui/material';+import React, { useCallback, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++function UnPreviewFile ({ file }: { file: FileMediaCellDataItem }) {+ const { t } = useTranslation();+ const [clicked, setClicked] = React.useState(false);++ const handleClick = useCallback(() => {+ void copyTextToClipboard(file.url);+ setClicked(true);+ notify.success(t('grid.url.copy'));+ }, [file.url, t]);++ const renderIcon = useMemo(() => {+ switch (file.file_type) {+ case FileMediaType.Video:+ return <VideoSvg className={'w-5 h-5'} />;+ case FileMediaType.Link:+ return <LinkSvg className={'w-5 h-5'} />;+ default:+ return <DocumentSvg className={'w-5 h-5'} />;+ }+ }, [file.file_type]);++ return (+ <Tooltip+ title={+ clicked ? t('message.copy.success') : <div className={'flex gap-1.5'}>{renderIcon}{file.name}</div>+ } enterNextDelay={1000} placement={'bottom'}+ >+ <IconButton+ style={{+ border: '1px solid var(--line-divider)',+ }}+ className={'p-1 rounded-[8px]'}+ onMouseLeave={() => setClicked(false)}+ onClick={handleClick}+ >+ {clicked ? <CheckedSvg className={'text-fill-default w-5 h-5'} /> : renderIcon}+ </IconButton>+ </Tooltip>+ );+}++export default UnPreviewFile;\ No newline at end of filediff --git a/frontend/appflowy_web_app/src/components/database/components/cell/file-media/index.ts b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/index.tsnew file mode 100644index 0000000000..18150b03cb--- /dev/null+++ b/frontend/appflowy_web_app/src/components/database/components/cell/file-media/index.ts@@ -0,0 +1 @@+export * from './FileMediaCell';\ No newline at end of filediff --git a/frontend/appflowy_web_app/src/components/database/components/field/CardField.tsx b/frontend/appflowy_web_app/src/components/database/components/field/CardField.tsxindex 911db2d0e5..c72d87e011 100644--- a/frontend/appflowy_web_app/src/components/database/components/field/CardField.tsx+++ b/frontend/appflowy_web_app/src/components/database/components/field/CardField.tsx@@ -1,10 +1,11 @@import { YjsDatabaseKey } from '@/application/collab.type';import { FieldType, useCellSelector, useFieldSelector } from '@/application/database-yjs';-import { TextCell } from '@/application/database-yjs/cell.type';+import { FileMediaCellData, TextCell } from '@/application/database-yjs/cell.type';import Cell from '@/components/database/components/cell/Cell';import { PrimaryCell } from '@/components/database/components/cell/primary';import React, { CSSProperties, useMemo } from 'react';import { useTranslation } from 'react-i18next';+import { ReactComponent as FileMediaSvg } from '@/assets/media.svg';export function CardField ({ rowId, fieldId }: { rowId: string; fieldId: string; index: number }) {const { t } = useTranslation();@@ -54,8 +55,9 @@ export function CardField ({ rowId, fieldId }: { rowId: string; fieldId: string;</div>);} else {- return <PrimaryCell showDocumentIcon readOnly cell={cell as TextCell} rowId={rowId} fieldId={fieldId}- style={style}+ return <PrimaryCell+ showDocumentIcon readOnly cell={cell as TextCell} rowId={rowId} fieldId={fieldId}+ style={style}/>;}@@ -72,6 +74,19 @@ export function CardField ({ rowId, fieldId }: { rowId: string; fieldId: string;);}+ if (Number(type) === FieldType.FileMedia) {+ const count = (cell?.data as FileMediaCellData)?.length || 0;++ if (count === 0) return null;+ return (+ <div style={style} className={'flex items-center gap-1.5 cursor-text'}>+ <FileMediaSvg className={'w-4 h-4'} />+ {count}+ </div>+ );++ }+return <Cell style={style} readOnly cell={cell} rowId={rowId} fieldId={fieldId} />;}diff --git a/frontend/appflowy_web_app/src/components/database/components/field/FieldTypeIcon.tsx b/frontend/appflowy_web_app/src/components/database/components/field/FieldTypeIcon.tsxindex 78f380b73e..58deb78944 100644--- a/frontend/appflowy_web_app/src/components/database/components/field/FieldTypeIcon.tsx+++ b/frontend/appflowy_web_app/src/components/database/components/field/FieldTypeIcon.tsx@@ -13,6 +13,7 @@ import { ReactComponent as CreatedSvg } from '@/assets/created_at.svg';import { ReactComponent as RelationSvg } from '@/assets/relation.svg';import { ReactComponent as AISummariesSvg } from '@/assets/ai_summary.svg';import { ReactComponent as AITranslationsSvg } from '@/assets/ai_translate.svg';+import { ReactComponent as FileMediaSvg } from '@/assets/media.svg';export const FieldTypeSvgMap: Record<FieldType, FC<React.SVGProps<SVGSVGElement>>> = {[FieldType.RichText]: TextSvg,@@ -28,6 +29,7 @@ export const FieldTypeSvgMap: Record<FieldType, FC<React.SVGProps<SVGSVGElement>[FieldType.Relation]: RelationSvg,[FieldType.AISummaries]: AISummariesSvg,[FieldType.AITranslations]: AITranslationsSvg,+ [FieldType.FileMedia]: FileMediaSvg,};export const FieldTypeIcon: FC<{ type: FieldType; className?: string }> = memo(({ type, ...props }) => {diff --git a/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/GalleryBlock.tsx b/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/GalleryBlock.tsxindex 7853821830..3442a2bf88 100644--- a/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/GalleryBlock.tsx+++ b/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/GalleryBlock.tsx@@ -6,7 +6,7 @@ import GalleryToolbar from '@/components/editor/components/blocks/gallery/Gallerimport ImageGallery from '@/components/editor/components/blocks/gallery/ImageGallery';import { EditorElementProps, GalleryBlockNode } from '@/components/editor/editor.type';import { copyTextToClipboard } from '@/utils/copy';-import React, { forwardRef, memo, useCallback, useMemo, useState } from 'react';+import React, { forwardRef, memo, Suspense, useCallback, useMemo, useState } from 'react';import { useTranslation } from 'react-i18next';const GalleryBlock = memo(@@ -74,8 +74,9 @@ const GalleryBlock = memo(}, []);return (- <div ref={ref} {...attributes} className={className} onMouseEnter={() => setHovered(true)}- onMouseLeave={() => setHovered(false)}+ <div+ ref={ref} {...attributes} className={className} onMouseEnter={() => setHovered(true)}+ onMouseLeave={() => setHovered(false)}><div className={'absolute left-0 top-0 h-full w-full pointer-events-none'}>{children}@@ -97,14 +98,14 @@ const GalleryBlock = memo({hovered &&<GalleryToolbar onCopy={handleCopy} onDownload={handleDownload} onOpenPreview={handleOpenPreview} />}- {openPreview && <GalleryPreview+ {openPreview && <Suspense><GalleryPreviewimages={photos}previewIndex={previewIndexRef.current}open={openPreview}onClose={() => {setOpenPreview(false);}}- />}+ /></Suspense>}</div>);diff --git a/frontend/appflowy_web_app/src/styles/variables/dark.variables.css b/frontend/appflowy_web_app/src/styles/variables/dark.variables.cssindex 1e927ca467..e6e59ed42d 100644--- a/frontend/appflowy_web_app/src/styles/variables/dark.variables.css+++ b/frontend/appflowy_web_app/src/styles/variables/dark.variables.css@@ -42,24 +42,24 @@--function-success-hover: #5dbb7a;--function-success-opacity: rgba(59, 168, 86, 0.1);--function-info: #2e9dbb;- --tint-red: #56363F;- --badge-red: #D32772;- --tint-green: #3C5133;- --badge-green: #3BA856;- --tint-purple: #4D4078;- --badge-purple: #5749CA;- --tint-blue: #2C3B58;- --badge-blue: #00BCF0;- --tint-yellow: #695E3E;- --badge-yellow: #E9B320;- --tint-pink: #5E3C5E;- --badge-pink: #BB4A97;- --tint-lime: #394027;- --badge-lime: #B6D94C;- --tint-aqua: #1B3849;- --badge-aqua: #00B8E5;- --tint-orange: #5E3C3C;- --badge-orange: #FF6D00;+ --tint-red: #C42A534D;+ --badge-red: #C42A53;+ --tint-green: #23CA2E4D;+ --badge-green: #23CA2E;+ --tint-purple: #502FD64D;+ --badge-purple: #502FD6;+ --tint-blue: #04A9D74D;+ --badge-blue: #04A9D7;+ --tint-yellow: #C59A1A4D;+ --badge-yellow: #C59A1A;+ --tint-pink: #BF1CC04D;+ --badge-pink: #BF1CC0;+ --tint-lime: #A4C8244D;+ --badge-lime: #A4C824;+ --tint-aqua: #19CCAC4D;+ --badge-aqua: #19CCAC;+ --tint-orange: #D779224D;+ --badge-orange: #D77922;--shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.3);--scrollbar-track: #252F41;--scrollbar-thumb: #3c4557;diff --git a/frontend/appflowy_web_app/src/styles/variables/light.variables.css b/frontend/appflowy_web_app/src/styles/variables/light.variables.cssindex 0fc95cb30e..81ada54cf5 100644--- a/frontend/appflowy_web_app/src/styles/variables/light.variables.css+++ b/frontend/appflowy_web_app/src/styles/variables/light.variables.css@@ -45,24 +45,24 @@--function-success-hover: #66cf00;--function-success-opacity: rgba(102, 207, 128, 0.1);--function-info: #00bcf0;- --tint-purple: #e8e0ff;- --badge-purple: #5749ca;- --tint-pink: #ffe7ee;- --badge-pink: #bb4a97;- --tint-red: #ffdddd;- --badge-red: #f44336;- --tint-lime: #f5ffdc;- --badge-lime: #b6d94c;- --tint-green: #ddffd6;- --badge-green: #66cf80;- --tint-aqua: #defff1;- --badge-aqua: #00b8e5;- --tint-blue: #e1fbff;- --badge-blue: #00bcf0;- --tint-orange: #ffefe3;- --badge-orange: #ff8c00;- --tint-yellow: #fff2cd;- --badge-yellow: #ffcc00;+ --tint-purple: #E8E0FF;+ --badge-purple: #AB8DFF;+ --tint-pink: #FFE7FD;+ --badge-pink: #FF8EF5;+ --tint-red: #FFE7EE;+ --badge-red: #FF85A9;+ --tint-lime: #F5FFDC;+ --badge-lime: #C6EC41;+ --tint-green: #DDFFD6;+ --badge-green: #74F37D;+ --tint-aqua: #DEFFF1;+ --badge-aqua: #40F0D1;+ --tint-blue: #E1FBFF;+ --badge-blue: #00C8FF;+ --tint-orange: #FFEFE3;+ --badge-orange: #FFBC7E;+ --tint-yellow: #FFF2CD;+ --badge-yellow: #FCD86F;--shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);--scrollbar-thumb: #bdbdbd;--scrollbar-track: #e5e5e5;diff --git a/frontend/appflowy_web_app/tailwind/box-shadow.cjs b/frontend/appflowy_web_app/tailwind/box-shadow.cjsindex 260d51960b..89d02e180c 100644--- a/frontend/appflowy_web_app/tailwind/box-shadow.cjs+++ b/frontend/appflowy_web_app/tailwind/box-shadow.cjs@@ -1,7 +1,7 @@/*** Do not edit directly-* Generated on Fri, 06 Sep 2024 10:13:48 GMT+* Generated on Mon, 16 Sep 2024 06:19:26 GMT* Generated from $pnpm css:variables*/diff --git a/frontend/appflowy_web_app/tailwind/colors.cjs b/frontend/appflowy_web_app/tailwind/colors.cjsindex 2efdb1244e..aece3df56d 100644--- a/frontend/appflowy_web_app/tailwind/colors.cjs+++ b/frontend/appflowy_web_app/tailwind/colors.cjs@@ -1,7 +1,7 @@/*** Do not edit directly-* Generated on Fri, 06 Sep 2024 10:13:48 GMT+* Generated on Mon, 16 Sep 2024 06:19:26 GMT* Generated from $pnpm css:variables*/