主要功能: - 修改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>
84 lines
1.5 KiB
TypeScript
84 lines
1.5 KiB
TypeScript
declare namespace locatePath {
|
|
interface Options {
|
|
/**
|
|
Current working directory.
|
|
|
|
@default process.cwd()
|
|
*/
|
|
readonly cwd?: string;
|
|
|
|
/**
|
|
Type of path to match.
|
|
|
|
@default 'file'
|
|
*/
|
|
readonly type?: 'file' | 'directory';
|
|
|
|
/**
|
|
Allow symbolic links to match if they point to the requested path type.
|
|
|
|
@default true
|
|
*/
|
|
readonly allowSymlinks?: boolean;
|
|
}
|
|
|
|
interface AsyncOptions extends Options {
|
|
/**
|
|
Number of concurrently pending promises. Minimum: `1`.
|
|
|
|
@default Infinity
|
|
*/
|
|
readonly concurrency?: number;
|
|
|
|
/**
|
|
Preserve `paths` order when searching.
|
|
|
|
Disable this to improve performance if you don't care about the order.
|
|
|
|
@default true
|
|
*/
|
|
readonly preserveOrder?: boolean;
|
|
}
|
|
}
|
|
|
|
declare const locatePath: {
|
|
/**
|
|
Synchronously get the first path that exists on disk of multiple paths.
|
|
|
|
@param paths - Paths to check.
|
|
@returns The first path that exists or `undefined` if none exists.
|
|
*/
|
|
sync: (
|
|
paths: Iterable<string>,
|
|
options?: locatePath.Options
|
|
) => string | undefined;
|
|
|
|
/**
|
|
Get the first path that exists on disk of multiple paths.
|
|
|
|
@param paths - Paths to check.
|
|
@returns The first path that exists or `undefined` if none exists.
|
|
|
|
@example
|
|
```
|
|
import locatePath = require('locate-path');
|
|
|
|
const files = [
|
|
'unicorn.png',
|
|
'rainbow.png', // Only this one actually exists on disk
|
|
'pony.png'
|
|
];
|
|
|
|
(async () => {
|
|
console(await locatePath(files));
|
|
//=> 'rainbow'
|
|
})();
|
|
```
|
|
*/
|
|
(paths: Iterable<string>, options?: locatePath.AsyncOptions): Promise<
|
|
string | undefined
|
|
>;
|
|
};
|
|
|
|
export = locatePath;
|