MCPcopy Index your code
hub / github.com/MellowCo/uni-vue3-starter

github.com/MellowCo/uni-vue3-starter @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
49 symbols 93 edges 31 files 2 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

uniapp-vue3-starter

插件

使用

npx degit MellowCo/uni-vue3-starter my-app
cd my-app
pnpm i 

使用 unocss

vite.config.ts

import { defineConfig } from 'vite'
import Unocss from 'unocss/vite'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    // https://github.com/antfu/unocss
    Unocss(),
  ],
})

unocss.config.ts

import presetWeapp from 'unocss-preset-weapp'
import { transformerAttributify, transformerClass } from 'unocss-preset-weapp/transformer'
import { defineConfig } from 'unocss'

export default defineConfig({
  presets: [
    // https://github.com/MellowCo/unocss-preset-weapp
    presetWeapp(),
  ],
  shortcuts: [
    {
      'border-base': 'border border-[#eee]',
      'flex-center': 'flex justify-center items-center',
      'text-c1': 'text-[#181818]',
      'text-c2': 'text-[#333333]',
      'text-c3': 'text-[#B2B2B2]',
      'text-c4': 'text-[#CCCCCC]',
      'bg': 'bg-[#f6f7fb]',
    },
  ],
  transformers: [
    // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerAttributify
    transformerAttributify(),

    // https://github.com/MellowCo/unocss-preset-weapp/tree/main/src/transformer/transformerClass
    transformerClass(),
  ],
})

Extension points exported contracts — how you extend this code

InterceptorConfig (Interface)
* 拦截器
src/typings/request.d.ts
ComponentCustomProperties (Interface)
(no doc)
auto-imports.d.ts
IRoute (Interface)
(no doc)
src/utils/common/route.ts
IUser (Interface)
(no doc)
src/service/api/user/index.ts
ServiceEnvConfig (Interface)
后台服务的环境配置
src/typings/env.d.ts
IData (Interface)
(no doc)
src/service/api/json/index.ts
RequestConfig (Interface)
(no doc)
src/typings/request.d.ts
Result (Interface)
(no doc)
src/typings/request.d.ts

Core symbols most depended-on inside this repo

route
called by 5
src/utils/common/route.ts
createError
called by 2
src/utils/common/error.ts
getErrorMsg
called by 2
src/utils/common/error.ts
showErrorModal
called by 2
src/utils/common/modal.ts
createRequest
called by 2
src/service/request/request.ts
request
called by 2
src/service/request/request.ts
showLoading
called by 1
src/utils/common/modal.ts
showToast
called by 1
src/utils/common/modal.ts

Shape

Function 34
Interface 9
Enum 3
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

src/utils/common/route.ts8 symbols
src/utils/common/modal.ts7 symbols
src/service/request/request.ts7 symbols
src/typings/request.d.ts3 symbols
src/typings/error.ts3 symbols
src/service/request/interceptors.ts3 symbols
src/utils/common/storage.ts2 symbols
src/utils/common/error.ts2 symbols
src/typings/env.d.ts2 symbols
src/service/api/user/index.ts2 symbols
src/service/api/json/index.ts2 symbols
src/store/modules/count/index.ts1 symbols

For agents

$ claude mcp add uni-vue3-starter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page