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
// remote prune | |
git remote prune origin | |
// local prune | |
git fetch --all -p; git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -n 1 git branch -D |
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, { AxiosProgressEvent } from "axios"; | |
import nProgress from "nprogress"; | |
import { Store } from "vuex"; | |
import { Router } from "vue-router/auto"; | |
import { version } from "../../package.json"; | |
const globalCancelToken = Axios.CancelToken.source(); | |
// progress bar on top of the page on every axios request. |
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
// heavily inspired by nuxt's useFetch | |
// functionalities: | |
// - delayed execution | |
// - result prop picking | |
// - custom transformer | |
// - state related callbacks (state change, success, error) | |
// - auto retry | |
// - request caching | |
// - auto fetch based on watched props | |
// - request dedup |
OlderNewer