主要功能: - 修改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>
78 lines
2.0 KiB
JavaScript
78 lines
2.0 KiB
JavaScript
'use strict'
|
|
|
|
module.exports = jq
|
|
jq.displayName = 'jq'
|
|
jq.aliases = []
|
|
function jq(Prism) {
|
|
;(function (Prism) {
|
|
var interpolation = /\\\((?:[^()]|\([^()]*\))*\)/.source
|
|
var string = RegExp(
|
|
/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(
|
|
/__/g,
|
|
function () {
|
|
return interpolation
|
|
}
|
|
)
|
|
)
|
|
var stringInterpolation = {
|
|
interpolation: {
|
|
pattern: RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + interpolation),
|
|
lookbehind: true,
|
|
inside: {
|
|
content: {
|
|
pattern: /^(\\\()[\s\S]+(?=\)$)/,
|
|
lookbehind: true,
|
|
inside: null // see below
|
|
},
|
|
punctuation: /^\\\(|\)$/
|
|
}
|
|
}
|
|
}
|
|
var jq = (Prism.languages.jq = {
|
|
comment: /#.*/,
|
|
property: {
|
|
pattern: RegExp(string.source + /(?=\s*:(?!:))/.source),
|
|
lookbehind: true,
|
|
greedy: true,
|
|
inside: stringInterpolation
|
|
},
|
|
string: {
|
|
pattern: string,
|
|
lookbehind: true,
|
|
greedy: true,
|
|
inside: stringInterpolation
|
|
},
|
|
function: {
|
|
pattern: /(\bdef\s+)[a-z_]\w+/i,
|
|
lookbehind: true
|
|
},
|
|
variable: /\B\$\w+/,
|
|
'property-literal': {
|
|
pattern: /\b[a-z_]\w*(?=\s*:(?!:))/i,
|
|
alias: 'property'
|
|
},
|
|
keyword:
|
|
/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,
|
|
boolean: /\b(?:false|true)\b/,
|
|
number: /(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,
|
|
operator: [
|
|
{
|
|
pattern: /\|=?/,
|
|
alias: 'pipe'
|
|
},
|
|
/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/
|
|
],
|
|
'c-style-function': {
|
|
pattern: /\b[a-z_]\w*(?=\s*\()/i,
|
|
alias: 'function'
|
|
},
|
|
punctuation: /::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,
|
|
dot: {
|
|
pattern: /\./,
|
|
alias: 'important'
|
|
}
|
|
})
|
|
stringInterpolation.interpolation.inside.content.inside = jq
|
|
})(Prism)
|
|
}
|