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
{"name":"Global","settings":"{\"settings\":\"{\\n \\\"explorer.confirmDragAndDrop\\\": false,\\n \\\"explorer.confirmDelete\\\": false,\\n \\\"workbench.editor.decorations.badges\\\": true,\\n \\\"workbench.editor.decorations.colors\\\": true,\\n \\\"workbench.editor.tabCloseButton\\\": \\\"off\\\",\\n \\\"workbench.tree.indent\\\": 20,\\n \\\"workbench.startupEditor\\\": \\\"newUntitledFile\\\",\\n \\\"workbench.editor.highlightModifiedTabs\\\": true,\\n \\\"workbench.iconTheme\\\": \\\"eq-material-theme-icons\\\",\\n // SOP's highlight matching tag setting.\\n \\\"highlight-matching-tag.styles\\\": {\\n \\\"opening\\\": {\\n \\\"full\\\": {\\n \\\"highlight\\\": \\\"rgba(165, 153, 233, 0.3)\\\"\\n }\\n }\\n },\\n \\\"workbench.colorCustomizations\\\": {\\n \\\"errorLens.hintForeground\\\": \\\"#ffc600A1\\\",\\n \\\"errorLens.hintBackground\\\": \\\"#ffc60003\\\",\\n \\\"errorLens.errorBackground\\\": \\\"#ff000005\\\"\\n },\\n \\\"editor.fontLigatures\\\": true |
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
import { getStoredOptions, setStoredOptions } from '../work-with-api/storage'; | |
const BASE_URL = 'https://test.com'; | |
async function apiClient( | |
endpoint: string, | |
{ body, ...customConfig }: RequestInit = {} | |
) { | |
const res = await getStoredOptions(); |
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
import axios, { | |
AxiosError, | |
AxiosInstance, | |
AxiosRequestConfig, | |
AxiosResponse, | |
} from 'axios'; | |
import { PathLike } from 'fs'; | |
import qs from 'qs'; | |
import { getStoredOptions } from '../work-with-api/storage'; |
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
import axios, { AxiosError, AxiosRequestConfig } from 'axios'; | |
import { PathLike } from 'fs'; | |
import qs from 'qs'; | |
import { getStoredOptions } from '../work-with-api/storage'; | |
const BASE_URL = 'https://test.com/'; | |
const tokenHandler = async (config: AxiosRequestConfig<any>): Promise<void> => { | |
// Get Token Functionality | |
const res = await getStoredOptions(); |