Change fetch to oct

This commit is contained in:
DefectingCat
2022-06-21 14:05:41 +08:00
parent 787fc77ba4
commit 74bd0a7ba0
8 changed files with 704 additions and 117 deletions

View File

@ -1,3 +1,4 @@
import { GistData } from 'lib/fetcher';
import { NextPage } from 'next';
import { AppProps } from 'next/app';
import { ReactElement } from 'react';
@ -21,34 +22,34 @@ export interface Post extends MyMatters {
}
// Generated by https://quicktype.io
export interface Gist {
url: string;
forks_url: string;
commits_url: string;
id: string;
node_id: string;
git_pull_url: string;
git_push_url: string;
html_url: string;
files: { [key: string]: GistsFile };
public: boolean;
created_at: string;
updated_at: string;
description: string;
comments: number;
user: null;
comments_url: string;
owner: GistsOwner;
truncated: boolean;
}
// export interface Gist {
// url: string;
// forks_url: string;
// commits_url: string;
// id: string;
// node_id: string;
// git_pull_url: string;
// git_push_url: string;
// html_url: string;
// files: { [key: string]: GistsFile };
// public: boolean;
// created_at: string;
// updated_at: string;
// description: string;
// comments: number;
// user: null;
// comments_url: string;
// owner: GistsOwner;
// truncated: boolean;
// }
export interface GistsFile {
filename: string;
type: GistsFileType;
language: GistsLanguage | null;
raw_url: string;
size: number;
content: string;
filename?: string | undefined;
type?: string | undefined;
language?: string | undefined;
raw_url?: string | undefined;
size?: number | undefined;
content?: string | undefined;
}
export enum GistsLanguage {
@ -114,7 +115,7 @@ export enum GistsOwnerType {
}
// Generated by https://quicktype.io
export interface SignalGist extends Gist {
export interface SignalGist extends GistData {
forks: any[];
history: History[];
}