This file contains hidden or 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 { AxiosRequestConfig, AxiosResponse } from 'axios' | |
export class ApiResponse implements AxiosResponse { | |
data: any | |
status: number | |
statusText: string | |
headers: any | |
config: AxiosRequestConfig | |
} |
This file contains hidden or 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, { AxiosPromise, AxiosRequestConfig } from 'axios' | |
import { URL } from 'consts' | |
import { ApiResponse } from '__src/types/api' | |
const cancelTokens = {} | |
// ==================================== | |
// Interceptors | |
// ==================================== | |
axios.interceptors.request.use((requestConfig: AxiosRequestConfig) => { |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
<!-- Header Bar --> | |
<header class="e-header"> | |
<!-- Header Top --> | |
<div class="e-header__top"> | |
<!-- Logo --> | |
<a href="index.html" class="e-header__logo"> | |
<img src="img/logo.svg" alt="companyLogo"> | |
</a> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html class="no-js" lang="de"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Atomic BEM</title> | |
<meta name="description" content=""> | |
<meta name="keywords" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="css/style.css"> |