mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-15 18:55:57 +00:00
Improved:
- Tidied up the Setting dialog. - Implemented Automatic plugin saving. - implemented notifying the new plugin or its settings. Fixed: - Reduced reconnection when editing configuration. - Fixed the problem about syncing the stylesheet of the plugin.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-livesync",
|
"id": "obsidian-livesync",
|
||||||
"name": "Self-hosted LiveSync",
|
"name": "Self-hosted LiveSync",
|
||||||
"version": "0.1.24",
|
"version": "0.1.25",
|
||||||
"minAppVersion": "0.9.12",
|
"minAppVersion": "0.9.12",
|
||||||
"description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
"description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
||||||
"author": "vorotamoroz",
|
"author": "vorotamoroz",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.1.24",
|
"version": "0.1.25",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.1.24",
|
"version": "0.1.25",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"diff-match-patch": "^1.0.5",
|
"diff-match-patch": "^1.0.5",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-livesync",
|
"name": "obsidian-livesync",
|
||||||
"version": "0.1.24",
|
"version": "0.1.25",
|
||||||
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
"description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
59
styles.css
59
styles.css
@@ -64,7 +64,8 @@
|
|||||||
:root {
|
:root {
|
||||||
--slsmessage: "";
|
--slsmessage: "";
|
||||||
}
|
}
|
||||||
.CodeMirror-wrap::before , .cm-s-obsidian > .cm-editor::before {
|
.CodeMirror-wrap::before,
|
||||||
|
.cm-s-obsidian > .cm-editor::before {
|
||||||
content: var(--slsmessage);
|
content: var(--slsmessage);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@@ -73,13 +74,65 @@
|
|||||||
top: 8px;
|
top: 8px;
|
||||||
color: --text-normal;
|
color: --text-normal;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
font-size:80%;
|
font-size: 80%;
|
||||||
-webkit-filter: grayscale(100%);
|
-webkit-filter: grayscale(100%);
|
||||||
filter: grayscale(100%);
|
filter: grayscale(100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.CodeMirror-wrap::before {
|
.CodeMirror-wrap::before {
|
||||||
right: 0px;
|
right: 0px;
|
||||||
} .cm-s-obsidian > .cm-editor::before {
|
}
|
||||||
|
.cm-s-obsidian > .cm-editor::before {
|
||||||
right: 16px;
|
right: 16px;
|
||||||
}
|
}
|
||||||
|
.sls-setting-tab {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
div.sls-setting-menu-btn {
|
||||||
|
color: var(--text-normal);
|
||||||
|
background-color: var(--background-secondary-alt);
|
||||||
|
border-radius: 4px 4px 0 0;
|
||||||
|
padding: 6px 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin-right: 12px;
|
||||||
|
font-family: "Inter", sans-serif;
|
||||||
|
outline: none;
|
||||||
|
user-select: none;
|
||||||
|
flex-grow: 1;
|
||||||
|
text-align: center;
|
||||||
|
flex-shrink: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sls-setting-label.selected {
|
||||||
|
/* order: 1; */
|
||||||
|
flex-grow: 1;
|
||||||
|
/* width: 100%; */
|
||||||
|
}
|
||||||
|
.sls-setting-tab:hover ~ div.sls-setting-menu-btn,
|
||||||
|
.sls-setting-tab:checked ~ div.sls-setting-menu-btn {
|
||||||
|
background-color: var(--interactive-accent);
|
||||||
|
color: var(--text-on-accent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sls-setting-menu {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
/* flex-wrap: wrap; */
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
.sls-setting-label {
|
||||||
|
flex-grow: 1;
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.setting-collapsed {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.sls-plugins-tbl-buttons {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sls-plugins-tbl-buttons button {
|
||||||
|
flex-grow: 0;
|
||||||
|
padding: 6px 10px;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user