Skip to content

Commit

Permalink
feat: 优化图标
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed May 31, 2023
1 parent 130e1e2 commit d188b74
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -2,6 +2,8 @@

# siyuan-plugin-importer

<img src="./icon.png" width="160" height="160" alt="icon">

Import md, epub, docx, html, etc. into Siyuan notes. Currently supported formats: .md, .epub, .docx, .html, .opml.

## Core Features
Expand Down
2 changes: 1 addition & 1 deletion README_zh_CN.md
Expand Up @@ -2,7 +2,7 @@

# 导入工具

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

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

Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Expand Up @@ -26,9 +26,8 @@
import { App, IObject, Plugin } from "siyuan"
import { createLogger } from "./utils/simple-logger"
import KernelApi from "./api/kernel-api"
import {isDev, mediaDir} from "./Constants"
import { isDev, mediaDir } from "./Constants"
import "./index.styl"
import { removeImporterConfig } from "./store/config"
import { initTopbar } from "./topbar"

/**
Expand Down
1 change: 0 additions & 1 deletion src/lib/ImportForm.svelte
Expand Up @@ -325,7 +325,6 @@
{#each notebooks as notebook}
<option value={notebook.id}>{notebook.name}</option>
{:else}
<!-- this block renders when photos.length === 0 -->
<option value="0">{pluginInstance.i18n.loading}...</option>
{/each}
</select>
Expand Down
2 changes: 1 addition & 1 deletion src/topbar.ts
Expand Up @@ -26,7 +26,7 @@
import ImporterPlugin from "./index"
import { Dialog, isMobile } from "siyuan"
import ImportForm from "./lib/ImportForm.svelte"
import {iconImporter} from "./utils/svg";
import { iconImporter } from "./utils/svg"

/**
* 顶栏按钮
Expand Down
2 changes: 1 addition & 1 deletion src/utils/svg.ts
Expand Up @@ -24,5 +24,5 @@
*/

export const iconImporter = {
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>`,
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>`,
}

0 comments on commit d188b74

Please sign in to comment.