* fix: how? * fix: 0 byte thumbnail png loading bug * fix: adding navigate to single file back * fix: cargo fmt * fix: sorting files to match manifest and unit test * fix: restoring back to main * fix: cargo fmt * fix: ope, I forgot I deleted some code that renamed single files to the samples name to track easier within the file tree * fix: ope * Update src/lib/commandBarConfigs/applicationCommandConfig.ts Co-authored-by: Frank Noirot <frank@zoo.dev> * fix: unique name for project, ope * fix: filtered samples for web and skeleton create a sample command * fix: Create A Sample specifically desktop home page instead of overloading the add to file * fix: hiding source * fix: gotcha on add to file with existing project default args and assemblies --------- Co-authored-by: Frank Noirot <frank@zoo.dev>
15 lines
459 B
TypeScript
15 lines
459 B
TypeScript
import kclSamplesManifest from '@public/kcl-samples/manifest.json'
|
|
|
|
export const kclSamplesManifestWithNoMultipleFiles = kclSamplesManifest.filter(
|
|
(file) => !file.multipleFiles
|
|
)
|
|
export const everyKclSample = kclSamplesManifest
|
|
|
|
export const findKclSample = (pathFromProjectDirectoryToFirstFile: string) => {
|
|
return everyKclSample.find(
|
|
(sample) =>
|
|
sample.pathFromProjectDirectoryToFirstFile ===
|
|
pathFromProjectDirectoryToFirstFile
|
|
)
|
|
}
|