Compare commits

..

25 Commits

Author SHA1 Message Date
vorotamoroz 6d4ae6dccb bump 2026-06-23 12:10:05 +01:00
vorotamoroz 37ccbf249c Merge pull request #970 from vrtmrz/refactor_journalsync
Overhaul ObjectStorage Replicator
2026-06-23 20:02:02 +09:00
vorotamoroz 6e14f0210a Track the subrepo 2026-06-23 12:01:27 +01:00
vorotamoroz c626fb1783 Update submodule pointer,
Update release note
2026-06-23 11:58:57 +01:00
vorotamoroz 23af915604 Merge pull request #973 from apple-ouyang/codex/fast-fetch-resume
Update commonlib for resumable Fast Fetch
2026-06-23 19:18:43 +09:00
Ouyang Xingyuan 2257ab7647 Update commonlib for resumable Fast Fetch
Point src/lib at the commonlib commit that makes Fast Fetch resume from a persisted CouchDB sequence.
2026-06-23 17:50:57 +08:00
vorotamoroz 08bfec204f Merge pull request #971 from kiraventom/main
Add a section on reverse-proxying via Nginx
2026-06-23 18:46:46 +09:00
vorotamoroz 916e24e21e Fix for CI 2026-06-23 10:41:20 +01:00
vorotamoroz 3ee2c401d4 Correcting sloppy wording on the design doc.
Creating and revising tests
Amending the vagueness in/arises from the draft
2026-06-23 10:27:28 +01:00
vorotamoroz 78d9d66438 fix scripts to make sure building types 2026-06-23 09:38:48 +01:00
vorotamoroz 7298aca2e9 prettified 2026-06-23 09:36:40 +01:00
vorotamoroz 431a845f18 fixed
- Journal upload issue
- Types and Setting Tab issue
2026-06-23 09:36:32 +01:00
vorotamoroz 877d1b09f4 refine 2026-06-23 01:17:09 +09:00
Temirkanov Alikhan 34caf19e20 Add a section on reverse-proxying via Nginx 2026-06-22 12:29:24 +03:00
vorotamoroz 9004c194b3 Overhaul ObjectStorage Replicator 2026-06-22 13:38:31 +09:00
vorotamoroz c57b8a5f4e Write the minimal CoC. Welcome your feedback! 2026-06-19 12:13:23 +01:00
vorotamoroz f90a83ef1e Update docs 2026-06-19 11:33:38 +01:00
vorotamoroz 62f44e38c0 Releasing 0.25.77 (#968)
Squash commits
2026-06-19 17:45:37 +09:00
vorotamoroz c6c4044f3c Merge pull request #965 from vrtmrz/refactor_structure
Refactor structure (2)
2026-06-18 10:44:41 +09:00
vorotamoroz 2bd7832d71 Merge pull request #964 from mugenrei/main
Merge upstream
2026-06-18 10:43:08 +09:00
mugenrei 28cdf40fcd Merge branch 'main' into main 2026-06-17 01:44:26 -03:00
vorotamoroz 38142aaf1c Merge pull request #963 from vrtmrz/refactor_structure
Refactor structure
2026-06-17 13:06:30 +09:00
mugenrei ebbac96b16 docs: add comprehensive Cloudflare Tunnel setup guide
- Step-by-step tunnel creation in Zero Trust dashboard
- Detailed public hostname configuration (couchdb:5984 vs localhost)
- Troubleshooting section for 404, 502, and 524 errors
- Obsidian plugin configuration instructions
- Emphasis on token-based tunnels ignoring local config file
2026-02-18 10:57:18 -03:00
mugenrei ed0e67e853 fix: CRLF line endings in couchdb-init.sh, add .gitattributes
Shell scripts with CRLF line endings crash inside Linux containers with
'set: illegal option -' and 'command not found' errors.

- Strip CRLF -> LF in couchdb-init.sh
- Add .gitattributes to enforce LF on .sh, .yml, .ini, .md etc.
  so this never regresses on Windows checkouts
2026-02-18 10:52:51 -03:00
mugenrei f99d7dc00f Add initial Docker setup and configuration for self-hosted LiveSync with CouchDB 2026-02-18 09:46:49 -03:00
374 changed files with 1683 additions and 582 deletions
+23
View File
@@ -1 +1,24 @@
# Always checkout shell scripts with LF line endings (never CRLF)
*.sh text eol=lf
# Standard text files — auto normalize on checkout
*.md text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.ini text eol=lf
*.env text eol=lf
*.json text eol=lf
*.ts text eol=lf
*.js text eol=lf
*.mjs text eol=lf
*.css text eol=lf
# Binary files — no line ending conversion
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.woff2 binary
*.woff binary
*.sh text eol=lf *.sh text eol=lf
+116 -111
View File
@@ -1,111 +1,116 @@
# Run Unit test without Harnesses # Run Unit test without Harnesses
name: unit-ci name: unit-ci
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: branches:
- main - main
- beta - beta
paths: paths:
- 'src/**' - 'src/**'
- 'test/**' - 'test/**'
- 'package.json' - 'package.json'
- 'package-lock.json' - 'package-lock.json'
- 'tsconfig.json' - 'tsconfig.json'
- 'vite.config.ts' - 'vite.config.ts'
- 'vitest.config*.ts' - 'vitest.config*.ts'
- 'esbuild.config.mjs' - 'esbuild.config.mjs'
- 'eslint.config.mjs' - 'eslint.config.mjs'
- '.github/workflows/unit-ci.yml' - '.github/workflows/unit-ci.yml'
pull_request: pull_request:
paths: paths:
- 'src/**' - 'src/**'
- 'test/**' - 'test/**'
- 'package.json' - 'package.json'
- 'package-lock.json' - 'package-lock.json'
- 'tsconfig.json' - 'tsconfig.json'
- 'vite.config.ts' - 'vite.config.ts'
- 'vitest.config*.ts' - 'vitest.config*.ts'
- 'esbuild.config.mjs' - 'esbuild.config.mjs'
- 'eslint.config.mjs' - 'eslint.config.mjs'
- '.github/workflows/unit-ci.yml' - '.github/workflows/unit-ci.yml'
permissions: permissions:
contents: read contents: read
jobs: jobs:
unit-test: unit-test:
name: Unit Tests name: Unit Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '24.x' node-version: '24.x'
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Run unit tests suite with coverage - name: Run unit tests suite with coverage
run: npm run test:unit:coverage run: npm run test:unit:coverage
- name: Upload coverage report - name: Upload coverage report
if: always() if: always()
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: unit-coverage-report name: unit-coverage-report
path: coverage/** path: coverage/**
integration-test: integration-test:
name: Integration Tests name: Integration Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '24.x' node-version: '24.x'
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Create environment configuration files - name: Create environment configuration files
run: | run: |
cat <<EOF > .env cat <<EOF > .env
BUILD_MODE=dev BUILD_MODE=dev
PATHS_TEST_INSTALL= PATHS_TEST_INSTALL=
EOF EOF
cat <<EOF > .test.env cat <<EOF > .test.env
hostname=http://127.0.0.1:5989/ hostname=http://127.0.0.1:5989/
dbname=livesync-test-db2 dbname=livesync-test-db2
username=admin username=admin
password=testpassword password=testpassword
minioEndpoint=http://127.0.0.1:9000 minioEndpoint=http://127.0.0.1:9000
accessKey=minioadmin accessKey=minioadmin
secretKey=minioadmin secretKey=minioadmin
bucketName=livesync-test-bucket bucketName=livesync-test-bucket
EOF EOF
- name: Start CouchDB container - name: Start CouchDB container
run: npm run test:docker-couchdb:start run: npm run test:docker-couchdb:start
- name: Run integration tests - name: Start MinIO container
run: npm run test:integration run: npm run test:docker-s3:start
- name: Stop CouchDB container - name: Run integration tests
if: always() run: npm run test:integration
run: npm run test:docker-couchdb:stop || true
- name: Stop containers
if: always()
run: |
npm run test:docker-couchdb:stop || true
npm run test:docker-s3:stop || true
+27
View File
@@ -0,0 +1,27 @@
# Code of Conduct
We wish to maintain an open, welcoming, and collaborative environment for all contributors.
## Our Standard
Our core principle is mutual respect. We encourage open discussion, diverse perspectives, and constructive feedback.
## The Limit of Tolerance
To preserve a tolerant and open community, we do not tolerate intolerance. Actions that aim to harass, exclude, or silence others are not welcome. Specifically, we do not accept personal attacks, breaches of privacy, or sustained disruption of discussions. We prioritise protecting the community's capacity for open, peaceful collaboration.
## Resolution
If any issue arises, the project maintainers will resolve it in a fair, minimal, and constructive manner, aiming to restore a cooperative environment. Depending on the nature of the behaviour, actions may range from a simple warning to temporary or permanent suspension of repository access.
## Contact
You can contact the project maintainer via email at `vrtmrz@proton.me` or via Nostr at `npub1azzj0dzw8evwtgyjeucyfz5cs8k0eg7rd0x4qvggcg3s7lx0dmaqv9sfka`.
## Criticism of the Maintainer
To ensure open and transparent governance, criticism of the maintainer will not be deleted as long as it is clearly framed as a constructive objection. However, spamming duplicate issues on the same topic or resorting to personal attacks will result in closure or removal.
## Revisions
This Code of Conduct is maintained by the project maintainers and may be updated to address new challenges. While the final decision rests with the maintainers, we welcome constructive suggestions and feedback through issues or pull requests.
+70
View File
@@ -0,0 +1,70 @@
# Contributing to Self-hosted LiveSync
Thank you for your interest in contributing to Self-hosted LiveSync! We welcome all contributions, including bug reports, feature requests, documentation improvements, translations, and pull requests.
## Getting Started
To set up the development environment, please follow these steps:
1. Clone the repository recursively to ensure all Git submodules are loaded:
```bash
git clone --recursive https://github.com/vrtmrz/obsidian-livesync
```
If you have already cloned the repository without submodules, run the following command:
```bash
git submodule update --init --recursive
```
2. Install the package dependencies:
```bash
npm ci
```
3. Build the plug-in:
```bash
npm run build
```
For a more comprehensive guide on development workflows, testing configurations, and subrepos, please refer to [devs.md](devs.md).
## Guidelines for Contributions
### 1. Code Style and Verification
Before submitting a pull request, you must run verification scripts locally to ensure that there are no syntax, type, or linting errors:
- Run type checking and linting:
```bash
npm run check
```
- Run unit tests:
```bash
npm run test:unit
```
If you have the capability and a suitable environment (such as Linux and Docker), running the CLI End-to-End (E2E) tests is also highly appreciated. Instructions are detailed in [devs.md](devs.md). If you cannot run E2E tests locally, please explicitly ask to run the tests on the CI by stating 'Please run CI tests' in your pull request description.
### 2. Documentation and UI Text Style
To maintain consistency across the project, we ask that you follow the established writing style and conventions of the codebase when contributing documentation or user-facing messages:
- **Spelling**: Prioritise region-independent, neutral spelling if a suitable word exists. If there is no such word, please use British English spelling to align with the codebase's style (for example: preferring '-ise' and '-isation' suffixes over '-ize' and '-ization'). However, we do not treat alternative spellings as errors.
- **Oxford Comma**: Use the serial (Oxford) comma to separate items in lists of three or more (for example: 'settings, snippets, and themes').
- **Logical Punctuation**: Place punctuation marks outside quotation marks unless they are part of the quoted text itself (for example: write 'dialogue', not 'dialogue,').
- **No Contractions**: Avoid using contractions in general text or documentation (for example: write "do not" instead of "don't", and "cannot" instead of "can't").
- **Affirmative Phrasing**: Avoid asking questions using negative forms in user-facing dialogue. Use affirmative questions to prevent translation and interpretation discrepancies.
- **Specific Words**: Use 'dialogue' for documentation and user-facing messages (use 'dialog' only inside source code). Use the hyphenated form 'plug-in' in user-facing text (use 'plugin' only in configuration settings or technical contexts).
For a detailed list of vocabulary conventions and terms, please refer to [docs/terms.md](docs/terms.md).
### 3. Translations
To add or update translations, please refer to [docs/adding_translations.md](docs/adding_translations.md) for detailed instructions.
### 4. Git Submodules
The `src/lib` directory is a Git submodule pointing to the shared library `livesync-commonlib`. If you wish to propose changes to the shared library, do not modify `src/lib` directly. Instead, please submit a separate pull request to the [livesync-commonlib repository](https://github.com/vrtmrz/livesync-commonlib).
## License
By contributing, you agree that your contributions will be licensed under the MIT License.
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase"; import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase";
import type { HasSettings, ObsidianLiveSyncSettings, EntryDoc } from "@lib/common/types"; import type { HasSettings, ObsidianLiveSyncSettings, EntryDoc } from "@lib/common/types";
import type { Confirm } from "@lib/interfaces/Confirm"; import type { Confirm } from "@lib/interfaces/Confirm";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase.ts"; import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase.ts";
export { OpenKeyValueDatabase } from "./KeyValueDBv2.ts"; export { OpenKeyValueDatabase } from "./KeyValueDBv2.ts";
export declare const _OpenKeyValueDatabase: (dbKey: string) => Promise<KeyValueDatabase>; export declare const _OpenKeyValueDatabase: (dbKey: string) => Promise<KeyValueDatabase>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase"; import type { KeyValueDatabase } from "@lib/interfaces/KeyValueDatabase";
import { type IDBPDatabase } from "idb"; import { type IDBPDatabase } from "idb";
export declare function OpenKeyValueDatabase(dbKey: string): Promise<KeyValueDatabase>; export declare function OpenKeyValueDatabase(dbKey: string): Promise<KeyValueDatabase>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { NecessaryServices } from "@lib/interfaces/ServiceModule"; import type { NecessaryServices } from "@lib/interfaces/ServiceModule";
type PeriodicProcessorHost = NecessaryServices<"API" | "control", never>; type PeriodicProcessorHost = NecessaryServices<"API" | "control", never>;
export declare class PeriodicProcessor { export declare class PeriodicProcessor {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { ItemView } from "@/deps.ts"; import { ItemView } from "@/deps.ts";
import { type mount } from "svelte"; import { type mount } from "svelte";
export declare abstract class SvelteItemView extends ItemView { export declare abstract class SvelteItemView extends ItemView {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { eventHub } from "@lib/hub/hub"; import { eventHub } from "@lib/hub/hub";
export declare const EVENT_PLUGIN_LOADED = "plugin-loaded"; export declare const EVENT_PLUGIN_LOADED = "plugin-loaded";
export declare const EVENT_PLUGIN_UNLOADED = "plugin-unloaded"; export declare const EVENT_PLUGIN_UNLOADED = "plugin-unloaded";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { TFile } from "@/deps"; import type { TFile } from "@/deps";
import type { FilePathWithPrefix, LoadedEntry } from "@lib/common/types"; import type { FilePathWithPrefix, LoadedEntry } from "@lib/common/types";
export declare const EVENT_REQUEST_SHOW_HISTORY = "show-history"; export declare const EVENT_REQUEST_SHOW_HISTORY = "show-history";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ObsidianLiveSyncSettings } from "@lib/common/models/setting.type"; import type { ObsidianLiveSyncSettings } from "@lib/common/models/setting.type";
import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore"; import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore";
export declare function generateReport(settings: ObsidianLiveSyncSettings, core: LiveSyncBaseCore): Promise<{ export declare function generateReport(settings: ObsidianLiveSyncSettings, core: LiveSyncBaseCore): Promise<{
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { PersistentMap } from "octagonal-wheels/dataobject/PersistentMap"; import { PersistentMap } from "octagonal-wheels/dataobject/PersistentMap";
export declare let sameChangePairs: PersistentMap<number[]>; export declare let sameChangePairs: PersistentMap<number[]>;
export declare function initializeStores(vaultName: string): void; export declare function initializeStores(vaultName: string): void;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type PluginManifest, TFile } from "@/deps.ts"; import { type PluginManifest, TFile } from "@/deps.ts";
import { type DatabaseEntry, type EntryBody, type FilePath } from "@lib/common/types.ts"; import { type DatabaseEntry, type EntryBody, type FilePath } from "@lib/common/types.ts";
export type { CacheData, FileEventItem } from "@lib/common/types.ts"; export type { CacheData, FileEventItem } from "@lib/common/types.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { TAbstractFile } from "@/deps.ts"; import { TAbstractFile } from "@/deps.ts";
import { type AnyEntry, type CouchDBCredentials, type DocumentID, type EntryHasPath, type FilePath, type FilePathWithPrefix, type UXFileInfo, type UXFileInfoStub } from "@lib/common/types.ts"; import { type AnyEntry, type CouchDBCredentials, type DocumentID, type EntryHasPath, type FilePath, type FilePathWithPrefix, type UXFileInfo, type UXFileInfoStub } from "@lib/common/types.ts";
export { ICHeader, ICXHeader } from "./types.ts"; export { ICHeader, ICXHeader } from "./types.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type FilePath } from "@lib/common/types.ts"; import { type FilePath } from "@lib/common/types.ts";
export { addIcon, App, debounce, Editor, FuzzySuggestModal, MarkdownRenderer, MarkdownView, Modal, Notice, Platform, Plugin, PluginSettingTab, requestUrl, sanitizeHTMLToDom, Setting, stringifyYaml, TAbstractFile, TextAreaComponent, TFile, TFolder, parseYaml, ItemView, WorkspaceLeaf, Menu, request, getLanguage, ButtonComponent, TextComponent, ToggleComponent, DropdownComponent, Component, } from "obsidian"; export { addIcon, App, debounce, Editor, FuzzySuggestModal, MarkdownRenderer, MarkdownView, Modal, Notice, Platform, Plugin, PluginSettingTab, requestUrl, sanitizeHTMLToDom, Setting, stringifyYaml, TAbstractFile, TextAreaComponent, TFile, TFolder, parseYaml, ItemView, WorkspaceLeaf, Menu, request, getLanguage, ButtonComponent, TextComponent, ToggleComponent, DropdownComponent, Component, } from "obsidian";
export type { DataWriteOptions, PluginManifest, RequestUrlParam, RequestUrlResponse, MarkdownFileInfo, ListedFiles, ValueComponent, Stat, Command, ViewCreator, } from "obsidian"; export type { DataWriteOptions, PluginManifest, RequestUrlParam, RequestUrlResponse, MarkdownFileInfo, ListedFiles, ValueComponent, Stat, Command, ViewCreator, } from "obsidian";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type PluginManifest } from "@/deps.ts"; import { type PluginManifest } from "@/deps.ts";
import type { EntryDoc, LoadedEntry, FilePathWithPrefix, FilePath, AnyEntry } from "@lib/common/types.ts"; import type { EntryDoc, LoadedEntry, FilePathWithPrefix, FilePath, AnyEntry } from "@lib/common/types.ts";
import { LiveSyncCommands } from "@/features/LiveSyncCommands.ts"; import { LiveSyncCommands } from "@/features/LiveSyncCommands.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { mount } from "svelte"; import { mount } from "svelte";
import { App, Modal } from "@/deps.ts"; import { App, Modal } from "@/deps.ts";
import ObsidianLiveSyncPlugin from "@/main.ts"; import ObsidianLiveSyncPlugin from "@/main.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { App, Modal } from "@/deps.ts"; import { App, Modal } from "@/deps.ts";
import { type FilePath, type LoadedEntry } from "@lib/common/types.ts"; import { type FilePath, type LoadedEntry } from "@lib/common/types.ts";
import { mount } from "svelte"; import { mount } from "svelte";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type LoadedEntry, type FilePathWithPrefix, type FilePath, type DocumentID, type UXFileInfo, type UXStat, type MetaEntry, type UXDataWriteOptions } from "@lib/common/types.ts"; import { type LoadedEntry, type FilePathWithPrefix, type FilePath, type DocumentID, type UXFileInfo, type UXStat, type MetaEntry, type UXDataWriteOptions } from "@lib/common/types.ts";
import { type InternalFileInfo } from "@/common/types.ts"; import { type InternalFileInfo } from "@/common/types.ts";
import { type CustomRegExp } from "@lib/common/utils.ts"; import { type CustomRegExp } from "@lib/common/utils.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type AnyEntry, type DocumentID, type FilePath, type FilePathWithPrefix, type LOG_LEVEL } from "@lib/common/types.ts"; import { type AnyEntry, type DocumentID, type FilePath, type FilePathWithPrefix, type LOG_LEVEL } from "@lib/common/types.ts";
import type ObsidianLiveSyncPlugin from "@/main.ts"; import type ObsidianLiveSyncPlugin from "@/main.ts";
import type { LiveSyncCore } from "@/main.ts"; import type { LiveSyncCore } from "@/main.ts";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type DocumentID, type EntryDoc, type EntryLeaf } from "@lib/common/types"; import { type DocumentID, type EntryDoc, type EntryLeaf } from "@lib/common/types";
import { LiveSyncCommands } from "@/features/LiveSyncCommands"; import { LiveSyncCommands } from "@/features/LiveSyncCommands";
type ChunkID = DocumentID; type ChunkID = DocumentID;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { App, Modal } from "@/deps.ts"; import { App, Modal } from "@/deps.ts";
import { mount } from "svelte"; import { mount } from "svelte";
import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator"; import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { App } from "@/deps.ts"; import { App } from "@/deps.ts";
import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator"; import type { LiveSyncTrysteroReplicator } from "@lib/replication/trystero/LiveSyncTrysteroReplicator";
/** /**
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { Menu, WorkspaceLeaf } from "@/deps.ts"; import { Menu, WorkspaceLeaf } from "@/deps.ts";
import { SvelteItemView } from "@/common/SvelteItemView.ts"; import { SvelteItemView } from "@/common/SvelteItemView.ts";
import { type PeerStatus } from "@lib/replication/trystero/P2PReplicatorPaneCommon.ts"; import { type PeerStatus } from "@lib/replication/trystero/P2PReplicatorPaneCommon.ts";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { WorkspaceLeaf } from "@/deps.ts"; import { WorkspaceLeaf } from "@/deps.ts";
import { SvelteItemView } from "@/common/SvelteItemView.ts"; import { SvelteItemView } from "@/common/SvelteItemView.ts";
import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore.ts"; import type { LiveSyncBaseCore } from "@/LiveSyncBaseCore.ts";
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export { DirectFileManipulator } from "./DirectFileManipulatorV2.ts"; export { DirectFileManipulator } from "./DirectFileManipulatorV2.ts";
export type { DirectFileManipulatorOptions } from "./DirectFileManipulatorV2.ts"; export type { DirectFileManipulatorOptions } from "./DirectFileManipulatorV2.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type ObsidianLiveSyncSettings } from "@lib/common/types"; import { type ObsidianLiveSyncSettings } from "@lib/common/types";
/** /**
* Encode settings to a tiny array to encode in QRCode, * Encode settings to a tiny array to encode in QRCode,
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
/** /**
* Content-Splitter for Self-hosted LiveSync. * Content-Splitter for Self-hosted LiveSync.
* Splits content into manageable chunks for efficient storage and synchronisation. * Splits content into manageable chunks for efficient storage and synchronisation.
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type SavingEntry } from "@lib/common/types.ts"; import { type SavingEntry } from "@lib/common/types.ts";
import { type ContentSplitterOptions, type SplitOptions } from "./ContentSplitter.ts"; import { type ContentSplitterOptions, type SplitOptions } from "./ContentSplitter.ts";
export declare abstract class ContentSplitterCore { export declare abstract class ContentSplitterCore {
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts"; import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts";
import { ContentSplitterBase } from "./ContentSplitterBase.ts"; import { ContentSplitterBase } from "./ContentSplitterBase.ts";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter"; import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter";
import { ContentSplitterBase } from "./ContentSplitterBase"; import { ContentSplitterBase } from "./ContentSplitterBase";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts"; import type { ContentSplitterOptions, SplitOptions } from "./ContentSplitter.ts";
import { ContentSplitterBase } from "./ContentSplitterBase.ts"; import { ContentSplitterBase } from "./ContentSplitterBase.ts";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { SavingEntry } from "@lib/common/types"; import type { SavingEntry } from "@lib/common/types";
import type { ContentSplitterOptions } from "./ContentSplitter"; import type { ContentSplitterOptions } from "./ContentSplitter";
import { ContentSplitterCore, type ContentSplitterBase } from "./ContentSplitterBase"; import { ContentSplitterCore, type ContentSplitterBase } from "./ContentSplitterBase";
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export type { HasSetResult, HasGetInitialData, ComponentHasResult, GuestDialogProps, DialogSvelteComponentBaseProps, DialogControlBase, } from "@lib/services/implements/base/SvelteDialog.ts"; export type { HasSetResult, HasGetInitialData, ComponentHasResult, GuestDialogProps, DialogSvelteComponentBaseProps, DialogControlBase, } from "@lib/services/implements/base/SvelteDialog.ts";
export { CONTEXT_DIALOG_CONTROLS, setupDialogContext, getDialogContext, SvelteDialogManagerBase, } from "@lib/services/implements/base/SvelteDialog.ts"; export { CONTEXT_DIALOG_CONTROLS, setupDialogContext, getDialogContext, SvelteDialogManagerBase, } from "@lib/services/implements/base/SvelteDialog.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type SlipBoard } from "octagonal-wheels/bureau/SlipBoard"; import { type SlipBoard } from "octagonal-wheels/bureau/SlipBoard";
declare global { declare global {
interface Slips extends LSSlips { interface Slips extends LSSlips {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { CouchDBConnection, BucketSyncSetting, P2PConnectionInfo } from "./models/setting.type"; import type { CouchDBConnection, BucketSyncSetting, P2PConnectionInfo } from "./models/setting.type";
export type RemoteConfigurationResult = { export type RemoteConfigurationResult = {
type: "couchdb"; type: "couchdb";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { Constructor } from "@lib/common/utils.type"; import type { Constructor } from "@lib/common/utils.type";
interface ErrorWithCause extends Error { interface ErrorWithCause extends Error {
cause?: unknown; cause?: unknown;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { Confirm } from "@lib/interfaces/Confirm"; import type { Confirm } from "@lib/interfaces/Confirm";
import { type ObsidianLiveSyncSettings } from "./types"; import { type ObsidianLiveSyncSettings } from "./types";
declare enum ConditionType { declare enum ConditionType {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { getLanguage as ObsidianGetLanguage } from "obsidian"; import type { getLanguage as ObsidianGetLanguage } from "obsidian";
export declare function setGetLanguage(func: typeof ObsidianGetLanguage): void; export declare function setGetLanguage(func: typeof ObsidianGetLanguage): void;
export declare function getLanguage(): string; export declare function getLanguage(): string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
declare const manifestVersion: string; declare const manifestVersion: string;
declare const packageVersion: string; declare const packageVersion: string;
export { manifestVersion, packageVersion }; export { manifestVersion, packageVersion };
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { AllMessageKeys, I18N_LANGS } from "./rosetta"; import type { AllMessageKeys, I18N_LANGS } from "./rosetta";
import type { TaggedType } from "./types"; import type { TaggedType } from "./types";
export declare let currentLang: I18N_LANGS; export declare let currentLang: I18N_LANGS;
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export * from "octagonal-wheels/common/logger"; export * from "octagonal-wheels/common/logger";
export type * from "octagonal-wheels/common/logger"; export type * from "octagonal-wheels/common/logger";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { PartialMessages as def } from "./def.ts"; import { PartialMessages as def } from "./def.ts";
import { type MESSAGE } from "@lib/common/rosetta.ts"; import { type MESSAGE } from "@lib/common/rosetta.ts";
type MessageKeys = keyof typeof def.def; type MessageKeys = keyof typeof def.def;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const allMessages: { export declare const allMessages: {
readonly "(Active)": { readonly "(Active)": {
readonly def: "(Active)"; readonly def: "(Active)";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly de: { readonly de: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly def: { readonly def: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly es: { readonly es: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly fr: { readonly fr: {
"(BETA) Always overwrite with a newer file": string; "(BETA) Always overwrite with a newer file": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly he: { readonly he: {
"(BETA) Always overwrite with a newer file": string; "(BETA) Always overwrite with a newer file": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly ja: { readonly ja: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly ko: { readonly ko: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly ru: { readonly ru: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly "zh-tw": { readonly "zh-tw": {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const PartialMessages: { export declare const PartialMessages: {
readonly zh: { readonly zh: {
"(Active)": string; "(Active)": string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export type CouchDBCredentials = BasicCredentials | JWTCredentials; export type CouchDBCredentials = BasicCredentials | JWTCredentials;
export type JWTAlgorithm = "HS256" | "HS512" | "ES256" | "ES512" | ""; export type JWTAlgorithm = "HS256" | "HS512" | "ES256" | "ES512" | "";
export type Credential = { export type Credential = {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { DocumentID } from "./db.type"; import type { DocumentID } from "./db.type";
export declare const VERSIONING_DOCID: DocumentID; export declare const VERSIONING_DOCID: DocumentID;
export declare const MILESTONE_DOCID: DocumentID; export declare const MILESTONE_DOCID: DocumentID;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { MILESTONE_DOCID, NODEINFO_DOCID } from "./db.const"; import type { MILESTONE_DOCID, NODEINFO_DOCID } from "./db.const";
import type { AnyEntry, ChunkVersionRange, DatabaseEntry, EntryChunkPack, EntryLeaf, EntryTypes, EntryVersionInfo, InternalFileEntry, LoadedEntry, MetaEntry, NewEntry, NoteEntry, PlainEntry } from "./db.type"; import type { AnyEntry, ChunkVersionRange, DatabaseEntry, EntryChunkPack, EntryLeaf, EntryTypes, EntryVersionInfo, InternalFileEntry, LoadedEntry, MetaEntry, NewEntry, NoteEntry, PlainEntry } from "./db.type";
import type { TweakValues } from "./tweak.definition"; import type { TweakValues } from "./tweak.definition";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { TaggedType } from "octagonal-wheels/common/types"; import type { TaggedType } from "octagonal-wheels/common/types";
import type { EntryTypes, SYNCINFO_ID } from "./db.const"; import type { EntryTypes, SYNCINFO_ID } from "./db.const";
export type FilePath = TaggedType<string, "FilePath">; export type FilePath = TaggedType<string, "FilePath">;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { AUTO_MERGED, CANCELLED, MISSING_OR_ERROR, NOT_CONFLICTED } from "./shared.const.symbols"; import type { AUTO_MERGED, CANCELLED, MISSING_OR_ERROR, NOT_CONFLICTED } from "./shared.const.symbols";
export type diff_result_leaf = { export type diff_result_leaf = {
rev: string; rev: string;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const CHeader = "h:"; export declare const CHeader = "h:";
export declare const PSCHeader = "ps:"; export declare const PSCHeader = "ps:";
export declare const PSCHeaderEnd = "ps;"; export declare const PSCHeaderEnd = "ps;";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { FilePath, FilePathWithPrefix } from "./db.type"; import type { FilePath, FilePathWithPrefix } from "./db.type";
export type UXStat = { export type UXStat = {
size: number; size: number;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { FilePath } from "./db.type"; import type { FilePath } from "./db.type";
export declare const PREFIXMD_LOGFILE = "livesync_log_"; export declare const PREFIXMD_LOGFILE = "livesync_log_";
export declare const PREFIXMD_LOGFILE_UC = "LIVESYNC_LOG_"; export declare const PREFIXMD_LOGFILE_UC = "LIVESYNC_LOG_";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const SETTING_VERSION_INITIAL = 0; export declare const SETTING_VERSION_INITIAL = 0;
export declare const SETTING_VERSION_SUPPORT_CASE_INSENSITIVE = 10; export declare const SETTING_VERSION_SUPPORT_CASE_INSENSITIVE = 10;
export declare const CURRENT_SETTING_VERSION = 10; export declare const CURRENT_SETTING_VERSION = 10;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type ObsidianLiveSyncSettings, type P2PSyncSetting } from "./setting.type"; import { type ObsidianLiveSyncSettings, type P2PSyncSetting } from "./setting.type";
export declare const P2P_DEFAULT_SETTINGS: P2PSyncSetting; export declare const P2P_DEFAULT_SETTINGS: P2PSyncSetting;
export declare const DEFAULT_SETTINGS: ObsidianLiveSyncSettings; export declare const DEFAULT_SETTINGS: ObsidianLiveSyncSettings;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const PREFERRED_BASE: Partial<ObsidianLiveSyncSettings>; export declare const PREFERRED_BASE: Partial<ObsidianLiveSyncSettings>;
export declare const PREFERRED_SETTING_CLOUDANT: Partial<ObsidianLiveSyncSettings>; export declare const PREFERRED_SETTING_CLOUDANT: Partial<ObsidianLiveSyncSettings>;
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const KeyIndexOfSettings: Record<keyof ObsidianLiveSyncSettings, number>; export declare const KeyIndexOfSettings: Record<keyof ObsidianLiveSyncSettings, number>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ChunkAlgorithms, E2EEAlgorithms, HashAlgorithms, MODE_AUTOMATIC, MODE_PAUSED, MODE_SELECTIVE, MODE_SHINY, RemoteTypes } from "./setting.const"; import type { ChunkAlgorithms, E2EEAlgorithms, HashAlgorithms, MODE_AUTOMATIC, MODE_PAUSED, MODE_SELECTIVE, MODE_SHINY, RemoteTypes } from "./setting.const";
import type { I18N_LANGS } from "@lib/common/rosetta"; import type { I18N_LANGS } from "@lib/common/rosetta";
import type { CustomRegExpSourceList } from "./shared.type.util"; import type { CustomRegExpSourceList } from "./shared.type.util";
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const MAX_DOC_SIZE = 1000; export declare const MAX_DOC_SIZE = 1000;
export declare const MAX_DOC_SIZE_BIN = 102400; export declare const MAX_DOC_SIZE_BIN = 102400;
export declare const VER = 12; export declare const VER = 12;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const SETTING_KEY_P2P_DEVICE_NAME = "p2p_device_name"; export declare const SETTING_KEY_P2P_DEVICE_NAME = "p2p_device_name";
export declare const configURIBase = "obsidian://setuplivesync?settings="; export declare const configURIBase = "obsidian://setuplivesync?settings=";
export declare const configURIBaseQR = "obsidian://setuplivesync?settingsQR="; export declare const configURIBaseQR = "obsidian://setuplivesync?settingsQR=";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const CANCELLED: unique symbol; export declare const CANCELLED: unique symbol;
export declare const AUTO_MERGED: unique symbol; export declare const AUTO_MERGED: unique symbol;
export declare const NOT_CONFLICTED: unique symbol; export declare const NOT_CONFLICTED: unique symbol;
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const LEVEL_ADVANCED = "ADVANCED"; export declare const LEVEL_ADVANCED = "ADVANCED";
export declare const LEVEL_POWER_USER = "POWER_USER"; export declare const LEVEL_POWER_USER = "POWER_USER";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare const DatabaseConnectingStatuses: { export declare const DatabaseConnectingStatuses: {
readonly STARTED: "STARTED"; readonly STARTED: "STARTED";
readonly NOT_CONNECTED: "NOT_CONNECTED"; readonly NOT_CONNECTED: "NOT_CONNECTED";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { TaggedType } from "octagonal-wheels/common/types"; import type { TaggedType } from "octagonal-wheels/common/types";
export type { TaggedType }; export type { TaggedType };
export type CustomRegExpSource = TaggedType<string, "CustomRegExp">; export type CustomRegExpSource = TaggedType<string, "CustomRegExp">;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { EntryTypes } from "./db.const"; import { EntryTypes } from "./db.const";
import type { DatabaseEntry, DocumentID } from "./db.type"; import type { DatabaseEntry, DocumentID } from "./db.type";
export declare const ProtocolVersions: { export declare const ProtocolVersions: {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { ObsidianLiveSyncSettings } from "./setting.type"; import type { ObsidianLiveSyncSettings } from "./setting.type";
export declare const TweakValuesShouldMatchedTemplate: Partial<ObsidianLiveSyncSettings>; export declare const TweakValuesShouldMatchedTemplate: Partial<ObsidianLiveSyncSettings>;
type TweakKeys = keyof TweakValues; type TweakKeys = keyof TweakValues;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
/** /**
# Rosetta stone # Rosetta stone
- To localise messages to your language, please write a translation to this file and submit a PR. - To localise messages to your language, please write a translation to this file and submit a PR.
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type ConfigurationItem, type ObsidianLiveSyncSettings } from "./types.ts"; import { type ConfigurationItem, type ObsidianLiveSyncSettings } from "./types.ts";
type ExtractPropertiesByType<T, U> = { type ExtractPropertiesByType<T, U> = {
[K in keyof T as T[K] extends U ? K : never]: T[K] extends U ? K : never; [K in keyof T as T[K] extends U ? K : never]: T[K] extends U ? K : never;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { DocumentID, FilePath, FilePathWithPrefix } from "./models/db.type"; import type { DocumentID, FilePath, FilePathWithPrefix } from "./models/db.type";
import type { UXFileInfoStub } from "./types"; import type { UXFileInfoStub } from "./types";
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export type { TaggedType } from "./models/shared.type.util.ts"; export type { TaggedType } from "./models/shared.type.util.ts";
export { LOG_LEVEL_DEBUG, LOG_LEVEL_INFO, LOG_LEVEL_NOTICE, LOG_LEVEL_URGENT, LOG_LEVEL_VERBOSE, } from "octagonal-wheels/common/logger"; export { LOG_LEVEL_DEBUG, LOG_LEVEL_INFO, LOG_LEVEL_NOTICE, LOG_LEVEL_URGENT, LOG_LEVEL_VERBOSE, } from "octagonal-wheels/common/logger";
export type { LOG_LEVEL } from "octagonal-wheels/common/logger"; export type { LOG_LEVEL } from "octagonal-wheels/common/logger";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { type AnyEntry, type DatabaseEntry, type EntryLeaf, type SyncInfo, type LoadedEntry, type SavingEntry, type NewEntry, type PlainEntry, type CustomRegExpSource, type ParsedCustomRegExp, type CustomRegExpSourceList, type ObsidianLiveSyncSettings, type RemoteDBSettings, type P2PConnectionInfo, type BucketSyncSetting, type CouchDBConnection, type EncryptionSettings } from "./types.ts"; import { type AnyEntry, type DatabaseEntry, type EntryLeaf, type SyncInfo, type LoadedEntry, type SavingEntry, type NewEntry, type PlainEntry, type CustomRegExpSource, type ParsedCustomRegExp, type CustomRegExpSourceList, type ObsidianLiveSyncSettings, type RemoteDBSettings, type P2PConnectionInfo, type BucketSyncSetting, type CouchDBConnection, type EncryptionSettings } from "./types.ts";
import { replaceAll, replaceAllPairs } from "octagonal-wheels/string"; import { replaceAll, replaceAllPairs } from "octagonal-wheels/string";
export { replaceAll, replaceAllPairs }; export { replaceAll, replaceAllPairs };
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare function isErrorOf(ex: unknown, statusCode: number): boolean; export declare function isErrorOf(ex: unknown, statusCode: number): boolean;
/** /**
* Checks if the error is effectively a 404 error from CouchDB or PouchDB. * Checks if the error is effectively a 404 error from CouchDB or PouchDB.
+1 -1
View File
@@ -1,4 +1,4 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare function asCopy<T>(obj: T): T; export declare function asCopy<T>(obj: T): T;
export declare function ensureError(error: unknown): Error; export declare function ensureError(error: unknown): Error;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export declare function generatePatchObj(from: Record<string | number | symbol, unknown>, to: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>; export declare function generatePatchObj(from: Record<string | number | symbol, unknown>, to: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>;
export declare function applyPatch(from: Record<string | number | symbol, unknown>, patch: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>; export declare function applyPatch(from: Record<string | number | symbol, unknown>, patch: Record<string | number | symbol, unknown>): Record<string | number | symbol, unknown>;
export declare function mergeObject(objA: Record<string | number | symbol, unknown> | [unknown], objB: Record<string | number | symbol, unknown> | [unknown]): unknown[] | { export declare function mergeObject(objA: Record<string | number | symbol, unknown> | [unknown], objB: Record<string | number | symbol, unknown> | [unknown]): unknown[] | {
+1 -1
View File
@@ -1,3 +1,3 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export type Constructor<T> = new (...args: any[]) => T; // eslint-disable-line @typescript-eslint/no-explicit-any -- Only type declaration export type Constructor<T> = new (...args: any[]) => T; // eslint-disable-line @typescript-eslint/no-explicit-any -- Only type declaration
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase"; import type { SimpleStore } from "octagonal-wheels/databases/SimpleStoreBase";
export declare class StoredMapLike<U> { export declare class StoredMapLike<U> {
_store: SimpleStore<U>; _store: SimpleStore<U>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
interface InstanceHaveOnBindFunction<T> { interface InstanceHaveOnBindFunction<T> {
onBindFunction: (...params: T[]) => void; onBindFunction: (...params: T[]) => void;
} }
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { encryptHKDFWorker, decryptHKDFWorker } from "@lib/worker/bgWorker.ts"; import { encryptHKDFWorker, decryptHKDFWorker } from "@lib/worker/bgWorker.ts";
export declare const encryptHKDF: typeof encryptHKDFWorker; export declare const encryptHKDF: typeof encryptHKDFWorker;
export declare const decryptHKDF: typeof decryptHKDFWorker; export declare const decryptHKDF: typeof decryptHKDFWorker;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
/** /**
* Encrypts a string using a passphrase, unless the string is already encrypted. * Encrypts a string using a passphrase, unless the string is already encrypted.
* *
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { FilePathWithPrefix, ObsidianLiveSyncSettings } from "@lib/common/types"; import type { FilePathWithPrefix, ObsidianLiveSyncSettings } from "@lib/common/types";
export declare const EVENT_LAYOUT_READY = "layout-ready"; export declare const EVENT_LAYOUT_READY = "layout-ready";
export declare const EVENT_PLUGIN_LOADED = "plugin-loaded"; export declare const EVENT_PLUGIN_LOADED = "plugin-loaded";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import { EventHub } from "octagonal-wheels/events"; import { EventHub } from "octagonal-wheels/events";
declare global { declare global {
interface LSEvents { interface LSEvents {
+1 -1
View File
@@ -1,3 +1,3 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export { DirectFileManipulator, type DirectFileManipulatorOptions } from "./API/DirectFileManipulator.ts"; export { DirectFileManipulator, type DirectFileManipulatorOptions } from "./API/DirectFileManipulator.ts";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export interface Confirm { export interface Confirm {
askYesNo(message: string): Promise<"yes" | "no">; askYesNo(message: string): Promise<"yes" | "no">;
askString(title: string, key: string, placeholder: string, isPassword?: boolean): Promise<string | false>; askString(title: string, key: string, placeholder: string, isPassword?: boolean): Promise<string | false>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { FilePathWithPrefix, LoadedEntry, MetaEntry, UXFileInfo, UXFileInfoStub } from "@lib/common/types"; import type { FilePathWithPrefix, LoadedEntry, MetaEntry, UXFileInfo, UXFileInfoStub } from "@lib/common/types";
export interface DatabaseFileAccess { export interface DatabaseFileAccess {
delete: (file: UXFileInfoStub | FilePathWithPrefix, rev?: string) => Promise<boolean>; delete: (file: UXFileInfoStub | FilePathWithPrefix, rev?: string) => Promise<boolean>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export interface Rebuilder { export interface Rebuilder {
$performRebuildDB(method: "localOnly" | "remoteOnly" | "rebuildBothByThisDevice" | "localOnlyWithChunks"): Promise<void>; $performRebuildDB(method: "localOnly" | "remoteOnly" | "rebuildBothByThisDevice" | "localOnlyWithChunks"): Promise<void>;
$rebuildRemote(): Promise<void>; $rebuildRemote(): Promise<void>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { FilePath, FilePathWithPrefix, MetaEntry } from "@lib/common/models/db.type"; import type { FilePath, FilePathWithPrefix, MetaEntry } from "@lib/common/models/db.type";
import type { UXFileInfo, UXFileInfoStub, UXInternalFileInfoStub } from "@lib/common/models/fileaccess.type"; import type { UXFileInfo, UXFileInfoStub, UXInternalFileInfoStub } from "@lib/common/models/fileaccess.type";
export interface IFileHandler { export interface IFileHandler {
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
export interface KeyValueDatabase { export interface KeyValueDatabase {
get<T>(key: IDBValidKey): Promise<T>; get<T>(key: IDBValidKey): Promise<T>;
set<T>(key: IDBValidKey, value: T): Promise<IDBValidKey>; set<T>(key: IDBValidKey, value: T): Promise<IDBValidKey>;
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { DatabaseFileAccess } from "@lib/interfaces/DatabaseFileAccess"; import type { DatabaseFileAccess } from "@lib/interfaces/DatabaseFileAccess";
import type { Rebuilder } from "@lib/interfaces/DatabaseRebuilder"; import type { Rebuilder } from "@lib/interfaces/DatabaseRebuilder";
import type { IFileHandler } from "@lib/interfaces/FileHandler"; import type { IFileHandler } from "@lib/interfaces/FileHandler";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { FilePath, FilePathWithPrefix, UXDataWriteOptions, UXFileInfo, UXFileInfoStub, UXFolderInfo, UXStat } from "@lib/common/types"; import type { FilePath, FilePathWithPrefix, UXDataWriteOptions, UXFileInfo, UXFileInfoStub, UXFolderInfo, UXStat } from "@lib/common/types";
import type { CustomRegExp } from "@lib/common/utils"; import type { CustomRegExp } from "@lib/common/utils";
import type { FileWithFileStat, FileWithStatAsProp } from "@lib/common/models/fileaccess.type"; import type { FileWithFileStat, FileWithStatAsProp } from "@lib/common/models/fileaccess.type";
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-nocheck // @ts-nocheck
// REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 90de158 // REPO: https://github.com/vrtmrz/livesync-commonlib Commit hash: 0563f26
import type { FileEventType, FilePath, UXFileInfoStub, UXInternalFileInfoStub } from "@lib/common/types"; import type { FileEventType, FilePath, UXFileInfoStub, UXInternalFileInfoStub } from "@lib/common/types";
export type FileEvent = { export type FileEvent = {
type: FileEventType; type: FileEventType;

Some files were not shown because too many files have changed in this diff Show More