Skip to content

Commit

Permalink
feat(musicplayer-plugin): support NetEase Cloud Music
Browse files Browse the repository at this point in the history
  • Loading branch information
xcyeye committed Nov 20, 2021
1 parent 34c00e3 commit c943cec
Show file tree
Hide file tree
Showing 19 changed files with 826 additions and 85 deletions.
21 changes: 0 additions & 21 deletions Aurora-plugin/vuepress-plugin-archive/LICENSE

This file was deleted.

88 changes: 28 additions & 60 deletions Aurora-plugin/vuepress-plugin-archive/package.json
@@ -1,69 +1,37 @@
{
"_from": "@vuepress/plugin-back-to-top@2.0.0-beta.26",
"_id": "@vuepress/plugin-back-to-top@2.0.0-beta.26",
"_inBundle": false,
"_integrity": "sha1-xb6u2TrbtYl2WLmoByAAs9rY+LA=",
"_location": "/@vuepress/plugin-back-to-top",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@vuepress/plugin-back-to-top@2.0.0-beta.26",
"name": "@vuepress/plugin-back-to-top",
"escapedName": "@vuepress%2fplugin-back-to-top",
"scope": "@vuepress",
"rawSpec": "2.0.0-beta.26",
"saveSpec": null,
"fetchSpec": "2.0.0-beta.26"
"name": "vuepress-plugin-archive",
"version": "1.0.0-beta.1",
"description": "为Vuepress静态站点提供在线发布,编辑说说功能,支持图片上传,点赞,评论,用户登录,注册等功能 Provide online publishing, editing and talking functions for Vuepress static sites, support image upload, like, comment, user login, registration and other functions",
"main": "./lib/node/index.js",
"directories": {
"lib": "lib"
},
"_requiredBy": [
"/@vuepress/theme-default"
],
"_resolved": "https://registry.nlark.com/@vuepress/plugin-back-to-top/download/@vuepress/plugin-back-to-top-2.0.0-beta.26.tgz",
"_shasum": "c5beaed93adbb5897658b9a8072000b3dad8f8b0",
"_spec": "@vuepress/plugin-back-to-top@2.0.0-beta.26",
"_where": "D:\\theme-aurora\\theme-aurora\\node_modules\\@vuepress\\theme-default",
"author": {
"name": "meteorlxy"
},
"bugs": {
"url": "https://github.com/vuepress/vuepress-next/issues"
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"commit": "git add . && git cz"
},
"bundleDependencies": false,
"dependencies": {
"@vuepress/core": "2.0.0-beta.26",
"@vuepress/utils": "2.0.0-beta.25",
"ts-debounce": "^3.0.0",
"vue": "^3.2.3"
"repository": {
"type": "git",
"url": "https://github.com/vuepress-aurora/vuepress-plugin-archive"
},
"deprecated": false,
"description": "VuePress plugin - back to top",
"files": [
"lib"
],
"gitHead": "6cbf3e07b2871383cebad5180fcbb02d69c79566",
"homepage": "https://github.com/vuepress",
"keywords": [
"vuepress-plugin",
"vuepress",
"vuepress-theme",
"plugin",
"top"
"vue",
"vuepress-plugin",
"vuepress archive",
"vuepress2",
"archive",
"vuepress-plugin-timeline",
"vuepress timeline"
],
"license": "MIT",
"main": "lib/node/index.js",
"name": "@vuepress/plugin-back-to-top",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vuepress/vuepress-next.git"
},
"scripts": {
"build": "tsc -b tsconfig.build.json",
"clean": "rimraf lib *.tsbuildinfo",
"copy": "cpx \"src/**/*.{css,svg}\" lib"
"author": "qsyyke",
"license": "ISC",
"bugs": {
"url": "https://github.com/vuepress-aurora/vuepress-plugin-archive/issues"
},
"types": "lib/node/index.d.ts",
"version": "2.0.0-beta.26"
"homepage": "https://aurora.xcye.xyz/plugin/archive/index.html",
"publishConfig": {
"tag": "next"
}
}
@@ -0,0 +1,3 @@
declare const _default: import("@vuepress/client").ClientAppEnhance;
export default _default;

@@ -0,0 +1,14 @@
import { defineClientAppEnhance } from '@vuepress/client';
import AuroraMusic from "./components/AuroraMusic";
import './style/aurora.music.css'
import $ from "jquery";
import {createApp} from "vue";
export default defineClientAppEnhance(({ app, router }) => {
app.component("AuroraMusic",AuroraMusic)

let posterAppend = $("<div class=\"aurora-music-append\" id=\"aurora-music-append\">").get(0)
$("#app").get(0).appendChild(posterAppend)
createApp(AuroraMusic,{
app: app,
}).mount("#aurora-music-append")
});

0 comments on commit c943cec

Please sign in to comment.