hexo-theme-shokax 0.5.0-dev-05649fa → 0.5.0
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.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hexo-theme-shokax",
|
3
|
-
"version": "0.5.0
|
3
|
+
"version": "0.5.0",
|
4
4
|
"description": "a hexo theme based on shoka",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",
|
@@ -23,7 +23,6 @@
|
|
23
23
|
"@common.js/p-limit": "^6.1.0",
|
24
24
|
"@waline/client": "^3.5.6",
|
25
25
|
"algoliasearch": "5.24.0",
|
26
|
-
"dompurify": "^3.2.5",
|
27
26
|
"es-toolkit": "^1.37.2",
|
28
27
|
"esbuild": "^0.25.3",
|
29
28
|
"hana-img-viewer": "^1.2.1",
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import DOMPurify from 'dompurify';
|
2
1
|
import { HanaImgViewer } from 'hana-img-viewer'
|
3
2
|
import { createApp } from 'vue';
|
4
3
|
|
5
4
|
export const postImageViewer = (p: string) => {
|
6
5
|
document.querySelectorAll(`${p} .md img:not(.emoji):not(.vemoji)`).forEach((element) => {
|
7
6
|
const img = element as HTMLImageElement;
|
8
|
-
const imgSrc =
|
7
|
+
const imgSrc = img.src
|
9
8
|
|
10
9
|
const wrapper = document.createElement('div');
|
11
10
|
img.replaceWith(wrapper);
|