Skip to content

Commit

Permalink
feat: 🚀 Update memo
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Jul 10, 2024
1 parent 54443b4 commit 736dcf9
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 37 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "viarotel-site",
"type": "module",
"version": "1.8.0",
"packageManager": "pnpm@8.15.7",
"packageManager": "pnpm@9.5.0",
"description": "viarotel site",
"author": "viarotel",
"license": "ISC",
Expand All @@ -16,24 +16,24 @@
},
"dependencies": {
"@lottiefiles/lottie-player": "^2.0.4",
"@waline/client": "^3.1.3",
"dayjs": "^1.11.10",
"@waline/client": "^3.3.0",
"dayjs": "^1.11.11",
"ga-gtag": "^1.2.0",
"gsap": "^3.12.5",
"lodash-es": "^4.17.21",
"ofetch": "^1.3.4"
},
"devDependencies": {
"@antfu/eslint-config": "^2.14.0",
"@unocss/preset-wind": "^0.59.3",
"@unocss/transformer-directives": "^0.59.3",
"eslint": "^9.0.0",
"typescript": "^5.4.5",
"unocss": "^0.59.3",
"unplugin-auto-import": "^0.17.5",
"unplugin-vue-components": "^0.26.0",
"@antfu/eslint-config": "^2.22.0",
"@unocss/preset-wind": "^0.61.3",
"@unocss/transformer-directives": "^0.61.3",
"eslint": "^9.6.0",
"typescript": "^5.5.3",
"unocss": "^0.61.3",
"unplugin-auto-import": "^0.17.6",
"unplugin-vue-components": "^0.27.2",
"vite-plugin-remove-console": "^2.2.0",
"vitepress": "^1.1.0",
"vitepress-sidebar": "^1.22.0"
"vitepress": "^1.3.0",
"vitepress-sidebar": "^1.24.0"
}
}
2 changes: 1 addition & 1 deletion src/components/HomeFeaturesBefore/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { lang } = useData()
const features = computed(() => {
const repos = data.repos || []
// console.log('repos', repos)
return repos.map(item => ({
...item,
title: item.name,
Expand Down
31 changes: 9 additions & 22 deletions src/data/repos.data.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,20 @@ import { ofetch } from 'ofetch'

const baseURL = 'https://ungh.cc'

const includes = [
'escrcpy',
'vite-uniapp-template',
'packages',
'environments',
'waline-service',
'vue-cli-uniapp',
'vue-apicloud-cli',
'bing-chat-live-open',
'blog-demo',
]
const excludes = ['waline-service']

async function getRepos() {
const promises = includes.map(name =>
ofetch(`${baseURL}/repos/viarotel-org/${name}`, {
method: 'GET',
}).catch(e => console.warn(e)),
)
const res = await ofetch(`${baseURL}/orgs/viarotel-org/repos`, {
method: 'GET',
}).catch(e => console.warn(e))

const res = await Promise.allSettled(promises)
const repos = res?.repos || []

const repos = res
.filter(item => item.status === 'fulfilled')
.map(item => item.value.repo)
// console.log('repos', repos)
const data = repos
.filter(item => !excludes.includes(item.name))
.sort((a, b) => b.stars - a.stars)

return repos
return data
}

export default {
Expand Down
4 changes: 3 additions & 1 deletion src/notes/memo/git/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ git push --delete origin oldName
git push origin newName
# 把修改后的本地分支与远程分支关联
git branch --set-upstream-to origin/newName
```
# 修复合并分支时中途取消无法拉取代码
git merge --abort
```
13 changes: 13 additions & 0 deletions src/notes/memo/microsoft/oobe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Windows 开箱体验常用命令

## 跳过联网

```shell
oobe/bypassnro
```

## 忽略安装错误

```shell
oobe/msoobe
```
7 changes: 7 additions & 0 deletions src/utils/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export function sleep(time = 500) {
return new Promise((resolve) => {
setTimeout(() => {
resolve()
}, time)
})
}

0 comments on commit 736dcf9

Please sign in to comment.