Add gists page

* update search placeholder
This commit is contained in:
DefectingCat
2022-04-21 17:06:48 +08:00
parent 03c7daee36
commit 8d53e2d397
4 changed files with 209 additions and 0 deletions

View File

@ -19,3 +19,120 @@ export interface MyMatters {
export interface Post extends MyMatters {
slug: string;
}
// 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 GistsFile {
filename: string;
type: GistsFileType;
language: GistsLanguage | null;
raw_url: string;
size: number;
}
export enum GistsLanguage {
JavaScript = 'JavaScript',
PublicKey = 'Public Key',
TypeScript = 'TypeScript',
}
export enum GistsFileType {
ApplicationJavascript = 'application/javascript',
ApplicationPGPSignature = 'application/pgp-signature',
TextPlain = 'text/plain',
VideoMP2T = 'video/MP2T',
}
export interface GistsOwner {
login: GistsLogin;
id: number;
node_id: GistsNodeID;
avatar_url: string;
gravatar_id: string;
url: string;
html_url: string;
followers_url: string;
following_url: GistsFollowingURL;
gists_url: GistsURL;
starred_url: GistsStarredURL;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: GistsEventsURL;
received_events_url: string;
type: GistsOwnerType;
site_admin: boolean;
}
export enum GistsEventsURL {
HTTPSAPIGithubCOMUsersDefectingCatEventsPrivacy = 'https://api.github.com/users/DefectingCat/events{/privacy}',
}
export enum GistsFollowingURL {
HTTPSAPIGithubCOMUsersDefectingCatFollowingOtherUser = 'https://api.github.com/users/DefectingCat/following{/other_user}',
}
export enum GistsURL {
HTTPSAPIGithubCOMUsersDefectingCatGistsGistID = 'https://api.github.com/users/DefectingCat/gists{/gist_id}',
}
export enum GistsLogin {
DefectingCat = 'DefectingCat',
}
export enum GistsNodeID {
MDQ6VXNlcjI1MDMzNDkz = 'MDQ6VXNlcjI1MDMzNDkz',
}
export enum GistsStarredURL {
HTTPSAPIGithubCOMUsersDefectingCatStarredOwnerRepo = 'https://api.github.com/users/DefectingCat/starred{/owner}{/repo}',
}
export enum GistsOwnerType {
User = 'User',
}
// Generated by https://quicktype.io
export interface GithubUser {
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;
name: string;
company: null;
blog: string;
location: null;
email: null;
hireable: null;
bio: string;
twitter_username: string;
public_repos: number;
public_gists: number;
followers: number;
following: number;
created_at: string;
updated_at: string;
}