mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 11:16:01 +00:00
forms
This commit is contained in:
@@ -119,6 +119,11 @@ const allFilesLoader = () => ({
|
||||
params: {},
|
||||
reloadTrigger: `all-files-changed`,
|
||||
});
|
||||
const authTypesLoader = ({ engine }) => ({
|
||||
url: 'plugins/auth-types',
|
||||
params: { engine },
|
||||
reloadTrigger: `installed-plugins-changed`,
|
||||
});
|
||||
|
||||
async function getCore(loader, args) {
|
||||
const { url, params, reloadTrigger, transform } = loader(args);
|
||||
@@ -377,3 +382,10 @@ export function getFavorites(args) {
|
||||
export function useFavorites(args) {
|
||||
return useCore(favoritesLoader, args);
|
||||
}
|
||||
|
||||
export function getAuthTypes(args) {
|
||||
return getCore(authTypesLoader, args);
|
||||
}
|
||||
export function useAuthTypes(args) {
|
||||
return useCore(authTypesLoader, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user