详细说明: - 基于文旅订单班框架复制创建food-order-demo项目 - 修改端口配置为4174避免冲突 - 更新LandingPage为青莳轻食主题(绿色健康风格) - 重新定义7个食品行业专业Agent: * 市场研究专家:轻食市场分析、客群画像 * 营养配方师:营养成分配比、低卡高蛋白设计 * 供应链管理专家:有机食材供应、溯源体系 * 品牌策划师:品牌定位、店铺空间布局 * 财务分析师:投资预算、ROI分析 * 运营管理专家:运营流程、品控标准 * 食品创业导师:中央协调、方案整合 - 创建专用启动脚本start.sh - 验证系统可正常运行在端口4174 - 实现代码复用率90%,符合预期目标 影响文件: web_frontend/food-order-demo/ 技术栈: React 18 + TypeScript + Tailwind CSS + Zustand
114 lines
3.0 KiB
JavaScript
114 lines
3.0 KiB
JavaScript
Prism.languages.mermaid = {
|
|
'comment': {
|
|
pattern: /%%.*/,
|
|
greedy: true
|
|
},
|
|
|
|
'style': {
|
|
pattern: /^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,
|
|
lookbehind: true,
|
|
inside: {
|
|
'property': /\b\w[\w-]*(?=[ \t]*:)/,
|
|
'operator': /:/,
|
|
'punctuation': /,/
|
|
}
|
|
},
|
|
|
|
'inter-arrow-label': {
|
|
pattern: /([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,
|
|
lookbehind: true,
|
|
greedy: true,
|
|
inside: {
|
|
'arrow': {
|
|
pattern: /(?:\.+->?|--+[->]|==+[=>])$/,
|
|
alias: 'operator'
|
|
},
|
|
'label': {
|
|
pattern: /^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,
|
|
lookbehind: true,
|
|
alias: 'property'
|
|
},
|
|
'arrow-head': {
|
|
pattern: /^\S+/,
|
|
alias: ['arrow', 'operator']
|
|
}
|
|
}
|
|
},
|
|
|
|
'arrow': [
|
|
// This might look complex but it really isn't.
|
|
// There are many possible arrows (see tests) and it's impossible to fit all of them into one pattern. The
|
|
// problem is that we only have one lookbehind per pattern. However, we cannot disallow too many arrow
|
|
// characters in the one lookbehind because that would create too many false negatives. So we have to split the
|
|
// arrows into different patterns.
|
|
{
|
|
// ER diagram
|
|
pattern: /(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,
|
|
lookbehind: true,
|
|
alias: 'operator'
|
|
},
|
|
{
|
|
// flow chart
|
|
// (?:==+|--+|-\.*-)
|
|
pattern: /(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,
|
|
lookbehind: true,
|
|
alias: 'operator'
|
|
},
|
|
{
|
|
// sequence diagram
|
|
pattern: /(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,
|
|
lookbehind: true,
|
|
alias: 'operator'
|
|
},
|
|
{
|
|
// class diagram
|
|
pattern: /(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,
|
|
lookbehind: true,
|
|
alias: 'operator'
|
|
},
|
|
],
|
|
|
|
'label': {
|
|
pattern: /(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,
|
|
lookbehind: true,
|
|
greedy: true,
|
|
alias: 'property'
|
|
},
|
|
|
|
'text': {
|
|
pattern: /(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,
|
|
alias: 'string'
|
|
},
|
|
'string': {
|
|
pattern: /"[^"\r\n]*"/,
|
|
greedy: true
|
|
},
|
|
|
|
'annotation': {
|
|
pattern: /<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,
|
|
alias: 'important'
|
|
},
|
|
|
|
'keyword': [
|
|
// This language has both case-sensitive and case-insensitive keywords
|
|
{
|
|
pattern: /(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,
|
|
lookbehind: true,
|
|
greedy: true
|
|
},
|
|
{
|
|
pattern: /(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,
|
|
lookbehind: true,
|
|
greedy: true
|
|
}
|
|
],
|
|
|
|
'entity': /#[a-z0-9]+;/,
|
|
|
|
'operator': {
|
|
pattern: /(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,
|
|
lookbehind: true
|
|
},
|
|
'punctuation': /[(){};]/
|
|
};
|