主要功能: - 修改RequirementModal支持12个订单班选择 - 添加OrderClassIconMap图标映射组件 - Store中添加selectedOrderClass状态管理 - WorkflowPage支持传递orderClass参数 - web_result添加URL参数切换功能 - 创建order-class-handler.js动态处理页面主题 技术改进: - 创建软链接关联订单班数据目录 - 生成wenlu.json和food.json数据结构 - 删除重复的web_result目录 - 添加测试页面test-order-class.html 影响范围: - 展会策划系统现支持12个订单班 - 结果展示页面自动适配不同订单班主题 - 用户可选择不同行业生成对应方案 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
81 lines
2.2 KiB
JavaScript
81 lines
2.2 KiB
JavaScript
(function (Prism) {
|
|
|
|
var keywords = /\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;
|
|
|
|
Prism.languages.typoscript = {
|
|
'comment': [
|
|
{
|
|
// multiline comments /* */
|
|
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
|
|
lookbehind: true
|
|
},
|
|
{
|
|
// double-slash comments - ignored when backslashes or colon is found in front
|
|
// also ignored whenever directly after an equal-sign, because it would probably be an url without protocol
|
|
pattern: /(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,
|
|
lookbehind: true,
|
|
greedy: true
|
|
},
|
|
{
|
|
// hash comments - ignored when leading quote is found for hex colors in strings
|
|
pattern: /(^|[^"'])#.*/,
|
|
lookbehind: true,
|
|
greedy: true
|
|
}
|
|
],
|
|
'function': [
|
|
{
|
|
// old include style
|
|
pattern: /<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,
|
|
inside: {
|
|
'string': {
|
|
pattern: /"[^"\r\n]*"|'[^'\r\n]*'/,
|
|
inside: {
|
|
'keyword': keywords,
|
|
},
|
|
},
|
|
'keyword': {
|
|
pattern: /INCLUDE_TYPOSCRIPT/,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
// new include style
|
|
pattern: /@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,
|
|
inside: {
|
|
'string': /"[^"\r\n]*"|'[^'\r\n]*'/,
|
|
},
|
|
}
|
|
],
|
|
'string': {
|
|
pattern: /^([^=]*=[< ]?)(?:(?!\]\n).)*/,
|
|
lookbehind: true,
|
|
inside: {
|
|
'function': /\{\$.*\}/, // constants include
|
|
'keyword': keywords,
|
|
'number': /^\d+$/,
|
|
'punctuation': /[,|:]/,
|
|
}
|
|
},
|
|
'keyword': keywords,
|
|
'number': {
|
|
// special highlighting for indexes of arrays in tags
|
|
pattern: /\b\d+\s*[.{=]/,
|
|
inside: {
|
|
'operator': /[.{=]/,
|
|
}
|
|
},
|
|
'tag': {
|
|
pattern: /\.?[-\w\\]+\.?/,
|
|
inside: {
|
|
'punctuation': /\./,
|
|
}
|
|
},
|
|
'punctuation': /[{}[\];(),.:|]/,
|
|
'operator': /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,
|
|
};
|
|
|
|
Prism.languages.tsconfig = Prism.languages.typoscript;
|
|
|
|
}(Prism));
|