Skip to content

Commit

Permalink
feat: 🚀 Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
viarotel committed Apr 16, 2024
1 parent e005743 commit 4a8cc9f
Show file tree
Hide file tree
Showing 16 changed files with 275 additions and 75 deletions.
83 changes: 83 additions & 0 deletions .eslintrc-auto-import.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"globals": {
"Component": true,
"ComponentPublicInstance": true,
"ComputedRef": true,
"EffectScope": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true,
"InjectionKey": true,
"PropType": true,
"Ref": true,
"VNode": true,
"WritableComputedRef": true,
"acceptHMRUpdate": true,
"computed": true,
"createApp": true,
"createPinia": true,
"customRef": true,
"defineAsyncComponent": true,
"defineComponent": true,
"defineStore": true,
"effectScope": true,
"getActivePinia": true,
"getCurrentInstance": true,
"getCurrentScope": true,
"h": true,
"inject": true,
"isProxy": true,
"isReactive": true,
"isReadonly": true,
"isRef": true,
"mapActions": true,
"mapGetters": true,
"mapState": true,
"mapStores": true,
"mapWritableState": true,
"markRaw": true,
"nextTick": true,
"onActivated": true,
"onBeforeMount": true,
"onBeforeUnmount": true,
"onBeforeUpdate": true,
"onDeactivated": true,
"onErrorCaptured": true,
"onMounted": true,
"onRenderTracked": true,
"onRenderTriggered": true,
"onScopeDispose": true,
"onServerPrefetch": true,
"onUnmounted": true,
"onUpdated": true,
"provide": true,
"reactive": true,
"readonly": true,
"ref": true,
"resolveComponent": true,
"setActivePinia": true,
"setMapStoreSuffix": true,
"shallowReactive": true,
"shallowReadonly": true,
"shallowRef": true,
"storeToRefs": true,
"toRaw": true,
"toRef": true,
"toRefs": true,
"toValue": true,
"triggerRef": true,
"unref": true,
"useAttrs": true,
"useCssModule": true,
"useCssVars": true,
"useSlots": true,
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"useData": true,
"useRoute": true,
"useRouter": true,
"withBase": true
}
}
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pnpm 📥
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
with:
release-type: node
package-name: release-please-action
token: ${{ secrets.ACCESS_TOKEN }}
56 changes: 32 additions & 24 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
import antfu from '@antfu/eslint-config'
import { createRequire } from 'node:module'

export default antfu({
typescript: false,
markdown: false,
ignores: [
'node_modules',
'src/notes/public',
'dist',
'index.html',
],
}, {
rules: {
'jsdoc/check-param-names': 'off',
'jsdoc/check-types': 'off',
'jsdoc/require-returns-description': 'off',
const require = createRequire(import.meta.url)

'node/prefer-global/process': 'off',
const autoImport = require('./.eslintrc-auto-import.json')

'no-console': 'off',
'curly': 'off',
'eqeqeq': 'off',
'no-unused-vars': 'off',
export default antfu(
{
typescript: false,
markdown: false,
ignores: ['node_modules', 'src/notes/public', 'dist', 'index.html'],
},
{
languageOptions: {
globals: {
...autoImport.globals,
},
},
rules: {
'jsdoc/check-param-names': 'off',
'jsdoc/check-types': 'off',
'jsdoc/require-returns-description': 'off',

'unused-imports/no-unused-vars': 'off',
'node/prefer-global/process': 'off',

'vue/html-self-closing': 'off',
'vue/block-order': 'off',
},
})
'no-console': 'off',
curly: 'off',
eqeqeq: 'off',
'no-unused-vars': 'off',

'unused-imports/no-unused-vars': 'off',

'vue/html-self-closing': 'off',
'vue/block-order': 'off',
},
}
)
34 changes: 18 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "viarotel-site",
"type": "module",
"version": "1.7.0",
"packageManager": "pnpm@8.7.4",
"description": "Viarotel site",
"packageManager": "pnpm@8.15.7",
"description": "viarotel site",
"author": "viarotel",
"license": "ISC",
"keywords": [],
Expand All @@ -15,23 +15,25 @@
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@lottiefiles/lottie-player": "^1.7.1",
"@waline/client": "^3.1.1",
"dayjs": "^1.11.7",
"ga-gtag": "^1.1.7",
"gsap": "^3.11.5",
"@lottiefiles/lottie-player": "^2.0.4",
"@waline/client": "^3.1.3",
"dayjs": "^1.11.10",
"ga-gtag": "^1.2.0",
"gsap": "^3.12.5",
"lodash-es": "^4.17.21",
"ofetch": "^1.0.1"
"ofetch": "^1.3.4"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.4",
"@unocss/preset-wind": "^0.58.5",
"@unocss/transformer-directives": "^0.58.5",
"eslint": "^8.56.0",
"typescript": "^5.3.3",
"unocss": "^0.58.5",
"@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",
"vite-plugin-remove-console": "^2.2.0",
"vitepress": "1.0.0-rc.44",
"vitepress-sidebar": "^1.18.6"
"vitepress": "^1.1.0",
"vitepress-sidebar": "^1.22.0"
}
}
17 changes: 7 additions & 10 deletions src/components/HomeFeaturesBefore/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup>
import { computed } from 'vue'
import { useData } from 'vitepress'
import VPFeatures from 'vitepress/dist/client/theme-default/components/VPFeatures.vue'
import { data } from '@/data/repos.data.js'
Expand All @@ -10,13 +8,12 @@ const { lang } = useData()
const features = computed(() => {
const repos = data.repos || []
// console.log('repos', repos)
return repos
.map(item => ({
...item,
title: item.name,
details: item.description,
link: `https://github.com/${item.repo}`,
}))
return repos.map((item) => ({
...item,
title: item.name,
details: item.description,
link: `https://github.com/${item.repo}`,
}))
})
</script>

