[mod] static folders
This commit is contained in:
parent
bf3dd4d693
commit
f1fecbdee8
16 changed files with 12 additions and 14 deletions
|
@ -9,10 +9,11 @@ services:
|
||||||
- "3001:1984"
|
- "3001:1984"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/srv/basex/data
|
- ./data:/srv/basex/data
|
||||||
- ./webapp/static/ace:/srv/basex/webapp/static/ace
|
|
||||||
- ./webapp/static/codemirror:/srv/basex/webapp/static/codemirror
|
|
||||||
- ./webapp/lsp:/srv/basex/webapp/lsp
|
- ./webapp/lsp:/srv/basex/webapp/lsp
|
||||||
|
|
||||||
|
- ./webapp/static/clients:/srv/basex/webapp/static/clients
|
||||||
|
|
||||||
|
|
||||||
# - ./jars:/srv/basex/lib/custom
|
# - ./jars:/srv/basex/lib/custom
|
||||||
# - ./repo:/srv/basex/repo
|
# - ./repo:/srv/basex/repo
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -26,16 +26,12 @@ as map(*)?
|
||||||
"id": $json?id,
|
"id": $json?id,
|
||||||
"result":{
|
"result":{
|
||||||
"contents": [
|
"contents": [
|
||||||
{
|
`markdown: this is **bold**
|
||||||
"language": "markdown",
|
|
||||||
"value": `markdown: this is **bold**
|
|
||||||
a [link](http://google.com)
|
a [link](http://google.com)
|
||||||
The last line.`
|
The last line.`
|
||||||
},
|
,
|
||||||
{
|
"plaintext: A hover for " || json:serialize($json?params?position)
|
||||||
"language": "plaintext",
|
]
|
||||||
"value": "plaintext: A hover for " || json:serialize($json?params?position)
|
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Codemirror6 example using BaseX LSP</title>
|
<title>Codemirror6 example using BaseX LSP</title>
|
||||||
<link rel="icon" type="image/png" href="favicon.png" />
|
<link rel="icon" type="image/png" href="../favicon.png" />
|
||||||
<link href="bootstrap@5.3.7.css" rel="stylesheet"
|
<link href="../bootstrap@5.3.7.css" rel="stylesheet"
|
||||||
integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
|
integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr" crossorigin="anonymous">
|
||||||
<link rel="stylesheet" href="styles.css" />
|
<link rel="stylesheet" href="styles.css" />
|
||||||
|
|
|
@ -35486,7 +35486,8 @@ ${text}</tr>
|
||||||
return plugin.docToHTML(value);
|
return plugin.docToHTML(value);
|
||||||
}
|
}
|
||||||
function renderCode(plugin, code) {
|
function renderCode(plugin, code) {
|
||||||
let { language: language$1, value } = typeof code == "string" ? { language: null, value: code } : code;
|
if (typeof code == "string") return plugin.docToHTML(code, "markdown")
|
||||||
|
let {language, value} = code;
|
||||||
let lang = plugin.client.config.highlightLanguage && plugin.client.config.highlightLanguage(language$1 || "");
|
let lang = plugin.client.config.highlightLanguage && plugin.client.config.highlightLanguage(language$1 || "");
|
||||||
if (!lang) {
|
if (!lang) {
|
||||||
let viewLang = plugin.view.state.facet(language);
|
let viewLang = plugin.view.state.facet(language);
|
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Loading…
Add table
Reference in a new issue