mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Remove catalog
This commit is contained in:
parent
db7a840e4f
commit
ca4d656606
@ -210,6 +210,12 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/camel-case",
|
||||
"asOfVersion": "1.2.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "catalog",
|
||||
"typingsPackageName": "catalog",
|
||||
"sourceRepoURL": "https://github.com/interactivethings/catalog",
|
||||
"asOfVersion": "3.5.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "chalk",
|
||||
"typingsPackageName": "chalk",
|
||||
|
||||
@ -1,42 +0,0 @@
|
||||
import * as React from "react";
|
||||
import { Config, render, markdown, Catalog, ReactSpecimen, Page } from "catalog";
|
||||
|
||||
const config: Config = {
|
||||
title: 'Test',
|
||||
pages: [
|
||||
{
|
||||
path: '/',
|
||||
title: 'Introduction',
|
||||
content: '/patd/to/file.md',
|
||||
},
|
||||
{
|
||||
path: '/materials',
|
||||
title: 'Materials',
|
||||
pages: [
|
||||
{
|
||||
path: '/materials/typeface',
|
||||
title: 'Typeface',
|
||||
component: <Page />,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
useBrowserHistory: true,
|
||||
basePath: '/doc',
|
||||
responsiveSizes: [
|
||||
{ name: 'large', width: 978, height: 1100 },
|
||||
{ name: 'medium', width: 640, height: 900 },
|
||||
{ name: 'small', width: 471, height: 700 },
|
||||
],
|
||||
};
|
||||
|
||||
render(config, document.body);
|
||||
<Catalog {...config} />;
|
||||
|
||||
markdown`
|
||||
# Test
|
||||
|
||||
${<ReactSpecimen sourceText='.'>
|
||||
<div />
|
||||
</ReactSpecimen>}
|
||||
`;
|
||||
109
types/catalog/index.d.ts
vendored
109
types/catalog/index.d.ts
vendored
@ -1,109 +0,0 @@
|
||||
// Type definitions for catalog 3.2
|
||||
// Project: https://github.com/interactivethings/catalog/
|
||||
// Definitions by: Peter Gassner <https://github.com/grossbart>, Tomas Carnecky <https://github.com/wereHamster>
|
||||
// Definitions: https://github.com/interactivethings/catalog/
|
||||
// TypeScript Version: 2.6
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
// Configuration
|
||||
|
||||
// XXX: Can not name this 'Page' because there's already a 'Page'
|
||||
// component here.
|
||||
export interface ConfigPage {
|
||||
path: string;
|
||||
title: string;
|
||||
|
||||
content?: any;
|
||||
component?: any;
|
||||
pages?: ConfigPage[];
|
||||
}
|
||||
|
||||
export interface ConfigResponsiveSize {
|
||||
name: string;
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
|
||||
export interface Config {
|
||||
title: string;
|
||||
pages: ConfigPage[];
|
||||
|
||||
useBrowserHistory?: boolean;
|
||||
basePath?: string;
|
||||
responsiveSizes?: ConfigResponsiveSize[];
|
||||
}
|
||||
|
||||
export function render(config: Config, element: HTMLElement): void;
|
||||
export function configure(config: any): any;
|
||||
export function configureRoutes(config: any): any;
|
||||
export function configureJSXRoutes(config: any): any;
|
||||
|
||||
export function pageLoader(f: () => Promise<any>): any;
|
||||
export function markdown(...x: any[]): JSX.Element;
|
||||
|
||||
// Components
|
||||
export interface DefaultCatalogProps extends React.Props<{}> {
|
||||
span?: number;
|
||||
theme?: any;
|
||||
}
|
||||
|
||||
export class Card extends React.Component<DefaultCatalogProps> {}
|
||||
export class Page extends React.Component<DefaultCatalogProps> {}
|
||||
export interface SpanProps extends DefaultCatalogProps {
|
||||
style?: any;
|
||||
}
|
||||
export class Span extends React.Component<SpanProps> {}
|
||||
|
||||
// Specimens
|
||||
export class AudioSpecimen extends React.Component<DefaultCatalogProps> {}
|
||||
|
||||
export interface CodeSpecimenProps extends DefaultCatalogProps {
|
||||
rawBody: string;
|
||||
collapsed: boolean;
|
||||
lang: string;
|
||||
raw: boolean;
|
||||
}
|
||||
export class CodeSpecimen extends React.Component<CodeSpecimenProps> {}
|
||||
|
||||
export interface ColorSpecimenProps extends DefaultCatalogProps {
|
||||
value: string;
|
||||
name: string;
|
||||
}
|
||||
export class ColorSpecimen extends React.Component<ColorSpecimenProps> {}
|
||||
|
||||
export interface ColorPaletteSpecimenProps extends DefaultCatalogProps {
|
||||
colors: Array<{name?: string, value: string}>;
|
||||
horizontal?: boolean;
|
||||
}
|
||||
export class ColorPaletteSpecimen extends React.Component<ColorPaletteSpecimenProps> {}
|
||||
|
||||
export class HtmlSpecimen extends React.Component<DefaultCatalogProps> {}
|
||||
export class HintSpecimen extends React.Component<DefaultCatalogProps> {}
|
||||
export class ImageSpecimen extends React.Component<DefaultCatalogProps> {}
|
||||
|
||||
export interface TypeSpecimenProps extends DefaultCatalogProps {
|
||||
color?: string;
|
||||
font: string;
|
||||
headings: string[] | number[];
|
||||
style?: string;
|
||||
weight: string;
|
||||
}
|
||||
export class TypeSpecimen extends React.Component<TypeSpecimenProps> {}
|
||||
export class DownloadSpecimen extends React.Component<DefaultCatalogProps> {}
|
||||
|
||||
export interface ReactSpecimenProps extends DefaultCatalogProps {
|
||||
noSource?: boolean;
|
||||
plain?: boolean;
|
||||
light?: boolean;
|
||||
dark?: boolean;
|
||||
frame?: boolean;
|
||||
state?: any;
|
||||
responsive?: boolean | string | string[];
|
||||
sourceText?: string;
|
||||
}
|
||||
export class ReactSpecimen extends React.Component<ReactSpecimenProps> {}
|
||||
|
||||
export class VideoSpecimen extends React.Component<DefaultCatalogProps> {}
|
||||
|
||||
export class Catalog extends React.Component<Config> {}
|
||||
@ -1,25 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"catalog-tests.tsx"
|
||||
]
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user