generated from taylorbryant/gatsby-starter-tailwind
-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(area/crag page): move page GQL query out of page
refactor(gql): reuse media fragment in area query
- Loading branch information
viet nguyen
committed
Apr 30, 2023
1 parent
749bd3d
commit 12b1f40
Showing
6 changed files
with
53 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import axios from 'axios' | ||
import { SIRV_CONFIG } from '../sirv/SirvClient' | ||
export const httpClient = axios.create({ | ||
baseURL: SIRV_CONFIG.baseUrl | ||
}) | ||
|
||
// const storage = new Storage() | ||
// /** | ||
// * | ||
// * @param fileList | ||
// * @param token | ||
// * @returns | ||
// */ | ||
// export const getImagesByFilenames = async (fileList: string[]): Promise <{ mediaList: MediaType[], idList: string[]}> => { | ||
// if (fileList.length === 0) { | ||
// return { | ||
// mediaList: [], | ||
// idList: [] | ||
// } | ||
// } | ||
|
||
// const [files] = await storage.bucket('openbeta-staging').getFiles({ autoPaginate: false }) | ||
|
||
// const result = files.reduce<string[]>((acc, curr) => { | ||
// if (curr.name.endsWith('uid.json')) { | ||
// return acc | ||
// } | ||
// acc.push(curr.name) | ||
// return acc | ||
// }, []) | ||
|
||
// console.log('##', result) | ||
// return { mediaList: [], idList: [] } | ||
// } |
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
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