@mikezimm/fps-core-v7
Version:
Library of reusable core interfaces, types and constants migrated from fps-library-v2
51 lines • 3.55 kB
JavaScript
/**
* 2024-09-07: Migrated from SAME folder: fps-library-v2\src\components\molecules\SearchPage\Interface
*/
import { ContentGroupCode, ContentGroupData } from "./IContentGroup";
import { StdSharePointKeys, MediaFileKeys, StdFileKeys, StdSharePointSearchTypes, MediaFileSearchTypes, StdFileSearchTypes, } from "./StandardTypes";
import { ItemIsAFile, ItemIsCodeContent, ItemIsDataContent } from "../../AnyContent/IsA/IFPSItemIsA";
// Keys must be in same order as in StdSharePointSearchTypes
export const XProgrammingFileKeys = [
"ts", "md", "py", "vba"
];
export const XProgrammingFileSearchTypes = [
{ key: "ts", title: "ts", icon: "TypeScriptLanguage", style: "", count: 0, color: "blue", similarKey: 'ts', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "md", title: "md", icon: "MarkDownLanguage", style: "", count: 0, color: "blue", similarKey: 'md', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "py", title: "py", icon: "PythonLanguage", style: "", count: 0, color: "blue", similarKey: 'py', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "vba", title: "vba", icon: "VisualBasicLanguage", style: "", count: 0, color: "blue", similarKey: 'vba', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
];
export const ProgrammingFileKeys = [
"js", "html", "css",
"json", "xml", "exe", "ps1"
];
export const ALLProgrammingFileKeys = [...ProgrammingFileKeys, ...XProgrammingFileKeys,];
export const ProgrammingFileSearchTypes = [
{ key: "js", title: "js", icon: "JS", style: "", count: 0, color: "blue", similarKey: 'js', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "html", title: "html", icon: "FileHTML", style: "", count: 0, color: "blue", similarKey: 'html', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "css", title: "css", icon: "CSS", style: "", count: 0, color: "blue", similarKey: 'css', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "json", title: "json", icon: "Code", style: "", count: 0, color: "blue", similarKey: 'json', contentGroup: ContentGroupData, isAKeys: [ItemIsAFile, ItemIsCodeContent, ItemIsDataContent] },
{ key: "xml", title: "xml", icon: "CalculatorMultiply", style: "", count: 0, color: "blue", similarKey: 'xml', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "exe", title: "exe", icon: "CSharpLanguage", style: "", count: 0, color: "blue", similarKey: 'exe', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
{ key: "ps1", title: "ps1", icon: "PowerShell2", style: "", count: 0, color: "blue", similarKey: 'ps1', contentGroup: ContentGroupCode, isAKeys: [ItemIsAFile, ItemIsCodeContent] },
];
/**
* Use SearchTypes for addSearchMeta1 && addSearchMeta2 function
* -- if you do not have a consolidated search page (with multiple sources)
*/
export const MAXSearchTypes = {
keys: [
...StdSharePointKeys,
...StdFileKeys,
...MediaFileKeys,
...ProgrammingFileKeys,
...XProgrammingFileKeys,
],
objs: [
...StdSharePointSearchTypes,
...StdFileSearchTypes,
...MediaFileSearchTypes,
...ProgrammingFileSearchTypes,
...XProgrammingFileSearchTypes,
]
};
//# sourceMappingURL=ProgrammingFileKeys.js.map