mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Add GitHub token environment variable support and improve git operations
This commit is contained in:
1 parent
025b2990ed
commit
af0dcac7c8
11 files changed
+125
-21
No files matched your search
@@ -10,6 +10,12 @@ interface ToastOptions {
|
||||
id?: string | number
|
||||
}
|
||||
|
||||
interface PromiseToastMessages {
|
||||
loading: string
|
||||
success: string
|
||||
error: string
|
||||
}
|
||||
|
||||
export const showToast = {
|
||||
success: (message: string, options?: ToastOptions) => {
|
||||
return toast.success(message, options)
|
||||
@@ -31,6 +37,10 @@ export const showToast = {
|
||||
return toast.loading(message, options)
|
||||
},
|
||||
|
||||
promise: <T>(promise: Promise<T>, messages: PromiseToastMessages) => {
|
||||
return toast.promise(promise, messages)
|
||||
},
|
||||
|
||||
dismiss: (id?: string | number) => {
|
||||
toast.dismiss(id)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user