mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-25 22:34:24 +00:00
feat: add custom style workspace setting
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import axios from "axios";
|
||||
import { userServiceClient, workspaceSettingServiceClient } from "@/grpcweb";
|
||||
import { WorkspaceSetting } from "@/types/proto/api/v2/workspace_setting_service";
|
||||
import { userServiceClient } from "@/grpcweb";
|
||||
|
||||
export function getWorkspaceProfile() {
|
||||
return axios.get<WorkspaceProfile>("/api/v1/workspace/profile");
|
||||
@@ -77,17 +76,6 @@ export function deleteShortcutById(shortcutId: ShortcutId) {
|
||||
return axios.delete(`/api/v1/shortcut/${shortcutId}`);
|
||||
}
|
||||
|
||||
export function getWorkspaceSetting() {
|
||||
return workspaceSettingServiceClient.getWorkspaceSetting({});
|
||||
}
|
||||
|
||||
export function updateWorkspaceSetting(setting: WorkspaceSetting, updateMask: string[]) {
|
||||
return workspaceSettingServiceClient.updateWorkspaceSetting({
|
||||
setting,
|
||||
updateMask,
|
||||
});
|
||||
}
|
||||
|
||||
export function getUrlFavicon(url: string) {
|
||||
return axios.get<string>(`/api/v1/url/favicon?url=${url}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user