-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Zuoqiu-Yingyi/dev
chore: release v0.2.0
- Loading branch information
Showing
21 changed files
with
1,024 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<symbol | ||
id="icon-jupyter-client-inspect" | ||
viewBox="0 0 24 24" | ||
> | ||
<path | ||
d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z" | ||
/> | ||
</symbol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!-- | ||
Copyright (C) 2023 Zuoqiu Yingyi | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
published by the Free Software Foundation, either version 3 of the | ||
License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
|
||
<script | ||
context="module" | ||
lang="ts" | ||
> | ||
import type { ISiyuanGlobal } from "@workspace/types/siyuan"; | ||
declare var globalThis: ISiyuanGlobal; | ||
</script> | ||
|
||
<script lang="ts"> | ||
import Bar from "@workspace/components/siyuan/dock/Bar.svelte"; | ||
import { TooltipsDirection } from "@workspace/components/siyuan/misc/tooltips"; | ||
import type { IBar } from "@workspace/components/siyuan/dock/index"; | ||
import type JupyterClientPlugin from "@/index"; | ||
import type { XtermOutputElement } from "./XtermOutputElement"; | ||
/* 标题栏配置 */ | ||
export let plugin: InstanceType<typeof JupyterClientPlugin>; // 插件对象 | ||
export let stream: string = ""; // 使用 base64 编码的数据流 | ||
let xterm: XtermOutputElement; | ||
const bar: IBar = { | ||
logo: "#icon-jupyter-client-inspect", | ||
title: plugin.i18n.inspectDock.title, | ||
icons: [ | ||
{ | ||
// 最小化 | ||
icon: "#iconMin", | ||
type: "min", | ||
ariaLabel: `${globalThis.siyuan.languages.min} ${plugin.siyuan.adaptHotkey("⌘W")}`, | ||
tooltipsDirection: TooltipsDirection.sw, | ||
}, | ||
], | ||
}; | ||
</script> | ||
|
||
<Bar {...bar} /> | ||
<jupyter-xterm-output | ||
bind:this={xterm} | ||
data-stream={stream} | ||
class="xtrem fn__flex-1" | ||
/> | ||
|
||
<style lang="less"> | ||
.xtrem { | ||
padding: 0.5em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.