mtxuilib 0.0.487 → 0.0.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/curd/CurdViewView.d.ts +2 -10
- package/dist/esm/demos/atom-example/AtomExample1.atom.d.ts +3 -1
- package/dist/esm/demos/atom-example/AtomExample1.atom.js +1 -1
- package/dist/esm/demos/atom-example/AtomMain.d.ts +4 -1
- package/dist/esm/demos/atom-example/AtomMain.js +1 -1
- package/dist/esm/demos/atom-example/ExampleAsync.d.ts +1 -0
- package/dist/esm/demos/atom-example/ExampleAsync.js +1 -1
- package/dist/esm/layouts/mail-layout/index.d.ts +2 -10
- package/dist/esm/layouts/mail-layout/index.js +1 -1
- package/dist/esm/store/app.atoms.d.ts +3 -0
- package/dist/esm/store/app.atoms.js +1 -0
- package/dist/esm/ui/novel/novel/src/utils/store.d.ts +2 -10
- package/dist/esm/ui/novel/tailwind/extensions.d.ts +1 -1
- package/dist/esm/ui/novel/tailwind/image-upload.d.ts +1 -1
- package/dist/esm/ui/novel/tailwind/slash-command.d.ts +1 -1
- package/dist/styles/globals.css +219 -219
- package/dist/styles/prosemirror.css +171 -171
- package/dist/tailwind.cjs +82 -82
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -14,6 +14,7 @@ export declare const curdStore: {
|
|
|
14
14
|
get: <Value>(atom: import("jotai").Atom<Value>) => Value;
|
|
15
15
|
set: <Value_1, Args extends unknown[], Result>(atom: import("jotai").WritableAtom<Value_1, Args, Result>, ...args: Args) => Result;
|
|
16
16
|
sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
|
|
17
|
+
} & Partial<{
|
|
17
18
|
dev_subscribe_store: (l: (action: {
|
|
18
19
|
type: "write";
|
|
19
20
|
flushed: Set<import("jotai").Atom<unknown>>;
|
|
@@ -47,16 +48,7 @@ export declare const curdStore: {
|
|
|
47
48
|
u?: (() => void) | undefined;
|
|
48
49
|
} | undefined;
|
|
49
50
|
dev_restore_atoms: (values: Iterable<readonly [import("jotai").Atom<unknown>, unknown]>) => void;
|
|
50
|
-
}
|
|
51
|
-
get: <Value_2>(atom: import("jotai").Atom<Value_2>) => Value_2;
|
|
52
|
-
set: <Value_1_1, Args_1 extends unknown[], Result_1>(atom: import("jotai").WritableAtom<Value_1_1, Args_1, Result_1>, ...args: Args_1) => Result_1;
|
|
53
|
-
sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
|
|
54
|
-
dev_subscribe_store?: undefined;
|
|
55
|
-
dev_get_mounted_atoms?: undefined;
|
|
56
|
-
dev_get_atom_state?: undefined;
|
|
57
|
-
dev_get_mounted?: undefined;
|
|
58
|
-
dev_restore_atoms?: undefined;
|
|
59
|
-
};
|
|
51
|
+
}>;
|
|
60
52
|
export declare const CurdViewView: (props: {
|
|
61
53
|
idOrName: string;
|
|
62
54
|
} & PropsWithChildren) => import("react").JSX.Element;
|
|
@@ -26,4 +26,6 @@ export declare const demo1Atom: import("jotai").WritableAtom<(get: <Value>(atom:
|
|
|
26
26
|
export declare const example102Atom: import("jotai").PrimitiveAtom<string> & {
|
|
27
27
|
init: string;
|
|
28
28
|
};
|
|
29
|
-
export declare const
|
|
29
|
+
export declare const fetchPosts: (url: string) => Promise<unknown>;
|
|
30
|
+
export declare const exampleAsyncExampleAtom2: import("jotai").WritableAtom<any, [value: any], void>;
|
|
31
|
+
export declare const cached101Atom: import("jotai").Atom<Promise<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";var
|
|
1
|
+
"use client";var c=(e,t,o)=>new Promise((p,u)=>{var x=s=>{try{a(o.next(s))}catch(l){u(l)}},i=s=>{try{a(o.throw(s))}catch(l){u(l)}},a=s=>s.done?p(s.value):Promise.resolve(s.value).then(x,i);a((o=o.apply(e,t)).next())});import{atom as n}from"jotai";import{atomWithCache as A}from"jotai-cache";const m=n(1),b=n({callback:e=>e*2}),g=n((e,t)=>({getValue1:()=>e(m)}),(e,t,o)=>(t(m,o),{set1:p=>{console.log("set1 called"),t(m,10)}})),v=n("valueexample102Atom "),w=e=>c(void 0,null,function*(){return yield(yield fetch(e,{next:{revalidate:0}})).json()}),r=n(null),V=n(e=>{if(e(r))return console.log("return atom value",e(r)),e(r)},(e,t,o)=>{console.log("exampleAsyncExampleAtom2 set",o),t(r,o)}),d=n("1"),j=A(e=>c(void 0,null,function*(){const t=e(d);return(yield fetch(`https://reqres.in/api/users/${t}?delay=1`,{next:{revalidate:0}})).json()}));export{j as cached101Atom,g as demo1Atom,b as doublerAtom,v as example102Atom,V as exampleAsyncExampleAtom2,m as exampleValue100Atom,w as fetchPosts};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
export declare const AtomMain: () => import("react").JSX.Element;
|
|
3
|
+
export declare const CacheAtom1Example: () => import("react").JSX.Element;
|
|
4
|
+
export declare const ReactUseExample: () => import("react").JSX.Element;
|
|
5
|
+
export declare const HydratePosts: (props: PropsWithChildren) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Fragment as
|
|
1
|
+
"use client";var u=(e,s,o)=>new Promise((n,p)=>{var i=a=>{try{l(o.next(a))}catch(d){p(d)}},c=a=>{try{l(o.throw(a))}catch(d){p(d)}},l=a=>a.done?n(a.value):Promise.resolve(a.value).then(i,c);l((o=o.apply(e,s)).next())});import{Fragment as A,jsx as t,jsxs as m}from"react/jsx-runtime";import{useAtom as r}from"jotai";import{useHydrateAtoms as f}from"jotai/utils";import{Suspense as b,use as x}from"react";import{AtomsHydrator as v}from"../../lib/jotai-helper";import{MtButton as g}from"../../ui/ui-mt/Button";import{cached101Atom as E,demo1Atom as C,doublerAtom as H,example102Atom as y,exampleAsyncExampleAtom2 as N,exampleValue100Atom as S}from"./AtomExample1.atom";import{ExampleAsync1 as V}from"./ExampleAsync";const D=()=>{const[e]=r(H),s=e.callback(50),[o,n]=r(C),[p,i]=r(S);f([[y,"example102(hydratedValue)---"]]);const[c,l]=r(y);return m(A,{children:[m("div",{className:"bg-blue-100 p-2",children:["example102Atom:",c]}),m("div",{children:[t(g,{onClick:()=>{n(100)},children:"set1"}),t("pre",{children:JSON.stringify(o,null,2)})]}),t(b,{fallback:t(A,{children:"loading HydratePosts "}),children:t(P,{children:t(V,{})})})]})},L=()=>{const[e,s]=r(E);return m("div",{className:"bg-blue-300 p-2",children:["CacheAtom1Example",t("pre",{children:JSON.stringify(e,null,2)})]})},h=()=>u(void 0,null,function*(){return yield fetch(new URL("/api.v1/demo/posts","http://localhost:3338").toString()).then(e=>e.json())}),j=()=>{const e=x(h());return m("div",{className:"max-h-96 overflow-scroll bg-red-200 p-2",children:["react use data:",t("pre",{children:JSON.stringify(e,null,2)})]})},P=e=>{const s=x(h()),{children:o}=e;return t(v,{atomValues:[[N,s]],children:o})};export{D as AtomMain,L as CacheAtom1Example,P as HydratePosts,j as ReactUseExample};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as e}from"react/jsx-runtime";import{useAtom as
|
|
1
|
+
"use client";import{jsx as e}from"react/jsx-runtime";import{useAtom as m}from"jotai";import{exampleAsyncExampleAtom2 as l}from"./AtomExample1.atom";const c=()=>e("div",{className:"max-h-96 overflow-scroll border bg-red-200 p-2",children:e(s,{})}),s=()=>{const[r,t]=m(l);return e("div",{className:"border bg-red-200 p-2",children:r==null?void 0:r.map((n,o)=>e("li",{children:n.title},o))})};export{c as ExampleAsync1,s as ExampleAsync1Inner};
|
|
@@ -20,6 +20,7 @@ export declare const mailLayoutStore: {
|
|
|
20
20
|
get: <Value>(atom: import("jotai").Atom<Value>) => Value;
|
|
21
21
|
set: <Value_1, Args extends unknown[], Result>(atom: import("jotai").WritableAtom<Value_1, Args, Result>, ...args: Args) => Result;
|
|
22
22
|
sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
|
|
23
|
+
} & Partial<{
|
|
23
24
|
dev_subscribe_store: (l: (action: {
|
|
24
25
|
type: "write";
|
|
25
26
|
flushed: Set<import("jotai").Atom<unknown>>;
|
|
@@ -53,16 +54,7 @@ export declare const mailLayoutStore: {
|
|
|
53
54
|
u?: (() => void) | undefined;
|
|
54
55
|
} | undefined;
|
|
55
56
|
dev_restore_atoms: (values: Iterable<readonly [import("jotai").Atom<unknown>, unknown]>) => void;
|
|
56
|
-
}
|
|
57
|
-
get: <Value_2>(atom: import("jotai").Atom<Value_2>) => Value_2;
|
|
58
|
-
set: <Value_1_1, Args_1 extends unknown[], Result_1>(atom: import("jotai").WritableAtom<Value_1_1, Args_1, Result_1>, ...args: Args_1) => Result_1;
|
|
59
|
-
sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
|
|
60
|
-
dev_subscribe_store?: undefined;
|
|
61
|
-
dev_get_mounted_atoms?: undefined;
|
|
62
|
-
dev_get_atom_state?: undefined;
|
|
63
|
-
dev_get_mounted?: undefined;
|
|
64
|
-
dev_restore_atoms?: undefined;
|
|
65
|
-
};
|
|
57
|
+
}>;
|
|
66
58
|
export declare const MailLayout: (props: {} & PropsWithChildren) => import("react").JSX.Element;
|
|
67
59
|
export declare const MailLayoutSidenav: (props: PropsWithChildren) => import("react").JSX.Element;
|
|
68
60
|
export declare const MailLayoutList: (props: PropsWithChildren) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{Fragment as m,jsx as
|
|
1
|
+
"use client";import{Fragment as m,jsx as i,jsxs as x}from"react/jsx-runtime";import{atom as l,createStore as S,useAtom as r,useSetAtom as y}from"jotai";import{useEffect as b}from"react";import v from"use-resize-observer";import{cn as u}from"../../lib/utils";import{ResizableHandle as L,ResizablePanel as d,ResizablePanelGroup as P}from"../../ui/resizable";import{MailLyContent as G}from"./detail/MailLyContent";const c=[20,30,50],f=[40,50,60],z=[10,15,10],p=l(c,(o,t,e)=>{t(p,e)}),h=l(!1,(o,t,e)=>{t(h,e)}),C=l(!1),O=l(void 0),W=l("value1"),k=S(),H=o=>{const{children:t}=o,{ref:e,width:n,height:s}=v();return i(m,{children:i("div",{ref:e,className:"w-full ",children:x(P,{direction:"horizontal",onLayout:a=>{document.cookie=`react-resizable-panels:layout=${JSON.stringify(a)}`},className:u("h-96 max-h-full min-h-full w-full flex-1 items-stretch "),style:{height:(s||1)-1},children:["startlistview88820000",t]})})})},J=o=>{const{children:t}=o,[e,n]=r(h),[s]=r(p),a=y(C);return b(()=>{a(!0)},[a]),x(m,{children:[i(d,{defaultSize:s&&s[0]||c[0],collapsedSize:4,collapsible:!0,minSize:z[0],maxSize:f[0],onCollapse:()=>{n(!0),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!0)}`},onExpand:()=>{n(!1),document.cookie=`react-resizable-panels:collapsed=${JSON.stringify(!1)}`},className:u(e&&"min-w-[50px] transition-all duration-300 ease-in-out"),children:t}),i(L,{withHandle:!0})]})},T=o=>{const{children:t}=o,[e]=r(p);return i(m,{children:i(d,{defaultSize:e&&e[1]||c[1],minSize:z[1],maxSize:f[1],className:"hidden h-full w-full md:flex",children:t})})};export{H as MailLayout,T as MailLayoutList,J as MailLayoutSidenav,G as MailLyContent,c as detaultSizes,W as exampleValue1Atom,k as mailLayoutStore,h as mailLyCollapsedAtom,p as mailLySizesAtom,f as maxSizes,z as minSizes,O as trpcListViewAtom};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{atom as t}from"jotai";const p=t("http://localhost:3338");export{p as appBackendUrlAtom};
|
|
@@ -2,6 +2,7 @@ export declare const novelStore: {
|
|
|
2
2
|
get: <Value>(atom: import("jotai").Atom<Value>) => Value;
|
|
3
3
|
set: <Value_1, Args extends unknown[], Result>(atom: import("jotai").WritableAtom<Value_1, Args, Result>, ...args: Args) => Result;
|
|
4
4
|
sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
|
|
5
|
+
} & Partial<{
|
|
5
6
|
dev_subscribe_store: (l: (action: {
|
|
6
7
|
type: "write";
|
|
7
8
|
flushed: Set<import("jotai").Atom<unknown>>;
|
|
@@ -35,13 +36,4 @@ export declare const novelStore: {
|
|
|
35
36
|
u?: (() => void) | undefined;
|
|
36
37
|
} | undefined;
|
|
37
38
|
dev_restore_atoms: (values: Iterable<readonly [import("jotai").Atom<unknown>, unknown]>) => void;
|
|
38
|
-
}
|
|
39
|
-
get: <Value_2>(atom: import("jotai").Atom<Value_2>) => Value_2;
|
|
40
|
-
set: <Value_1_1, Args_1 extends unknown[], Result_1>(atom: import("jotai").WritableAtom<Value_1_1, Args_1, Result_1>, ...args: Args_1) => Result_1;
|
|
41
|
-
sub: (atom: import("jotai").Atom<unknown>, listener: () => void) => () => void;
|
|
42
|
-
dev_subscribe_store?: undefined;
|
|
43
|
-
dev_get_mounted_atoms?: undefined;
|
|
44
|
-
dev_get_atom_state?: undefined;
|
|
45
|
-
dev_get_mounted?: undefined;
|
|
46
|
-
dev_restore_atoms?: undefined;
|
|
47
|
-
};
|
|
39
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const defaultExtensions: (import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Mark<import("
|
|
1
|
+
export declare const defaultExtensions: (import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Mark<import("../novel/src/extensions").AIHighlightOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-horizontal-rule").HorizontalRuleOptions, any>)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const uploadFn: import("
|
|
1
|
+
export declare const uploadFn: import("../novel/src/plugins").UploadFn;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const suggestionItems: import("
|
|
1
|
+
export declare const suggestionItems: import("../novel/src/extensions").SuggestionItem[];
|
|
2
2
|
export declare const slashCommand: import("@tiptap/core").Extension<any, any>;
|
package/dist/styles/globals.css
CHANGED
|
@@ -1,219 +1,219 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
@layer base {
|
|
6
|
-
:root {
|
|
7
|
-
--background: 0 0% 100%;
|
|
8
|
-
--foreground: 222.2 84% 4.9%;
|
|
9
|
-
|
|
10
|
-
--muted: 210 40% 96.1%;
|
|
11
|
-
--muted-foreground: 215.4 16.3% 46.9%;
|
|
12
|
-
|
|
13
|
-
--popover: 0 0% 100%;
|
|
14
|
-
--popover-foreground: 222.2 84% 4.9%;
|
|
15
|
-
|
|
16
|
-
--card: 0 0% 100%;
|
|
17
|
-
--card-foreground: 222.2 84% 4.9%;
|
|
18
|
-
|
|
19
|
-
--border: 214.3 31.8% 91.4%;
|
|
20
|
-
--input: 214.3 31.8% 91.4%;
|
|
21
|
-
|
|
22
|
-
--primary: 222.2 47.4% 11.2%;
|
|
23
|
-
--primary-foreground: 210 40% 98%;
|
|
24
|
-
|
|
25
|
-
--secondary: 210 40% 96.1%;
|
|
26
|
-
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
27
|
-
|
|
28
|
-
--accent: 210 40% 96.1%;
|
|
29
|
-
--accent-foreground: 222.2 47.4% 11.2%;
|
|
30
|
-
|
|
31
|
-
--destructive: 0 84.2% 60.2%;
|
|
32
|
-
--destructive-foreground: 210 40% 98%;
|
|
33
|
-
|
|
34
|
-
--ring: 215 20.2% 65.1%;
|
|
35
|
-
|
|
36
|
-
--radius: 0.5rem;
|
|
37
|
-
|
|
38
|
-
/* novel editor 相关样式开始 */
|
|
39
|
-
--novel-highlight-default: #ffffff;
|
|
40
|
-
--novel-highlight-purple: #f6f3f8;
|
|
41
|
-
--novel-highlight-red: #fdebeb;
|
|
42
|
-
--novel-highlight-yellow: #fbf4a2;
|
|
43
|
-
--novel-highlight-blue: #c1ecf9;
|
|
44
|
-
--novel-highlight-green: #acf79f;
|
|
45
|
-
--novel-highlight-orange: #faebdd;
|
|
46
|
-
--novel-highlight-pink: #faf1f5;
|
|
47
|
-
--novel-highlight-gray: #f1f1ef;
|
|
48
|
-
/* novel editor 相关样式结束 */
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.dark {
|
|
52
|
-
--background: 222.2 84% 4.9%;
|
|
53
|
-
--foreground: 210 40% 98%;
|
|
54
|
-
|
|
55
|
-
--muted: 217.2 32.6% 17.5%;
|
|
56
|
-
--muted-foreground: 215 20.2% 65.1%;
|
|
57
|
-
|
|
58
|
-
--popover: 222.2 84% 4.9%;
|
|
59
|
-
--popover-foreground: 210 40% 98%;
|
|
60
|
-
|
|
61
|
-
--card: 222.2 84% 4.9%;
|
|
62
|
-
--card-foreground: 210 40% 98%;
|
|
63
|
-
|
|
64
|
-
--border: 217.2 32.6% 17.5%;
|
|
65
|
-
--input: 217.2 32.6% 17.5%;
|
|
66
|
-
|
|
67
|
-
--primary: 210 40% 98%;
|
|
68
|
-
--primary-foreground: 222.2 47.4% 11.2%;
|
|
69
|
-
|
|
70
|
-
--secondary: 217.2 32.6% 17.5%;
|
|
71
|
-
--secondary-foreground: 210 40% 98%;
|
|
72
|
-
|
|
73
|
-
--accent: 217.2 32.6% 17.5%;
|
|
74
|
-
--accent-foreground: 210 40% 98%;
|
|
75
|
-
|
|
76
|
-
--destructive: 0 62.8% 30.6%;
|
|
77
|
-
--destructive-foreground: 0 85.7% 97.3%;
|
|
78
|
-
--ring: 217.2 32.6% 17.5%;
|
|
79
|
-
|
|
80
|
-
/* novel editor 相关样式开始 */
|
|
81
|
-
--novel-highlight-default: #000000;
|
|
82
|
-
--novel-highlight-purple: #3f2c4b;
|
|
83
|
-
--novel-highlight-red: #5c1a1a;
|
|
84
|
-
--novel-highlight-yellow: #5c4b1a;
|
|
85
|
-
--novel-highlight-blue: #1a3d5c;
|
|
86
|
-
--novel-highlight-green: #1a5c20;
|
|
87
|
-
--novel-highlight-orange: #5c3a1a;
|
|
88
|
-
--novel-highlight-pink: #5c1a3a;
|
|
89
|
-
--novel-highlight-gray: #3a3a3a;
|
|
90
|
-
/* novel editor 相关样式结束 */
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* @layer base {
|
|
95
|
-
* {
|
|
96
|
-
@apply border-border;
|
|
97
|
-
}
|
|
98
|
-
body {
|
|
99
|
-
@apply bg-background text-foreground;
|
|
100
|
-
}
|
|
101
|
-
} */
|
|
102
|
-
|
|
103
|
-
/*
|
|
104
|
-
细化滚动条。
|
|
105
|
-
参考: https://github.com/mckaywrigley/chatbot-ui/blob/main/styles/globals.css
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
::-webkit-scrollbar-track {
|
|
109
|
-
background-color: transparent;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
::-webkit-scrollbar-thumb {
|
|
113
|
-
background-color: #a4a4a4;
|
|
114
|
-
border-radius: 10px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
::-webkit-scrollbar-thumb:hover {
|
|
118
|
-
background-color: #838385;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
::-webkit-scrollbar-track:hover {
|
|
122
|
-
background-color: #eaeaea;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
::-webkit-scrollbar-corner {
|
|
126
|
-
background-color: transparent;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
::-webkit-scrollbar {
|
|
130
|
-
width: 6px;
|
|
131
|
-
height: 6px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/* vamp 样式开始 ***********************************************************************************************/
|
|
135
|
-
|
|
136
|
-
@layer utilities {
|
|
137
|
-
.red-glow {
|
|
138
|
-
text-shadow: 0px 0px 8px hsla(352, 98%, 60%, 0.6);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.button {
|
|
142
|
-
transition:
|
|
143
|
-
border 120ms ease 0s,
|
|
144
|
-
background-color,
|
|
145
|
-
color,
|
|
146
|
-
box-shadow,
|
|
147
|
-
opacity;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.primary-button-hover {
|
|
151
|
-
text-shadow: rgb(0 0 0 / 56%) 0px 3px 12px;
|
|
152
|
-
box-shadow: rgba(253, 52, 88, 0.6) 0px 1px 40px;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.dropdown {
|
|
156
|
-
/* backdrop-filter: blur(10px) saturate(190%) contrast(70%) brightness(80%);
|
|
157
|
-
background-color: rgba(29, 30, 43, 0.498);
|
|
158
|
-
border: 0.5px solid rgba(82, 82, 111, 0.44); */
|
|
159
|
-
box-shadow: rgb(0 0 0 / 20%) 0px 4px 24px;
|
|
160
|
-
backdrop-filter: blur(20px) saturate(190%) contrast(70%) brightness(80%);
|
|
161
|
-
background-color: rgba(29, 30, 43, 0.498);
|
|
162
|
-
border: 0.5px solid rgba(82, 82, 111, 0.44);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* clears the ‘X’ from Internet Explorer */
|
|
167
|
-
input[type="search"]::-ms-clear {
|
|
168
|
-
display: none;
|
|
169
|
-
width: 0;
|
|
170
|
-
height: 0;
|
|
171
|
-
}
|
|
172
|
-
input[type="search"]::-ms-reveal {
|
|
173
|
-
display: none;
|
|
174
|
-
width: 0;
|
|
175
|
-
height: 0;
|
|
176
|
-
}
|
|
177
|
-
/* clears the ‘X’ from Chrome */
|
|
178
|
-
input[type="search"]::-webkit-search-decoration,
|
|
179
|
-
input[type="search"]::-webkit-search-cancel-button,
|
|
180
|
-
input[type="search"]::-webkit-search-results-button,
|
|
181
|
-
input[type="search"]::-webkit-search-results-decoration {
|
|
182
|
-
display: none;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.is-editor-empty {
|
|
186
|
-
@apply text-white;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.ProseMirror p.is-editor-empty:first-child::before {
|
|
190
|
-
color: #adb5bd;
|
|
191
|
-
content: attr(data-placeholder);
|
|
192
|
-
float: left;
|
|
193
|
-
height: 0;
|
|
194
|
-
opacity: 0.3;
|
|
195
|
-
pointer-events: none;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
::-webkit-scrollbar {
|
|
199
|
-
width: 8px;
|
|
200
|
-
height: 8px;
|
|
201
|
-
background-color: transparent;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
::-webkit-scrollbar-thumb {
|
|
205
|
-
border-radius: 12px;
|
|
206
|
-
background-color: #616076;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
::-webkit-scrollbar-track {
|
|
210
|
-
padding: 2px;
|
|
211
|
-
background-color: transparent;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
mux-player {
|
|
215
|
-
--controls: none;
|
|
216
|
-
--media-object-fit: cover;
|
|
217
|
-
height: 100%;
|
|
218
|
-
}
|
|
219
|
-
/* vamp 结束 ***********************************************************************************************/
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
:root {
|
|
7
|
+
--background: 0 0% 100%;
|
|
8
|
+
--foreground: 222.2 84% 4.9%;
|
|
9
|
+
|
|
10
|
+
--muted: 210 40% 96.1%;
|
|
11
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
12
|
+
|
|
13
|
+
--popover: 0 0% 100%;
|
|
14
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
15
|
+
|
|
16
|
+
--card: 0 0% 100%;
|
|
17
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
18
|
+
|
|
19
|
+
--border: 214.3 31.8% 91.4%;
|
|
20
|
+
--input: 214.3 31.8% 91.4%;
|
|
21
|
+
|
|
22
|
+
--primary: 222.2 47.4% 11.2%;
|
|
23
|
+
--primary-foreground: 210 40% 98%;
|
|
24
|
+
|
|
25
|
+
--secondary: 210 40% 96.1%;
|
|
26
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
27
|
+
|
|
28
|
+
--accent: 210 40% 96.1%;
|
|
29
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
30
|
+
|
|
31
|
+
--destructive: 0 84.2% 60.2%;
|
|
32
|
+
--destructive-foreground: 210 40% 98%;
|
|
33
|
+
|
|
34
|
+
--ring: 215 20.2% 65.1%;
|
|
35
|
+
|
|
36
|
+
--radius: 0.5rem;
|
|
37
|
+
|
|
38
|
+
/* novel editor 相关样式开始 */
|
|
39
|
+
--novel-highlight-default: #ffffff;
|
|
40
|
+
--novel-highlight-purple: #f6f3f8;
|
|
41
|
+
--novel-highlight-red: #fdebeb;
|
|
42
|
+
--novel-highlight-yellow: #fbf4a2;
|
|
43
|
+
--novel-highlight-blue: #c1ecf9;
|
|
44
|
+
--novel-highlight-green: #acf79f;
|
|
45
|
+
--novel-highlight-orange: #faebdd;
|
|
46
|
+
--novel-highlight-pink: #faf1f5;
|
|
47
|
+
--novel-highlight-gray: #f1f1ef;
|
|
48
|
+
/* novel editor 相关样式结束 */
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dark {
|
|
52
|
+
--background: 222.2 84% 4.9%;
|
|
53
|
+
--foreground: 210 40% 98%;
|
|
54
|
+
|
|
55
|
+
--muted: 217.2 32.6% 17.5%;
|
|
56
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
57
|
+
|
|
58
|
+
--popover: 222.2 84% 4.9%;
|
|
59
|
+
--popover-foreground: 210 40% 98%;
|
|
60
|
+
|
|
61
|
+
--card: 222.2 84% 4.9%;
|
|
62
|
+
--card-foreground: 210 40% 98%;
|
|
63
|
+
|
|
64
|
+
--border: 217.2 32.6% 17.5%;
|
|
65
|
+
--input: 217.2 32.6% 17.5%;
|
|
66
|
+
|
|
67
|
+
--primary: 210 40% 98%;
|
|
68
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
69
|
+
|
|
70
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
71
|
+
--secondary-foreground: 210 40% 98%;
|
|
72
|
+
|
|
73
|
+
--accent: 217.2 32.6% 17.5%;
|
|
74
|
+
--accent-foreground: 210 40% 98%;
|
|
75
|
+
|
|
76
|
+
--destructive: 0 62.8% 30.6%;
|
|
77
|
+
--destructive-foreground: 0 85.7% 97.3%;
|
|
78
|
+
--ring: 217.2 32.6% 17.5%;
|
|
79
|
+
|
|
80
|
+
/* novel editor 相关样式开始 */
|
|
81
|
+
--novel-highlight-default: #000000;
|
|
82
|
+
--novel-highlight-purple: #3f2c4b;
|
|
83
|
+
--novel-highlight-red: #5c1a1a;
|
|
84
|
+
--novel-highlight-yellow: #5c4b1a;
|
|
85
|
+
--novel-highlight-blue: #1a3d5c;
|
|
86
|
+
--novel-highlight-green: #1a5c20;
|
|
87
|
+
--novel-highlight-orange: #5c3a1a;
|
|
88
|
+
--novel-highlight-pink: #5c1a3a;
|
|
89
|
+
--novel-highlight-gray: #3a3a3a;
|
|
90
|
+
/* novel editor 相关样式结束 */
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* @layer base {
|
|
95
|
+
* {
|
|
96
|
+
@apply border-border;
|
|
97
|
+
}
|
|
98
|
+
body {
|
|
99
|
+
@apply bg-background text-foreground;
|
|
100
|
+
}
|
|
101
|
+
} */
|
|
102
|
+
|
|
103
|
+
/*
|
|
104
|
+
细化滚动条。
|
|
105
|
+
参考: https://github.com/mckaywrigley/chatbot-ui/blob/main/styles/globals.css
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
::-webkit-scrollbar-track {
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
::-webkit-scrollbar-thumb {
|
|
113
|
+
background-color: #a4a4a4;
|
|
114
|
+
border-radius: 10px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
::-webkit-scrollbar-thumb:hover {
|
|
118
|
+
background-color: #838385;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
::-webkit-scrollbar-track:hover {
|
|
122
|
+
background-color: #eaeaea;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
::-webkit-scrollbar-corner {
|
|
126
|
+
background-color: transparent;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
::-webkit-scrollbar {
|
|
130
|
+
width: 6px;
|
|
131
|
+
height: 6px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* vamp 样式开始 ***********************************************************************************************/
|
|
135
|
+
|
|
136
|
+
@layer utilities {
|
|
137
|
+
.red-glow {
|
|
138
|
+
text-shadow: 0px 0px 8px hsla(352, 98%, 60%, 0.6);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.button {
|
|
142
|
+
transition:
|
|
143
|
+
border 120ms ease 0s,
|
|
144
|
+
background-color,
|
|
145
|
+
color,
|
|
146
|
+
box-shadow,
|
|
147
|
+
opacity;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.primary-button-hover {
|
|
151
|
+
text-shadow: rgb(0 0 0 / 56%) 0px 3px 12px;
|
|
152
|
+
box-shadow: rgba(253, 52, 88, 0.6) 0px 1px 40px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dropdown {
|
|
156
|
+
/* backdrop-filter: blur(10px) saturate(190%) contrast(70%) brightness(80%);
|
|
157
|
+
background-color: rgba(29, 30, 43, 0.498);
|
|
158
|
+
border: 0.5px solid rgba(82, 82, 111, 0.44); */
|
|
159
|
+
box-shadow: rgb(0 0 0 / 20%) 0px 4px 24px;
|
|
160
|
+
backdrop-filter: blur(20px) saturate(190%) contrast(70%) brightness(80%);
|
|
161
|
+
background-color: rgba(29, 30, 43, 0.498);
|
|
162
|
+
border: 0.5px solid rgba(82, 82, 111, 0.44);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* clears the ‘X’ from Internet Explorer */
|
|
167
|
+
input[type="search"]::-ms-clear {
|
|
168
|
+
display: none;
|
|
169
|
+
width: 0;
|
|
170
|
+
height: 0;
|
|
171
|
+
}
|
|
172
|
+
input[type="search"]::-ms-reveal {
|
|
173
|
+
display: none;
|
|
174
|
+
width: 0;
|
|
175
|
+
height: 0;
|
|
176
|
+
}
|
|
177
|
+
/* clears the ‘X’ from Chrome */
|
|
178
|
+
input[type="search"]::-webkit-search-decoration,
|
|
179
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
180
|
+
input[type="search"]::-webkit-search-results-button,
|
|
181
|
+
input[type="search"]::-webkit-search-results-decoration {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.is-editor-empty {
|
|
186
|
+
@apply text-white;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ProseMirror p.is-editor-empty:first-child::before {
|
|
190
|
+
color: #adb5bd;
|
|
191
|
+
content: attr(data-placeholder);
|
|
192
|
+
float: left;
|
|
193
|
+
height: 0;
|
|
194
|
+
opacity: 0.3;
|
|
195
|
+
pointer-events: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
::-webkit-scrollbar {
|
|
199
|
+
width: 8px;
|
|
200
|
+
height: 8px;
|
|
201
|
+
background-color: transparent;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
::-webkit-scrollbar-thumb {
|
|
205
|
+
border-radius: 12px;
|
|
206
|
+
background-color: #616076;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
::-webkit-scrollbar-track {
|
|
210
|
+
padding: 2px;
|
|
211
|
+
background-color: transparent;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
mux-player {
|
|
215
|
+
--controls: none;
|
|
216
|
+
--media-object-fit: cover;
|
|
217
|
+
height: 100%;
|
|
218
|
+
}
|
|
219
|
+
/* vamp 结束 ***********************************************************************************************/
|