./src/
src/cli.ts
src/index.ts
./vite.config.ts
vite.config.ts
import { resolve } from "node:path"
./src/
src/cli.ts
src/index.ts
./vite.config.ts
vite.config.ts
import { resolve } from "node:path"
# global config | |
# init config | |
init-author-name = blackcater | |
init-author-email = i@blackcater.dev | |
init-author-url = https://blackcater.com | |
# git tag message | |
message = "chore: version bump to v%s" |
import { | |
Autobind, | |
Component, | |
ComponentProps, | |
Computed, | |
Hook, | |
Mut, | |
VueComponent, | |
VueService, | |
} from 'vue3-oop' |
interface ResponseData { | |
code: -1 | 0 | 1 | |
msg: string | |
data: any | |
} | |
function getData(timeout: number) { | |
return Promise.race([ | |
new Promise<ResponseData>((resolve, reject) => { |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
<template> | |
<div class="cpq-ui"> | |
<transition :name="'cpq-router-' + routerDirection" :css="!!routerDirection"> | |
<router-view class="cpq-router-view"></router-view> | |
</transition> | |
</div> | |
</template> | |
<script> | |
import router from './router' |
export default function historyManage (store, router) { | |
store.registerModule('transition', { | |
state: { | |
direction: '' | |
}, | |
mutations: { | |
UPDATE_DIRECTION (state, direction) { | |
state.direction = direction | |
} | |
} |
const path = require('path') | |
function resolve(dir) { | |
return path.join(__dirname, '.', dir) | |
} | |
module.exports = { | |
baseUrl: './', | |
productionSourceMap: false, | |
chainWebpack: config => { |
/** | |
* 过滤掉不受支持的emoji表情 | |
* @param str | |
* @returns {*} | |
*/ | |
export function replaceUndisplayEmoji (str) { | |
if (!str) return str | |
return str.replace(/[\ue000-\ue537]/g, '') | |
} |