-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement UI with Basic CRUD Functionality
- Loading branch information
CaiHaosen
committed
Jul 12, 2024
1 parent
6cc79e2
commit 4ff8efb
Showing
5 changed files
with
576 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
export interface Metadata { | ||
name: string; | ||
labels?: { | ||
[key: string]: string; | ||
} | null; | ||
annotations?: { | ||
[key: string]: string; | ||
} | null; | ||
version?: number | null; | ||
creationTimestamp?: string | null; | ||
deletionTimestamp?: string | null; | ||
} | ||
|
||
export interface HtmlInjectionSpec { | ||
name: string; | ||
description: string; | ||
fragment: string; | ||
injectionPoint: 'HEADER' | 'FOOTER'; | ||
pageRules: Set<String>; | ||
enabled: boolean; | ||
} | ||
|
||
/** | ||
* 与自定义模型 HtmlInjection 对应 | ||
*/ | ||
export interface HtmlInjection { | ||
spec: HtmlInjectionSpec; | ||
apiVersion: "theme.halo.run/v1alpha1"; // apiVersion=自定义模型的 group/version | ||
kind: "HtmlInjection"; // Code 自定义模型中 @GVK 注解中的 kind | ||
metadata: Metadata; | ||
} | ||
|
||
/** | ||
* HtmlInjection 自定义模型生成 list API 所对应的类型 | ||
*/ | ||
export interface HtmlInjectionList { | ||
page: number; | ||
size: number; | ||
total: number; | ||
items: Array<HtmlInjection>; | ||
first: boolean; | ||
last: boolean; | ||
hasNext: boolean; | ||
hasPrevious: boolean; | ||
totalPages: number; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.