mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 09:08:51 +08:00
chore: 🚀 调整workflows使用pnpm安装依赖
This commit is contained in:
parent
dd8bc003ee
commit
b255a037d6
9
.github/workflows/alipay.yml
vendored
9
.github/workflows/alipay.yml
vendored
@ -37,10 +37,13 @@ jobs:
|
||||
}' > .minicirc
|
||||
fi
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "14.x"
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
|
||||
|
||||
- name: upload
|
||||
|
||||
4
.github/workflows/npm-publish.yml
vendored
4
.github/workflows/npm-publish.yml
vendored
@ -18,7 +18,9 @@ jobs:
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm
|
||||
run: |
|
||||
npm install pnpm -g
|
||||
pnpm install
|
||||
|
||||
- name: Run Compiler
|
||||
run: pnpm compiler
|
||||
|
||||
9
.github/workflows/oss.yml
vendored
9
.github/workflows/oss.yml
vendored
@ -13,10 +13,13 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: 设置 Node.js 18.x 环境
|
||||
uses: actions/setup-node@v2
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18.x'
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install Dependencies and Build Docs
|
||||
run: |
|
||||
|
||||
9
.github/workflows/weixin.yml
vendored
9
.github/workflows/weixin.yml
vendored
@ -41,10 +41,13 @@ jobs:
|
||||
}' > .minicirc
|
||||
fi
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "14.x"
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
|
||||
|
||||
- name: upload
|
||||
|
||||
@ -4,11 +4,11 @@ import { useSidebar } from 'vitepress/dist/client/theme-default/composables/side
|
||||
import { computed } from 'vue';
|
||||
|
||||
|
||||
const { theme, frontmatter } = useData()
|
||||
const { theme } = useData()
|
||||
const { hasSidebar } = useSidebar()
|
||||
|
||||
const copyright = computed(()=>{
|
||||
const isNetlify = location.href.includes('netlify')
|
||||
const isNetlify = typeof window !== 'undefined' ? window.location.href.includes('netlify') : false
|
||||
if (!isNetlify) {
|
||||
return `${theme.value.footer.copyright} | <a style="text-decoration: none;" href="https://www.netlify.com">This site is powered by Netlify</a>`
|
||||
}else{
|
||||
|
||||
@ -4,8 +4,8 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useRoute, useData } from 'vitepress';
|
||||
import { computed, onMounted, ref, watch } from 'vue'
|
||||
const baseUrl = process.env.NODE_ENV === 'production' ? `${location.origin}/demo/?timestamp=${new Date().getTime()}#/` : 'http://localhost:5173/demo/#/'
|
||||
import { computed, watch } from 'vue'
|
||||
const baseUrl = process.env.NODE_ENV === 'production' && typeof window !== 'undefined' ? `${window.location.origin}/demo/?timestamp=${new Date().getTime()}#/` : 'http://localhost:5173/demo/#/'
|
||||
const route = useRoute()
|
||||
const href = computed(() => {
|
||||
const path = route.path
|
||||
|
||||
@ -44,7 +44,7 @@ export default {
|
||||
import { onBeforeMount, ref, watch } from 'vue'
|
||||
import { COLLAPSE_KEY, type CollapseToggleAllOptions } from './types'
|
||||
import { useChildren } from '../composables/useChildren'
|
||||
import { isArray } from '../common/util'
|
||||
import { isArray, isDef } from '../common/util'
|
||||
|
||||
interface Props {
|
||||
customClass?: string
|
||||
@ -137,7 +137,7 @@ const toggleAll = (options: boolean | CollapseToggleAllOptions = {}) => {
|
||||
names.push(item.name || index)
|
||||
}
|
||||
} else {
|
||||
if (expanded ?? !item.$.exposed.expanded.value) {
|
||||
if (isDef(expanded) ? expanded : !item.$.exposed.expanded.value) {
|
||||
names.push(item.name || index)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user