Commit b73783fd authored by greg@1m's avatar greg@1m
Browse files

fix iframe creatediv

parent e5cf5320
......@@ -334,7 +334,10 @@ export const iframeMainCode = (p: {
const id = `ctag-content-wrapper-${p.generateUUID()} `
const updateContent = (nContent) => {
// @ts-ignore
document.getElementById(id).innerHTML = nContent;
const el = document.getElementById(id)
if (el) el.innerHTML = nContent;
// if el not existing, wait till here
else { setTimeout(() => { updateContent(nContent) }, 100) }
}
return {
div: `<div id="${id}"></div>`,
......
......@@ -231,6 +231,53 @@ noteLink should be relative from tiro folder
## Api.call : search
#### <span class="render-code-wrapper">search.files.search</span>
- Type: <span class="render-code-wrapper">Function</span>
- Parameters:
1. term: <span class="render-code-wrapper">string</span>
- Result: <span class="render-code-wrapper">(nFiles: <span class="render-code-wrapper"><span class="render-code-wrapper"><a href="#client-api?id=ifile">iFile</a></span>[]</span>) => <span class="render-code-wrapper">void</span></span>
- Example:
<div class="render-code-wrapper">api.call(<br/>&nbsp;&nbsp;&nbsp;"search.files.search",<br/>&nbsp;&nbsp;&nbsp; [<span class="render-code-wrapper">string</span>], <br/>&nbsp;&nbsp;&nbsp;<span class="render-code-wrapper">(nFiles: <span class="render-code-wrapper"><span class="render-code-wrapper"><a href="#client-api?id=ifile">iFile</a></span>[]</span>) => <span class="render-code-wrapper">void</span></span><br/>)</div>
#### <span class="render-code-wrapper">search.ui.term.get</span>
- Type: <span class="render-code-wrapper">string</span>
- Example:
<div class="render-code-wrapper">api.call("search.ui.term.get", [], (res:string) => {})</div>
#### <span class="render-code-wrapper">search.ui.term.set</span>
- Type: <span class="render-code-wrapper">Function</span>
- Parameters:
1. nTerm: <span class="render-code-wrapper">string</span>
- Example:
<div class="render-code-wrapper">api.call(<br/>&nbsp;&nbsp;&nbsp;"search.ui.term.set",<br/>&nbsp;&nbsp;&nbsp; [<span class="render-code-wrapper">string</span> ]<br/>)</div>
#### <span class="render-code-wrapper">search.ui.search</span>
- Type: <span class="render-code-wrapper">Function</span>
- Parameters:
1. term: <span class="render-code-wrapper">string</span>
- Example:
<div class="render-code-wrapper">api.call(<br/>&nbsp;&nbsp;&nbsp;"search.ui.search",<br/>&nbsp;&nbsp;&nbsp; [<span class="render-code-wrapper">string</span> ]<br/>)</div>
#### <span class="render-code-wrapper">search.word</span>
- Type: <span class="render-code-wrapper">Function</span>
- Parameters:
1. word: <span class="render-code-wrapper">string</span>
1. folder: <span class="render-code-wrapper">string</span>
- Result: <span class="render-code-wrapper">(res: <span class="render-code-wrapper"><a href="#client-api?id=isearchwordres">iSearchWordRes</a></span>) => <span class="render-code-wrapper">void</span></span>
- Example:
<div class="render-code-wrapper">api.call(<br/>&nbsp;&nbsp;&nbsp;"search.word",<br/>&nbsp;&nbsp;&nbsp; [<span class="render-code-wrapper">string</span>, <span class="render-code-wrapper">string</span>], <br/>&nbsp;&nbsp;&nbsp;<span class="render-code-wrapper">(res: <span class="render-code-wrapper"><a href="#client-api?id=isearchwordres">iSearchWordRes</a></span>) => <span class="render-code-wrapper">void</span></span><br/>)</div>
## Api.call : status
......@@ -496,6 +543,12 @@ noteLink should be relative from tiro folder
<div class="render-code-wrapper"><span class="render-code-wrapper">{<br/>&nbsp;&nbsp;&nbsp;content: <span class="render-code-wrapper">string</span>, <br/>&nbsp;&nbsp;&nbsp;end: <span class="render-code-wrapper">number</span>, <br/>&nbsp;&nbsp;&nbsp;start: <span class="render-code-wrapper">number</span>, <br/>&nbsp;&nbsp;&nbsp;type: <span class="render-code-wrapper">"text" | "tag"</span>, <br/>&nbsp;&nbsp;&nbsp;tagName?: <span class="render-code-wrapper">string</span><br/>}</span></div>
#### <span class="render-code-wrapper">iSearchWordRes</span>
- Type: <span class="render-code-wrapper">object</span>
- Details:
<div class="render-code-wrapper"><span class="render-code-wrapper">{<br/>}</span></div>
#### <span class="render-code-wrapper">iViewType</span>
- Type: <span class="render-code-wrapper">union</span>
- Details:
......
This diff is collapsed.
......@@ -31,7 +31,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 55,
"line": 57,
"character": 1
}
],
......@@ -51,7 +51,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 54,
"line": 56,
"character": 1
}
],
......@@ -69,7 +69,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 58,
"line": 60,
"character": 1
}
],
......@@ -89,7 +89,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 57,
"line": 59,
"character": 1
}
],
......@@ -109,7 +109,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 56,
"line": 58,
"character": 1
}
],
......@@ -127,7 +127,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 51,
"line": 53,
"character": 1
}
],
......@@ -145,7 +145,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 50,
"line": 52,
"character": 1
}
],
......@@ -164,7 +164,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 53,
"line": 55,
"character": 1
}
],
......@@ -182,7 +182,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 52,
"line": 54,
"character": 1
}
],
......@@ -212,7 +212,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 49,
"line": 51,
"character": 17
}
]
......@@ -525,7 +525,7 @@
"sources": [
{
"fileName": "shared/types.shared.ts",
"line": 2,
"line": 4,
"character": 12
}
],
......@@ -1062,7 +1062,7 @@
"sources": [
{
"fileName": "client/src/managers/iframe.manager.ts",
"line": 383,
"line": 386,
"character": 12
}
],
......@@ -1530,7 +1530,7 @@
"sources": [
{
"fileName": "client/src/managers/iframe.manager.ts",
"line": 347,
"line": 350,
"character": 2
}
],
......@@ -1550,7 +1550,7 @@
"sources": [
{
"fileName": "client/src/managers/iframe.manager.ts",
"line": 348,
"line": 351,
"character": 2
}
],
......@@ -1602,7 +1602,7 @@
"sources": [
{
"fileName": "client/src/managers/iframe.manager.ts",
"line": 340,
"line": 343,
"character": 3
}
],
......@@ -2005,7 +2005,7 @@
"sources": [
{
"fileName": "client/src/managers/iframe.manager.ts",
"line": 353,
"line": 356,
"character": 3
}
],
......@@ -2043,7 +2043,7 @@
"sources": [
{
"fileName": "client/src/managers/iframe.manager.ts",
"line": 346,
"line": 349,
"character": 2
}
],
......
......@@ -24,6 +24,7 @@ export const analyzeItem = (item: any, path?: string, options?: { raw?: boolean
let sign = null
if (p.signatures) sign = p.signatures[0]
if (p.type && p.type.declaration) decl = p.type.declaration
if (decl && decl.signatures) decl = p.type.declaration
// PATH PREPROCESSING
if (path) {
......@@ -37,9 +38,9 @@ export const analyzeItem = (item: any, path?: string, options?: { raw?: boolean
if (signs[0] && signs[0].comment) {
res.comment = signs[0].comment.shortText
}
if (p.type && p.type.declaration && p.type.declaration.signatures && ) {
res.comment = signs[0].comment.shortText
}
// if (p.type && p.type.declaration && p.type.declaration.signatures) {
// res.comment = signs[0].comment.shortText
// }
//
// FUNCS
......
......@@ -18,7 +18,9 @@
"build": "npm run-s gen-json gen-doc",
"___UPDATING_SERVING_WEBSITE_STAGE__": "",
"serve": "npx docsify serve ../../docs",
"serve-docs": "npx docsify serve ../../docs",
"serve": "run-s build serve-docs",
"___DEV__": "",
"dev": "nodemon --exec node --inspect -r ts-node/register doc.ts"
......
......@@ -21,7 +21,7 @@
"__PUBLISH_ELECTRON__": "push to master > github ci > .github/workflows/node.js.yml",
"================== NODE BUILD =================== ": "",
"build": "CI=false npm run build-then-export",
"build-then-export": "run-s create-build-folders build-client build-server clean-prev-build export-the-build copy-build-to-electron-folder",
"build-then-export": "run-s create-build-folders build-client build-server build-docs clean-prev-build export-the-build copy-build-to-electron-folder",
"build-export-to-binaries": "run-s build-export build-binaries",
"build-export-client": "run-s create-build-folders build-client clean-client export-client",
"build-export-server": "run-s create-build-folders build-server clean-server export-server",
......@@ -29,6 +29,7 @@
"create-build-folders": "npx mkdirp ./build ./build/client ./build/server",
"build-client": "npm run --prefix ./client install-clean-build",
"build-server": "npm run --prefix ./server install-clean-build",
"build-docs": "npm run --prefix ./docs/generator build",
"===____2_CLEAN_PREV_BUILD__": "",
"clean-prev-build": "run-s clean-server clean-client clean-else",
"clean-server": "rm -r ./build/server &",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment