Skip to content

Commit 87ab494

Browse files
committed
智能体收藏
1 parent 31f73e4 commit 87ab494

File tree

10 files changed

+80
-16641
lines changed

10 files changed

+80
-16641
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@
1212
/dist
1313
/.mfsu
1414
.swc
15-
.husky/
15+
.husky/
16+
/.VSCodeCounter

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

config/routes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ const routes: Routes = [
102102
component: './Modu/Chat',
103103
wrappers: ['@/wrappers/modu/ModuContentWrapper'],
104104
},
105+
// 用户
106+
{
107+
path: 'user/:userUid',
108+
component: './User',
109+
wrappers: ['@/wrappers/modu/ModuContentWrapper'],
110+
},
105111
// 市场
106112
{
107113
path: 'store',

src/components/markdown/lexical/plugins/ExtTransformers/index.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import {
3737
TableRowNode,
3838
} from '@lexical/table';
3939
import {
40-
$createTextNode,
4140
$isParagraphNode,
4241
$isTextNode,
4342
LexicalNode,
@@ -48,7 +47,6 @@ import {
4847
$isEquationNode,
4948
EquationNode,
5049
} from '../../nodes/EquationNode';
51-
import emojiList from '../../utils/emoji-list';
5250

5351
export const HR: ElementTransformer = {
5452
dependencies: [HorizontalRuleNode],
@@ -71,21 +69,6 @@ export const HR: ElementTransformer = {
7169
type: 'element',
7270
};
7371

74-
export const EMOJI: TextMatchTransformer = {
75-
dependencies: [],
76-
export: () => null,
77-
importRegExp: /:([a-z0-9_]+):/,
78-
regExp: /:([a-z0-9_]+):$/,
79-
replace: (textNode, [, name]) => {
80-
const emoji = emojiList.find((e) => e.aliases.includes(name))?.emoji;
81-
if (emoji) {
82-
textNode.replace($createTextNode(emoji));
83-
}
84-
},
85-
trigger: ':',
86-
type: 'text-match',
87-
};
88-
8972
export const EQUATION: TextMatchTransformer = {
9073
dependencies: [EquationNode],
9174
export: (node) => {
@@ -268,7 +251,6 @@ const mapToTableCells = (textContent: string): Array<TableCellNode> | null => {
268251
export const TRANSFORMERS: Array<Transformer> = [
269252
TABLE,
270253
HR,
271-
EMOJI,
272254
EQUATION,
273255
CHECK_LIST,
274256
...ELEMENT_TRANSFORMERS,

0 commit comments

Comments
 (0)