npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vuepress-plugin-music-bar

v3.7.6

Published

A music-bar plugin for vuepress

Downloads

10

Readme

vuepress-plugin-music-bar

README | CHANGELOG

一个 vuepress 的音乐组件

A music-bar plugin for vuepress

Live Demos

  • https://b-tree.studio

Description

好康的音乐组件

Beautiful music components

如果您觉得不太好康的话欢迎 fork, 大佬们点个星星救我狗命鸭

welcome everyone's star and fork

Features

  • 好康,轻量 Beautiful and lightweight
  • 除本地,网络音频之外还支持从平台歌单获取链接(目前仅支持网易云音乐) In addition to local and network audio, it also supports obtaining links from the platform playlist (currently only NetEase cloud music is supported)
  • 自动加载并缓存 Load and cache automatically
  • 加载超时自动跳过 Load timeout automatically skips
  • 移动端适配 Mobile terminal adaptation
  • 多种格式支持 Multiple format support
  • 自动检测开发环境,输出 log,方便调试 Automatically detect development environment and output log for easy debugging

默认收起到左边 Default stow to left

鼠标移入展开 Move in mouse to expand

阴影进度条(可拖动) Shadow progress bar(can drag)

调试模式(仅在开发环境下输出 log,可关闭) Debug mode (only output log in development environment, can be closed)

Quick Start

  • Install with npm:

    npm install vuepress-plugin-music-bar

  • Install with Yarn:

    yarn add vuepress-plugin-music-bar

Add to .vuepress/config.js

module.exports = {
  plugins: [
    //...
    [
      "music-bar",
      {
        playList: [],
        platform: [
          {
            name: "music.163.com",
            playListIDs: ["4909779787"]
          }
        ]
      }
    ]
    //...
  ]
};

All settings and explanations

//.vuepress/config.js
module.exports = {
  plugins: [
    [
      "music-bar",
      {
        //手动添加歌曲,支持 URLs 或 base64 data URIs ,默认为空
        //Add songs manually, support URLs or base64 data URIs, empty by default
        playList: ["example.mp3"],

        platform: [
          //目前仅支持网易云 TODO:多平台支持,默认为空数组
          //Currently only supports Netease Cloud Music,
          //the default is an empty array TODO: Multi-platform support,
          {
            name: "music.163.com",
            songIDs:[]//支持多个歌曲 ID  //Support multiple song IDs
            playListIDs: ["4909779787"] //支持多个歌单 ID  //Support multiple playlist IDs
          }
        ],

        timeOut: 2000, //加载超时,单位毫秒,默认2000  //Load timeout in milliseconds, default 2000

        firstClickPlay: true //首次点击自动播放,对移动端友好  //The first click autoplay, mobile friendly

        //debugMode: <Boolean> Development mode, if in the dev environment,
        //                     output log to console, enabled by default

        //background: <String> //主容器样式  //Main container style
        //                       default: "linear-gradient(-20deg, #00cdac 0%, #8ddad5 100%)"

        //frameColor: <String> default: $accentColor
      }
    ]
  ]
};

enjoy:)

SVG from https://feathericons.com/

API from https://api.imjad.cn/cloudmusic.md