jsketcher/web/app/cad/partImport/remotePartsConfig.ts
2020-06-09 21:52:49 -07:00

19 lines
675 B
TypeScript

import {PartsCatalog} from "./remotePartsPlugin";
import {GitHubRepoRepository} from "../repository/GitHubRepoRepository";
import {GrCubes} from "react-icons/gr";
import {PartRepository} from "./partRepository";
const WEB_CAD_ORG_REPO = new GitHubRepoRepository('xibyte/web-cad', 'master');
export const WEB_CAD_ORG_COMMONS_CATALOG: PartsCatalog = Object.freeze({
id: 'web-cad.org',
name: 'Commons Parts',
description: 'Public parts repository by web-cad.org',
icon: GrCubes,
repo: WEB_CAD_ORG_REPO,
metadataPath: 'commons.catalog.json',
});
export const WEB_CAD_ORG_PARTS_REPO: PartRepository = new PartRepository('web-cad.org', WEB_CAD_ORG_REPO, 'parts');