mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
🐛 Rename iFrameBlock to iframeBlock (#10748)
This commit is contained in:
parent
0aaa701df7
commit
fd80159fe9
6 changed files with 8 additions and 8 deletions
|
|
@ -148,7 +148,7 @@ export const query = {
|
||||||
IFrame
|
IFrame
|
||||||
</div>
|
</div>
|
||||||
<span class="fn__space"></span>
|
<span class="fn__space"></span>
|
||||||
<input class="b3-switch" id="iFrameBlock" type="checkbox"${window.siyuan.config.search.iFrameBlock ? " checked" : ""}/>
|
<input class="b3-switch" id="iframeBlock" type="checkbox"${window.siyuan.config.search.iframeBlock ? " checked" : ""}/>
|
||||||
</label>
|
</label>
|
||||||
<label class="fn__flex">
|
<label class="fn__flex">
|
||||||
<svg class="svg"><use xlink:href="#iconBoth"></use></svg>
|
<svg class="svg"><use xlink:href="#iconBoth"></use></svg>
|
||||||
|
|
@ -317,7 +317,7 @@ export const query = {
|
||||||
databaseBlock: (query.element.querySelector("#databaseBlock") as HTMLInputElement).checked,
|
databaseBlock: (query.element.querySelector("#databaseBlock") as HTMLInputElement).checked,
|
||||||
audioBlock: (query.element.querySelector("#audioBlock") as HTMLInputElement).checked,
|
audioBlock: (query.element.querySelector("#audioBlock") as HTMLInputElement).checked,
|
||||||
videoBlock: (query.element.querySelector("#videoBlock") as HTMLInputElement).checked,
|
videoBlock: (query.element.querySelector("#videoBlock") as HTMLInputElement).checked,
|
||||||
iFrameBlock: (query.element.querySelector("#iFrameBlock") as HTMLInputElement).checked,
|
iframeBlock: (query.element.querySelector("#iframeBlock") as HTMLInputElement).checked,
|
||||||
widgetBlock: (query.element.querySelector("#widgetBlock") as HTMLInputElement).checked,
|
widgetBlock: (query.element.querySelector("#widgetBlock") as HTMLInputElement).checked,
|
||||||
mathBlock: (query.element.querySelector("#mathBlock") as HTMLInputElement).checked,
|
mathBlock: (query.element.querySelector("#mathBlock") as HTMLInputElement).checked,
|
||||||
table: (query.element.querySelector("#table") as HTMLInputElement).checked,
|
table: (query.element.querySelector("#table") as HTMLInputElement).checked,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ export const getDefaultType = () => {
|
||||||
return {
|
return {
|
||||||
audioBlock: window.siyuan.config.search.audioBlock,
|
audioBlock: window.siyuan.config.search.audioBlock,
|
||||||
videoBlock: window.siyuan.config.search.videoBlock,
|
videoBlock: window.siyuan.config.search.videoBlock,
|
||||||
iFrameBlock: window.siyuan.config.search.iFrameBlock,
|
iframeBlock: window.siyuan.config.search.iframeBlock,
|
||||||
widgetBlock: window.siyuan.config.search.widgetBlock,
|
widgetBlock: window.siyuan.config.search.widgetBlock,
|
||||||
document: window.siyuan.config.search.document,
|
document: window.siyuan.config.search.document,
|
||||||
heading: window.siyuan.config.search.heading,
|
heading: window.siyuan.config.search.heading,
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ export const filterMenu = (config: Config.IUILayoutTabSearchConfig, cb: () => vo
|
||||||
IFrame
|
IFrame
|
||||||
</div>
|
</div>
|
||||||
<span class="fn__space"></span>
|
<span class="fn__space"></span>
|
||||||
<input class="b3-switch fn__flex-center" data-type="iFrameBlock" type="checkbox"${config.types.iFrameBlock ? " checked" : ""}>
|
<input class="b3-switch fn__flex-center" data-type="iframeBlock" type="checkbox"${config.types.iframeBlock ? " checked" : ""}>
|
||||||
</label>
|
</label>
|
||||||
<label class="fn__flex b3-label">
|
<label class="fn__flex b3-label">
|
||||||
<svg class="ft__on-surface svg fn__flex-center"><use xlink:href="#iconBoth"></use></svg>
|
<svg class="ft__on-surface svg fn__flex-center"><use xlink:href="#iconBoth"></use></svg>
|
||||||
|
|
|
||||||
4
app/src/types/config.d.ts
vendored
4
app/src/types/config.d.ts
vendored
|
|
@ -1081,7 +1081,7 @@ declare namespace Config {
|
||||||
/**
|
/**
|
||||||
* Whether to search in iframe blocks
|
* Whether to search in iframe blocks
|
||||||
*/
|
*/
|
||||||
iFrameBlock: boolean;
|
iframeBlock: boolean;
|
||||||
/**
|
/**
|
||||||
* Whether to search resource file paths
|
* Whether to search resource file paths
|
||||||
*/
|
*/
|
||||||
|
|
@ -2111,7 +2111,7 @@ declare namespace Config {
|
||||||
* Search results contain iframe blocks
|
* Search results contain iframe blocks
|
||||||
* @default false
|
* @default false
|
||||||
*/
|
*/
|
||||||
iFrameBlock: boolean;
|
iframeBlock: boolean;
|
||||||
/**
|
/**
|
||||||
* Search results contain list blocks
|
* Search results contain list blocks
|
||||||
* @default false
|
* @default false
|
||||||
|
|
|
||||||
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
|
@ -273,7 +273,7 @@ interface ISearchOption {
|
||||||
interface ISearchType {
|
interface ISearchType {
|
||||||
audioBlock: boolean
|
audioBlock: boolean
|
||||||
videoBlock: boolean
|
videoBlock: boolean
|
||||||
iFrameBlock: boolean
|
iframeBlock: boolean
|
||||||
widgetBlock: boolean
|
widgetBlock: boolean
|
||||||
mathBlock: boolean
|
mathBlock: boolean
|
||||||
table: boolean
|
table: boolean
|
||||||
|
|
|
||||||
|
|
@ -973,7 +973,7 @@ func buildTypeFilter(types map[string]bool) string {
|
||||||
s.DatabaseBlock = types["databaseBlock"]
|
s.DatabaseBlock = types["databaseBlock"]
|
||||||
s.AudioBlock = types["audioBlock"]
|
s.AudioBlock = types["audioBlock"]
|
||||||
s.VideoBlock = types["videoBlock"]
|
s.VideoBlock = types["videoBlock"]
|
||||||
s.IFrameBlock = types["iFrameBlock"]
|
s.IFrameBlock = types["iframeBlock"]
|
||||||
s.WidgetBlock = types["widgetBlock"]
|
s.WidgetBlock = types["widgetBlock"]
|
||||||
} else {
|
} else {
|
||||||
s.Document = Conf.Search.Document
|
s.Document = Conf.Search.Document
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue