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 { useAsyncState } from "@vueuse/core"; | |
import type { ComputedRef } from "vue"; | |
import { computed, reactive, watch } from "vue"; | |
export interface GetOptions { | |
/** | |
* @default false | |
*/ | |
forceRefresh?: boolean; | |
} |
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
const API_VERSION = 0; | |
const BASE_URL = `https://sentry.io/api/${API_VERSION}`; | |
const ORGANIZATION_SLUG = ""; | |
const PROJECT_SLUG = ""; | |
const TOKEN = ""; // 64 length hex, can be found in /settings/account/api/auth-tokens/ | |
const CONDITION = "is:unresolved lastSeen:+52w"; | |
const URL = `${BASE_URL}/projects/${ORGANIZATION_SLUG}/${PROJECT_SLUG}/issues/`; | |
const QUERY = escape(CONDITION); | |
const HEADERS = { |
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
const fs = require('fs'); | |
const path = require('path'); | |
const prettier = require('prettier'); | |
const { plugin } = require('./../dist/index'); | |
const code = fs.readFileSync(path.resolve(__dirname, '../test/private/Settings/unformatted.pug'), 'utf8'); | |
// test/private/Settings/unformatted.pug is a huge 1008 lines vue-pug file | |
let totalDuration = 0; | |
for (let iter = 1; iter <= 25; iter++) { |
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
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo "[${BRANCH}${STAT}]:" | |
else | |
echo "" | |
fi |