Skip to content

Commit

Permalink
modify detecting image strategy to support modal-content; upgrade to …
Browse files Browse the repository at this point in the history
…v1.4.2.
  • Loading branch information
sissilab committed Oct 7, 2024
1 parent b0fb33d commit a3eff19
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 24 deletions.
6 changes: 3 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "obsidian-image-toolkit",
"name": "Image Toolkit",
"version": "1.4.1",
"minAppVersion": "0.2.0",
"version": "1.4.2",
"minAppVersion": "1.0.0",
"description": "This plugin provides some image viewing toolkit.",
"author": "sissilab",
"author": "Xiangru",
"authorUrl": "https://github.com/sissilab",
"isDesktopOnly": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-image-toolkit",
"version": "1.4.1",
"version": "1.4.2",
"description": "An Obsidian plugin for providing some image viewing toolkit.",
"main": "src/main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/conf/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ export const VIEW_IMG_SELECTOR = {
CPB: `.community-modal-details img`,
CPB_NO_LINK: `.community-modal-details img:not(a img)`,

OTHER: `#sr-flashcard-view img`,
OTHER_NO_LINK: `#sr-flashcard-view img:not(a img)`,
OTHER: `.modal-content img`,
OTHER_NO_LINK: `.modal-content img:not(a img)`,
}

export const IMG_BORDER_WIDTH = {
Expand Down
2 changes: 1 addition & 1 deletion src/lang/locale/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
VIEW_IMAGE_WITH_A_LINK_NAME: 'Click and view an image with a link',
VIEW_IMAGE_WITH_A_LINK_DESC: 'Turn on this option if you want to click and view an image with a link. (NOTE: The browser will be opened for you to visit the link and the image will be popped up for being viewed at the same time when you click the image.)',
VIEW_IMAGE_OTHER_NAME: 'Click and view in the other areas except the above',
VIEW_IMAGE_OTHER_DESC: 'Except for the above mentioned, it also supports other areas, e.g. flashcards.',
VIEW_IMAGE_OTHER_DESC: 'Except for the above mentioned, it also supports other areas, like some modal user interface components.',

// >>> PIN_MODE_SETTINGS
PIN_MODE_SETTINGS: "Pin Mode Settings:",
Expand Down
2 changes: 1 addition & 1 deletion src/lang/locale/zh-cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
VIEW_IMAGE_WITH_A_LINK_NAME: '支持预览带链接的图片',
VIEW_IMAGE_WITH_A_LINK_DESC: '开启后,支持点击带链接的图片(注意:点击该图片,会同时打开浏览器访问指定地址和弹出预览图片)',
VIEW_IMAGE_OTHER_NAME: '支持除上述其他地方来预览图片',
VIEW_IMAGE_OTHER_DESC: '除上述支持范围外,还支持一些其他区域,如flashcards。',
VIEW_IMAGE_OTHER_DESC: '除上述支持范围外,还支持一些其他区域,如Modal用户界面组件。',

// >>> PIN_MODE_SETTINGS
PIN_MODE_SETTINGS: "贴图模式设置:",
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ContainerView } from "./ui/container/container.view";
import { SettingsIto } from "./model/settings.to";
import { ContainerFactory } from "./factory/containerFactory";
import { randomUUID } from "crypto";
import { log } from 'console';

export default class ImageToolkitPlugin extends Plugin {

Expand Down
17 changes: 2 additions & 15 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
{
"1.4.1": "1.4.1",
"1.4.0": "1.4.0",
"1.3.1": "1.3.1",
"1.2.1": "1.2.1",
"1.2.0": "1.2.0",
"1.0.1": "1.0.1",
"0.5.1": "0.5.1",
"0.5.0": "0.5.0",
"0.4.2": "0.4.2",
"0.4.0": "0.4.0",
"0.3.5": "0.3.5",
"0.3.0-beta": "0.3.0-beta",
"0.2.1": "0.2.1",
"0.2.0": "0.2.0",
"0.1.0-beta": "0.1.0-beta"
"1.0.0": "0.15.0",
"1.4.2": "1.5.0"
}

0 comments on commit a3eff19

Please sign in to comment.