Add gist page

This commit is contained in:
Defectink
2022-04-25 10:45:53 +08:00
parent 5b175fa3c0
commit cedc921035
5 changed files with 122 additions and 84 deletions

View File

@ -138,66 +138,7 @@ export interface GithubUser {
}
// Generated by https://quicktype.io
export interface SignalGist {
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]: File };
public: boolean;
created_at: string;
updated_at: string;
description: string;
comments: number;
user: null;
comments_url: string;
owner: Owner;
export interface SignalGist extends Gist {
forks: any[];
history: History[];
truncated: boolean;
}
export interface File {
filename: string;
type: string;
language: string;
raw_url: string;
size: number;
truncated: boolean;
content: string;
}
export interface History {
user: Owner;
version: string;
committed_at: string;
change_status: ChangeStatus;
url: string;
}
export interface ChangeStatus {
total: number;
additions: number;
deletions: number;
}
export interface Owner {
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
}