主要功能: - 修改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>
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
/**
|
|
* Make a value safe for injection as a URL.
|
|
*
|
|
* This encodes unsafe characters with percent-encoding and skips already
|
|
* encoded sequences (see `normalizeUri`).
|
|
* Further unsafe characters are encoded as character references (see
|
|
* `micromark-util-encode`).
|
|
*
|
|
* A regex of allowed protocols can be given, in which case the URL is
|
|
* sanitized.
|
|
* For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or
|
|
* `/^https?$/i` for `img[src]` (this is what `github.com` allows).
|
|
* If the URL includes an unknown protocol (one not matched by `protocol`, such
|
|
* as a dangerous example, `javascript:`), the value is ignored.
|
|
*
|
|
* @param {string | null | undefined} url
|
|
* URI to sanitize.
|
|
* @param {RegExp | null | undefined} [protocol]
|
|
* Allowed protocols.
|
|
* @returns {string}
|
|
* Sanitized URI.
|
|
*/
|
|
export function sanitizeUri(url: string | null | undefined, protocol?: RegExp | null | undefined): string;
|
|
/**
|
|
* Normalize a URL.
|
|
*
|
|
* Encode unsafe characters with percent-encoding, skipping already encoded
|
|
* sequences.
|
|
*
|
|
* @param {string} value
|
|
* URI to normalize.
|
|
* @returns {string}
|
|
* Normalized URI.
|
|
*/
|
|
export function normalizeUri(value: string): string;
|
|
//# sourceMappingURL=index.d.ts.map
|