Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vuepress-plugin-kanban-live2d

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuepress-plugin-kanban-live2d - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

2

lib/main.js

@@ -1,3 +0,3 @@

import './utils/index' //加入加载moc脚本
export default class Viewer {

@@ -4,0 +4,0 @@ constructor (config) {

@@ -1,23 +0,20 @@

//引入加载moc所必须的问价
//引入加载moc所必须的脚本
const reuqestUrl = [
// "https://lib.sinaapp.com/js/jquery/2.0.2/jquery-2.0.2.min.js",
// "https://cdn.jsdelivr.net/gh/UsernameFull/l2d@0.2/js/frame/live2dcubismcore.min.js",
// "https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js",
// "https://cdn.jsdelivr.net/gh/litstronger/live2d-moc3@master/js/live2dcubismframework.js",
// "https://cdn.jsdelivr.net/gh/litstronger/live2d-moc3@master/js/live2dcubismpixi.js",
// "https://cdn.jsdelivr.net/gh/litstronger/live2d-moc3@master/js/l2d.js"
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/jquery.min.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/live2dcubismcore.min.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/pixi.min.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/live2dcubismframework.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/live2dcubismpixi.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/l2d.js",
]
reuqestUrl.forEach(e=>{
let scriptEl =document.createElement('script');
scriptEl.setAttribute('type', 'text/javascript');
scriptEl.setAttribute('src', e); //通过script引入js文件
document.body.appendChild(scriptEl); //挂载到dom上
})
export default function() {
const reuqestUrl = [
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/jquery.min.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/live2dcubismcore.min.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/pixi.min.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/live2dcubismframework.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/live2dcubismpixi.js",
"https://cdn.jsdelivr.net/gh/FrancisSaber/live2d@latest/l2d.js",
]
reuqestUrl.forEach(e=>{
let scriptEl =document.createElement('script');
scriptEl.setAttribute('type', 'text/javascript');
scriptEl.setAttribute('src', e); //通过script引入js文件
document.body.appendChild(scriptEl); //挂载到dom上
})
}
{
"name": "vuepress-plugin-kanban-live2d",
"version": "1.4.1",
"version": "1.4.2",
"description": "vuepress 看板娘插件,支持moc3.0",

@@ -28,2 +28,2 @@ "keywords": [

}
}
}

@@ -9,2 +9,3 @@ ## vuepress-plugin-kanban-live2d看版娘插件

1. 通过`jsdelivr`提供的cdn服务加快了引擎的加载速
2. 修改引擎引入时间,解决了webpack打包无法加载外部脚本的问题

@@ -39,1 +40,2 @@ ### 用法

git push -u origin main 推送超时

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc