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 from 'axios'; | |
class Service { | |
constructor() { | |
let service = axios.create({ | |
headers: {csrf: 'token'} | |
}); | |
service.interceptors.response.use(this.handleSuccess, this.handleError); | |
this.service = service; | |
} |
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
# Create hidden folder for Oh My Zsh core installation with subfolders for custom plugins and themes | |
mkdir -p ~/.zsh/custom/{plugins,themes} | |
# Clone Oh My Zsh from Github into root of hidden ~/.zsh directory | |
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.zsh/oh-my-zsh | |
# Clone Powerlevel9k theme to ~/.zsh/custom/themes folder | |
git clone https://github.com/bhilburn/powerlevel9k.git ~/.zsh/custom/themes/powerlevel9k | |
# Fetch and install Nerd Font from Github to be used with our new shell config (http://nerdfonts.com/#downloads), long script but does the job :) |
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 type { CollectionSlug } from 'payload' | |
export const PATH_UNIQUE_AGINST_COLLECTIONS = ['pages', 'posts'] as const satisfies CollectionSlug[] | |
export const FIELD_TO_USE_FOR_PATH = 'slug' as const |
OlderNewer