Expand All @@ -28,7 +25,7 @@ const features = computed(() => {
<span
class="bg-white dark:bg-[#1e1e20] px-2 relative italic relative text-gray-700 dark:text-gray-300"
>
{{ lang === "en" ? "What I've been doing lately" : "最近在做的事" }}
{{ lang === 'en' ? "What I've been doing lately" : '最近在做的事' }}
<div
class="absolute w-80 h-[0.2px] bg-gray-300 dark:bg-gray-600 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 -z-1"
/>
Expand Down
9 changes: 2 additions & 7 deletions src/components/HomeHeroImage/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<script setup>
import { computed, ref } from 'vue'
import { useData } from 'vitepress'
import { sample } from 'lodash-es'
import ViaLottiePlayer from '@/components/ViaLottiePlayer/index.vue'
Expand All @@ -24,15 +20,14 @@ const lottieIndex = ref(sample(arrayLotties)[2])
const currentLottie = computed(() => arrayLotties[lottieIndex.value])
const currentLottieJSON = computed(
() => currentLottie.value?.[1]?.default || null,
() => currentLottie.value?.[1]?.default || null
)
const lottiePlayer = ref(null)
function loadNextLottie() {
if (lottieIndex.value < lengthLotties - 1) {
++lottieIndex.value
}
else {
} else {
lottieIndex.value = 0
}
// console.log('lottiePlayer', lottiePlayer)
Expand Down
2 changes: 0 additions & 2 deletions src/components/ViaCrowd/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup>
// import { useData } from 'vitepress'
import { onMounted } from 'vue'
import crowd from './core/crowd.js'
onMounted(() => {
Expand Down
9 changes: 2 additions & 7 deletions src/components/ViaLottiePlayer/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<script setup>
// import { useData } from 'vitepress'
import { ref } from 'vue'
const props = defineProps({
el: {
type: Function,
Expand All @@ -13,13 +9,12 @@ const props = defineProps({
const renderLottie = ref(false)
if (!import.meta.env.SSR) {
(async () => {
;(async () => {
try {
await import('@lottiefiles/lottie-player')
renderLottie.value = true
}
catch (error) {
} catch (error) {
console.warn('error')
}
})()
Expand Down
2 changes: 0 additions & 2 deletions src/components/WalineComment/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup>
import { computed, onMounted, watch } from 'vue'
import { useData, useRoute } from 'vitepress'
import { init } from '@waline/client'
import '@waline/client/waline.css'
Expand Down
Loading

0 comments on commit 4a8cc9f

Please sign in to comment.