This commit is contained in:
parent
3a34926b6f
commit
6db0cdce27
7 changed files with 18 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"searchAssetContent": "Search asset file content",
|
||||
"searchOverwrite": "The query name is duplicated, do you want to overwrite it?",
|
||||
"onepay": "PRO",
|
||||
"format": "Number format",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"searchAssetContent": "Buscar contenido del archivo de activos",
|
||||
"searchOverwrite": "El nombre de la consulta está duplicado, ¿quieres sobrescribirlo?",
|
||||
"onepay": "PRO",
|
||||
"format": "Formato de número",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"searchAssetContent": "Rechercher le contenu du fichier d'actif",
|
||||
"searchOverwrite": "Le nom de la requête est dupliqué, voulez-vous l'écraser ?",
|
||||
"onepay": "PRO",
|
||||
"format": "Format des nombres",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"searchAssetContent": "搜索資源文件內容",
|
||||
"searchOverwrite": "查詢名稱重複,是否進行覆蓋?",
|
||||
"onepay": "功能特性",
|
||||
"format": "格式化",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"searchAssetContent": "搜索资源文件内容",
|
||||
"searchOverwrite": "查询名称重复,是否进行覆盖?",
|
||||
"onepay": "功能特性",
|
||||
"format": "格式化",
|
||||
|
|
|
@ -148,6 +148,7 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
line-height: 22px;
|
||||
|
||||
kbd {
|
||||
&:first-child {
|
||||
|
@ -160,7 +161,8 @@
|
|||
border: solid 1px var(--b3-theme-surface-lighter);
|
||||
border-radius: var(--b3-border-radius);
|
||||
box-shadow: inset 0 -1px 0 var(--b3-theme-surface-lighter);
|
||||
margin: 2px 4px 0 16px;
|
||||
margin: 2px 4px 2px 16px;
|
||||
line-height: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ import {matchHotKey} from "../protyle/util/hotKey";
|
|||
import {filterMenu, getKeyByLiElement, initCriteriaMenu, moreMenu, queryMenu, saveCriterion} from "./menu";
|
||||
import {App} from "../index";
|
||||
import {upDownHint} from "../util/upDownHint";
|
||||
import {openSearchAsset} from "./assets";
|
||||
|
||||
const toggleReplaceHistory = (replaceHistoryElement: Element, historyElement: Element, replaceInputElement: HTMLInputElement) => {
|
||||
if (replaceHistoryElement.classList.contains("fn__none")) {
|
||||
|
@ -161,6 +162,10 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo
|
|||
<span id="searchOpen" aria-label="${window.siyuan.languages.openInNewTab}" class="${closeCB ? "" : "fn__none "}block__icon b3-tooltips b3-tooltips__w">
|
||||
<svg><use xlink:href="#iconLayoutRight"></use></svg>
|
||||
</span>
|
||||
<span class="fn__space"></span>
|
||||
<span id="searchAsset" aria-label="${window.siyuan.languages.searchAssetContent}" class="block__icon b3-tooltips b3-tooltips__w">
|
||||
<svg><use xlink:href="#iconExact"></use></svg>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="b3-form__icon search__header${config.hasReplace ? "" : " fn__none"}">
|
||||
|
@ -489,6 +494,11 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo
|
|||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
break;
|
||||
} else if (target.id === "searchAsset") {
|
||||
openSearchAsset();
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
break;
|
||||
} else if (target.id === "searchOpen") {
|
||||
config.k = searchInputElement.value;
|
||||
config.r = replaceInputElement.value;
|
||||
|
|
Loading…
Add table
Reference in a new issue