Skip to content

Commit d188b74

Browse files
committedMay 31, 2023
feat: 优化图标
·
v1.8.1v1.6.0
1 parent 130e1e2 commit d188b74

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed
 

‎README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# siyuan-plugin-importer
44

5+
<img src="./icon.png" width="160" height="160" alt="icon">
6+
57
Import md, epub, docx, html, etc. into Siyuan notes. Currently supported formats: .md, .epub, .docx, .html, .opml.
68

79
## Core Features

‎README_zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# 导入工具
44

5-
![](https://raw.githubusercontent.com/terwer/siyuan-plugin-importer/main/icon.png)
5+
<img src="./icon.png" width="160" height="160" alt="icon">
66

77
将 md, epub, docx, html 等格式的文件导入到思源笔记。目前支持的格式:.md, .epub, .docx, .html, .opml。
88

‎src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@
2626
import { App, IObject, Plugin } from "siyuan"
2727
import { createLogger } from "./utils/simple-logger"
2828
import KernelApi from "./api/kernel-api"
29-
import {isDev, mediaDir} from "./Constants"
29+
import { isDev, mediaDir } from "./Constants"
3030
import "./index.styl"
31-
import { removeImporterConfig } from "./store/config"
3231
import { initTopbar } from "./topbar"
3332

3433
/**

‎src/lib/ImportForm.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@
325325
{#each notebooks as notebook}
326326
<option value={notebook.id}>{notebook.name}</option>
327327
{:else}
328-
<!-- this block renders when photos.length === 0 -->
329328
<option value="0">{pluginInstance.i18n.loading}...</option>
330329
{/each}
331330
</select>

‎src/topbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import ImporterPlugin from "./index"
2727
import { Dialog, isMobile } from "siyuan"
2828
import ImportForm from "./lib/ImportForm.svelte"
29-
import {iconImporter} from "./utils/svg";
29+
import { iconImporter } from "./utils/svg"
3030

3131
/**
3232
* 顶栏按钮

‎src/utils/svg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
*/
2525

2626
export const iconImporter = {
27-
iconImporter: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="32" height="32"><path d="M4 15H6V20H18V4H6V9H4V3C4 2.44772 4.44772 2 5 2H19C19.5523 2 20 2.44772 20 3V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V15ZM10 11V8L15 12L10 16V13H2V11H10Z"></path></svg>`,
27+
iconImporter: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M352 96l64 0c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c53 0 96-43 96-96l0-256c0-53-43-96-96-96l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-9.4 182.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L242.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"/></svg>`,
2828
}

0 commit comments

Comments
 (0)