mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 16:36:27 +00:00
Enhance/more ns plugin api (#4828)
* improve(plugin): WIP add settings schema * improve(plugin): add identity for settings modal * improve(plugin): WIP add settings input * fix(ui): scrollbar overlay of modal panel content * improve(plugin): WIP add more render types of setting item * improve(plugin): WIP polish settings items * improve(plugin): WIP settings list of plugins * improve(plugin): more settings types & polish releated ui * fix(plugin): sometimes disable plugin not work * improve(plugin): polish ui of plugin settings * fix(dev): warning of lint * improve(plugin): add api of settings changed * chore: build libs core * fix(ui): width of settings panel wrap * improve(plugin): separate layouts data from settings aio file * imporve(plugin): container size of single plugin settings * fix: add missing state * improve(plugin): add Git ns * improve(plugin): git related api * improve(api): type of git result * chore: build libs core * fix(dev): kondo lint * fix(plugin): use cdn sdk when js entry * chore: build libs core * fix(plugin): env condition * improve(plugin): add UI ns * fix(api): arguments of datascript query * enhance(api): manageable message instance of UI tools * enhance(api): WIP add experiments api * enhance(api): WIP add resources state of plugin * improve(plugin): add status of loading script resources * improve(plugin): more opts for script loader * improve(plugin): WIP add fenced code renderer hook * improve(plugin): fenced code renderer hook * fix(plugin): resource root path of plugin fs location * imporve(plugin): support local files for loading scripts * improve(plugin): types of expirements api * fix: typo of class * enhance(api): add namespace related apis * enhance(api): add linked refrences related apis * enhance(plugin): add sample links to related api comments * improve(plugin): add db changed hook & optimize strategy of caller for hooks * improve(plugin): compatible commands registration for old sdk * improve(plugin): collect user sdk version for plugin local * improve(plugin): add internal callable apis for user sdk * chore(plugin): missing files & bump libs version * improve(plugin): compatiable for old sdk about hook messaging optimization * improve(plugin): db hook optimization for old sdk * enhance(ux): auto focus searchbar when open plugins list * improve(plugin): api of a hook from specific block changed event * improve(plugin): api of db block change hook * improve(plugin): add show bracket user config of api * improve(plugin): api of db block change hook * fix(api): toggle collapsed of block * improve(api): try to init grpah with git before exec git commands * improve(plugin): attributes of sandbox container * improve(dev): support register command with keybinding * improve(plugin): add api of register shortcut command * fix(plugin): reubild slash commands when new command registration * fix(dev): lint * improve(dev): lint script of libs codebase * chore(dev): remove useless codes * improve(plugin):sanitize path string of plugin repo value * fix(plugin): rebuild commands list when unregister a plugin * fix(ui): overflow width of query result table * chore: rebuild libs core * improve(plugin): add assets related apis * chore: rebuild libs core * improve(plugin): support replace state of into block in page api * improve(plugin): prepend/append child block in page * improve(plugin): polished exceptions message of plugin update/install * fix(plugin): update settings within gui * improve(ux): debounce change event of input for plugin settings gui * chore: rebuild libs core * enhance(plugin): catch exception of hook plugin
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
.block-content-wrapper {
|
||||
/* 38px is the width of block-control */
|
||||
width: calc(100% - 22px);
|
||||
@screen sm {
|
||||
width: calc(100% - 33px);
|
||||
}
|
||||
width: calc(100% - 22px);
|
||||
|
||||
@screen sm {
|
||||
width: calc(100% - 33px);
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.block-content {
|
||||
@@ -92,7 +94,7 @@
|
||||
}
|
||||
|
||||
&-fallback-ui {
|
||||
padding:10px 15px;
|
||||
padding: 10px 15px;
|
||||
border-color: var(--ls-secondary-border-color);
|
||||
}
|
||||
}
|
||||
@@ -181,7 +183,15 @@
|
||||
.control-hide {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html.is-mobile,
|
||||
html.is-native-iphone,
|
||||
html.is-native-android {
|
||||
.references .block-control {
|
||||
margin-left: -20px;
|
||||
}
|
||||
}
|
||||
|
||||
.block-ref {
|
||||
border-bottom: 0.5px solid;
|
||||
@@ -200,19 +210,19 @@
|
||||
}
|
||||
|
||||
.block-ref-no-title {
|
||||
border-bottom: 0.5px solid;
|
||||
border-bottom-color: var(--ls-block-ref-link-text-color);
|
||||
cursor: alias;
|
||||
padding: 2px 5px;
|
||||
display: block;
|
||||
border-bottom: 0.5px solid;
|
||||
border-bottom-color: var(--ls-block-ref-link-text-color);
|
||||
cursor: alias;
|
||||
padding: 2px 5px;
|
||||
display: block;
|
||||
|
||||
&:hover {
|
||||
color: var(--ls-link-text-hover-color);
|
||||
}
|
||||
&:hover {
|
||||
color: var(--ls-link-text-hover-color);
|
||||
}
|
||||
|
||||
.block-content {
|
||||
cursor: inherit;
|
||||
}
|
||||
.block-content {
|
||||
cursor: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
.page-ref {
|
||||
@@ -234,7 +244,7 @@
|
||||
|
||||
.embed-page {
|
||||
@apply py-2 my-2 px-2;
|
||||
|
||||
|
||||
> section {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
@@ -349,41 +359,46 @@
|
||||
}
|
||||
|
||||
.block-ref :is(h1, h2, h3, h4, h5, h6) {
|
||||
border-bottom: none;
|
||||
font-size: 1rem;
|
||||
border-bottom: none;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.document-mode .ls-block h1,
|
||||
.document-mode .editor-inner .h1 {
|
||||
margin: 0.67em 0;
|
||||
}
|
||||
|
||||
.document-mode .ls-block h2,
|
||||
.document-mode .editor-inner .h2 {
|
||||
margin: 0.75em 0;
|
||||
}
|
||||
|
||||
.document-mode .ls-block h3,
|
||||
.document-mode .editor-inner .h3 {
|
||||
margin: 0.83em 0;
|
||||
}
|
||||
|
||||
.document-mode .ls-block h4,
|
||||
.document-mode .editor-inner .h4 {
|
||||
margin: 1.12em 0;
|
||||
}
|
||||
|
||||
.document-mode .ls-block h5,
|
||||
.document-mode .editor-inner .h5 {
|
||||
margin: 1.5em 0;
|
||||
}
|
||||
|
||||
.document-mode .ls-block h6,
|
||||
.document-mode .editor-inner .h6 {
|
||||
margin: 1.67em 0;
|
||||
}
|
||||
|
||||
.document-mode .block-children {
|
||||
border-left: 0px solid;
|
||||
border-left: 0px solid;
|
||||
}
|
||||
|
||||
.document-mode .ls-block {
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.color-level {
|
||||
@@ -460,7 +475,7 @@ a:hover > .bullet-container .bullet {
|
||||
}
|
||||
|
||||
a:hover > .bullet-container {
|
||||
background-color: var(--ls-block-bullet-border-color, #ced9e0);
|
||||
background-color: var(--ls-block-bullet-border-color, #ced9e0);
|
||||
}
|
||||
|
||||
.doc-mode {
|
||||
@@ -511,39 +526,39 @@ a.filter svg {
|
||||
}
|
||||
|
||||
.table-query-properties svg {
|
||||
display: inline;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.query-title {
|
||||
background: var(--ls-page-properties-background-color);
|
||||
background: var(--ls-page-properties-background-color);
|
||||
}
|
||||
|
||||
.ls-card {
|
||||
height: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.ui__modal-panel .ls-card {
|
||||
min-height: 24rem;
|
||||
}
|
||||
.ui__modal-panel .ls-card {
|
||||
min-height: 24rem;
|
||||
}
|
||||
}
|
||||
|
||||
a[data-ref="card"], .page-reference[data-ref="card"] {
|
||||
opacity: 0.3;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.ls-card a[data-ref="card"], .ls-card .page-reference[data-ref="card"] {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
a.cloze {
|
||||
color: var(--ls-cloze-text-color);
|
||||
color: var(--ls-cloze-text-color);
|
||||
}
|
||||
|
||||
a.cloze-revealed {
|
||||
color: var(--ls-cloze-text-color);
|
||||
text-decoration: underline;
|
||||
text-underline-position: under;
|
||||
color: var(--ls-cloze-text-color);
|
||||
text-decoration: underline;
|
||||
text-underline-position: under;
|
||||
}
|
||||
|
||||
.page-property-key {
|
||||
@@ -558,6 +573,12 @@ a.cloze-revealed {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.cp__fenced-code-block {
|
||||
.not-edit {
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
html.is-native-ios {
|
||||
audio {
|
||||
width: 300px;
|
||||
|
||||
Reference in New Issue
Block a user