vuepress-plugin-md-power 1.0.0-rc.164 → 1.0.0-rc.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ async function createPlayer() {
39
39
 
40
40
  loaded.value = false
41
41
  const { default: ArtPlayer } = await import(
42
- /* webpackChunkName: "artplayer" */ 'artplayer'
42
+ /* webpackChunkName: "artplayer" */ 'artplayer',
43
43
  )
44
44
  loaded.value = true
45
45
  const { src, type: _t, width: _w, height: _h, ratio: _r, ...opt } = props
@@ -16,7 +16,7 @@ const activeFileTreeNode = inject<Ref<string>>('active-file-tree-node', ref(''))
16
16
 
17
17
  const onNodeClick = inject<
18
18
  (filename: string, type: 'file' | 'folder') => void
19
- >('on-file-tree-node-click', () => {})
19
+ >('on-file-tree-node-click', () => {})
20
20
 
21
21
  const active = ref(props.expanded)
22
22
 
@@ -9,19 +9,19 @@ interface AudioPlayerOptions {
9
9
  type?: MaybeRef<string>;
10
10
  autoplay?: boolean;
11
11
  mutex?: boolean;
12
- onload?: HTMLAudioElement["onload"];
13
- onerror?: HTMLAudioElement["onerror"];
14
- onpause?: HTMLAudioElement["onpause"];
15
- onplay?: HTMLAudioElement["onplay"];
16
- onplaying?: HTMLAudioElement["onplaying"];
17
- onseeked?: HTMLAudioElement["onseeked"];
12
+ onload?: HTMLAudioElement['onload'];
13
+ onerror?: HTMLAudioElement['onerror'];
14
+ onpause?: HTMLAudioElement['onpause'];
15
+ onplay?: HTMLAudioElement['onplay'];
16
+ onplaying?: HTMLAudioElement['onplaying'];
17
+ onseeked?: HTMLAudioElement['onseeked'];
18
18
  onvolume?: (volume: number) => void;
19
- onend?: HTMLAudioElement["onended"];
19
+ onend?: HTMLAudioElement['onended'];
20
20
  onprogress?: (current: number, total: number) => void;
21
- oncanplay?: HTMLAudioElement["oncanplay"];
22
- oncanplaythrough?: HTMLAudioElement["oncanplaythrough"];
21
+ oncanplay?: HTMLAudioElement['oncanplay'];
22
+ oncanplaythrough?: HTMLAudioElement['oncanplaythrough'];
23
23
  ontimeupdate?: (currentTime: number) => void;
24
- onwaiting?: HTMLAudioElement["onwaiting"];
24
+ onwaiting?: HTMLAudioElement['onwaiting'];
25
25
  }
26
26
  interface UseAudioPlayerResult {
27
27
  player: HTMLAudioElement | null;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from "vue";
2
2
 
3
3
  //#region src/client/composables/codeRepl.d.ts
4
- type Lang = "kotlin" | "go" | "rust" | "python";
4
+ type Lang = 'kotlin' | 'go' | 'rust' | 'python';
5
5
  declare function resolveCode(el: HTMLElement): string;
6
6
  declare function resolveCodeInfo(el: HTMLDivElement): {
7
7
  lang: Lang;
@@ -104,15 +104,13 @@ function useNormalDemo(draw, title, config) {
104
104
  }
105
105
  function createHTMLTemplate(title, id, config) {
106
106
  const { cssLib = [], jsLib = [], html, css, script } = config || {};
107
- const stylesheet = cssLib.map((url) => `<link rel="stylesheet" href="${url}">`).join("");
108
- const scripts = jsLib.map((url) => `<script src="${url}"><\/script>`).join("");
109
107
  return `<!DOCTYPE html>
110
108
  <html>
111
109
  <head>
112
110
  <meta charset="utf-8">
113
111
  <meta name="viewport" content="width=device-width,initial-scale=1">
114
112
  <title>${title}</title>
115
- ${stylesheet}${scripts}
113
+ ${cssLib.map((url) => `<link rel="stylesheet" href="${url}">`).join("")}${jsLib.map((url) => `<script src="${url}"><\/script>`).join("")}
116
114
  <style>${css}</style>
117
115
  </head>
118
116
  <body>