refactor(valaxy-addon-meting): rename useAplayer to useMeting

This commit is contained in:
YunYouJun 2023-10-31 01:42:35 +08:00
parent ae356f2e68
commit 5d17b83401
4 changed files with 6 additions and 21 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { useAplayer } from './client'
import { useMeting } from './client'
const props = withDefaults(defineProps<{
[key: string]: any
@ -22,7 +22,7 @@ export interface MetingJsProps {
type: 'song' | 'playlist' | 'album' | 'search' | 'artist'
}
useAplayer()
useMeting()
</script>
<template>

View File

@ -8,7 +8,7 @@ import { useSiteConfig } from 'valaxy'
* @see https://github.com/MoePlayer/APlayer
* @see https://github.com/metowolf/MetingJS
*/
export function useAplayer() {
export function useMeting() {
const siteConfig = useSiteConfig()
const cdnPrefix = computed(() => siteConfig.value.cdn.prefix)

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { useAplayer } from '../client'
import { useMeting } from '../client'
const props = withDefaults(defineProps<{
[key: string]: any
@ -22,7 +22,7 @@ export interface MetingJsProps {
type: 'song' | 'playlist' | 'album' | 'search' | 'artist'
}
useAplayer()
useMeting()
</script>
<template>

View File

@ -488,14 +488,7 @@ importers:
specifier: ^2.7.2
version: 2.7.2
packages/valaxy-addon-meting:
dependencies:
aplayer:
specifier: '1.2'
version: 1.2.14
meting:
specifier: ^2.0.1
version: 2.0.1
packages/valaxy-addon-meting: {}
packages/valaxy-addon-test: {}
@ -4134,10 +4127,6 @@ packages:
normalize-path: 3.0.0
picomatch: 2.3.1
/aplayer@1.2.14:
resolution: {integrity: sha512-65fc8vUHcpZ/TfmQbuD7UHNpp4zgkE0KAsUypqvqouRrDaKE8bOE7DanMxS6xpqpm2fXKuWgkbVZbF1Ssx4QTQ==}
dev: false
/appdata-path@1.0.0:
resolution: {integrity: sha512-ZbH3ezXfnT/YE3NdqduIt4lBV+H0ybvA2Qx3K76gIjQvh8gROpDFdDLpx6B1QJtW7zxisCbpTlCLhKqoR8cDBw==}
dev: true
@ -7750,10 +7739,6 @@ packages:
engines: {node: '>= 0.6'}
dev: true
/meting@2.0.1:
resolution: {integrity: sha512-qcn85I7btbtfDLZvcZdMa+HrpCXm2E3sRB3BRBVYWJvZG49uQFhIGK6I53c/EEcyumMdU0ekRfTlD4/FG1/48A==}
dev: false
/micromark@2.11.4:
resolution: {integrity: sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA==}
dependencies: