mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: create tag dialog (#814)
This commit is contained in:
@ -187,6 +187,20 @@ export function getTagList(tagFind?: TagFind) {
|
||||
return axios.get<ResponseObject<string[]>>(`/api/tag?${queryList.join("&")}`);
|
||||
}
|
||||
|
||||
export function getTagSuggestionList() {
|
||||
return axios.get<ResponseObject<string[]>>(`/api/tag/suggestion`);
|
||||
}
|
||||
|
||||
export function upsertTag(tagName: string) {
|
||||
return axios.post<ResponseObject<string>>(`/api/tag`, {
|
||||
name: tagName,
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteTag(tagName: string) {
|
||||
return axios.delete<ResponseObject<string>>(`/api/tag/${tagName}`);
|
||||
}
|
||||
|
||||
export async function getRepoStarCount() {
|
||||
const { data } = await axios.get(`https://api.github.com/repos/usememos/memos`, {
|
||||
headers: {
|
||||
|
Reference in New Issue
Block a user