-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): Connect plugins show API to download dialog lang in A…
…dminCP
- Loading branch information
1 parent
adbb29a
commit d21f021
Showing
5 changed files
with
83 additions
and
26 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
22 changes: 22 additions & 0 deletions
22
frontend/admin/core/views/core/langs/table/actions/download/hooks/query-api.ts
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,22 @@ | ||
"use server"; | ||
|
||
import { fetcher } from "@/graphql/fetcher"; | ||
import { | ||
Admin__Core_Plugins__Show, | ||
type Admin__Core_Plugins__ShowQuery, | ||
type Admin__Core_Plugins__ShowQueryVariables | ||
} from "@/graphql/hooks"; | ||
|
||
export const queryApi = async ( | ||
variables: Admin__Core_Plugins__ShowQueryVariables | ||
) => { | ||
const { data } = await fetcher< | ||
Admin__Core_Plugins__ShowQuery, | ||
Admin__Core_Plugins__ShowQueryVariables | ||
>({ | ||
query: Admin__Core_Plugins__Show, | ||
variables | ||
}); | ||
|
||
return data; | ||
}; |
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
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