mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 02:01:20 -08:00
fix: update import paths for Artplayer and plugins in test files
This commit is contained in:
1 parent
5b1cebb334
commit
23da290357
4 files changed
+6
-11
No files matched your search
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
import id from 'artplayer/dist/i18n/id.js'
|
import id from 'artplayer/i18n/id';
|
||||||
|
|
||||||
console.log(id)
|
console.log(id)
|
||||||
+2
-7
@@ -1,8 +1,3 @@
|
|||||||
import Artplayer from '../packages/artplayer/dist/artplayer.js'
|
import Artplayer from 'artplayer'
|
||||||
|
|
||||||
console.log(Artplayer.default.html)
|
console.log(Artplayer.html)
|
||||||
|
|
||||||
const art = new Artplayer.default({
|
|
||||||
container: '.artplayer-app',
|
|
||||||
url: './assets/sample/video.mp4',
|
|
||||||
})
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import Artplayer from '../packages/artplayer'
|
import Artplayer from 'artplayer'
|
||||||
import artplayerPluginDanmuku from '../packages/artplayer-plugin-danmuku'
|
import artplayerPluginDanmuku from 'artplayer-plugin-danmuku'
|
||||||
|
|
||||||
const art = new Artplayer({
|
const art = new Artplayer({
|
||||||
container: '.artplayer-app',
|
container: '.artplayer-app',
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ function getInstance(art7) {
|
|||||||
// ======================== @option ==========================
|
// ======================== @option ==========================
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {import("artplayer/types/option").Option}
|
* @type {import("../packages/artplayer/types/option").Option}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const option = {
|
const option = {
|
||||||
|
|||||||
Reference in new issue
Block a user