- .obsidian/app (conflict 15Tw 2026-11-16 1639).json - .obsidian/app.json - .obsidian/appearance.json - .obsidian/community-plugins.json - .obsidian/core-plugins.json - .obsidian/envoy.log - .obsidian/plugins/vault-sync-git/data.json - .obsidian/plugins/vault-sync-git/main.js - .obsidian/plugins/vault-sync-git/manifest.json - .obsidian/plugins/vault-sync-git/styles.css - …and 171 more Device: 15Tw Plugin: 1.8.0
22006 lines
1.3 MiB
Plaintext
22006 lines
1.3 MiB
Plaintext
/*! Vault Sync for Git (MIT). Includes qrcode-generator, Copyright (c) 2009 Kazuhiko Arase, MIT license. See THIRD_PARTY_NOTICES.md */
|
|
var __defProp = Object.defineProperty;
|
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
var __export = (target, all) => {
|
|
for (var name in all)
|
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
};
|
|
var __copyProps = (to, from, except, desc) => {
|
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
for (let key2 of __getOwnPropNames(from))
|
|
if (!__hasOwnProp.call(to, key2) && key2 !== except)
|
|
__defProp(to, key2, { get: () => from[key2], enumerable: !(desc = __getOwnPropDesc(from, key2)) || desc.enumerable });
|
|
}
|
|
return to;
|
|
};
|
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
|
|
// src/main.ts
|
|
var main_exports = {};
|
|
__export(main_exports, {
|
|
default: () => VaultSyncPlugin
|
|
});
|
|
module.exports = __toCommonJS(main_exports);
|
|
var import_obsidian22 = require("obsidian");
|
|
|
|
// src/auth.ts
|
|
function webBase(apiBase) {
|
|
const u = (apiBase || "https://api.github.com").replace(/\/+$/, "");
|
|
if (/^https:\/\/api\.github\.com$/i.test(u)) return "https://github.com";
|
|
const ghe = /^https:\/\/api\.([a-z0-9-]+)\.ghe\.com$/i.exec(u);
|
|
if (ghe) return `https://${ghe[1]}.ghe.com`;
|
|
return u.replace(/\/api\/v3$/i, "");
|
|
}
|
|
function fineGrainedTokenUrl(apiBase, vaultName) {
|
|
const q = new URLSearchParams({
|
|
name: `Obsidian Vault Sync (${vaultName})`.slice(0, 40),
|
|
description: "Used by the Vault Sync for Git Obsidian plugin to sync this vault. Contents read & write on the vault repository only.",
|
|
expires_in: "366",
|
|
contents: "write"
|
|
});
|
|
return `${webBase(apiBase)}/settings/personal-access-tokens/new?${q.toString()}`;
|
|
}
|
|
function classicTokenUrl(apiBase) {
|
|
return `${webBase(apiBase)}/settings/tokens/new?scopes=repo&description=${encodeURIComponent("Obsidian Vault Sync")}`;
|
|
}
|
|
|
|
// src/i18n.ts
|
|
var import_obsidian = require("obsidian");
|
|
|
|
// src/locales/en.ts
|
|
var en = {
|
|
// commands
|
|
"cmd.sync": "Sync now",
|
|
"cmd.review": "Review changes and sync",
|
|
"cmd.status": "Open sync status panel",
|
|
"cmd.pull": "Pull only (download changes)",
|
|
"cmd.push": "Back up only (upload changes)",
|
|
"cmd.preview": "Preview sync (dry run)",
|
|
"cmd.timeline": "Timeline: restore vault or folder to an earlier point",
|
|
"cmd.reset": "Make this device match the repository (discard local changes)",
|
|
"cmd.snapshot": "Create backup snapshot",
|
|
"cmd.wizard": "Run setup wizard",
|
|
"cmd.encryption": "End-to-end encryption: turn on or unlock",
|
|
"cmd.freeSpace": "Free up space on this device",
|
|
"cmd.onDemand": "Download files that aren't on this device",
|
|
"cmd.log": "Show sync log",
|
|
"cmd.history": "Show history of current file",
|
|
"cmd.compare": "Compare current file with the repository",
|
|
"cmd.recover": "Recover deleted files",
|
|
"cmd.openRepo": "Open repository in browser",
|
|
// ribbon / menus
|
|
"ribbon.sync": "Sync vault",
|
|
"ribbon.status": "Sync status",
|
|
"menu.history": "Version history",
|
|
"menu.compare": "Compare with repository",
|
|
// status panel
|
|
"health.title": "Sync status",
|
|
"health.upToDate": "Up to date",
|
|
"health.syncing": "Syncing\u2026",
|
|
"health.failed": "Last sync failed",
|
|
"health.attention": "Needs attention",
|
|
"health.notSynced": "Not synced yet",
|
|
"health.notSetUp": "Not set up",
|
|
"health.syncNow": "Sync now",
|
|
"health.review": "Review\u2026",
|
|
"health.wizard": "Run setup wizard",
|
|
"health.pending": "Pending",
|
|
"health.editedN": "{n} file(s) edited on this device since the last sync",
|
|
"health.noEdits": "No local edits waiting",
|
|
"health.remoteAhead": "The repository has newer changes from another device",
|
|
"health.remoteSame": "Nothing new in the repository",
|
|
"health.checking": "Checking the repository\u2026",
|
|
"health.nextSync": "Next scheduled sync {time}",
|
|
"health.noSchedule": "No periodic sync scheduled",
|
|
"health.conflicts": "Conflict copies ({n})",
|
|
"health.conflictsHint": "Both versions were kept. Compare them, keep what you need, then delete the copy.",
|
|
"health.compare": "Compare",
|
|
"health.open": "Open",
|
|
"health.deleteCopy": "Delete copy",
|
|
"health.skipped": "Skipped in last sync ({n})",
|
|
"health.devices": "Devices",
|
|
"health.thisDevice": "(this device)",
|
|
"health.lastSynced": "last synced {ago}",
|
|
"health.shared": "Shared folders",
|
|
"health.tools": "Tools",
|
|
"health.timeline": "Timeline & restore",
|
|
"health.snapshot": "Snapshot now",
|
|
"health.reset": "Make this device match the repository",
|
|
"health.freeSpace": "Free up space",
|
|
"health.log": "Sync log",
|
|
"health.settings": "Settings",
|
|
"health.openSettings": "Open settings",
|
|
"health.tryAgain": "Try again",
|
|
"health.enterPassphrase": "Enter passphrase",
|
|
"health.encrypted": "end-to-end encrypted",
|
|
// notices
|
|
"notice.upToDate": "Vault is up to date.",
|
|
"notice.synced": "Sync: {summary}",
|
|
"notice.failed": "Sync failed: {error}",
|
|
"notice.errors": "Sync finished with {n} error(s). Open the sync status panel for details.",
|
|
"notice.conflicts": "Sync: {n} conflict(s). Both versions kept; compare them in the sync status panel.",
|
|
"notice.busy": "A sync is running. Try again in a moment.",
|
|
// time
|
|
"time.never": "never",
|
|
"time.now": "just now",
|
|
"time.min": "{n} min ago",
|
|
"time.hour": "{n} h ago",
|
|
"time.day": "{n} d ago",
|
|
// settings
|
|
"s.wizard": "Setup wizard",
|
|
"s.wizardDesc": "Connect, pick or create a repository, and run the first sync step by step.",
|
|
"s.wizardBtn": "Run setup wizard",
|
|
"s.hConnection": "Connection",
|
|
"s.host": "Git host",
|
|
"s.hostDesc": "Support for hosts other than GitHub is in beta.",
|
|
"s.beta": "beta",
|
|
"s.token": "Access token",
|
|
"s.tokenDesc": "Stored securely on this device only (Obsidian secret storage), never in the synced settings. Enter it once per device.",
|
|
"s.tokenPlaceholder": "Paste your token",
|
|
"s.owner": "Owner",
|
|
"s.ownerDesc": "User or organisation that owns the repository.",
|
|
"s.ownerDescGitlab": "User or group path (subgroups allowed, for example team/notes).",
|
|
"s.ownerDescBitbucket": "Workspace that owns the repository.",
|
|
"s.ownerPlaceholder": "Username",
|
|
"s.repo": "Repository",
|
|
"s.repoDesc": "Use a private repository.",
|
|
"s.repoPlaceholder": "Repository name",
|
|
"s.branch": "Branch",
|
|
"s.check": "Check setup",
|
|
"s.checkDesc": "Test the token and repository, or create a new private repository.",
|
|
"s.test": "Test connection",
|
|
"s.testNoRepo": "Signed in as {user}. Now set a repository name.",
|
|
"s.testNotFound": "Signed in as {user}, but {repo} was not found or is not accessible.",
|
|
"s.testOkPrivate": "OK: {repo} (private).",
|
|
"s.testOkPublic": "OK: {repo}, but it is PUBLIC. Consider making it private.",
|
|
"s.testFailed": "Connection failed: {error}",
|
|
"s.createRepo": "Create private repository",
|
|
"s.created": "Created {url}",
|
|
"s.createFailed": "Could not create the repository: {error}. Some tokens need extra permissions for this; you can also create it on the host's website.",
|
|
"s.apiBase": "API base URL",
|
|
"s.apiBaseDesc": "{hint}. Stored on this device only.",
|
|
"s.device": "Device name",
|
|
"s.deviceDesc": "Shown in commit messages and conflict file names. Stored on this device only.",
|
|
"s.hBehaviour": "Sync behaviour",
|
|
"s.mode": "Mode",
|
|
"s.modeDesc": "Two-way sync, backup only (upload, never change local files), or pull only (read-only copy).",
|
|
"s.modeSync": "Two-way sync",
|
|
"s.modePush": "Backup only (push)",
|
|
"s.modePull": "Pull only (mirror)",
|
|
"s.onStartup": "Sync on startup",
|
|
"s.onStartupDesc": "Pull and push when the vault opens.",
|
|
"s.onChange": "Sync after edits",
|
|
"s.onChangeDesc": "Sync shortly after you stop editing.",
|
|
"s.delay": "Edit delay (seconds)",
|
|
"s.delayDesc": "How long to wait after the last edit before syncing.",
|
|
"s.interval": "Periodic sync (minutes)",
|
|
"s.intervalDesc": "Set to 0 to turn it off. Also catches changes to settings and configuration files.",
|
|
"s.onResume": "Sync when app comes back",
|
|
"s.onResumeDesc": "On mobile, sync when you switch back to Obsidian.",
|
|
"s.onBackground": "Sync when app goes to background",
|
|
"s.onBackgroundDesc": "Best-effort push when you leave Obsidian (mobile) or hide the window.",
|
|
"s.hScope": "What to sync",
|
|
"s.configDir": "Sync settings folder ({dir})",
|
|
"s.configDirDesc": "Themes, snippets, hotkeys, plugins and their settings. Workspace layout is excluded by default.",
|
|
"s.exclude": "Exclude patterns",
|
|
"s.excludeDesc": "gitignore style, one per line. {config} means the settings folder. Excluded files are never uploaded, downloaded or deleted.",
|
|
"s.maxSize": "Maximum file size in megabytes",
|
|
"s.maxSizeDesc": "Larger files are skipped (at most 2000 megabytes). On GitHub without large file storage the limit is 100 megabytes, the most GitHub accepts.",
|
|
"s.delayNow": "Now: {n} seconds.",
|
|
"s.resetConfirm": "The next sync compares every file with the repository. Nothing is deleted; files that differ are kept as both versions, so you may get conflict copies to tidy up.",
|
|
"m.restoreOverBody": '{path} on this device differs from the version from {date}. Restoring replaces its current contents. Use "Restore as copy" to keep both.',
|
|
"s.lfs": "Large file storage threshold in megabytes",
|
|
"s.lfsDesc": "Files at least this big are kept in the host's large file storage instead of the repository, which keeps the repository small and fast. Set to 0 to turn it off. Check your host's storage quota, since free plans are limited. When it is on, the maximum file size above can go up to 2000 megabytes.",
|
|
"s.hEncryption": "End-to-end encryption",
|
|
"s.encOn": "Encryption is on (unlocked on this device)",
|
|
"s.encOnDesc": "Notes, attachments and file names are encrypted before upload. Other devices need the same passphrase.",
|
|
"s.encRemovePlain": "Remove unencrypted copies\u2026",
|
|
"s.encLock": "Lock this device",
|
|
"s.encOff": "Encrypt your vault",
|
|
"s.encOffDesc": "Set a passphrase so the repository host only ever sees unreadable data. Also use this to unlock a repository that another device already encrypted.",
|
|
"s.encTurnOn": "Turn on or unlock\u2026",
|
|
"s.hShared": "Shared folders",
|
|
"s.sharedIntro": "Sync a folder with its own repository (for example a team folder) while the rest of the vault stays private.",
|
|
"s.sharedRowDesc": "{host}, branch {branch}",
|
|
"s.sharedRemove": "Stop syncing this folder separately",
|
|
"s.sharedAdd": "Add a shared folder",
|
|
"s.sharedAddBtn": "Add shared folder\u2026",
|
|
"s.hDevice": "This device only",
|
|
"s.deviceIntro": "These choices are stored on this device and are not synced, so a phone can sync less than a laptop. Files outside this device's scope are never uploaded, downloaded or deleted from here, and stay safe in the repository.",
|
|
"s.include": "Only sync these folders",
|
|
"s.includeDesc": "One folder or pattern per line, for example daily/ or projects/. Leave empty to sync everything.",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "Also exclude on this device",
|
|
"s.deviceExcludeDesc": "gitignore style, one per line, for example attachments/ or *.mp4",
|
|
"s.maxDownload": "Skip downloading files larger than this many megabytes",
|
|
"s.maxDownloadDesc": "Big attachments stay in the repository and can be downloaded on demand. 0 = no limit. Phones default to 25.",
|
|
"s.onDemand": "Files available on demand",
|
|
"s.onDemandDesc": "{n} large file(s) are in the repository but not on this device. {pinned} file(s) were downloaded on demand and stay in sync.",
|
|
"s.onDemandBrowse": "Browse and download\u2026",
|
|
"s.onDemandForget": "Forget on-demand list",
|
|
"s.onDemandForgotten": "On-demand list cleared. Use Free up space to remove those local copies.",
|
|
"s.freeSpace": "Free up space",
|
|
"s.freeSpaceDesc": "Remove local copies of files this device doesn't sync, but only when they are identical to the copy in the repository.",
|
|
"s.freeSpaceBtn": "Free up space\u2026",
|
|
"s.hConflicts": "Conflicts and safety",
|
|
"s.strategy": "When a file changed on both sides",
|
|
"s.strategyAuto": "Merge automatically (recommended)",
|
|
"s.strategyMarkers": "Merge, mark overlaps with <<<<<<< markers",
|
|
"s.strategyBoth": "Keep both (save my version as a copy)",
|
|
"s.strategyAsk": "Ask me each time",
|
|
"s.strategyLocal": "This device wins",
|
|
"s.strategyRemote": "{host} wins",
|
|
"s.review": "Review before manual sync",
|
|
"s.reviewDesc": "When you start a sync manually, first show every pending change with diffs and checkboxes. Automatic syncs are not affected.",
|
|
"s.eol": "Ignore line-ending-only changes",
|
|
"s.eolDesc": "A file whose only change is its line ending style is treated as unchanged, so editors on other operating systems don't cause needless uploads or conflicts.",
|
|
"s.guard": "Delete guard",
|
|
"s.guardDesc": "Ask before a sync deletes many files at once.",
|
|
"s.guardThreshold": "Delete guard threshold",
|
|
"s.guardThresholdDesc": "Ask when deleting more than this many files (left) or this percent of the vault (right), whichever is larger.",
|
|
"s.hBackup": "Backup",
|
|
"s.snapshot": "Daily snapshot",
|
|
"s.snapshotDesc": "Once a day, tag the current state in the repository with a dated snapshot so you can always get back to it.",
|
|
"s.hAdvanced": "Advanced",
|
|
"s.commitMsg": "Commit message",
|
|
"s.commitMsgDesc": "Variables: {{device}}, {{summary}}, {{date}}, {{count}}, {{files}}, {{trigger}}, {{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "Full rescan every (minutes)",
|
|
"s.fullScanDesc": "Between full rescans only files Obsidian reports as edited are re-checked, and the settings folder is read from disk at most every 5 minutes. Keeps phones fast.",
|
|
"s.notices": "Notifications",
|
|
"s.noticesAll": "Every sync",
|
|
"s.noticesErrors": "Errors and conflicts only",
|
|
"s.noticesNone": "None",
|
|
"s.resetState": "Reset sync state",
|
|
"s.resetStateDesc": "Forget what was last synced on this device. The next sync compares everything and never deletes; differing files are kept as both versions.",
|
|
"s.resetBtn": "Reset",
|
|
"s.resetDone": "Sync state reset.",
|
|
// setup wizard
|
|
"w.stepConnect": "Connect",
|
|
"w.stepRepo": "Repository",
|
|
"w.stepVault": "This vault",
|
|
"w.stepSync": "First sync",
|
|
"w.title": "Set up vault sync",
|
|
"w.sub": "Your notes are stored in a private Git repository you own, on GitHub, GitLab, Codeberg, Gitea, Forgejo or Bitbucket. Works on desktop and mobile; nothing to install.",
|
|
"w.where": "Where should your vault live?",
|
|
"w.apiUrl": "Server API URL",
|
|
"w.deviceName": "Name this device",
|
|
"w.deviceNameDesc": "Shown in history and on conflict copies.",
|
|
"w.signedIn": "Signed in as {user}",
|
|
"w.tokenFailed": "That token didn't work: {error}",
|
|
"w.alreadyConnected": "Already connected on this device",
|
|
"w.continue": "Continue",
|
|
"w.connectWith": "Connect with a {host} token",
|
|
"w.tokenStored": "The token is stored securely on this device only, never in synced settings.",
|
|
"w.token": "Token",
|
|
"w.pasteFirst": "Paste a token first.",
|
|
"w.repoTitle": "Choose a repository",
|
|
"w.repoSub": "Signed in as {user}. Pick the repository for this vault, or create a new private one.",
|
|
"w.createNew": "Create a new private repository",
|
|
"w.create": "Create",
|
|
"w.createFailed": "Could not create the repository: {error}. Some tokens need extra permissions for this; you can also create it on the host's website and pick it below.",
|
|
"w.useExisting": "Or use an existing repository",
|
|
"w.filter": "Filter\u2026",
|
|
"w.loadingRepos": "Loading your repositories\u2026",
|
|
"w.noMatch": "No repositories match.",
|
|
"w.private": "private",
|
|
"w.public": "PUBLIC",
|
|
"w.publicTitle": "Public repository",
|
|
"w.publicBody": "{repo} is public: anyone on the internet could read your notes. Use a private repository unless you mean to publish them.",
|
|
"w.useAnyway": "Use it anyway",
|
|
"w.listFailed": "Could not list repositories: {error}",
|
|
"w.back": "Back",
|
|
"w.vaultTitle": "This vault and the repository",
|
|
"w.looking": "Looking at both sides\u2026",
|
|
"w.readFailed": "Could not read the repository: {error}",
|
|
"w.counts": "This vault: {local} file(s) \xB7 Repository: {remote} file(s)",
|
|
"w.optUpload": "Upload this vault",
|
|
"w.optUploadDesc": "This is the first device. Everything here is copied to the repository.",
|
|
"w.optDownload": "Download the vault from the repository",
|
|
"w.optDownloadDesc": "This device is new. Files from the repository replace any starter files here.",
|
|
"w.optMerge": "Merge, keep both when different",
|
|
"w.optMergeDesc": "Nothing is overwritten; differing files are kept side by side.",
|
|
"w.optMergeSafe": "Merge, keep both when different (safest)",
|
|
"w.optMergeSafeDesc": "Files only on one side are copied over. Files that differ are kept side by side.",
|
|
"w.optRemoteWins": "Merge, the repository wins when different",
|
|
"w.optRemoteWinsDesc": "Use the repository's version when a file exists on both sides. This device's version goes to the trash.",
|
|
"w.optLocalWins": "Merge, this device wins when different",
|
|
"w.optLocalWinsDesc": "Use this device's version when a file exists on both sides.",
|
|
"w.neverDeletes": "Nothing is ever deleted on the first sync.",
|
|
"w.encrypted": "\u{1F512} This repository is end-to-end encrypted. Unlock it to continue.",
|
|
"w.encryptOpt": "Encrypt end-to-end (optional)",
|
|
"w.encryptOptDesc": "The repository host only sees unreadable data. Every device will need this passphrase, and it can't be recovered.",
|
|
"w.passphrase": "Passphrase",
|
|
"w.encOnDevice": "\u{1F512} End-to-end encryption is on for this device.",
|
|
"w.alsoConfig": "Also sync settings, themes and plugins ({dir})",
|
|
"w.start": "Start first sync",
|
|
"w.unlockFirst": "Unlock the encrypted repository first.",
|
|
"w.saveTitle": "Save your passphrase",
|
|
"w.saveBody": "Have you saved this passphrase somewhere safe? There is no way to recover it, and without it the copy in the repository can't be read.",
|
|
"w.saved": "I have saved it",
|
|
"w.syncTitle": "First sync",
|
|
"w.syncSub": "This can take a while for a large vault. You can close this window; sync continues in the background.",
|
|
"w.starting": "Starting\u2026",
|
|
"w.doneTitle": "You're all set",
|
|
"w.tip1": "Sync runs on startup, after edits and periodically. The ribbon button syncs now.",
|
|
"w.tip2": "The sync status panel (activity icon) shows what's pending and anything that needs attention.",
|
|
"w.tip3": "On each other device: install the plugin and run this wizard with the same repository.",
|
|
"w.openStatus": "Open sync status",
|
|
"w.done": "Done",
|
|
// encryption and shared folders
|
|
"e.passShort": "Use at least 12 characters. A few random words work well.",
|
|
"e.passOk": "OK. Longer is stronger: 16+ characters or 4+ random words.",
|
|
"e.passStrong": "Strong.",
|
|
"e.checking": "Checking the repository\u2026",
|
|
"e.unlockTitle": "Unlock encrypted vault",
|
|
"e.upgrade": "Upgrade encryption\u2026",
|
|
"e.upgradeDesc": "This repository uses the older format: a file's encrypted content isn't tied to its name, so someone with write access could swap two files without it showing. Upgrading re-encrypts every file once, with the same passphrase, so each only opens under its own name.",
|
|
"e.upgradeTitle": "Upgrade end-to-end encryption",
|
|
"e.upgradeBody": "This device syncs first, then every encrypted file in the repository is re-encrypted and uploaded again in one commit (same passphrase). Other devices switch on their next sync. Devices with plugin versions before 1.8.0 can't read the new format and stop syncing until they update.",
|
|
"e.upgradeConfirm": "Upgrade",
|
|
"e.upgraded": "Encryption upgraded: {n} file(s) re-encrypted.",
|
|
"e.upgradeFailed": "Couldn't upgrade encryption: {error}",
|
|
"e.unlockBody": "This repository is end-to-end encrypted. Enter its passphrase to sync on this device. The key is kept in this device's secure storage.",
|
|
"e.unlocking": "Unlocking\u2026 (this takes a second on purpose)",
|
|
"e.unlocked": "Encrypted vault unlocked on this device.",
|
|
"e.unlock": "Unlock",
|
|
"e.enableTitle": "Turn on end-to-end encryption",
|
|
"e.point1": "Notes, attachments and file names are encrypted on this device before upload. The repository host only stores unreadable data.",
|
|
"e.point2": "Every device needs the same passphrase. There is no way to recover it: if you forget it, the copy in the repository can't be read.",
|
|
"e.point3": "If this repository already has unencrypted notes, they remain in its history. For full privacy use a new, empty repository.",
|
|
"e.point4": "You can't browse the notes on the host's website any more; use the plugin's history and timeline instead.",
|
|
"e.repeat": "Repeat passphrase",
|
|
"e.ack": "I have saved the passphrase somewhere safe, for example in a password manager",
|
|
"e.turnOn": "Turn on encryption",
|
|
"e.mismatch": "The passphrases don't match.",
|
|
"e.confirmSaved": "Please confirm you've saved the passphrase.",
|
|
"e.settingUp": "Setting up\u2026 (this takes a second on purpose)",
|
|
"e.enabled": "Encryption is on. The next sync uploads everything encrypted.",
|
|
"sh.intro": "Sync one folder with its own repository, for example a team folder, while the rest of your vault stays in your private repository. The folder maps to the root of that repository, or to a folder inside it.",
|
|
"sh.folder": "Folder",
|
|
"sh.folderPlaceholder": "Work",
|
|
"sh.ownerDesc": "User, organisation, group or workspace of the shared repository.",
|
|
"sh.token": "Token (optional)",
|
|
"sh.tokenDesc": "Leave empty to use your main token (same host only). Stored securely on this device.",
|
|
"sh.note": "Files already in this folder in your main repository stay there (in its history) but are no longer synced to it. Encryption does not apply to shared folders, because collaborators need to read them.",
|
|
"sh.add": "Add",
|
|
"sh.required": "Folder, owner and repository are required.",
|
|
"sh.overlap": "That folder overlaps an existing shared folder.",
|
|
"sh.checking": "Checking access\u2026",
|
|
"sh.noAccess": "Can't access {repo}: {error}",
|
|
"sh.added": "Shared folder added: {folder} \u2194 {repo}",
|
|
// dialogs
|
|
"u.andMore": "\u2026and {n} more",
|
|
"u.binaryDiff": "Binary file: no text diff. {a}: {as} bytes \xB7 {b}: {bs} bytes.",
|
|
"u.loadFailed": "Could not load: {error}",
|
|
"u.conflictTitle": "Conflict: {path}",
|
|
"u.repository": "Repository",
|
|
"u.conflictBody": "This file changed on this device and in the repository ({host}) since the last sync.",
|
|
"u.pickHint": "For each change, choose which version to keep. Choosing both keeps the lines from this device first.",
|
|
"u.thisDevice": "This device",
|
|
"u.chooseChanges": "Choose changes",
|
|
"u.fullDiff": "Full diff",
|
|
"u.apply": "Apply my choices",
|
|
"u.binaryConflict": "Binary file. This device: {a} bytes \xB7 {host}: {b} bytes.",
|
|
"u.wholeFile": "Or take a whole file",
|
|
"u.keepBoth": "Keep both files",
|
|
"u.markers": "Merge with markers",
|
|
"u.guardTitle": "Large deletion detected",
|
|
"u.guardBody": "This sync would delete {n} files. Please confirm this is intended.",
|
|
"u.guardLocal": "Delete on this device (moved to trash): {n}",
|
|
"u.guardRemote": "Delete in the repository (kept in history): {n}",
|
|
"u.cancelSync": "Cancel sync",
|
|
"u.skipDeletes": "Sync but skip deletions",
|
|
"u.deleteThem": "Delete them",
|
|
"u.gDownload": "Download from the repository",
|
|
"u.gUpload": "Upload to the repository",
|
|
"u.gMoveLocal": "Renamed elsewhere (rename here)",
|
|
"u.gAdopt": "Renamed here, edited elsewhere",
|
|
"u.gRenameMerge": "Renamed and edited on both sides (merge)",
|
|
"u.gConflict": "Changed on both sides",
|
|
"u.gDeleteLocal": "Delete on this device",
|
|
"u.gDeleteRemote": "Delete in the repository",
|
|
"u.reviewTitle": "Review changes",
|
|
"u.upToDate": "Everything is up to date.",
|
|
"u.reviewHint": "Untick anything you don't want to sync yet. Unticked files are left alone on both sides until a later sync.",
|
|
"u.cancel": "Cancel",
|
|
"u.syncAll": "Sync all",
|
|
"u.syncSelected": "Sync {n} selected",
|
|
"u.logTitle": "Sync log",
|
|
"u.noActivity": "No sync activity yet.",
|
|
"u.loading": "Loading from the repository\u2026",
|
|
"u.nothingFound": "Nothing found.",
|
|
"u.failed": "Failed: {error}",
|
|
"u.currentFile": "Current file",
|
|
"u.thisVersion": "This version",
|
|
"u.compareCurrent": "Compare with current",
|
|
"u.fullVersion": "Full version",
|
|
"u.restoreCopy": "Restore as copy",
|
|
"u.restoreThis": "Restore this version",
|
|
"u.pickFolder": "Choose a folder to restore",
|
|
"u.pickRemoteOnly": "Download a file that isn't on this device",
|
|
"u.timelineTitle": "Timeline",
|
|
"u.timelineHint": "Every sync is a point you can go back to. Restoring adds a new commit on top, so the current state stays in history too.",
|
|
"u.browseFiles": "Browse files",
|
|
"u.restoreFolder": "Restore a folder\u2026",
|
|
"u.restoreVault": "Restore whole vault",
|
|
"d.unified": "Unified",
|
|
"d.split": "Side by side",
|
|
"d.same": "No differences.",
|
|
"d.unchanged": "\u22EF {n} unchanged line(s)",
|
|
"d.both": "Both",
|
|
"d.change": "Change {n}",
|
|
"d.nothing": "(nothing)",
|
|
"d.identical": "The two versions are identical.",
|
|
// plugin notices and dialogs
|
|
"m.embedMissing": "{path} ({mb} MB) isn't downloaded to this device.",
|
|
"m.download": "Download",
|
|
"m.downloadingOne": "Downloading {path}\u2026",
|
|
"m.downloadingMany": "Downloading {n} files\u2026",
|
|
"m.allLocal": "Every file is on this device.",
|
|
"m.plainTitle": "Remove unencrypted copies",
|
|
"m.plainBody": "Delete these unencrypted files from the repository in one commit. Your notes stay safe: their encrypted copies are already uploaded. Note: older versions remain in the repository's history.",
|
|
"m.deleteFrom": "Delete from {host}",
|
|
"m.remove": "Remove",
|
|
"m.plainRemoved": "Removed {n} unencrypted file(s) from the repository.",
|
|
"m.plainNone": "No unencrypted files found.",
|
|
"m.removeFailed": "Could not remove files: {error}",
|
|
"m.firstFailed": "The first sync failed: {error}. You can retry from the sync status panel.",
|
|
"m.syncFinished": "Sync finished.",
|
|
"m.alreadyInSync": "Everything was already in sync.",
|
|
"m.nDownloaded": "{n} downloaded",
|
|
"m.nUploaded": "{n} uploaded",
|
|
"m.nBoth": "{n} kept as both versions",
|
|
"m.nSkipped": "{n} skipped (see status panel)",
|
|
"m.firstDone": "First sync complete: {summary}.",
|
|
"m.noChanges": "no changes",
|
|
"m.freeBody": "Remove {n} local file(s) ({mb} MB) that this device doesn't sync (outside its folders or above its download limit). Each one is identical to the copy in the repository, which is kept. They go to the trash.",
|
|
"m.removeHere": "Remove from this device",
|
|
"m.freeNothing": "Nothing to remove: no local files outside this device's scope are safely in the repository.",
|
|
"m.freed": "Freed {mb} MB.",
|
|
"m.freeFailed": "Could not free up space: {error}",
|
|
"m.needToken": "Add an access token in Settings \u2192 Vault Sync for Git.",
|
|
"m.needRepo": "Set the repository owner and name in the plugin settings.",
|
|
"m.snapshotOk": "Snapshot created: {tag}",
|
|
"m.snapshotFailed": "Snapshot failed: {error}",
|
|
"m.reviewFailed": "Could not prepare review: {error}",
|
|
"m.filesAt": "Files at {sha} ({date})",
|
|
"m.bytes": "{n} bytes",
|
|
"m.whatFolder": 'folder "{folder}"',
|
|
"m.whatVault": "whole vault",
|
|
"m.restoring": "Restoring {what}\u2026",
|
|
"m.restoreTitle": "Restore {what}",
|
|
"m.restoreBody": "Bring the {what} back to how it was on {date} ({sha}). This is added as a new commit, so today's version stays in history and you can undo it the same way.",
|
|
"m.restoredOlder": "Restored to the older version",
|
|
"m.broughtBack": "Brought back (deleted since)",
|
|
"m.removedSince": "Removed (created since)",
|
|
"m.restore": "Restore",
|
|
"m.restored": "Restored {what}: {n} file(s) changed.",
|
|
"m.restoreSame": "The {what} already matches that point in time.",
|
|
"m.restoreFailed": "Restore failed: {error}",
|
|
"m.comparing": "Comparing with the repository\u2026",
|
|
"m.resetBody": "Discard this device's unsynced changes and make it an exact copy of the repository. Replaced and removed files are moved to the trash first, so you can still recover them.",
|
|
"m.replacedWith": "Replaced with the {host} version",
|
|
"m.downloaded": "Downloaded",
|
|
"m.removedNotInRepo": "Removed (not in the repository)",
|
|
"m.matchRepo": "Match repository",
|
|
"m.matched": "This device now matches the repository ({n} file(s) changed).",
|
|
"m.alreadyMatches": "This device already matches the repository.",
|
|
"m.resetFailed": "Reset failed: {error}",
|
|
"m.repoNotFound": "Could not find the repository. Check the connection settings.",
|
|
"m.history": "History: {path}",
|
|
"m.notInVersion": "File did not exist in that version.",
|
|
"m.restoredFile": "Restored {path}. It will be uploaded on the next sync.",
|
|
"m.versionFailed": "Could not load version: {error}",
|
|
"m.recentlyDeleted": "Recently deleted files",
|
|
"m.deletedOn": "Deleted {date} \xB7 {msg}",
|
|
// status panel and hosts
|
|
"h.notConnected": "Not connected yet",
|
|
"h.notConnectedHint": "Add a {host} access token in the plugin settings.",
|
|
"h.badToken": "{host} didn't accept your token",
|
|
"h.badTokenHint": "It may have expired or been revoked. Create a new token and paste it in settings.",
|
|
"h.repoMissing": "Repository not found",
|
|
"h.repoMissingHint": "Check the owner and repository name, and that the token has access to this repository.",
|
|
"h.rateLimit": "{host} rate limit reached",
|
|
"h.rateLimitHint": "{host} allows a limited number of requests per hour. Sync will work again shortly.",
|
|
"h.busy": "{host} was busy",
|
|
"h.busyHint": "Another device was syncing at the same moment. Try again.",
|
|
"h.offline": "Can't reach {host}",
|
|
"h.offlineHint": "Check your internet connection. Sync will retry automatically.",
|
|
"h.encrypted": "This vault is encrypted",
|
|
"h.encryptedHint": "Enter the passphrase to sync on this device.",
|
|
"h.otherKey": "Different encryption key",
|
|
"h.otherKeyHint": "The repository was encrypted with another passphrase. Unlock it again.",
|
|
"h.pullOnly": "Not available in pull-only mode",
|
|
"h.pullOnlyHint": "Switch the mode in settings to push changes.",
|
|
"h.branchMissing": "Branch not found",
|
|
"h.failed": "Sync failed",
|
|
"h.onDemand": "Not downloaded to this device ({n})",
|
|
"h.onDemandHint": "{mb} MB of large files stay in the repository until you need them.",
|
|
"h.budget": "API budget: {budget}",
|
|
"h.budgetValue": "{left}/{limit} requests left, resets {time}",
|
|
"h.unknown": "unknown",
|
|
"h.checkFailed": "Could not check {host}: {error}",
|
|
"h.deviceScope": "This device syncs {what}.",
|
|
"h.only": "only {list}",
|
|
"h.excluding": "excluding {list}",
|
|
"h.noDownloadsOver": "no downloads over {mb} MB",
|
|
"h.notOnDevice": "not synced on this device",
|
|
"hs.ghApi": "Change only for GitHub Enterprise Server, for example https://github.example.com/api/v3",
|
|
"hs.glApi": "gitlab.com, or your server, for example https://gitlab.example.com/api/v4",
|
|
"hs.gtApi": "Your server's API, for example https://codeberg.org/api/v1 or https://git.example.com/api/v1",
|
|
"hs.bbApi": "Bitbucket Cloud: https://api.bitbucket.org/2.0",
|
|
"hs.gh1": `Open GitHub's token page; name, expiry and "Contents: read and write" are prefilled.`,
|
|
"hs.gh1Link": "Create a fine-grained token",
|
|
"hs.gh2": 'Under Repository access choose "Only select repositories" and pick your vault repository (add Administration: read and write if you want the plugin to create the repository).',
|
|
"hs.gh3": "Generate, copy, and paste it here.",
|
|
"hs.gh4": "Simpler alternative (access to all repositories):",
|
|
"hs.gh4Link": "classic token with the repo scope",
|
|
"hs.gl1": "Create a personal access token with the api scope (needed to write commits).",
|
|
"hs.gl1Link": "Open GitLab's token page",
|
|
"hs.gl2": "Tip: a project access token (Settings \u2192 Access tokens in your vault project, role Developer, scope api) limits access to that one project.",
|
|
"hs.paste": "Copy and paste it here.",
|
|
"hs.gt1": 'Open Settings \u2192 Applications and generate a token with "repository: Read and Write" and "user: Read". To let the plugin create the repository, choose "user: Read and Write" instead.',
|
|
"hs.gt1Link": "Open the applications page",
|
|
"hs.gt2": "Requires Gitea 1.20+ or Forgejo 1.20+ (multi-file commit API).",
|
|
"hs.bb1": "Easiest: in your vault repository open Repository settings \u2192 Security \u2192 Access tokens and create one with Repositories: Read and Write. Paste it here (enter the owner and repository in settings).",
|
|
"hs.bb1Link": "Bitbucket access tokens help",
|
|
"hs.bb2": "To pick or create repositories in the wizard, use an Atlassian API token with Bitbucket scopes instead, entered as email:token.",
|
|
"hs.bb2Link": "Create an API token",
|
|
"hs.bb3": "Note: the first sync downloads every file once to index it; later syncs only fetch what changed.",
|
|
"u.skipped": "Skipped: {n}",
|
|
"u.loadingShort": "Loading\u2026",
|
|
"u.diff": "Diff",
|
|
"h.lastSync": "Last sync {ago}",
|
|
"m.sharedFailed": "Shared folder sync failed:",
|
|
"m.offline": "Offline: will sync when back online",
|
|
"m.filesFailed": "{n} file(s) failed: see sync status",
|
|
"m.copiesCreated": "{n} conflict copy(ies) created",
|
|
"m.statusTip": "{title}. Click for sync status.",
|
|
"m.notThere": "{host} (file not there)",
|
|
"app.signIn": "Sign in with GitHub",
|
|
"app.signInDesc": "Approve access in your browser instead of creating a token. The app only gets the repositories you choose, and access renews automatically.",
|
|
"app.signInBtn": "Sign in",
|
|
"app.orToken": "Or use an access token",
|
|
"app.starting": "Contacting {host}\u2026",
|
|
"app.notAvailable": "Sign in with {host} isn't available for this server. Use an access token.",
|
|
"app.codeBody": "Copy this code, then paste it on the {host} page that opens:",
|
|
"app.copy": "Copy code",
|
|
"app.copied": "Code copied",
|
|
"app.open": "Copy and open {host}",
|
|
"app.waiting": "Waiting for you to approve on {host}\u2026",
|
|
"app.expired": "The code expired. Close this window and sign in again.",
|
|
"app.denied": "Access was denied on {host}.",
|
|
"app.disabled": "This GitHub App doesn't allow device sign-in. Use an access token, or ask its owner to enable device flow.",
|
|
"app.failed": "Sign-in failed: {error}",
|
|
"app.signedIn": "Signed in with GitHub",
|
|
"app.signedInDesc": "This device uses the Vault Sync for GitHub GitHub App. Access renews automatically. Stored on this device only.",
|
|
"app.signOut": "Sign out",
|
|
"app.chooseRepos": "Choose repositories",
|
|
"app.chooseReposDesc": "Don't see your vault repository? Add it on GitHub, or create one there first. The list updates by itself when you come back.",
|
|
"app.createOnGitHub": "Create on GitHub",
|
|
"app.refresh": "Refresh list",
|
|
"app.expiredSession": "Your {host} sign-in has expired. Sign in again in Settings \u2192 Vault Sync for Git.",
|
|
"app.clientId": "GitHub App client ID (optional)",
|
|
"app.clientIdDesc": "To offer Sign in with GitHub on GitHub Enterprise: the client ID of a GitHub App with device flow enabled and Contents read and write. Stored on this device only.",
|
|
"app.slug": "GitHub App URL name",
|
|
"app.slugDesc": "The NAME in https://your-server/apps/NAME, used to open the app's install page.",
|
|
"h.refresh": "Refresh",
|
|
"h.setupHint": "Run the setup wizard to connect a Git host and repository.",
|
|
"h.resolve": "Resolve",
|
|
"h.resolveTitle": "Resolve conflict: {path}",
|
|
"h.currentNote": "Current note",
|
|
"h.conflictCopy": "Conflict copy",
|
|
"h.tokenExpires": "Your access token expires in {days} day(s). Create a new one and paste it in settings.",
|
|
"h.tokenExpiresToday": "Your access token expires today. Create a new one and paste it in settings.",
|
|
"h.newToken": "Create a new token",
|
|
"u.previewTitle": "Preview sync",
|
|
"u.previewHint": "Nothing has changed yet. This is what the next sync would do.",
|
|
"u.close": "Close",
|
|
"s.configDirWarn": "Plugin code syncs too, so anyone who can push to the repository can run code on your devices. Synced plugins load after a restart.",
|
|
"p.scanning": "Scanning files\u2026",
|
|
"p.checking": "Checking {host}\u2026",
|
|
"p.downloading": "Downloading {done}/{total}",
|
|
"p.uploading": "Uploading {done}/{total}",
|
|
"cmd.syncFile": "Sync current file now",
|
|
"cmd.setupLink": "Add another device (setup link)",
|
|
"x.pending": "Edited since the last sync",
|
|
"x.conflict": "Conflict copy: resolve it in the sync status panel",
|
|
"os.title": "Another sync tool is active",
|
|
"os.found": "Also syncing this vault: {list}.",
|
|
"os.gitFolder": "a Git repository (.git folder)",
|
|
"os.hint": "Two tools writing the same files can overwrite each other's changes. Use one of them for this vault, or make sure they sync different folders.",
|
|
"link.addDevice": "Add another device",
|
|
"link.addDeviceDesc": "Creates a link and a QR code that set up another device with this repository and these sync settings.",
|
|
"link.createBtn": "Create setup link",
|
|
"link.createTitle": "Add another device",
|
|
"link.createIntro": "Open this link on the new device (or scan the code with its camera) after installing the plugin there. It fills in the host, repository and sync settings.",
|
|
"link.includeToken": "Include the access token",
|
|
"link.includeTokenDesc": "The token is encrypted with a one-time code shown below. Without the code the link is useless; share the code separately.",
|
|
"link.signInNote": "This device is signed in with {host}. The new device signs in itself, so no token is included.",
|
|
"link.encrypting": "Encrypting\u2026",
|
|
"link.link": "Setup link",
|
|
"link.linkDesc": "Send it to yourself, for example by email or a notes app.",
|
|
"link.copyLink": "Copy link",
|
|
"link.copied": "Copied",
|
|
"link.qrLabel": "QR code of the setup link",
|
|
"link.codeIntro": "One-time code (type it on the new device):",
|
|
"link.keepApart": "Don't send the code together with the link.",
|
|
"link.noSecrets": "The link contains no token or password. The new device connects with its own sign-in or token.",
|
|
"link.applyTitle": "Set up this device from a link",
|
|
"link.applyIntro": 'This link sets up sync for the vault "{vault}":',
|
|
"link.server": "Server: {url}",
|
|
"link.withSettings": "Also syncs the settings folder, with the same choices",
|
|
"link.withToken": "Includes an access token (needs the one-time code)",
|
|
"link.subdir": "Folder in the repository: {folder}",
|
|
"link.onlyYours": "Only continue if you created this link yourself. A link from someone else could connect your vault to their repository.",
|
|
"link.replaces": "This replaces the current connection to {repo}.",
|
|
"link.code": "One-time code",
|
|
"link.codeDesc": "Shown on the device that created the link.",
|
|
"link.apply": "Set up this device",
|
|
"link.needCode": "Enter the one-time code first.",
|
|
"link.decrypting": "Checking the code\u2026",
|
|
"link.wrongCode": "That code doesn't match this link.",
|
|
"link.invalid": "This setup link is incomplete or damaged. Create a new one on your other device.",
|
|
"link.wizardHint": 'Already syncing on another device? There, choose "Add another device" in the status panel or settings, and open the link here instead.',
|
|
"s.cfgAppearance": "Appearance and themes",
|
|
"s.cfgAppearanceDesc": "Theme, fonts, accent color and installed themes.",
|
|
"s.cfgSnippets": "CSS snippets",
|
|
"s.cfgHotkeys": "Hotkeys",
|
|
"s.cfgCore": "Core settings",
|
|
"s.cfgCoreDesc": "Editor, files and links, core plugins and their options.",
|
|
"s.cfgPluginList": "Which community plugins are on",
|
|
"s.cfgPluginListDesc": "Turning a plugin on or off on one device does the same on the others.",
|
|
"s.cfgPluginCode": "Community plugin code",
|
|
"s.cfgPluginCodeDesc": "Installs and updates plugins on every device. Synced plugin code can run on all your devices.",
|
|
"s.cfgPluginSettings": "Community plugin settings",
|
|
"s.cfgPerPlugin": "Choose per plugin",
|
|
"s.cfgPerPluginDesc": "Overrides for single plugins ({n} set).",
|
|
"s.cfgPerPluginBtn": "Choose",
|
|
"s.cfgPerPluginIntro": 'For each plugin, follow the switches above or choose what syncs. Plugins that hold device-specific data (paths, window layout) are good candidates for "this device only".',
|
|
"s.cfgNoPlugins": "No community plugins are installed.",
|
|
"s.cfgThisPlugin": "this plugin",
|
|
"s.cfgFollow": "Follow the switches",
|
|
"s.cfgAll": "Code and settings",
|
|
"s.cfgCodeOnly": "Code only",
|
|
"s.cfgSettingsOnly": "Settings only",
|
|
"s.cfgNone": "This device only",
|
|
"s.hidden": "Sync hidden files and folders",
|
|
"s.hiddenDesc": "Files and folders at the top of the vault whose names start with a dot, such as .github or .editorconfig. Never .git, .trash or the settings folder. Changes are picked up within a few minutes.",
|
|
"s.gitignore": "Respect the vault's .gitignore",
|
|
"s.gitignoreDesc": "Files listed in the vault's .gitignore files are not synced (a .gitignore inside a folder applies to that folder, as in Git), and the .gitignore files themselves sync to every device. Your exclude patterns still have the last word.",
|
|
"s.onOpen": "Sync when opening a note",
|
|
"s.onOpenDesc": "Fetches the latest version before you edit, at most every 30 seconds.",
|
|
"s.badges": "Show sync status in the file explorer",
|
|
"s.badgesDesc": "A dot on files edited since the last sync, and a warning on conflict copies.",
|
|
"s.noticesAuto": "Automatic (changes on phones, errors on desktop)",
|
|
"s.noticesChanges": "When files changed, and errors",
|
|
"s.cfgPluginSettingsDesc": "Each plugin's options (data.json).",
|
|
"link.tooLongForQr": "This link is too long for a QR code. Copy the link instead.",
|
|
"link.withHidden": "Also syncs hidden files at the top of the vault",
|
|
"link.withGitignore": "Respects the vault's .gitignore",
|
|
"link.withExclude": "Replaces this vault's exclude patterns",
|
|
"s.apiBaseInvalid": "Enter the API address starting with https:// (http:// only for a server on this computer).",
|
|
"s.lfsAboveMax": "The large file threshold is at or above the maximum file size ({max} MB), so large file storage will never be used. Lower the threshold or raise the maximum.",
|
|
"s.guardMinLabel": "Minimum number of deletions",
|
|
"s.guardPercentLabel": "Minimum percentage of files",
|
|
"sh.notFound": "repository not found, or not accessible with this token",
|
|
"m.unlockToBrowse": "This repository is end-to-end encrypted. Enter the passphrase on this device to browse it.",
|
|
"m.beforeCommit": "before {sha}",
|
|
"m.mergedN": "merged {n}",
|
|
"m.nothingToSnapshot": "Nothing to snapshot yet. Sync first.",
|
|
"m.queued": "A sync is running. Yours starts right after it.",
|
|
"h.deleteCopyBody": "The conflict copy goes to the trash (or is deleted, depending on Obsidian's Deleted files setting). Make sure you kept what you need from it.",
|
|
"u.binaryFile": "(binary file, {n} bytes)",
|
|
"u.selectGroup": "Select all: {group}",
|
|
"u.includeFile": "Include {path} in this sync",
|
|
"m.pausedStatus": "Automatic sync paused",
|
|
"m.paused": "Automatic sync paused on this device until you resume it. Manual sync still works.",
|
|
"m.pausedFor": "Automatic sync paused for {n} minutes on this device.",
|
|
"m.resumed": "Automatic sync resumed.",
|
|
"cmd.pause": "Pause or resume automatic sync",
|
|
"cmd.pauseHour": "Pause automatic sync for an hour",
|
|
"cmd.diagnostics": "Copy diagnostics (for a bug report)",
|
|
"cmd.openOnHost": "Open current file on the host",
|
|
"cmd.historyOnHost": "Open history of current file on the host",
|
|
"cmd.copyHostLink": "Copy link to current file on the host",
|
|
"menu.shareFolder": "Share this folder with a repository\u2026",
|
|
"menu.excludeFolder": "Exclude this folder from sync",
|
|
"menu.openOnHost": "Open on {host}",
|
|
"menu.copyHostLink": "Copy link on {host}",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "This repository is end-to-end encrypted, so files have no readable address on the host.",
|
|
"m.hostLinkUnsupported": "{host} has no web page for this file.",
|
|
"m.alreadyExcluded": "{folder} is already excluded.",
|
|
"m.excludeBody": "Files in {folder} will no longer be uploaded, downloaded or deleted, on any device. Nothing is deleted now.",
|
|
"m.excluded": "{folder} is now excluded from sync.",
|
|
"m.diagnosticsCopied": "Diagnostics copied. Tokens are hidden; check the text before you share it, since it includes file names from the log.",
|
|
"h.resume": "Resume",
|
|
"h.pause": "Pause 1 hour",
|
|
"h.pausedUntilResumed": "Automatic sync is paused until you resume it.",
|
|
"h.pausedUntil": "Automatic sync is paused until {time}.",
|
|
"h.batterySaverOn": "Battery saver is on: no timer and no sync after each edit on this device.",
|
|
"h.batterySaverTurnOn": "Turn on battery saver",
|
|
"h.batterySaverOff": "Turn off battery saver",
|
|
"h.versionMismatch": "Devices run different versions of this plugin (this device: {mine}; {list}). Update them so they sync the same way.",
|
|
"h.badNames": "Names Windows can't store ({n})",
|
|
"h.badNamesHint": `These files won't sync to Windows devices (and some Android devices). Rename them to remove < > : " | ? * or a trailing dot or space.`,
|
|
"u.filterSearch": "Filter by name",
|
|
"u.filterAll": "All",
|
|
"u.filterUploads": "Uploads",
|
|
"u.filterDownloads": "Downloads",
|
|
"u.filterDeletes": "Deletions",
|
|
"u.filterConflicts": "Conflicts",
|
|
"m.mirrorFailed": "Backup mirror: {error}",
|
|
"m.hostRemoved": "Gitee and Azure DevOps are no longer supported. Sync is paused: choose another host in Settings \u2192 Vault Sync for Git. Your files are unchanged.",
|
|
"m.hostRemovedOther": "Gitee and Azure DevOps are no longer supported. The backup mirror that used them is turned off, and shared folders on them are skipped. Your files are unchanged.",
|
|
"sh.subdir": "Folder in the repository (optional)",
|
|
"sh.subdirDesc": "Map the shared folder to a folder inside the repository, for example docs, instead of its root. Files elsewhere in the repository are left alone.",
|
|
"sh.conflicts": "When two people change the same lines",
|
|
"sh.conflictsDesc": "Keep both versions here as a conflict copy, or send this device's version to a new branch with a pull request for the team to review.",
|
|
"sh.conflictsCopy": "Keep both (conflict copy)",
|
|
"sh.conflictsPr": "Open a pull request",
|
|
"m.prOpened": "{folder}: conflicting edits were sent as a pull request: {url}",
|
|
"pi.title": "Install plugins used on your other devices",
|
|
"pi.body": "These community plugins are turned on (or updated) on another device. Vault Sync for Git can install the same version here, from each plugin's official release on GitHub, as listed in Obsidian's community directory.",
|
|
"pi.list": "Plugins",
|
|
"pi.install": "Install",
|
|
"pi.failed": "Couldn't install {name}: {error}",
|
|
"pi.done": "Installed: {list}. Restart Obsidian (or turn each plugin off and on) to load them.",
|
|
"s.cfgInstall": "Install plugin code from official releases",
|
|
"s.cfgInstallDesc": "Instead of syncing plugin code, each device installs the same version from the plugin's official release (after asking). Plugin versions still sync. Safer: nobody can push code to your devices through the repository.",
|
|
"s.branchDesc": "The branch this vault syncs with. Switching starts a fresh comparison; nothing is deleted.",
|
|
"s.branchChoose": "Choose",
|
|
"s.branchIntro": "Pick an existing branch, or create a new one from the current branch (for example a drafts branch).",
|
|
"s.branchNew": "New branch",
|
|
"s.branchInvalid": "Use letters, numbers, - _ . and / only.",
|
|
"s.branchNoHead": "The branch {branch} is empty, so there is nothing to branch from yet.",
|
|
"s.branchNone": "No branches yet.",
|
|
"s.branchCurrent": "Current branch",
|
|
"s.branchUse": "Use",
|
|
"s.emptyFolders": "Keep empty folders",
|
|
"s.emptyFoldersDesc": "Folders without files are kept on every device (listed in .vault-sync/folders.json). Off while end-to-end encryption is on.",
|
|
"s.battery": "Battery saver",
|
|
"s.batteryDesc": "On this device: no timer and no sync after each edit. Syncs on startup, when you come back to Obsidian, and when you sync manually.",
|
|
"s.pause": "Pause automatic sync",
|
|
"s.pauseDesc": "On this device only. Manual sync keeps working.",
|
|
"s.pauseDescOn": "Automatic sync is paused on this device.",
|
|
"s.pauseUntilResumed": "Until resumed",
|
|
"s.author": "Commit author",
|
|
"s.authorDesc": "Name and email written on commits (both needed). Empty: the host uses the token's account.",
|
|
"s.authorName": "Name",
|
|
"s.authorEmail": "Email",
|
|
"s.hMirror": "Backup mirror",
|
|
"s.mirrorIntro": "Every sync also uploads this vault to a second repository, for example on another host. Push only: the mirror is never read back. With end-to-end encryption, the mirror is encrypted too.",
|
|
"s.mirrorOn": "Mirror this vault",
|
|
"s.mirrorToken": "Mirror token",
|
|
"s.mirrorTokenDesc": "Access token for the mirror repository. Stored on this device only. Empty: the main token, if it is the same host.",
|
|
"s.mirrorIncomplete": "Turn the mirror on and fill in owner and repository first.",
|
|
"s.mirrorOk": "Mirror reachable: {repo}",
|
|
"h.mirror": "Backup mirror {target}: last upload {ago}",
|
|
"h.mirrorFailed": "Backup mirror {target} failed: {error}",
|
|
"cmd.overwrite": "Make the repository match this device",
|
|
"ow.title": "Make the repository match this device",
|
|
"ow.body": "One new commit on {host} makes the repository equal to this device: these files are uploaded and these are deleted there (they stay in its history). Files kept on {host} only for downloading on demand are left alone. Other devices pick this up on their next sync.",
|
|
"ow.upload": "Uploaded",
|
|
"ow.confirm": "Make it match",
|
|
"ow.done": "Repository updated: {n} change(s) in one commit.",
|
|
"ow.failed": "Couldn't update the repository: {error}",
|
|
"m.clipboardFailed": "Couldn't copy to the clipboard: {error}",
|
|
"ce.ours": "Keep this device",
|
|
"ce.theirs": "Keep repository",
|
|
"ce.both": "Keep both",
|
|
"ce.hint": "Conflicting change:",
|
|
"app.signInGitLab": "Sign in with GitLab",
|
|
"app.signInDescGitLab": "Approve access in your browser instead of creating a token. Access renews automatically.",
|
|
"app.signedInGitLab": "Signed in with GitLab",
|
|
"app.signedInDescGitLab": "This device uses the Vault Sync for Git application on GitLab. Access renews automatically. Stored on this device only.",
|
|
"app.glClientId": "GitLab application ID (optional)",
|
|
"app.glClientIdDesc": "To use Sign in with GitLab: the Application ID of a non-confidential OAuth application with the api scope, created on your GitLab (Edit profile \u2192 Applications). Stored on this device only.",
|
|
"sh.ghFormat": "GitHub-friendly Markdown",
|
|
"sh.ghFormatDesc": "Store notes so they read well on GitHub: wikilinks become links, callouts become alerts, highlights become <mark>. Your vault keeps the exact Obsidian text. Set when adding the folder.",
|
|
"s.hiddenNested": "Hidden files inside folders",
|
|
"s.hiddenNestedDesc": "Also sync hidden files and folders inside your notes folders (for example Notes/.assets). Settings folders, .trash and .git are never included.",
|
|
"app.reposTitle": "Repositories the app can use",
|
|
"app.addRepos": "Add repositories on GitHub",
|
|
"app.watching": "Waiting for you on GitHub. The list updates by itself when you come back.",
|
|
"app.noRepos": "The app can't see any repositories yet. Add your vault repository on GitHub.",
|
|
"app.newRepo": "New",
|
|
"app.newArrived": "Repository added. Select it in the list above.",
|
|
"s.repoPick": "Choose a repository",
|
|
"s.strategyDesc": "Automatic merging combines changes to different lines, and keeps both versions when the same lines changed.",
|
|
"s.pauseDescUntil": "Automatic sync is paused on this device until {time}.",
|
|
"s.branchPick": "Choose a branch",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "the repository host",
|
|
"err.network": "Network error talking to {host}",
|
|
"err.badToken": "{host} token is invalid or expired.",
|
|
"err.forbidden": "{host} refused access (HTTP {status}). Check that the token can read and write this repository.",
|
|
"err.notFound": "{host} couldn't find the repository, branch or file (HTTP {status}). Check the repository name and the token's access.",
|
|
"err.conflict": "{host} reported a conflict (HTTP {status}); another device may have pushed. Try syncing again.",
|
|
"err.tooLarge": "{host} refused a file because it is too large (HTTP {status}).",
|
|
"err.rateLimit": "{host} rate limit hit. Try again in a minute.",
|
|
"err.rateLimitMin": "{host} rate limit hit. Try again in {min} min.",
|
|
"err.secondaryRateLimit": "{host} secondary rate limit hit. Try again in a minute.",
|
|
"err.server": "{host} is having problems (HTTP {status}). Try again later.",
|
|
"err.noToken": "No {host} token set. Add one in the plugin settings.",
|
|
"err.foreignLink": "{host} returned a link to another server ({origin}); refusing to send the token there.",
|
|
"err.versionUnavailable": "{host}: this file version is not available",
|
|
"err.contentMismatch": `"{path}" couldn't be downloaded completely from {host} (the content doesn't match). Try syncing again.`,
|
|
"err.partialDownload": `"{path}" couldn't be downloaded completely from {host} (got {got} of {expected} bytes). Try syncing again.`,
|
|
"err.incompleteDownload": "{path} couldn't be downloaded completely from {host} (got {bytes} bytes). The server may limit the size of files it sends through its API.",
|
|
"err.commitRefused": "{host} refused the commit: {detail}",
|
|
"err.commitNotCreated": "{host} did not create the commit",
|
|
"err.commitNoTree": "Commit {sha} has no tree",
|
|
"err.repoTooLarge": "Repository is too large to list on {host}.",
|
|
"err.badPagination": "{host} returned an unexpected pagination link",
|
|
"err.listFailed": "{host} could not list the files of {ref} (HTTP 404)",
|
|
"err.blobTooLarge": "{host}: file too large for this server's API (over its blob size limit)",
|
|
"err.blobTooLargeMismatch": "{host}: file too large for this server's API (over its blob size limit), and the raw file did not match",
|
|
"err.unsupportedHost": "Unsupported Git host: {host}",
|
|
"err.lfsCorrupt": "{path}: large-file download was corrupted",
|
|
"err.lfsError": "Large-file storage: {detail}",
|
|
"err.lfsMissing": "{path}: large file is missing from the host's LFS storage",
|
|
"err.encLocked": "This repository is end-to-end encrypted. Enter the passphrase in Settings \u2192 Encryption to sync on this device.",
|
|
"err.encMismatch": "This repository was encrypted with a different passphrase than the one unlocked on this device. Unlock it again in Settings \u2192 Encryption.",
|
|
"err.encUpgraded": "End-to-end encryption was upgraded on another device (same passphrase, files now bound to their names). This device switched too; the next sync continues.",
|
|
"err.branchMoved": "The branch moved while syncing (another device pushed).",
|
|
"err.editedDuringSync": "{path} was edited during sync",
|
|
"err.cancelled": "Cancelled.",
|
|
"err.unloaded": "The plugin was unloaded; sync stopped. It continues next time.",
|
|
"err.guardCancelled": "Sync cancelled by delete guard.",
|
|
"err.resetCancelled": "Reset cancelled.",
|
|
"err.restoreCancelled": "Restore cancelled.",
|
|
"err.branchMissing": 'The branch "{branch}" was not found in {repo}. It may have been deleted or renamed, or the token lost access. Nothing was changed.',
|
|
"err.repoNotFound": "Repository {repo} not found or the token cannot access it.",
|
|
"err.initFailed": "Could not initialise the repository branch.",
|
|
"err.encryptionOff": "Encryption is not enabled on this device.",
|
|
"err.branchEmpty": "The branch in the repository is empty.",
|
|
"err.resetEmpty": "The branch in the repository is empty. Nothing to reset to.",
|
|
"err.restorePullOnly": "Restore needs to push to the repository, which pull-only mode does not allow.",
|
|
"err.restoreRaced": "Another device pushed during the restore. Nothing was changed; please try again.",
|
|
"skip.deferred": "deferred in review",
|
|
"skip.localTooLarge": "local file larger than {mb} MB",
|
|
"skip.remoteTooLarge": "remote file larger than {mb} MB",
|
|
"skip.windowsName": "name not allowed on Windows; rename it on another device",
|
|
"skip.onDemand": "larger than this device's download limit; available on demand",
|
|
"skip.caseRenamedFrom": "renamed from {other} by letter case elsewhere; applied on the next two-way sync",
|
|
"skip.caseRenamedTo": "renamed to {other} by letter case elsewhere; applied on the next two-way sync",
|
|
"skip.unicodeClash": "same name as {other} in another Unicode form",
|
|
"skip.caseClash": "differs only by letter case from {other}",
|
|
"skip.winRenamed": "renamed elsewhere to a name Windows can't store; kept here",
|
|
"skip.winMaybeRenamed": "may have been renamed elsewhere to a name Windows can't store; kept here",
|
|
"skip.unsafePath": "unsafe path",
|
|
"skip.movedOutOfScope": "moved to {to}, outside this device's sync scope; kept in the repository",
|
|
"skip.conflictKept": "conflict kept for the next sync: {error}",
|
|
"skip.caseRenameFailed": "renamed from {from} by letter case elsewhere; not renamed here yet: {error}",
|
|
"skip.editedDuringSync": "edited during sync, will sync next time",
|
|
"err.newerFormat": "This repository uses a newer encryption format. Update the plugin.",
|
|
"err.wrongPass": "Wrong passphrase.",
|
|
"err.decryptFailed": "Could not decrypt {path}: wrong passphrase or damaged file",
|
|
"err.notEncrypted": "{path} is not encrypted with this vault's key",
|
|
"err.overwritePullOnly": "Pull-only mode never changes the repository.",
|
|
"err.overwriteEmpty": "The branch in the repository is empty: run a normal sync first.",
|
|
"skip.pushCopyTooLarge": "changed in {host} too; back up only: that version is too large to copy here and stays in the repository's history",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "Sync history",
|
|
"cmd.openHistory": "Open sync history",
|
|
"cmd.useRepo": "Use the repository version of this file",
|
|
"menu.useRepo": "Use repository version",
|
|
"hist.title": "Sync history",
|
|
"hist.filter": "Filter by path",
|
|
"hist.loadMore": "Load more",
|
|
"hist.empty": "No syncs yet.",
|
|
"hist.noMatch": "No changed file matches in the syncs loaded so far. Load more to search further back.",
|
|
"hist.noFiles": "No files of this vault changed in this sync.",
|
|
"hist.added": "Added",
|
|
"hist.modified": "Modified",
|
|
"hist.deleted": "Deleted",
|
|
"hist.renamed": "Renamed",
|
|
"hist.renamedFrom": "(from {path})",
|
|
"hist.restoreFile": "Restore this file",
|
|
"hist.before": "Before ({sha})",
|
|
"hist.after": "After ({sha})",
|
|
"hist.none": "(did not exist)",
|
|
"h.pendingFiles": "Show edited files",
|
|
"repo.use": "Use the repository version",
|
|
"repo.useBody": "Replace {path} on this device with the latest version in {host}? The version on this device goes to the trash first, so you can still get it back.",
|
|
"repo.used": "{path} now matches {host}. The previous version is in the trash as {copy}.",
|
|
"repo.restored": "{path} was brought back from {host}.",
|
|
"repo.same": "{path} already matches {host}.",
|
|
"repo.missing": "{path} isn't in {host}: nothing changed.",
|
|
"repo.failed": "Couldn't use the repository version: {error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "Revert this change (back to the last-synced text)",
|
|
"cmd.nextChange": "Go to next change since the last sync",
|
|
"cmd.prevChange": "Go to previous change since the last sync",
|
|
"cmd.whoChanged": "Show who last changed this line",
|
|
"cm.added": "Added since the last sync",
|
|
"cm.changed": "Changed since the last sync",
|
|
"cm.deleted": "Deleted since the last sync",
|
|
"cm.lastSynced": "At the last sync:",
|
|
"cm.newLines": "These lines are new since the last sync.",
|
|
"cm.revert": "Revert",
|
|
"cm.who": "Who changed this?",
|
|
"la.title": "Who last changed this line",
|
|
"la.result": "Last changed on {date} by {device} ({sha}).",
|
|
"la.resultOlder": "Last changed on or before {date} by {device} ({sha}). Only the last {n} versions were checked.",
|
|
"la.local": "This line was changed on this device since the last sync, so no version in the repository has it yet.",
|
|
"la.none": "No history found for this file in the repository.",
|
|
"la.looking": "Looking through the file's history\u2026",
|
|
"la.failed": "Couldn't read the file's history: {error}",
|
|
"la.tooBig": "This file is too large to look through its history (over 1 MB).",
|
|
"la.open": "Open this version",
|
|
"s.changeMarkers": "Show changes since the last sync in the editor",
|
|
"s.changeMarkersDesc": "Marks added, changed and deleted lines next to the text. Click or tap a mark to see the last-synced text and revert it.",
|
|
"cmd.syncMessage": "Sync with a custom message\u2026",
|
|
"cmd.syncClose": "Sync and close Obsidian",
|
|
"cmd.editExcludes": "Edit exclude patterns",
|
|
"msg.title": "Commit message",
|
|
"msg.placeholder": "What changed?",
|
|
"msg.sync": "Sync",
|
|
"msg.empty": "Type a message first.",
|
|
"menu.excludeFile": "Exclude this file from sync",
|
|
"menu.include": "Include in sync",
|
|
"m.excludeFileBody": "{path} will no longer be uploaded, downloaded or deleted, on any device. Its copy in the repository stays as it is. Nothing is deleted now.",
|
|
"m.excludedFile": "{path} is now excluded from sync.",
|
|
"m.included": "{path} is included in sync again.",
|
|
"m.includeImpossible": "{path} is left out by something other than your exclude patterns (this device's sync scope, hidden files, the settings folder or sync: false), so it can't be included from here.",
|
|
"ex.save": "Save",
|
|
"ex.saved": "Exclude patterns saved.",
|
|
"m.closeSyncing": "Syncing before closing\u2026",
|
|
"m.closeFailed": "The sync didn't finish, so Obsidian stays open: {error}",
|
|
"m.closeNotSynced": "Couldn't sync (offline, paused or not set up), so Obsidian stays open.",
|
|
"m.syncFileErrors": "{count} file(s) couldn't be synced (first: {first})",
|
|
"m.closeIncomplete": "Not everything synced, so Obsidian stays open:\n{reasons}",
|
|
"x.excluded": "Not synced",
|
|
"skip.frontmatterPending": "waiting for Obsidian to read its properties (sync: false check)",
|
|
"s.commitMsgAuto": "Commit message for automatic syncs",
|
|
"s.commitMsgAutoDesc": "Used when a sync starts on its own (timer, edits, startup, returning to the app). Leave empty to use the message above.",
|
|
"s.commitPreview": "Preview: {msg}",
|
|
"s.repoSubdir": "Folder in the repository",
|
|
"s.repoSubdirDesc": "Keep this vault in a folder of the repository (for example vaults/personal) instead of at its root. Files outside that folder are never downloaded, changed or deleted. Changing it starts a fresh comparison that deletes nothing.",
|
|
"s.subdirChangeTitle": "Change the folder in the repository?",
|
|
"s.subdirChangeBody": "The next sync compares this vault from scratch against {folder}. Nothing is deleted, but files already there are downloaded into this vault and this vault's files are uploaded there.",
|
|
"s.subdirRoot": "the root of the repository",
|
|
"s.subdirHasFiles": "That location already has {count} files in the repository. If they belong to another vault, they will be mixed into this one: choose another folder.",
|
|
"s.subdirMaybeFiles": "If that location already holds another vault's files, they will be mixed into this one.",
|
|
"s.subdirChangeConfirm": "Change folder",
|
|
"s.frontmatter": "Respect sync: false in frontmatter",
|
|
"s.frontmatterDesc": "Notes with sync: false in their properties stay on this device: they are never uploaded, and a copy already in the repository is kept as it is.",
|
|
"s.statusCountdown": "Show the next sync in the status bar",
|
|
"s.statusCountdownDesc": "Time until the next scheduled sync, such as \u201Cin 4 min\u201D.",
|
|
"s.statusBranch": "Show the branch in the status bar",
|
|
"s.statusBranchDesc": "The branch this vault syncs with.",
|
|
"sb.next": "in {n} min",
|
|
"sb.soon": "in under a minute",
|
|
"sb.nextTip": "Next scheduled sync",
|
|
"sb.branchTip": "Branch: {branch}",
|
|
"w.subdir": "Folder in the repository (optional)",
|
|
"w.subdirDesc": "Leave empty to use the whole repository. Set it to keep this vault in one folder, for example when several vaults share a repository."
|
|
};
|
|
|
|
// src/locales/zh.ts
|
|
var zh = {
|
|
"cmd.sync": "\u7ACB\u5373\u540C\u6B65",
|
|
"cmd.review": "\u67E5\u770B\u66F4\u6539\u5E76\u540C\u6B65",
|
|
"cmd.status": "\u6253\u5F00\u540C\u6B65\u72B6\u6001\u9762\u677F",
|
|
"cmd.pull": "\u4EC5\u62C9\u53D6\uFF08\u4E0B\u8F7D\u66F4\u6539\uFF09",
|
|
"cmd.push": "\u4EC5\u5907\u4EFD\uFF08\u4E0A\u4F20\u66F4\u6539\uFF09",
|
|
"cmd.preview": "\u9884\u89C8\u540C\u6B65\uFF08\u8BD5\u8FD0\u884C\uFF09",
|
|
"cmd.timeline": "\u65F6\u95F4\u7EBF\uFF1A\u5C06\u5E93\u6216\u6587\u4EF6\u5939\u6062\u590D\u5230\u8F83\u65E9\u7684\u65F6\u95F4\u70B9",
|
|
"cmd.reset": "\u4F7F\u6B64\u8BBE\u5907\u4E0E\u4ED3\u5E93\u4E00\u81F4\uFF08\u653E\u5F03\u672C\u5730\u66F4\u6539\uFF09",
|
|
"cmd.snapshot": "\u521B\u5EFA\u5907\u4EFD\u5FEB\u7167",
|
|
"cmd.wizard": "\u8FD0\u884C\u8BBE\u7F6E\u5411\u5BFC",
|
|
"cmd.encryption": "\u7AEF\u5230\u7AEF\u52A0\u5BC6\uFF1A\u5F00\u542F\u6216\u89E3\u9501",
|
|
"cmd.freeSpace": "\u91CA\u653E\u6B64\u8BBE\u5907\u4E0A\u7684\u7A7A\u95F4",
|
|
"cmd.onDemand": "\u4E0B\u8F7D\u4E0D\u5728\u6B64\u8BBE\u5907\u4E0A\u7684\u6587\u4EF6",
|
|
"cmd.log": "\u663E\u793A\u540C\u6B65\u65E5\u5FD7",
|
|
"cmd.history": "\u663E\u793A\u5F53\u524D\u6587\u4EF6\u7684\u5386\u53F2",
|
|
"cmd.compare": "\u5C06\u5F53\u524D\u6587\u4EF6\u4E0E\u4ED3\u5E93\u6BD4\u8F83",
|
|
"cmd.recover": "\u6062\u590D\u5DF2\u5220\u9664\u7684\u6587\u4EF6",
|
|
"cmd.openRepo": "\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u4ED3\u5E93",
|
|
"ribbon.sync": "\u540C\u6B65\u5E93",
|
|
"ribbon.status": "\u540C\u6B65\u72B6\u6001",
|
|
"menu.history": "\u7248\u672C\u5386\u53F2",
|
|
"menu.compare": "\u4E0E\u4ED3\u5E93\u6BD4\u8F83",
|
|
"health.title": "\u540C\u6B65\u72B6\u6001",
|
|
"health.upToDate": "\u5DF2\u662F\u6700\u65B0",
|
|
"health.syncing": "\u6B63\u5728\u540C\u6B65\u2026",
|
|
"health.failed": "\u4E0A\u6B21\u540C\u6B65\u5931\u8D25",
|
|
"health.attention": "\u9700\u8981\u5904\u7406",
|
|
"health.notSynced": "\u5C1A\u672A\u540C\u6B65",
|
|
"health.notSetUp": "\u5C1A\u672A\u8BBE\u7F6E",
|
|
"health.syncNow": "\u7ACB\u5373\u540C\u6B65",
|
|
"health.review": "\u67E5\u770B\u2026",
|
|
"health.wizard": "\u8FD0\u884C\u8BBE\u7F6E\u5411\u5BFC",
|
|
"health.pending": "\u5F85\u5904\u7406",
|
|
"health.editedN": "\u81EA\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\uFF0C\u6B64\u8BBE\u5907\u4E0A\u6709 {n} \u4E2A\u6587\u4EF6\u88AB\u4FEE\u6539",
|
|
"health.noEdits": "\u6CA1\u6709\u7B49\u5F85\u540C\u6B65\u7684\u672C\u5730\u4FEE\u6539",
|
|
"health.remoteAhead": "\u4ED3\u5E93\u4E2D\u6709\u6765\u81EA\u5176\u4ED6\u8BBE\u5907\u7684\u8F83\u65B0\u66F4\u6539",
|
|
"health.remoteSame": "\u4ED3\u5E93\u4E2D\u6CA1\u6709\u65B0\u5185\u5BB9",
|
|
"health.checking": "\u6B63\u5728\u68C0\u67E5\u4ED3\u5E93\u2026",
|
|
"health.nextSync": "\u4E0B\u6B21\u5B9A\u65F6\u540C\u6B65 {time}",
|
|
"health.noSchedule": "\u672A\u8BBE\u7F6E\u5B9A\u65F6\u540C\u6B65",
|
|
"health.conflicts": "\u51B2\u7A81\u526F\u672C\uFF08{n}\uFF09",
|
|
"health.conflictsHint": "\u4E24\u4E2A\u7248\u672C\u90FD\u5DF2\u4FDD\u7559\u3002\u6BD4\u8F83\u5B83\u4EEC\uFF0C\u4FDD\u7559\u9700\u8981\u7684\u5185\u5BB9\uFF0C\u7136\u540E\u5220\u9664\u526F\u672C\u3002",
|
|
"health.compare": "\u6BD4\u8F83",
|
|
"health.open": "\u6253\u5F00",
|
|
"health.deleteCopy": "\u5220\u9664\u526F\u672C",
|
|
"health.skipped": "\u4E0A\u6B21\u540C\u6B65\u8DF3\u8FC7\u7684\u6587\u4EF6\uFF08{n}\uFF09",
|
|
"health.devices": "\u8BBE\u5907",
|
|
"health.thisDevice": "\uFF08\u6B64\u8BBE\u5907\uFF09",
|
|
"health.lastSynced": "\u4E0A\u6B21\u540C\u6B65 {ago}",
|
|
"health.shared": "\u5171\u4EAB\u6587\u4EF6\u5939",
|
|
"health.tools": "\u5DE5\u5177",
|
|
"health.timeline": "\u65F6\u95F4\u7EBF\u4E0E\u6062\u590D",
|
|
"health.snapshot": "\u7ACB\u5373\u521B\u5EFA\u5FEB\u7167",
|
|
"health.reset": "\u4F7F\u6B64\u8BBE\u5907\u4E0E\u4ED3\u5E93\u4E00\u81F4",
|
|
"health.freeSpace": "\u91CA\u653E\u7A7A\u95F4",
|
|
"health.log": "\u540C\u6B65\u65E5\u5FD7",
|
|
"health.settings": "\u8BBE\u7F6E",
|
|
"health.openSettings": "\u6253\u5F00\u8BBE\u7F6E",
|
|
"health.tryAgain": "\u91CD\u8BD5",
|
|
"health.enterPassphrase": "\u8F93\u5165\u5BC6\u7801\u77ED\u8BED",
|
|
"health.encrypted": "\u7AEF\u5230\u7AEF\u52A0\u5BC6",
|
|
"notice.upToDate": "\u5E93\u5DF2\u662F\u6700\u65B0\u3002",
|
|
"notice.synced": "\u540C\u6B65\uFF1A{summary}",
|
|
"notice.failed": "\u540C\u6B65\u5931\u8D25\uFF1A{error}",
|
|
"notice.errors": "\u540C\u6B65\u5B8C\u6210\uFF0C\u4F46\u6709 {n} \u4E2A\u9519\u8BEF\u3002\u8BF7\u6253\u5F00\u540C\u6B65\u72B6\u6001\u9762\u677F\u67E5\u770B\u8BE6\u60C5\u3002",
|
|
"notice.conflicts": "\u540C\u6B65\uFF1A{n} \u4E2A\u51B2\u7A81\u3002\u4E24\u4E2A\u7248\u672C\u90FD\u5DF2\u4FDD\u7559\uFF0C\u53EF\u5728\u540C\u6B65\u72B6\u6001\u9762\u677F\u4E2D\u6BD4\u8F83\u3002",
|
|
"notice.busy": "\u6B63\u5728\u540C\u6B65\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",
|
|
"time.never": "\u4ECE\u672A",
|
|
"time.now": "\u521A\u521A",
|
|
"time.min": "{n} \u5206\u949F\u524D",
|
|
"time.hour": "{n} \u5C0F\u65F6\u524D",
|
|
"time.day": "{n} \u5929\u524D",
|
|
// settings
|
|
"s.wizard": "\u8BBE\u7F6E\u5411\u5BFC",
|
|
"s.wizardDesc": "\u8FDE\u63A5\u8D26\u6237\u3001\u9009\u62E9\u6216\u521B\u5EFA\u4ED3\u5E93\uFF0C\u5E76\u9010\u6B65\u5B8C\u6210\u9996\u6B21\u540C\u6B65\u3002",
|
|
"s.wizardBtn": "\u8FD0\u884C\u8BBE\u7F6E\u5411\u5BFC",
|
|
"s.hConnection": "\u8FDE\u63A5",
|
|
"s.host": "Git \u6258\u7BA1\u670D\u52A1",
|
|
"s.hostDesc": "GitHub \u4EE5\u5916\u7684\u6258\u7BA1\u670D\u52A1\u76EE\u524D\u4E3A\u6D4B\u8BD5\u7248\u3002",
|
|
"s.beta": "\u6D4B\u8BD5\u7248",
|
|
"s.token": "\u8BBF\u95EE\u4EE4\u724C",
|
|
"s.tokenDesc": "\u4EC5\u5B89\u5168\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\uFF08Obsidian \u5B89\u5168\u5B58\u50A8\uFF09\uFF0C\u4E0D\u4F1A\u5199\u5165\u540C\u6B65\u7684\u8BBE\u7F6E\u3002\u6BCF\u53F0\u8BBE\u5907\u8F93\u5165\u4E00\u6B21\u3002",
|
|
"s.tokenPlaceholder": "\u7C98\u8D34\u4F60\u7684\u4EE4\u724C",
|
|
"s.owner": "\u6240\u6709\u8005",
|
|
"s.ownerDesc": "\u62E5\u6709\u8BE5\u4ED3\u5E93\u7684\u7528\u6237\u6216\u7EC4\u7EC7\u3002",
|
|
"s.ownerDescGitlab": "\u7528\u6237\u6216\u7FA4\u7EC4\u8DEF\u5F84\uFF08\u53EF\u5305\u542B\u5B50\u7FA4\u7EC4\uFF0C\u4F8B\u5982 team/notes\uFF09\u3002",
|
|
"s.ownerDescBitbucket": "\u62E5\u6709\u8BE5\u4ED3\u5E93\u7684\u5DE5\u4F5C\u533A\u3002",
|
|
"s.ownerPlaceholder": "\u7528\u6237\u540D",
|
|
"s.repo": "\u4ED3\u5E93",
|
|
"s.repoDesc": "\u8BF7\u4F7F\u7528\u79C1\u6709\u4ED3\u5E93\u3002",
|
|
"s.repoPlaceholder": "\u4ED3\u5E93\u540D\u79F0",
|
|
"s.branch": "\u5206\u652F",
|
|
"s.check": "\u68C0\u67E5\u8BBE\u7F6E",
|
|
"s.checkDesc": "\u6D4B\u8BD5\u4EE4\u724C\u548C\u4ED3\u5E93\uFF0C\u6216\u521B\u5EFA\u65B0\u7684\u79C1\u6709\u4ED3\u5E93\u3002",
|
|
"s.test": "\u6D4B\u8BD5\u8FDE\u63A5",
|
|
"s.testNoRepo": "\u5DF2\u767B\u5F55\u4E3A {user}\u3002\u8BF7\u8BBE\u7F6E\u4ED3\u5E93\u540D\u79F0\u3002",
|
|
"s.testNotFound": "\u5DF2\u767B\u5F55\u4E3A {user}\uFF0C\u4F46\u627E\u4E0D\u5230 {repo} \u6216\u65E0\u6743\u8BBF\u95EE\u3002",
|
|
"s.testOkPrivate": "\u6B63\u5E38\uFF1A{repo}\uFF08\u79C1\u6709\uFF09\u3002",
|
|
"s.testOkPublic": "\u6B63\u5E38\uFF1A{repo}\uFF0C\u4F46\u5B83\u662F\u516C\u5F00\u7684\u3002\u5EFA\u8BAE\u6539\u4E3A\u79C1\u6709\u3002",
|
|
"s.testFailed": "\u8FDE\u63A5\u5931\u8D25\uFF1A{error}",
|
|
"s.createRepo": "\u521B\u5EFA\u79C1\u6709\u4ED3\u5E93",
|
|
"s.created": "\u5DF2\u521B\u5EFA {url}",
|
|
"s.createFailed": "\u65E0\u6CD5\u521B\u5EFA\u4ED3\u5E93\uFF1A{error}\u3002\u67D0\u4E9B\u4EE4\u724C\u9700\u8981\u989D\u5916\u6743\u9650\uFF1B\u4F60\u4E5F\u53EF\u4EE5\u5728\u6258\u7BA1\u7F51\u7AD9\u4E0A\u521B\u5EFA\u3002",
|
|
"s.apiBase": "API \u57FA\u7840\u5730\u5740",
|
|
"s.apiBaseDesc": "{hint}\u3002\u4EC5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"s.device": "\u8BBE\u5907\u540D\u79F0",
|
|
"s.deviceDesc": "\u663E\u793A\u5728\u63D0\u4EA4\u4FE1\u606F\u548C\u51B2\u7A81\u6587\u4EF6\u540D\u4E2D\u3002\u4EC5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"s.hBehaviour": "\u540C\u6B65\u884C\u4E3A",
|
|
"s.mode": "\u6A21\u5F0F",
|
|
"s.modeDesc": "\u53CC\u5411\u540C\u6B65\u3001\u4EC5\u5907\u4EFD\uFF08\u53EA\u4E0A\u4F20\uFF0C\u4E0D\u4FEE\u6539\u672C\u5730\u6587\u4EF6\uFF09\u6216\u4EC5\u62C9\u53D6\uFF08\u53EA\u8BFB\u526F\u672C\uFF09\u3002",
|
|
"s.modeSync": "\u53CC\u5411\u540C\u6B65",
|
|
"s.modePush": "\u4EC5\u5907\u4EFD\uFF08\u63A8\u9001\uFF09",
|
|
"s.modePull": "\u4EC5\u62C9\u53D6\uFF08\u955C\u50CF\uFF09",
|
|
"s.onStartup": "\u542F\u52A8\u65F6\u540C\u6B65",
|
|
"s.onStartupDesc": "\u6253\u5F00\u5E93\u65F6\u62C9\u53D6\u5E76\u63A8\u9001\u3002",
|
|
"s.onChange": "\u7F16\u8F91\u540E\u540C\u6B65",
|
|
"s.onChangeDesc": "\u505C\u6B62\u7F16\u8F91\u540E\u4E0D\u4E45\u81EA\u52A8\u540C\u6B65\u3002",
|
|
"s.delay": "\u7F16\u8F91\u5EF6\u8FDF\uFF08\u79D2\uFF09",
|
|
"s.delayDesc": "\u6700\u540E\u4E00\u6B21\u7F16\u8F91\u540E\u7B49\u5F85\u591A\u4E45\u518D\u540C\u6B65\u3002",
|
|
"s.interval": "\u5B9A\u65F6\u540C\u6B65\uFF08\u5206\u949F\uFF09",
|
|
"s.intervalDesc": "\u8BBE\u4E3A 0 \u53EF\u5173\u95ED\u3002\u4E5F\u4F1A\u540C\u6B65\u8BBE\u7F6E\u548C\u914D\u7F6E\u6587\u4EF6\u7684\u66F4\u6539\u3002",
|
|
"s.onResume": "\u8FD4\u56DE\u5E94\u7528\u65F6\u540C\u6B65",
|
|
"s.onResumeDesc": "\u5728\u79FB\u52A8\u8BBE\u5907\u4E0A\uFF0C\u5207\u6362\u56DE Obsidian \u65F6\u540C\u6B65\u3002",
|
|
"s.onBackground": "\u5E94\u7528\u8FDB\u5165\u540E\u53F0\u65F6\u540C\u6B65",
|
|
"s.onBackgroundDesc": "\u79BB\u5F00 Obsidian\uFF08\u79FB\u52A8\u8BBE\u5907\uFF09\u6216\u9690\u85CF\u7A97\u53E3\u65F6\u5C3D\u91CF\u63A8\u9001\u66F4\u6539\u3002",
|
|
"s.hScope": "\u540C\u6B65\u5185\u5BB9",
|
|
"s.configDir": "\u540C\u6B65\u8BBE\u7F6E\u6587\u4EF6\u5939\uFF08{dir}\uFF09",
|
|
"s.configDirDesc": "\u4E3B\u9898\u3001\u4EE3\u7801\u7247\u6BB5\u3001\u5FEB\u6377\u952E\u3001\u63D2\u4EF6\u53CA\u5176\u8BBE\u7F6E\u3002\u9ED8\u8BA4\u4E0D\u5305\u62EC\u5DE5\u4F5C\u533A\u5E03\u5C40\u3002",
|
|
"s.exclude": "\u6392\u9664\u89C4\u5219",
|
|
"s.excludeDesc": "gitignore \u683C\u5F0F\uFF0C\u6BCF\u884C\u4E00\u6761\u3002{config} \u8868\u793A\u8BBE\u7F6E\u6587\u4EF6\u5939\u3002\u88AB\u6392\u9664\u7684\u6587\u4EF6\u6C38\u8FDC\u4E0D\u4F1A\u88AB\u4E0A\u4F20\u3001\u4E0B\u8F7D\u6216\u5220\u9664\u3002",
|
|
"s.maxSize": "\u6700\u5927\u6587\u4EF6\u5927\u5C0F\uFF08MB\uFF09",
|
|
"s.maxSizeDesc": "\u66F4\u5927\u7684\u6587\u4EF6\u4F1A\u88AB\u8DF3\u8FC7\uFF08\u6700\u591A 2000 MB\uFF09\u3002\u5728\u4E0D\u4F7F\u7528\u5927\u6587\u4EF6\u5B58\u50A8\u7684 GitHub \u4E0A\uFF0C\u4E0A\u9650\u4E3A GitHub \u80FD\u63A5\u53D7\u7684\u6700\u5927\u503C 100 MB\u3002",
|
|
"s.delayNow": "\u5F53\u524D\uFF1A{n} \u79D2\u3002",
|
|
"s.resetConfirm": "\u4E0B\u6B21\u540C\u6B65\u4F1A\u5C06\u6BCF\u4E2A\u6587\u4EF6\u4E0E\u4ED3\u5E93\u6BD4\u8F83\u3002\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u5185\u5BB9\uFF1B\u4E0D\u540C\u7684\u6587\u4EF6\u4F1A\u4FDD\u7559\u4E24\u4E2A\u7248\u672C\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4EA7\u751F\u9700\u8981\u6574\u7406\u7684\u51B2\u7A81\u526F\u672C\u3002",
|
|
"m.restoreOverBody": "\u6B64\u8BBE\u5907\u4E0A\u7684 {path} \u4E0E {date} \u7684\u7248\u672C\u4E0D\u540C\u3002\u6062\u590D\u4F1A\u66FF\u6362\u5176\u5F53\u524D\u5185\u5BB9\u3002\u4F7F\u7528\u201C\u6062\u590D\u4E3A\u526F\u672C\u201D\u53EF\u540C\u65F6\u4FDD\u7559\u4E24\u8005\u3002",
|
|
"s.lfs": "\u5927\u6587\u4EF6\u5B58\u50A8\u9608\u503C\uFF08MB\uFF09",
|
|
"s.lfsDesc": "\u8FBE\u5230\u6B64\u5927\u5C0F\u7684\u6587\u4EF6\u4F1A\u4FDD\u5B58\u5728\u6258\u7BA1\u670D\u52A1\u7684\u5927\u6587\u4EF6\u5B58\u50A8\u4E2D\uFF0C\u800C\u4E0D\u662F\u4ED3\u5E93\u91CC\uFF0C\u4F7F\u4ED3\u5E93\u4FDD\u6301\u5C0F\u5DE7\u5FEB\u901F\u3002\u8BBE\u4E3A 0 \u53EF\u5173\u95ED\u3002\u8BF7\u6CE8\u610F\u6258\u7BA1\u670D\u52A1\u7684\u5B58\u50A8\u914D\u989D\uFF0C\u514D\u8D39\u5957\u9910\u6709\u9650\u5236\u3002\u5F00\u542F\u540E\uFF0C\u4E0A\u9762\u7684\u6700\u5927\u6587\u4EF6\u5927\u5C0F\u53EF\u63D0\u9AD8\u5230 2000 MB\u3002",
|
|
"s.hEncryption": "\u7AEF\u5230\u7AEF\u52A0\u5BC6",
|
|
"s.encOn": "\u52A0\u5BC6\u5DF2\u5F00\u542F\uFF08\u6B64\u8BBE\u5907\u5DF2\u89E3\u9501\uFF09",
|
|
"s.encOnDesc": "\u7B14\u8BB0\u3001\u9644\u4EF6\u548C\u6587\u4EF6\u540D\u5728\u4E0A\u4F20\u524D\u52A0\u5BC6\u3002\u5176\u4ED6\u8BBE\u5907\u9700\u8981\u76F8\u540C\u7684\u5BC6\u7801\u77ED\u8BED\u3002",
|
|
"s.encRemovePlain": "\u5220\u9664\u672A\u52A0\u5BC6\u7684\u526F\u672C\u2026",
|
|
"s.encLock": "\u9501\u5B9A\u6B64\u8BBE\u5907",
|
|
"s.encOff": "\u52A0\u5BC6\u4F60\u7684\u5E93",
|
|
"s.encOffDesc": "\u8BBE\u7F6E\u5BC6\u7801\u77ED\u8BED\uFF0C\u8BA9\u4ED3\u5E93\u6258\u7BA1\u65B9\u53EA\u80FD\u770B\u5230\u65E0\u6CD5\u8BFB\u53D6\u7684\u6570\u636E\u3002\u4E5F\u53EF\u7528\u4E8E\u89E3\u9501\u5176\u4ED6\u8BBE\u5907\u5DF2\u52A0\u5BC6\u7684\u4ED3\u5E93\u3002",
|
|
"s.encTurnOn": "\u5F00\u542F\u6216\u89E3\u9501\u2026",
|
|
"s.hShared": "\u5171\u4EAB\u6587\u4EF6\u5939",
|
|
"s.sharedIntro": "\u5C06\u67D0\u4E2A\u6587\u4EF6\u5939\u540C\u6B65\u5230\u5355\u72EC\u7684\u4ED3\u5E93\uFF08\u4F8B\u5982\u56E2\u961F\u6587\u4EF6\u5939\uFF09\uFF0C\u5E93\u7684\u5176\u4F59\u90E8\u5206\u4FDD\u6301\u79C1\u6709\u3002",
|
|
"s.sharedRowDesc": "{host}\uFF0C\u5206\u652F {branch}",
|
|
"s.sharedRemove": "\u505C\u6B62\u5355\u72EC\u540C\u6B65\u6B64\u6587\u4EF6\u5939",
|
|
"s.sharedAdd": "\u6DFB\u52A0\u5171\u4EAB\u6587\u4EF6\u5939",
|
|
"s.sharedAddBtn": "\u6DFB\u52A0\u5171\u4EAB\u6587\u4EF6\u5939\u2026",
|
|
"s.hDevice": "\u4EC5\u9650\u6B64\u8BBE\u5907",
|
|
"s.deviceIntro": "\u8FD9\u4E9B\u9009\u9879\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u4E14\u4E0D\u4F1A\u540C\u6B65\uFF0C\u56E0\u6B64\u624B\u673A\u53EF\u4EE5\u6BD4\u7535\u8111\u540C\u6B65\u66F4\u5C11\u7684\u5185\u5BB9\u3002\u8D85\u51FA\u6B64\u8BBE\u5907\u8303\u56F4\u7684\u6587\u4EF6\u4E0D\u4F1A\u4ECE\u8FD9\u91CC\u4E0A\u4F20\u3001\u4E0B\u8F7D\u6216\u5220\u9664\uFF0C\u5E76\u5B89\u5168\u4FDD\u7559\u5728\u4ED3\u5E93\u4E2D\u3002",
|
|
"s.include": "\u4EC5\u540C\u6B65\u8FD9\u4E9B\u6587\u4EF6\u5939",
|
|
"s.includeDesc": "\u6BCF\u884C\u4E00\u4E2A\u6587\u4EF6\u5939\u6216\u89C4\u5219\uFF0C\u4F8B\u5982 daily/ \u6216 projects/\u3002\u7559\u7A7A\u5219\u540C\u6B65\u5168\u90E8\u3002",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "\u5728\u6B64\u8BBE\u5907\u4E0A\u989D\u5916\u6392\u9664",
|
|
"s.deviceExcludeDesc": "gitignore \u683C\u5F0F\uFF0C\u6BCF\u884C\u4E00\u6761\uFF0C\u4F8B\u5982 attachments/ \u6216 *.mp4",
|
|
"s.maxDownload": "\u8DF3\u8FC7\u4E0B\u8F7D\u5927\u4E8E\u6B64\u5927\u5C0F\uFF08MB\uFF09\u7684\u6587\u4EF6",
|
|
"s.maxDownloadDesc": "\u5927\u9644\u4EF6\u4FDD\u7559\u5728\u4ED3\u5E93\u4E2D\uFF0C\u53EF\u6309\u9700\u4E0B\u8F7D\u30020 \u8868\u793A\u4E0D\u9650\u5236\u3002\u624B\u673A\u9ED8\u8BA4\u4E3A 25\u3002",
|
|
"s.onDemand": "\u6309\u9700\u4E0B\u8F7D\u7684\u6587\u4EF6",
|
|
"s.onDemandDesc": "\u4ED3\u5E93\u4E2D\u6709 {n} \u4E2A\u5927\u6587\u4EF6\u4E0D\u5728\u6B64\u8BBE\u5907\u4E0A\u3002{pinned} \u4E2A\u6587\u4EF6\u5DF2\u6309\u9700\u4E0B\u8F7D\u5E76\u4FDD\u6301\u540C\u6B65\u3002",
|
|
"s.onDemandBrowse": "\u6D4F\u89C8\u5E76\u4E0B\u8F7D\u2026",
|
|
"s.onDemandForget": "\u6E05\u9664\u6309\u9700\u5217\u8868",
|
|
"s.onDemandForgotten": "\u5DF2\u6E05\u9664\u6309\u9700\u5217\u8868\u3002\u4F7F\u7528\u201C\u91CA\u653E\u7A7A\u95F4\u201D\u53EF\u5220\u9664\u8FD9\u4E9B\u672C\u5730\u526F\u672C\u3002",
|
|
"s.freeSpace": "\u91CA\u653E\u7A7A\u95F4",
|
|
"s.freeSpaceDesc": "\u5220\u9664\u6B64\u8BBE\u5907\u4E0D\u540C\u6B65\u7684\u6587\u4EF6\u7684\u672C\u5730\u526F\u672C\uFF0C\u4F46\u4EC5\u9650\u4E0E\u4ED3\u5E93\u4E2D\u526F\u672C\u5B8C\u5168\u76F8\u540C\u7684\u6587\u4EF6\u3002",
|
|
"s.freeSpaceBtn": "\u91CA\u653E\u7A7A\u95F4\u2026",
|
|
"s.hConflicts": "\u51B2\u7A81\u4E0E\u5B89\u5168",
|
|
"s.strategy": "\u6587\u4EF6\u5728\u4E24\u7AEF\u90FD\u88AB\u4FEE\u6539\u65F6",
|
|
"s.strategyAuto": "\u81EA\u52A8\u5408\u5E76\uFF08\u63A8\u8350\uFF09",
|
|
"s.strategyMarkers": "\u5408\u5E76\uFF0C\u5E76\u7528 <<<<<<< \u6807\u8BB0\u91CD\u53E0\u90E8\u5206",
|
|
"s.strategyBoth": "\u4FDD\u7559\u4E24\u4EFD\uFF08\u5C06\u6211\u7684\u7248\u672C\u53E6\u5B58\u4E3A\u526F\u672C\uFF09",
|
|
"s.strategyAsk": "\u6BCF\u6B21\u8BE2\u95EE\u6211",
|
|
"s.strategyLocal": "\u4EE5\u6B64\u8BBE\u5907\u4E3A\u51C6",
|
|
"s.strategyRemote": "\u4EE5 {host} \u4E3A\u51C6",
|
|
"s.review": "\u624B\u52A8\u540C\u6B65\u524D\u5148\u67E5\u770B",
|
|
"s.reviewDesc": "\u624B\u52A8\u540C\u6B65\u65F6\uFF0C\u5148\u663E\u793A\u6BCF\u9879\u5F85\u5904\u7406\u66F4\u6539\u53CA\u5DEE\u5F02\u548C\u590D\u9009\u6846\u3002\u4E0D\u5F71\u54CD\u81EA\u52A8\u540C\u6B65\u3002",
|
|
"s.eol": "\u5FFD\u7565\u4EC5\u6362\u884C\u7B26\u7684\u66F4\u6539",
|
|
"s.eolDesc": "\u4EC5\u6362\u884C\u7B26\u98CE\u683C\u4E0D\u540C\u7684\u6587\u4EF6\u89C6\u4E3A\u672A\u66F4\u6539\uFF0C\u907F\u514D\u5176\u4ED6\u64CD\u4F5C\u7CFB\u7EDF\u4E0A\u7684\u7F16\u8F91\u5668\u9020\u6210\u4E0D\u5FC5\u8981\u7684\u4E0A\u4F20\u6216\u51B2\u7A81\u3002",
|
|
"s.guard": "\u5220\u9664\u4FDD\u62A4",
|
|
"s.guardDesc": "\u540C\u6B65\u8981\u4E00\u6B21\u5220\u9664\u5927\u91CF\u6587\u4EF6\u65F6\u5148\u8BE2\u95EE\u3002",
|
|
"s.guardThreshold": "\u5220\u9664\u4FDD\u62A4\u9608\u503C",
|
|
"s.guardThresholdDesc": "\u5220\u9664\u7684\u6587\u4EF6\u6570\u8D85\u8FC7\u6B64\u6570\u91CF\uFF08\u5DE6\uFF09\u6216\u8D85\u8FC7\u5E93\u7684\u6B64\u767E\u5206\u6BD4\uFF08\u53F3\uFF09\u65F6\u8BE2\u95EE\uFF0C\u4EE5\u8F83\u5927\u8005\u4E3A\u51C6\u3002",
|
|
"s.hBackup": "\u5907\u4EFD",
|
|
"s.snapshot": "\u6BCF\u65E5\u5FEB\u7167",
|
|
"s.snapshotDesc": "\u6BCF\u5929\u5728\u4ED3\u5E93\u4E2D\u4E3A\u5F53\u524D\u72B6\u6001\u6253\u4E0A\u5E26\u65E5\u671F\u7684\u5FEB\u7167\u6807\u7B7E\uFF0C\u968F\u65F6\u53EF\u4EE5\u6062\u590D\u3002",
|
|
"s.hAdvanced": "\u9AD8\u7EA7",
|
|
"s.commitMsg": "\u63D0\u4EA4\u4FE1\u606F",
|
|
"s.commitMsgDesc": "\u53D8\u91CF\uFF1A{{device}}\u3001{{summary}}\u3001{{date}}\u3001{{count}}\u3001{{files}}\u3001{{trigger}}\u3001{{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "\u5B8C\u6574\u91CD\u65B0\u626B\u63CF\u95F4\u9694\uFF08\u5206\u949F\uFF09",
|
|
"s.fullScanDesc": "\u4E24\u6B21\u5B8C\u6574\u626B\u63CF\u4E4B\u95F4\uFF0C\u53EA\u91CD\u65B0\u68C0\u67E5 Obsidian \u62A5\u544A\u4E3A\u5DF2\u7F16\u8F91\u7684\u6587\u4EF6\uFF0C\u8BBE\u7F6E\u6587\u4EF6\u5939\u6700\u591A\u6BCF 5 \u5206\u949F\u4ECE\u78C1\u76D8\u8BFB\u53D6\u4E00\u6B21\uFF0C\u8BA9\u624B\u673A\u4FDD\u6301\u6D41\u7545\u3002",
|
|
"s.notices": "\u901A\u77E5",
|
|
"s.noticesAll": "\u6BCF\u6B21\u540C\u6B65",
|
|
"s.noticesErrors": "\u4EC5\u9519\u8BEF\u548C\u51B2\u7A81",
|
|
"s.noticesNone": "\u65E0",
|
|
"s.resetState": "\u91CD\u7F6E\u540C\u6B65\u72B6\u6001",
|
|
"s.resetStateDesc": "\u6E05\u9664\u6B64\u8BBE\u5907\u4E0A\u6B21\u540C\u6B65\u7684\u8BB0\u5F55\u3002\u4E0B\u6B21\u540C\u6B65\u4F1A\u6BD4\u8F83\u6240\u6709\u5185\u5BB9\u4E14\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u6587\u4EF6\uFF1B\u4E0D\u540C\u7684\u6587\u4EF6\u4F1A\u4FDD\u7559\u4E24\u4E2A\u7248\u672C\u3002",
|
|
"s.resetBtn": "\u91CD\u7F6E",
|
|
"s.resetDone": "\u540C\u6B65\u72B6\u6001\u5DF2\u91CD\u7F6E\u3002",
|
|
// setup wizard
|
|
"w.stepConnect": "\u8FDE\u63A5",
|
|
"w.stepRepo": "\u4ED3\u5E93",
|
|
"w.stepVault": "\u6B64\u5E93",
|
|
"w.stepSync": "\u9996\u6B21\u540C\u6B65",
|
|
"w.title": "\u8BBE\u7F6E\u5E93\u540C\u6B65",
|
|
"w.sub": "\u4F60\u7684\u7B14\u8BB0\u4FDD\u5B58\u5728\u4F60\u81EA\u5DF1\u62E5\u6709\u7684\u79C1\u6709 Git \u4ED3\u5E93\u4E2D\uFF08GitHub\u3001GitLab\u3001Codeberg\u3001Gitea\u3001Forgejo \u6216 Bitbucket\uFF09\u3002\u9002\u7528\u4E8E\u684C\u9762\u548C\u79FB\u52A8\u8BBE\u5907\uFF0C\u65E0\u9700\u5B89\u88C5\u4EFB\u4F55\u8F6F\u4EF6\u3002",
|
|
"w.where": "\u4F60\u7684\u5E93\u8981\u5B58\u653E\u5728\u54EA\u91CC\uFF1F",
|
|
"w.apiUrl": "\u670D\u52A1\u5668 API \u5730\u5740",
|
|
"w.deviceName": "\u4E3A\u6B64\u8BBE\u5907\u547D\u540D",
|
|
"w.deviceNameDesc": "\u663E\u793A\u5728\u5386\u53F2\u8BB0\u5F55\u548C\u51B2\u7A81\u526F\u672C\u4E2D\u3002",
|
|
"w.signedIn": "\u5DF2\u767B\u5F55\u4E3A {user}",
|
|
"w.tokenFailed": "\u8BE5\u4EE4\u724C\u65E0\u6548\uFF1A{error}",
|
|
"w.alreadyConnected": "\u6B64\u8BBE\u5907\u5DF2\u8FDE\u63A5",
|
|
"w.continue": "\u7EE7\u7EED",
|
|
"w.connectWith": "\u4F7F\u7528 {host} \u4EE4\u724C\u8FDE\u63A5",
|
|
"w.tokenStored": "\u4EE4\u724C\u4EC5\u5B89\u5168\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\uFF0C\u4E0D\u4F1A\u5199\u5165\u540C\u6B65\u7684\u8BBE\u7F6E\u3002",
|
|
"w.token": "\u4EE4\u724C",
|
|
"w.pasteFirst": "\u8BF7\u5148\u7C98\u8D34\u4EE4\u724C\u3002",
|
|
"w.repoTitle": "\u9009\u62E9\u4ED3\u5E93",
|
|
"w.repoSub": "\u5DF2\u767B\u5F55\u4E3A {user}\u3002\u4E3A\u6B64\u5E93\u9009\u62E9\u4E00\u4E2A\u4ED3\u5E93\uFF0C\u6216\u521B\u5EFA\u65B0\u7684\u79C1\u6709\u4ED3\u5E93\u3002",
|
|
"w.createNew": "\u521B\u5EFA\u65B0\u7684\u79C1\u6709\u4ED3\u5E93",
|
|
"w.create": "\u521B\u5EFA",
|
|
"w.createFailed": "\u65E0\u6CD5\u521B\u5EFA\u4ED3\u5E93\uFF1A{error}\u3002\u67D0\u4E9B\u4EE4\u724C\u9700\u8981\u989D\u5916\u6743\u9650\uFF1B\u4F60\u4E5F\u53EF\u4EE5\u5728\u6258\u7BA1\u7F51\u7AD9\u4E0A\u521B\u5EFA\u540E\u5728\u4E0B\u65B9\u9009\u62E9\u3002",
|
|
"w.useExisting": "\u6216\u4F7F\u7528\u73B0\u6709\u4ED3\u5E93",
|
|
"w.filter": "\u7B5B\u9009\u2026",
|
|
"w.loadingRepos": "\u6B63\u5728\u52A0\u8F7D\u4F60\u7684\u4ED3\u5E93\u2026",
|
|
"w.noMatch": "\u6CA1\u6709\u5339\u914D\u7684\u4ED3\u5E93\u3002",
|
|
"w.private": "\u79C1\u6709",
|
|
"w.public": "\u516C\u5F00",
|
|
"w.publicTitle": "\u516C\u5F00\u4ED3\u5E93",
|
|
"w.publicBody": "{repo} \u662F\u516C\u5F00\u7684\uFF1A\u4E92\u8054\u7F51\u4E0A\u7684\u4EFB\u4F55\u4EBA\u90FD\u80FD\u8BFB\u53D6\u4F60\u7684\u7B14\u8BB0\u3002\u9664\u975E\u4F60\u6709\u610F\u516C\u5F00\uFF0C\u5426\u5219\u8BF7\u4F7F\u7528\u79C1\u6709\u4ED3\u5E93\u3002",
|
|
"w.useAnyway": "\u4ECD\u7136\u4F7F\u7528",
|
|
"w.listFailed": "\u65E0\u6CD5\u5217\u51FA\u4ED3\u5E93\uFF1A{error}",
|
|
"w.back": "\u8FD4\u56DE",
|
|
"w.vaultTitle": "\u6B64\u5E93\u4E0E\u4ED3\u5E93",
|
|
"w.looking": "\u6B63\u5728\u68C0\u67E5\u4E24\u7AEF\u2026",
|
|
"w.readFailed": "\u65E0\u6CD5\u8BFB\u53D6\u4ED3\u5E93\uFF1A{error}",
|
|
"w.counts": "\u6B64\u5E93\uFF1A{local} \u4E2A\u6587\u4EF6 \xB7 \u4ED3\u5E93\uFF1A{remote} \u4E2A\u6587\u4EF6",
|
|
"w.optUpload": "\u4E0A\u4F20\u6B64\u5E93",
|
|
"w.optUploadDesc": "\u8FD9\u662F\u7B2C\u4E00\u53F0\u8BBE\u5907\u3002\u8FD9\u91CC\u7684\u6240\u6709\u5185\u5BB9\u90FD\u4F1A\u590D\u5236\u5230\u4ED3\u5E93\u3002",
|
|
"w.optDownload": "\u4ECE\u4ED3\u5E93\u4E0B\u8F7D\u5E93",
|
|
"w.optDownloadDesc": "\u8FD9\u662F\u65B0\u8BBE\u5907\u3002\u4ED3\u5E93\u4E2D\u7684\u6587\u4EF6\u4F1A\u66FF\u6362\u8FD9\u91CC\u7684\u521D\u59CB\u6587\u4EF6\u3002",
|
|
"w.optMerge": "\u5408\u5E76\uFF0C\u4E0D\u540C\u65F6\u4FDD\u7559\u4E24\u4EFD",
|
|
"w.optMergeDesc": "\u4E0D\u4F1A\u8986\u76D6\u4EFB\u4F55\u5185\u5BB9\uFF1B\u4E0D\u540C\u7684\u6587\u4EF6\u4F1A\u5E76\u6392\u4FDD\u7559\u3002",
|
|
"w.optMergeSafe": "\u5408\u5E76\uFF0C\u4E0D\u540C\u65F6\u4FDD\u7559\u4E24\u4EFD\uFF08\u6700\u5B89\u5168\uFF09",
|
|
"w.optMergeSafeDesc": "\u53EA\u5728\u4E00\u7AEF\u5B58\u5728\u7684\u6587\u4EF6\u4F1A\u88AB\u590D\u5236\u8FC7\u53BB\u3002\u4E0D\u540C\u7684\u6587\u4EF6\u4F1A\u5E76\u6392\u4FDD\u7559\u3002",
|
|
"w.optRemoteWins": "\u5408\u5E76\uFF0C\u4E0D\u540C\u65F6\u4EE5\u4ED3\u5E93\u4E3A\u51C6",
|
|
"w.optRemoteWinsDesc": "\u6587\u4EF6\u5728\u4E24\u7AEF\u90FD\u5B58\u5728\u65F6\u4F7F\u7528\u4ED3\u5E93\u7684\u7248\u672C\u3002\u6B64\u8BBE\u5907\u7684\u7248\u672C\u4F1A\u79FB\u5230\u56DE\u6536\u7AD9\u3002",
|
|
"w.optLocalWins": "\u5408\u5E76\uFF0C\u4E0D\u540C\u65F6\u4EE5\u6B64\u8BBE\u5907\u4E3A\u51C6",
|
|
"w.optLocalWinsDesc": "\u6587\u4EF6\u5728\u4E24\u7AEF\u90FD\u5B58\u5728\u65F6\u4F7F\u7528\u6B64\u8BBE\u5907\u7684\u7248\u672C\u3002",
|
|
"w.neverDeletes": "\u9996\u6B21\u540C\u6B65\u6C38\u8FDC\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u5185\u5BB9\u3002",
|
|
"w.encrypted": "\u{1F512} \u6B64\u4ED3\u5E93\u5DF2\u7AEF\u5230\u7AEF\u52A0\u5BC6\u3002\u8BF7\u89E3\u9501\u540E\u7EE7\u7EED\u3002",
|
|
"w.encryptOpt": "\u7AEF\u5230\u7AEF\u52A0\u5BC6\uFF08\u53EF\u9009\uFF09",
|
|
"w.encryptOptDesc": "\u4ED3\u5E93\u6258\u7BA1\u65B9\u53EA\u80FD\u770B\u5230\u65E0\u6CD5\u8BFB\u53D6\u7684\u6570\u636E\u3002\u6BCF\u53F0\u8BBE\u5907\u90FD\u9700\u8981\u6B64\u5BC6\u7801\u77ED\u8BED\uFF0C\u4E14\u65E0\u6CD5\u627E\u56DE\u3002",
|
|
"w.passphrase": "\u5BC6\u7801\u77ED\u8BED",
|
|
"w.encOnDevice": "\u{1F512} \u6B64\u8BBE\u5907\u5DF2\u5F00\u542F\u7AEF\u5230\u7AEF\u52A0\u5BC6\u3002",
|
|
"w.alsoConfig": "\u540C\u65F6\u540C\u6B65\u8BBE\u7F6E\u3001\u4E3B\u9898\u548C\u63D2\u4EF6\uFF08{dir}\uFF09",
|
|
"w.start": "\u5F00\u59CB\u9996\u6B21\u540C\u6B65",
|
|
"w.unlockFirst": "\u8BF7\u5148\u89E3\u9501\u52A0\u5BC6\u7684\u4ED3\u5E93\u3002",
|
|
"w.saveTitle": "\u4FDD\u5B58\u4F60\u7684\u5BC6\u7801\u77ED\u8BED",
|
|
"w.saveBody": "\u4F60\u662F\u5426\u5DF2\u5C06\u6B64\u5BC6\u7801\u77ED\u8BED\u4FDD\u5B58\u5728\u5B89\u5168\u7684\u5730\u65B9\uFF1F\u5B83\u65E0\u6CD5\u627E\u56DE\uFF0C\u6CA1\u6709\u5B83\u5C31\u65E0\u6CD5\u8BFB\u53D6\u4ED3\u5E93\u4E2D\u7684\u526F\u672C\u3002",
|
|
"w.saved": "\u6211\u5DF2\u4FDD\u5B58",
|
|
"w.syncTitle": "\u9996\u6B21\u540C\u6B65",
|
|
"w.syncSub": "\u5927\u578B\u5E93\u53EF\u80FD\u9700\u8981\u4E00\u4E9B\u65F6\u95F4\u3002\u4F60\u53EF\u4EE5\u5173\u95ED\u6B64\u7A97\u53E3\uFF0C\u540C\u6B65\u4F1A\u5728\u540E\u53F0\u7EE7\u7EED\u3002",
|
|
"w.starting": "\u6B63\u5728\u5F00\u59CB\u2026",
|
|
"w.doneTitle": "\u4E00\u5207\u5C31\u7EEA",
|
|
"w.tip1": "\u540C\u6B65\u4F1A\u5728\u542F\u52A8\u65F6\u3001\u7F16\u8F91\u540E\u548C\u5B9A\u65F6\u8FDB\u884C\u3002\u70B9\u51FB\u4FA7\u8FB9\u680F\u6309\u94AE\u53EF\u7ACB\u5373\u540C\u6B65\u3002",
|
|
"w.tip2": "\u540C\u6B65\u72B6\u6001\u9762\u677F\uFF08\u6D3B\u52A8\u56FE\u6807\uFF09\u4F1A\u663E\u793A\u5F85\u5904\u7406\u5185\u5BB9\u548C\u9700\u8981\u6CE8\u610F\u7684\u4E8B\u9879\u3002",
|
|
"w.tip3": "\u5728\u5176\u4ED6\u6BCF\u53F0\u8BBE\u5907\u4E0A\uFF1A\u5B89\u88C5\u63D2\u4EF6\u5E76\u4F7F\u7528\u540C\u4E00\u4ED3\u5E93\u8FD0\u884C\u6B64\u5411\u5BFC\u3002",
|
|
"w.openStatus": "\u6253\u5F00\u540C\u6B65\u72B6\u6001",
|
|
"w.done": "\u5B8C\u6210",
|
|
// encryption and shared folders
|
|
"e.passShort": "\u8BF7\u81F3\u5C11\u4F7F\u7528 12 \u4E2A\u5B57\u7B26\u3002\u51E0\u4E2A\u968F\u673A\u5355\u8BCD\u7684\u7EC4\u5408\u6548\u679C\u5F88\u597D\u3002",
|
|
"e.passOk": "\u53EF\u4EE5\u3002\u8D8A\u957F\u8D8A\u5B89\u5168\uFF1A16 \u4E2A\u4EE5\u4E0A\u5B57\u7B26\u6216 4 \u4E2A\u4EE5\u4E0A\u968F\u673A\u5355\u8BCD\u3002",
|
|
"e.passStrong": "\u5F3A\u3002",
|
|
"e.checking": "\u6B63\u5728\u68C0\u67E5\u4ED3\u5E93\u2026",
|
|
"e.unlockTitle": "\u89E3\u9501\u52A0\u5BC6\u7684\u5E93",
|
|
"e.upgrade": "\u5347\u7EA7\u52A0\u5BC6\u2026",
|
|
"e.upgradeDesc": "\u6B64\u4ED3\u5E93\u4F7F\u7528\u65E7\u683C\u5F0F\uFF1A\u6587\u4EF6\u7684\u52A0\u5BC6\u5185\u5BB9\u672A\u4E0E\u5176\u540D\u79F0\u7ED1\u5B9A\uFF0C\u56E0\u6B64\u62E5\u6709\u5199\u5165\u6743\u9650\u7684\u4EBA\u53EF\u4EE5\u6084\u65E0\u58F0\u606F\u5730\u4E92\u6362\u4E24\u4E2A\u6587\u4EF6\u3002\u5347\u7EA7\u4F1A\u7528\u540C\u4E00\u5BC6\u7801\u77ED\u8BED\u5C06\u6BCF\u4E2A\u6587\u4EF6\u91CD\u65B0\u52A0\u5BC6\u4E00\u6B21\uFF0C\u4F7F\u6BCF\u4E2A\u6587\u4EF6\u53EA\u80FD\u4EE5\u81EA\u5DF1\u7684\u540D\u79F0\u6253\u5F00\u3002",
|
|
"e.upgradeTitle": "\u5347\u7EA7\u7AEF\u5230\u7AEF\u52A0\u5BC6",
|
|
"e.upgradeBody": "\u6B64\u8BBE\u5907\u4F1A\u5148\u540C\u6B65\uFF0C\u7136\u540E\u4ED3\u5E93\u4E2D\u6240\u6709\u5DF2\u52A0\u5BC6\u7684\u6587\u4EF6\u4F1A\u88AB\u91CD\u65B0\u52A0\u5BC6\uFF0C\u5E76\u5728\u4E00\u6B21\u63D0\u4EA4\u4E2D\u91CD\u65B0\u4E0A\u4F20\uFF08\u5BC6\u7801\u77ED\u8BED\u4E0D\u53D8\uFF09\u3002\u5176\u4ED6\u8BBE\u5907\u4F1A\u5728\u4E0B\u6B21\u540C\u6B65\u65F6\u5207\u6362\u3002\u63D2\u4EF6\u7248\u672C\u4F4E\u4E8E 1.8.0 \u7684\u8BBE\u5907\u65E0\u6CD5\u8BFB\u53D6\u65B0\u683C\u5F0F\uFF0C\u5728\u66F4\u65B0\u524D\u5C06\u505C\u6B62\u540C\u6B65\u3002",
|
|
"e.upgradeConfirm": "\u5347\u7EA7",
|
|
"e.upgraded": "\u52A0\u5BC6\u5DF2\u5347\u7EA7\uFF1A\u5DF2\u91CD\u65B0\u52A0\u5BC6 {n} \u4E2A\u6587\u4EF6\u3002",
|
|
"e.upgradeFailed": "\u65E0\u6CD5\u5347\u7EA7\u52A0\u5BC6\uFF1A{error}",
|
|
"e.unlockBody": "\u6B64\u4ED3\u5E93\u5DF2\u7AEF\u5230\u7AEF\u52A0\u5BC6\u3002\u8F93\u5165\u5176\u5BC6\u7801\u77ED\u8BED\u4EE5\u5728\u6B64\u8BBE\u5907\u4E0A\u540C\u6B65\u3002\u5BC6\u94A5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u7684\u5B89\u5168\u5B58\u50A8\u4E2D\u3002",
|
|
"e.unlocking": "\u6B63\u5728\u89E3\u9501\u2026\uFF08\u4E3A\u5B89\u5168\u8D77\u89C1\u4F1A\u7A0D\u7B49\u7247\u523B\uFF09",
|
|
"e.unlocked": "\u6B64\u8BBE\u5907\u5DF2\u89E3\u9501\u52A0\u5BC6\u7684\u5E93\u3002",
|
|
"e.unlock": "\u89E3\u9501",
|
|
"e.enableTitle": "\u5F00\u542F\u7AEF\u5230\u7AEF\u52A0\u5BC6",
|
|
"e.point1": "\u7B14\u8BB0\u3001\u9644\u4EF6\u548C\u6587\u4EF6\u540D\u5728\u4E0A\u4F20\u524D\u4E8E\u6B64\u8BBE\u5907\u4E0A\u52A0\u5BC6\u3002\u4ED3\u5E93\u6258\u7BA1\u65B9\u53EA\u4FDD\u5B58\u65E0\u6CD5\u8BFB\u53D6\u7684\u6570\u636E\u3002",
|
|
"e.point2": "\u6BCF\u53F0\u8BBE\u5907\u90FD\u9700\u8981\u76F8\u540C\u7684\u5BC6\u7801\u77ED\u8BED\u3002\u5B83\u65E0\u6CD5\u627E\u56DE\uFF1A\u5982\u679C\u5FD8\u8BB0\uFF0C\u4ED3\u5E93\u4E2D\u7684\u526F\u672C\u5C06\u65E0\u6CD5\u8BFB\u53D6\u3002",
|
|
"e.point3": "\u5982\u679C\u6B64\u4ED3\u5E93\u4E2D\u5DF2\u6709\u672A\u52A0\u5BC6\u7684\u7B14\u8BB0\uFF0C\u5B83\u4EEC\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u8BB0\u5F55\u4E2D\u3002\u82E5\u9700\u5B8C\u5168\u9690\u79C1\uFF0C\u8BF7\u4F7F\u7528\u65B0\u7684\u7A7A\u4ED3\u5E93\u3002",
|
|
"e.point4": "\u4F60\u5C06\u65E0\u6CD5\u5728\u6258\u7BA1\u7F51\u7AD9\u4E0A\u6D4F\u89C8\u7B14\u8BB0\uFF1B\u8BF7\u6539\u7528\u63D2\u4EF6\u7684\u5386\u53F2\u8BB0\u5F55\u548C\u65F6\u95F4\u7EBF\u3002",
|
|
"e.repeat": "\u518D\u6B21\u8F93\u5165\u5BC6\u7801\u77ED\u8BED",
|
|
"e.ack": "\u6211\u5DF2\u5C06\u5BC6\u7801\u77ED\u8BED\u4FDD\u5B58\u5728\u5B89\u5168\u7684\u5730\u65B9\uFF0C\u4F8B\u5982\u5BC6\u7801\u7BA1\u7406\u5668\u4E2D",
|
|
"e.turnOn": "\u5F00\u542F\u52A0\u5BC6",
|
|
"e.mismatch": "\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u77ED\u8BED\u4E0D\u4E00\u81F4\u3002",
|
|
"e.confirmSaved": "\u8BF7\u786E\u8BA4\u4F60\u5DF2\u4FDD\u5B58\u5BC6\u7801\u77ED\u8BED\u3002",
|
|
"e.settingUp": "\u6B63\u5728\u8BBE\u7F6E\u2026\uFF08\u4E3A\u5B89\u5168\u8D77\u89C1\u4F1A\u7A0D\u7B49\u7247\u523B\uFF09",
|
|
"e.enabled": "\u52A0\u5BC6\u5DF2\u5F00\u542F\u3002\u4E0B\u6B21\u540C\u6B65\u4F1A\u4E0A\u4F20\u5168\u90E8\u52A0\u5BC6\u5185\u5BB9\u3002",
|
|
"sh.intro": "\u5C06\u4E00\u4E2A\u6587\u4EF6\u5939\u540C\u6B65\u5230\u5355\u72EC\u7684\u4ED3\u5E93\uFF08\u4F8B\u5982\u56E2\u961F\u6587\u4EF6\u5939\uFF09\uFF0C\u5E93\u7684\u5176\u4F59\u90E8\u5206\u4FDD\u7559\u5728\u4F60\u7684\u79C1\u6709\u4ED3\u5E93\u4E2D\u3002\u8BE5\u6587\u4EF6\u5939\u5BF9\u5E94\u90A3\u4E2A\u4ED3\u5E93\u7684\u6839\u76EE\u5F55\uFF0C\u6216\u5176\u4E2D\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\u3002",
|
|
"sh.folder": "\u6587\u4EF6\u5939",
|
|
"sh.folderPlaceholder": "Work",
|
|
"sh.ownerDesc": "\u5171\u4EAB\u4ED3\u5E93\u6240\u5C5E\u7684\u7528\u6237\u3001\u7EC4\u7EC7\u3001\u7FA4\u7EC4\u6216\u5DE5\u4F5C\u533A\u3002",
|
|
"sh.token": "\u4EE4\u724C\uFF08\u53EF\u9009\uFF09",
|
|
"sh.tokenDesc": "\u7559\u7A7A\u5219\u4F7F\u7528\u4E3B\u4EE4\u724C\uFF08\u4EC5\u9650\u540C\u4E00\u6258\u7BA1\u670D\u52A1\uFF09\u3002\u5B89\u5168\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"sh.note": "\u4E3B\u4ED3\u5E93\u4E2D\u5DF2\u6709\u7684\u6B64\u6587\u4EF6\u5939\u6587\u4EF6\u4F1A\u4FDD\u7559\uFF08\u5728\u5176\u5386\u53F2\u8BB0\u5F55\u4E2D\uFF09\uFF0C\u4F46\u4E0D\u518D\u540C\u6B65\u5230\u4E3B\u4ED3\u5E93\u3002\u5171\u4EAB\u6587\u4EF6\u5939\u4E0D\u52A0\u5BC6\uFF0C\u56E0\u4E3A\u534F\u4F5C\u8005\u9700\u8981\u8BFB\u53D6\u5B83\u4EEC\u3002",
|
|
"sh.add": "\u6DFB\u52A0",
|
|
"sh.required": "\u5FC5\u987B\u586B\u5199\u6587\u4EF6\u5939\u3001\u6240\u6709\u8005\u548C\u4ED3\u5E93\u3002",
|
|
"sh.overlap": "\u8BE5\u6587\u4EF6\u5939\u4E0E\u73B0\u6709\u7684\u5171\u4EAB\u6587\u4EF6\u5939\u91CD\u53E0\u3002",
|
|
"sh.checking": "\u6B63\u5728\u68C0\u67E5\u8BBF\u95EE\u6743\u9650\u2026",
|
|
"sh.noAccess": "\u65E0\u6CD5\u8BBF\u95EE {repo}\uFF1A{error}",
|
|
"sh.added": "\u5DF2\u6DFB\u52A0\u5171\u4EAB\u6587\u4EF6\u5939\uFF1A{folder} \u2194 {repo}",
|
|
// dialogs
|
|
"u.andMore": "\u2026\u8FD8\u6709 {n} \u9879",
|
|
"u.binaryDiff": "\u4E8C\u8FDB\u5236\u6587\u4EF6\uFF1A\u65E0\u6587\u672C\u5DEE\u5F02\u3002{a}\uFF1A{as} \u5B57\u8282 \xB7 {b}\uFF1A{bs} \u5B57\u8282\u3002",
|
|
"u.loadFailed": "\u65E0\u6CD5\u52A0\u8F7D\uFF1A{error}",
|
|
"u.conflictTitle": "\u51B2\u7A81\uFF1A{path}",
|
|
"u.repository": "\u4ED3\u5E93",
|
|
"u.conflictBody": "\u81EA\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\uFF0C\u6B64\u6587\u4EF6\u5728\u6B64\u8BBE\u5907\u548C\u4ED3\u5E93\uFF08{host}\uFF09\u4E2D\u90FD\u88AB\u4FEE\u6539\u4E86\u3002",
|
|
"u.pickHint": "\u4E3A\u6BCF\u5904\u66F4\u6539\u9009\u62E9\u8981\u4FDD\u7559\u7684\u7248\u672C\u3002\u9009\u62E9\u201C\u4E24\u8005\u201D\u4F1A\u5148\u4FDD\u7559\u6B64\u8BBE\u5907\u7684\u5185\u5BB9\u3002",
|
|
"u.thisDevice": "\u6B64\u8BBE\u5907",
|
|
"u.chooseChanges": "\u9009\u62E9\u66F4\u6539",
|
|
"u.fullDiff": "\u5B8C\u6574\u5DEE\u5F02",
|
|
"u.apply": "\u5E94\u7528\u6211\u7684\u9009\u62E9",
|
|
"u.binaryConflict": "\u4E8C\u8FDB\u5236\u6587\u4EF6\u3002\u6B64\u8BBE\u5907\uFF1A{a} \u5B57\u8282 \xB7 {host}\uFF1A{b} \u5B57\u8282\u3002",
|
|
"u.wholeFile": "\u6216\u91C7\u7528\u6574\u4E2A\u6587\u4EF6",
|
|
"u.keepBoth": "\u4FDD\u7559\u4E24\u4E2A\u6587\u4EF6",
|
|
"u.markers": "\u5408\u5E76\u5E76\u6807\u8BB0",
|
|
"u.guardTitle": "\u68C0\u6D4B\u5230\u5927\u91CF\u5220\u9664",
|
|
"u.guardBody": "\u6B64\u6B21\u540C\u6B65\u5C06\u5220\u9664 {n} \u4E2A\u6587\u4EF6\u3002\u8BF7\u786E\u8BA4\u8FD9\u662F\u4F60\u60F3\u8981\u7684\u3002",
|
|
"u.guardLocal": "\u5728\u6B64\u8BBE\u5907\u4E0A\u5220\u9664\uFF08\u79FB\u5230\u56DE\u6536\u7AD9\uFF09\uFF1A{n}",
|
|
"u.guardRemote": "\u5728\u4ED3\u5E93\u4E2D\u5220\u9664\uFF08\u4FDD\u7559\u5728\u5386\u53F2\u4E2D\uFF09\uFF1A{n}",
|
|
"u.cancelSync": "\u53D6\u6D88\u540C\u6B65",
|
|
"u.skipDeletes": "\u540C\u6B65\u4F46\u8DF3\u8FC7\u5220\u9664",
|
|
"u.deleteThem": "\u5220\u9664\u5B83\u4EEC",
|
|
"u.gDownload": "\u4ECE\u4ED3\u5E93\u4E0B\u8F7D",
|
|
"u.gUpload": "\u4E0A\u4F20\u5230\u4ED3\u5E93",
|
|
"u.gMoveLocal": "\u5728\u5176\u4ED6\u8BBE\u5907\u4E0A\u91CD\u547D\u540D\uFF08\u5728\u6B64\u91CD\u547D\u540D\uFF09",
|
|
"u.gAdopt": "\u5728\u6B64\u91CD\u547D\u540D\uFF0C\u5728\u5176\u4ED6\u8BBE\u5907\u4E0A\u7F16\u8F91",
|
|
"u.gRenameMerge": "\u4E24\u7AEF\u90FD\u91CD\u547D\u540D\u5E76\u7F16\u8F91\uFF08\u5408\u5E76\uFF09",
|
|
"u.gConflict": "\u4E24\u7AEF\u90FD\u6709\u66F4\u6539",
|
|
"u.gDeleteLocal": "\u5728\u6B64\u8BBE\u5907\u4E0A\u5220\u9664",
|
|
"u.gDeleteRemote": "\u5728\u4ED3\u5E93\u4E2D\u5220\u9664",
|
|
"u.reviewTitle": "\u67E5\u770B\u66F4\u6539",
|
|
"u.upToDate": "\u4E00\u5207\u90FD\u662F\u6700\u65B0\u7684\u3002",
|
|
"u.reviewHint": "\u53D6\u6D88\u52FE\u9009\u6682\u65F6\u4E0D\u60F3\u540C\u6B65\u7684\u5185\u5BB9\u3002\u672A\u52FE\u9009\u7684\u6587\u4EF6\u5728\u4E24\u7AEF\u90FD\u4FDD\u6301\u4E0D\u53D8\uFF0C\u76F4\u5230\u4E4B\u540E\u7684\u540C\u6B65\u3002",
|
|
"u.cancel": "\u53D6\u6D88",
|
|
"u.syncAll": "\u5168\u90E8\u540C\u6B65",
|
|
"u.syncSelected": "\u540C\u6B65\u6240\u9009\u7684 {n} \u9879",
|
|
"u.logTitle": "\u540C\u6B65\u65E5\u5FD7",
|
|
"u.noActivity": "\u5C1A\u65E0\u540C\u6B65\u6D3B\u52A8\u3002",
|
|
"u.loading": "\u6B63\u5728\u4ECE\u4ED3\u5E93\u52A0\u8F7D\u2026",
|
|
"u.nothingFound": "\u672A\u627E\u5230\u4EFB\u4F55\u5185\u5BB9\u3002",
|
|
"u.failed": "\u5931\u8D25\uFF1A{error}",
|
|
"u.currentFile": "\u5F53\u524D\u6587\u4EF6",
|
|
"u.thisVersion": "\u6B64\u7248\u672C",
|
|
"u.compareCurrent": "\u4E0E\u5F53\u524D\u7248\u672C\u6BD4\u8F83",
|
|
"u.fullVersion": "\u5B8C\u6574\u7248\u672C",
|
|
"u.restoreCopy": "\u6062\u590D\u4E3A\u526F\u672C",
|
|
"u.restoreThis": "\u6062\u590D\u6B64\u7248\u672C",
|
|
"u.pickFolder": "\u9009\u62E9\u8981\u6062\u590D\u7684\u6587\u4EF6\u5939",
|
|
"u.pickRemoteOnly": "\u4E0B\u8F7D\u4E0D\u5728\u6B64\u8BBE\u5907\u4E0A\u7684\u6587\u4EF6",
|
|
"u.timelineTitle": "\u65F6\u95F4\u7EBF",
|
|
"u.timelineHint": "\u6BCF\u6B21\u540C\u6B65\u90FD\u662F\u53EF\u4EE5\u56DE\u5230\u7684\u65F6\u95F4\u70B9\u3002\u6062\u590D\u4F1A\u5728\u6700\u4E0A\u9762\u6DFB\u52A0\u65B0\u7684\u63D0\u4EA4\uFF0C\u56E0\u6B64\u5F53\u524D\u72B6\u6001\u4E5F\u4F1A\u4FDD\u7559\u5728\u5386\u53F2\u4E2D\u3002",
|
|
"u.browseFiles": "\u6D4F\u89C8\u6587\u4EF6",
|
|
"u.restoreFolder": "\u6062\u590D\u6587\u4EF6\u5939\u2026",
|
|
"u.restoreVault": "\u6062\u590D\u6574\u4E2A\u5E93",
|
|
"d.unified": "\u5408\u5E76\u89C6\u56FE",
|
|
"d.split": "\u5E76\u6392\u89C6\u56FE",
|
|
"d.same": "\u6CA1\u6709\u5DEE\u5F02\u3002",
|
|
"d.unchanged": "\u22EF {n} \u884C\u672A\u66F4\u6539",
|
|
"d.both": "\u4E24\u8005",
|
|
"d.change": "\u66F4\u6539 {n}",
|
|
"d.nothing": "\uFF08\u65E0\uFF09",
|
|
"d.identical": "\u4E24\u4E2A\u7248\u672C\u5B8C\u5168\u76F8\u540C\u3002",
|
|
// plugin notices and dialogs
|
|
"m.embedMissing": "{path}\uFF08{mb} MB\uFF09\u672A\u4E0B\u8F7D\u5230\u6B64\u8BBE\u5907\u3002",
|
|
"m.download": "\u4E0B\u8F7D",
|
|
"m.downloadingOne": "\u6B63\u5728\u4E0B\u8F7D {path}\u2026",
|
|
"m.downloadingMany": "\u6B63\u5728\u4E0B\u8F7D {n} \u4E2A\u6587\u4EF6\u2026",
|
|
"m.allLocal": "\u6240\u6709\u6587\u4EF6\u90FD\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"m.plainTitle": "\u5220\u9664\u672A\u52A0\u5BC6\u7684\u526F\u672C",
|
|
"m.plainBody": "\u5728\u4E00\u6B21\u63D0\u4EA4\u4E2D\u4ECE\u4ED3\u5E93\u5220\u9664\u8FD9\u4E9B\u672A\u52A0\u5BC6\u7684\u6587\u4EF6\u3002\u4F60\u7684\u7B14\u8BB0\u662F\u5B89\u5168\u7684\uFF1A\u5B83\u4EEC\u7684\u52A0\u5BC6\u526F\u672C\u5DF2\u7ECF\u4E0A\u4F20\u3002\u6CE8\u610F\uFF1A\u65E7\u7248\u672C\u4ECD\u4FDD\u7559\u5728\u4ED3\u5E93\u7684\u5386\u53F2\u4E2D\u3002",
|
|
"m.deleteFrom": "\u4ECE {host} \u5220\u9664",
|
|
"m.remove": "\u5220\u9664",
|
|
"m.plainRemoved": "\u5DF2\u4ECE\u4ED3\u5E93\u5220\u9664 {n} \u4E2A\u672A\u52A0\u5BC6\u7684\u6587\u4EF6\u3002",
|
|
"m.plainNone": "\u6CA1\u6709\u627E\u5230\u672A\u52A0\u5BC6\u7684\u6587\u4EF6\u3002",
|
|
"m.removeFailed": "\u65E0\u6CD5\u5220\u9664\u6587\u4EF6\uFF1A{error}",
|
|
"m.firstFailed": "\u9996\u6B21\u540C\u6B65\u5931\u8D25\uFF1A{error}\u3002\u4F60\u53EF\u4EE5\u5728\u540C\u6B65\u72B6\u6001\u9762\u677F\u4E2D\u91CD\u8BD5\u3002",
|
|
"m.syncFinished": "\u540C\u6B65\u5B8C\u6210\u3002",
|
|
"m.alreadyInSync": "\u6240\u6709\u5185\u5BB9\u90FD\u5DF2\u540C\u6B65\u3002",
|
|
"m.nDownloaded": "\u4E0B\u8F7D {n} \u4E2A",
|
|
"m.nUploaded": "\u4E0A\u4F20 {n} \u4E2A",
|
|
"m.nBoth": "{n} \u4E2A\u4FDD\u7559\u4E86\u4E24\u4E2A\u7248\u672C",
|
|
"m.nSkipped": "\u8DF3\u8FC7 {n} \u4E2A\uFF08\u89C1\u72B6\u6001\u9762\u677F\uFF09",
|
|
"m.firstDone": "\u9996\u6B21\u540C\u6B65\u5B8C\u6210\uFF1A{summary}\u3002",
|
|
"m.noChanges": "\u65E0\u66F4\u6539",
|
|
"m.freeBody": "\u5220\u9664\u6B64\u8BBE\u5907\u4E0D\u540C\u6B65\u7684 {n} \u4E2A\u672C\u5730\u6587\u4EF6\uFF08{mb} MB\uFF09\uFF08\u5728\u5176\u6587\u4EF6\u5939\u4E4B\u5916\u6216\u8D85\u8FC7\u4E0B\u8F7D\u9650\u5236\uFF09\u3002\u6BCF\u4E2A\u6587\u4EF6\u90FD\u4E0E\u4ED3\u5E93\u4E2D\u4FDD\u7559\u7684\u526F\u672C\u5B8C\u5168\u76F8\u540C\u3002\u5B83\u4EEC\u4F1A\u88AB\u79FB\u5230\u56DE\u6536\u7AD9\u3002",
|
|
"m.removeHere": "\u4ECE\u6B64\u8BBE\u5907\u5220\u9664",
|
|
"m.freeNothing": "\u6CA1\u6709\u53EF\u5220\u9664\u7684\u5185\u5BB9\uFF1A\u6B64\u8BBE\u5907\u8303\u56F4\u4E4B\u5916\u6CA1\u6709\u5DF2\u5B89\u5168\u4FDD\u5B58\u5728\u4ED3\u5E93\u4E2D\u7684\u672C\u5730\u6587\u4EF6\u3002",
|
|
"m.freed": "\u5DF2\u91CA\u653E {mb} MB\u3002",
|
|
"m.freeFailed": "\u65E0\u6CD5\u91CA\u653E\u7A7A\u95F4\uFF1A{error}",
|
|
"m.needToken": "\u8BF7\u5728 \u8BBE\u7F6E \u2192 Vault Sync for Git \u4E2D\u6DFB\u52A0\u8BBF\u95EE\u4EE4\u724C\u3002",
|
|
"m.needRepo": "\u8BF7\u5728\u63D2\u4EF6\u8BBE\u7F6E\u4E2D\u586B\u5199\u4ED3\u5E93\u6240\u6709\u8005\u548C\u540D\u79F0\u3002",
|
|
"m.snapshotOk": "\u5DF2\u521B\u5EFA\u5FEB\u7167\uFF1A{tag}",
|
|
"m.snapshotFailed": "\u5FEB\u7167\u5931\u8D25\uFF1A{error}",
|
|
"m.reviewFailed": "\u65E0\u6CD5\u51C6\u5907\u67E5\u770B\uFF1A{error}",
|
|
"m.filesAt": "{sha} \u65F6\u7684\u6587\u4EF6\uFF08{date}\uFF09",
|
|
"m.bytes": "{n} \u5B57\u8282",
|
|
"m.whatFolder": "\u6587\u4EF6\u5939\u201C{folder}\u201D",
|
|
"m.whatVault": "\u6574\u4E2A\u5E93",
|
|
"m.restoring": "\u6B63\u5728\u6062\u590D{what}\u2026",
|
|
"m.restoreTitle": "\u6062\u590D{what}",
|
|
"m.restoreBody": "\u5C06{what}\u6062\u590D\u5230 {date}\uFF08{sha}\uFF09\u65F6\u7684\u72B6\u6001\u3002\u8FD9\u4F1A\u4F5C\u4E3A\u65B0\u7684\u63D0\u4EA4\u6DFB\u52A0\uFF0C\u56E0\u6B64\u4ECA\u5929\u7684\u7248\u672C\u4ECD\u4FDD\u7559\u5728\u5386\u53F2\u4E2D\uFF0C\u4F60\u4E5F\u53EF\u4EE5\u7528\u540C\u6837\u7684\u65B9\u5F0F\u64A4\u9500\u3002",
|
|
"m.restoredOlder": "\u6062\u590D\u4E3A\u65E7\u7248\u672C",
|
|
"m.broughtBack": "\u627E\u56DE\uFF08\u4E4B\u540E\u88AB\u5220\u9664\u7684\uFF09",
|
|
"m.removedSince": "\u5220\u9664\uFF08\u4E4B\u540E\u65B0\u5EFA\u7684\uFF09",
|
|
"m.restore": "\u6062\u590D",
|
|
"m.restored": "\u5DF2\u6062\u590D{what}\uFF1A{n} \u4E2A\u6587\u4EF6\u5DF2\u66F4\u6539\u3002",
|
|
"m.restoreSame": "{what}\u5DF2\u4E0E\u8BE5\u65F6\u95F4\u70B9\u4E00\u81F4\u3002",
|
|
"m.restoreFailed": "\u6062\u590D\u5931\u8D25\uFF1A{error}",
|
|
"m.comparing": "\u6B63\u5728\u4E0E\u4ED3\u5E93\u6BD4\u8F83\u2026",
|
|
"m.resetBody": "\u653E\u5F03\u6B64\u8BBE\u5907\u4E0A\u672A\u540C\u6B65\u7684\u66F4\u6539\uFF0C\u4F7F\u5176\u4E0E\u4ED3\u5E93\u5B8C\u5168\u4E00\u81F4\u3002\u88AB\u66FF\u6362\u548C\u5220\u9664\u7684\u6587\u4EF6\u4F1A\u5148\u79FB\u5230\u56DE\u6536\u7AD9\uFF0C\u4F60\u4ECD\u53EF\u627E\u56DE\u3002",
|
|
"m.replacedWith": "\u66FF\u6362\u4E3A {host} \u7248\u672C",
|
|
"m.downloaded": "\u5DF2\u4E0B\u8F7D",
|
|
"m.removedNotInRepo": "\u5DF2\u5220\u9664\uFF08\u4E0D\u5728\u4ED3\u5E93\u4E2D\uFF09",
|
|
"m.matchRepo": "\u4E0E\u4ED3\u5E93\u4E00\u81F4",
|
|
"m.matched": "\u6B64\u8BBE\u5907\u73B0\u5DF2\u4E0E\u4ED3\u5E93\u4E00\u81F4\uFF08{n} \u4E2A\u6587\u4EF6\u5DF2\u66F4\u6539\uFF09\u3002",
|
|
"m.alreadyMatches": "\u6B64\u8BBE\u5907\u5DF2\u4E0E\u4ED3\u5E93\u4E00\u81F4\u3002",
|
|
"m.resetFailed": "\u91CD\u7F6E\u5931\u8D25\uFF1A{error}",
|
|
"m.repoNotFound": "\u627E\u4E0D\u5230\u4ED3\u5E93\u3002\u8BF7\u68C0\u67E5\u8FDE\u63A5\u8BBE\u7F6E\u3002",
|
|
"m.history": "\u5386\u53F2\uFF1A{path}",
|
|
"m.notInVersion": "\u8BE5\u7248\u672C\u4E2D\u4E0D\u5B58\u5728\u6B64\u6587\u4EF6\u3002",
|
|
"m.restoredFile": "\u5DF2\u6062\u590D {path}\u3002\u5B83\u4F1A\u5728\u4E0B\u6B21\u540C\u6B65\u65F6\u4E0A\u4F20\u3002",
|
|
"m.versionFailed": "\u65E0\u6CD5\u52A0\u8F7D\u7248\u672C\uFF1A{error}",
|
|
"m.recentlyDeleted": "\u6700\u8FD1\u5220\u9664\u7684\u6587\u4EF6",
|
|
"m.deletedOn": "\u5220\u9664\u4E8E {date} \xB7 {msg}",
|
|
// status panel and hosts
|
|
"h.notConnected": "\u5C1A\u672A\u8FDE\u63A5",
|
|
"h.notConnectedHint": "\u8BF7\u5728\u63D2\u4EF6\u8BBE\u7F6E\u4E2D\u6DFB\u52A0 {host} \u8BBF\u95EE\u4EE4\u724C\u3002",
|
|
"h.badToken": "{host} \u4E0D\u63A5\u53D7\u4F60\u7684\u4EE4\u724C",
|
|
"h.badTokenHint": "\u5B83\u53EF\u80FD\u5DF2\u8FC7\u671F\u6216\u88AB\u64A4\u9500\u3002\u8BF7\u521B\u5EFA\u65B0\u4EE4\u724C\u5E76\u7C98\u8D34\u5230\u8BBE\u7F6E\u4E2D\u3002",
|
|
"h.repoMissing": "\u627E\u4E0D\u5230\u4ED3\u5E93",
|
|
"h.repoMissingHint": "\u8BF7\u68C0\u67E5\u6240\u6709\u8005\u548C\u4ED3\u5E93\u540D\u79F0\uFF0C\u4EE5\u53CA\u4EE4\u724C\u662F\u5426\u6709\u6743\u8BBF\u95EE\u6B64\u4ED3\u5E93\u3002",
|
|
"h.rateLimit": "\u5DF2\u8FBE\u5230 {host} \u7684\u8BF7\u6C42\u9650\u5236",
|
|
"h.rateLimitHint": "{host} \u6BCF\u5C0F\u65F6\u5141\u8BB8\u7684\u8BF7\u6C42\u6570\u91CF\u6709\u9650\u3002\u540C\u6B65\u5F88\u5FEB\u5C31\u4F1A\u6062\u590D\u3002",
|
|
"h.busy": "{host} \u6B63\u5FD9",
|
|
"h.busyHint": "\u53E6\u4E00\u53F0\u8BBE\u5907\u6B63\u5728\u540C\u65F6\u540C\u6B65\u3002\u8BF7\u91CD\u8BD5\u3002",
|
|
"h.offline": "\u65E0\u6CD5\u8FDE\u63A5 {host}",
|
|
"h.offlineHint": "\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u3002\u540C\u6B65\u4F1A\u81EA\u52A8\u91CD\u8BD5\u3002",
|
|
"h.encrypted": "\u6B64\u5E93\u5DF2\u52A0\u5BC6",
|
|
"h.encryptedHint": "\u8F93\u5165\u5BC6\u7801\u77ED\u8BED\u4EE5\u5728\u6B64\u8BBE\u5907\u4E0A\u540C\u6B65\u3002",
|
|
"h.otherKey": "\u52A0\u5BC6\u5BC6\u94A5\u4E0D\u540C",
|
|
"h.otherKeyHint": "\u4ED3\u5E93\u4F7F\u7528\u4E86\u53E6\u4E00\u4E2A\u5BC6\u7801\u77ED\u8BED\u52A0\u5BC6\u3002\u8BF7\u91CD\u65B0\u89E3\u9501\u3002",
|
|
"h.pullOnly": "\u4EC5\u62C9\u53D6\u6A21\u5F0F\u4E0B\u4E0D\u53EF\u7528",
|
|
"h.pullOnlyHint": "\u8BF7\u5728\u8BBE\u7F6E\u4E2D\u5207\u6362\u6A21\u5F0F\u4EE5\u63A8\u9001\u66F4\u6539\u3002",
|
|
"h.branchMissing": "\u627E\u4E0D\u5230\u5206\u652F",
|
|
"h.failed": "\u540C\u6B65\u5931\u8D25",
|
|
"h.onDemand": "\u672A\u4E0B\u8F7D\u5230\u6B64\u8BBE\u5907\uFF08{n}\uFF09",
|
|
"h.onDemandHint": "{mb} MB \u7684\u5927\u6587\u4EF6\u4FDD\u7559\u5728\u4ED3\u5E93\u4E2D\uFF0C\u9700\u8981\u65F6\u518D\u4E0B\u8F7D\u3002",
|
|
"h.budget": "API \u914D\u989D\uFF1A{budget}",
|
|
"h.budgetValue": "\u5269\u4F59 {left}/{limit} \u6B21\u8BF7\u6C42\uFF0C{time} \u91CD\u7F6E",
|
|
"h.unknown": "\u672A\u77E5",
|
|
"h.checkFailed": "\u65E0\u6CD5\u68C0\u67E5 {host}\uFF1A{error}",
|
|
"h.deviceScope": "\u6B64\u8BBE\u5907\u540C\u6B65{what}\u3002",
|
|
"h.only": "\u4EC5 {list}",
|
|
"h.excluding": "\u6392\u9664 {list}",
|
|
"h.noDownloadsOver": "\u4E0D\u4E0B\u8F7D\u8D85\u8FC7 {mb} MB \u7684\u6587\u4EF6",
|
|
"h.notOnDevice": "\u4E0D\u5728\u6B64\u8BBE\u5907\u4E0A\u540C\u6B65",
|
|
"hs.ghApi": "\u4EC5\u5728\u4F7F\u7528 GitHub Enterprise Server \u65F6\u4FEE\u6539\uFF0C\u4F8B\u5982 https://github.example.com/api/v3",
|
|
"hs.glApi": "gitlab.com \u6216\u4F60\u7684\u670D\u52A1\u5668\uFF0C\u4F8B\u5982 https://gitlab.example.com/api/v4",
|
|
"hs.gtApi": "\u4F60\u7684\u670D\u52A1\u5668 API\uFF0C\u4F8B\u5982 https://codeberg.org/api/v1 \u6216 https://git.example.com/api/v1",
|
|
"hs.bbApi": "Bitbucket Cloud\uFF1Ahttps://api.bitbucket.org/2.0",
|
|
"hs.gh1": "\u6253\u5F00 GitHub \u7684\u4EE4\u724C\u9875\u9762\uFF1B\u540D\u79F0\u3001\u6709\u6548\u671F\u548C\u201CContents: read and write\u201D\u5DF2\u9884\u5148\u586B\u597D\u3002",
|
|
"hs.gh1Link": "\u521B\u5EFA\u7EC6\u7C92\u5EA6\u4EE4\u724C",
|
|
"hs.gh2": "\u5728 Repository access \u4E2D\u9009\u62E9\u201COnly select repositories\u201D\u5E76\u9009\u4E2D\u4F60\u7684\u5E93\u4ED3\u5E93\uFF08\u5982\u9700\u63D2\u4EF6\u521B\u5EFA\u4ED3\u5E93\uFF0C\u8BF7\u6DFB\u52A0 Administration: read and write\uFF09\u3002",
|
|
"hs.gh3": "\u751F\u6210\u3001\u590D\u5236\u5E76\u7C98\u8D34\u5230\u8FD9\u91CC\u3002",
|
|
"hs.gh4": "\u66F4\u7B80\u5355\u7684\u65B9\u5F0F\uFF08\u53EF\u8BBF\u95EE\u6240\u6709\u4ED3\u5E93\uFF09\uFF1A",
|
|
"hs.gh4Link": "\u5E26 repo \u6743\u9650\u7684\u7ECF\u5178\u4EE4\u724C",
|
|
"hs.gl1": "\u521B\u5EFA\u5177\u6709 api \u6743\u9650\u7684\u4E2A\u4EBA\u8BBF\u95EE\u4EE4\u724C\uFF08\u5199\u5165\u63D0\u4EA4\u9700\u8981\u6B64\u6743\u9650\uFF09\u3002",
|
|
"hs.gl1Link": "\u6253\u5F00 GitLab \u4EE4\u724C\u9875\u9762",
|
|
"hs.gl2": "\u63D0\u793A\uFF1A\u9879\u76EE\u8BBF\u95EE\u4EE4\u724C\uFF08\u5728\u5E93\u9879\u76EE\u7684 \u8BBE\u7F6E \u2192 \u8BBF\u95EE\u4EE4\u724C \u4E2D\u521B\u5EFA\uFF0C\u89D2\u8272 Developer\uFF0C\u6743\u9650 api\uFF09\u53EA\u80FD\u8BBF\u95EE\u8BE5\u9879\u76EE\u3002",
|
|
"hs.paste": "\u590D\u5236\u5E76\u7C98\u8D34\u5230\u8FD9\u91CC\u3002",
|
|
"hs.gt1": "\u6253\u5F00 \u8BBE\u7F6E \u2192 \u5E94\u7528\uFF0C\u751F\u6210\u5177\u6709\u201Crepository: Read and Write\u201D\u548C\u201Cuser: Read\u201D\u6743\u9650\u7684\u4EE4\u724C\u3002\u5982\u9700\u8BA9\u63D2\u4EF6\u521B\u5EFA\u4ED3\u5E93\uFF0C\u8BF7\u6539\u9009\u201Cuser: Read and Write\u201D\u3002",
|
|
"hs.gt1Link": "\u6253\u5F00\u5E94\u7528\u9875\u9762",
|
|
"hs.gt2": "\u9700\u8981 Gitea 1.20+ \u6216 Forgejo 1.20+\uFF08\u591A\u6587\u4EF6\u63D0\u4EA4 API\uFF09\u3002",
|
|
"hs.bb1": "\u6700\u7B80\u5355\u7684\u65B9\u5F0F\uFF1A\u5728\u5E93\u4ED3\u5E93\u4E2D\u6253\u5F00 \u4ED3\u5E93\u8BBE\u7F6E \u2192 \u5B89\u5168 \u2192 \u8BBF\u95EE\u4EE4\u724C\uFF0C\u521B\u5EFA\u5177\u6709 Repositories: Read and Write \u6743\u9650\u7684\u4EE4\u724C\u3002\u7C98\u8D34\u5230\u8FD9\u91CC\uFF08\u5E76\u5728\u8BBE\u7F6E\u4E2D\u586B\u5199\u6240\u6709\u8005\u548C\u4ED3\u5E93\uFF09\u3002",
|
|
"hs.bb1Link": "Bitbucket \u8BBF\u95EE\u4EE4\u724C\u5E2E\u52A9",
|
|
"hs.bb2": "\u5982\u9700\u5728\u5411\u5BFC\u4E2D\u9009\u62E9\u6216\u521B\u5EFA\u4ED3\u5E93\uFF0C\u8BF7\u6539\u7528\u5177\u6709 Bitbucket \u6743\u9650\u7684 Atlassian API \u4EE4\u724C\uFF0C\u683C\u5F0F\u4E3A email:token\u3002",
|
|
"hs.bb2Link": "\u521B\u5EFA API \u4EE4\u724C",
|
|
"hs.bb3": "\u6CE8\u610F\uFF1A\u9996\u6B21\u540C\u6B65\u4F1A\u4E0B\u8F7D\u6BCF\u4E2A\u6587\u4EF6\u4E00\u6B21\u4EE5\u5EFA\u7ACB\u7D22\u5F15\uFF1B\u4E4B\u540E\u7684\u540C\u6B65\u53EA\u83B7\u53D6\u6709\u53D8\u5316\u7684\u6587\u4EF6\u3002",
|
|
"u.skipped": "\u5DF2\u8DF3\u8FC7\uFF1A{n}",
|
|
"u.loadingShort": "\u6B63\u5728\u52A0\u8F7D\u2026",
|
|
"u.diff": "\u5DEE\u5F02",
|
|
"h.lastSync": "\u4E0A\u6B21\u540C\u6B65 {ago}",
|
|
"m.sharedFailed": "\u5171\u4EAB\u6587\u4EF6\u5939\u540C\u6B65\u5931\u8D25\uFF1A",
|
|
"m.offline": "\u79BB\u7EBF\uFF1A\u6062\u590D\u7F51\u7EDC\u540E\u4F1A\u540C\u6B65",
|
|
"m.filesFailed": "{n} \u4E2A\u6587\u4EF6\u5931\u8D25\uFF1A\u8BF7\u67E5\u770B\u540C\u6B65\u72B6\u6001",
|
|
"m.copiesCreated": "\u5DF2\u521B\u5EFA {n} \u4E2A\u51B2\u7A81\u526F\u672C",
|
|
"m.statusTip": "{title}\u3002\u70B9\u51FB\u67E5\u770B\u540C\u6B65\u72B6\u6001\u3002",
|
|
"m.notThere": "{host}\uFF08\u6587\u4EF6\u4E0D\u5B58\u5728\uFF09",
|
|
"app.signIn": "\u4F7F\u7528 GitHub \u767B\u5F55",
|
|
"app.signInDesc": "\u5728\u6D4F\u89C8\u5668\u4E2D\u6279\u51C6\u8BBF\u95EE\uFF0C\u65E0\u9700\u521B\u5EFA\u4EE4\u724C\u3002\u5E94\u7528\u53EA\u80FD\u8BBF\u95EE\u4F60\u9009\u62E9\u7684\u4ED3\u5E93\uFF0C\u8BBF\u95EE\u6743\u9650\u4F1A\u81EA\u52A8\u7EED\u671F\u3002",
|
|
"app.signInBtn": "\u767B\u5F55",
|
|
"app.orToken": "\u6216\u4F7F\u7528\u8BBF\u95EE\u4EE4\u724C",
|
|
"app.starting": "\u6B63\u5728\u8FDE\u63A5 {host}\u2026",
|
|
"app.notAvailable": "\u6B64\u670D\u52A1\u5668\u4E0D\u652F\u6301\u4F7F\u7528 {host} \u767B\u5F55\u3002\u8BF7\u4F7F\u7528\u8BBF\u95EE\u4EE4\u724C\u3002",
|
|
"app.codeBody": "\u590D\u5236\u6B64\u4EE3\u7801\uFF0C\u7136\u540E\u7C98\u8D34\u5230\u6253\u5F00\u7684 {host} \u9875\u9762\uFF1A",
|
|
"app.copy": "\u590D\u5236\u4EE3\u7801",
|
|
"app.copied": "\u5DF2\u590D\u5236\u4EE3\u7801",
|
|
"app.open": "\u590D\u5236\u5E76\u6253\u5F00 {host}",
|
|
"app.waiting": "\u6B63\u5728\u7B49\u5F85\u4F60\u5728 {host} \u4E0A\u6279\u51C6\u2026",
|
|
"app.expired": "\u4EE3\u7801\u5DF2\u8FC7\u671F\u3002\u8BF7\u5173\u95ED\u6B64\u7A97\u53E3\u5E76\u91CD\u65B0\u767B\u5F55\u3002",
|
|
"app.denied": "\u5DF2\u5728 {host} \u4E0A\u62D2\u7EDD\u8BBF\u95EE\u3002",
|
|
"app.disabled": "\u6B64 GitHub \u5E94\u7528\u4E0D\u5141\u8BB8\u8BBE\u5907\u767B\u5F55\u3002\u8BF7\u4F7F\u7528\u8BBF\u95EE\u4EE4\u724C\uFF0C\u6216\u8BF7\u5176\u6240\u6709\u8005\u542F\u7528\u8BBE\u5907\u6D41\u7A0B\u3002",
|
|
"app.failed": "\u767B\u5F55\u5931\u8D25\uFF1A{error}",
|
|
"app.signedIn": "\u5DF2\u4F7F\u7528 GitHub \u767B\u5F55",
|
|
"app.signedInDesc": "\u6B64\u8BBE\u5907\u4F7F\u7528 Vault Sync for GitHub \u7684 GitHub \u5E94\u7528\u3002\u8BBF\u95EE\u6743\u9650\u4F1A\u81EA\u52A8\u7EED\u671F\u3002\u4EC5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"app.signOut": "\u9000\u51FA\u767B\u5F55",
|
|
"app.chooseRepos": "\u9009\u62E9\u4ED3\u5E93",
|
|
"app.chooseReposDesc": "\u6CA1\u6709\u770B\u5230\u4F60\u7684\u5E93\u4ED3\u5E93\uFF1F\u8BF7\u5728 GitHub \u4E0A\u6DFB\u52A0\uFF0C\u6216\u5148\u5728\u90A3\u91CC\u521B\u5EFA\u4E00\u4E2A\u3002\u8FD4\u56DE\u540E\u5217\u8868\u4F1A\u81EA\u52A8\u66F4\u65B0\u3002",
|
|
"app.createOnGitHub": "\u5728 GitHub \u4E0A\u521B\u5EFA",
|
|
"app.refresh": "\u5237\u65B0\u5217\u8868",
|
|
"app.expiredSession": "\u4F60\u7684 {host} \u767B\u5F55\u5DF2\u8FC7\u671F\u3002\u8BF7\u5728 \u8BBE\u7F6E \u2192 Vault Sync for Git \u4E2D\u91CD\u65B0\u767B\u5F55\u3002",
|
|
"app.clientId": "GitHub \u5E94\u7528\u5BA2\u6237\u7AEF ID\uFF08\u53EF\u9009\uFF09",
|
|
"app.clientIdDesc": "\u8981\u5728 GitHub Enterprise \u4E0A\u63D0\u4F9B\u201C\u4F7F\u7528 GitHub \u767B\u5F55\u201D\uFF1A\u586B\u5199\u5DF2\u542F\u7528\u8BBE\u5907\u6D41\u7A0B\u5E76\u5177\u6709 Contents \u8BFB\u5199\u6743\u9650\u7684 GitHub \u5E94\u7528\u7684\u5BA2\u6237\u7AEF ID\u3002\u4EC5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"app.slug": "GitHub \u5E94\u7528 URL \u540D\u79F0",
|
|
"app.slugDesc": "https://\u4F60\u7684\u670D\u52A1\u5668/apps/NAME \u4E2D\u7684 NAME\uFF0C\u7528\u4E8E\u6253\u5F00\u5E94\u7528\u7684\u5B89\u88C5\u9875\u9762\u3002",
|
|
"h.refresh": "\u5237\u65B0",
|
|
"h.setupHint": "\u8FD0\u884C\u8BBE\u7F6E\u5411\u5BFC\u4EE5\u8FDE\u63A5 Git \u6258\u7BA1\u670D\u52A1\u548C\u4ED3\u5E93\u3002",
|
|
"h.resolve": "\u89E3\u51B3",
|
|
"h.resolveTitle": "\u89E3\u51B3\u51B2\u7A81\uFF1A{path}",
|
|
"h.currentNote": "\u5F53\u524D\u7B14\u8BB0",
|
|
"h.conflictCopy": "\u51B2\u7A81\u526F\u672C",
|
|
"h.tokenExpires": "\u4F60\u7684\u8BBF\u95EE\u4EE4\u724C\u5C06\u5728 {days} \u5929\u540E\u8FC7\u671F\u3002\u8BF7\u521B\u5EFA\u4E00\u4E2A\u65B0\u4EE4\u724C\u5E76\u7C98\u8D34\u5230\u8BBE\u7F6E\u4E2D\u3002",
|
|
"h.tokenExpiresToday": "\u4F60\u7684\u8BBF\u95EE\u4EE4\u724C\u4ECA\u5929\u8FC7\u671F\u3002\u8BF7\u521B\u5EFA\u4E00\u4E2A\u65B0\u4EE4\u724C\u5E76\u7C98\u8D34\u5230\u8BBE\u7F6E\u4E2D\u3002",
|
|
"h.newToken": "\u521B\u5EFA\u65B0\u4EE4\u724C",
|
|
"u.previewTitle": "\u9884\u89C8\u540C\u6B65",
|
|
"u.previewHint": "\u5C1A\u672A\u8FDB\u884C\u4EFB\u4F55\u66F4\u6539\u3002\u8FD9\u662F\u4E0B\u6B21\u540C\u6B65\u5C06\u6267\u884C\u7684\u64CD\u4F5C\u3002",
|
|
"u.close": "\u5173\u95ED",
|
|
"s.configDirWarn": "\u63D2\u4EF6\u4EE3\u7801\u4E5F\u4F1A\u540C\u6B65\uFF0C\u56E0\u6B64\u4EFB\u4F55\u80FD\u5411\u4ED3\u5E93\u63A8\u9001\u7684\u4EBA\u90FD\u53EF\u4EE5\u5728\u4F60\u7684\u8BBE\u5907\u4E0A\u8FD0\u884C\u4EE3\u7801\u3002\u540C\u6B65\u7684\u63D2\u4EF6\u5728\u91CD\u542F\u540E\u52A0\u8F7D\u3002",
|
|
"p.scanning": "\u6B63\u5728\u626B\u63CF\u6587\u4EF6\u2026",
|
|
"p.checking": "\u6B63\u5728\u68C0\u67E5 {host}\u2026",
|
|
"p.downloading": "\u6B63\u5728\u4E0B\u8F7D {done}/{total}",
|
|
"p.uploading": "\u6B63\u5728\u4E0A\u4F20 {done}/{total}",
|
|
"cmd.syncFile": "\u7ACB\u5373\u540C\u6B65\u5F53\u524D\u6587\u4EF6",
|
|
"cmd.setupLink": "\u6DFB\u52A0\u5176\u4ED6\u8BBE\u5907\uFF08\u8BBE\u7F6E\u94FE\u63A5\uFF09",
|
|
"x.pending": "\u81EA\u4E0A\u6B21\u540C\u6B65\u540E\u5DF2\u7F16\u8F91",
|
|
"x.conflict": "\u51B2\u7A81\u526F\u672C\uFF1A\u8BF7\u5728\u540C\u6B65\u72B6\u6001\u9762\u677F\u4E2D\u89E3\u51B3",
|
|
"os.title": "\u53E6\u4E00\u4E2A\u540C\u6B65\u5DE5\u5177\u6B63\u5728\u8FD0\u884C",
|
|
"os.found": "\u540C\u65F6\u5728\u540C\u6B65\u6B64\u5E93\u7684\u8FD8\u6709\uFF1A{list}\u3002",
|
|
"os.gitFolder": "\u4E00\u4E2A Git \u4ED3\u5E93\uFF08.git \u6587\u4EF6\u5939\uFF09",
|
|
"os.hint": "\u4E24\u4E2A\u5DE5\u5177\u5199\u5165\u76F8\u540C\u7684\u6587\u4EF6\u53EF\u80FD\u4F1A\u4E92\u76F8\u8986\u76D6\u66F4\u6539\u3002\u8BF7\u53EA\u7528\u5176\u4E2D\u4E00\u4E2A\u540C\u6B65\u6B64\u5E93\uFF0C\u6216\u786E\u4FDD\u5B83\u4EEC\u540C\u6B65\u4E0D\u540C\u7684\u6587\u4EF6\u5939\u3002",
|
|
"link.addDevice": "\u6DFB\u52A0\u5176\u4ED6\u8BBE\u5907",
|
|
"link.addDeviceDesc": "\u521B\u5EFA\u94FE\u63A5\u548C QR \u7801\uFF0C\u7528\u4E8E\u4EE5\u6B64\u4ED3\u5E93\u548C\u8FD9\u4E9B\u540C\u6B65\u8BBE\u7F6E\u6765\u8BBE\u7F6E\u53E6\u4E00\u53F0\u8BBE\u5907\u3002",
|
|
"link.createBtn": "\u521B\u5EFA\u8BBE\u7F6E\u94FE\u63A5",
|
|
"link.createTitle": "\u6DFB\u52A0\u5176\u4ED6\u8BBE\u5907",
|
|
"link.createIntro": "\u5728\u65B0\u8BBE\u5907\u4E0A\u5B89\u88C5\u63D2\u4EF6\u540E\uFF0C\u5728\u8BE5\u8BBE\u5907\u4E0A\u6253\u5F00\u6B64\u94FE\u63A5\uFF08\u6216\u7528\u5176\u76F8\u673A\u626B\u63CF\u6B64\u7801\uFF09\u3002\u5B83\u4F1A\u586B\u5165\u6258\u7BA1\u670D\u52A1\u3001\u4ED3\u5E93\u548C\u540C\u6B65\u8BBE\u7F6E\u3002",
|
|
"link.includeToken": "\u5305\u542B\u8BBF\u95EE\u4EE4\u724C",
|
|
"link.includeTokenDesc": "\u4EE4\u724C\u4F7F\u7528\u4E0B\u65B9\u663E\u793A\u7684\u4E00\u6B21\u6027\u4EE3\u7801\u52A0\u5BC6\u3002\u6CA1\u6709\u8BE5\u4EE3\u7801\uFF0C\u94FE\u63A5\u65E0\u6CD5\u4F7F\u7528\uFF1B\u8BF7\u5355\u72EC\u5206\u4EAB\u4EE3\u7801\u3002",
|
|
"link.signInNote": "\u6B64\u8BBE\u5907\u5DF2\u4F7F\u7528 {host} \u767B\u5F55\u3002\u65B0\u8BBE\u5907\u4F1A\u81EA\u884C\u767B\u5F55\uFF0C\u56E0\u6B64\u4E0D\u5305\u542B\u4EE4\u724C\u3002",
|
|
"link.encrypting": "\u6B63\u5728\u52A0\u5BC6\u2026",
|
|
"link.link": "\u8BBE\u7F6E\u94FE\u63A5",
|
|
"link.linkDesc": "\u53D1\u9001\u7ED9\u4F60\u81EA\u5DF1\uFF0C\u4F8B\u5982\u901A\u8FC7\u7535\u5B50\u90AE\u4EF6\u6216\u7B14\u8BB0\u5E94\u7528\u3002",
|
|
"link.copyLink": "\u590D\u5236\u94FE\u63A5",
|
|
"link.copied": "\u5DF2\u590D\u5236",
|
|
"link.qrLabel": "\u8BBE\u7F6E\u94FE\u63A5\u7684 QR \u7801",
|
|
"link.codeIntro": "\u4E00\u6B21\u6027\u4EE3\u7801\uFF08\u5728\u65B0\u8BBE\u5907\u4E0A\u8F93\u5165\uFF09\uFF1A",
|
|
"link.keepApart": "\u4E0D\u8981\u5C06\u4EE3\u7801\u4E0E\u94FE\u63A5\u4E00\u8D77\u53D1\u9001\u3002",
|
|
"link.noSecrets": "\u6B64\u94FE\u63A5\u4E0D\u5305\u542B\u4EE4\u724C\u6216\u5BC6\u7801\u3002\u65B0\u8BBE\u5907\u4F7F\u7528\u81EA\u5DF1\u7684\u767B\u5F55\u6216\u4EE4\u724C\u8FDB\u884C\u8FDE\u63A5\u3002",
|
|
"link.applyTitle": "\u901A\u8FC7\u94FE\u63A5\u8BBE\u7F6E\u6B64\u8BBE\u5907",
|
|
"link.applyIntro": "\u6B64\u94FE\u63A5\u5C06\u4E3A\u5E93\u201C{vault}\u201D\u8BBE\u7F6E\u540C\u6B65\uFF1A",
|
|
"link.server": "\u670D\u52A1\u5668\uFF1A{url}",
|
|
"link.withSettings": "\u540C\u65F6\u540C\u6B65\u8BBE\u7F6E\u6587\u4EF6\u5939\uFF0C\u9009\u9879\u76F8\u540C",
|
|
"link.withToken": "\u5305\u542B\u8BBF\u95EE\u4EE4\u724C\uFF08\u9700\u8981\u4E00\u6B21\u6027\u4EE3\u7801\uFF09",
|
|
"link.subdir": "\u4ED3\u5E93\u4E2D\u7684\u6587\u4EF6\u5939\uFF1A{folder}",
|
|
"link.onlyYours": "\u4EC5\u5F53\u6B64\u94FE\u63A5\u662F\u4F60\u81EA\u5DF1\u521B\u5EFA\u7684\u65F6\u624D\u7EE7\u7EED\u3002\u4ED6\u4EBA\u63D0\u4F9B\u7684\u94FE\u63A5\u53EF\u80FD\u4F1A\u5C06\u4F60\u7684\u5E93\u8FDE\u63A5\u5230\u4ED6\u4EEC\u7684\u4ED3\u5E93\u3002",
|
|
"link.replaces": "\u8FD9\u5C06\u66FF\u6362\u5F53\u524D\u4E0E {repo} \u7684\u8FDE\u63A5\u3002",
|
|
"link.code": "\u4E00\u6B21\u6027\u4EE3\u7801",
|
|
"link.codeDesc": "\u663E\u793A\u5728\u521B\u5EFA\u94FE\u63A5\u7684\u8BBE\u5907\u4E0A\u3002",
|
|
"link.apply": "\u8BBE\u7F6E\u6B64\u8BBE\u5907",
|
|
"link.needCode": "\u8BF7\u5148\u8F93\u5165\u4E00\u6B21\u6027\u4EE3\u7801\u3002",
|
|
"link.decrypting": "\u6B63\u5728\u68C0\u67E5\u4EE3\u7801\u2026",
|
|
"link.wrongCode": "\u8BE5\u4EE3\u7801\u4E0E\u6B64\u94FE\u63A5\u4E0D\u5339\u914D\u3002",
|
|
"link.invalid": "\u6B64\u8BBE\u7F6E\u94FE\u63A5\u4E0D\u5B8C\u6574\u6216\u5DF2\u635F\u574F\u3002\u8BF7\u5728\u4F60\u7684\u53E6\u4E00\u53F0\u8BBE\u5907\u4E0A\u521B\u5EFA\u65B0\u94FE\u63A5\u3002",
|
|
"link.wizardHint": "\u5DF2\u7ECF\u5728\u53E6\u4E00\u53F0\u8BBE\u5907\u4E0A\u540C\u6B65\uFF1F\u8BF7\u5728\u90A3\u53F0\u8BBE\u5907\u7684\u72B6\u6001\u9762\u677F\u6216\u8BBE\u7F6E\u4E2D\u9009\u62E9\u201C\u6DFB\u52A0\u5176\u4ED6\u8BBE\u5907\u201D\uFF0C\u7136\u540E\u5728\u8FD9\u91CC\u6253\u5F00\u94FE\u63A5\u3002",
|
|
"s.cfgAppearance": "\u5916\u89C2\u548C\u4E3B\u9898",
|
|
"s.cfgAppearanceDesc": "\u4E3B\u9898\u3001\u5B57\u4F53\u3001\u5F3A\u8C03\u8272\u548C\u5DF2\u5B89\u88C5\u7684\u4E3B\u9898\u3002",
|
|
"s.cfgSnippets": "CSS \u4EE3\u7801\u7247\u6BB5",
|
|
"s.cfgHotkeys": "\u5FEB\u6377\u952E",
|
|
"s.cfgCore": "\u6838\u5FC3\u8BBE\u7F6E",
|
|
"s.cfgCoreDesc": "\u7F16\u8F91\u5668\u3001\u6587\u4EF6\u4E0E\u94FE\u63A5\u3001\u6838\u5FC3\u63D2\u4EF6\u53CA\u5176\u9009\u9879\u3002",
|
|
"s.cfgPluginList": "\u542F\u7528\u4E86\u54EA\u4E9B\u793E\u533A\u63D2\u4EF6",
|
|
"s.cfgPluginListDesc": "\u5728\u4E00\u53F0\u8BBE\u5907\u4E0A\u5F00\u542F\u6216\u5173\u95ED\u63D2\u4EF6\uFF0C\u5176\u4ED6\u8BBE\u5907\u4E5F\u4F1A\u540C\u6837\u5F00\u542F\u6216\u5173\u95ED\u3002",
|
|
"s.cfgPluginCode": "\u793E\u533A\u63D2\u4EF6\u4EE3\u7801",
|
|
"s.cfgPluginCodeDesc": "\u5728\u6BCF\u53F0\u8BBE\u5907\u4E0A\u5B89\u88C5\u548C\u66F4\u65B0\u63D2\u4EF6\u3002\u540C\u6B65\u7684\u63D2\u4EF6\u4EE3\u7801\u53EF\u4EE5\u5728\u4F60\u7684\u6240\u6709\u8BBE\u5907\u4E0A\u8FD0\u884C\u3002",
|
|
"s.cfgPluginSettings": "\u793E\u533A\u63D2\u4EF6\u8BBE\u7F6E",
|
|
"s.cfgPerPlugin": "\u6309\u63D2\u4EF6\u9009\u62E9",
|
|
"s.cfgPerPluginDesc": "\u5355\u4E2A\u63D2\u4EF6\u7684\u8986\u76D6\u8BBE\u7F6E\uFF08\u5DF2\u8BBE\u7F6E {n} \u4E2A\uFF09\u3002",
|
|
"s.cfgPerPluginBtn": "\u9009\u62E9",
|
|
"s.cfgPerPluginIntro": "\u5BF9\u4E8E\u6BCF\u4E2A\u63D2\u4EF6\uFF0C\u53EF\u4EE5\u9075\u5FAA\u4E0A\u65B9\u7684\u5F00\u5173\uFF0C\u6216\u9009\u62E9\u8981\u540C\u6B65\u7684\u5185\u5BB9\u3002\u4FDD\u5B58\u8BBE\u5907\u7279\u5B9A\u6570\u636E\uFF08\u8DEF\u5F84\u3001\u7A97\u53E3\u5E03\u5C40\uFF09\u7684\u63D2\u4EF6\u9002\u5408\u9009\u62E9\u201C\u4EC5\u6B64\u8BBE\u5907\u201D\u3002",
|
|
"s.cfgNoPlugins": "\u672A\u5B89\u88C5\u793E\u533A\u63D2\u4EF6\u3002",
|
|
"s.cfgThisPlugin": "\u6B64\u63D2\u4EF6",
|
|
"s.cfgFollow": "\u9075\u5FAA\u5F00\u5173",
|
|
"s.cfgAll": "\u4EE3\u7801\u548C\u8BBE\u7F6E",
|
|
"s.cfgCodeOnly": "\u4EC5\u4EE3\u7801",
|
|
"s.cfgSettingsOnly": "\u4EC5\u8BBE\u7F6E",
|
|
"s.cfgNone": "\u4EC5\u6B64\u8BBE\u5907",
|
|
"s.hidden": "\u540C\u6B65\u9690\u85CF\u7684\u6587\u4EF6\u548C\u6587\u4EF6\u5939",
|
|
"s.hiddenDesc": "\u5E93\u9876\u5C42\u540D\u79F0\u4EE5\u70B9\u5F00\u5934\u7684\u6587\u4EF6\u548C\u6587\u4EF6\u5939\uFF0C\u4F8B\u5982 .github \u6216 .editorconfig\u3002\u4ECE\u4E0D\u5305\u62EC .git\u3001.trash \u6216\u8BBE\u7F6E\u6587\u4EF6\u5939\u3002\u66F4\u6539\u4F1A\u5728\u51E0\u5206\u949F\u5185\u88AB\u53D1\u73B0\u3002",
|
|
"s.gitignore": "\u9075\u5FAA\u5E93\u7684 .gitignore",
|
|
"s.gitignoreDesc": "\u5E93\u4E2D .gitignore \u6587\u4EF6\u5217\u51FA\u7684\u6587\u4EF6\u4E0D\u4F1A\u540C\u6B65\uFF08\u6587\u4EF6\u5939\u5185\u7684 .gitignore \u53EA\u4F5C\u7528\u4E8E\u8BE5\u6587\u4EF6\u5939\uFF0C\u4E0E Git \u76F8\u540C\uFF09\uFF0C\u800C .gitignore \u6587\u4EF6\u672C\u8EAB\u4F1A\u540C\u6B65\u5230\u6BCF\u53F0\u8BBE\u5907\u3002\u4F60\u7684\u6392\u9664\u89C4\u5219\u4ECD\u5177\u6709\u6700\u7EC8\u51B3\u5B9A\u6743\u3002",
|
|
"s.onOpen": "\u6253\u5F00\u7B14\u8BB0\u65F6\u540C\u6B65",
|
|
"s.onOpenDesc": "\u5728\u4F60\u7F16\u8F91\u524D\u83B7\u53D6\u6700\u65B0\u7248\u672C\uFF0C\u6700\u591A\u6BCF 30 \u79D2\u4E00\u6B21\u3002",
|
|
"s.badges": "\u5728\u6587\u4EF6\u5217\u8868\u4E2D\u663E\u793A\u540C\u6B65\u72B6\u6001",
|
|
"s.badgesDesc": "\u81EA\u4E0A\u6B21\u540C\u6B65\u540E\u7F16\u8F91\u8FC7\u7684\u6587\u4EF6\u663E\u793A\u5706\u70B9\uFF0C\u51B2\u7A81\u526F\u672C\u663E\u793A\u8B66\u544A\u3002",
|
|
"s.noticesAuto": "\u81EA\u52A8\uFF08\u624B\u673A\u4E0A\u663E\u793A\u66F4\u6539\uFF0C\u684C\u9762\u4E0A\u663E\u793A\u9519\u8BEF\uFF09",
|
|
"s.noticesChanges": "\u6587\u4EF6\u6709\u66F4\u6539\u65F6\u53CA\u51FA\u9519\u65F6",
|
|
"s.cfgPluginSettingsDesc": "\u6BCF\u4E2A\u63D2\u4EF6\u7684\u9009\u9879\uFF08data.json\uFF09\u3002",
|
|
"link.tooLongForQr": "\u6B64\u94FE\u63A5\u592A\u957F\uFF0C\u65E0\u6CD5\u751F\u6210\u4E8C\u7EF4\u7801\u3002\u8BF7\u6539\u4E3A\u590D\u5236\u94FE\u63A5\u3002",
|
|
"link.withHidden": "\u540C\u65F6\u540C\u6B65\u5E93\u9876\u5C42\u7684\u9690\u85CF\u6587\u4EF6",
|
|
"link.withGitignore": "\u9075\u5FAA\u5E93\u4E2D\u7684 .gitignore",
|
|
"link.withExclude": "\u66FF\u6362\u6B64\u5E93\u7684\u6392\u9664\u89C4\u5219",
|
|
"s.apiBaseInvalid": "\u8BF7\u8F93\u5165\u4EE5 https:// \u5F00\u5934\u7684 API \u5730\u5740\uFF08http:// \u4EC5\u9002\u7528\u4E8E\u672C\u673A\u4E0A\u7684\u670D\u52A1\u5668\uFF09\u3002",
|
|
"s.lfsAboveMax": "\u5927\u6587\u4EF6\u9608\u503C\u5927\u4E8E\u6216\u7B49\u4E8E\u6700\u5927\u6587\u4EF6\u5927\u5C0F\uFF08{max} MB\uFF09\uFF0C\u56E0\u6B64\u6C38\u8FDC\u4E0D\u4F1A\u4F7F\u7528\u5927\u6587\u4EF6\u5B58\u50A8\u3002\u8BF7\u964D\u4F4E\u9608\u503C\u6216\u63D0\u9AD8\u6700\u5927\u503C\u3002",
|
|
"s.guardMinLabel": "\u6700\u5C11\u5220\u9664\u6570\u91CF",
|
|
"s.guardPercentLabel": "\u6700\u4F4E\u6587\u4EF6\u767E\u5206\u6BD4",
|
|
"sh.notFound": "\u627E\u4E0D\u5230\u4ED3\u5E93\uFF0C\u6216\u6B64\u4EE4\u724C\u65E0\u6CD5\u8BBF\u95EE\u8BE5\u4ED3\u5E93",
|
|
"m.unlockToBrowse": "\u6B64\u4ED3\u5E93\u5DF2\u7AEF\u5230\u7AEF\u52A0\u5BC6\u3002\u8BF7\u5728\u6B64\u8BBE\u5907\u4E0A\u8F93\u5165\u5BC6\u7801\u77ED\u8BED\u4EE5\u6D4F\u89C8\u3002",
|
|
"m.beforeCommit": "{sha} \u4E4B\u524D",
|
|
"m.mergedN": "\u5DF2\u5408\u5E76 {n} \u4E2A",
|
|
"m.nothingToSnapshot": "\u6682\u65E0\u53EF\u521B\u5EFA\u5FEB\u7167\u7684\u5185\u5BB9\u3002\u8BF7\u5148\u540C\u6B65\u3002",
|
|
"m.queued": "\u6B63\u5728\u8FDB\u884C\u4E00\u6B21\u540C\u6B65\u3002\u4F60\u7684\u540C\u6B65\u4F1A\u5728\u5B83\u5B8C\u6210\u540E\u7ACB\u5373\u5F00\u59CB\u3002",
|
|
"h.deleteCopyBody": "\u51B2\u7A81\u526F\u672C\u4F1A\u79FB\u5230\u56DE\u6536\u7AD9\uFF08\u6216\u88AB\u5220\u9664\uFF0C\u53D6\u51B3\u4E8E Obsidian \u7684\u201C\u5DF2\u5220\u9664\u7684\u6587\u4EF6\u201D\u8BBE\u7F6E\uFF09\u3002\u8BF7\u786E\u8BA4\u4F60\u5DF2\u4FDD\u7559\u5176\u4E2D\u9700\u8981\u7684\u5185\u5BB9\u3002",
|
|
"u.binaryFile": "\uFF08\u4E8C\u8FDB\u5236\u6587\u4EF6\uFF0C{n} \u5B57\u8282\uFF09",
|
|
"u.selectGroup": "\u5168\u9009\uFF1A{group}",
|
|
"u.includeFile": "\u5728\u6B64\u6B21\u540C\u6B65\u4E2D\u5305\u542B {path}",
|
|
"m.pausedStatus": "\u81EA\u52A8\u540C\u6B65\u5DF2\u6682\u505C",
|
|
"m.paused": "\u5728\u4F60\u6062\u590D\u4E4B\u524D\uFF0C\u6B64\u8BBE\u5907\u4E0A\u7684\u81EA\u52A8\u540C\u6B65\u5DF2\u6682\u505C\u3002\u624B\u52A8\u540C\u6B65\u4ECD\u7136\u53EF\u7528\u3002",
|
|
"m.pausedFor": "\u6B64\u8BBE\u5907\u4E0A\u7684\u81EA\u52A8\u540C\u6B65\u5DF2\u6682\u505C {n} \u5206\u949F\u3002",
|
|
"m.resumed": "\u81EA\u52A8\u540C\u6B65\u5DF2\u6062\u590D\u3002",
|
|
"cmd.pause": "\u6682\u505C\u6216\u6062\u590D\u81EA\u52A8\u540C\u6B65",
|
|
"cmd.pauseHour": "\u6682\u505C\u81EA\u52A8\u540C\u6B65\u4E00\u5C0F\u65F6",
|
|
"cmd.diagnostics": "\u590D\u5236\u8BCA\u65AD\u4FE1\u606F\uFF08\u7528\u4E8E\u95EE\u9898\u62A5\u544A\uFF09",
|
|
"cmd.openOnHost": "\u5728\u6258\u7BA1\u670D\u52A1\u4E0A\u6253\u5F00\u5F53\u524D\u6587\u4EF6",
|
|
"cmd.historyOnHost": "\u5728\u6258\u7BA1\u670D\u52A1\u4E0A\u6253\u5F00\u5F53\u524D\u6587\u4EF6\u7684\u5386\u53F2\u8BB0\u5F55",
|
|
"cmd.copyHostLink": "\u590D\u5236\u5F53\u524D\u6587\u4EF6\u5728\u6258\u7BA1\u670D\u52A1\u4E0A\u7684\u94FE\u63A5",
|
|
"menu.shareFolder": "\u5C06\u6B64\u6587\u4EF6\u5939\u5171\u4EAB\u5230\u4E00\u4E2A\u4ED3\u5E93\u2026",
|
|
"menu.excludeFolder": "\u5C06\u6B64\u6587\u4EF6\u5939\u6392\u9664\u5728\u540C\u6B65\u4E4B\u5916",
|
|
"menu.openOnHost": "\u5728 {host} \u4E0A\u6253\u5F00",
|
|
"menu.copyHostLink": "\u590D\u5236 {host} \u4E0A\u7684\u94FE\u63A5",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "\u6B64\u4ED3\u5E93\u91C7\u7528\u7AEF\u5230\u7AEF\u52A0\u5BC6\uFF0C\u56E0\u6B64\u6587\u4EF6\u5728\u6258\u7BA1\u670D\u52A1\u4E0A\u6CA1\u6709\u53EF\u8BFB\u7684\u5730\u5740\u3002",
|
|
"m.hostLinkUnsupported": "{host} \u6CA1\u6709\u6B64\u6587\u4EF6\u7684\u7F51\u9875\u3002",
|
|
"m.alreadyExcluded": "{folder} \u5DF2\u88AB\u6392\u9664\u3002",
|
|
"m.excludeBody": "{folder} \u4E2D\u7684\u6587\u4EF6\u5C06\u4E0D\u518D\u5728\u4EFB\u4F55\u8BBE\u5907\u4E0A\u88AB\u4E0A\u4F20\u3001\u4E0B\u8F7D\u6216\u5220\u9664\u3002\u73B0\u5728\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u5185\u5BB9\u3002",
|
|
"m.excluded": "{folder} \u73B0\u5DF2\u6392\u9664\u5728\u540C\u6B65\u4E4B\u5916\u3002",
|
|
"m.diagnosticsCopied": "\u8BCA\u65AD\u4FE1\u606F\u5DF2\u590D\u5236\u3002\u4EE4\u724C\u5DF2\u9690\u85CF\uFF1B\u7531\u4E8E\u5176\u4E2D\u5305\u542B\u65E5\u5FD7\u91CC\u7684\u6587\u4EF6\u540D\uFF0C\u5206\u4EAB\u524D\u8BF7\u68C0\u67E5\u6587\u672C\u5185\u5BB9\u3002",
|
|
"h.resume": "\u6062\u590D",
|
|
"h.pause": "\u6682\u505C 1 \u5C0F\u65F6",
|
|
"h.pausedUntilResumed": "\u81EA\u52A8\u540C\u6B65\u5DF2\u6682\u505C\uFF0C\u76F4\u5230\u4F60\u624B\u52A8\u6062\u590D\u3002",
|
|
"h.pausedUntil": "\u81EA\u52A8\u540C\u6B65\u5DF2\u6682\u505C\u81F3 {time}\u3002",
|
|
"h.batterySaverOn": "\u7701\u7535\u6A21\u5F0F\u5DF2\u5F00\u542F\uFF1A\u6B64\u8BBE\u5907\u4E0A\u6CA1\u6709\u5B9A\u65F6\u540C\u6B65\uFF0C\u7F16\u8F91\u540E\u4E5F\u4E0D\u4F1A\u540C\u6B65\u3002",
|
|
"h.batterySaverTurnOn": "\u5F00\u542F\u7701\u7535\u6A21\u5F0F",
|
|
"h.batterySaverOff": "\u5173\u95ED\u7701\u7535\u6A21\u5F0F",
|
|
"h.versionMismatch": "\u5404\u8BBE\u5907\u8FD0\u884C\u7684\u6B64\u63D2\u4EF6\u7248\u672C\u4E0D\u540C\uFF08\u6B64\u8BBE\u5907\uFF1A{mine}\uFF1B{list}\uFF09\u3002\u8BF7\u66F4\u65B0\u5B83\u4EEC\uFF0C\u4EE5\u4FBF\u4EE5\u76F8\u540C\u65B9\u5F0F\u540C\u6B65\u3002",
|
|
"h.badNames": "Windows \u65E0\u6CD5\u4FDD\u5B58\u7684\u540D\u79F0\uFF08{n}\uFF09",
|
|
"h.badNamesHint": '\u8FD9\u4E9B\u6587\u4EF6\u65E0\u6CD5\u540C\u6B65\u5230 Windows \u8BBE\u5907\uFF08\u4EE5\u53CA\u90E8\u5206 Android \u8BBE\u5907\uFF09\u3002\u8BF7\u91CD\u547D\u540D\u4EE5\u53BB\u6389 < > : " | ? * \u6216\u672B\u5C3E\u7684\u70B9\u6216\u7A7A\u683C\u3002',
|
|
"u.filterSearch": "\u6309\u540D\u79F0\u7B5B\u9009",
|
|
"u.filterAll": "\u5168\u90E8",
|
|
"u.filterUploads": "\u4E0A\u4F20",
|
|
"u.filterDownloads": "\u4E0B\u8F7D",
|
|
"u.filterDeletes": "\u5220\u9664",
|
|
"u.filterConflicts": "\u51B2\u7A81",
|
|
"m.mirrorFailed": "\u5907\u4EFD\u955C\u50CF\uFF1A{error}",
|
|
"m.hostRemoved": "\u5DF2\u4E0D\u518D\u652F\u6301 Gitee \u548C Azure DevOps\u3002\u540C\u6B65\u5DF2\u6682\u505C\uFF1A\u8BF7\u5728 \u8BBE\u7F6E \u2192 Vault Sync for Git \u4E2D\u9009\u62E9\u5176\u4ED6\u6258\u7BA1\u670D\u52A1\u3002\u4F60\u7684\u6587\u4EF6\u672A\u88AB\u66F4\u6539\u3002",
|
|
"m.hostRemovedOther": "\u5DF2\u4E0D\u518D\u652F\u6301 Gitee \u548C Azure DevOps\u3002\u4F7F\u7528\u5B83\u4EEC\u7684\u5907\u4EFD\u955C\u50CF\u5DF2\u5173\u95ED\uFF0C\u4F4D\u4E8E\u5B83\u4EEC\u4E0A\u7684\u5171\u4EAB\u6587\u4EF6\u5939\u4F1A\u88AB\u8DF3\u8FC7\u3002\u4F60\u7684\u6587\u4EF6\u672A\u88AB\u66F4\u6539\u3002",
|
|
"sh.subdir": "\u4ED3\u5E93\u4E2D\u7684\u6587\u4EF6\u5939\uFF08\u53EF\u9009\uFF09",
|
|
"sh.subdirDesc": "\u5C06\u5171\u4EAB\u6587\u4EF6\u5939\u5BF9\u5E94\u5230\u4ED3\u5E93\u5185\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF08\u4F8B\u5982 docs\uFF09\uFF0C\u800C\u4E0D\u662F\u4ED3\u5E93\u6839\u76EE\u5F55\u3002\u4ED3\u5E93\u4E2D\u5176\u4ED6\u4F4D\u7F6E\u7684\u6587\u4EF6\u4E0D\u53D7\u5F71\u54CD\u3002",
|
|
"sh.conflicts": "\u5F53\u4E24\u4E2A\u4EBA\u4FEE\u6539\u4E86\u76F8\u540C\u7684\u884C\u65F6",
|
|
"sh.conflictsDesc": "\u5728\u6B64\u5904\u5C06\u4E24\u4E2A\u7248\u672C\u90FD\u4FDD\u7559\u4E3A\u51B2\u7A81\u526F\u672C\uFF0C\u6216\u8005\u5C06\u6B64\u8BBE\u5907\u7684\u7248\u672C\u53D1\u9001\u5230\u65B0\u5206\u652F\u5E76\u521B\u5EFA\u62C9\u53D6\u8BF7\u6C42\uFF0C\u4F9B\u56E2\u961F\u5BA1\u9605\u3002",
|
|
"sh.conflictsCopy": "\u4FDD\u7559\u4E24\u8005\uFF08\u51B2\u7A81\u526F\u672C\uFF09",
|
|
"sh.conflictsPr": "\u521B\u5EFA\u62C9\u53D6\u8BF7\u6C42",
|
|
"m.prOpened": "{folder}\uFF1A\u51B2\u7A81\u7684\u7F16\u8F91\u5DF2\u4F5C\u4E3A\u62C9\u53D6\u8BF7\u6C42\u53D1\u9001\uFF1A{url}",
|
|
"pi.title": "\u5B89\u88C5\u4F60\u5176\u4ED6\u8BBE\u5907\u4E0A\u4F7F\u7528\u7684\u63D2\u4EF6",
|
|
"pi.body": "\u8FD9\u4E9B\u793E\u533A\u63D2\u4EF6\u5DF2\u5728\u53E6\u4E00\u53F0\u8BBE\u5907\u4E0A\u542F\u7528\uFF08\u6216\u66F4\u65B0\uFF09\u3002Vault Sync for Git \u53EF\u4EE5\u5728\u6B64\u5904\u5B89\u88C5\u76F8\u540C\u7248\u672C\uFF0C\u6765\u6E90\u4E3A Obsidian \u793E\u533A\u76EE\u5F55\u4E2D\u5217\u51FA\u7684\u5404\u63D2\u4EF6\u5728 GitHub \u4E0A\u7684\u5B98\u65B9\u53D1\u5E03\u7248\u672C\u3002",
|
|
"pi.list": "\u63D2\u4EF6",
|
|
"pi.install": "\u5B89\u88C5",
|
|
"pi.failed": "\u65E0\u6CD5\u5B89\u88C5 {name}\uFF1A{error}",
|
|
"pi.done": "\u5DF2\u5B89\u88C5\uFF1A{list}\u3002\u8BF7\u91CD\u542F Obsidian\uFF08\u6216\u5C06\u6BCF\u4E2A\u63D2\u4EF6\u5173\u95ED\u518D\u6253\u5F00\uFF09\u4EE5\u52A0\u8F7D\u5B83\u4EEC\u3002",
|
|
"s.cfgInstall": "\u4ECE\u5B98\u65B9\u53D1\u5E03\u7248\u672C\u5B89\u88C5\u63D2\u4EF6\u4EE3\u7801",
|
|
"s.cfgInstallDesc": "\u4E0D\u540C\u6B65\u63D2\u4EF6\u4EE3\u7801\uFF0C\u800C\u662F\u7531\u6BCF\u53F0\u8BBE\u5907\u4ECE\u63D2\u4EF6\u7684\u5B98\u65B9\u53D1\u5E03\u7248\u672C\u5B89\u88C5\u76F8\u540C\u7248\u672C\uFF08\u4F1A\u5148\u8BE2\u95EE\uFF09\u3002\u63D2\u4EF6\u7248\u672C\u4ECD\u4F1A\u540C\u6B65\u3002\u66F4\u5B89\u5168\uFF1A\u6CA1\u6709\u4EBA\u80FD\u901A\u8FC7\u4ED3\u5E93\u5411\u4F60\u7684\u8BBE\u5907\u63A8\u9001\u4EE3\u7801\u3002",
|
|
"s.branchDesc": "\u6B64\u5E93\u540C\u6B65\u7684\u5206\u652F\u3002\u5207\u6362\u540E\u4F1A\u91CD\u65B0\u5F00\u59CB\u6BD4\u8F83\uFF1B\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u5185\u5BB9\u3002",
|
|
"s.branchChoose": "\u9009\u62E9",
|
|
"s.branchIntro": "\u9009\u62E9\u4E00\u4E2A\u73B0\u6709\u5206\u652F\uFF0C\u6216\u4ECE\u5F53\u524D\u5206\u652F\u521B\u5EFA\u65B0\u5206\u652F\uFF08\u4F8B\u5982\u8349\u7A3F\u5206\u652F\uFF09\u3002",
|
|
"s.branchNew": "\u65B0\u5206\u652F",
|
|
"s.branchInvalid": "\u53EA\u80FD\u4F7F\u7528\u5B57\u6BCD\u3001\u6570\u5B57\u3001- _ . \u548C /\u3002",
|
|
"s.branchNoHead": "\u5206\u652F {branch} \u4E3A\u7A7A\uFF0C\u56E0\u6B64\u8FD8\u65E0\u6CD5\u4ECE\u5B83\u521B\u5EFA\u5206\u652F\u3002",
|
|
"s.branchNone": "\u8FD8\u6CA1\u6709\u5206\u652F\u3002",
|
|
"s.branchCurrent": "\u5F53\u524D\u5206\u652F",
|
|
"s.branchUse": "\u4F7F\u7528",
|
|
"s.emptyFolders": "\u4FDD\u7559\u7A7A\u6587\u4EF6\u5939",
|
|
"s.emptyFoldersDesc": "\u6CA1\u6709\u6587\u4EF6\u7684\u6587\u4EF6\u5939\u4F1A\u5728\u6BCF\u53F0\u8BBE\u5907\u4E0A\u4FDD\u7559\uFF08\u8BB0\u5F55\u5728 .vault-sync/folders.json \u4E2D\uFF09\u3002\u5F00\u542F\u7AEF\u5230\u7AEF\u52A0\u5BC6\u65F6\u4E0D\u53EF\u7528\u3002",
|
|
"s.battery": "\u7701\u7535\u6A21\u5F0F",
|
|
"s.batteryDesc": "\u5728\u6B64\u8BBE\u5907\u4E0A\uFF1A\u6CA1\u6709\u5B9A\u65F6\u540C\u6B65\uFF0C\u7F16\u8F91\u540E\u4E5F\u4E0D\u4F1A\u540C\u6B65\u3002\u5728\u542F\u52A8\u65F6\u3001\u8FD4\u56DE Obsidian \u65F6\u4EE5\u53CA\u624B\u52A8\u540C\u6B65\u65F6\u8FDB\u884C\u540C\u6B65\u3002",
|
|
"s.pause": "\u6682\u505C\u81EA\u52A8\u540C\u6B65",
|
|
"s.pauseDesc": "\u4EC5\u9650\u6B64\u8BBE\u5907\u3002\u624B\u52A8\u540C\u6B65\u4ECD\u7136\u53EF\u7528\u3002",
|
|
"s.pauseDescOn": "\u6B64\u8BBE\u5907\u4E0A\u7684\u81EA\u52A8\u540C\u6B65\u5DF2\u6682\u505C\u3002",
|
|
"s.pauseUntilResumed": "\u76F4\u5230\u6062\u590D",
|
|
"s.author": "\u63D0\u4EA4\u4F5C\u8005",
|
|
"s.authorDesc": "\u5199\u5165\u63D0\u4EA4\u7684\u59D3\u540D\u548C\u90AE\u7BB1\uFF08\u4E24\u8005\u90FD\u9700\u8981\uFF09\u3002\u7559\u7A7A\uFF1A\u6258\u7BA1\u670D\u52A1\u4F7F\u7528\u4EE4\u724C\u6240\u5C5E\u7684\u8D26\u6237\u3002",
|
|
"s.authorName": "\u59D3\u540D",
|
|
"s.authorEmail": "\u90AE\u7BB1",
|
|
"s.hMirror": "\u5907\u4EFD\u955C\u50CF",
|
|
"s.mirrorIntro": "\u6BCF\u6B21\u540C\u6B65\u65F6\u8FD8\u4F1A\u5C06\u6B64\u5E93\u4E0A\u4F20\u5230\u7B2C\u4E8C\u4E2A\u4ED3\u5E93\uFF0C\u4F8B\u5982\u53E6\u4E00\u4E2A\u6258\u7BA1\u670D\u52A1\u4E0A\u7684\u4ED3\u5E93\u3002\u4EC5\u63A8\u9001\uFF1A\u6C38\u8FDC\u4E0D\u4F1A\u4ECE\u955C\u50CF\u8BFB\u53D6\u3002\u5F00\u542F\u7AEF\u5230\u7AEF\u52A0\u5BC6\u65F6\uFF0C\u955C\u50CF\u4E5F\u4F1A\u88AB\u52A0\u5BC6\u3002",
|
|
"s.mirrorOn": "\u955C\u50CF\u6B64\u5E93",
|
|
"s.mirrorToken": "\u955C\u50CF\u4EE4\u724C",
|
|
"s.mirrorTokenDesc": "\u955C\u50CF\u4ED3\u5E93\u7684\u8BBF\u95EE\u4EE4\u724C\u3002\u4EC5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002\u7559\u7A7A\uFF1A\u5982\u679C\u662F\u540C\u4E00\u6258\u7BA1\u670D\u52A1\uFF0C\u5219\u4F7F\u7528\u4E3B\u4EE4\u724C\u3002",
|
|
"s.mirrorIncomplete": "\u8BF7\u5148\u5F00\u542F\u955C\u50CF\u5E76\u586B\u5199\u6240\u6709\u8005\u548C\u4ED3\u5E93\u3002",
|
|
"s.mirrorOk": "\u955C\u50CF\u53EF\u8BBF\u95EE\uFF1A{repo}",
|
|
"h.mirror": "\u5907\u4EFD\u955C\u50CF {target}\uFF1A\u4E0A\u6B21\u4E0A\u4F20 {ago}",
|
|
"h.mirrorFailed": "\u5907\u4EFD\u955C\u50CF {target} \u5931\u8D25\uFF1A{error}",
|
|
"cmd.overwrite": "\u8BA9\u4ED3\u5E93\u4E0E\u6B64\u8BBE\u5907\u4FDD\u6301\u4E00\u81F4",
|
|
"ow.title": "\u8BA9\u4ED3\u5E93\u4E0E\u6B64\u8BBE\u5907\u4FDD\u6301\u4E00\u81F4",
|
|
"ow.body": "\u5728 {host} \u4E0A\u521B\u5EFA\u4E00\u4E2A\u65B0\u63D0\u4EA4\uFF0C\u4F7F\u4ED3\u5E93\u4E0E\u6B64\u8BBE\u5907\u5B8C\u5168\u76F8\u540C\uFF1A\u5728\u90A3\u91CC\u4E0A\u4F20\u8FD9\u4E9B\u6587\u4EF6\u5E76\u5220\u9664\u8FD9\u4E9B\u6587\u4EF6\uFF08\u5B83\u4EEC\u4ECD\u4FDD\u7559\u5728\u5386\u53F2\u4E2D\uFF09\u3002\u4EC5\u4FDD\u5B58\u5728 {host} \u4E0A\u4F9B\u6309\u9700\u4E0B\u8F7D\u7684\u6587\u4EF6\u4E0D\u53D7\u5F71\u54CD\u3002\u5176\u4ED6\u8BBE\u5907\u4F1A\u5728\u4E0B\u6B21\u540C\u6B65\u65F6\u83B7\u53D6\u8FD9\u4E9B\u66F4\u6539\u3002",
|
|
"ow.upload": "\u4E0A\u4F20",
|
|
"ow.confirm": "\u4F7F\u5176\u4E00\u81F4",
|
|
"ow.done": "\u4ED3\u5E93\u5DF2\u66F4\u65B0\uFF1A\u4E00\u4E2A\u63D0\u4EA4\u4E2D\u5305\u542B {n} \u9879\u66F4\u6539\u3002",
|
|
"ow.failed": "\u65E0\u6CD5\u66F4\u65B0\u4ED3\u5E93\uFF1A{error}",
|
|
"m.clipboardFailed": "\u65E0\u6CD5\u590D\u5236\u5230\u526A\u8D34\u677F\uFF1A{error}",
|
|
"ce.ours": "\u4FDD\u7559\u6B64\u8BBE\u5907\u7684\u7248\u672C",
|
|
"ce.theirs": "\u4FDD\u7559\u4ED3\u5E93\u7684\u7248\u672C",
|
|
"ce.both": "\u4E24\u8005\u90FD\u4FDD\u7559",
|
|
"ce.hint": "\u51B2\u7A81\u7684\u66F4\u6539\uFF1A",
|
|
"app.signInGitLab": "\u4F7F\u7528 GitLab \u767B\u5F55",
|
|
"app.signInDescGitLab": "\u5728\u6D4F\u89C8\u5668\u4E2D\u6279\u51C6\u8BBF\u95EE\uFF0C\u65E0\u9700\u521B\u5EFA\u4EE4\u724C\u3002\u8BBF\u95EE\u6743\u9650\u4F1A\u81EA\u52A8\u7EED\u671F\u3002",
|
|
"app.signedInGitLab": "\u5DF2\u901A\u8FC7 GitLab \u767B\u5F55",
|
|
"app.signedInDescGitLab": "\u6B64\u8BBE\u5907\u4F7F\u7528 GitLab \u4E0A\u7684 Vault Sync for Git \u5E94\u7528\u3002\u8BBF\u95EE\u6743\u9650\u4F1A\u81EA\u52A8\u7EED\u671F\u3002\u4EC5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"app.glClientId": "GitLab \u5E94\u7528 ID\uFF08\u53EF\u9009\uFF09",
|
|
"app.glClientIdDesc": "\u8981\u4F7F\u7528\u201C\u4F7F\u7528 GitLab \u767B\u5F55\u201D\uFF1A\u586B\u5199\u5728\u4F60\u7684 GitLab \u4E0A\uFF08\u7F16\u8F91\u4E2A\u4EBA\u8D44\u6599 \u2192 \u5E94\u7528\uFF09\u521B\u5EFA\u7684\u3001\u5177\u6709 api \u6743\u9650\u8303\u56F4\u7684\u975E\u673A\u5BC6 OAuth \u5E94\u7528\u7684 Application ID\u3002\u4EC5\u4FDD\u5B58\u5728\u6B64\u8BBE\u5907\u4E0A\u3002",
|
|
"sh.ghFormat": "\u9002\u5408 GitHub \u7684 Markdown",
|
|
"sh.ghFormatDesc": "\u4EE5\u5728 GitHub \u4E0A\u6613\u8BFB\u7684\u5F62\u5F0F\u4FDD\u5B58\u7B14\u8BB0\uFF1A\u7EF4\u57FA\u94FE\u63A5\u53D8\u4E3A\u94FE\u63A5\uFF0C\u6807\u6CE8\u5757\u53D8\u4E3A\u63D0\u793A\u6846\uFF0C\u9AD8\u4EAE\u53D8\u4E3A <mark>\u3002\u4F60\u7684\u5E93\u4FDD\u7559\u539F\u59CB\u7684 Obsidian \u6587\u672C\u3002\u5728\u6DFB\u52A0\u6587\u4EF6\u5939\u65F6\u8BBE\u7F6E\u3002",
|
|
"s.hiddenNested": "\u6587\u4EF6\u5939\u5185\u7684\u9690\u85CF\u6587\u4EF6",
|
|
"s.hiddenNestedDesc": "\u540C\u65F6\u540C\u6B65\u7B14\u8BB0\u6587\u4EF6\u5939\u5185\u7684\u9690\u85CF\u6587\u4EF6\u548C\u6587\u4EF6\u5939\uFF08\u4F8B\u5982 Notes/.assets\uFF09\u3002\u8BBE\u7F6E\u6587\u4EF6\u5939\u3001.trash \u548C .git \u6C38\u8FDC\u4E0D\u4F1A\u5305\u542B\u5728\u5185\u3002",
|
|
"app.reposTitle": "\u5E94\u7528\u53EF\u4EE5\u4F7F\u7528\u7684\u4ED3\u5E93",
|
|
"app.addRepos": "\u5728 GitHub \u4E0A\u6DFB\u52A0\u4ED3\u5E93",
|
|
"app.watching": "\u6B63\u5728\u7B49\u5F85\u4F60\u5728 GitHub \u4E0A\u64CD\u4F5C\u3002\u8FD4\u56DE\u540E\u5217\u8868\u4F1A\u81EA\u52A8\u66F4\u65B0\u3002",
|
|
"app.noRepos": "\u5E94\u7528\u76EE\u524D\u770B\u4E0D\u5230\u4EFB\u4F55\u4ED3\u5E93\u3002\u8BF7\u5728 GitHub \u4E0A\u6DFB\u52A0\u4F60\u7684\u5E93\u4ED3\u5E93\u3002",
|
|
"app.newRepo": "\u65B0",
|
|
"app.newArrived": "\u5DF2\u6DFB\u52A0\u4ED3\u5E93\u3002\u8BF7\u5728\u4E0A\u65B9\u5217\u8868\u4E2D\u9009\u62E9\u5B83\u3002",
|
|
"s.repoPick": "\u9009\u62E9\u4E00\u4E2A\u4ED3\u5E93",
|
|
"s.strategyDesc": "\u81EA\u52A8\u5408\u5E76\u4F1A\u5408\u5E76\u4E0D\u540C\u884C\u7684\u66F4\u6539\uFF1B\u540C\u4E00\u884C\u90FD\u88AB\u66F4\u6539\u65F6\u4FDD\u7559\u4E24\u4E2A\u7248\u672C\u3002",
|
|
"s.pauseDescUntil": "\u6B64\u8BBE\u5907\u4E0A\u7684\u81EA\u52A8\u540C\u6B65\u5DF2\u6682\u505C\uFF0C\u76F4\u5230 {time}\u3002",
|
|
"s.branchPick": "\u9009\u62E9\u4E00\u4E2A\u5206\u652F",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "\u4ED3\u5E93\u6258\u7BA1\u65B9",
|
|
"err.network": "\u4E0E {host} \u901A\u4FE1\u65F6\u51FA\u73B0\u7F51\u7EDC\u9519\u8BEF",
|
|
"err.badToken": "{host} \u4EE4\u724C\u65E0\u6548\u6216\u5DF2\u8FC7\u671F\u3002",
|
|
"err.forbidden": "{host} \u62D2\u7EDD\u8BBF\u95EE\uFF08HTTP {status}\uFF09\u3002\u8BF7\u68C0\u67E5\u4EE4\u724C\u662F\u5426\u6709\u6B64\u4ED3\u5E93\u7684\u8BFB\u5199\u6743\u9650\u3002",
|
|
"err.notFound": "{host} \u627E\u4E0D\u5230\u4ED3\u5E93\u3001\u5206\u652F\u6216\u6587\u4EF6\uFF08HTTP {status}\uFF09\u3002\u8BF7\u68C0\u67E5\u4ED3\u5E93\u540D\u79F0\u548C\u4EE4\u724C\u7684\u8BBF\u95EE\u6743\u9650\u3002",
|
|
"err.conflict": "{host} \u62A5\u544A\u51B2\u7A81\uFF08HTTP {status}\uFF09\uFF1B\u53EF\u80FD\u6709\u5176\u4ED6\u8BBE\u5907\u521A\u521A\u63A8\u9001\u3002\u8BF7\u518D\u6B21\u540C\u6B65\u3002",
|
|
"err.tooLarge": "{host} \u62D2\u7EDD\u4E86\u4E00\u4E2A\u8FC7\u5927\u7684\u6587\u4EF6\uFF08HTTP {status}\uFF09\u3002",
|
|
"err.rateLimit": "\u5DF2\u8FBE\u5230 {host} \u7684\u8BF7\u6C42\u9650\u5236\u3002\u8BF7\u4E00\u5206\u949F\u540E\u518D\u8BD5\u3002",
|
|
"err.rateLimitMin": "\u5DF2\u8FBE\u5230 {host} \u7684\u8BF7\u6C42\u9650\u5236\u3002\u8BF7 {min} \u5206\u949F\u540E\u518D\u8BD5\u3002",
|
|
"err.secondaryRateLimit": "\u5DF2\u8FBE\u5230 {host} \u7684\u4E8C\u7EA7\u8BF7\u6C42\u9650\u5236\u3002\u8BF7\u4E00\u5206\u949F\u540E\u518D\u8BD5\u3002",
|
|
"err.server": "{host} \u51FA\u73B0\u6545\u969C\uFF08HTTP {status}\uFF09\u3002\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",
|
|
"err.noToken": "\u672A\u8BBE\u7F6E {host} \u4EE4\u724C\u3002\u8BF7\u5728\u63D2\u4EF6\u8BBE\u7F6E\u4E2D\u6DFB\u52A0\u3002",
|
|
"err.foreignLink": "{host} \u8FD4\u56DE\u4E86\u6307\u5411\u5176\u4ED6\u670D\u52A1\u5668\u7684\u94FE\u63A5\uFF08{origin}\uFF09\uFF1B\u5DF2\u62D2\u7EDD\u5411\u5176\u53D1\u9001\u4EE4\u724C\u3002",
|
|
"err.versionUnavailable": "{host}\uFF1A\u6B64\u6587\u4EF6\u7248\u672C\u4E0D\u53EF\u7528",
|
|
"err.contentMismatch": "\u201C{path}\u201D\u672A\u80FD\u4ECE {host} \u5B8C\u6574\u4E0B\u8F7D\uFF08\u5185\u5BB9\u4E0D\u5339\u914D\uFF09\u3002\u8BF7\u518D\u6B21\u540C\u6B65\u3002",
|
|
"err.partialDownload": "\u201C{path}\u201D\u672A\u80FD\u4ECE {host} \u5B8C\u6574\u4E0B\u8F7D\uFF08\u6536\u5230 {got} / {expected} \u5B57\u8282\uFF09\u3002\u8BF7\u518D\u6B21\u540C\u6B65\u3002",
|
|
"err.incompleteDownload": "{path} \u672A\u80FD\u4ECE {host} \u5B8C\u6574\u4E0B\u8F7D\uFF08\u6536\u5230 {bytes} \u5B57\u8282\uFF09\u3002\u670D\u52A1\u5668\u53EF\u80FD\u9650\u5236\u4E86\u901A\u8FC7 API \u53D1\u9001\u7684\u6587\u4EF6\u5927\u5C0F\u3002",
|
|
"err.commitRefused": "{host} \u62D2\u7EDD\u4E86\u63D0\u4EA4\uFF1A{detail}",
|
|
"err.commitNotCreated": "{host} \u672A\u521B\u5EFA\u63D0\u4EA4",
|
|
"err.commitNoTree": "\u63D0\u4EA4 {sha} \u6CA1\u6709\u6587\u4EF6\u6811",
|
|
"err.repoTooLarge": "\u4ED3\u5E93\u592A\u5927\uFF0C\u65E0\u6CD5\u5728 {host} \u4E0A\u5217\u51FA\u3002",
|
|
"err.badPagination": "{host} \u8FD4\u56DE\u4E86\u610F\u5916\u7684\u5206\u9875\u94FE\u63A5",
|
|
"err.listFailed": "{host} \u65E0\u6CD5\u5217\u51FA {ref} \u7684\u6587\u4EF6\uFF08HTTP 404\uFF09",
|
|
"err.blobTooLarge": "{host}\uFF1A\u6587\u4EF6\u8D85\u51FA\u6B64\u670D\u52A1\u5668 API \u7684\u5927\u5C0F\u9650\u5236",
|
|
"err.blobTooLargeMismatch": "{host}\uFF1A\u6587\u4EF6\u8D85\u51FA\u6B64\u670D\u52A1\u5668 API \u7684\u5927\u5C0F\u9650\u5236\uFF0C\u4E14\u539F\u59CB\u6587\u4EF6\u4E0D\u5339\u914D",
|
|
"err.unsupportedHost": "\u4E0D\u652F\u6301\u7684 Git \u6258\u7BA1\u65B9\uFF1A{host}",
|
|
"err.lfsCorrupt": "{path}\uFF1A\u5927\u6587\u4EF6\u4E0B\u8F7D\u5DF2\u635F\u574F",
|
|
"err.lfsError": "\u5927\u6587\u4EF6\u5B58\u50A8\uFF1A{detail}",
|
|
"err.lfsMissing": "{path}\uFF1A\u6258\u7BA1\u65B9\u7684 LFS \u5B58\u50A8\u4E2D\u7F3A\u5C11\u6B64\u5927\u6587\u4EF6",
|
|
"err.encLocked": "\u6B64\u4ED3\u5E93\u5DF2\u7AEF\u5230\u7AEF\u52A0\u5BC6\u3002\u8BF7\u5728 \u8BBE\u7F6E \u2192 \u52A0\u5BC6 \u4E2D\u8F93\u5165\u5BC6\u7801\u77ED\u8BED\uFF0C\u4EE5\u5728\u6B64\u8BBE\u5907\u4E0A\u540C\u6B65\u3002",
|
|
"err.encMismatch": "\u6B64\u4ED3\u5E93\u4F7F\u7528\u7684\u5BC6\u7801\u77ED\u8BED\u4E0E\u6B64\u8BBE\u5907\u4E0A\u5DF2\u89E3\u9501\u7684\u4E0D\u540C\u3002\u8BF7\u5728 \u8BBE\u7F6E \u2192 \u52A0\u5BC6 \u4E2D\u91CD\u65B0\u89E3\u9501\u3002",
|
|
"err.encUpgraded": "\u7AEF\u5230\u7AEF\u52A0\u5BC6\u5DF2\u5728\u53E6\u4E00\u53F0\u8BBE\u5907\u4E0A\u5347\u7EA7\uFF08\u5BC6\u7801\u77ED\u8BED\u4E0D\u53D8\uFF0C\u6587\u4EF6\u73B0\u4E0E\u5176\u540D\u79F0\u7ED1\u5B9A\uFF09\u3002\u6B64\u8BBE\u5907\u4E5F\u5DF2\u5207\u6362\uFF1B\u4E0B\u6B21\u540C\u6B65\u5C06\u7EE7\u7EED\u3002",
|
|
"err.branchMoved": "\u540C\u6B65\u671F\u95F4\u5206\u652F\u5DF2\u53D8\u5316\uFF08\u5176\u4ED6\u8BBE\u5907\u63A8\u9001\u4E86\u66F4\u6539\uFF09\u3002",
|
|
"err.editedDuringSync": "{path} \u5728\u540C\u6B65\u671F\u95F4\u88AB\u7F16\u8F91",
|
|
"err.cancelled": "\u5DF2\u53D6\u6D88\u3002",
|
|
"err.unloaded": "\u63D2\u4EF6\u5DF2\u5378\u8F7D\uFF0C\u540C\u6B65\u5DF2\u505C\u6B62\u3002\u4E0B\u6B21\u4F1A\u7EE7\u7EED\u3002",
|
|
"err.guardCancelled": "\u5220\u9664\u4FDD\u62A4\u5DF2\u53D6\u6D88\u540C\u6B65\u3002",
|
|
"err.resetCancelled": "\u5DF2\u53D6\u6D88\u91CD\u7F6E\u3002",
|
|
"err.restoreCancelled": "\u5DF2\u53D6\u6D88\u6062\u590D\u3002",
|
|
"err.branchMissing": "\u5728 {repo} \u4E2D\u627E\u4E0D\u5230\u5206\u652F\u201C{branch}\u201D\u3002\u5B83\u53EF\u80FD\u5DF2\u88AB\u5220\u9664\u6216\u91CD\u547D\u540D\uFF0C\u6216\u4EE4\u724C\u5931\u53BB\u4E86\u8BBF\u95EE\u6743\u9650\u3002\u672A\u505A\u4EFB\u4F55\u66F4\u6539\u3002",
|
|
"err.repoNotFound": "\u627E\u4E0D\u5230\u4ED3\u5E93 {repo}\uFF0C\u6216\u4EE4\u724C\u65E0\u6CD5\u8BBF\u95EE\u5B83\u3002",
|
|
"err.initFailed": "\u65E0\u6CD5\u521D\u59CB\u5316\u4ED3\u5E93\u5206\u652F\u3002",
|
|
"err.encryptionOff": "\u6B64\u8BBE\u5907\u672A\u5F00\u542F\u52A0\u5BC6\u3002",
|
|
"err.branchEmpty": "\u4ED3\u5E93\u4E2D\u7684\u5206\u652F\u662F\u7A7A\u7684\u3002",
|
|
"err.resetEmpty": "\u4ED3\u5E93\u4E2D\u7684\u5206\u652F\u662F\u7A7A\u7684\uFF0C\u6CA1\u6709\u53EF\u91CD\u7F6E\u7684\u5185\u5BB9\u3002",
|
|
"err.restorePullOnly": "\u6062\u590D\u9700\u8981\u63A8\u9001\u5230\u4ED3\u5E93\uFF0C\u800C\u4EC5\u62C9\u53D6\u6A21\u5F0F\u4E0D\u5141\u8BB8\u8FD9\u6837\u505A\u3002",
|
|
"err.restoreRaced": "\u6062\u590D\u671F\u95F4\u5176\u4ED6\u8BBE\u5907\u63A8\u9001\u4E86\u66F4\u6539\u3002\u672A\u505A\u4EFB\u4F55\u66F4\u6539\uFF0C\u8BF7\u91CD\u8BD5\u3002",
|
|
"skip.deferred": "\u5728\u5BA1\u9605\u4E2D\u63A8\u8FDF",
|
|
"skip.localTooLarge": "\u672C\u5730\u6587\u4EF6\u5927\u4E8E {mb} MB",
|
|
"skip.remoteTooLarge": "\u8FDC\u7A0B\u6587\u4EF6\u5927\u4E8E {mb} MB",
|
|
"skip.windowsName": "Windows \u4E0D\u5141\u8BB8\u6B64\u540D\u79F0\uFF1B\u8BF7\u5728\u5176\u4ED6\u8BBE\u5907\u4E0A\u91CD\u547D\u540D",
|
|
"skip.onDemand": "\u8D85\u8FC7\u6B64\u8BBE\u5907\u7684\u4E0B\u8F7D\u4E0A\u9650\uFF1B\u53EF\u6309\u9700\u4E0B\u8F7D",
|
|
"skip.caseRenamedFrom": "\u5728\u5176\u4ED6\u5730\u65B9\u7531 {other} \u4EC5\u6539\u5927\u5C0F\u5199\u91CD\u547D\u540D\u800C\u6765\uFF1B\u5C06\u5728\u4E0B\u6B21\u53CC\u5411\u540C\u6B65\u65F6\u5E94\u7528",
|
|
"skip.caseRenamedTo": "\u5728\u5176\u4ED6\u5730\u65B9\u4EC5\u6539\u5927\u5C0F\u5199\u91CD\u547D\u540D\u4E3A {other}\uFF1B\u5C06\u5728\u4E0B\u6B21\u53CC\u5411\u540C\u6B65\u65F6\u5E94\u7528",
|
|
"skip.unicodeClash": "\u4E0E {other} \u540C\u540D\uFF0C\u4F46 Unicode \u5F62\u5F0F\u4E0D\u540C",
|
|
"skip.caseClash": "\u4E0E {other} \u4EC5\u5927\u5C0F\u5199\u4E0D\u540C",
|
|
"skip.winRenamed": "\u5728\u5176\u4ED6\u5730\u65B9\u88AB\u91CD\u547D\u540D\u4E3A Windows \u65E0\u6CD5\u4FDD\u5B58\u7684\u540D\u79F0\uFF1B\u5728\u6B64\u4FDD\u7559",
|
|
"skip.winMaybeRenamed": "\u53EF\u80FD\u5728\u5176\u4ED6\u5730\u65B9\u88AB\u91CD\u547D\u540D\u4E3A Windows \u65E0\u6CD5\u4FDD\u5B58\u7684\u540D\u79F0\uFF1B\u5728\u6B64\u4FDD\u7559",
|
|
"skip.unsafePath": "\u4E0D\u5B89\u5168\u7684\u8DEF\u5F84",
|
|
"skip.movedOutOfScope": "\u5DF2\u79FB\u52A8\u5230 {to}\uFF0C\u8D85\u51FA\u6B64\u8BBE\u5907\u7684\u540C\u6B65\u8303\u56F4\uFF1B\u4FDD\u7559\u5728\u4ED3\u5E93\u4E2D",
|
|
"skip.conflictKept": "\u51B2\u7A81\u4FDD\u7559\u5230\u4E0B\u6B21\u540C\u6B65\uFF1A{error}",
|
|
"skip.caseRenameFailed": "\u5728\u5176\u4ED6\u5730\u65B9\u7531 {from} \u4EC5\u6539\u5927\u5C0F\u5199\u91CD\u547D\u540D\u800C\u6765\uFF1B\u6B64\u5904\u5C1A\u672A\u91CD\u547D\u540D\uFF1A{error}",
|
|
"skip.editedDuringSync": "\u540C\u6B65\u671F\u95F4\u88AB\u7F16\u8F91\uFF0C\u5C06\u5728\u4E0B\u6B21\u540C\u6B65",
|
|
"err.newerFormat": "\u6B64\u4ED3\u5E93\u4F7F\u7528\u4E86\u66F4\u65B0\u7684\u52A0\u5BC6\u683C\u5F0F\u3002\u8BF7\u66F4\u65B0\u63D2\u4EF6\u3002",
|
|
"err.wrongPass": "\u5BC6\u7801\u77ED\u8BED\u9519\u8BEF\u3002",
|
|
"err.decryptFailed": "\u65E0\u6CD5\u89E3\u5BC6 {path}\uFF1A\u5BC6\u7801\u77ED\u8BED\u9519\u8BEF\u6216\u6587\u4EF6\u5DF2\u635F\u574F",
|
|
"err.notEncrypted": "{path} \u672A\u4F7F\u7528\u6B64\u5E93\u7684\u5BC6\u94A5\u52A0\u5BC6",
|
|
"err.overwritePullOnly": "\u4EC5\u62C9\u53D6\u6A21\u5F0F\u4ECE\u4E0D\u66F4\u6539\u4ED3\u5E93\u3002",
|
|
"err.overwriteEmpty": "\u4ED3\u5E93\u4E2D\u7684\u5206\u652F\u662F\u7A7A\u7684\uFF1A\u8BF7\u5148\u8FD0\u884C\u4E00\u6B21\u666E\u901A\u540C\u6B65\u3002",
|
|
"skip.pushCopyTooLarge": "{host} \u4E0A\u4E5F\u6709\u66F4\u6539\uFF1B\u4EC5\u5907\u4EFD\uFF1A\u8BE5\u7248\u672C\u592A\u5927\uFF0C\u65E0\u6CD5\u5728\u6B64\u590D\u5236\uFF0C\u4FDD\u7559\u5728\u4ED3\u5E93\u5386\u53F2\u4E2D",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "\u540C\u6B65\u5386\u53F2",
|
|
"cmd.openHistory": "\u6253\u5F00\u540C\u6B65\u5386\u53F2",
|
|
"cmd.useRepo": "\u4F7F\u7528\u6B64\u6587\u4EF6\u7684\u4ED3\u5E93\u7248\u672C",
|
|
"menu.useRepo": "\u4F7F\u7528\u4ED3\u5E93\u7248\u672C",
|
|
"hist.title": "\u540C\u6B65\u5386\u53F2",
|
|
"hist.filter": "\u6309\u8DEF\u5F84\u7B5B\u9009",
|
|
"hist.loadMore": "\u52A0\u8F7D\u66F4\u591A",
|
|
"hist.empty": "\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002",
|
|
"hist.noMatch": "\u76EE\u524D\u5DF2\u52A0\u8F7D\u7684\u540C\u6B65\u4E2D\u6CA1\u6709\u5339\u914D\u7684\u5DF2\u66F4\u6539\u6587\u4EF6\u3002\u52A0\u8F7D\u66F4\u591A\u4EE5\u7EE7\u7EED\u5411\u524D\u67E5\u627E\u3002",
|
|
"hist.noFiles": "\u6B64\u6B21\u540C\u6B65\u4E2D\u6CA1\u6709\u66F4\u6539\u6B64\u5E93\u7684\u6587\u4EF6\u3002",
|
|
"hist.added": "\u65B0\u589E",
|
|
"hist.modified": "\u4FEE\u6539",
|
|
"hist.deleted": "\u5220\u9664",
|
|
"hist.renamed": "\u91CD\u547D\u540D",
|
|
"hist.renamedFrom": "\uFF08\u539F\u4E3A {path}\uFF09",
|
|
"hist.restoreFile": "\u6062\u590D\u6B64\u6587\u4EF6",
|
|
"hist.before": "\u4E4B\u524D\uFF08{sha}\uFF09",
|
|
"hist.after": "\u4E4B\u540E\uFF08{sha}\uFF09",
|
|
"hist.none": "\uFF08\u4E0D\u5B58\u5728\uFF09",
|
|
"h.pendingFiles": "\u663E\u793A\u5DF2\u4FEE\u6539\u7684\u6587\u4EF6",
|
|
"repo.use": "\u4F7F\u7528\u4ED3\u5E93\u7248\u672C",
|
|
"repo.useBody": "\u8981\u7528 {host} \u4E2D\u7684\u6700\u65B0\u7248\u672C\u66FF\u6362\u6B64\u8BBE\u5907\u4E0A\u7684 {path} \u5417\uFF1F\u6B64\u8BBE\u5907\u4E0A\u7684\u7248\u672C\u4F1A\u5148\u79FB\u5230\u56DE\u6536\u7AD9\uFF0C\u4E4B\u540E\u4ECD\u53EF\u627E\u56DE\u3002",
|
|
"repo.used": "{path} \u73B0\u5DF2\u4E0E {host} \u4E00\u81F4\u3002\u4E4B\u524D\u7684\u7248\u672C\u5DF2\u4F5C\u4E3A {copy} \u653E\u5165\u56DE\u6536\u7AD9\u3002",
|
|
"repo.restored": "\u5DF2\u4ECE {host} \u627E\u56DE {path}\u3002",
|
|
"repo.same": "{path} \u5DF2\u4E0E {host} \u4E00\u81F4\u3002",
|
|
"repo.missing": "{host} \u4E2D\u6CA1\u6709 {path}\uFF1A\u672A\u505A\u4EFB\u4F55\u66F4\u6539\u3002",
|
|
"repo.failed": "\u65E0\u6CD5\u4F7F\u7528\u4ED3\u5E93\u7248\u672C\uFF1A{error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "\u64A4\u9500\u6B64\u66F4\u6539\uFF08\u6062\u590D\u4E3A\u4E0A\u6B21\u540C\u6B65\u65F6\u7684\u6587\u672C\uFF09",
|
|
"cmd.nextChange": "\u8F6C\u5230\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\u7684\u4E0B\u4E00\u5904\u66F4\u6539",
|
|
"cmd.prevChange": "\u8F6C\u5230\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\u7684\u4E0A\u4E00\u5904\u66F4\u6539",
|
|
"cmd.whoChanged": "\u663E\u793A\u8C01\u6700\u540E\u4FEE\u6539\u4E86\u8FD9\u4E00\u884C",
|
|
"cm.added": "\u81EA\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\u65B0\u589E",
|
|
"cm.changed": "\u81EA\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\u5DF2\u66F4\u6539",
|
|
"cm.deleted": "\u81EA\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\u5DF2\u5220\u9664",
|
|
"cm.lastSynced": "\u4E0A\u6B21\u540C\u6B65\u65F6\uFF1A",
|
|
"cm.newLines": "\u8FD9\u4E9B\u884C\u662F\u4E0A\u6B21\u540C\u6B65\u4E4B\u540E\u65B0\u589E\u7684\u3002",
|
|
"cm.revert": "\u64A4\u9500",
|
|
"cm.who": "\u8C01\u4FEE\u6539\u4E86\u8FD9\u91CC\uFF1F",
|
|
"la.title": "\u8C01\u6700\u540E\u4FEE\u6539\u4E86\u8FD9\u4E00\u884C",
|
|
"la.result": "\u6700\u540E\u4FEE\u6539\u4E8E {date}\uFF0C\u8BBE\u5907\uFF1A{device}\uFF08{sha}\uFF09\u3002",
|
|
"la.resultOlder": "\u6700\u540E\u4FEE\u6539\u4E8E {date} \u6216\u66F4\u65E9\uFF0C\u8BBE\u5907\uFF1A{device}\uFF08{sha}\uFF09\u3002\u53EA\u68C0\u67E5\u4E86\u6700\u8FD1 {n} \u4E2A\u7248\u672C\u3002",
|
|
"la.local": "\u8FD9\u4E00\u884C\u662F\u4E0A\u6B21\u540C\u6B65\u4E4B\u540E\u5728\u6B64\u8BBE\u5907\u4E0A\u4FEE\u6539\u7684\uFF0C\u4ED3\u5E93\u4E2D\u8FD8\u6CA1\u6709\u5305\u542B\u5B83\u7684\u7248\u672C\u3002",
|
|
"la.none": "\u4ED3\u5E93\u4E2D\u6CA1\u6709\u627E\u5230\u6B64\u6587\u4EF6\u7684\u5386\u53F2\u3002",
|
|
"la.looking": "\u6B63\u5728\u67E5\u770B\u6587\u4EF6\u7684\u5386\u53F2\u2026",
|
|
"la.failed": "\u65E0\u6CD5\u8BFB\u53D6\u6587\u4EF6\u7684\u5386\u53F2\uFF1A{error}",
|
|
"la.tooBig": "\u6B64\u6587\u4EF6\u592A\u5927\uFF08\u8D85\u8FC7 1 MB\uFF09\uFF0C\u65E0\u6CD5\u67E5\u770B\u5176\u5386\u53F2\u3002",
|
|
"la.open": "\u6253\u5F00\u6B64\u7248\u672C",
|
|
"s.changeMarkers": "\u5728\u7F16\u8F91\u5668\u4E2D\u663E\u793A\u4E0A\u6B21\u540C\u6B65\u4EE5\u6765\u7684\u66F4\u6539",
|
|
"s.changeMarkersDesc": "\u5728\u6587\u672C\u65C1\u6807\u8BB0\u65B0\u589E\u3001\u66F4\u6539\u548C\u5220\u9664\u7684\u884C\u3002\u70B9\u51FB\u6807\u8BB0\u53EF\u67E5\u770B\u4E0A\u6B21\u540C\u6B65\u65F6\u7684\u6587\u672C\u5E76\u64A4\u9500\u66F4\u6539\u3002",
|
|
"cmd.syncMessage": "\u4F7F\u7528\u81EA\u5B9A\u4E49\u6D88\u606F\u540C\u6B65\u2026",
|
|
"cmd.syncClose": "\u540C\u6B65\u5E76\u5173\u95ED Obsidian",
|
|
"cmd.editExcludes": "\u7F16\u8F91\u6392\u9664\u89C4\u5219",
|
|
"msg.title": "\u63D0\u4EA4\u4FE1\u606F",
|
|
"msg.placeholder": "\u6539\u4E86\u4EC0\u4E48\uFF1F",
|
|
"msg.sync": "\u540C\u6B65",
|
|
"msg.empty": "\u8BF7\u5148\u8F93\u5165\u6D88\u606F\u3002",
|
|
"menu.excludeFile": "\u5C06\u6B64\u6587\u4EF6\u6392\u9664\u5728\u540C\u6B65\u4E4B\u5916",
|
|
"menu.include": "\u52A0\u5165\u540C\u6B65",
|
|
"m.excludeFileBody": "{path} \u5C06\u4E0D\u518D\u5728\u4EFB\u4F55\u8BBE\u5907\u4E0A\u88AB\u4E0A\u4F20\u3001\u4E0B\u8F7D\u6216\u5220\u9664\u3002\u5B83\u5728\u4ED3\u5E93\u4E2D\u7684\u526F\u672C\u4FDD\u6301\u4E0D\u53D8\u3002\u73B0\u5728\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u5185\u5BB9\u3002",
|
|
"m.excludedFile": "{path} \u73B0\u5DF2\u6392\u9664\u5728\u540C\u6B65\u4E4B\u5916\u3002",
|
|
"m.included": "{path} \u5DF2\u91CD\u65B0\u52A0\u5165\u540C\u6B65\u3002",
|
|
"m.includeImpossible": "{path} \u88AB\u6392\u9664\u89C4\u5219\u4EE5\u5916\u7684\u539F\u56E0\u6392\u9664\uFF08\u6B64\u8BBE\u5907\u7684\u540C\u6B65\u8303\u56F4\u3001\u9690\u85CF\u6587\u4EF6\u3001\u8BBE\u7F6E\u6587\u4EF6\u5939\u6216 sync: false\uFF09\uFF0C\u65E0\u6CD5\u5728\u6B64\u5904\u52A0\u5165\u3002",
|
|
"ex.save": "\u4FDD\u5B58",
|
|
"ex.saved": "\u5DF2\u4FDD\u5B58\u6392\u9664\u89C4\u5219\u3002",
|
|
"m.closeSyncing": "\u6B63\u5728\u5173\u95ED\u524D\u540C\u6B65\u2026",
|
|
"m.closeFailed": "\u540C\u6B65\u672A\u5B8C\u6210\uFF0CObsidian \u4FDD\u6301\u6253\u5F00\uFF1A{error}",
|
|
"m.closeNotSynced": "\u65E0\u6CD5\u540C\u6B65\uFF08\u79BB\u7EBF\u3001\u5DF2\u6682\u505C\u6216\u672A\u8BBE\u7F6E\uFF09\uFF0CObsidian \u4FDD\u6301\u6253\u5F00\u3002",
|
|
"m.syncFileErrors": "{count} \u4E2A\u6587\u4EF6\u65E0\u6CD5\u540C\u6B65\uFF08\u7B2C\u4E00\u4E2A\uFF1A{first}\uFF09",
|
|
"m.closeIncomplete": "\u5E76\u975E\u6240\u6709\u5185\u5BB9\u90FD\u5DF2\u540C\u6B65\uFF0C\u56E0\u6B64 Obsidian \u4FDD\u6301\u6253\u5F00\uFF1A\n{reasons}",
|
|
"x.excluded": "\u4E0D\u540C\u6B65",
|
|
"skip.frontmatterPending": "\u7B49\u5F85 Obsidian \u8BFB\u53D6\u5176\u5C5E\u6027\uFF08\u68C0\u67E5 sync: false\uFF09",
|
|
"s.commitMsgAuto": "\u81EA\u52A8\u540C\u6B65\u7684\u63D0\u4EA4\u4FE1\u606F",
|
|
"s.commitMsgAutoDesc": "\u540C\u6B65\u81EA\u52A8\u5F00\u59CB\u65F6\uFF08\u5B9A\u65F6\u3001\u7F16\u8F91\u3001\u542F\u52A8\u3001\u56DE\u5230\u5E94\u7528\uFF09\u4F7F\u7528\u3002\u7559\u7A7A\u5219\u4F7F\u7528\u4E0A\u9762\u7684\u63D0\u4EA4\u4FE1\u606F\u3002",
|
|
"s.commitPreview": "\u9884\u89C8\uFF1A{msg}",
|
|
"s.repoSubdir": "\u4ED3\u5E93\u4E2D\u7684\u6587\u4EF6\u5939",
|
|
"s.repoSubdirDesc": "\u5C06\u6B64\u5E93\u653E\u5728\u4ED3\u5E93\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\u4E2D\uFF08\u4F8B\u5982 vaults/personal\uFF09\uFF0C\u800C\u4E0D\u662F\u6839\u76EE\u5F55\u3002\u8BE5\u6587\u4EF6\u5939\u4E4B\u5916\u7684\u6587\u4EF6\u6C38\u8FDC\u4E0D\u4F1A\u88AB\u4E0B\u8F7D\u3001\u66F4\u6539\u6216\u5220\u9664\u3002\u66F4\u6539\u540E\u4F1A\u5F00\u59CB\u4E00\u6B21\u4E0D\u5220\u9664\u4EFB\u4F55\u5185\u5BB9\u7684\u5168\u65B0\u6BD4\u8F83\u3002",
|
|
"s.subdirChangeTitle": "\u66F4\u6539\u4ED3\u5E93\u4E2D\u7684\u6587\u4EF6\u5939\uFF1F",
|
|
"s.subdirChangeBody": "\u4E0B\u6B21\u540C\u6B65\u4F1A\u5C06\u6B64\u5E93\u4E0E {folder} \u4ECE\u5934\u91CD\u65B0\u6BD4\u8F83\u3002\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u5185\u5BB9\uFF0C\u4F46\u90A3\u91CC\u5DF2\u6709\u7684\u6587\u4EF6\u4F1A\u4E0B\u8F7D\u5230\u6B64\u5E93\uFF0C\u6B64\u5E93\u7684\u6587\u4EF6\u4E5F\u4F1A\u4E0A\u4F20\u5230\u90A3\u91CC\u3002",
|
|
"s.subdirRoot": "\u4ED3\u5E93\u6839\u76EE\u5F55",
|
|
"s.subdirHasFiles": "\u8BE5\u4F4D\u7F6E\u5728\u4ED3\u5E93\u4E2D\u5DF2\u6709 {count} \u4E2A\u6587\u4EF6\u3002\u5982\u679C\u5B83\u4EEC\u5C5E\u4E8E\u53E6\u4E00\u4E2A\u5E93\uFF0C\u5C06\u4F1A\u4E0E\u6B64\u5E93\u6DF7\u5728\u4E00\u8D77\uFF1A\u8BF7\u9009\u62E9\u5176\u4ED6\u6587\u4EF6\u5939\u3002",
|
|
"s.subdirMaybeFiles": "\u5982\u679C\u8BE5\u4F4D\u7F6E\u5DF2\u6709\u53E6\u4E00\u4E2A\u5E93\u7684\u6587\u4EF6\uFF0C\u5B83\u4EEC\u5C06\u4F1A\u4E0E\u6B64\u5E93\u6DF7\u5728\u4E00\u8D77\u3002",
|
|
"s.subdirChangeConfirm": "\u66F4\u6539\u6587\u4EF6\u5939",
|
|
"s.frontmatter": "\u9075\u5FAA\u5C5E\u6027\u4E2D\u7684 sync: false",
|
|
"s.frontmatterDesc": "\u5C5E\u6027\u4E2D\u5E26\u6709 sync: false \u7684\u7B14\u8BB0\u53EA\u4FDD\u7559\u5728\u6B64\u8BBE\u5907\u4E0A\uFF1A\u6C38\u8FDC\u4E0D\u4F1A\u4E0A\u4F20\uFF0C\u4ED3\u5E93\u4E2D\u5DF2\u6709\u7684\u526F\u672C\u4FDD\u6301\u4E0D\u53D8\u3002",
|
|
"s.statusCountdown": "\u5728\u72B6\u6001\u680F\u663E\u793A\u4E0B\u6B21\u540C\u6B65",
|
|
"s.statusCountdownDesc": "\u8DDD\u4E0B\u6B21\u8BA1\u5212\u540C\u6B65\u7684\u65F6\u95F4\uFF0C\u4F8B\u5982\u201C4 \u5206\u949F\u540E\u201D\u3002",
|
|
"s.statusBranch": "\u5728\u72B6\u6001\u680F\u663E\u793A\u5206\u652F",
|
|
"s.statusBranchDesc": "\u6B64\u5E93\u540C\u6B65\u7684\u5206\u652F\u3002",
|
|
"sb.next": "{n} \u5206\u949F\u540E",
|
|
"sb.soon": "1 \u5206\u949F\u5185",
|
|
"sb.nextTip": "\u4E0B\u6B21\u8BA1\u5212\u540C\u6B65",
|
|
"sb.branchTip": "\u5206\u652F\uFF1A{branch}",
|
|
"w.subdir": "\u4ED3\u5E93\u4E2D\u7684\u6587\u4EF6\u5939\uFF08\u53EF\u9009\uFF09",
|
|
"w.subdirDesc": "\u7559\u7A7A\u5219\u4F7F\u7528\u6574\u4E2A\u4ED3\u5E93\u3002\u5982\u9700\u5C06\u6B64\u5E93\u653E\u5728\u4E00\u4E2A\u6587\u4EF6\u5939\u4E2D\uFF08\u4F8B\u5982\u591A\u4E2A\u5E93\u5171\u7528\u4E00\u4E2A\u4ED3\u5E93\uFF09\uFF0C\u8BF7\u586B\u5199\u3002"
|
|
};
|
|
|
|
// src/locales/de.ts
|
|
var de = {
|
|
// commands
|
|
"cmd.sync": "Jetzt synchronisieren",
|
|
"cmd.review": "\xC4nderungen pr\xFCfen und synchronisieren",
|
|
"cmd.status": "Synchronisationsstatus \xF6ffnen",
|
|
"cmd.pull": "Nur abrufen (\xC4nderungen herunterladen)",
|
|
"cmd.push": "Nur sichern (\xC4nderungen hochladen)",
|
|
"cmd.preview": "Synchronisation simulieren (Testlauf)",
|
|
"cmd.timeline": "Zeitleiste: Tresor oder Ordner auf einen fr\xFCheren Stand zur\xFCcksetzen",
|
|
"cmd.reset": "Dieses Ger\xE4t an das Repository angleichen (lokale \xC4nderungen verwerfen)",
|
|
"cmd.snapshot": "Sicherungs-Snapshot erstellen",
|
|
"cmd.wizard": "Einrichtungsassistent starten",
|
|
"cmd.encryption": "Ende-zu-Ende-Verschl\xFCsselung: aktivieren oder entsperren",
|
|
"cmd.freeSpace": "Speicherplatz auf diesem Ger\xE4t freigeben",
|
|
"cmd.onDemand": "Dateien herunterladen, die nicht auf diesem Ger\xE4t sind",
|
|
"cmd.log": "Synchronisationsprotokoll anzeigen",
|
|
"cmd.history": "Verlauf der aktuellen Datei anzeigen",
|
|
"cmd.compare": "Aktuelle Datei mit dem Repository vergleichen",
|
|
"cmd.recover": "Gel\xF6schte Dateien wiederherstellen",
|
|
"cmd.openRepo": "Repository im Browser \xF6ffnen",
|
|
// ribbon / menus
|
|
"ribbon.sync": "Tresor synchronisieren",
|
|
"ribbon.status": "Synchronisationsstatus",
|
|
"menu.history": "Versionsverlauf",
|
|
"menu.compare": "Mit Repository vergleichen",
|
|
// status panel
|
|
"health.title": "Synchronisationsstatus",
|
|
"health.upToDate": "Auf dem neuesten Stand",
|
|
"health.syncing": "Wird synchronisiert\u2026",
|
|
"health.failed": "Letzte Synchronisation fehlgeschlagen",
|
|
"health.attention": "Erfordert Aufmerksamkeit",
|
|
"health.notSynced": "Noch nicht synchronisiert",
|
|
"health.notSetUp": "Nicht eingerichtet",
|
|
"health.syncNow": "Jetzt synchronisieren",
|
|
"health.review": "Pr\xFCfen\u2026",
|
|
"health.wizard": "Einrichtungsassistent starten",
|
|
"health.pending": "Ausstehend",
|
|
"health.editedN": "{n} Datei(en) seit der letzten Synchronisation auf diesem Ger\xE4t bearbeitet",
|
|
"health.noEdits": "Keine lokalen \xC4nderungen ausstehend",
|
|
"health.remoteAhead": "Das Repository enth\xE4lt neuere \xC4nderungen von einem anderen Ger\xE4t",
|
|
"health.remoteSame": "Nichts Neues im Repository",
|
|
"health.checking": "Repository wird gepr\xFCft\u2026",
|
|
"health.nextSync": "N\xE4chste geplante Synchronisation {time}",
|
|
"health.noSchedule": "Keine regelm\xE4\xDFige Synchronisation geplant",
|
|
"health.conflicts": "Konfliktkopien ({n})",
|
|
"health.conflictsHint": "Beide Versionen wurden behalten. Vergleiche sie, behalte, was du brauchst, und l\xF6sche dann die Kopie.",
|
|
"health.compare": "Vergleichen",
|
|
"health.open": "\xD6ffnen",
|
|
"health.deleteCopy": "Kopie l\xF6schen",
|
|
"health.skipped": "Bei der letzten Synchronisation \xFCbersprungen ({n})",
|
|
"health.devices": "Ger\xE4te",
|
|
"health.thisDevice": "(dieses Ger\xE4t)",
|
|
"health.lastSynced": "zuletzt synchronisiert {ago}",
|
|
"health.shared": "Geteilte Ordner",
|
|
"health.tools": "Werkzeuge",
|
|
"health.timeline": "Zeitleiste & Wiederherstellung",
|
|
"health.snapshot": "Jetzt Snapshot erstellen",
|
|
"health.reset": "Dieses Ger\xE4t an das Repository angleichen",
|
|
"health.freeSpace": "Speicherplatz freigeben",
|
|
"health.log": "Synchronisationsprotokoll",
|
|
"health.settings": "Einstellungen",
|
|
"health.openSettings": "Einstellungen \xF6ffnen",
|
|
"health.tryAgain": "Erneut versuchen",
|
|
"health.enterPassphrase": "Passphrase eingeben",
|
|
"health.encrypted": "Ende-zu-Ende-verschl\xFCsselt",
|
|
// notices
|
|
"notice.upToDate": "Der Tresor ist auf dem neuesten Stand.",
|
|
"notice.synced": "Synchronisation: {summary}",
|
|
"notice.failed": "Synchronisation fehlgeschlagen: {error}",
|
|
"notice.errors": "Synchronisation mit {n} Fehler(n) abgeschlossen. Details findest du im Synchronisationsstatus.",
|
|
"notice.conflicts": "Synchronisation: {n} Konflikt(e). Beide Versionen behalten; vergleiche sie im Synchronisationsstatus.",
|
|
"notice.busy": "Eine Synchronisation l\xE4uft. Versuche es gleich noch einmal.",
|
|
// time
|
|
"time.never": "nie",
|
|
"time.now": "gerade eben",
|
|
"time.min": "vor {n} Min.",
|
|
"time.hour": "vor {n} Std.",
|
|
"time.day": "vor {n} Tg.",
|
|
// settings
|
|
"s.wizard": "Einrichtungsassistent",
|
|
"s.wizardDesc": "Verbinden, Repository ausw\xE4hlen oder erstellen und die erste Synchronisation Schritt f\xFCr Schritt durchf\xFChren.",
|
|
"s.wizardBtn": "Einrichtungsassistent starten",
|
|
"s.hConnection": "Verbindung",
|
|
"s.host": "Git-Host",
|
|
"s.hostDesc": "Die Unterst\xFCtzung f\xFCr andere Hosts als GitHub ist in der Beta-Phase.",
|
|
"s.beta": "Beta",
|
|
"s.token": "Zugriffstoken",
|
|
"s.tokenDesc": "Wird sicher nur auf diesem Ger\xE4t gespeichert (Obsidian-Geheimnisspeicher), nie in den synchronisierten Einstellungen. Gib es einmal pro Ger\xE4t ein.",
|
|
"s.tokenPlaceholder": "Token einf\xFCgen",
|
|
"s.owner": "Eigent\xFCmer",
|
|
"s.ownerDesc": "Benutzer oder Organisation, der das Repository geh\xF6rt.",
|
|
"s.ownerDescGitlab": "Benutzer- oder Gruppenpfad (Untergruppen erlaubt, zum Beispiel team/notes).",
|
|
"s.ownerDescBitbucket": "Workspace, dem das Repository geh\xF6rt.",
|
|
"s.ownerPlaceholder": "Benutzername",
|
|
"s.repo": "Repository",
|
|
"s.repoDesc": "Verwende ein privates Repository.",
|
|
"s.repoPlaceholder": "Name des Repositorys",
|
|
"s.branch": "Branch",
|
|
"s.check": "Einrichtung pr\xFCfen",
|
|
"s.checkDesc": "Token und Repository testen oder ein neues privates Repository erstellen.",
|
|
"s.test": "Verbindung testen",
|
|
"s.testNoRepo": "Angemeldet als {user}. Lege jetzt einen Repository-Namen fest.",
|
|
"s.testNotFound": "Angemeldet als {user}, aber {repo} wurde nicht gefunden oder ist nicht zug\xE4nglich.",
|
|
"s.testOkPrivate": "OK: {repo} (privat).",
|
|
"s.testOkPublic": "OK: {repo}, aber es ist \xD6FFENTLICH. Erw\xE4ge, es privat zu machen.",
|
|
"s.testFailed": "Verbindung fehlgeschlagen: {error}",
|
|
"s.createRepo": "Privates Repository erstellen",
|
|
"s.created": "{url} erstellt",
|
|
"s.createFailed": "Das Repository konnte nicht erstellt werden: {error}. Manche Tokens ben\xF6tigen daf\xFCr zus\xE4tzliche Berechtigungen; du kannst es auch auf der Website des Hosts erstellen.",
|
|
"s.apiBase": "API-Basis-URL",
|
|
"s.apiBaseDesc": "{hint}. Wird nur auf diesem Ger\xE4t gespeichert.",
|
|
"s.device": "Ger\xE4tename",
|
|
"s.deviceDesc": "Wird in Commit-Nachrichten und in den Namen von Konfliktkopien angezeigt. Wird nur auf diesem Ger\xE4t gespeichert.",
|
|
"s.hBehaviour": "Synchronisationsverhalten",
|
|
"s.mode": "Modus",
|
|
"s.modeDesc": "Zwei-Wege-Synchronisation, nur Sicherung (hochladen, lokale Dateien nie \xE4ndern) oder nur abrufen (schreibgesch\xFCtzte Kopie).",
|
|
"s.modeSync": "Zwei-Wege-Synchronisation",
|
|
"s.modePush": "Nur Sicherung (Push)",
|
|
"s.modePull": "Nur abrufen (Spiegel)",
|
|
"s.onStartup": "Beim Start synchronisieren",
|
|
"s.onStartupDesc": "Abrufen und hochladen, wenn der Tresor ge\xF6ffnet wird.",
|
|
"s.onChange": "Nach Bearbeitungen synchronisieren",
|
|
"s.onChangeDesc": "Kurz nach dem Ende einer Bearbeitung synchronisieren.",
|
|
"s.delay": "Bearbeitungsverz\xF6gerung (Sekunden)",
|
|
"s.delayDesc": "Wie lange nach der letzten Bearbeitung gewartet wird, bevor synchronisiert wird.",
|
|
"s.interval": "Regelm\xE4\xDFige Synchronisation (Minuten)",
|
|
"s.intervalDesc": "Auf 0 setzen, um sie zu deaktivieren. Erfasst auch \xC4nderungen an Einstellungen und Konfigurationsdateien.",
|
|
"s.onResume": "Bei R\xFCckkehr zur App synchronisieren",
|
|
"s.onResumeDesc": "Auf Mobilger\xE4ten synchronisieren, wenn du zu Obsidian zur\xFCckwechselst.",
|
|
"s.onBackground": "Synchronisieren, wenn die App in den Hintergrund wechselt",
|
|
"s.onBackgroundDesc": "Versucht hochzuladen, wenn du Obsidian verl\xE4sst (mobil) oder das Fenster ausblendest.",
|
|
"s.hScope": "Was synchronisiert wird",
|
|
"s.configDir": "Einstellungsordner synchronisieren ({dir})",
|
|
"s.configDirDesc": "Themes, Snippets, Tastenk\xFCrzel, Plugins und deren Einstellungen. Das Arbeitsbereich-Layout ist standardm\xE4\xDFig ausgeschlossen.",
|
|
"s.exclude": "Ausschlussmuster",
|
|
"s.excludeDesc": "Im gitignore-Stil, eines pro Zeile. {config} steht f\xFCr den Einstellungsordner. Ausgeschlossene Dateien werden nie hochgeladen, heruntergeladen oder gel\xF6scht.",
|
|
"s.maxSize": "Maximale Dateigr\xF6\xDFe in Megabyte",
|
|
"s.maxSizeDesc": "Gr\xF6\xDFere Dateien werden \xFCbersprungen (h\xF6chstens 2000 Megabyte). Bei GitHub ohne Large File Storage liegt die Grenze bei 100 Megabyte, mehr akzeptiert GitHub nicht.",
|
|
"s.delayNow": "Aktuell: {n} Sekunden.",
|
|
"s.resetConfirm": "Die n\xE4chste Synchronisierung vergleicht jede Datei mit dem Repository. Nichts wird gel\xF6scht; abweichende Dateien werden in beiden Versionen behalten, daher k\xF6nnen Konfliktkopien zum Aufr\xE4umen entstehen.",
|
|
"m.restoreOverBody": "{path} auf diesem Ger\xE4t unterscheidet sich von der Version vom {date}. Wiederherstellen ersetzt den aktuellen Inhalt. Mit \u201EAls Kopie wiederherstellen\u201C bleiben beide erhalten.",
|
|
"s.lfs": "Schwellenwert f\xFCr Large File Storage in Megabyte",
|
|
"s.lfsDesc": "Dateien ab dieser Gr\xF6\xDFe werden im Large File Storage des Hosts statt im Repository abgelegt, damit das Repository klein und schnell bleibt. Auf 0 setzen, um es zu deaktivieren. Pr\xFCfe das Speicherkontingent deines Hosts, da kostenlose Tarife begrenzt sind. Wenn es aktiv ist, kann die maximale Dateigr\xF6\xDFe oben bis zu 2000 Megabyte betragen.",
|
|
"s.hEncryption": "Ende-zu-Ende-Verschl\xFCsselung",
|
|
"s.encOn": "Verschl\xFCsselung ist aktiv (auf diesem Ger\xE4t entsperrt)",
|
|
"s.encOnDesc": "Notizen, Anh\xE4nge und Dateinamen werden vor dem Hochladen verschl\xFCsselt. Andere Ger\xE4te ben\xF6tigen dieselbe Passphrase.",
|
|
"s.encRemovePlain": "Unverschl\xFCsselte Kopien entfernen\u2026",
|
|
"s.encLock": "Dieses Ger\xE4t sperren",
|
|
"s.encOff": "Tresor verschl\xFCsseln",
|
|
"s.encOffDesc": "Lege eine Passphrase fest, damit der Repository-Host nur unlesbare Daten sieht. Verwende dies auch, um ein Repository zu entsperren, das ein anderes Ger\xE4t bereits verschl\xFCsselt hat.",
|
|
"s.encTurnOn": "Aktivieren oder entsperren\u2026",
|
|
"s.hShared": "Geteilte Ordner",
|
|
"s.sharedIntro": "Synchronisiere einen Ordner mit einem eigenen Repository (zum Beispiel einen Team-Ordner), w\xE4hrend der Rest des Tresors privat bleibt.",
|
|
"s.sharedRowDesc": "{host}, Branch {branch}",
|
|
"s.sharedRemove": "Diesen Ordner nicht mehr separat synchronisieren",
|
|
"s.sharedAdd": "Geteilten Ordner hinzuf\xFCgen",
|
|
"s.sharedAddBtn": "Geteilten Ordner hinzuf\xFCgen\u2026",
|
|
"s.hDevice": "Nur dieses Ger\xE4t",
|
|
"s.deviceIntro": "Diese Einstellungen werden auf diesem Ger\xE4t gespeichert und nicht synchronisiert, sodass ein Smartphone weniger synchronisieren kann als ein Laptop. Dateien au\xDFerhalb des Bereichs dieses Ger\xE4ts werden von hier aus nie hochgeladen, heruntergeladen oder gel\xF6scht und bleiben sicher im Repository.",
|
|
"s.include": "Nur diese Ordner synchronisieren",
|
|
"s.includeDesc": "Ein Ordner oder Muster pro Zeile, zum Beispiel daily/ oder projects/. Leer lassen, um alles zu synchronisieren.",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "Auf diesem Ger\xE4t zus\xE4tzlich ausschlie\xDFen",
|
|
"s.deviceExcludeDesc": "Im gitignore-Stil, eines pro Zeile, zum Beispiel attachments/ oder *.mp4",
|
|
"s.maxDownload": "Download gr\xF6\xDFerer Dateien \xFCberspringen (Megabyte)",
|
|
"s.maxDownloadDesc": "Gro\xDFe Anh\xE4nge bleiben im Repository und k\xF6nnen bei Bedarf heruntergeladen werden. 0 = keine Begrenzung. Auf Smartphones standardm\xE4\xDFig 25.",
|
|
"s.onDemand": "Bei Bedarf verf\xFCgbare Dateien",
|
|
"s.onDemandDesc": "{n} gro\xDFe Datei(en) sind im Repository, aber nicht auf diesem Ger\xE4t. {pinned} Datei(en) wurden bei Bedarf heruntergeladen und bleiben synchronisiert.",
|
|
"s.onDemandBrowse": "Durchsuchen und herunterladen\u2026",
|
|
"s.onDemandForget": "Bei-Bedarf-Liste vergessen",
|
|
"s.onDemandForgotten": "Bei-Bedarf-Liste geleert. Verwende \u201ESpeicherplatz freigeben\u201C, um diese lokalen Kopien zu entfernen.",
|
|
"s.freeSpace": "Speicherplatz freigeben",
|
|
"s.freeSpaceDesc": "Lokale Kopien von Dateien entfernen, die dieses Ger\xE4t nicht synchronisiert, aber nur, wenn sie mit der Kopie im Repository identisch sind.",
|
|
"s.freeSpaceBtn": "Speicherplatz freigeben\u2026",
|
|
"s.hConflicts": "Konflikte und Sicherheit",
|
|
"s.strategy": "Wenn eine Datei auf beiden Seiten ge\xE4ndert wurde",
|
|
"s.strategyAuto": "Automatisch zusammenf\xFChren (empfohlen)",
|
|
"s.strategyMarkers": "Zusammenf\xFChren, \xDCberschneidungen mit <<<<<<<-Markierungen kennzeichnen",
|
|
"s.strategyBoth": "Beide behalten (meine Version als Kopie speichern)",
|
|
"s.strategyAsk": "Jedes Mal fragen",
|
|
"s.strategyLocal": "Dieses Ger\xE4t hat Vorrang",
|
|
"s.strategyRemote": "{host} hat Vorrang",
|
|
"s.review": "Vor manueller Synchronisation pr\xFCfen",
|
|
"s.reviewDesc": "Wenn du eine Synchronisation manuell startest, werden zuerst alle ausstehenden \xC4nderungen mit Diffs und Kontrollk\xE4stchen angezeigt. Automatische Synchronisationen sind nicht betroffen.",
|
|
"s.eol": "Reine Zeilenende-\xC4nderungen ignorieren",
|
|
"s.eolDesc": "Eine Datei, deren einzige \xC4nderung die Art der Zeilenenden ist, gilt als unver\xE4ndert, damit Editoren auf anderen Betriebssystemen keine unn\xF6tigen Uploads oder Konflikte verursachen.",
|
|
"s.guard": "L\xF6schschutz",
|
|
"s.guardDesc": "Nachfragen, bevor eine Synchronisation viele Dateien auf einmal l\xF6scht.",
|
|
"s.guardThreshold": "Schwellenwert f\xFCr L\xF6schschutz",
|
|
"s.guardThresholdDesc": "Nachfragen, wenn mehr als diese Anzahl an Dateien (links) oder dieser Prozentsatz des Tresors (rechts) gel\xF6scht wird, je nachdem, was gr\xF6\xDFer ist.",
|
|
"s.hBackup": "Sicherung",
|
|
"s.snapshot": "T\xE4glicher Snapshot",
|
|
"s.snapshotDesc": "Einmal t\xE4glich den aktuellen Stand im Repository mit einem datierten Snapshot markieren, damit du jederzeit dorthin zur\xFCckkehren kannst.",
|
|
"s.hAdvanced": "Erweitert",
|
|
"s.commitMsg": "Commit-Nachricht",
|
|
"s.commitMsgDesc": "Variablen: {{device}}, {{summary}}, {{date}}, {{count}}, {{files}}, {{trigger}}, {{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "Vollst\xE4ndiger Neuscan alle (Minuten)",
|
|
"s.fullScanDesc": "Zwischen vollst\xE4ndigen Neuscans werden nur Dateien erneut gepr\xFCft, die Obsidian als bearbeitet meldet, und der Einstellungsordner wird h\xF6chstens alle 5 Minuten von der Festplatte gelesen. H\xE4lt Smartphones schnell.",
|
|
"s.notices": "Benachrichtigungen",
|
|
"s.noticesAll": "Bei jeder Synchronisation",
|
|
"s.noticesErrors": "Nur Fehler und Konflikte",
|
|
"s.noticesNone": "Keine",
|
|
"s.resetState": "Synchronisationszustand zur\xFCcksetzen",
|
|
"s.resetStateDesc": "Vergessen, was zuletzt auf diesem Ger\xE4t synchronisiert wurde. Die n\xE4chste Synchronisation vergleicht alles und l\xF6scht nie; abweichende Dateien werden in beiden Versionen behalten.",
|
|
"s.resetBtn": "Zur\xFCcksetzen",
|
|
"s.resetDone": "Synchronisationszustand zur\xFCckgesetzt.",
|
|
// setup wizard
|
|
"w.stepConnect": "Verbinden",
|
|
"w.stepRepo": "Repository",
|
|
"w.stepVault": "Dieser Tresor",
|
|
"w.stepSync": "Erste Synchronisation",
|
|
"w.title": "Tresor-Synchronisation einrichten",
|
|
"w.sub": "Deine Notizen werden in einem privaten Git-Repository auf GitHub, GitLab, Codeberg, Gitea, Forgejo oder Bitbucket gespeichert, das dir geh\xF6rt. Funktioniert auf Desktop und Mobilger\xE4ten; keine Installation n\xF6tig.",
|
|
"w.where": "Wo soll dein Tresor gespeichert werden?",
|
|
"w.apiUrl": "Server-API-URL",
|
|
"w.deviceName": "Diesem Ger\xE4t einen Namen geben",
|
|
"w.deviceNameDesc": "Wird im Verlauf und bei Konfliktkopien angezeigt.",
|
|
"w.signedIn": "Angemeldet als {user}",
|
|
"w.tokenFailed": "Dieses Token hat nicht funktioniert: {error}",
|
|
"w.alreadyConnected": "Auf diesem Ger\xE4t bereits verbunden",
|
|
"w.continue": "Weiter",
|
|
"w.connectWith": "Mit einem {host}-Token verbinden",
|
|
"w.tokenStored": "Das Token wird sicher nur auf diesem Ger\xE4t gespeichert, nie in synchronisierten Einstellungen.",
|
|
"w.token": "Token",
|
|
"w.pasteFirst": "F\xFCge zuerst ein Token ein.",
|
|
"w.repoTitle": "Repository ausw\xE4hlen",
|
|
"w.repoSub": "Angemeldet als {user}. W\xE4hle das Repository f\xFCr diesen Tresor aus oder erstelle ein neues privates.",
|
|
"w.createNew": "Neues privates Repository erstellen",
|
|
"w.create": "Erstellen",
|
|
"w.createFailed": "Das Repository konnte nicht erstellt werden: {error}. Manche Tokens ben\xF6tigen daf\xFCr zus\xE4tzliche Berechtigungen; du kannst es auch auf der Website des Hosts erstellen und unten ausw\xE4hlen.",
|
|
"w.useExisting": "Oder ein vorhandenes Repository verwenden",
|
|
"w.filter": "Filtern\u2026",
|
|
"w.loadingRepos": "Deine Repositorys werden geladen\u2026",
|
|
"w.noMatch": "Keine passenden Repositorys.",
|
|
"w.private": "privat",
|
|
"w.public": "\xD6FFENTLICH",
|
|
"w.publicTitle": "\xD6ffentliches Repository",
|
|
"w.publicBody": "{repo} ist \xF6ffentlich: Jeder im Internet k\xF6nnte deine Notizen lesen. Verwende ein privates Repository, es sei denn, du m\xF6chtest sie ver\xF6ffentlichen.",
|
|
"w.useAnyway": "Trotzdem verwenden",
|
|
"w.listFailed": "Repositorys konnten nicht aufgelistet werden: {error}",
|
|
"w.back": "Zur\xFCck",
|
|
"w.vaultTitle": "Dieser Tresor und das Repository",
|
|
"w.looking": "Beide Seiten werden gepr\xFCft\u2026",
|
|
"w.readFailed": "Das Repository konnte nicht gelesen werden: {error}",
|
|
"w.counts": "Dieser Tresor: {local} Datei(en) \xB7 Repository: {remote} Datei(en)",
|
|
"w.optUpload": "Diesen Tresor hochladen",
|
|
"w.optUploadDesc": "Dies ist das erste Ger\xE4t. Alles hier wird in das Repository kopiert.",
|
|
"w.optDownload": "Tresor aus dem Repository herunterladen",
|
|
"w.optDownloadDesc": "Dieses Ger\xE4t ist neu. Dateien aus dem Repository ersetzen alle Startdateien hier.",
|
|
"w.optMerge": "Zusammenf\xFChren, bei Unterschieden beide behalten",
|
|
"w.optMergeDesc": "Nichts wird \xFCberschrieben; abweichende Dateien werden nebeneinander behalten.",
|
|
"w.optMergeSafe": "Zusammenf\xFChren, bei Unterschieden beide behalten (am sichersten)",
|
|
"w.optMergeSafeDesc": "Dateien, die nur auf einer Seite existieren, werden \xFCbernommen. Abweichende Dateien werden nebeneinander behalten.",
|
|
"w.optRemoteWins": "Zusammenf\xFChren, bei Unterschieden hat das Repository Vorrang",
|
|
"w.optRemoteWinsDesc": "Die Version aus dem Repository verwenden, wenn eine Datei auf beiden Seiten existiert. Die Version dieses Ger\xE4ts wird in den Papierkorb verschoben.",
|
|
"w.optLocalWins": "Zusammenf\xFChren, bei Unterschieden hat dieses Ger\xE4t Vorrang",
|
|
"w.optLocalWinsDesc": "Die Version dieses Ger\xE4ts verwenden, wenn eine Datei auf beiden Seiten existiert.",
|
|
"w.neverDeletes": "Bei der ersten Synchronisation wird nie etwas gel\xF6scht.",
|
|
"w.encrypted": "\u{1F512} Dieses Repository ist Ende-zu-Ende-verschl\xFCsselt. Entsperre es, um fortzufahren.",
|
|
"w.encryptOpt": "Ende-zu-Ende verschl\xFCsseln (optional)",
|
|
"w.encryptOptDesc": "Der Repository-Host sieht nur unlesbare Daten. Jedes Ger\xE4t ben\xF6tigt diese Passphrase, und sie kann nicht wiederhergestellt werden.",
|
|
"w.passphrase": "Passphrase",
|
|
"w.encOnDevice": "\u{1F512} Ende-zu-Ende-Verschl\xFCsselung ist auf diesem Ger\xE4t aktiv.",
|
|
"w.alsoConfig": "Auch Einstellungen, Themes und Plugins synchronisieren ({dir})",
|
|
"w.start": "Erste Synchronisation starten",
|
|
"w.unlockFirst": "Entsperre zuerst das verschl\xFCsselte Repository.",
|
|
"w.saveTitle": "Passphrase speichern",
|
|
"w.saveBody": "Hast du diese Passphrase an einem sicheren Ort gespeichert? Sie kann nicht wiederhergestellt werden, und ohne sie kann die Kopie im Repository nicht gelesen werden.",
|
|
"w.saved": "Ich habe sie gespeichert",
|
|
"w.syncTitle": "Erste Synchronisation",
|
|
"w.syncSub": "Bei einem gro\xDFen Tresor kann das eine Weile dauern. Du kannst dieses Fenster schlie\xDFen; die Synchronisation l\xE4uft im Hintergrund weiter.",
|
|
"w.starting": "Wird gestartet\u2026",
|
|
"w.doneTitle": "Alles bereit",
|
|
"w.tip1": "Die Synchronisation l\xE4uft beim Start, nach Bearbeitungen und regelm\xE4\xDFig. Die Schaltfl\xE4che im Men\xFCband synchronisiert sofort.",
|
|
"w.tip2": "Der Synchronisationsstatus (Aktivit\xE4tssymbol) zeigt, was aussteht und was Aufmerksamkeit erfordert.",
|
|
"w.tip3": "Auf jedem weiteren Ger\xE4t: Installiere das Plugin und f\xFChre diesen Assistenten mit demselben Repository aus.",
|
|
"w.openStatus": "Synchronisationsstatus \xF6ffnen",
|
|
"w.done": "Fertig",
|
|
// encryption and shared folders
|
|
"e.passShort": "Verwende mindestens 12 Zeichen. Ein paar zuf\xE4llige W\xF6rter eignen sich gut.",
|
|
"e.passOk": "OK. L\xE4nger ist st\xE4rker: 16+ Zeichen oder 4+ zuf\xE4llige W\xF6rter.",
|
|
"e.passStrong": "Stark.",
|
|
"e.checking": "Repository wird gepr\xFCft\u2026",
|
|
"e.unlockTitle": "Verschl\xFCsselten Tresor entsperren",
|
|
"e.upgrade": "Verschl\xFCsselung aktualisieren\u2026",
|
|
"e.upgradeDesc": "Dieses Repository nutzt das \xE4ltere Format: Der verschl\xFCsselte Inhalt einer Datei ist nicht an ihren Namen gebunden, daher k\xF6nnte jemand mit Schreibzugriff zwei Dateien unbemerkt vertauschen. Beim Aktualisieren wird jede Datei einmal mit derselben Passphrase neu verschl\xFCsselt, sodass sie sich nur noch unter ihrem eigenen Namen \xF6ffnen l\xE4sst.",
|
|
"e.upgradeTitle": "Ende-zu-Ende-Verschl\xFCsselung aktualisieren",
|
|
"e.upgradeBody": "Dieses Ger\xE4t synchronisiert zuerst, dann wird jede verschl\xFCsselte Datei im Repository in einem Commit neu verschl\xFCsselt und erneut hochgeladen (gleiche Passphrase). Andere Ger\xE4te stellen bei ihrer n\xE4chsten Synchronisierung um. Ger\xE4te mit Plugin-Versionen vor 1.8.0 k\xF6nnen das neue Format nicht lesen und synchronisieren erst nach einem Update wieder.",
|
|
"e.upgradeConfirm": "Aktualisieren",
|
|
"e.upgraded": "Verschl\xFCsselung aktualisiert: {n} Datei(en) neu verschl\xFCsselt.",
|
|
"e.upgradeFailed": "Verschl\xFCsselung konnte nicht aktualisiert werden: {error}",
|
|
"e.unlockBody": "Dieses Repository ist Ende-zu-Ende-verschl\xFCsselt. Gib die Passphrase ein, um auf diesem Ger\xE4t zu synchronisieren. Der Schl\xFCssel wird im sicheren Speicher dieses Ger\xE4ts aufbewahrt.",
|
|
"e.unlocking": "Wird entsperrt\u2026 (dauert absichtlich eine Sekunde)",
|
|
"e.unlocked": "Verschl\xFCsselter Tresor auf diesem Ger\xE4t entsperrt.",
|
|
"e.unlock": "Entsperren",
|
|
"e.enableTitle": "Ende-zu-Ende-Verschl\xFCsselung aktivieren",
|
|
"e.point1": "Notizen, Anh\xE4nge und Dateinamen werden vor dem Hochladen auf diesem Ger\xE4t verschl\xFCsselt. Der Repository-Host speichert nur unlesbare Daten.",
|
|
"e.point2": "Jedes Ger\xE4t ben\xF6tigt dieselbe Passphrase. Sie kann nicht wiederhergestellt werden: Wenn du sie vergisst, kann die Kopie im Repository nicht gelesen werden.",
|
|
"e.point3": "Wenn dieses Repository bereits unverschl\xFCsselte Notizen enth\xE4lt, bleiben sie in seinem Verlauf. F\xFCr vollst\xE4ndige Privatsph\xE4re verwende ein neues, leeres Repository.",
|
|
"e.point4": "Du kannst die Notizen nicht mehr auf der Website des Hosts ansehen; verwende stattdessen den Verlauf und die Zeitleiste des Plugins.",
|
|
"e.repeat": "Passphrase wiederholen",
|
|
"e.ack": "Ich habe die Passphrase an einem sicheren Ort gespeichert, zum Beispiel in einem Passwort-Manager",
|
|
"e.turnOn": "Verschl\xFCsselung aktivieren",
|
|
"e.mismatch": "Die Passphrasen stimmen nicht \xFCberein.",
|
|
"e.confirmSaved": "Bitte best\xE4tige, dass du die Passphrase gespeichert hast.",
|
|
"e.settingUp": "Wird eingerichtet\u2026 (dauert absichtlich eine Sekunde)",
|
|
"e.enabled": "Verschl\xFCsselung ist aktiv. Die n\xE4chste Synchronisation l\xE4dt alles verschl\xFCsselt hoch.",
|
|
"sh.intro": "Synchronisiere einen Ordner mit einem eigenen Repository, zum Beispiel einen Team-Ordner, w\xE4hrend der Rest deines Tresors in deinem privaten Repository bleibt. Der Ordner entspricht dem Stammverzeichnis dieses Repositorys oder einem Ordner darin.",
|
|
"sh.folder": "Ordner",
|
|
"sh.folderPlaceholder": "Arbeit",
|
|
"sh.ownerDesc": "Benutzer, Organisation, Gruppe oder Workspace des geteilten Repositorys.",
|
|
"sh.token": "Token (optional)",
|
|
"sh.tokenDesc": "Leer lassen, um dein Haupt-Token zu verwenden (nur gleicher Host). Wird sicher auf diesem Ger\xE4t gespeichert.",
|
|
"sh.note": "Dateien, die bereits in diesem Ordner in deinem Haupt-Repository liegen, bleiben dort (in dessen Verlauf), werden aber nicht mehr damit synchronisiert. Die Verschl\xFCsselung gilt nicht f\xFCr geteilte Ordner, da Mitwirkende sie lesen k\xF6nnen m\xFCssen.",
|
|
"sh.add": "Hinzuf\xFCgen",
|
|
"sh.required": "Ordner, Eigent\xFCmer und Repository sind erforderlich.",
|
|
"sh.overlap": "Dieser Ordner \xFCberschneidet sich mit einem vorhandenen geteilten Ordner.",
|
|
"sh.checking": "Zugriff wird gepr\xFCft\u2026",
|
|
"sh.noAccess": "Kein Zugriff auf {repo}: {error}",
|
|
"sh.added": "Geteilter Ordner hinzugef\xFCgt: {folder} \u2194 {repo}",
|
|
// dialogs
|
|
"u.andMore": "\u2026und {n} weitere",
|
|
"u.binaryDiff": "Bin\xE4rdatei: kein Text-Diff. {a}: {as} Bytes \xB7 {b}: {bs} Bytes.",
|
|
"u.loadFailed": "Konnte nicht geladen werden: {error}",
|
|
"u.conflictTitle": "Konflikt: {path}",
|
|
"u.repository": "Repository",
|
|
"u.conflictBody": "Diese Datei wurde seit der letzten Synchronisation auf diesem Ger\xE4t und im Repository ({host}) ge\xE4ndert.",
|
|
"u.pickHint": "W\xE4hle f\xFCr jede \xC4nderung, welche Version du behalten m\xF6chtest. Bei \u201EBeide\u201C kommen die Zeilen dieses Ger\xE4ts zuerst.",
|
|
"u.thisDevice": "Dieses Ger\xE4t",
|
|
"u.chooseChanges": "\xC4nderungen ausw\xE4hlen",
|
|
"u.fullDiff": "Vollst\xE4ndiger Diff",
|
|
"u.apply": "Meine Auswahl \xFCbernehmen",
|
|
"u.binaryConflict": "Bin\xE4rdatei. Dieses Ger\xE4t: {a} Bytes \xB7 {host}: {b} Bytes.",
|
|
"u.wholeFile": "Oder eine ganze Datei \xFCbernehmen",
|
|
"u.keepBoth": "Beide Dateien behalten",
|
|
"u.markers": "Mit Markierungen zusammenf\xFChren",
|
|
"u.guardTitle": "Umfangreiche L\xF6schung erkannt",
|
|
"u.guardBody": "Diese Synchronisation w\xFCrde {n} Dateien l\xF6schen. Bitte best\xE4tige, dass dies beabsichtigt ist.",
|
|
"u.guardLocal": "Auf diesem Ger\xE4t l\xF6schen (in den Papierkorb verschoben): {n}",
|
|
"u.guardRemote": "Im Repository l\xF6schen (bleibt im Verlauf): {n}",
|
|
"u.cancelSync": "Synchronisation abbrechen",
|
|
"u.skipDeletes": "Synchronisieren, aber L\xF6schungen \xFCberspringen",
|
|
"u.deleteThem": "L\xF6schen",
|
|
"u.gDownload": "Aus dem Repository herunterladen",
|
|
"u.gUpload": "In das Repository hochladen",
|
|
"u.gMoveLocal": "Anderswo umbenannt (hier umbenennen)",
|
|
"u.gAdopt": "Hier umbenannt, anderswo bearbeitet",
|
|
"u.gRenameMerge": "Auf beiden Seiten umbenannt und bearbeitet (zusammenf\xFChren)",
|
|
"u.gConflict": "Auf beiden Seiten ge\xE4ndert",
|
|
"u.gDeleteLocal": "Auf diesem Ger\xE4t l\xF6schen",
|
|
"u.gDeleteRemote": "Im Repository l\xF6schen",
|
|
"u.reviewTitle": "\xC4nderungen pr\xFCfen",
|
|
"u.upToDate": "Alles ist auf dem neuesten Stand.",
|
|
"u.reviewHint": "Entferne das H\xE4kchen bei allem, was du noch nicht synchronisieren m\xF6chtest. Nicht markierte Dateien bleiben bis zu einer sp\xE4teren Synchronisation auf beiden Seiten unver\xE4ndert.",
|
|
"u.cancel": "Abbrechen",
|
|
"u.syncAll": "Alle synchronisieren",
|
|
"u.syncSelected": "{n} ausgew\xE4hlte synchronisieren",
|
|
"u.logTitle": "Synchronisationsprotokoll",
|
|
"u.noActivity": "Noch keine Synchronisationsaktivit\xE4t.",
|
|
"u.loading": "Wird aus dem Repository geladen\u2026",
|
|
"u.nothingFound": "Nichts gefunden.",
|
|
"u.failed": "Fehlgeschlagen: {error}",
|
|
"u.currentFile": "Aktuelle Datei",
|
|
"u.thisVersion": "Diese Version",
|
|
"u.compareCurrent": "Mit aktueller vergleichen",
|
|
"u.fullVersion": "Vollst\xE4ndige Version",
|
|
"u.restoreCopy": "Als Kopie wiederherstellen",
|
|
"u.restoreThis": "Diese Version wiederherstellen",
|
|
"u.pickFolder": "Ordner zum Wiederherstellen ausw\xE4hlen",
|
|
"u.pickRemoteOnly": "Datei herunterladen, die nicht auf diesem Ger\xE4t ist",
|
|
"u.timelineTitle": "Zeitleiste",
|
|
"u.timelineHint": "Jede Synchronisation ist ein Punkt, zu dem du zur\xFCckkehren kannst. Beim Wiederherstellen wird ein neuer Commit hinzugef\xFCgt, sodass auch der aktuelle Stand im Verlauf bleibt.",
|
|
"u.browseFiles": "Dateien durchsuchen",
|
|
"u.restoreFolder": "Ordner wiederherstellen\u2026",
|
|
"u.restoreVault": "Gesamten Tresor wiederherstellen",
|
|
"d.unified": "Einheitlich",
|
|
"d.split": "Nebeneinander",
|
|
"d.same": "Keine Unterschiede.",
|
|
"d.unchanged": "\u22EF {n} unver\xE4nderte Zeile(n)",
|
|
"d.both": "Beide",
|
|
"d.change": "\xC4nderung {n}",
|
|
"d.nothing": "(nichts)",
|
|
"d.identical": "Die beiden Versionen sind identisch.",
|
|
// plugin notices and dialogs
|
|
"m.embedMissing": "{path} ({mb} MB) ist nicht auf dieses Ger\xE4t heruntergeladen.",
|
|
"m.download": "Herunterladen",
|
|
"m.downloadingOne": "{path} wird heruntergeladen\u2026",
|
|
"m.downloadingMany": "{n} Dateien werden heruntergeladen\u2026",
|
|
"m.allLocal": "Alle Dateien sind auf diesem Ger\xE4t.",
|
|
"m.plainTitle": "Unverschl\xFCsselte Kopien entfernen",
|
|
"m.plainBody": "Diese unverschl\xFCsselten Dateien in einem Commit aus dem Repository l\xF6schen. Deine Notizen bleiben sicher: Ihre verschl\xFCsselten Kopien sind bereits hochgeladen. Hinweis: \xC4ltere Versionen bleiben im Verlauf des Repositorys.",
|
|
"m.deleteFrom": "Aus {host} l\xF6schen",
|
|
"m.remove": "Entfernen",
|
|
"m.plainRemoved": "{n} unverschl\xFCsselte Datei(en) aus dem Repository entfernt.",
|
|
"m.plainNone": "Keine unverschl\xFCsselten Dateien gefunden.",
|
|
"m.removeFailed": "Dateien konnten nicht entfernt werden: {error}",
|
|
"m.firstFailed": "Die erste Synchronisation ist fehlgeschlagen: {error}. Du kannst es im Synchronisationsstatus erneut versuchen.",
|
|
"m.syncFinished": "Synchronisation abgeschlossen.",
|
|
"m.alreadyInSync": "Alles war bereits synchron.",
|
|
"m.nDownloaded": "{n} heruntergeladen",
|
|
"m.nUploaded": "{n} hochgeladen",
|
|
"m.nBoth": "{n} in beiden Versionen behalten",
|
|
"m.nSkipped": "{n} \xFCbersprungen (siehe Synchronisationsstatus)",
|
|
"m.firstDone": "Erste Synchronisation abgeschlossen: {summary}.",
|
|
"m.noChanges": "keine \xC4nderungen",
|
|
"m.freeBody": "{n} lokale Datei(en) ({mb} MB) entfernen, die dieses Ger\xE4t nicht synchronisiert (au\xDFerhalb seiner Ordner oder \xFCber seinem Download-Limit). Jede ist identisch mit der Kopie im Repository, die erhalten bleibt. Sie werden in den Papierkorb verschoben.",
|
|
"m.removeHere": "Von diesem Ger\xE4t entfernen",
|
|
"m.freeNothing": "Nichts zu entfernen: Keine lokalen Dateien au\xDFerhalb des Bereichs dieses Ger\xE4ts sind sicher im Repository.",
|
|
"m.freed": "{mb} MB freigegeben.",
|
|
"m.freeFailed": "Speicherplatz konnte nicht freigegeben werden: {error}",
|
|
"m.needToken": "F\xFCge unter Einstellungen \u2192 Vault Sync for Git ein Zugriffstoken hinzu.",
|
|
"m.needRepo": "Lege Eigent\xFCmer und Namen des Repositorys in den Plugin-Einstellungen fest.",
|
|
"m.snapshotOk": "Snapshot erstellt: {tag}",
|
|
"m.snapshotFailed": "Snapshot fehlgeschlagen: {error}",
|
|
"m.reviewFailed": "Pr\xFCfung konnte nicht vorbereitet werden: {error}",
|
|
"m.filesAt": "Dateien bei {sha} ({date})",
|
|
"m.bytes": "{n} Bytes",
|
|
"m.whatFolder": "Ordner \u201E{folder}\u201C",
|
|
"m.whatVault": "gesamter Tresor",
|
|
"m.restoring": "Wird wiederhergestellt: {what}\u2026",
|
|
"m.restoreTitle": "Wiederherstellen: {what}",
|
|
"m.restoreBody": "Auf den Stand vom {date} ({sha}) zur\xFCcksetzen: {what}. Dies wird als neuer Commit hinzugef\xFCgt, sodass die heutige Version im Verlauf bleibt und du es auf dieselbe Weise r\xFCckg\xE4ngig machen kannst.",
|
|
"m.restoredOlder": "Auf die \xE4ltere Version zur\xFCckgesetzt",
|
|
"m.broughtBack": "Zur\xFCckgeholt (seitdem gel\xF6scht)",
|
|
"m.removedSince": "Entfernt (seitdem erstellt)",
|
|
"m.restore": "Wiederherstellen",
|
|
"m.restored": "Wiederhergestellt: {what} ({n} Datei(en) ge\xE4ndert).",
|
|
"m.restoreSame": "Bereits auf dem Stand dieses Zeitpunkts: {what}.",
|
|
"m.restoreFailed": "Wiederherstellung fehlgeschlagen: {error}",
|
|
"m.comparing": "Wird mit dem Repository verglichen\u2026",
|
|
"m.resetBody": "Nicht synchronisierte \xC4nderungen dieses Ger\xE4ts verwerfen und es zu einer exakten Kopie des Repositorys machen. Ersetzte und entfernte Dateien werden zuerst in den Papierkorb verschoben, sodass du sie noch wiederherstellen kannst.",
|
|
"m.replacedWith": "Durch die Version von {host} ersetzt",
|
|
"m.downloaded": "Heruntergeladen",
|
|
"m.removedNotInRepo": "Entfernt (nicht im Repository)",
|
|
"m.matchRepo": "An Repository angleichen",
|
|
"m.matched": "Dieses Ger\xE4t entspricht jetzt dem Repository ({n} Datei(en) ge\xE4ndert).",
|
|
"m.alreadyMatches": "Dieses Ger\xE4t entspricht bereits dem Repository.",
|
|
"m.resetFailed": "Zur\xFCcksetzen fehlgeschlagen: {error}",
|
|
"m.repoNotFound": "Das Repository wurde nicht gefunden. Pr\xFCfe die Verbindungseinstellungen.",
|
|
"m.history": "Verlauf: {path}",
|
|
"m.notInVersion": "Die Datei existierte in dieser Version nicht.",
|
|
"m.restoredFile": "{path} wiederhergestellt. Die Datei wird bei der n\xE4chsten Synchronisation hochgeladen.",
|
|
"m.versionFailed": "Version konnte nicht geladen werden: {error}",
|
|
"m.recentlyDeleted": "K\xFCrzlich gel\xF6schte Dateien",
|
|
"m.deletedOn": "Gel\xF6scht {date} \xB7 {msg}",
|
|
// status panel and hosts
|
|
"h.notConnected": "Noch nicht verbunden",
|
|
"h.notConnectedHint": "F\xFCge in den Plugin-Einstellungen ein {host}-Zugriffstoken hinzu.",
|
|
"h.badToken": "{host} hat dein Token nicht akzeptiert",
|
|
"h.badTokenHint": "Es ist m\xF6glicherweise abgelaufen oder wurde widerrufen. Erstelle ein neues Token und f\xFCge es in den Einstellungen ein.",
|
|
"h.repoMissing": "Repository nicht gefunden",
|
|
"h.repoMissingHint": "Pr\xFCfe Eigent\xFCmer und Repository-Namen und ob das Token Zugriff auf dieses Repository hat.",
|
|
"h.rateLimit": "Anfragelimit von {host} erreicht",
|
|
"h.rateLimitHint": "{host} erlaubt nur eine begrenzte Anzahl von Anfragen pro Stunde. Die Synchronisation funktioniert in K\xFCrze wieder.",
|
|
"h.busy": "{host} war ausgelastet",
|
|
"h.busyHint": "Ein anderes Ger\xE4t hat im selben Moment synchronisiert. Versuche es erneut.",
|
|
"h.offline": "{host} ist nicht erreichbar",
|
|
"h.offlineHint": "Pr\xFCfe deine Internetverbindung. Die Synchronisation wird automatisch wiederholt.",
|
|
"h.encrypted": "Dieser Tresor ist verschl\xFCsselt",
|
|
"h.encryptedHint": "Gib die Passphrase ein, um auf diesem Ger\xE4t zu synchronisieren.",
|
|
"h.otherKey": "Anderer Verschl\xFCsselungsschl\xFCssel",
|
|
"h.otherKeyHint": "Das Repository wurde mit einer anderen Passphrase verschl\xFCsselt. Entsperre es erneut.",
|
|
"h.pullOnly": "Im Modus \u201ENur abrufen\u201C nicht verf\xFCgbar",
|
|
"h.pullOnlyHint": "\xC4ndere den Modus in den Einstellungen, um \xC4nderungen hochzuladen.",
|
|
"h.branchMissing": "Branch nicht gefunden",
|
|
"h.failed": "Synchronisation fehlgeschlagen",
|
|
"h.onDemand": "Nicht auf dieses Ger\xE4t heruntergeladen ({n})",
|
|
"h.onDemandHint": "{mb} MB an gro\xDFen Dateien bleiben im Repository, bis du sie brauchst.",
|
|
"h.budget": "API-Kontingent: {budget}",
|
|
"h.budgetValue": "{left}/{limit} Anfragen \xFCbrig, wird {time} zur\xFCckgesetzt",
|
|
"h.unknown": "unbekannt",
|
|
"h.checkFailed": "{host} konnte nicht gepr\xFCft werden: {error}",
|
|
"h.deviceScope": "Dieses Ger\xE4t synchronisiert {what}.",
|
|
"h.only": "nur {list}",
|
|
"h.excluding": "ohne {list}",
|
|
"h.noDownloadsOver": "keine Downloads \xFCber {mb} MB",
|
|
"h.notOnDevice": "auf diesem Ger\xE4t nicht synchronisiert",
|
|
"hs.ghApi": "Nur f\xFCr GitHub Enterprise Server \xE4ndern, zum Beispiel https://github.example.com/api/v3",
|
|
"hs.glApi": "gitlab.com oder dein Server, zum Beispiel https://gitlab.example.com/api/v4",
|
|
"hs.gtApi": "Die API deines Servers, zum Beispiel https://codeberg.org/api/v1 oder https://git.example.com/api/v1",
|
|
"hs.bbApi": "Bitbucket Cloud: https://api.bitbucket.org/2.0",
|
|
"hs.gh1": "\xD6ffne die Token-Seite von GitHub; Name, Ablaufdatum und \u201EContents: read and write\u201C sind vorausgef\xFCllt.",
|
|
"hs.gh1Link": "Fine-grained Token erstellen",
|
|
"hs.gh2": "W\xE4hle unter \u201ERepository access\u201C die Option \u201EOnly select repositories\u201C und dann dein Tresor-Repository (f\xFCge \u201EAdministration: read and write\u201C hinzu, wenn das Plugin das Repository erstellen soll).",
|
|
"hs.gh3": "Generieren, kopieren und hier einf\xFCgen.",
|
|
"hs.gh4": "Einfachere Alternative (Zugriff auf alle Repositorys):",
|
|
"hs.gh4Link": "Classic Token mit dem Scope repo",
|
|
"hs.gl1": "Erstelle ein Personal Access Token mit dem Scope api (zum Schreiben von Commits erforderlich).",
|
|
"hs.gl1Link": "Token-Seite von GitLab \xF6ffnen",
|
|
"hs.gl2": "Tipp: Ein Projekt-Zugriffstoken (Settings \u2192 Access tokens in deinem Tresor-Projekt, Rolle Developer, Scope api) beschr\xE4nkt den Zugriff auf dieses eine Projekt.",
|
|
"hs.paste": "Kopieren und hier einf\xFCgen.",
|
|
"hs.gt1": "\xD6ffne Settings \u2192 Applications und generiere ein Token mit \u201Erepository: Read and Write\u201C und \u201Euser: Read\u201C. Damit das Plugin das Repository anlegen kann, w\xE4hle stattdessen \u201Euser: Read and Write\u201C.",
|
|
"hs.gt1Link": "Seite \u201EApplications\u201C \xF6ffnen",
|
|
"hs.gt2": "Erfordert Gitea 1.20+ oder Forgejo 1.20+ (API f\xFCr Commits mit mehreren Dateien).",
|
|
"hs.bb1": "Am einfachsten: \xD6ffne in deinem Tresor-Repository Repository settings \u2192 Security \u2192 Access tokens und erstelle eines mit Repositories: Read and Write. F\xFCge es hier ein (Eigent\xFCmer und Repository in den Einstellungen eingeben).",
|
|
"hs.bb1Link": "Hilfe zu Bitbucket-Zugriffstokens",
|
|
"hs.bb2": "Um im Assistenten Repositorys auszuw\xE4hlen oder zu erstellen, verwende stattdessen ein Atlassian-API-Token mit Bitbucket-Scopes, eingegeben als email:token.",
|
|
"hs.bb2Link": "API-Token erstellen",
|
|
"hs.bb3": "Hinweis: Die erste Synchronisation l\xE4dt jede Datei einmal herunter, um sie zu indizieren; sp\xE4tere Synchronisationen holen nur \xC4nderungen.",
|
|
"u.skipped": "\xDCbersprungen: {n}",
|
|
"u.loadingShort": "L\xE4dt\u2026",
|
|
"u.diff": "Diff",
|
|
"h.lastSync": "Letzte Synchronisation {ago}",
|
|
"m.sharedFailed": "Synchronisation des geteilten Ordners fehlgeschlagen:",
|
|
"m.offline": "Offline: wird synchronisiert, sobald wieder online",
|
|
"m.filesFailed": "{n} Datei(en) fehlgeschlagen: siehe Synchronisationsstatus",
|
|
"m.copiesCreated": "{n} Konfliktkopie(n) erstellt",
|
|
"m.statusTip": "{title}. Klicken f\xFCr Synchronisationsstatus.",
|
|
"m.notThere": "{host} (Datei nicht vorhanden)",
|
|
"app.signIn": "Mit GitHub anmelden",
|
|
"app.signInDesc": "Best\xE4tige den Zugriff in deinem Browser, statt ein Token zu erstellen. Die App erh\xE4lt nur die Repositorys, die du ausw\xE4hlst, und der Zugriff wird automatisch erneuert.",
|
|
"app.signInBtn": "Anmelden",
|
|
"app.orToken": "Oder ein Zugriffstoken verwenden",
|
|
"app.starting": "Verbindung zu {host} wird hergestellt\u2026",
|
|
"app.notAvailable": "Die Anmeldung mit {host} ist f\xFCr diesen Server nicht verf\xFCgbar. Verwende ein Zugriffstoken.",
|
|
"app.codeBody": "Kopiere diesen Code und f\xFCge ihn auf der {host}-Seite ein, die sich \xF6ffnet:",
|
|
"app.copy": "Code kopieren",
|
|
"app.copied": "Code kopiert",
|
|
"app.open": "Kopieren und {host} \xF6ffnen",
|
|
"app.waiting": "Warte auf deine Best\xE4tigung auf {host}\u2026",
|
|
"app.expired": "Der Code ist abgelaufen. Schlie\xDFe dieses Fenster und melde dich erneut an.",
|
|
"app.denied": "Der Zugriff wurde auf {host} verweigert.",
|
|
"app.disabled": "Diese GitHub App erlaubt keine Ger\xE4teanmeldung. Verwende ein Zugriffstoken oder bitte ihren Eigent\xFCmer, den Device Flow zu aktivieren.",
|
|
"app.failed": "Anmeldung fehlgeschlagen: {error}",
|
|
"app.signedIn": "Mit GitHub angemeldet",
|
|
"app.signedInDesc": "Dieses Ger\xE4t verwendet die GitHub App Vault Sync for GitHub. Der Zugriff wird automatisch erneuert. Wird nur auf diesem Ger\xE4t gespeichert.",
|
|
"app.signOut": "Abmelden",
|
|
"app.chooseRepos": "Repositorys ausw\xE4hlen",
|
|
"app.chooseReposDesc": "Dein Tresor-Repository fehlt? F\xFCge es auf GitHub hinzu oder lege dort zuerst eines an. Die Liste aktualisiert sich, wenn du zur\xFCckkommst.",
|
|
"app.createOnGitHub": "Auf GitHub erstellen",
|
|
"app.refresh": "Liste aktualisieren",
|
|
"app.expiredSession": "Deine {host}-Anmeldung ist abgelaufen. Melde dich unter Einstellungen \u2192 Vault Sync for Git erneut an.",
|
|
"app.clientId": "Client-ID der GitHub App (optional)",
|
|
"app.clientIdDesc": "Um \u201EMit GitHub anmelden\u201C auf GitHub Enterprise anzubieten: die Client-ID einer GitHub App mit aktiviertem Device Flow und Lese- und Schreibzugriff auf Contents. Wird nur auf diesem Ger\xE4t gespeichert.",
|
|
"app.slug": "URL-Name der GitHub App",
|
|
"app.slugDesc": "Der NAME in https://your-server/apps/NAME, wird zum \xD6ffnen der Installationsseite der App verwendet.",
|
|
"h.refresh": "Aktualisieren",
|
|
"h.setupHint": "Starte den Einrichtungsassistenten, um einen Git-Host und ein Repository zu verbinden.",
|
|
"h.resolve": "Aufl\xF6sen",
|
|
"h.resolveTitle": "Konflikt aufl\xF6sen: {path}",
|
|
"h.currentNote": "Aktuelle Notiz",
|
|
"h.conflictCopy": "Konfliktkopie",
|
|
"h.tokenExpires": "Dein Zugriffstoken l\xE4uft in {days} Tag(en) ab. Erstelle ein neues und f\xFCge es in den Einstellungen ein.",
|
|
"h.tokenExpiresToday": "Dein Zugriffstoken l\xE4uft heute ab. Erstelle ein neues und f\xFCge es in den Einstellungen ein.",
|
|
"h.newToken": "Neues Token erstellen",
|
|
"u.previewTitle": "Synchronisationsvorschau",
|
|
"u.previewHint": "Noch wurde nichts ge\xE4ndert. So w\xFCrde die n\xE4chste Synchronisation aussehen.",
|
|
"u.close": "Schlie\xDFen",
|
|
"s.configDirWarn": "Plugin-Code wird ebenfalls synchronisiert. Wer in das Repository pushen kann, kann also Code auf deinen Ger\xE4ten ausf\xFChren. Synchronisierte Plugins werden nach einem Neustart geladen.",
|
|
"p.scanning": "Dateien werden gepr\xFCft\u2026",
|
|
"p.checking": "{host} wird gepr\xFCft\u2026",
|
|
"p.downloading": "Herunterladen {done}/{total}",
|
|
"p.uploading": "Hochladen {done}/{total}",
|
|
"cmd.syncFile": "Aktuelle Datei jetzt synchronisieren",
|
|
"cmd.setupLink": "Weiteres Ger\xE4t hinzuf\xFCgen (Einrichtungslink)",
|
|
"x.pending": "Seit der letzten Synchronisation bearbeitet",
|
|
"x.conflict": "Konfliktkopie: im Synchronisationsstatus aufl\xF6sen",
|
|
"os.title": "Ein anderes Synchronisationstool ist aktiv",
|
|
"os.found": "Diesen Tresor synchronisiert auch: {list}.",
|
|
"os.gitFolder": "ein Git-Repository (.git-Ordner)",
|
|
"os.hint": "Zwei Tools, die dieselben Dateien schreiben, k\xF6nnen gegenseitig ihre \xC4nderungen \xFCberschreiben. Verwende f\xFCr diesen Tresor nur eines davon oder stelle sicher, dass sie verschiedene Ordner synchronisieren.",
|
|
"link.addDevice": "Weiteres Ger\xE4t hinzuf\xFCgen",
|
|
"link.addDeviceDesc": "Erstellt einen Link und einen QR-Code, mit denen ein weiteres Ger\xE4t mit diesem Repository und diesen Synchronisationseinstellungen eingerichtet wird.",
|
|
"link.createBtn": "Einrichtungslink erstellen",
|
|
"link.createTitle": "Weiteres Ger\xE4t hinzuf\xFCgen",
|
|
"link.createIntro": "\xD6ffne diesen Link auf dem neuen Ger\xE4t (oder scanne den Code mit dessen Kamera), nachdem du dort das Plugin installiert hast. Er tr\xE4gt Host, Repository und Synchronisationseinstellungen ein.",
|
|
"link.includeToken": "Zugriffstoken einschlie\xDFen",
|
|
"link.includeTokenDesc": "Das Token wird mit einem unten angezeigten Einmalcode verschl\xFCsselt. Ohne den Code ist der Link nutzlos; teile den Code separat.",
|
|
"link.signInNote": "Dieses Ger\xE4t ist mit {host} angemeldet. Das neue Ger\xE4t meldet sich selbst an, daher ist kein Token enthalten.",
|
|
"link.encrypting": "Wird verschl\xFCsselt\u2026",
|
|
"link.link": "Einrichtungslink",
|
|
"link.linkDesc": "Schicke ihn dir selbst, zum Beispiel per E-Mail oder \xFCber eine Notiz-App.",
|
|
"link.copyLink": "Link kopieren",
|
|
"link.copied": "Kopiert",
|
|
"link.qrLabel": "QR-Code des Einrichtungslinks",
|
|
"link.codeIntro": "Einmalcode (auf dem neuen Ger\xE4t eingeben):",
|
|
"link.keepApart": "Sende den Code nicht zusammen mit dem Link.",
|
|
"link.noSecrets": "Der Link enth\xE4lt kein Token und kein Passwort. Das neue Ger\xE4t verbindet sich mit seiner eigenen Anmeldung oder seinem eigenen Token.",
|
|
"link.applyTitle": "Dieses Ger\xE4t per Link einrichten",
|
|
"link.applyIntro": "Dieser Link richtet die Synchronisation f\xFCr den Tresor \u201E{vault}\u201C ein:",
|
|
"link.server": "Server: {url}",
|
|
"link.withSettings": "Synchronisiert auch den Einstellungsordner, mit denselben Optionen",
|
|
"link.withToken": "Enth\xE4lt ein Zugriffstoken (erfordert den Einmalcode)",
|
|
"link.subdir": "Ordner im Repository: {folder}",
|
|
"link.onlyYours": "Fahre nur fort, wenn du diesen Link selbst erstellt hast. Ein Link von jemand anderem k\xF6nnte deinen Tresor mit dessen Repository verbinden.",
|
|
"link.replaces": "Dies ersetzt die aktuelle Verbindung zu {repo}.",
|
|
"link.code": "Einmalcode",
|
|
"link.codeDesc": "Wird auf dem Ger\xE4t angezeigt, das den Link erstellt hat.",
|
|
"link.apply": "Dieses Ger\xE4t einrichten",
|
|
"link.needCode": "Gib zuerst den Einmalcode ein.",
|
|
"link.decrypting": "Code wird gepr\xFCft\u2026",
|
|
"link.wrongCode": "Dieser Code passt nicht zu diesem Link.",
|
|
"link.invalid": "Dieser Einrichtungslink ist unvollst\xE4ndig oder besch\xE4digt. Erstelle auf deinem anderen Ger\xE4t einen neuen.",
|
|
"link.wizardHint": "Synchronisierst du schon auf einem anderen Ger\xE4t? W\xE4hle dort im Synchronisationsstatus oder in den Einstellungen \u201EWeiteres Ger\xE4t hinzuf\xFCgen\u201C und \xF6ffne stattdessen den Link hier.",
|
|
"s.cfgAppearance": "Darstellung und Themes",
|
|
"s.cfgAppearanceDesc": "Theme, Schriftarten, Akzentfarbe und installierte Themes.",
|
|
"s.cfgSnippets": "CSS-Snippets",
|
|
"s.cfgHotkeys": "Tastenk\xFCrzel",
|
|
"s.cfgCore": "Grundeinstellungen",
|
|
"s.cfgCoreDesc": "Editor, Dateien und Links, Kern-Plugins und deren Optionen.",
|
|
"s.cfgPluginList": "Welche Community-Plugins aktiviert sind",
|
|
"s.cfgPluginListDesc": "Wird ein Plugin auf einem Ger\xE4t aktiviert oder deaktiviert, geschieht das auch auf den anderen.",
|
|
"s.cfgPluginCode": "Code der Community-Plugins",
|
|
"s.cfgPluginCodeDesc": "Installiert und aktualisiert Plugins auf jedem Ger\xE4t. Synchronisierter Plugin-Code kann auf allen deinen Ger\xE4ten ausgef\xFChrt werden.",
|
|
"s.cfgPluginSettings": "Einstellungen der Community-Plugins",
|
|
"s.cfgPerPlugin": "Pro Plugin ausw\xE4hlen",
|
|
"s.cfgPerPluginDesc": "Abweichungen f\xFCr einzelne Plugins ({n} festgelegt).",
|
|
"s.cfgPerPluginBtn": "Ausw\xE4hlen",
|
|
"s.cfgPerPluginIntro": "Lege f\xFCr jedes Plugin fest, ob es den Schaltern oben folgt oder was synchronisiert wird. Plugins mit ger\xE4tespezifischen Daten (Pfade, Fensterlayout) eignen sich gut f\xFCr \u201ENur dieses Ger\xE4t\u201C.",
|
|
"s.cfgNoPlugins": "Es sind keine Community-Plugins installiert.",
|
|
"s.cfgThisPlugin": "dieses Plugin",
|
|
"s.cfgFollow": "Den Schaltern folgen",
|
|
"s.cfgAll": "Code und Einstellungen",
|
|
"s.cfgCodeOnly": "Nur Code",
|
|
"s.cfgSettingsOnly": "Nur Einstellungen",
|
|
"s.cfgNone": "Nur dieses Ger\xE4t",
|
|
"s.hidden": "Versteckte Dateien und Ordner synchronisieren",
|
|
"s.hiddenDesc": "Dateien und Ordner auf der obersten Ebene des Tresors, deren Namen mit einem Punkt beginnen, etwa .github oder .editorconfig. Niemals .git, .trash oder der Einstellungsordner. \xC4nderungen werden innerhalb weniger Minuten erkannt.",
|
|
"s.gitignore": ".gitignore des Tresors beachten",
|
|
"s.gitignoreDesc": "In den .gitignore-Dateien des Tresors aufgef\xFChrte Dateien werden nicht synchronisiert (eine .gitignore in einem Ordner gilt f\xFCr diesen Ordner, wie in Git), und die .gitignore-Dateien selbst werden auf jedes Ger\xE4t synchronisiert. Deine Ausschlussmuster haben weiterhin das letzte Wort.",
|
|
"s.onOpen": "Beim \xD6ffnen einer Notiz synchronisieren",
|
|
"s.onOpenDesc": "Holt die neueste Version, bevor du bearbeitest, h\xF6chstens alle 30 Sekunden.",
|
|
"s.badges": "Synchronisationsstatus im Dateiexplorer anzeigen",
|
|
"s.badgesDesc": "Ein Punkt bei Dateien, die seit der letzten Synchronisation bearbeitet wurden, und eine Warnung bei Konfliktkopien.",
|
|
"s.noticesAuto": "Automatisch (\xC4nderungen auf Smartphones, Fehler auf dem Desktop)",
|
|
"s.noticesChanges": "Wenn sich Dateien ge\xE4ndert haben, und bei Fehlern",
|
|
"s.cfgPluginSettingsDesc": "Die Optionen jedes Plugins (data.json).",
|
|
"link.tooLongForQr": "Dieser Link ist zu lang f\xFCr einen QR-Code. Kopiere stattdessen den Link.",
|
|
"link.withHidden": "Synchronisiert auch versteckte Dateien oben im Tresor",
|
|
"link.withGitignore": "Ber\xFCcksichtigt die .gitignore des Tresors",
|
|
"link.withExclude": "Ersetzt die Ausschlussmuster dieses Tresors",
|
|
"s.apiBaseInvalid": "Gib die API-Adresse ein, beginnend mit https:// (http:// nur f\xFCr einen Server auf diesem Computer).",
|
|
"s.lfsAboveMax": "Der Schwellenwert f\xFCr gro\xDFe Dateien liegt bei oder \xFCber der maximalen Dateigr\xF6\xDFe ({max} MB), daher wird Large File Storage nie verwendet. Senke den Schwellenwert oder erh\xF6he das Maximum.",
|
|
"s.guardMinLabel": "Mindestanzahl an L\xF6schungen",
|
|
"s.guardPercentLabel": "Mindestprozentsatz der Dateien",
|
|
"sh.notFound": "Repository nicht gefunden oder mit diesem Token nicht zug\xE4nglich",
|
|
"m.unlockToBrowse": "Dieses Repository ist Ende-zu-Ende-verschl\xFCsselt. Gib die Passphrase auf diesem Ger\xE4t ein, um es zu durchsuchen.",
|
|
"m.beforeCommit": "vor {sha}",
|
|
"m.mergedN": "{n} zusammengef\xFChrt",
|
|
"m.nothingToSnapshot": "Noch nichts f\xFCr einen Snapshot vorhanden. Synchronisiere zuerst.",
|
|
"m.queued": "Eine Synchronisation l\xE4uft gerade. Deine startet direkt danach.",
|
|
"h.deleteCopyBody": "Die Konfliktkopie wird in den Papierkorb verschoben (oder gel\xF6scht, je nach Obsidians Einstellung \u201EGel\xF6schte Dateien\u201C). Stelle sicher, dass du behalten hast, was du daraus brauchst.",
|
|
"u.binaryFile": "(Bin\xE4rdatei, {n} Bytes)",
|
|
"u.selectGroup": "Alle ausw\xE4hlen: {group}",
|
|
"u.includeFile": "{path} in diese Synchronisation einbeziehen",
|
|
"m.pausedStatus": "Automatische Synchronisation pausiert",
|
|
"m.paused": "Automatische Synchronisation auf diesem Ger\xE4t pausiert, bis du sie fortsetzt. Manuelle Synchronisation funktioniert weiterhin.",
|
|
"m.pausedFor": "Automatische Synchronisation auf diesem Ger\xE4t f\xFCr {n} Minuten pausiert.",
|
|
"m.resumed": "Automatische Synchronisation fortgesetzt.",
|
|
"cmd.pause": "Automatische Synchronisation pausieren oder fortsetzen",
|
|
"cmd.pauseHour": "Automatische Synchronisation f\xFCr eine Stunde pausieren",
|
|
"cmd.diagnostics": "Diagnosedaten kopieren (f\xFCr einen Fehlerbericht)",
|
|
"cmd.openOnHost": "Aktuelle Datei auf dem Host \xF6ffnen",
|
|
"cmd.historyOnHost": "Verlauf der aktuellen Datei auf dem Host \xF6ffnen",
|
|
"cmd.copyHostLink": "Link zur aktuellen Datei auf dem Host kopieren",
|
|
"menu.shareFolder": "Diesen Ordner mit einem Repository teilen\u2026",
|
|
"menu.excludeFolder": "Diesen Ordner von der Synchronisation ausschlie\xDFen",
|
|
"menu.openOnHost": "Auf {host} \xF6ffnen",
|
|
"menu.copyHostLink": "Link auf {host} kopieren",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "Dieses Repository ist Ende-zu-Ende-verschl\xFCsselt, daher haben Dateien auf dem Host keine lesbare Adresse.",
|
|
"m.hostLinkUnsupported": "{host} hat keine Webseite f\xFCr diese Datei.",
|
|
"m.alreadyExcluded": "{folder} ist bereits ausgeschlossen.",
|
|
"m.excludeBody": "Dateien in {folder} werden auf keinem Ger\xE4t mehr hochgeladen, heruntergeladen oder gel\xF6scht. Jetzt wird nichts gel\xF6scht.",
|
|
"m.excluded": "{folder} ist jetzt von der Synchronisation ausgeschlossen.",
|
|
"m.diagnosticsCopied": "Diagnosedaten kopiert. Tokens sind ausgeblendet; pr\xFCfe den Text, bevor du ihn teilst, da er Dateinamen aus dem Protokoll enth\xE4lt.",
|
|
"h.resume": "Fortsetzen",
|
|
"h.pause": "1 Stunde pausieren",
|
|
"h.pausedUntilResumed": "Die automatische Synchronisation ist pausiert, bis du sie fortsetzt.",
|
|
"h.pausedUntil": "Die automatische Synchronisation ist bis {time} pausiert.",
|
|
"h.batterySaverOn": "Der Akkusparmodus ist an: kein Timer und keine Synchronisation nach jeder Bearbeitung auf diesem Ger\xE4t.",
|
|
"h.batterySaverTurnOn": "Akkusparmodus einschalten",
|
|
"h.batterySaverOff": "Akkusparmodus ausschalten",
|
|
"h.versionMismatch": "Die Ger\xE4te nutzen verschiedene Versionen dieses Plugins (dieses Ger\xE4t: {mine}; {list}). Aktualisiere sie, damit sie auf dieselbe Weise synchronisieren.",
|
|
"h.badNames": "Namen, die Windows nicht speichern kann ({n})",
|
|
"h.badNamesHint": 'Diese Dateien werden nicht mit Windows-Ger\xE4ten (und manchen Android-Ger\xE4ten) synchronisiert. Benenne sie um und entferne < > : " | ? * oder einen Punkt bzw. ein Leerzeichen am Ende.',
|
|
"u.filterSearch": "Nach Name filtern",
|
|
"u.filterAll": "Alle",
|
|
"u.filterUploads": "Uploads",
|
|
"u.filterDownloads": "Downloads",
|
|
"u.filterDeletes": "L\xF6schungen",
|
|
"u.filterConflicts": "Konflikte",
|
|
"m.mirrorFailed": "Backup-Spiegel: {error}",
|
|
"m.hostRemoved": "Gitee und Azure DevOps werden nicht mehr unterst\xFCtzt. Die Synchronisierung ist pausiert: W\xE4hle in Einstellungen \u2192 Vault Sync for Git einen anderen Host. Deine Dateien bleiben unver\xE4ndert.",
|
|
"m.hostRemovedOther": "Gitee und Azure DevOps werden nicht mehr unterst\xFCtzt. Der Backup-Spiegel, der sie verwendet hat, ist ausgeschaltet, und geteilte Ordner darauf werden \xFCbersprungen. Deine Dateien bleiben unver\xE4ndert.",
|
|
"sh.subdir": "Ordner im Repository (optional)",
|
|
"sh.subdirDesc": "Ordnet den geteilten Ordner einem Ordner innerhalb des Repositorys zu, zum Beispiel docs, statt dessen Stammverzeichnis. Dateien an anderen Stellen im Repository bleiben unber\xFChrt.",
|
|
"sh.conflicts": "Wenn zwei Personen dieselben Zeilen \xE4ndern",
|
|
"sh.conflictsDesc": "Beide Versionen hier als Konfliktkopie behalten oder die Version dieses Ger\xE4ts in einen neuen Branch mit einem Pull Request senden, den das Team pr\xFCfen kann.",
|
|
"sh.conflictsCopy": "Beide behalten (Konfliktkopie)",
|
|
"sh.conflictsPr": "Pull Request \xF6ffnen",
|
|
"m.prOpened": "{folder}: Widerspr\xFCchliche \xC4nderungen wurden als Pull Request gesendet: {url}",
|
|
"pi.title": "Plugins von deinen anderen Ger\xE4ten installieren",
|
|
"pi.body": "Diese Community-Plugins sind auf einem anderen Ger\xE4t aktiviert (oder aktualisiert). Vault Sync for Git kann hier dieselbe Version installieren, jeweils aus dem offiziellen Release des Plugins auf GitHub, wie im Community-Verzeichnis von Obsidian aufgef\xFChrt.",
|
|
"pi.list": "Plugins",
|
|
"pi.install": "Installieren",
|
|
"pi.failed": "{name} konnte nicht installiert werden: {error}",
|
|
"pi.done": "Installiert: {list}. Starte Obsidian neu (oder schalte jedes Plugin aus und wieder ein), um sie zu laden.",
|
|
"s.cfgInstall": "Plugin-Code aus offiziellen Releases installieren",
|
|
"s.cfgInstallDesc": "Statt den Plugin-Code zu synchronisieren, installiert jedes Ger\xE4t dieselbe Version aus dem offiziellen Release des Plugins (nach R\xFCckfrage). Plugin-Versionen werden weiterhin synchronisiert. Sicherer: Niemand kann \xFCber das Repository Code auf deine Ger\xE4te bringen.",
|
|
"s.branchDesc": "Der Branch, mit dem dieser Tresor synchronisiert. Ein Wechsel startet einen neuen Vergleich; nichts wird gel\xF6scht.",
|
|
"s.branchChoose": "Ausw\xE4hlen",
|
|
"s.branchIntro": "W\xE4hle einen vorhandenen Branch oder erstelle einen neuen aus dem aktuellen Branch (zum Beispiel einen Entwurfs-Branch).",
|
|
"s.branchNew": "Neuer Branch",
|
|
"s.branchInvalid": "Nur Buchstaben, Ziffern, - _ . und / verwenden.",
|
|
"s.branchNoHead": "Der Branch {branch} ist leer, daher kann noch kein Branch davon erstellt werden.",
|
|
"s.branchNone": "Noch keine Branches.",
|
|
"s.branchCurrent": "Aktueller Branch",
|
|
"s.branchUse": "Verwenden",
|
|
"s.emptyFolders": "Leere Ordner behalten",
|
|
"s.emptyFoldersDesc": "Ordner ohne Dateien bleiben auf jedem Ger\xE4t erhalten (aufgef\xFChrt in .vault-sync/folders.json). Aus, solange die Ende-zu-Ende-Verschl\xFCsselung aktiv ist.",
|
|
"s.battery": "Akkusparmodus",
|
|
"s.batteryDesc": "Auf diesem Ger\xE4t: kein Timer und keine Synchronisation nach jeder Bearbeitung. Synchronisiert beim Start, wenn du zu Obsidian zur\xFCckkehrst, und bei manueller Synchronisation.",
|
|
"s.pause": "Automatische Synchronisation pausieren",
|
|
"s.pauseDesc": "Nur auf diesem Ger\xE4t. Manuelle Synchronisation funktioniert weiterhin.",
|
|
"s.pauseDescOn": "Die automatische Synchronisation ist auf diesem Ger\xE4t pausiert.",
|
|
"s.pauseUntilResumed": "Bis zur Fortsetzung",
|
|
"s.author": "Commit-Autor",
|
|
"s.authorDesc": "Name und E-Mail f\xFCr Commits (beides erforderlich). Leer: Der Host verwendet das Konto des Tokens.",
|
|
"s.authorName": "Name",
|
|
"s.authorEmail": "E-Mail",
|
|
"s.hMirror": "Backup-Spiegel",
|
|
"s.mirrorIntro": "Jede Synchronisation l\xE4dt diesen Tresor zus\xE4tzlich in ein zweites Repository hoch, zum Beispiel bei einem anderen Host. Nur hochladen: Der Spiegel wird nie zur\xFCckgelesen. Mit Ende-zu-Ende-Verschl\xFCsselung wird auch der Spiegel verschl\xFCsselt.",
|
|
"s.mirrorOn": "Diesen Tresor spiegeln",
|
|
"s.mirrorToken": "Spiegel-Token",
|
|
"s.mirrorTokenDesc": "Zugriffstoken f\xFCr das Spiegel-Repository. Wird nur auf diesem Ger\xE4t gespeichert. Leer: das Haupt-Token, sofern es derselbe Host ist.",
|
|
"s.mirrorIncomplete": "Schalte zuerst den Spiegel ein und gib Eigent\xFCmer und Repository an.",
|
|
"s.mirrorOk": "Spiegel erreichbar: {repo}",
|
|
"h.mirror": "Backup-Spiegel {target}: letzter Upload {ago}",
|
|
"h.mirrorFailed": "Backup-Spiegel {target} fehlgeschlagen: {error}",
|
|
"cmd.overwrite": "Repository an dieses Ger\xE4t angleichen",
|
|
"ow.title": "Repository an dieses Ger\xE4t angleichen",
|
|
"ow.body": "Ein neuer Commit auf {host} gleicht das Repository an dieses Ger\xE4t an: Diese Dateien werden dort hochgeladen und diese gel\xF6scht (sie bleiben im Verlauf). Dateien, die nur auf {host} zum Herunterladen bei Bedarf liegen, bleiben unber\xFChrt. Andere Ger\xE4te \xFCbernehmen das bei ihrer n\xE4chsten Synchronisation.",
|
|
"ow.upload": "Hochgeladen",
|
|
"ow.confirm": "Angleichen",
|
|
"ow.done": "Repository aktualisiert: {n} \xC4nderung(en) in einem Commit.",
|
|
"ow.failed": "Das Repository konnte nicht aktualisiert werden: {error}",
|
|
"m.clipboardFailed": "Kopieren in die Zwischenablage fehlgeschlagen: {error}",
|
|
"ce.ours": "Dieses Ger\xE4t behalten",
|
|
"ce.theirs": "Repository behalten",
|
|
"ce.both": "Beide behalten",
|
|
"ce.hint": "Widerspr\xFCchliche \xC4nderung:",
|
|
"app.signInGitLab": "Mit GitLab anmelden",
|
|
"app.signInDescGitLab": "Best\xE4tige den Zugriff im Browser, statt ein Token zu erstellen. Der Zugriff wird automatisch erneuert.",
|
|
"app.signedInGitLab": "Mit GitLab angemeldet",
|
|
"app.signedInDescGitLab": "Dieses Ger\xE4t nutzt die Anwendung Vault Sync for Git auf GitLab. Der Zugriff wird automatisch erneuert. Nur auf diesem Ger\xE4t gespeichert.",
|
|
"app.glClientId": "GitLab-Anwendungs-ID (optional)",
|
|
"app.glClientIdDesc": "F\xFCr \u201EMit GitLab anmelden\u201C: die Application ID einer nicht vertraulichen OAuth-Anwendung mit dem Bereich api, erstellt in deinem GitLab (Profil bearbeiten \u2192 Anwendungen). Nur auf diesem Ger\xE4t gespeichert.",
|
|
"sh.ghFormat": "GitHub-freundliches Markdown",
|
|
"sh.ghFormatDesc": "Notizen so speichern, dass sie auf GitHub gut lesbar sind: Wikilinks werden zu Links, Callouts zu Hinweisen, Hervorhebungen zu <mark>. Dein Tresor beh\xE4lt den exakten Obsidian-Text. Wird beim Hinzuf\xFCgen des Ordners festgelegt.",
|
|
"s.hiddenNested": "Versteckte Dateien in Ordnern",
|
|
"s.hiddenNestedDesc": "Auch versteckte Dateien und Ordner innerhalb deiner Notizordner synchronisieren (zum Beispiel Notes/.assets). Einstellungsordner, .trash und .git werden nie einbezogen.",
|
|
"app.reposTitle": "Repositorys, die die App verwenden darf",
|
|
"app.addRepos": "Repositorys auf GitHub hinzuf\xFCgen",
|
|
"app.watching": "Warte auf dich bei GitHub. Die Liste aktualisiert sich, wenn du zur\xFCckkommst.",
|
|
"app.noRepos": "Die App sieht noch keine Repositorys. F\xFCge dein Tresor-Repository auf GitHub hinzu.",
|
|
"app.newRepo": "Neu",
|
|
"app.newArrived": "Repository hinzugef\xFCgt. W\xE4hle es in der Liste oben aus.",
|
|
"s.repoPick": "Repository ausw\xE4hlen",
|
|
"s.strategyDesc": "Automatisches Zusammenf\xFChren kombiniert \xC4nderungen an verschiedenen Zeilen und beh\xE4lt beide Versionen, wenn dieselben Zeilen ge\xE4ndert wurden.",
|
|
"s.pauseDescUntil": "Automatische Synchronisation ist auf diesem Ger\xE4t bis {time} pausiert.",
|
|
"s.branchPick": "Branch ausw\xE4hlen",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "der Repository-Host",
|
|
"err.network": "Netzwerkfehler bei der Verbindung mit {host}",
|
|
"err.badToken": "Das {host}-Token ist ung\xFCltig oder abgelaufen.",
|
|
"err.forbidden": "{host} hat den Zugriff verweigert (HTTP {status}). Pr\xFCfe, ob das Token dieses Repository lesen und schreiben darf.",
|
|
"err.notFound": "{host} hat das Repository, den Branch oder die Datei nicht gefunden (HTTP {status}). Pr\xFCfe den Repository-Namen und den Zugriff des Tokens.",
|
|
"err.conflict": "{host} meldet einen Konflikt (HTTP {status}); vielleicht hat ein anderes Ger\xE4t gerade hochgeladen. Synchronisiere erneut.",
|
|
"err.tooLarge": "{host} hat eine zu gro\xDFe Datei abgelehnt (HTTP {status}).",
|
|
"err.rateLimit": "Anfragelimit von {host} erreicht. Versuche es in einer Minute erneut.",
|
|
"err.rateLimitMin": "Anfragelimit von {host} erreicht. Versuche es in {min} Min. erneut.",
|
|
"err.secondaryRateLimit": "Sekund\xE4res Anfragelimit von {host} erreicht. Versuche es in einer Minute erneut.",
|
|
"err.server": "{host} hat Probleme (HTTP {status}). Versuche es sp\xE4ter erneut.",
|
|
"err.noToken": "Kein {host}-Token festgelegt. F\xFCge eines in den Plugin-Einstellungen hinzu.",
|
|
"err.foreignLink": "{host} hat einen Link zu einem anderen Server geliefert ({origin}); das Token wird dorthin nicht gesendet.",
|
|
"err.versionUnavailable": "{host}: Diese Dateiversion ist nicht verf\xFCgbar",
|
|
"err.contentMismatch": "\u201E{path}\u201C konnte nicht vollst\xE4ndig von {host} heruntergeladen werden (der Inhalt stimmt nicht \xFCberein). Synchronisiere erneut.",
|
|
"err.partialDownload": "\u201E{path}\u201C konnte nicht vollst\xE4ndig von {host} heruntergeladen werden ({got} von {expected} Bytes erhalten). Synchronisiere erneut.",
|
|
"err.incompleteDownload": "{path} konnte nicht vollst\xE4ndig von {host} heruntergeladen werden ({bytes} Bytes erhalten). Der Server begrenzt m\xF6glicherweise die Dateigr\xF6\xDFe \xFCber seine API.",
|
|
"err.commitRefused": "{host} hat den Commit abgelehnt: {detail}",
|
|
"err.commitNotCreated": "{host} hat den Commit nicht erstellt",
|
|
"err.commitNoTree": "Commit {sha} hat keinen Dateibaum",
|
|
"err.repoTooLarge": "Das Repository ist zu gro\xDF, um es auf {host} aufzulisten.",
|
|
"err.badPagination": "{host} hat einen unerwarteten Seitenlink geliefert",
|
|
"err.listFailed": "{host} konnte die Dateien von {ref} nicht auflisten (HTTP 404)",
|
|
"err.blobTooLarge": "{host}: Datei zu gro\xDF f\xFCr die API dieses Servers (\xFCber seinem Gr\xF6\xDFenlimit)",
|
|
"err.blobTooLargeMismatch": "{host}: Datei zu gro\xDF f\xFCr die API dieses Servers (\xFCber seinem Gr\xF6\xDFenlimit), und die Rohdatei stimmt nicht \xFCberein",
|
|
"err.unsupportedHost": "Nicht unterst\xFCtzter Git-Host: {host}",
|
|
"err.lfsCorrupt": "{path}: Download der gro\xDFen Datei war besch\xE4digt",
|
|
"err.lfsError": "Speicher f\xFCr gro\xDFe Dateien: {detail}",
|
|
"err.lfsMissing": "{path}: Die gro\xDFe Datei fehlt im LFS-Speicher des Hosts",
|
|
"err.encLocked": "Dieses Repository ist Ende-zu-Ende-verschl\xFCsselt. Gib die Passphrase unter Einstellungen \u2192 Verschl\xFCsselung ein, um auf diesem Ger\xE4t zu synchronisieren.",
|
|
"err.encMismatch": "Dieses Repository wurde mit einer anderen Passphrase verschl\xFCsselt als der auf diesem Ger\xE4t entsperrten. Entsperre es erneut unter Einstellungen \u2192 Verschl\xFCsselung.",
|
|
"err.encUpgraded": "Die Ende-zu-Ende-Verschl\xFCsselung wurde auf einem anderen Ger\xE4t aktualisiert (gleiche Passphrase, Dateien jetzt an ihren Namen gebunden). Dieses Ger\xE4t hat ebenfalls umgestellt; die n\xE4chste Synchronisierung macht weiter.",
|
|
"err.branchMoved": "Der Branch hat sich w\xE4hrend der Synchronisation ge\xE4ndert (ein anderes Ger\xE4t hat hochgeladen).",
|
|
"err.editedDuringSync": "{path} wurde w\xE4hrend der Synchronisation bearbeitet",
|
|
"err.cancelled": "Abgebrochen.",
|
|
"err.unloaded": "Das Plugin wurde beendet; die Synchronisation wurde gestoppt. Sie wird beim n\xE4chsten Mal fortgesetzt.",
|
|
"err.guardCancelled": "Synchronisation durch den L\xF6schschutz abgebrochen.",
|
|
"err.resetCancelled": "Zur\xFCcksetzen abgebrochen.",
|
|
"err.restoreCancelled": "Wiederherstellung abgebrochen.",
|
|
"err.branchMissing": "Der Branch \u201E{branch}\u201C wurde in {repo} nicht gefunden. Er wurde vielleicht gel\xF6scht oder umbenannt, oder das Token hat keinen Zugriff mehr. Es wurde nichts ge\xE4ndert.",
|
|
"err.repoNotFound": "Repository {repo} nicht gefunden, oder das Token hat keinen Zugriff darauf.",
|
|
"err.initFailed": "Der Branch des Repositorys konnte nicht angelegt werden.",
|
|
"err.encryptionOff": "Die Verschl\xFCsselung ist auf diesem Ger\xE4t nicht aktiviert.",
|
|
"err.branchEmpty": "Der Branch im Repository ist leer.",
|
|
"err.resetEmpty": "Der Branch im Repository ist leer. Es gibt nichts zum Zur\xFCcksetzen.",
|
|
"err.restorePullOnly": "Die Wiederherstellung muss in das Repository hochladen, was der Modus \u201ENur abrufen\u201C nicht erlaubt.",
|
|
"err.restoreRaced": "Ein anderes Ger\xE4t hat w\xE4hrend der Wiederherstellung hochgeladen. Es wurde nichts ge\xE4ndert; versuche es erneut.",
|
|
"skip.deferred": "in der \xDCberpr\xFCfung zur\xFCckgestellt",
|
|
"skip.localTooLarge": "lokale Datei gr\xF6\xDFer als {mb} MB",
|
|
"skip.remoteTooLarge": "Datei im Repository gr\xF6\xDFer als {mb} MB",
|
|
"skip.windowsName": "Name unter Windows nicht erlaubt; benenne sie auf einem anderen Ger\xE4t um",
|
|
"skip.onDemand": "gr\xF6\xDFer als das Download-Limit dieses Ger\xE4ts; bei Bedarf verf\xFCgbar",
|
|
"skip.caseRenamedFrom": "anderswo durch Gro\xDF-/Kleinschreibung aus {other} umbenannt; wird bei der n\xE4chsten Synchronisation in beide Richtungen \xFCbernommen",
|
|
"skip.caseRenamedTo": "anderswo durch Gro\xDF-/Kleinschreibung in {other} umbenannt; wird bei der n\xE4chsten Synchronisation in beide Richtungen \xFCbernommen",
|
|
"skip.unicodeClash": "gleicher Name wie {other} in einer anderen Unicode-Form",
|
|
"skip.caseClash": "unterscheidet sich nur in der Gro\xDF-/Kleinschreibung von {other}",
|
|
"skip.winRenamed": "anderswo in einen Namen umbenannt, den Windows nicht speichern kann; hier behalten",
|
|
"skip.winMaybeRenamed": "anderswo vielleicht in einen Namen umbenannt, den Windows nicht speichern kann; hier behalten",
|
|
"skip.unsafePath": "unsicherer Pfad",
|
|
"skip.movedOutOfScope": "nach {to} verschoben, au\xDFerhalb des Sync-Bereichs dieses Ger\xE4ts; bleibt im Repository",
|
|
"skip.conflictKept": "Konflikt f\xFCr die n\xE4chste Synchronisation behalten: {error}",
|
|
"skip.caseRenameFailed": "anderswo durch Gro\xDF-/Kleinschreibung aus {from} umbenannt; hier noch nicht umbenannt: {error}",
|
|
"skip.editedDuringSync": "w\xE4hrend der Synchronisation bearbeitet, wird beim n\xE4chsten Mal synchronisiert",
|
|
"err.newerFormat": "Dieses Repository verwendet ein neueres Verschl\xFCsselungsformat. Aktualisiere das Plugin.",
|
|
"err.wrongPass": "Falsche Passphrase.",
|
|
"err.decryptFailed": "{path} konnte nicht entschl\xFCsselt werden: falsche Passphrase oder besch\xE4digte Datei",
|
|
"err.notEncrypted": "{path} ist nicht mit dem Schl\xFCssel dieses Tresors verschl\xFCsselt",
|
|
"err.overwritePullOnly": "Im Modus \u201ENur abrufen\u201C wird das Repository nie ge\xE4ndert.",
|
|
"err.overwriteEmpty": "Der Branch im Repository ist leer: F\xFChre zuerst eine normale Synchronisation aus.",
|
|
"skip.pushCopyTooLarge": "auch in {host} ge\xE4ndert; nur sichern: diese Version ist zu gro\xDF f\xFCr eine Kopie hier und bleibt im Verlauf des Repositorys",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "Synchronisationsverlauf",
|
|
"cmd.openHistory": "Synchronisationsverlauf \xF6ffnen",
|
|
"cmd.useRepo": "Repository-Version dieser Datei verwenden",
|
|
"menu.useRepo": "Repository-Version verwenden",
|
|
"hist.title": "Synchronisationsverlauf",
|
|
"hist.filter": "Nach Pfad filtern",
|
|
"hist.loadMore": "Mehr laden",
|
|
"hist.empty": "Noch keine Synchronisationen.",
|
|
"hist.noMatch": "Keine ge\xE4nderte Datei passt in den bisher geladenen Synchronisationen. Lade mehr, um weiter zur\xFCck zu suchen.",
|
|
"hist.noFiles": "In dieser Synchronisation wurden keine Dateien dieses Tresors ge\xE4ndert.",
|
|
"hist.added": "Hinzugef\xFCgt",
|
|
"hist.modified": "Ge\xE4ndert",
|
|
"hist.deleted": "Gel\xF6scht",
|
|
"hist.renamed": "Umbenannt",
|
|
"hist.renamedFrom": "(von {path})",
|
|
"hist.restoreFile": "Diese Datei wiederherstellen",
|
|
"hist.before": "Vorher ({sha})",
|
|
"hist.after": "Nachher ({sha})",
|
|
"hist.none": "(nicht vorhanden)",
|
|
"h.pendingFiles": "Bearbeitete Dateien anzeigen",
|
|
"repo.use": "Repository-Version verwenden",
|
|
"repo.useBody": "{path} auf diesem Ger\xE4t durch die neueste Version in {host} ersetzen? Die Version auf diesem Ger\xE4t kommt vorher in den Papierkorb, du kannst sie also zur\xFCckholen.",
|
|
"repo.used": "{path} entspricht jetzt {host}. Die vorherige Version liegt als {copy} im Papierkorb.",
|
|
"repo.restored": "{path} wurde aus {host} zur\xFCckgeholt.",
|
|
"repo.same": "{path} entspricht bereits {host}.",
|
|
"repo.missing": "{path} ist nicht in {host}: nichts ge\xE4ndert.",
|
|
"repo.failed": "Repository-Version konnte nicht verwendet werden: {error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "Diese \xC4nderung zur\xFCcknehmen (zur\xFCck zum Text der letzten Synchronisation)",
|
|
"cmd.nextChange": "Zur n\xE4chsten \xC4nderung seit der letzten Synchronisation",
|
|
"cmd.prevChange": "Zur vorherigen \xC4nderung seit der letzten Synchronisation",
|
|
"cmd.whoChanged": "Anzeigen, wer diese Zeile zuletzt ge\xE4ndert hat",
|
|
"cm.added": "Seit der letzten Synchronisation hinzugef\xFCgt",
|
|
"cm.changed": "Seit der letzten Synchronisation ge\xE4ndert",
|
|
"cm.deleted": "Seit der letzten Synchronisation gel\xF6scht",
|
|
"cm.lastSynced": "Bei der letzten Synchronisation:",
|
|
"cm.newLines": "Diese Zeilen sind seit der letzten Synchronisation neu.",
|
|
"cm.revert": "Zur\xFCcknehmen",
|
|
"cm.who": "Wer hat das ge\xE4ndert?",
|
|
"la.title": "Wer hat diese Zeile zuletzt ge\xE4ndert",
|
|
"la.result": "Zuletzt ge\xE4ndert am {date} von {device} ({sha}).",
|
|
"la.resultOlder": "Zuletzt ge\xE4ndert am oder vor dem {date} von {device} ({sha}). Nur die letzten {n} Versionen wurden gepr\xFCft.",
|
|
"la.local": "Diese Zeile wurde seit der letzten Synchronisation auf diesem Ger\xE4t ge\xE4ndert, daher enth\xE4lt noch keine Version im Repository sie.",
|
|
"la.none": "Kein Verlauf f\xFCr diese Datei im Repository gefunden.",
|
|
"la.looking": "Verlauf der Datei wird durchsucht\u2026",
|
|
"la.failed": "Verlauf der Datei konnte nicht gelesen werden: {error}",
|
|
"la.tooBig": "Diese Datei ist zu gro\xDF, um ihren Verlauf zu durchsuchen (\xFCber 1 MB).",
|
|
"la.open": "Diese Version \xF6ffnen",
|
|
"s.changeMarkers": "\xC4nderungen seit der letzten Synchronisation im Editor anzeigen",
|
|
"s.changeMarkersDesc": "Markiert hinzugef\xFCgte, ge\xE4nderte und gel\xF6schte Zeilen neben dem Text. Eine Markierung anklicken oder antippen zeigt den Text der letzten Synchronisation und nimmt die \xC4nderung auf Wunsch zur\xFCck.",
|
|
"cmd.syncMessage": "Mit eigener Nachricht synchronisieren\u2026",
|
|
"cmd.syncClose": "Synchronisieren und Obsidian schlie\xDFen",
|
|
"cmd.editExcludes": "Ausschlussmuster bearbeiten",
|
|
"msg.title": "Commit-Nachricht",
|
|
"msg.placeholder": "Was hat sich ge\xE4ndert?",
|
|
"msg.sync": "Synchronisieren",
|
|
"msg.empty": "Gib zuerst eine Nachricht ein.",
|
|
"menu.excludeFile": "Diese Datei von der Synchronisation ausschlie\xDFen",
|
|
"menu.include": "In die Synchronisation aufnehmen",
|
|
"m.excludeFileBody": "{path} wird auf keinem Ger\xE4t mehr hochgeladen, heruntergeladen oder gel\xF6scht. Die Kopie im Repository bleibt, wie sie ist. Jetzt wird nichts gel\xF6scht.",
|
|
"m.excludedFile": "{path} ist jetzt von der Synchronisation ausgeschlossen.",
|
|
"m.included": "{path} wird wieder synchronisiert.",
|
|
"m.includeImpossible": "{path} wird nicht durch deine Ausschlussmuster ausgelassen, sondern durch etwas anderes (Synchronisationsumfang dieses Ger\xE4ts, versteckte Dateien, Einstellungsordner oder sync: false) und kann hier nicht aufgenommen werden.",
|
|
"ex.save": "Speichern",
|
|
"ex.saved": "Ausschlussmuster gespeichert.",
|
|
"m.closeSyncing": "Synchronisiere vor dem Schlie\xDFen\u2026",
|
|
"m.closeFailed": "Die Synchronisation wurde nicht abgeschlossen, daher bleibt Obsidian ge\xF6ffnet: {error}",
|
|
"m.closeNotSynced": "Synchronisation nicht m\xF6glich (offline, pausiert oder nicht eingerichtet), daher bleibt Obsidian ge\xF6ffnet.",
|
|
"m.syncFileErrors": "{count} Datei(en) konnten nicht synchronisiert werden (erste: {first})",
|
|
"m.closeIncomplete": "Nicht alles wurde synchronisiert, daher bleibt Obsidian ge\xF6ffnet:\n{reasons}",
|
|
"x.excluded": "Wird nicht synchronisiert",
|
|
"skip.frontmatterPending": "wartet, bis Obsidian die Eigenschaften gelesen hat (Pr\xFCfung auf sync: false)",
|
|
"s.commitMsgAuto": "Commit-Nachricht f\xFCr automatische Synchronisationen",
|
|
"s.commitMsgAutoDesc": "Wird verwendet, wenn eine Synchronisation von selbst startet (Timer, Bearbeitungen, Start, R\xFCckkehr zur App). Leer lassen, um die Nachricht oben zu verwenden.",
|
|
"s.commitPreview": "Vorschau: {msg}",
|
|
"s.repoSubdir": "Ordner im Repository",
|
|
"s.repoSubdirDesc": "Diesen Tresor in einem Ordner des Repositorys speichern (zum Beispiel vaults/personal) statt im Stammverzeichnis. Dateien au\xDFerhalb dieses Ordners werden nie heruntergeladen, ge\xE4ndert oder gel\xF6scht. Eine \xC4nderung startet einen neuen Abgleich, der nichts l\xF6scht.",
|
|
"s.subdirChangeTitle": "Ordner im Repository \xE4ndern?",
|
|
"s.subdirChangeBody": "Die n\xE4chste Synchronisation vergleicht diesen Tresor von Grund auf mit {folder}. Nichts wird gel\xF6scht, aber dort vorhandene Dateien werden in diesen Tresor heruntergeladen und die Dateien dieses Tresors dorthin hochgeladen.",
|
|
"s.subdirRoot": "dem Stammverzeichnis des Repositorys",
|
|
"s.subdirHasFiles": "An diesem Ort liegen im Repository bereits {count} Dateien. Geh\xF6ren sie zu einem anderen Tresor, werden sie mit diesem vermischt: W\xE4hle einen anderen Ordner.",
|
|
"s.subdirMaybeFiles": "Liegen an diesem Ort bereits Dateien eines anderen Tresors, werden sie mit diesem vermischt.",
|
|
"s.subdirChangeConfirm": "Ordner \xE4ndern",
|
|
"s.frontmatter": "sync: false in den Eigenschaften beachten",
|
|
"s.frontmatterDesc": "Notizen mit sync: false in ihren Eigenschaften bleiben auf diesem Ger\xE4t: Sie werden nie hochgeladen, und eine Kopie im Repository bleibt, wie sie ist.",
|
|
"s.statusCountdown": "N\xE4chste Synchronisation in der Statusleiste anzeigen",
|
|
"s.statusCountdownDesc": "Zeit bis zur n\xE4chsten geplanten Synchronisation, etwa \u201Ein 4 Min.\u201C.",
|
|
"s.statusBranch": "Branch in der Statusleiste anzeigen",
|
|
"s.statusBranchDesc": "Der Branch, mit dem dieser Tresor synchronisiert.",
|
|
"sb.next": "in {n} Min.",
|
|
"sb.soon": "in weniger als einer Minute",
|
|
"sb.nextTip": "N\xE4chste geplante Synchronisation",
|
|
"sb.branchTip": "Branch: {branch}",
|
|
"w.subdir": "Ordner im Repository (optional)",
|
|
"w.subdirDesc": "Leer lassen, um das ganze Repository zu verwenden. Setzen, um diesen Tresor in einem Ordner zu halten, etwa wenn sich mehrere Tresore ein Repository teilen."
|
|
};
|
|
|
|
// src/locales/es.ts
|
|
var es = {
|
|
// commands
|
|
"cmd.sync": "Sincronizar ahora",
|
|
"cmd.review": "Revisar cambios y sincronizar",
|
|
"cmd.status": "Abrir panel de estado de sincronizaci\xF3n",
|
|
"cmd.pull": "Solo descargar (traer cambios)",
|
|
"cmd.push": "Solo respaldar (subir cambios)",
|
|
"cmd.preview": "Previsualizar sincronizaci\xF3n (simulaci\xF3n)",
|
|
"cmd.timeline": "L\xEDnea de tiempo: restaurar la b\xF3veda o una carpeta a un punto anterior",
|
|
"cmd.reset": "Hacer que este dispositivo coincida con el repositorio (descartar cambios locales)",
|
|
"cmd.snapshot": "Crear instant\xE1nea de respaldo",
|
|
"cmd.wizard": "Ejecutar asistente de configuraci\xF3n",
|
|
"cmd.encryption": "Cifrado de extremo a extremo: activar o desbloquear",
|
|
"cmd.freeSpace": "Liberar espacio en este dispositivo",
|
|
"cmd.onDemand": "Descargar archivos que no est\xE1n en este dispositivo",
|
|
"cmd.log": "Mostrar registro de sincronizaci\xF3n",
|
|
"cmd.history": "Mostrar historial del archivo actual",
|
|
"cmd.compare": "Comparar el archivo actual con el repositorio",
|
|
"cmd.recover": "Recuperar archivos eliminados",
|
|
"cmd.openRepo": "Abrir repositorio en el navegador",
|
|
// ribbon / menus
|
|
"ribbon.sync": "Sincronizar b\xF3veda",
|
|
"ribbon.status": "Estado de sincronizaci\xF3n",
|
|
"menu.history": "Historial de versiones",
|
|
"menu.compare": "Comparar con el repositorio",
|
|
// status panel
|
|
"health.title": "Estado de sincronizaci\xF3n",
|
|
"health.upToDate": "Al d\xEDa",
|
|
"health.syncing": "Sincronizando\u2026",
|
|
"health.failed": "La \xFAltima sincronizaci\xF3n fall\xF3",
|
|
"health.attention": "Requiere atenci\xF3n",
|
|
"health.notSynced": "A\xFAn no sincronizado",
|
|
"health.notSetUp": "Sin configurar",
|
|
"health.syncNow": "Sincronizar ahora",
|
|
"health.review": "Revisar\u2026",
|
|
"health.wizard": "Ejecutar asistente de configuraci\xF3n",
|
|
"health.pending": "Pendiente",
|
|
"health.editedN": "{n} archivo(s) editado(s) en este dispositivo desde la \xFAltima sincronizaci\xF3n",
|
|
"health.noEdits": "No hay ediciones locales pendientes",
|
|
"health.remoteAhead": "El repositorio tiene cambios m\xE1s recientes de otro dispositivo",
|
|
"health.remoteSame": "No hay nada nuevo en el repositorio",
|
|
"health.checking": "Comprobando el repositorio\u2026",
|
|
"health.nextSync": "Pr\xF3xima sincronizaci\xF3n programada {time}",
|
|
"health.noSchedule": "No hay sincronizaci\xF3n peri\xF3dica programada",
|
|
"health.conflicts": "Copias en conflicto ({n})",
|
|
"health.conflictsHint": "Se conservaron ambas versiones. Comp\xE1ralas, qu\xE9date con lo que necesites y luego elimina la copia.",
|
|
"health.compare": "Comparar",
|
|
"health.open": "Abrir",
|
|
"health.deleteCopy": "Eliminar copia",
|
|
"health.skipped": "Omitidos en la \xFAltima sincronizaci\xF3n ({n})",
|
|
"health.devices": "Dispositivos",
|
|
"health.thisDevice": "(este dispositivo)",
|
|
"health.lastSynced": "\xFAltima sincronizaci\xF3n {ago}",
|
|
"health.shared": "Carpetas compartidas",
|
|
"health.tools": "Herramientas",
|
|
"health.timeline": "L\xEDnea de tiempo y restauraci\xF3n",
|
|
"health.snapshot": "Crear instant\xE1nea ahora",
|
|
"health.reset": "Hacer que este dispositivo coincida con el repositorio",
|
|
"health.freeSpace": "Liberar espacio",
|
|
"health.log": "Registro de sincronizaci\xF3n",
|
|
"health.settings": "Configuraci\xF3n",
|
|
"health.openSettings": "Abrir configuraci\xF3n",
|
|
"health.tryAgain": "Reintentar",
|
|
"health.enterPassphrase": "Introducir frase de contrase\xF1a",
|
|
"health.encrypted": "cifrado de extremo a extremo",
|
|
// notices
|
|
"notice.upToDate": "La b\xF3veda est\xE1 al d\xEDa.",
|
|
"notice.synced": "Sincronizaci\xF3n: {summary}",
|
|
"notice.failed": "Error de sincronizaci\xF3n: {error}",
|
|
"notice.errors": "La sincronizaci\xF3n termin\xF3 con {n} error(es). Abre el panel de estado de sincronizaci\xF3n para ver los detalles.",
|
|
"notice.conflicts": "Sincronizaci\xF3n: {n} conflicto(s). Se conservaron ambas versiones; comp\xE1ralas en el panel de estado de sincronizaci\xF3n.",
|
|
"notice.busy": "Hay una sincronizaci\xF3n en curso. Int\xE9ntalo de nuevo en un momento.",
|
|
// time
|
|
"time.never": "nunca",
|
|
"time.now": "justo ahora",
|
|
"time.min": "hace {n} min",
|
|
"time.hour": "hace {n} h",
|
|
"time.day": "hace {n} d",
|
|
// settings
|
|
"s.wizard": "Asistente de configuraci\xF3n",
|
|
"s.wizardDesc": "Con\xE9ctate, elige o crea un repositorio y realiza la primera sincronizaci\xF3n paso a paso.",
|
|
"s.wizardBtn": "Ejecutar asistente de configuraci\xF3n",
|
|
"s.hConnection": "Conexi\xF3n",
|
|
"s.host": "Servidor Git",
|
|
"s.hostDesc": "La compatibilidad con servidores distintos de GitHub est\xE1 en beta.",
|
|
"s.beta": "beta",
|
|
"s.token": "Token de acceso",
|
|
"s.tokenDesc": "Se guarda de forma segura solo en este dispositivo (almacenamiento de secretos de Obsidian), nunca en la configuraci\xF3n sincronizada. Introd\xFAcelo una vez por dispositivo.",
|
|
"s.tokenPlaceholder": "Pega tu token",
|
|
"s.owner": "Propietario",
|
|
"s.ownerDesc": "Usuario u organizaci\xF3n propietaria del repositorio.",
|
|
"s.ownerDescGitlab": "Ruta del usuario o grupo (se permiten subgrupos, por ejemplo team/notes).",
|
|
"s.ownerDescBitbucket": "Espacio de trabajo propietario del repositorio.",
|
|
"s.ownerPlaceholder": "Nombre de usuario",
|
|
"s.repo": "Repositorio",
|
|
"s.repoDesc": "Usa un repositorio privado.",
|
|
"s.repoPlaceholder": "Nombre del repositorio",
|
|
"s.branch": "Rama",
|
|
"s.check": "Comprobar configuraci\xF3n",
|
|
"s.checkDesc": "Prueba el token y el repositorio, o crea un nuevo repositorio privado.",
|
|
"s.test": "Probar conexi\xF3n",
|
|
"s.testNoRepo": "Sesi\xF3n iniciada como {user}. Ahora indica el nombre del repositorio.",
|
|
"s.testNotFound": "Sesi\xF3n iniciada como {user}, pero {repo} no se encontr\xF3 o no es accesible.",
|
|
"s.testOkPrivate": "OK: {repo} (privado).",
|
|
"s.testOkPublic": "OK: {repo}, pero es P\xDABLICO. Considera hacerlo privado.",
|
|
"s.testFailed": "Error de conexi\xF3n: {error}",
|
|
"s.createRepo": "Crear repositorio privado",
|
|
"s.created": "Se cre\xF3 {url}",
|
|
"s.createFailed": "No se pudo crear el repositorio: {error}. Algunos tokens necesitan permisos adicionales para esto; tambi\xE9n puedes crearlo en el sitio web del servidor.",
|
|
"s.apiBase": "URL base de la API",
|
|
"s.apiBaseDesc": "{hint}. Se guarda solo en este dispositivo.",
|
|
"s.device": "Nombre del dispositivo",
|
|
"s.deviceDesc": "Se muestra en los mensajes de commit y en los nombres de las copias en conflicto. Se guarda solo en este dispositivo.",
|
|
"s.hBehaviour": "Comportamiento de sincronizaci\xF3n",
|
|
"s.mode": "Modo",
|
|
"s.modeDesc": "Sincronizaci\xF3n bidireccional, solo respaldo (sube, nunca modifica los archivos locales) o solo descarga (copia de solo lectura).",
|
|
"s.modeSync": "Sincronizaci\xF3n bidireccional",
|
|
"s.modePush": "Solo respaldo (push)",
|
|
"s.modePull": "Solo descarga (espejo)",
|
|
"s.onStartup": "Sincronizar al iniciar",
|
|
"s.onStartupDesc": "Descarga y sube cambios al abrir la b\xF3veda.",
|
|
"s.onChange": "Sincronizar tras editar",
|
|
"s.onChangeDesc": "Sincroniza poco despu\xE9s de que dejes de editar.",
|
|
"s.delay": "Retraso tras editar (segundos)",
|
|
"s.delayDesc": "Cu\xE1nto esperar tras la \xFAltima edici\xF3n antes de sincronizar.",
|
|
"s.interval": "Sincronizaci\xF3n peri\xF3dica (minutos)",
|
|
"s.intervalDesc": "Pon 0 para desactivarla. Tambi\xE9n detecta cambios en la configuraci\xF3n y en los archivos de configuraci\xF3n.",
|
|
"s.onResume": "Sincronizar al volver a la app",
|
|
"s.onResumeDesc": "En el m\xF3vil, sincroniza cuando vuelves a Obsidian.",
|
|
"s.onBackground": "Sincronizar al pasar la app a segundo plano",
|
|
"s.onBackgroundDesc": "Intenta subir los cambios cuando sales de Obsidian (m\xF3vil) u ocultas la ventana.",
|
|
"s.hScope": "Qu\xE9 sincronizar",
|
|
"s.configDir": "Sincronizar carpeta de configuraci\xF3n ({dir})",
|
|
"s.configDirDesc": "Temas, fragmentos CSS, atajos de teclado, complementos y su configuraci\xF3n. El dise\xF1o del espacio de trabajo se excluye por defecto.",
|
|
"s.exclude": "Patrones de exclusi\xF3n",
|
|
"s.excludeDesc": "Estilo gitignore, uno por l\xEDnea. {config} significa la carpeta de configuraci\xF3n. Los archivos excluidos nunca se suben, descargan ni eliminan.",
|
|
"s.maxSize": "Tama\xF1o m\xE1ximo de archivo en megabytes",
|
|
"s.maxSizeDesc": "Los archivos m\xE1s grandes se omiten (como m\xE1ximo 2000 megabytes). En GitHub sin almacenamiento de archivos grandes el l\xEDmite es de 100 megabytes, lo m\xE1ximo que acepta GitHub.",
|
|
"s.delayNow": "Ahora: {n} segundos.",
|
|
"s.resetConfirm": "La pr\xF3xima sincronizaci\xF3n compara cada archivo con el repositorio. No se borra nada; los archivos que difieren se conservan en ambas versiones, as\xED que puede haber copias de conflicto que ordenar.",
|
|
"m.restoreOverBody": "{path} en este dispositivo difiere de la versi\xF3n del {date}. Restaurar reemplaza su contenido actual. Usa \xABRestaurar como copia\xBB para conservar ambos.",
|
|
"s.lfs": "Umbral de almacenamiento de archivos grandes en megabytes",
|
|
"s.lfsDesc": "Los archivos de al menos este tama\xF1o se guardan en el almacenamiento de archivos grandes del servidor en lugar del repositorio, lo que mantiene el repositorio peque\xF1o y r\xE1pido. Pon 0 para desactivarlo. Revisa la cuota de almacenamiento de tu servidor, ya que los planes gratuitos son limitados. Cuando est\xE1 activado, el tama\xF1o m\xE1ximo de archivo de arriba puede llegar a 2000 megabytes.",
|
|
"s.hEncryption": "Cifrado de extremo a extremo",
|
|
"s.encOn": "El cifrado est\xE1 activado (desbloqueado en este dispositivo)",
|
|
"s.encOnDesc": "Las notas, los adjuntos y los nombres de archivo se cifran antes de subirse. Los dem\xE1s dispositivos necesitan la misma frase de contrase\xF1a.",
|
|
"s.encRemovePlain": "Eliminar copias sin cifrar\u2026",
|
|
"s.encLock": "Bloquear este dispositivo",
|
|
"s.encOff": "Cifra tu b\xF3veda",
|
|
"s.encOffDesc": "Establece una frase de contrase\xF1a para que el servidor del repositorio solo vea datos ilegibles. Usa tambi\xE9n esta opci\xF3n para desbloquear un repositorio que otro dispositivo ya cifr\xF3.",
|
|
"s.encTurnOn": "Activar o desbloquear\u2026",
|
|
"s.hShared": "Carpetas compartidas",
|
|
"s.sharedIntro": "Sincroniza una carpeta con su propio repositorio (por ejemplo, una carpeta de equipo) mientras el resto de la b\xF3veda sigue siendo privada.",
|
|
"s.sharedRowDesc": "{host}, rama {branch}",
|
|
"s.sharedRemove": "Dejar de sincronizar esta carpeta por separado",
|
|
"s.sharedAdd": "A\xF1adir una carpeta compartida",
|
|
"s.sharedAddBtn": "A\xF1adir carpeta compartida\u2026",
|
|
"s.hDevice": "Solo este dispositivo",
|
|
"s.deviceIntro": "Estas opciones se guardan en este dispositivo y no se sincronizan, as\xED que un tel\xE9fono puede sincronizar menos que un port\xE1til. Los archivos fuera del alcance de este dispositivo nunca se suben, descargan ni eliminan desde aqu\xED, y permanecen a salvo en el repositorio.",
|
|
"s.include": "Sincronizar solo estas carpetas",
|
|
"s.includeDesc": "Una carpeta o patr\xF3n por l\xEDnea, por ejemplo daily/ o projects/. D\xE9jalo vac\xEDo para sincronizar todo.",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "Excluir tambi\xE9n en este dispositivo",
|
|
"s.deviceExcludeDesc": "Estilo gitignore, uno por l\xEDnea, por ejemplo attachments/ o *.mp4",
|
|
"s.maxDownload": "No descargar archivos de m\xE1s de (megabytes)",
|
|
"s.maxDownloadDesc": "Los adjuntos grandes se quedan en el repositorio y se pueden descargar bajo demanda. 0 = sin l\xEDmite. En tel\xE9fonos el valor por defecto es 25.",
|
|
"s.onDemand": "Archivos disponibles bajo demanda",
|
|
"s.onDemandDesc": "{n} archivo(s) grande(s) est\xE1n en el repositorio pero no en este dispositivo. {pinned} archivo(s) se descargaron bajo demanda y se mantienen sincronizados.",
|
|
"s.onDemandBrowse": "Explorar y descargar\u2026",
|
|
"s.onDemandForget": "Olvidar lista bajo demanda",
|
|
"s.onDemandForgotten": 'Lista bajo demanda borrada. Usa "Liberar espacio" para eliminar esas copias locales.',
|
|
"s.freeSpace": "Liberar espacio",
|
|
"s.freeSpaceDesc": "Elimina las copias locales de archivos que este dispositivo no sincroniza, pero solo cuando son id\xE9nticas a la copia del repositorio.",
|
|
"s.freeSpaceBtn": "Liberar espacio\u2026",
|
|
"s.hConflicts": "Conflictos y seguridad",
|
|
"s.strategy": "Cuando un archivo cambi\xF3 en ambos lados",
|
|
"s.strategyAuto": "Fusionar autom\xE1ticamente (recomendado)",
|
|
"s.strategyMarkers": "Fusionar y marcar los solapamientos con marcadores <<<<<<<",
|
|
"s.strategyBoth": "Conservar ambos (guardar mi versi\xF3n como copia)",
|
|
"s.strategyAsk": "Preguntarme cada vez",
|
|
"s.strategyLocal": "Gana este dispositivo",
|
|
"s.strategyRemote": "Gana {host}",
|
|
"s.review": "Revisar antes de sincronizar manualmente",
|
|
"s.reviewDesc": "Cuando inicias una sincronizaci\xF3n manualmente, primero muestra cada cambio pendiente con diferencias y casillas. No afecta a las sincronizaciones autom\xE1ticas.",
|
|
"s.eol": "Ignorar cambios solo de fin de l\xEDnea",
|
|
"s.eolDesc": "Un archivo cuyo \xFAnico cambio es el estilo de fin de l\xEDnea se trata como sin cambios, para que los editores de otros sistemas operativos no provoquen subidas ni conflictos innecesarios.",
|
|
"s.guard": "Protecci\xF3n contra eliminaciones",
|
|
"s.guardDesc": "Preguntar antes de que una sincronizaci\xF3n elimine muchos archivos a la vez.",
|
|
"s.guardThreshold": "Umbral de protecci\xF3n contra eliminaciones",
|
|
"s.guardThresholdDesc": "Preguntar al eliminar m\xE1s de este n\xFAmero de archivos (izquierda) o este porcentaje de la b\xF3veda (derecha), lo que sea mayor.",
|
|
"s.hBackup": "Respaldo",
|
|
"s.snapshot": "Instant\xE1nea diaria",
|
|
"s.snapshotDesc": "Una vez al d\xEDa, etiqueta el estado actual en el repositorio con una instant\xE1nea fechada para que siempre puedas volver a \xE9l.",
|
|
"s.hAdvanced": "Avanzado",
|
|
"s.commitMsg": "Mensaje de commit",
|
|
"s.commitMsgDesc": "Variables: {{device}}, {{summary}}, {{date}}, {{count}}, {{files}}, {{trigger}}, {{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "Reescaneo completo cada (minutos)",
|
|
"s.fullScanDesc": "Entre reescaneos completos solo se vuelven a comprobar los archivos que Obsidian marca como editados, y la carpeta de configuraci\xF3n se lee del disco como m\xE1ximo cada 5 minutos. Mantiene los tel\xE9fonos r\xE1pidos.",
|
|
"s.notices": "Notificaciones",
|
|
"s.noticesAll": "Cada sincronizaci\xF3n",
|
|
"s.noticesErrors": "Solo errores y conflictos",
|
|
"s.noticesNone": "Ninguna",
|
|
"s.resetState": "Restablecer estado de sincronizaci\xF3n",
|
|
"s.resetStateDesc": "Olvida lo \xFAltimo que se sincroniz\xF3 en este dispositivo. La pr\xF3xima sincronizaci\xF3n lo compara todo y nunca elimina; los archivos que difieran se conservan en ambas versiones.",
|
|
"s.resetBtn": "Restablecer",
|
|
"s.resetDone": "Estado de sincronizaci\xF3n restablecido.",
|
|
// setup wizard
|
|
"w.stepConnect": "Conectar",
|
|
"w.stepRepo": "Repositorio",
|
|
"w.stepVault": "Esta b\xF3veda",
|
|
"w.stepSync": "Primera sincronizaci\xF3n",
|
|
"w.title": "Configurar la sincronizaci\xF3n de la b\xF3veda",
|
|
"w.sub": "Tus notas se guardan en un repositorio Git privado que te pertenece, en GitHub, GitLab, Codeberg, Gitea, Forgejo o Bitbucket. Funciona en escritorio y m\xF3vil; no hay que instalar nada.",
|
|
"w.where": "\xBFD\xF3nde quieres guardar tu b\xF3veda?",
|
|
"w.apiUrl": "URL de la API del servidor",
|
|
"w.deviceName": "Pon nombre a este dispositivo",
|
|
"w.deviceNameDesc": "Se muestra en el historial y en las copias en conflicto.",
|
|
"w.signedIn": "Sesi\xF3n iniciada como {user}",
|
|
"w.tokenFailed": "Ese token no funcion\xF3: {error}",
|
|
"w.alreadyConnected": "Ya conectado en este dispositivo",
|
|
"w.continue": "Continuar",
|
|
"w.connectWith": "Conectar con un token de {host}",
|
|
"w.tokenStored": "El token se guarda de forma segura solo en este dispositivo, nunca en la configuraci\xF3n sincronizada.",
|
|
"w.token": "Token",
|
|
"w.pasteFirst": "Primero pega un token.",
|
|
"w.repoTitle": "Elige un repositorio",
|
|
"w.repoSub": "Sesi\xF3n iniciada como {user}. Elige el repositorio para esta b\xF3veda o crea uno nuevo privado.",
|
|
"w.createNew": "Crear un nuevo repositorio privado",
|
|
"w.create": "Crear",
|
|
"w.createFailed": "No se pudo crear el repositorio: {error}. Algunos tokens necesitan permisos adicionales para esto; tambi\xE9n puedes crearlo en el sitio web del servidor y elegirlo abajo.",
|
|
"w.useExisting": "O usa un repositorio existente",
|
|
"w.filter": "Filtrar\u2026",
|
|
"w.loadingRepos": "Cargando tus repositorios\u2026",
|
|
"w.noMatch": "Ning\xFAn repositorio coincide.",
|
|
"w.private": "privado",
|
|
"w.public": "P\xDABLICO",
|
|
"w.publicTitle": "Repositorio p\xFAblico",
|
|
"w.publicBody": "{repo} es p\xFAblico: cualquiera en internet podr\xEDa leer tus notas. Usa un repositorio privado a menos que quieras publicarlas.",
|
|
"w.useAnyway": "Usarlo de todos modos",
|
|
"w.listFailed": "No se pudieron listar los repositorios: {error}",
|
|
"w.back": "Atr\xE1s",
|
|
"w.vaultTitle": "Esta b\xF3veda y el repositorio",
|
|
"w.looking": "Revisando ambos lados\u2026",
|
|
"w.readFailed": "No se pudo leer el repositorio: {error}",
|
|
"w.counts": "Esta b\xF3veda: {local} archivo(s) \xB7 Repositorio: {remote} archivo(s)",
|
|
"w.optUpload": "Subir esta b\xF3veda",
|
|
"w.optUploadDesc": "Este es el primer dispositivo. Todo lo que hay aqu\xED se copia al repositorio.",
|
|
"w.optDownload": "Descargar la b\xF3veda del repositorio",
|
|
"w.optDownloadDesc": "Este dispositivo es nuevo. Los archivos del repositorio reemplazan los archivos iniciales que haya aqu\xED.",
|
|
"w.optMerge": "Fusionar; conservar ambos si son diferentes",
|
|
"w.optMergeDesc": "No se sobrescribe nada; los archivos que difieren se conservan uno junto al otro.",
|
|
"w.optMergeSafe": "Fusionar; conservar ambos si son diferentes (lo m\xE1s seguro)",
|
|
"w.optMergeSafeDesc": "Los archivos que solo est\xE1n en un lado se copian al otro. Los archivos que difieren se conservan uno junto al otro.",
|
|
"w.optRemoteWins": "Fusionar; gana el repositorio si son diferentes",
|
|
"w.optRemoteWinsDesc": "Usa la versi\xF3n del repositorio cuando un archivo existe en ambos lados. La versi\xF3n de este dispositivo va a la papelera.",
|
|
"w.optLocalWins": "Fusionar; gana este dispositivo si son diferentes",
|
|
"w.optLocalWinsDesc": "Usa la versi\xF3n de este dispositivo cuando un archivo existe en ambos lados.",
|
|
"w.neverDeletes": "En la primera sincronizaci\xF3n nunca se elimina nada.",
|
|
"w.encrypted": "\u{1F512} Este repositorio est\xE1 cifrado de extremo a extremo. Desbloqu\xE9alo para continuar.",
|
|
"w.encryptOpt": "Cifrar de extremo a extremo (opcional)",
|
|
"w.encryptOptDesc": "El servidor del repositorio solo ve datos ilegibles. Todos los dispositivos necesitar\xE1n esta frase de contrase\xF1a, y no se puede recuperar.",
|
|
"w.passphrase": "Frase de contrase\xF1a",
|
|
"w.encOnDevice": "\u{1F512} El cifrado de extremo a extremo est\xE1 activado en este dispositivo.",
|
|
"w.alsoConfig": "Sincronizar tambi\xE9n configuraci\xF3n, temas y complementos ({dir})",
|
|
"w.start": "Iniciar primera sincronizaci\xF3n",
|
|
"w.unlockFirst": "Primero desbloquea el repositorio cifrado.",
|
|
"w.saveTitle": "Guarda tu frase de contrase\xF1a",
|
|
"w.saveBody": "\xBFHas guardado esta frase de contrase\xF1a en un lugar seguro? No hay forma de recuperarla y, sin ella, la copia del repositorio no se puede leer.",
|
|
"w.saved": "La he guardado",
|
|
"w.syncTitle": "Primera sincronizaci\xF3n",
|
|
"w.syncSub": "Esto puede tardar un poco con una b\xF3veda grande. Puedes cerrar esta ventana; la sincronizaci\xF3n contin\xFAa en segundo plano.",
|
|
"w.starting": "Iniciando\u2026",
|
|
"w.doneTitle": "Todo listo",
|
|
"w.tip1": "La sincronizaci\xF3n se ejecuta al iniciar, tras editar y peri\xF3dicamente. El bot\xF3n de la cinta sincroniza al momento.",
|
|
"w.tip2": "El panel de estado de sincronizaci\xF3n (icono de actividad) muestra lo pendiente y todo lo que requiere atenci\xF3n.",
|
|
"w.tip3": "En cada uno de los dem\xE1s dispositivos: instala el complemento y ejecuta este asistente con el mismo repositorio.",
|
|
"w.openStatus": "Abrir estado de sincronizaci\xF3n",
|
|
"w.done": "Listo",
|
|
// encryption and shared folders
|
|
"e.passShort": "Usa al menos 12 caracteres. Unas cuantas palabras al azar funcionan bien.",
|
|
"e.passOk": "Aceptable. Cuanto m\xE1s larga, m\xE1s segura: 16+ caracteres o 4+ palabras al azar.",
|
|
"e.passStrong": "Segura.",
|
|
"e.checking": "Comprobando el repositorio\u2026",
|
|
"e.unlockTitle": "Desbloquear b\xF3veda cifrada",
|
|
"e.upgrade": "Actualizar el cifrado\u2026",
|
|
"e.upgradeDesc": "Este repositorio usa el formato antiguo: el contenido cifrado de un archivo no est\xE1 ligado a su nombre, as\xED que alguien con acceso de escritura podr\xEDa intercambiar dos archivos sin que se note. Al actualizar, cada archivo se vuelve a cifrar una vez, con la misma frase de contrase\xF1a, y solo se abre con su propio nombre.",
|
|
"e.upgradeTitle": "Actualizar el cifrado de extremo a extremo",
|
|
"e.upgradeBody": "Este dispositivo sincroniza primero; despu\xE9s, cada archivo cifrado del repositorio se vuelve a cifrar y se sube de nuevo en un solo commit (misma frase de contrase\xF1a). Los dem\xE1s dispositivos cambian en su pr\xF3xima sincronizaci\xF3n. Los dispositivos con versiones del plugin anteriores a la 1.8.0 no pueden leer el nuevo formato y dejan de sincronizar hasta que se actualicen.",
|
|
"e.upgradeConfirm": "Actualizar",
|
|
"e.upgraded": "Cifrado actualizado: {n} archivo(s) vuelto(s) a cifrar.",
|
|
"e.upgradeFailed": "No se pudo actualizar el cifrado: {error}",
|
|
"e.unlockBody": "Este repositorio est\xE1 cifrado de extremo a extremo. Introduce su frase de contrase\xF1a para sincronizar en este dispositivo. La clave se guarda en el almacenamiento seguro de este dispositivo.",
|
|
"e.unlocking": "Desbloqueando\u2026 (tarda un segundo a prop\xF3sito)",
|
|
"e.unlocked": "B\xF3veda cifrada desbloqueada en este dispositivo.",
|
|
"e.unlock": "Desbloquear",
|
|
"e.enableTitle": "Activar el cifrado de extremo a extremo",
|
|
"e.point1": "Las notas, los adjuntos y los nombres de archivo se cifran en este dispositivo antes de subirse. El servidor del repositorio solo almacena datos ilegibles.",
|
|
"e.point2": "Todos los dispositivos necesitan la misma frase de contrase\xF1a. No hay forma de recuperarla: si la olvidas, la copia del repositorio no se podr\xE1 leer.",
|
|
"e.point3": "Si este repositorio ya tiene notas sin cifrar, estas permanecen en su historial. Para una privacidad total, usa un repositorio nuevo y vac\xEDo.",
|
|
"e.point4": "Ya no podr\xE1s explorar las notas en el sitio web del servidor; usa en su lugar el historial y la l\xEDnea de tiempo del complemento.",
|
|
"e.repeat": "Repite la frase de contrase\xF1a",
|
|
"e.ack": "He guardado la frase de contrase\xF1a en un lugar seguro, por ejemplo en un gestor de contrase\xF1as",
|
|
"e.turnOn": "Activar cifrado",
|
|
"e.mismatch": "Las frases de contrase\xF1a no coinciden.",
|
|
"e.confirmSaved": "Confirma que has guardado la frase de contrase\xF1a.",
|
|
"e.settingUp": "Configurando\u2026 (tarda un segundo a prop\xF3sito)",
|
|
"e.enabled": "El cifrado est\xE1 activado. La pr\xF3xima sincronizaci\xF3n subir\xE1 todo cifrado.",
|
|
"sh.intro": "Sincroniza una carpeta con su propio repositorio, por ejemplo una carpeta de equipo, mientras el resto de tu b\xF3veda permanece en tu repositorio privado. La carpeta corresponde a la ra\xEDz de ese repositorio o a una carpeta dentro de \xE9l.",
|
|
"sh.folder": "Carpeta",
|
|
"sh.folderPlaceholder": "Trabajo",
|
|
"sh.ownerDesc": "Usuario, organizaci\xF3n, grupo o espacio de trabajo del repositorio compartido.",
|
|
"sh.token": "Token (opcional)",
|
|
"sh.tokenDesc": "D\xE9jalo vac\xEDo para usar tu token principal (solo en el mismo servidor). Se guarda de forma segura en este dispositivo.",
|
|
"sh.note": "Los archivos que ya est\xE1n en esta carpeta en tu repositorio principal se quedan all\xED (en su historial), pero dejan de sincronizarse con \xE9l. El cifrado no se aplica a las carpetas compartidas, porque los colaboradores necesitan leerlas.",
|
|
"sh.add": "A\xF1adir",
|
|
"sh.required": "La carpeta, el propietario y el repositorio son obligatorios.",
|
|
"sh.overlap": "Esa carpeta se solapa con una carpeta compartida existente.",
|
|
"sh.checking": "Comprobando el acceso\u2026",
|
|
"sh.noAccess": "No se puede acceder a {repo}: {error}",
|
|
"sh.added": "Carpeta compartida a\xF1adida: {folder} \u2194 {repo}",
|
|
// dialogs
|
|
"u.andMore": "\u2026y {n} m\xE1s",
|
|
"u.binaryDiff": "Archivo binario: sin diferencias de texto. {a}: {as} bytes \xB7 {b}: {bs} bytes.",
|
|
"u.loadFailed": "No se pudo cargar: {error}",
|
|
"u.conflictTitle": "Conflicto: {path}",
|
|
"u.repository": "Repositorio",
|
|
"u.conflictBody": "Este archivo cambi\xF3 en este dispositivo y en el repositorio ({host}) desde la \xFAltima sincronizaci\xF3n.",
|
|
"u.pickHint": "Para cada cambio, elige qu\xE9 versi\xF3n conservar. Si eliges ambas, primero van las l\xEDneas de este dispositivo.",
|
|
"u.thisDevice": "Este dispositivo",
|
|
"u.chooseChanges": "Elegir cambios",
|
|
"u.fullDiff": "Diferencias completas",
|
|
"u.apply": "Aplicar mis elecciones",
|
|
"u.binaryConflict": "Archivo binario. Este dispositivo: {a} bytes \xB7 {host}: {b} bytes.",
|
|
"u.wholeFile": "O conservar un archivo completo",
|
|
"u.keepBoth": "Conservar ambos archivos",
|
|
"u.markers": "Fusionar con marcadores",
|
|
"u.guardTitle": "Se detect\xF3 una eliminaci\xF3n masiva",
|
|
"u.guardBody": "Esta sincronizaci\xF3n eliminar\xEDa {n} archivos. Confirma que es intencionado.",
|
|
"u.guardLocal": "Eliminar en este dispositivo (se mueven a la papelera): {n}",
|
|
"u.guardRemote": "Eliminar en el repositorio (se conservan en el historial): {n}",
|
|
"u.cancelSync": "Cancelar sincronizaci\xF3n",
|
|
"u.skipDeletes": "Sincronizar sin eliminar",
|
|
"u.deleteThem": "Eliminarlos",
|
|
"u.gDownload": "Descargar del repositorio",
|
|
"u.gUpload": "Subir al repositorio",
|
|
"u.gMoveLocal": "Renombrado en otro lugar (renombrar aqu\xED)",
|
|
"u.gAdopt": "Renombrado aqu\xED, editado en otro lugar",
|
|
"u.gRenameMerge": "Renombrado y editado en ambos lados (fusionar)",
|
|
"u.gConflict": "Cambiado en ambos lados",
|
|
"u.gDeleteLocal": "Eliminar en este dispositivo",
|
|
"u.gDeleteRemote": "Eliminar en el repositorio",
|
|
"u.reviewTitle": "Revisar cambios",
|
|
"u.upToDate": "Todo est\xE1 al d\xEDa.",
|
|
"u.reviewHint": "Desmarca lo que a\xFAn no quieras sincronizar. Los archivos desmarcados no se tocan en ning\xFAn lado hasta una sincronizaci\xF3n posterior.",
|
|
"u.cancel": "Cancelar",
|
|
"u.syncAll": "Sincronizar todo",
|
|
"u.syncSelected": "Sincronizar {n} seleccionados",
|
|
"u.logTitle": "Registro de sincronizaci\xF3n",
|
|
"u.noActivity": "A\xFAn no hay actividad de sincronizaci\xF3n.",
|
|
"u.loading": "Cargando desde el repositorio\u2026",
|
|
"u.nothingFound": "No se encontr\xF3 nada.",
|
|
"u.failed": "Error: {error}",
|
|
"u.currentFile": "Archivo actual",
|
|
"u.thisVersion": "Esta versi\xF3n",
|
|
"u.compareCurrent": "Comparar con la actual",
|
|
"u.fullVersion": "Versi\xF3n completa",
|
|
"u.restoreCopy": "Restaurar como copia",
|
|
"u.restoreThis": "Restaurar esta versi\xF3n",
|
|
"u.pickFolder": "Elige una carpeta para restaurar",
|
|
"u.pickRemoteOnly": "Descargar un archivo que no est\xE1 en este dispositivo",
|
|
"u.timelineTitle": "L\xEDnea de tiempo",
|
|
"u.timelineHint": "Cada sincronizaci\xF3n es un punto al que puedes volver. Restaurar a\xF1ade un nuevo commit encima, as\xED que el estado actual tambi\xE9n queda en el historial.",
|
|
"u.browseFiles": "Explorar archivos",
|
|
"u.restoreFolder": "Restaurar una carpeta\u2026",
|
|
"u.restoreVault": "Restaurar toda la b\xF3veda",
|
|
"d.unified": "Unificada",
|
|
"d.split": "Lado a lado",
|
|
"d.same": "Sin diferencias.",
|
|
"d.unchanged": "\u22EF {n} l\xEDnea(s) sin cambios",
|
|
"d.both": "Ambos",
|
|
"d.change": "Cambio {n}",
|
|
"d.nothing": "(nada)",
|
|
"d.identical": "Las dos versiones son id\xE9nticas.",
|
|
// plugin notices and dialogs
|
|
"m.embedMissing": "{path} ({mb} MB) no est\xE1 descargado en este dispositivo.",
|
|
"m.download": "Descargar",
|
|
"m.downloadingOne": "Descargando {path}\u2026",
|
|
"m.downloadingMany": "Descargando {n} archivos\u2026",
|
|
"m.allLocal": "Todos los archivos est\xE1n en este dispositivo.",
|
|
"m.plainTitle": "Eliminar copias sin cifrar",
|
|
"m.plainBody": "Elimina estos archivos sin cifrar del repositorio en un solo commit. Tus notas est\xE1n a salvo: sus copias cifradas ya se subieron. Nota: las versiones anteriores permanecen en el historial del repositorio.",
|
|
"m.deleteFrom": "Eliminar de {host}",
|
|
"m.remove": "Eliminar",
|
|
"m.plainRemoved": "Se eliminaron {n} archivo(s) sin cifrar del repositorio.",
|
|
"m.plainNone": "No se encontraron archivos sin cifrar.",
|
|
"m.removeFailed": "No se pudieron eliminar los archivos: {error}",
|
|
"m.firstFailed": "La primera sincronizaci\xF3n fall\xF3: {error}. Puedes reintentarlo desde el panel de estado de sincronizaci\xF3n.",
|
|
"m.syncFinished": "Sincronizaci\xF3n terminada.",
|
|
"m.alreadyInSync": "Todo ya estaba sincronizado.",
|
|
"m.nDownloaded": "{n} descargados",
|
|
"m.nUploaded": "{n} subidos",
|
|
"m.nBoth": "{n} conservados en ambas versiones",
|
|
"m.nSkipped": "{n} omitidos (ver panel de estado)",
|
|
"m.firstDone": "Primera sincronizaci\xF3n completada: {summary}.",
|
|
"m.noChanges": "sin cambios",
|
|
"m.freeBody": "Elimina {n} archivo(s) local(es) ({mb} MB) que este dispositivo no sincroniza (fuera de sus carpetas o por encima de su l\xEDmite de descarga). Cada uno es id\xE9ntico a la copia del repositorio, que se conserva. Se mueven a la papelera.",
|
|
"m.removeHere": "Eliminar de este dispositivo",
|
|
"m.freeNothing": "No hay nada que eliminar: ning\xFAn archivo local fuera del alcance de este dispositivo est\xE1 a salvo en el repositorio.",
|
|
"m.freed": "Se liberaron {mb} MB.",
|
|
"m.freeFailed": "No se pudo liberar espacio: {error}",
|
|
"m.needToken": "A\xF1ade un token de acceso en Configuraci\xF3n \u2192 Vault Sync for Git.",
|
|
"m.needRepo": "Indica el propietario y el nombre del repositorio en la configuraci\xF3n del complemento.",
|
|
"m.snapshotOk": "Instant\xE1nea creada: {tag}",
|
|
"m.snapshotFailed": "Error al crear la instant\xE1nea: {error}",
|
|
"m.reviewFailed": "No se pudo preparar la revisi\xF3n: {error}",
|
|
"m.filesAt": "Archivos en {sha} ({date})",
|
|
"m.bytes": "{n} bytes",
|
|
"m.whatFolder": 'la carpeta "{folder}"',
|
|
"m.whatVault": "toda la b\xF3veda",
|
|
"m.restoring": "Restaurando {what}\u2026",
|
|
"m.restoreTitle": "Restaurar {what}",
|
|
"m.restoreBody": "Devuelve {what} al estado que ten\xEDa el {date} ({sha}). Se a\xF1ade como un nuevo commit, as\xED que la versi\xF3n de hoy queda en el historial y puedes deshacerlo de la misma forma.",
|
|
"m.restoredOlder": "Restaurado a la versi\xF3n anterior",
|
|
"m.broughtBack": "Recuperado (eliminado desde entonces)",
|
|
"m.removedSince": "Eliminado (creado desde entonces)",
|
|
"m.restore": "Restaurar",
|
|
"m.restored": "Se restaur\xF3 {what}: {n} archivo(s) cambiado(s).",
|
|
"m.restoreSame": "El estado de {what} ya coincide con ese momento.",
|
|
"m.restoreFailed": "Error al restaurar: {error}",
|
|
"m.comparing": "Comparando con el repositorio\u2026",
|
|
"m.resetBody": "Descarta los cambios no sincronizados de este dispositivo y convi\xE9rtelo en una copia exacta del repositorio. Los archivos reemplazados y eliminados se mueven primero a la papelera, as\xED que a\xFAn puedes recuperarlos.",
|
|
"m.replacedWith": "Reemplazado por la versi\xF3n de {host}",
|
|
"m.downloaded": "Descargado",
|
|
"m.removedNotInRepo": "Eliminado (no est\xE1 en el repositorio)",
|
|
"m.matchRepo": "Igualar con el repositorio",
|
|
"m.matched": "Este dispositivo ahora coincide con el repositorio ({n} archivo(s) cambiado(s)).",
|
|
"m.alreadyMatches": "Este dispositivo ya coincide con el repositorio.",
|
|
"m.resetFailed": "Error al restablecer: {error}",
|
|
"m.repoNotFound": "No se encontr\xF3 el repositorio. Revisa la configuraci\xF3n de conexi\xF3n.",
|
|
"m.history": "Historial: {path}",
|
|
"m.notInVersion": "El archivo no exist\xEDa en esa versi\xF3n.",
|
|
"m.restoredFile": "{path} restaurado. Se subir\xE1 en la pr\xF3xima sincronizaci\xF3n.",
|
|
"m.versionFailed": "No se pudo cargar la versi\xF3n: {error}",
|
|
"m.recentlyDeleted": "Archivos eliminados recientemente",
|
|
"m.deletedOn": "Eliminado {date} \xB7 {msg}",
|
|
// status panel and hosts
|
|
"h.notConnected": "A\xFAn no conectado",
|
|
"h.notConnectedHint": "A\xF1ade un token de acceso de {host} en la configuraci\xF3n del complemento.",
|
|
"h.badToken": "{host} no acept\xF3 tu token",
|
|
"h.badTokenHint": "Puede que haya caducado o se haya revocado. Crea un token nuevo y p\xE9galo en la configuraci\xF3n.",
|
|
"h.repoMissing": "Repositorio no encontrado",
|
|
"h.repoMissingHint": "Revisa el propietario y el nombre del repositorio, y que el token tenga acceso a este repositorio.",
|
|
"h.rateLimit": "Se alcanz\xF3 el l\xEDmite de solicitudes de {host}",
|
|
"h.rateLimitHint": "{host} permite un n\xFAmero limitado de solicitudes por hora. La sincronizaci\xF3n volver\xE1 a funcionar en breve.",
|
|
"h.busy": "{host} estaba ocupado",
|
|
"h.busyHint": "Otro dispositivo estaba sincronizando en ese mismo momento. Int\xE9ntalo de nuevo.",
|
|
"h.offline": "No se puede conectar con {host}",
|
|
"h.offlineHint": "Revisa tu conexi\xF3n a internet. La sincronizaci\xF3n se reintentar\xE1 autom\xE1ticamente.",
|
|
"h.encrypted": "Esta b\xF3veda est\xE1 cifrada",
|
|
"h.encryptedHint": "Introduce la frase de contrase\xF1a para sincronizar en este dispositivo.",
|
|
"h.otherKey": "Clave de cifrado diferente",
|
|
"h.otherKeyHint": "El repositorio se cifr\xF3 con otra frase de contrase\xF1a. Desbloqu\xE9alo de nuevo.",
|
|
"h.pullOnly": "No disponible en modo solo descarga",
|
|
"h.pullOnlyHint": "Cambia el modo en la configuraci\xF3n para subir cambios.",
|
|
"h.branchMissing": "Rama no encontrada",
|
|
"h.failed": "Error de sincronizaci\xF3n",
|
|
"h.onDemand": "No descargados en este dispositivo ({n})",
|
|
"h.onDemandHint": "{mb} MB de archivos grandes se quedan en el repositorio hasta que los necesites.",
|
|
"h.budget": "Cuota de la API: {budget}",
|
|
"h.budgetValue": "Quedan {left}/{limit} solicitudes, se restablece {time}",
|
|
"h.unknown": "desconocido",
|
|
"h.checkFailed": "No se pudo comprobar {host}: {error}",
|
|
"h.deviceScope": "Este dispositivo sincroniza {what}.",
|
|
"h.only": "solo {list}",
|
|
"h.excluding": "excepto {list}",
|
|
"h.noDownloadsOver": "sin descargas de m\xE1s de {mb} MB",
|
|
"h.notOnDevice": "no se sincroniza en este dispositivo",
|
|
"hs.ghApi": "C\xE1mbiala solo para GitHub Enterprise Server, por ejemplo https://github.example.com/api/v3",
|
|
"hs.glApi": "gitlab.com o tu servidor, por ejemplo https://gitlab.example.com/api/v4",
|
|
"hs.gtApi": "La API de tu servidor, por ejemplo https://codeberg.org/api/v1 o https://git.example.com/api/v1",
|
|
"hs.bbApi": "Bitbucket Cloud: https://api.bitbucket.org/2.0",
|
|
"hs.gh1": 'Abre la p\xE1gina de tokens de GitHub; el nombre, la caducidad y "Contents: read and write" ya vienen rellenados.',
|
|
"hs.gh1Link": "Crear un token detallado (fine-grained)",
|
|
"hs.gh2": 'En Repository access elige "Only select repositories" y selecciona el repositorio de tu b\xF3veda (a\xF1ade Administration: read and write si quieres que el complemento cree el repositorio).',
|
|
"hs.gh3": "Gen\xE9ralo, c\xF3pialo y p\xE9galo aqu\xED.",
|
|
"hs.gh4": "Alternativa m\xE1s sencilla (acceso a todos los repositorios):",
|
|
"hs.gh4Link": "token cl\xE1sico con el \xE1mbito repo",
|
|
"hs.gl1": "Crea un token de acceso personal con el \xE1mbito api (necesario para escribir commits).",
|
|
"hs.gl1Link": "Abrir la p\xE1gina de tokens de GitLab",
|
|
"hs.gl2": "Consejo: un token de acceso de proyecto (Settings \u2192 Access tokens en el proyecto de tu b\xF3veda, rol Developer, \xE1mbito api) limita el acceso a ese \xFAnico proyecto.",
|
|
"hs.paste": "C\xF3pialo y p\xE9galo aqu\xED.",
|
|
"hs.gt1": 'Abre Settings \u2192 Applications y genera un token con "repository: Read and Write" y "user: Read". Para que el plugin pueda crear el repositorio, elige "user: Read and Write" en su lugar.',
|
|
"hs.gt1Link": "Abrir la p\xE1gina de aplicaciones",
|
|
"hs.gt2": "Requiere Gitea 1.20+ o Forgejo 1.20+ (API de commits de varios archivos).",
|
|
"hs.bb1": "Lo m\xE1s f\xE1cil: en el repositorio de tu b\xF3veda abre Repository settings \u2192 Security \u2192 Access tokens y crea uno con Repositories: Read and Write. P\xE9galo aqu\xED (indica el propietario y el repositorio en la configuraci\xF3n).",
|
|
"hs.bb1Link": "Ayuda sobre los tokens de acceso de Bitbucket",
|
|
"hs.bb2": "Para elegir o crear repositorios en el asistente, usa en su lugar un token de API de Atlassian con \xE1mbitos de Bitbucket, introducido como email:token.",
|
|
"hs.bb2Link": "Crear un token de API",
|
|
"hs.bb3": "Nota: la primera sincronizaci\xF3n descarga cada archivo una vez para indexarlo; las siguientes solo traen lo que cambi\xF3.",
|
|
"u.skipped": "Omitidos: {n}",
|
|
"u.loadingShort": "Cargando\u2026",
|
|
"u.diff": "Diferencias",
|
|
"h.lastSync": "\xDAltima sincronizaci\xF3n {ago}",
|
|
"m.sharedFailed": "Error al sincronizar la carpeta compartida:",
|
|
"m.offline": "Sin conexi\xF3n: se sincronizar\xE1 al volver a estar en l\xEDnea",
|
|
"m.filesFailed": "{n} archivo(s) fallaron: consulta el estado de sincronizaci\xF3n",
|
|
"m.copiesCreated": "{n} copia(s) en conflicto creada(s)",
|
|
"m.statusTip": "{title}. Haz clic para ver el estado de sincronizaci\xF3n.",
|
|
"m.notThere": "{host} (el archivo no est\xE1)",
|
|
"app.signIn": "Iniciar sesi\xF3n con GitHub",
|
|
"app.signInDesc": "Aprueba el acceso en tu navegador en lugar de crear un token. La app solo obtiene los repositorios que elijas y el acceso se renueva autom\xE1ticamente.",
|
|
"app.signInBtn": "Iniciar sesi\xF3n",
|
|
"app.orToken": "O usa un token de acceso",
|
|
"app.starting": "Conectando con {host}\u2026",
|
|
"app.notAvailable": "Iniciar sesi\xF3n con {host} no est\xE1 disponible para este servidor. Usa un token de acceso.",
|
|
"app.codeBody": "Copia este c\xF3digo y p\xE9galo en la p\xE1gina de {host} que se abrir\xE1:",
|
|
"app.copy": "Copiar c\xF3digo",
|
|
"app.copied": "C\xF3digo copiado",
|
|
"app.open": "Copiar y abrir {host}",
|
|
"app.waiting": "Esperando a que apruebes en {host}\u2026",
|
|
"app.expired": "El c\xF3digo caduc\xF3. Cierra esta ventana e inicia sesi\xF3n de nuevo.",
|
|
"app.denied": "Se deneg\xF3 el acceso en {host}.",
|
|
"app.disabled": "Esta GitHub App no permite iniciar sesi\xF3n desde el dispositivo. Usa un token de acceso o pide a su propietario que active el flujo de dispositivo (device flow).",
|
|
"app.failed": "Error al iniciar sesi\xF3n: {error}",
|
|
"app.signedIn": "Sesi\xF3n iniciada con GitHub",
|
|
"app.signedInDesc": "Este dispositivo usa la GitHub App de Vault Sync for GitHub. El acceso se renueva autom\xE1ticamente. Se guarda solo en este dispositivo.",
|
|
"app.signOut": "Cerrar sesi\xF3n",
|
|
"app.chooseRepos": "Elegir repositorios",
|
|
"app.chooseReposDesc": "\xBFNo ves el repositorio de tu b\xF3veda? A\xF1\xE1delo en GitHub o crea uno all\xED primero. La lista se actualiza sola cuando vuelvas.",
|
|
"app.createOnGitHub": "Crear en GitHub",
|
|
"app.refresh": "Actualizar lista",
|
|
"app.expiredSession": "Tu sesi\xF3n de {host} ha caducado. Inicia sesi\xF3n de nuevo en Configuraci\xF3n \u2192 Vault Sync for Git.",
|
|
"app.clientId": "ID de cliente de la GitHub App (opcional)",
|
|
"app.clientIdDesc": "Para ofrecer Iniciar sesi\xF3n con GitHub en GitHub Enterprise: el ID de cliente de una GitHub App con device flow activado y permiso Contents de lectura y escritura. Se guarda solo en este dispositivo.",
|
|
"app.slug": "Nombre de la GitHub App en la URL",
|
|
"app.slugDesc": "El NAME en https://your-server/apps/NAME, que se usa para abrir la p\xE1gina de instalaci\xF3n de la app.",
|
|
"h.refresh": "Actualizar",
|
|
"h.setupHint": "Ejecuta el asistente de configuraci\xF3n para conectar un servidor Git y un repositorio.",
|
|
"h.resolve": "Resolver",
|
|
"h.resolveTitle": "Resolver conflicto: {path}",
|
|
"h.currentNote": "Nota actual",
|
|
"h.conflictCopy": "Copia en conflicto",
|
|
"h.tokenExpires": "Tu token de acceso caduca en {days} d\xEDa(s). Crea uno nuevo y p\xE9galo en la configuraci\xF3n.",
|
|
"h.tokenExpiresToday": "Tu token de acceso caduca hoy. Crea uno nuevo y p\xE9galo en la configuraci\xF3n.",
|
|
"h.newToken": "Crear un token nuevo",
|
|
"u.previewTitle": "Vista previa de la sincronizaci\xF3n",
|
|
"u.previewHint": "Todav\xEDa no se ha cambiado nada. Esto es lo que har\xEDa la pr\xF3xima sincronizaci\xF3n.",
|
|
"u.close": "Cerrar",
|
|
"s.configDirWarn": "El c\xF3digo de los complementos tambi\xE9n se sincroniza, as\xED que cualquiera que pueda enviar cambios al repositorio puede ejecutar c\xF3digo en tus dispositivos. Los complementos sincronizados se cargan tras reiniciar.",
|
|
"p.scanning": "Analizando archivos\u2026",
|
|
"p.checking": "Comprobando {host}\u2026",
|
|
"p.downloading": "Descargando {done}/{total}",
|
|
"p.uploading": "Subiendo {done}/{total}",
|
|
"cmd.syncFile": "Sincronizar el archivo actual ahora",
|
|
"cmd.setupLink": "A\xF1adir otro dispositivo (enlace de configuraci\xF3n)",
|
|
"x.pending": "Editado desde la \xFAltima sincronizaci\xF3n",
|
|
"x.conflict": "Copia en conflicto: resu\xE9lvela en el panel de estado de sincronizaci\xF3n",
|
|
"os.title": "Otra herramienta de sincronizaci\xF3n est\xE1 activa",
|
|
"os.found": "Tambi\xE9n sincroniza esta b\xF3veda: {list}.",
|
|
"os.gitFolder": "un repositorio Git (carpeta .git)",
|
|
"os.hint": "Dos herramientas que escriben los mismos archivos pueden sobrescribir los cambios de la otra. Usa solo una de ellas para esta b\xF3veda o aseg\xFArate de que sincronicen carpetas distintas.",
|
|
"link.addDevice": "A\xF1adir otro dispositivo",
|
|
"link.addDeviceDesc": "Crea un enlace y un c\xF3digo QR que configuran otro dispositivo con este repositorio y esta configuraci\xF3n de sincronizaci\xF3n.",
|
|
"link.createBtn": "Crear enlace de configuraci\xF3n",
|
|
"link.createTitle": "A\xF1adir otro dispositivo",
|
|
"link.createIntro": "Abre este enlace en el nuevo dispositivo (o escanea el c\xF3digo con su c\xE1mara) despu\xE9s de instalar all\xED el complemento. Rellena el servidor, el repositorio y la configuraci\xF3n de sincronizaci\xF3n.",
|
|
"link.includeToken": "Incluir el token de acceso",
|
|
"link.includeTokenDesc": "El token se cifra con un c\xF3digo de un solo uso que se muestra abajo. Sin el c\xF3digo, el enlace no sirve; comparte el c\xF3digo por separado.",
|
|
"link.signInNote": "Este dispositivo tiene la sesi\xF3n iniciada con {host}. El nuevo dispositivo inicia sesi\xF3n por s\xED mismo, as\xED que no se incluye ning\xFAn token.",
|
|
"link.encrypting": "Cifrando\u2026",
|
|
"link.link": "Enlace de configuraci\xF3n",
|
|
"link.linkDesc": "Env\xEDatelo a ti mismo, por ejemplo por correo electr\xF3nico o con una app de notas.",
|
|
"link.copyLink": "Copiar enlace",
|
|
"link.copied": "Copiado",
|
|
"link.qrLabel": "C\xF3digo QR del enlace de configuraci\xF3n",
|
|
"link.codeIntro": "C\xF3digo de un solo uso (escr\xEDbelo en el nuevo dispositivo):",
|
|
"link.keepApart": "No env\xEDes el c\xF3digo junto con el enlace.",
|
|
"link.noSecrets": "El enlace no contiene ning\xFAn token ni contrase\xF1a. El nuevo dispositivo se conecta con su propio inicio de sesi\xF3n o token.",
|
|
"link.applyTitle": "Configurar este dispositivo desde un enlace",
|
|
"link.applyIntro": 'Este enlace configura la sincronizaci\xF3n de la b\xF3veda "{vault}":',
|
|
"link.server": "Servidor: {url}",
|
|
"link.withSettings": "Tambi\xE9n sincroniza la carpeta de configuraci\xF3n, con las mismas opciones",
|
|
"link.withToken": "Incluye un token de acceso (requiere el c\xF3digo de un solo uso)",
|
|
"link.subdir": "Carpeta en el repositorio: {folder}",
|
|
"link.onlyYours": "Contin\xFAa solo si creaste este enlace t\xFA mismo. Un enlace de otra persona podr\xEDa conectar tu b\xF3veda a su repositorio.",
|
|
"link.replaces": "Esto reemplaza la conexi\xF3n actual con {repo}.",
|
|
"link.code": "C\xF3digo de un solo uso",
|
|
"link.codeDesc": "Se muestra en el dispositivo que cre\xF3 el enlace.",
|
|
"link.apply": "Configurar este dispositivo",
|
|
"link.needCode": "Introduce primero el c\xF3digo de un solo uso.",
|
|
"link.decrypting": "Comprobando el c\xF3digo\u2026",
|
|
"link.wrongCode": "Ese c\xF3digo no corresponde a este enlace.",
|
|
"link.invalid": "Este enlace de configuraci\xF3n est\xE1 incompleto o da\xF1ado. Crea uno nuevo en tu otro dispositivo.",
|
|
"link.wizardHint": '\xBFYa sincronizas en otro dispositivo? All\xED, elige "A\xF1adir otro dispositivo" en el panel de estado o en la configuraci\xF3n, y abre el enlace aqu\xED.',
|
|
"s.cfgAppearance": "Apariencia y temas",
|
|
"s.cfgAppearanceDesc": "Tema, fuentes, color de acento y temas instalados.",
|
|
"s.cfgSnippets": "Fragmentos CSS",
|
|
"s.cfgHotkeys": "Atajos de teclado",
|
|
"s.cfgCore": "Configuraci\xF3n principal",
|
|
"s.cfgCoreDesc": "Editor, archivos y enlaces, complementos principales y sus opciones.",
|
|
"s.cfgPluginList": "Qu\xE9 complementos de la comunidad est\xE1n activados",
|
|
"s.cfgPluginListDesc": "Activar o desactivar un complemento en un dispositivo hace lo mismo en los dem\xE1s.",
|
|
"s.cfgPluginCode": "C\xF3digo de los complementos de la comunidad",
|
|
"s.cfgPluginCodeDesc": "Instala y actualiza los complementos en todos los dispositivos. El c\xF3digo de complementos sincronizado puede ejecutarse en todos tus dispositivos.",
|
|
"s.cfgPluginSettings": "Configuraci\xF3n de los complementos de la comunidad",
|
|
"s.cfgPerPlugin": "Elegir por complemento",
|
|
"s.cfgPerPluginDesc": "Excepciones para complementos concretos ({n} definidas).",
|
|
"s.cfgPerPluginBtn": "Elegir",
|
|
"s.cfgPerPluginIntro": 'Para cada complemento, sigue los interruptores de arriba o elige qu\xE9 se sincroniza. Los complementos que guardan datos propios del dispositivo (rutas, disposici\xF3n de ventanas) son buenos candidatos para "Solo este dispositivo".',
|
|
"s.cfgNoPlugins": "No hay complementos de la comunidad instalados.",
|
|
"s.cfgThisPlugin": "este complemento",
|
|
"s.cfgFollow": "Seguir los interruptores",
|
|
"s.cfgAll": "C\xF3digo y configuraci\xF3n",
|
|
"s.cfgCodeOnly": "Solo c\xF3digo",
|
|
"s.cfgSettingsOnly": "Solo configuraci\xF3n",
|
|
"s.cfgNone": "Solo este dispositivo",
|
|
"s.hidden": "Sincronizar archivos y carpetas ocultos",
|
|
"s.hiddenDesc": "Archivos y carpetas en el nivel superior de la b\xF3veda cuyo nombre empieza por un punto, como .github o .editorconfig. Nunca .git, .trash ni la carpeta de configuraci\xF3n. Los cambios se detectan en pocos minutos.",
|
|
"s.gitignore": "Respetar el .gitignore de la b\xF3veda",
|
|
"s.gitignoreDesc": "Los archivos indicados en los .gitignore de la b\xF3veda no se sincronizan (un .gitignore dentro de una carpeta se aplica a esa carpeta, como en Git), y los propios .gitignore se sincronizan en todos los dispositivos. Tus patrones de exclusi\xF3n siguen teniendo la \xFAltima palabra.",
|
|
"s.onOpen": "Sincronizar al abrir una nota",
|
|
"s.onOpenDesc": "Obtiene la versi\xF3n m\xE1s reciente antes de que edites, como m\xE1ximo cada 30 segundos.",
|
|
"s.badges": "Mostrar el estado de sincronizaci\xF3n en el explorador de archivos",
|
|
"s.badgesDesc": "Un punto en los archivos editados desde la \xFAltima sincronizaci\xF3n y un aviso en las copias en conflicto.",
|
|
"s.noticesAuto": "Autom\xE1tico (cambios en m\xF3viles, errores en escritorio)",
|
|
"s.noticesChanges": "Cuando cambian archivos, y errores",
|
|
"s.cfgPluginSettingsDesc": "Las opciones de cada complemento (data.json).",
|
|
"link.tooLongForQr": "Este enlace es demasiado largo para un c\xF3digo QR. Copia el enlace en su lugar.",
|
|
"link.withHidden": "Tambi\xE9n sincroniza los archivos ocultos de la ra\xEDz de la b\xF3veda",
|
|
"link.withGitignore": "Respeta el .gitignore de la b\xF3veda",
|
|
"link.withExclude": "Sustituye los patrones de exclusi\xF3n de esta b\xF3veda",
|
|
"s.apiBaseInvalid": "Introduce la direcci\xF3n de la API empezando por https:// (http:// solo para un servidor en este equipo).",
|
|
"s.lfsAboveMax": "El umbral de archivos grandes es igual o superior al tama\xF1o m\xE1ximo de archivo ({max} MB), as\xED que nunca se usar\xE1 el almacenamiento de archivos grandes. Baja el umbral o sube el m\xE1ximo.",
|
|
"s.guardMinLabel": "N\xFAmero m\xEDnimo de eliminaciones",
|
|
"s.guardPercentLabel": "Porcentaje m\xEDnimo de archivos",
|
|
"sh.notFound": "no se encontr\xF3 el repositorio o no es accesible con este token",
|
|
"m.unlockToBrowse": "Este repositorio est\xE1 cifrado de extremo a extremo. Introduce la frase de contrase\xF1a en este dispositivo para explorarlo.",
|
|
"m.beforeCommit": "antes de {sha}",
|
|
"m.mergedN": "{n} fusionados",
|
|
"m.nothingToSnapshot": "Todav\xEDa no hay nada para una instant\xE1nea. Sincroniza primero.",
|
|
"m.queued": "Hay una sincronizaci\xF3n en curso. La tuya empezar\xE1 justo despu\xE9s.",
|
|
"h.deleteCopyBody": 'La copia en conflicto va a la papelera (o se elimina, seg\xFAn la opci\xF3n "Archivos eliminados" de Obsidian). Aseg\xFArate de haber conservado lo que necesites de ella.',
|
|
"u.binaryFile": "(archivo binario, {n} bytes)",
|
|
"u.selectGroup": "Seleccionar todo: {group}",
|
|
"u.includeFile": "Incluir {path} en esta sincronizaci\xF3n",
|
|
"m.pausedStatus": "Sincronizaci\xF3n autom\xE1tica en pausa",
|
|
"m.paused": "Sincronizaci\xF3n autom\xE1tica en pausa en este dispositivo hasta que la reanudes. La sincronizaci\xF3n manual sigue funcionando.",
|
|
"m.pausedFor": "Sincronizaci\xF3n autom\xE1tica en pausa durante {n} minutos en este dispositivo.",
|
|
"m.resumed": "Sincronizaci\xF3n autom\xE1tica reanudada.",
|
|
"cmd.pause": "Pausar o reanudar la sincronizaci\xF3n autom\xE1tica",
|
|
"cmd.pauseHour": "Pausar la sincronizaci\xF3n autom\xE1tica durante una hora",
|
|
"cmd.diagnostics": "Copiar diagn\xF3stico (para un informe de errores)",
|
|
"cmd.openOnHost": "Abrir el archivo actual en el servidor",
|
|
"cmd.historyOnHost": "Abrir el historial del archivo actual en el servidor",
|
|
"cmd.copyHostLink": "Copiar el enlace del archivo actual en el servidor",
|
|
"menu.shareFolder": "Compartir esta carpeta con un repositorio\u2026",
|
|
"menu.excludeFolder": "Excluir esta carpeta de la sincronizaci\xF3n",
|
|
"menu.openOnHost": "Abrir en {host}",
|
|
"menu.copyHostLink": "Copiar enlace en {host}",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "Este repositorio tiene cifrado de extremo a extremo, as\xED que los archivos no tienen una direcci\xF3n legible en el servidor.",
|
|
"m.hostLinkUnsupported": "{host} no tiene una p\xE1gina web para este archivo.",
|
|
"m.alreadyExcluded": "{folder} ya est\xE1 excluida.",
|
|
"m.excludeBody": "Los archivos de {folder} dejar\xE1n de subirse, descargarse o eliminarse en todos los dispositivos. No se elimina nada ahora.",
|
|
"m.excluded": "{folder} ahora est\xE1 excluida de la sincronizaci\xF3n.",
|
|
"m.diagnosticsCopied": "Diagn\xF3stico copiado. Los tokens est\xE1n ocultos; revisa el texto antes de compartirlo, ya que incluye nombres de archivo del registro.",
|
|
"h.resume": "Reanudar",
|
|
"h.pause": "Pausar 1 hora",
|
|
"h.pausedUntilResumed": "La sincronizaci\xF3n autom\xE1tica est\xE1 en pausa hasta que la reanudes.",
|
|
"h.pausedUntil": "La sincronizaci\xF3n autom\xE1tica est\xE1 en pausa hasta las {time}.",
|
|
"h.batterySaverOn": "El ahorro de bater\xEDa est\xE1 activado: sin temporizador ni sincronizaci\xF3n tras cada edici\xF3n en este dispositivo.",
|
|
"h.batterySaverTurnOn": "Activar ahorro de bater\xEDa",
|
|
"h.batterySaverOff": "Desactivar ahorro de bater\xEDa",
|
|
"h.versionMismatch": "Los dispositivos usan versiones distintas de este complemento (este dispositivo: {mine}; {list}). Actual\xEDzalos para que sincronicen de la misma forma.",
|
|
"h.badNames": "Nombres que Windows no puede guardar ({n})",
|
|
"h.badNamesHint": 'Estos archivos no se sincronizar\xE1n con dispositivos Windows (ni con algunos Android). C\xE1mbiales el nombre para quitar < > : " | ? * o un punto o espacio final.',
|
|
"u.filterSearch": "Filtrar por nombre",
|
|
"u.filterAll": "Todo",
|
|
"u.filterUploads": "Subidas",
|
|
"u.filterDownloads": "Descargas",
|
|
"u.filterDeletes": "Eliminaciones",
|
|
"u.filterConflicts": "Conflictos",
|
|
"m.mirrorFailed": "Espejo de respaldo: {error}",
|
|
"m.hostRemoved": "Gitee y Azure DevOps ya no son compatibles. La sincronizaci\xF3n est\xE1 en pausa: elige otro servicio en Configuraci\xF3n \u2192 Vault Sync for Git. Tus archivos no han cambiado.",
|
|
"m.hostRemovedOther": "Gitee y Azure DevOps ya no son compatibles. El espejo de respaldo que los usaba est\xE1 desactivado y las carpetas compartidas en ellos se omiten. Tus archivos no han cambiado.",
|
|
"sh.subdir": "Carpeta en el repositorio (opcional)",
|
|
"sh.subdirDesc": "Asigna la carpeta compartida a una carpeta dentro del repositorio, por ejemplo docs, en lugar de a su ra\xEDz. Los archivos en otras partes del repositorio no se tocan.",
|
|
"sh.conflicts": "Cuando dos personas cambian las mismas l\xEDneas",
|
|
"sh.conflictsDesc": "Conserva ambas versiones aqu\xED como copia en conflicto, o env\xEDa la versi\xF3n de este dispositivo a una rama nueva con un pull request para que el equipo lo revise.",
|
|
"sh.conflictsCopy": "Conservar ambas (copia en conflicto)",
|
|
"sh.conflictsPr": "Abrir un pull request",
|
|
"m.prOpened": "{folder}: las ediciones en conflicto se enviaron como pull request: {url}",
|
|
"pi.title": "Instalar complementos usados en tus otros dispositivos",
|
|
"pi.body": "Estos complementos de la comunidad est\xE1n activados (o actualizados) en otro dispositivo. Vault Sync for Git puede instalar aqu\xED la misma versi\xF3n, desde la versi\xF3n oficial de cada complemento en GitHub, tal como aparece en el directorio de la comunidad de Obsidian.",
|
|
"pi.list": "Complementos",
|
|
"pi.install": "Instalar",
|
|
"pi.failed": "No se pudo instalar {name}: {error}",
|
|
"pi.done": "Instalados: {list}. Reinicia Obsidian (o desactiva y activa cada complemento) para cargarlos.",
|
|
"s.cfgInstall": "Instalar el c\xF3digo de los complementos desde versiones oficiales",
|
|
"s.cfgInstallDesc": "En lugar de sincronizar el c\xF3digo de los complementos, cada dispositivo instala la misma versi\xF3n desde la versi\xF3n oficial del complemento (tras preguntar). Las versiones de los complementos se siguen sincronizando. M\xE1s seguro: nadie puede enviar c\xF3digo a tus dispositivos a trav\xE9s del repositorio.",
|
|
"s.branchDesc": "La rama con la que se sincroniza esta b\xF3veda. Cambiarla inicia una comparaci\xF3n nueva; no se elimina nada.",
|
|
"s.branchChoose": "Elegir",
|
|
"s.branchIntro": "Elige una rama existente o crea una nueva a partir de la rama actual (por ejemplo, una rama de borradores).",
|
|
"s.branchNew": "Nueva rama",
|
|
"s.branchInvalid": "Usa solo letras, n\xFAmeros, - _ . y /.",
|
|
"s.branchNoHead": "La rama {branch} est\xE1 vac\xEDa, as\xED que todav\xEDa no hay nada desde lo que crear una rama.",
|
|
"s.branchNone": "Todav\xEDa no hay ramas.",
|
|
"s.branchCurrent": "Rama actual",
|
|
"s.branchUse": "Usar",
|
|
"s.emptyFolders": "Conservar carpetas vac\xEDas",
|
|
"s.emptyFoldersDesc": "Las carpetas sin archivos se conservan en todos los dispositivos (se registran en .vault-sync/folders.json). Desactivado mientras el cifrado de extremo a extremo est\xE9 activado.",
|
|
"s.battery": "Ahorro de bater\xEDa",
|
|
"s.batteryDesc": "En este dispositivo: sin temporizador ni sincronizaci\xF3n tras cada edici\xF3n. Sincroniza al iniciar, al volver a Obsidian y cuando sincronizas manualmente.",
|
|
"s.pause": "Pausar la sincronizaci\xF3n autom\xE1tica",
|
|
"s.pauseDesc": "Solo en este dispositivo. La sincronizaci\xF3n manual sigue funcionando.",
|
|
"s.pauseDescOn": "La sincronizaci\xF3n autom\xE1tica est\xE1 en pausa en este dispositivo.",
|
|
"s.pauseUntilResumed": "Hasta reanudarla",
|
|
"s.author": "Autor de los commits",
|
|
"s.authorDesc": "Nombre y correo que se escriben en los commits (se necesitan ambos). Vac\xEDo: el servidor usa la cuenta del token.",
|
|
"s.authorName": "Nombre",
|
|
"s.authorEmail": "Correo electr\xF3nico",
|
|
"s.hMirror": "Espejo de respaldo",
|
|
"s.mirrorIntro": "Cada sincronizaci\xF3n tambi\xE9n sube esta b\xF3veda a un segundo repositorio, por ejemplo en otro servidor. Solo subida: el espejo nunca se lee de vuelta. Con cifrado de extremo a extremo, el espejo tambi\xE9n se cifra.",
|
|
"s.mirrorOn": "Activar el espejo de esta b\xF3veda",
|
|
"s.mirrorToken": "Token del espejo",
|
|
"s.mirrorTokenDesc": "Token de acceso para el repositorio espejo. Se guarda solo en este dispositivo. Vac\xEDo: el token principal, si es el mismo servidor.",
|
|
"s.mirrorIncomplete": "Activa primero el espejo y rellena el propietario y el repositorio.",
|
|
"s.mirrorOk": "Espejo accesible: {repo}",
|
|
"h.mirror": "Espejo de respaldo {target}: \xFAltima subida {ago}",
|
|
"h.mirrorFailed": "Error en el espejo de respaldo {target}: {error}",
|
|
"cmd.overwrite": "Hacer que el repositorio coincida con este dispositivo",
|
|
"ow.title": "Hacer que el repositorio coincida con este dispositivo",
|
|
"ow.body": "Un nuevo commit en {host} deja el repositorio igual que este dispositivo: all\xED se suben estos archivos y se eliminan estos (se conservan en su historial). Los archivos que solo est\xE1n en {host} para descargarse bajo demanda no se tocan. Los dem\xE1s dispositivos lo recibir\xE1n en su pr\xF3xima sincronizaci\xF3n.",
|
|
"ow.upload": "Subidos",
|
|
"ow.confirm": "Hacer coincidir",
|
|
"ow.done": "Repositorio actualizado: {n} cambio(s) en un commit.",
|
|
"ow.failed": "No se pudo actualizar el repositorio: {error}",
|
|
"m.clipboardFailed": "No se pudo copiar al portapapeles: {error}",
|
|
"ce.ours": "Conservar este dispositivo",
|
|
"ce.theirs": "Conservar repositorio",
|
|
"ce.both": "Conservar ambos",
|
|
"ce.hint": "Cambio en conflicto:",
|
|
"app.signInGitLab": "Iniciar sesi\xF3n con GitLab",
|
|
"app.signInDescGitLab": "Aprueba el acceso en tu navegador en lugar de crear un token. El acceso se renueva autom\xE1ticamente.",
|
|
"app.signedInGitLab": "Sesi\xF3n iniciada con GitLab",
|
|
"app.signedInDescGitLab": "Este dispositivo usa la aplicaci\xF3n Vault Sync for Git en GitLab. El acceso se renueva autom\xE1ticamente. Solo se guarda en este dispositivo.",
|
|
"app.glClientId": "ID de aplicaci\xF3n de GitLab (opcional)",
|
|
"app.glClientIdDesc": "Para usar \xABIniciar sesi\xF3n con GitLab\xBB: el Application ID de una aplicaci\xF3n OAuth no confidencial con el \xE1mbito api, creada en tu GitLab (Editar perfil \u2192 Aplicaciones). Solo se guarda en este dispositivo.",
|
|
"sh.ghFormat": "Markdown compatible con GitHub",
|
|
"sh.ghFormatDesc": "Guarda las notas para que se lean bien en GitHub: los wikilinks pasan a enlaces, los callouts a alertas y los resaltados a <mark>. Tu b\xF3veda conserva el texto exacto de Obsidian. Se elige al a\xF1adir la carpeta.",
|
|
"s.hiddenNested": "Archivos ocultos dentro de carpetas",
|
|
"s.hiddenNestedDesc": "Sincroniza tambi\xE9n los archivos y carpetas ocultos dentro de tus carpetas de notas (por ejemplo Notes/.assets). Las carpetas de configuraci\xF3n, .trash y .git nunca se incluyen.",
|
|
"app.reposTitle": "Repositorios que la app puede usar",
|
|
"app.addRepos": "A\xF1adir repositorios en GitHub",
|
|
"app.watching": "Esperando a que termines en GitHub. La lista se actualiza sola cuando vuelvas.",
|
|
"app.noRepos": "La app a\xFAn no ve ning\xFAn repositorio. A\xF1ade el repositorio de tu b\xF3veda en GitHub.",
|
|
"app.newRepo": "Nuevo",
|
|
"app.newArrived": "Repositorio a\xF1adido. Selecci\xF3nalo en la lista de arriba.",
|
|
"s.repoPick": "Elige un repositorio",
|
|
"s.strategyDesc": "La fusi\xF3n autom\xE1tica combina cambios en l\xEDneas distintas y conserva ambas versiones cuando cambiaron las mismas l\xEDneas.",
|
|
"s.pauseDescUntil": "La sincronizaci\xF3n autom\xE1tica est\xE1 en pausa en este dispositivo hasta las {time}.",
|
|
"s.branchPick": "Elige una rama",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "el servidor del repositorio",
|
|
"err.network": "Error de red al comunicarse con {host}",
|
|
"err.badToken": "El token de {host} no es v\xE1lido o ha caducado.",
|
|
"err.forbidden": "{host} deneg\xF3 el acceso (HTTP {status}). Comprueba que el token puede leer y escribir en este repositorio.",
|
|
"err.notFound": "{host} no encontr\xF3 el repositorio, la rama o el archivo (HTTP {status}). Comprueba el nombre del repositorio y el acceso del token.",
|
|
"err.conflict": "{host} inform\xF3 de un conflicto (HTTP {status}); puede que otro dispositivo haya subido cambios. Vuelve a sincronizar.",
|
|
"err.tooLarge": "{host} rechaz\xF3 un archivo demasiado grande (HTTP {status}).",
|
|
"err.rateLimit": "Se alcanz\xF3 el l\xEDmite de solicitudes de {host}. Int\xE9ntalo de nuevo en un minuto.",
|
|
"err.rateLimitMin": "Se alcanz\xF3 el l\xEDmite de solicitudes de {host}. Int\xE9ntalo de nuevo en {min} min.",
|
|
"err.secondaryRateLimit": "Se alcanz\xF3 el l\xEDmite secundario de solicitudes de {host}. Int\xE9ntalo de nuevo en un minuto.",
|
|
"err.server": "{host} tiene problemas (HTTP {status}). Int\xE9ntalo m\xE1s tarde.",
|
|
"err.noToken": "No hay ning\xFAn token de {host}. A\xF1ade uno en los ajustes del complemento.",
|
|
"err.foreignLink": "{host} devolvi\xF3 un enlace a otro servidor ({origin}); no se le enviar\xE1 el token.",
|
|
"err.versionUnavailable": "{host}: esta versi\xF3n del archivo no est\xE1 disponible",
|
|
"err.contentMismatch": "\xAB{path}\xBB no se pudo descargar por completo desde {host} (el contenido no coincide). Vuelve a sincronizar.",
|
|
"err.partialDownload": "\xAB{path}\xBB no se pudo descargar por completo desde {host} (se recibieron {got} de {expected} bytes). Vuelve a sincronizar.",
|
|
"err.incompleteDownload": "{path} no se pudo descargar por completo desde {host} (se recibieron {bytes} bytes). Puede que el servidor limite el tama\xF1o de los archivos que env\xEDa por su API.",
|
|
"err.commitRefused": "{host} rechaz\xF3 el commit: {detail}",
|
|
"err.commitNotCreated": "{host} no cre\xF3 el commit",
|
|
"err.commitNoTree": "El commit {sha} no tiene \xE1rbol de archivos",
|
|
"err.repoTooLarge": "El repositorio es demasiado grande para listarlo en {host}.",
|
|
"err.badPagination": "{host} devolvi\xF3 un enlace de paginaci\xF3n inesperado",
|
|
"err.listFailed": "{host} no pudo listar los archivos de {ref} (HTTP 404)",
|
|
"err.blobTooLarge": "{host}: archivo demasiado grande para la API de este servidor (supera su l\xEDmite de tama\xF1o)",
|
|
"err.blobTooLargeMismatch": "{host}: archivo demasiado grande para la API de este servidor (supera su l\xEDmite de tama\xF1o) y el archivo sin procesar no coincide",
|
|
"err.unsupportedHost": "Servidor Git no compatible: {host}",
|
|
"err.lfsCorrupt": "{path}: la descarga del archivo grande est\xE1 da\xF1ada",
|
|
"err.lfsError": "Almacenamiento de archivos grandes: {detail}",
|
|
"err.lfsMissing": "{path}: el archivo grande no est\xE1 en el almacenamiento LFS del servidor",
|
|
"err.encLocked": "Este repositorio est\xE1 cifrado de extremo a extremo. Introduce la frase de contrase\xF1a en Ajustes \u2192 Cifrado para sincronizar en este dispositivo.",
|
|
"err.encMismatch": "Este repositorio se cifr\xF3 con una frase de contrase\xF1a distinta de la desbloqueada en este dispositivo. Desbloqu\xE9alo de nuevo en Ajustes \u2192 Cifrado.",
|
|
"err.encUpgraded": "El cifrado de extremo a extremo se actualiz\xF3 en otro dispositivo (misma frase de contrase\xF1a, ahora cada archivo est\xE1 ligado a su nombre). Este dispositivo tambi\xE9n cambi\xF3; la pr\xF3xima sincronizaci\xF3n contin\xFAa.",
|
|
"err.branchMoved": "La rama cambi\xF3 durante la sincronizaci\xF3n (otro dispositivo subi\xF3 cambios).",
|
|
"err.editedDuringSync": "{path} se edit\xF3 durante la sincronizaci\xF3n",
|
|
"err.cancelled": "Cancelado.",
|
|
"err.unloaded": "El complemento se descarg\xF3; la sincronizaci\xF3n se detuvo. Continuar\xE1 la pr\xF3xima vez.",
|
|
"err.guardCancelled": "Sincronizaci\xF3n cancelada por la protecci\xF3n contra borrados.",
|
|
"err.resetCancelled": "Restablecimiento cancelado.",
|
|
"err.restoreCancelled": "Restauraci\xF3n cancelada.",
|
|
"err.branchMissing": "No se encontr\xF3 la rama \xAB{branch}\xBB en {repo}. Puede que se haya eliminado o renombrado, o que el token haya perdido el acceso. No se cambi\xF3 nada.",
|
|
"err.repoNotFound": "No se encontr\xF3 el repositorio {repo} o el token no tiene acceso.",
|
|
"err.initFailed": "No se pudo inicializar la rama del repositorio.",
|
|
"err.encryptionOff": "El cifrado no est\xE1 activado en este dispositivo.",
|
|
"err.branchEmpty": "La rama del repositorio est\xE1 vac\xEDa.",
|
|
"err.resetEmpty": "La rama del repositorio est\xE1 vac\xEDa. No hay nada a lo que restablecer.",
|
|
"err.restorePullOnly": "La restauraci\xF3n necesita subir al repositorio, y el modo solo descarga no lo permite.",
|
|
"err.restoreRaced": "Otro dispositivo subi\xF3 cambios durante la restauraci\xF3n. No se cambi\xF3 nada; int\xE9ntalo de nuevo.",
|
|
"skip.deferred": "aplazado en la revisi\xF3n",
|
|
"skip.localTooLarge": "archivo local mayor de {mb} MB",
|
|
"skip.remoteTooLarge": "archivo remoto mayor de {mb} MB",
|
|
"skip.windowsName": "nombre no permitido en Windows; c\xE1mbialo en otro dispositivo",
|
|
"skip.onDemand": "supera el l\xEDmite de descarga de este dispositivo; disponible bajo demanda",
|
|
"skip.caseRenamedFrom": "renombrado desde {other} cambiando may\xFAsculas en otro lugar; se aplicar\xE1 en la pr\xF3xima sincronizaci\xF3n bidireccional",
|
|
"skip.caseRenamedTo": "renombrado a {other} cambiando may\xFAsculas en otro lugar; se aplicar\xE1 en la pr\xF3xima sincronizaci\xF3n bidireccional",
|
|
"skip.unicodeClash": "mismo nombre que {other} en otra forma Unicode",
|
|
"skip.caseClash": "solo se diferencia de {other} en may\xFAsculas y min\xFAsculas",
|
|
"skip.winRenamed": "renombrado en otro lugar a un nombre que Windows no admite; se conserva aqu\xED",
|
|
"skip.winMaybeRenamed": "puede que se haya renombrado en otro lugar a un nombre que Windows no admite; se conserva aqu\xED",
|
|
"skip.unsafePath": "ruta no segura",
|
|
"skip.movedOutOfScope": "movido a {to}, fuera del alcance de sincronizaci\xF3n de este dispositivo; se mantiene en el repositorio",
|
|
"skip.conflictKept": "conflicto conservado para la pr\xF3xima sincronizaci\xF3n: {error}",
|
|
"skip.caseRenameFailed": "renombrado desde {from} cambiando may\xFAsculas en otro lugar; a\xFAn no se renombr\xF3 aqu\xED: {error}",
|
|
"skip.editedDuringSync": "editado durante la sincronizaci\xF3n; se sincronizar\xE1 la pr\xF3xima vez",
|
|
"err.newerFormat": "Este repositorio usa un formato de cifrado m\xE1s reciente. Actualiza el complemento.",
|
|
"err.wrongPass": "Frase de contrase\xF1a incorrecta.",
|
|
"err.decryptFailed": "No se pudo descifrar {path}: frase de contrase\xF1a incorrecta o archivo da\xF1ado",
|
|
"err.notEncrypted": "{path} no est\xE1 cifrado con la clave de esta b\xF3veda",
|
|
"err.overwritePullOnly": "El modo solo descarga nunca cambia el repositorio.",
|
|
"err.overwriteEmpty": "La rama del repositorio est\xE1 vac\xEDa: ejecuta primero una sincronizaci\xF3n normal.",
|
|
"skip.pushCopyTooLarge": "tambi\xE9n cambi\xF3 en {host}; solo respaldar: esa versi\xF3n es demasiado grande para copiarla aqu\xED y queda en el historial del repositorio",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "Historial de sincronizaci\xF3n",
|
|
"cmd.openHistory": "Abrir historial de sincronizaci\xF3n",
|
|
"cmd.useRepo": "Usar la versi\xF3n del repositorio de este archivo",
|
|
"menu.useRepo": "Usar versi\xF3n del repositorio",
|
|
"hist.title": "Historial de sincronizaci\xF3n",
|
|
"hist.filter": "Filtrar por ruta",
|
|
"hist.loadMore": "Cargar m\xE1s",
|
|
"hist.empty": "A\xFAn no hay sincronizaciones.",
|
|
"hist.noMatch": "Ning\xFAn archivo cambiado coincide en las sincronizaciones cargadas hasta ahora. Carga m\xE1s para buscar m\xE1s atr\xE1s.",
|
|
"hist.noFiles": "Esta sincronizaci\xF3n no cambi\xF3 archivos de esta b\xF3veda.",
|
|
"hist.added": "A\xF1adido",
|
|
"hist.modified": "Modificado",
|
|
"hist.deleted": "Eliminado",
|
|
"hist.renamed": "Renombrado",
|
|
"hist.renamedFrom": "(desde {path})",
|
|
"hist.restoreFile": "Restaurar este archivo",
|
|
"hist.before": "Antes ({sha})",
|
|
"hist.after": "Despu\xE9s ({sha})",
|
|
"hist.none": "(no exist\xEDa)",
|
|
"h.pendingFiles": "Mostrar archivos editados",
|
|
"repo.use": "Usar la versi\xF3n del repositorio",
|
|
"repo.useBody": "\xBFReemplazar {path} en este dispositivo por la \xFAltima versi\xF3n de {host}? La versi\xF3n de este dispositivo va primero a la papelera, as\xED que a\xFAn puedes recuperarla.",
|
|
"repo.used": "{path} ahora coincide con {host}. La versi\xF3n anterior est\xE1 en la papelera como {copy}.",
|
|
"repo.restored": "{path} se recuper\xF3 de {host}.",
|
|
"repo.same": "{path} ya coincide con {host}.",
|
|
"repo.missing": "{path} no est\xE1 en {host}: no se cambi\xF3 nada.",
|
|
"repo.failed": "No se pudo usar la versi\xF3n del repositorio: {error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "Revertir este cambio (volver al texto de la \xFAltima sincronizaci\xF3n)",
|
|
"cmd.nextChange": "Ir al siguiente cambio desde la \xFAltima sincronizaci\xF3n",
|
|
"cmd.prevChange": "Ir al cambio anterior desde la \xFAltima sincronizaci\xF3n",
|
|
"cmd.whoChanged": "Mostrar qui\xE9n cambi\xF3 esta l\xEDnea por \xFAltima vez",
|
|
"cm.added": "A\xF1adido desde la \xFAltima sincronizaci\xF3n",
|
|
"cm.changed": "Cambiado desde la \xFAltima sincronizaci\xF3n",
|
|
"cm.deleted": "Eliminado desde la \xFAltima sincronizaci\xF3n",
|
|
"cm.lastSynced": "En la \xFAltima sincronizaci\xF3n:",
|
|
"cm.newLines": "Estas l\xEDneas son nuevas desde la \xFAltima sincronizaci\xF3n.",
|
|
"cm.revert": "Revertir",
|
|
"cm.who": "\xBFQui\xE9n cambi\xF3 esto?",
|
|
"la.title": "Qui\xE9n cambi\xF3 esta l\xEDnea por \xFAltima vez",
|
|
"la.result": "\xDAltimo cambio el {date} desde {device} ({sha}).",
|
|
"la.resultOlder": "\xDAltimo cambio el {date} o antes desde {device} ({sha}). Solo se revisaron las \xFAltimas {n} versiones.",
|
|
"la.local": "Esta l\xEDnea se cambi\xF3 en este dispositivo desde la \xFAltima sincronizaci\xF3n, as\xED que a\xFAn no est\xE1 en ninguna versi\xF3n del repositorio.",
|
|
"la.none": "No se encontr\xF3 historial de este archivo en el repositorio.",
|
|
"la.looking": "Revisando el historial del archivo\u2026",
|
|
"la.failed": "No se pudo leer el historial del archivo: {error}",
|
|
"la.tooBig": "Este archivo es demasiado grande para revisar su historial (m\xE1s de 1 MB).",
|
|
"la.open": "Abrir esta versi\xF3n",
|
|
"s.changeMarkers": "Mostrar en el editor los cambios desde la \xFAltima sincronizaci\xF3n",
|
|
"s.changeMarkersDesc": "Marca junto al texto las l\xEDneas a\xF1adidas, cambiadas y eliminadas. Haz clic o toca una marca para ver el texto de la \xFAltima sincronizaci\xF3n y revertirlo.",
|
|
"cmd.syncMessage": "Sincronizar con un mensaje propio\u2026",
|
|
"cmd.syncClose": "Sincronizar y cerrar Obsidian",
|
|
"cmd.editExcludes": "Editar patrones de exclusi\xF3n",
|
|
"msg.title": "Mensaje del commit",
|
|
"msg.placeholder": "\xBFQu\xE9 ha cambiado?",
|
|
"msg.sync": "Sincronizar",
|
|
"msg.empty": "Escribe un mensaje primero.",
|
|
"menu.excludeFile": "Excluir este archivo de la sincronizaci\xF3n",
|
|
"menu.include": "Incluir en la sincronizaci\xF3n",
|
|
"m.excludeFileBody": "{path} dejar\xE1 de subirse, descargarse o eliminarse en todos los dispositivos. Su copia en el repositorio se queda como est\xE1. No se elimina nada ahora.",
|
|
"m.excludedFile": "{path} ahora est\xE1 excluido de la sincronizaci\xF3n.",
|
|
"m.included": "{path} vuelve a sincronizarse.",
|
|
"m.includeImpossible": "{path} queda fuera por algo distinto de tus patrones de exclusi\xF3n (el alcance de sincronizaci\xF3n de este dispositivo, los archivos ocultos, la carpeta de ajustes o sync: false), as\xED que no se puede incluir desde aqu\xED.",
|
|
"ex.save": "Guardar",
|
|
"ex.saved": "Patrones de exclusi\xF3n guardados.",
|
|
"m.closeSyncing": "Sincronizando antes de cerrar\u2026",
|
|
"m.closeFailed": "La sincronizaci\xF3n no termin\xF3, as\xED que Obsidian sigue abierto: {error}",
|
|
"m.closeNotSynced": "No se pudo sincronizar (sin conexi\xF3n, en pausa o sin configurar), as\xED que Obsidian sigue abierto.",
|
|
"m.syncFileErrors": "No se pudieron sincronizar {count} archivo(s) (primero: {first})",
|
|
"m.closeIncomplete": "No se sincroniz\xF3 todo, as\xED que Obsidian sigue abierto:\n{reasons}",
|
|
"x.excluded": "No se sincroniza",
|
|
"skip.frontmatterPending": "esperando a que Obsidian lea sus propiedades (comprobaci\xF3n de sync: false)",
|
|
"s.commitMsgAuto": "Mensaje del commit para sincronizaciones autom\xE1ticas",
|
|
"s.commitMsgAutoDesc": "Se usa cuando una sincronizaci\xF3n empieza sola (temporizador, ediciones, inicio, volver a la app). D\xE9jalo vac\xEDo para usar el mensaje de arriba.",
|
|
"s.commitPreview": "Vista previa: {msg}",
|
|
"s.repoSubdir": "Carpeta en el repositorio",
|
|
"s.repoSubdirDesc": "Guarda esta b\xF3veda en una carpeta del repositorio (por ejemplo vaults/personal) en lugar de en su ra\xEDz. Los archivos fuera de esa carpeta nunca se descargan, cambian ni eliminan. Cambiarla inicia una comparaci\xF3n nueva que no elimina nada.",
|
|
"s.subdirChangeTitle": "\xBFCambiar la carpeta en el repositorio?",
|
|
"s.subdirChangeBody": "La pr\xF3xima sincronizaci\xF3n compara esta b\xF3veda desde cero con {folder}. No se elimina nada, pero los archivos que ya est\xE9n all\xED se descargan en esta b\xF3veda y los archivos de esta b\xF3veda se suben all\xED.",
|
|
"s.subdirRoot": "la ra\xEDz del repositorio",
|
|
"s.subdirHasFiles": "Esa ubicaci\xF3n ya tiene {count} archivos en el repositorio. Si pertenecen a otra b\xF3veda, se mezclar\xE1n con esta: elige otra carpeta.",
|
|
"s.subdirMaybeFiles": "Si esa ubicaci\xF3n ya contiene archivos de otra b\xF3veda, se mezclar\xE1n con esta.",
|
|
"s.subdirChangeConfirm": "Cambiar carpeta",
|
|
"s.frontmatter": "Respetar sync: false en las propiedades",
|
|
"s.frontmatterDesc": "Las notas con sync: false en sus propiedades se quedan en este dispositivo: nunca se suben, y una copia que ya est\xE9 en el repositorio se mantiene tal cual.",
|
|
"s.statusCountdown": "Mostrar la pr\xF3xima sincronizaci\xF3n en la barra de estado",
|
|
"s.statusCountdownDesc": "Tiempo hasta la pr\xF3xima sincronizaci\xF3n programada, como \xABen 4 min\xBB.",
|
|
"s.statusBranch": "Mostrar la rama en la barra de estado",
|
|
"s.statusBranchDesc": "La rama con la que se sincroniza esta b\xF3veda.",
|
|
"sb.next": "en {n} min",
|
|
"sb.soon": "en menos de un minuto",
|
|
"sb.nextTip": "Pr\xF3xima sincronizaci\xF3n programada",
|
|
"sb.branchTip": "Rama: {branch}",
|
|
"w.subdir": "Carpeta en el repositorio (opcional)",
|
|
"w.subdirDesc": "D\xE9jalo vac\xEDo para usar todo el repositorio. Ind\xEDcala para guardar esta b\xF3veda en una carpeta, por ejemplo cuando varias b\xF3vedas comparten un repositorio."
|
|
};
|
|
|
|
// src/locales/fr.ts
|
|
var fr = {
|
|
"cmd.sync": "Synchroniser maintenant",
|
|
"cmd.review": "V\xE9rifier les modifications et synchroniser",
|
|
"cmd.status": "Ouvrir le panneau d'\xE9tat de la synchronisation",
|
|
"cmd.pull": "R\xE9cup\xE9rer uniquement (t\xE9l\xE9charger les modifications)",
|
|
"cmd.push": "Sauvegarder uniquement (envoyer les modifications)",
|
|
"cmd.preview": "Pr\xE9visualiser la synchronisation (simulation)",
|
|
"cmd.timeline": "Chronologie\xA0: restaurer le coffre ou un dossier \xE0 un \xE9tat ant\xE9rieur",
|
|
"cmd.reset": "Aligner cet appareil sur le d\xE9p\xF4t (abandonner les modifications locales)",
|
|
"cmd.snapshot": "Cr\xE9er un instantan\xE9 de sauvegarde",
|
|
"cmd.wizard": "Lancer l'assistant de configuration",
|
|
"cmd.encryption": "Chiffrement de bout en bout\xA0: activer ou d\xE9verrouiller",
|
|
"cmd.freeSpace": "Lib\xE9rer de l'espace sur cet appareil",
|
|
"cmd.onDemand": "T\xE9l\xE9charger les fichiers absents de cet appareil",
|
|
"cmd.log": "Afficher le journal de synchronisation",
|
|
"cmd.history": "Afficher l'historique du fichier actuel",
|
|
"cmd.compare": "Comparer le fichier actuel avec le d\xE9p\xF4t",
|
|
"cmd.recover": "R\xE9cup\xE9rer des fichiers supprim\xE9s",
|
|
"cmd.openRepo": "Ouvrir le d\xE9p\xF4t dans le navigateur",
|
|
"ribbon.sync": "Synchroniser le coffre",
|
|
"ribbon.status": "\xC9tat de la synchronisation",
|
|
"menu.history": "Historique des versions",
|
|
"menu.compare": "Comparer avec le d\xE9p\xF4t",
|
|
"health.title": "\xC9tat de la synchronisation",
|
|
"health.upToDate": "\xC0 jour",
|
|
"health.syncing": "Synchronisation\u2026",
|
|
"health.failed": "\xC9chec de la derni\xE8re synchronisation",
|
|
"health.attention": "Action requise",
|
|
"health.notSynced": "Pas encore synchronis\xE9",
|
|
"health.notSetUp": "Non configur\xE9",
|
|
"health.syncNow": "Synchroniser maintenant",
|
|
"health.review": "V\xE9rifier\u2026",
|
|
"health.wizard": "Lancer l'assistant de configuration",
|
|
"health.pending": "En attente",
|
|
"health.editedN": "{n} fichier(s) modifi\xE9(s) sur cet appareil depuis la derni\xE8re synchronisation",
|
|
"health.noEdits": "Aucune modification locale en attente",
|
|
"health.remoteAhead": "Le d\xE9p\xF4t contient des modifications plus r\xE9centes provenant d'un autre appareil",
|
|
"health.remoteSame": "Rien de nouveau dans le d\xE9p\xF4t",
|
|
"health.checking": "V\xE9rification du d\xE9p\xF4t\u2026",
|
|
"health.nextSync": "Prochaine synchronisation planifi\xE9e {time}",
|
|
"health.noSchedule": "Aucune synchronisation p\xE9riodique planifi\xE9e",
|
|
"health.conflicts": "Copies en conflit ({n})",
|
|
"health.conflictsHint": "Les deux versions ont \xE9t\xE9 conserv\xE9es. Comparez-les, gardez ce dont vous avez besoin, puis supprimez la copie.",
|
|
"health.compare": "Comparer",
|
|
"health.open": "Ouvrir",
|
|
"health.deleteCopy": "Supprimer la copie",
|
|
"health.skipped": "Ignor\xE9s lors de la derni\xE8re synchronisation ({n})",
|
|
"health.devices": "Appareils",
|
|
"health.thisDevice": "(cet appareil)",
|
|
"health.lastSynced": "derni\xE8re synchronisation {ago}",
|
|
"health.shared": "Dossiers partag\xE9s",
|
|
"health.tools": "Outils",
|
|
"health.timeline": "Chronologie et restauration",
|
|
"health.snapshot": "Cr\xE9er un instantan\xE9",
|
|
"health.reset": "Aligner cet appareil sur le d\xE9p\xF4t",
|
|
"health.freeSpace": "Lib\xE9rer de l'espace",
|
|
"health.log": "Journal de synchronisation",
|
|
"health.settings": "Param\xE8tres",
|
|
"health.openSettings": "Ouvrir les param\xE8tres",
|
|
"health.tryAgain": "R\xE9essayer",
|
|
"health.enterPassphrase": "Saisir la phrase secr\xE8te",
|
|
"health.encrypted": "chiffr\xE9 de bout en bout",
|
|
"notice.upToDate": "Le coffre est \xE0 jour.",
|
|
"notice.synced": "Synchronisation\xA0: {summary}",
|
|
"notice.failed": "\xC9chec de la synchronisation\xA0: {error}",
|
|
"notice.errors": "Synchronisation termin\xE9e avec {n} erreur(s). Ouvrez le panneau d'\xE9tat de la synchronisation pour plus de d\xE9tails.",
|
|
"notice.conflicts": "Synchronisation\xA0: {n} conflit(s). Les deux versions ont \xE9t\xE9 conserv\xE9es\xA0; comparez-les dans le panneau d'\xE9tat de la synchronisation.",
|
|
"notice.busy": "Une synchronisation est en cours. R\xE9essayez dans un instant.",
|
|
"time.never": "jamais",
|
|
"time.now": "\xE0 l'instant",
|
|
"time.min": "il y a {n} min",
|
|
"time.hour": "il y a {n} h",
|
|
"time.day": "il y a {n} j",
|
|
"s.wizard": "Assistant de configuration",
|
|
"s.wizardDesc": "Connectez-vous, choisissez ou cr\xE9ez un d\xE9p\xF4t, et lancez la premi\xE8re synchronisation \xE9tape par \xE9tape.",
|
|
"s.wizardBtn": "Lancer l'assistant de configuration",
|
|
"s.hConnection": "Connexion",
|
|
"s.host": "H\xE9bergeur Git",
|
|
"s.hostDesc": "La prise en charge des h\xE9bergeurs autres que GitHub est en b\xEAta.",
|
|
"s.beta": "b\xEAta",
|
|
"s.token": "Jeton d'acc\xE8s",
|
|
"s.tokenDesc": "Stock\xE9 de mani\xE8re s\xE9curis\xE9e sur cet appareil uniquement (stockage des secrets d'Obsidian), jamais dans les param\xE8tres synchronis\xE9s. Saisissez-le une fois par appareil.",
|
|
"s.tokenPlaceholder": "Collez votre jeton",
|
|
"s.owner": "Propri\xE9taire",
|
|
"s.ownerDesc": "Utilisateur ou organisation propri\xE9taire du d\xE9p\xF4t.",
|
|
"s.ownerDescGitlab": "Chemin de l'utilisateur ou du groupe (sous-groupes autoris\xE9s, par exemple team/notes).",
|
|
"s.ownerDescBitbucket": "Espace de travail propri\xE9taire du d\xE9p\xF4t.",
|
|
"s.ownerPlaceholder": "Nom d'utilisateur",
|
|
"s.repo": "D\xE9p\xF4t",
|
|
"s.repoDesc": "Utilisez un d\xE9p\xF4t priv\xE9.",
|
|
"s.repoPlaceholder": "Nom du d\xE9p\xF4t",
|
|
"s.branch": "Branche",
|
|
"s.check": "V\xE9rifier la configuration",
|
|
"s.checkDesc": "Testez le jeton et le d\xE9p\xF4t, ou cr\xE9ez un nouveau d\xE9p\xF4t priv\xE9.",
|
|
"s.test": "Tester la connexion",
|
|
"s.testNoRepo": "Connect\xE9 en tant que {user}. Indiquez maintenant un nom de d\xE9p\xF4t.",
|
|
"s.testNotFound": "Connect\xE9 en tant que {user}, mais {repo} est introuvable ou inaccessible.",
|
|
"s.testOkPrivate": "OK\xA0: {repo} (priv\xE9).",
|
|
"s.testOkPublic": "OK\xA0: {repo}, mais il est PUBLIC. Pensez \xE0 le rendre priv\xE9.",
|
|
"s.testFailed": "\xC9chec de la connexion\xA0: {error}",
|
|
"s.createRepo": "Cr\xE9er un d\xE9p\xF4t priv\xE9",
|
|
"s.created": "{url} cr\xE9\xE9",
|
|
"s.createFailed": "Impossible de cr\xE9er le d\xE9p\xF4t\xA0: {error}. Certains jetons n\xE9cessitent des autorisations suppl\xE9mentaires pour cela\xA0; vous pouvez aussi le cr\xE9er sur le site de l'h\xE9bergeur.",
|
|
"s.apiBase": "URL de base de l'API",
|
|
"s.apiBaseDesc": "{hint}. Stock\xE9 sur cet appareil uniquement.",
|
|
"s.device": "Nom de l'appareil",
|
|
"s.deviceDesc": "Affich\xE9 dans les messages de commit et les noms des copies en conflit. Stock\xE9 sur cet appareil uniquement.",
|
|
"s.hBehaviour": "Comportement de la synchronisation",
|
|
"s.mode": "Mode",
|
|
"s.modeDesc": "Synchronisation bidirectionnelle, sauvegarde uniquement (envoi, sans jamais modifier les fichiers locaux) ou r\xE9cup\xE9ration uniquement (copie en lecture seule).",
|
|
"s.modeSync": "Synchronisation bidirectionnelle",
|
|
"s.modePush": "Sauvegarde uniquement (push)",
|
|
"s.modePull": "R\xE9cup\xE9ration uniquement (miroir)",
|
|
"s.onStartup": "Synchroniser au d\xE9marrage",
|
|
"s.onStartupDesc": "R\xE9cup\xE9rer et envoyer les modifications \xE0 l'ouverture du coffre.",
|
|
"s.onChange": "Synchroniser apr\xE8s les modifications",
|
|
"s.onChangeDesc": "Synchroniser peu apr\xE8s la fin de vos modifications.",
|
|
"s.delay": "D\xE9lai apr\xE8s modification (secondes)",
|
|
"s.delayDesc": "Temps d'attente apr\xE8s la derni\xE8re modification avant de synchroniser.",
|
|
"s.interval": "Synchronisation p\xE9riodique (minutes)",
|
|
"s.intervalDesc": "Mettez 0 pour la d\xE9sactiver. D\xE9tecte aussi les modifications des param\xE8tres et des fichiers de configuration.",
|
|
"s.onResume": "Synchroniser au retour dans l'application",
|
|
"s.onResumeDesc": "Sur mobile, synchroniser lorsque vous revenez dans Obsidian.",
|
|
"s.onBackground": "Synchroniser quand l'application passe en arri\xE8re-plan",
|
|
"s.onBackgroundDesc": "Tente d'envoyer les modifications lorsque vous quittez Obsidian (mobile) ou masquez la fen\xEAtre.",
|
|
"s.hScope": "\xC9l\xE9ments \xE0 synchroniser",
|
|
"s.configDir": "Synchroniser le dossier des param\xE8tres ({dir})",
|
|
"s.configDirDesc": "Th\xE8mes, extraits CSS, raccourcis clavier, plugins et leurs param\xE8tres. La disposition de l'espace de travail est exclue par d\xE9faut.",
|
|
"s.exclude": "Motifs d'exclusion",
|
|
"s.excludeDesc": "Syntaxe gitignore, un par ligne. {config} d\xE9signe le dossier des param\xE8tres. Les fichiers exclus ne sont jamais envoy\xE9s, t\xE9l\xE9charg\xE9s ni supprim\xE9s.",
|
|
"s.maxSize": "Taille maximale des fichiers en m\xE9gaoctets",
|
|
"s.maxSizeDesc": "Les fichiers plus volumineux sont ignor\xE9s (2000 m\xE9gaoctets au maximum). Sur GitHub sans stockage des fichiers volumineux, la limite est de 100 m\xE9gaoctets, le maximum accept\xE9 par GitHub.",
|
|
"s.delayNow": "Actuellement : {n} secondes.",
|
|
"s.resetConfirm": "La prochaine synchronisation compare chaque fichier avec le d\xE9p\xF4t. Rien n'est supprim\xE9 ; les fichiers diff\xE9rents sont conserv\xE9s en deux versions, vous aurez donc peut-\xEAtre des copies de conflit \xE0 trier.",
|
|
"m.restoreOverBody": "{path} sur cet appareil diff\xE8re de la version du {date}. La restauration remplace son contenu actuel. Utilisez \xAB Restaurer en tant que copie \xBB pour garder les deux.",
|
|
"s.lfs": "Seuil de stockage des fichiers volumineux en m\xE9gaoctets",
|
|
"s.lfsDesc": "Les fichiers d'au moins cette taille sont conserv\xE9s dans le stockage des fichiers volumineux de l'h\xE9bergeur plut\xF4t que dans le d\xE9p\xF4t, ce qui garde le d\xE9p\xF4t l\xE9ger et rapide. Mettez 0 pour le d\xE9sactiver. V\xE9rifiez le quota de stockage de votre h\xE9bergeur, car les offres gratuites sont limit\xE9es. Lorsqu'il est activ\xE9, la taille maximale des fichiers ci-dessus peut aller jusqu'\xE0 2000 m\xE9gaoctets.",
|
|
"s.hEncryption": "Chiffrement de bout en bout",
|
|
"s.encOn": "Le chiffrement est activ\xE9 (d\xE9verrouill\xE9 sur cet appareil)",
|
|
"s.encOnDesc": "Les notes, pi\xE8ces jointes et noms de fichiers sont chiffr\xE9s avant l'envoi. Les autres appareils ont besoin de la m\xEAme phrase secr\xE8te.",
|
|
"s.encRemovePlain": "Supprimer les copies non chiffr\xE9es\u2026",
|
|
"s.encLock": "Verrouiller cet appareil",
|
|
"s.encOff": "Chiffrer votre coffre",
|
|
"s.encOffDesc": "D\xE9finissez une phrase secr\xE8te pour que l'h\xE9bergeur du d\xE9p\xF4t ne voie jamais que des donn\xE9es illisibles. Utilisez aussi cette option pour d\xE9verrouiller un d\xE9p\xF4t d\xE9j\xE0 chiffr\xE9 par un autre appareil.",
|
|
"s.encTurnOn": "Activer ou d\xE9verrouiller\u2026",
|
|
"s.hShared": "Dossiers partag\xE9s",
|
|
"s.sharedIntro": "Synchronisez un dossier avec son propre d\xE9p\xF4t (par exemple un dossier d'\xE9quipe) tandis que le reste du coffre reste priv\xE9.",
|
|
"s.sharedRowDesc": "{host}, branche {branch}",
|
|
"s.sharedRemove": "Ne plus synchroniser ce dossier s\xE9par\xE9ment",
|
|
"s.sharedAdd": "Ajouter un dossier partag\xE9",
|
|
"s.sharedAddBtn": "Ajouter un dossier partag\xE9\u2026",
|
|
"s.hDevice": "Cet appareil uniquement",
|
|
"s.deviceIntro": "Ces choix sont stock\xE9s sur cet appareil et ne sont pas synchronis\xE9s\xA0: un t\xE9l\xE9phone peut donc synchroniser moins qu'un ordinateur portable. Les fichiers hors du p\xE9rim\xE8tre de cet appareil ne sont jamais envoy\xE9s, t\xE9l\xE9charg\xE9s ni supprim\xE9s depuis celui-ci, et restent en s\xE9curit\xE9 dans le d\xE9p\xF4t.",
|
|
"s.include": "Synchroniser uniquement ces dossiers",
|
|
"s.includeDesc": "Un dossier ou motif par ligne, par exemple daily/ ou projects/. Laissez vide pour tout synchroniser.",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "Exclure aussi sur cet appareil",
|
|
"s.deviceExcludeDesc": "Syntaxe gitignore, un par ligne, par exemple attachments/ ou *.mp4",
|
|
"s.maxDownload": "Ne pas t\xE9l\xE9charger les fichiers d\xE9passant cette taille (Mo)",
|
|
"s.maxDownloadDesc": "Les pi\xE8ces jointes volumineuses restent dans le d\xE9p\xF4t et peuvent \xEAtre t\xE9l\xE9charg\xE9es \xE0 la demande. 0 = aucune limite. Valeur par d\xE9faut sur t\xE9l\xE9phone\xA0: 25.",
|
|
"s.onDemand": "Fichiers disponibles \xE0 la demande",
|
|
"s.onDemandDesc": "{n} fichier(s) volumineux se trouve(nt) dans le d\xE9p\xF4t mais pas sur cet appareil. {pinned} fichier(s) ont \xE9t\xE9 t\xE9l\xE9charg\xE9s \xE0 la demande et restent synchronis\xE9s.",
|
|
"s.onDemandBrowse": "Parcourir et t\xE9l\xE9charger\u2026",
|
|
"s.onDemandForget": "Oublier la liste \xE0 la demande",
|
|
"s.onDemandForgotten": "Liste \xE0 la demande effac\xE9e. Utilisez \xAB\xA0Lib\xE9rer de l'espace\xA0\xBB pour supprimer ces copies locales.",
|
|
"s.freeSpace": "Lib\xE9rer de l'espace",
|
|
"s.freeSpaceDesc": "Supprime les copies locales des fichiers que cet appareil ne synchronise pas, uniquement lorsqu'elles sont identiques \xE0 la copie du d\xE9p\xF4t.",
|
|
"s.freeSpaceBtn": "Lib\xE9rer de l'espace\u2026",
|
|
"s.hConflicts": "Conflits et s\xE9curit\xE9",
|
|
"s.strategy": "Quand un fichier a \xE9t\xE9 modifi\xE9 des deux c\xF4t\xE9s",
|
|
"s.strategyAuto": "Fusionner automatiquement (recommand\xE9)",
|
|
"s.strategyMarkers": "Fusionner, marquer les chevauchements avec des marqueurs <<<<<<<",
|
|
"s.strategyBoth": "Garder les deux (enregistrer ma version comme copie)",
|
|
"s.strategyAsk": "Me demander \xE0 chaque fois",
|
|
"s.strategyLocal": "Cet appareil l'emporte",
|
|
"s.strategyRemote": "{host} l'emporte",
|
|
"s.review": "V\xE9rifier avant une synchronisation manuelle",
|
|
"s.reviewDesc": "Lorsque vous lancez une synchronisation manuellement, afficher d'abord chaque modification en attente avec les diff\xE9rences et des cases \xE0 cocher. Les synchronisations automatiques ne sont pas concern\xE9es.",
|
|
"s.eol": "Ignorer les changements portant uniquement sur les fins de ligne",
|
|
"s.eolDesc": "Un fichier dont seul le style de fin de ligne a chang\xE9 est consid\xE9r\xE9 comme inchang\xE9, afin que les \xE9diteurs d'autres syst\xE8mes d'exploitation ne provoquent pas d'envois ou de conflits inutiles.",
|
|
"s.guard": "Protection contre les suppressions",
|
|
"s.guardDesc": "Demander confirmation avant qu'une synchronisation supprime de nombreux fichiers \xE0 la fois.",
|
|
"s.guardThreshold": "Seuil de protection contre les suppressions",
|
|
"s.guardThresholdDesc": "Demander confirmation lors de la suppression de plus de ce nombre de fichiers (\xE0 gauche) ou de ce pourcentage du coffre (\xE0 droite), selon la valeur la plus \xE9lev\xE9e.",
|
|
"s.hBackup": "Sauvegarde",
|
|
"s.snapshot": "Instantan\xE9 quotidien",
|
|
"s.snapshotDesc": "Une fois par jour, marquer l'\xE9tat actuel du d\xE9p\xF4t avec un instantan\xE9 dat\xE9 pour pouvoir toujours y revenir.",
|
|
"s.hAdvanced": "Avanc\xE9",
|
|
"s.commitMsg": "Message de commit",
|
|
"s.commitMsgDesc": "Variables\xA0: {{device}}, {{summary}}, {{date}}, {{count}}, {{files}}, {{trigger}}, {{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "Analyse compl\xE8te toutes les (minutes)",
|
|
"s.fullScanDesc": "Entre deux analyses compl\xE8tes, seuls les fichiers signal\xE9s comme modifi\xE9s par Obsidian sont rev\xE9rifi\xE9s, et le dossier des param\xE8tres est lu sur le disque au plus toutes les 5 minutes. Garde les t\xE9l\xE9phones rapides.",
|
|
"s.notices": "Notifications",
|
|
"s.noticesAll": "Chaque synchronisation",
|
|
"s.noticesErrors": "Erreurs et conflits uniquement",
|
|
"s.noticesNone": "Aucune",
|
|
"s.resetState": "R\xE9initialiser l'\xE9tat de synchronisation",
|
|
"s.resetStateDesc": "Oublie ce qui a \xE9t\xE9 synchronis\xE9 en dernier sur cet appareil. La prochaine synchronisation compare tout et ne supprime jamais rien\xA0; les fichiers diff\xE9rents sont conserv\xE9s en deux versions.",
|
|
"s.resetBtn": "R\xE9initialiser",
|
|
"s.resetDone": "\xC9tat de synchronisation r\xE9initialis\xE9.",
|
|
"w.stepConnect": "Connexion",
|
|
"w.stepRepo": "D\xE9p\xF4t",
|
|
"w.stepVault": "Ce coffre",
|
|
"w.stepSync": "Premi\xE8re synchronisation",
|
|
"w.title": "Configurer la synchronisation du coffre",
|
|
"w.sub": "Vos notes sont stock\xE9es dans un d\xE9p\xF4t Git priv\xE9 qui vous appartient, sur GitHub, GitLab, Codeberg, Gitea, Forgejo ou Bitbucket. Fonctionne sur ordinateur et sur mobile\xA0; rien \xE0 installer.",
|
|
"w.where": "O\xF9 votre coffre doit-il \xEAtre stock\xE9\xA0?",
|
|
"w.apiUrl": "URL de l'API du serveur",
|
|
"w.deviceName": "Nommez cet appareil",
|
|
"w.deviceNameDesc": "Affich\xE9 dans l'historique et sur les copies en conflit.",
|
|
"w.signedIn": "Connect\xE9 en tant que {user}",
|
|
"w.tokenFailed": "Ce jeton n'a pas fonctionn\xE9\xA0: {error}",
|
|
"w.alreadyConnected": "D\xE9j\xE0 connect\xE9 sur cet appareil",
|
|
"w.continue": "Continuer",
|
|
"w.connectWith": "Se connecter avec un jeton {host}",
|
|
"w.tokenStored": "Le jeton est stock\xE9 de mani\xE8re s\xE9curis\xE9e sur cet appareil uniquement, jamais dans les param\xE8tres synchronis\xE9s.",
|
|
"w.token": "Jeton",
|
|
"w.pasteFirst": "Collez d'abord un jeton.",
|
|
"w.repoTitle": "Choisir un d\xE9p\xF4t",
|
|
"w.repoSub": "Connect\xE9 en tant que {user}. Choisissez le d\xE9p\xF4t de ce coffre ou cr\xE9ez-en un nouveau, priv\xE9.",
|
|
"w.createNew": "Cr\xE9er un nouveau d\xE9p\xF4t priv\xE9",
|
|
"w.create": "Cr\xE9er",
|
|
"w.createFailed": "Impossible de cr\xE9er le d\xE9p\xF4t\xA0: {error}. Certains jetons n\xE9cessitent des autorisations suppl\xE9mentaires pour cela\xA0; vous pouvez aussi le cr\xE9er sur le site de l'h\xE9bergeur puis le choisir ci-dessous.",
|
|
"w.useExisting": "Ou utiliser un d\xE9p\xF4t existant",
|
|
"w.filter": "Filtrer\u2026",
|
|
"w.loadingRepos": "Chargement de vos d\xE9p\xF4ts\u2026",
|
|
"w.noMatch": "Aucun d\xE9p\xF4t ne correspond.",
|
|
"w.private": "priv\xE9",
|
|
"w.public": "PUBLIC",
|
|
"w.publicTitle": "D\xE9p\xF4t public",
|
|
"w.publicBody": "{repo} est public\xA0: n'importe qui sur Internet pourrait lire vos notes. Utilisez un d\xE9p\xF4t priv\xE9, sauf si vous souhaitez les publier.",
|
|
"w.useAnyway": "L'utiliser quand m\xEAme",
|
|
"w.listFailed": "Impossible de lister les d\xE9p\xF4ts\xA0: {error}",
|
|
"w.back": "Retour",
|
|
"w.vaultTitle": "Ce coffre et le d\xE9p\xF4t",
|
|
"w.looking": "Examen des deux c\xF4t\xE9s\u2026",
|
|
"w.readFailed": "Impossible de lire le d\xE9p\xF4t\xA0: {error}",
|
|
"w.counts": "Ce coffre\xA0: {local} fichier(s) \xB7 D\xE9p\xF4t\xA0: {remote} fichier(s)",
|
|
"w.optUpload": "Envoyer ce coffre",
|
|
"w.optUploadDesc": "C'est le premier appareil. Tout son contenu est copi\xE9 vers le d\xE9p\xF4t.",
|
|
"w.optDownload": "T\xE9l\xE9charger le coffre depuis le d\xE9p\xF4t",
|
|
"w.optDownloadDesc": "Cet appareil est nouveau. Les fichiers du d\xE9p\xF4t remplacent les \xE9ventuels fichiers de d\xE9part pr\xE9sents ici.",
|
|
"w.optMerge": "Fusionner, garder les deux en cas de diff\xE9rence",
|
|
"w.optMergeDesc": "Rien n'est \xE9cras\xE9\xA0; les fichiers diff\xE9rents sont conserv\xE9s c\xF4te \xE0 c\xF4te.",
|
|
"w.optMergeSafe": "Fusionner, garder les deux en cas de diff\xE9rence (le plus s\xFBr)",
|
|
"w.optMergeSafeDesc": "Les fichiers pr\xE9sents d'un seul c\xF4t\xE9 sont copi\xE9s. Les fichiers diff\xE9rents sont conserv\xE9s c\xF4te \xE0 c\xF4te.",
|
|
"w.optRemoteWins": "Fusionner, le d\xE9p\xF4t l'emporte en cas de diff\xE9rence",
|
|
"w.optRemoteWinsDesc": "Utiliser la version du d\xE9p\xF4t lorsqu'un fichier existe des deux c\xF4t\xE9s. La version de cet appareil est plac\xE9e dans la corbeille.",
|
|
"w.optLocalWins": "Fusionner, cet appareil l'emporte en cas de diff\xE9rence",
|
|
"w.optLocalWinsDesc": "Utiliser la version de cet appareil lorsqu'un fichier existe des deux c\xF4t\xE9s.",
|
|
"w.neverDeletes": "Rien n'est jamais supprim\xE9 lors de la premi\xE8re synchronisation.",
|
|
"w.encrypted": "\u{1F512} Ce d\xE9p\xF4t est chiffr\xE9 de bout en bout. D\xE9verrouillez-le pour continuer.",
|
|
"w.encryptOpt": "Chiffrer de bout en bout (facultatif)",
|
|
"w.encryptOptDesc": "L'h\xE9bergeur du d\xE9p\xF4t ne voit que des donn\xE9es illisibles. Chaque appareil aura besoin de cette phrase secr\xE8te, et elle ne peut pas \xEAtre r\xE9cup\xE9r\xE9e.",
|
|
"w.passphrase": "Phrase secr\xE8te",
|
|
"w.encOnDevice": "\u{1F512} Le chiffrement de bout en bout est activ\xE9 sur cet appareil.",
|
|
"w.alsoConfig": "Synchroniser aussi les param\xE8tres, th\xE8mes et plugins ({dir})",
|
|
"w.start": "Lancer la premi\xE8re synchronisation",
|
|
"w.unlockFirst": "D\xE9verrouillez d'abord le d\xE9p\xF4t chiffr\xE9.",
|
|
"w.saveTitle": "Enregistrez votre phrase secr\xE8te",
|
|
"w.saveBody": "Avez-vous enregistr\xE9 cette phrase secr\xE8te en lieu s\xFBr\xA0? Il est impossible de la r\xE9cup\xE9rer, et sans elle la copie du d\xE9p\xF4t est illisible.",
|
|
"w.saved": "Je l'ai enregistr\xE9e",
|
|
"w.syncTitle": "Premi\xE8re synchronisation",
|
|
"w.syncSub": "Cela peut prendre un moment pour un coffre volumineux. Vous pouvez fermer cette fen\xEAtre\xA0; la synchronisation se poursuit en arri\xE8re-plan.",
|
|
"w.starting": "D\xE9marrage\u2026",
|
|
"w.doneTitle": "Tout est pr\xEAt",
|
|
"w.tip1": "La synchronisation s'ex\xE9cute au d\xE9marrage, apr\xE8s les modifications et p\xE9riodiquement. Le bouton du ruban synchronise imm\xE9diatement.",
|
|
"w.tip2": "Le panneau d'\xE9tat de la synchronisation (ic\xF4ne d'activit\xE9) montre ce qui est en attente et ce qui requiert votre attention.",
|
|
"w.tip3": "Sur chaque autre appareil\xA0: installez le plugin et lancez cet assistant avec le m\xEAme d\xE9p\xF4t.",
|
|
"w.openStatus": "Ouvrir l'\xE9tat de la synchronisation",
|
|
"w.done": "Termin\xE9",
|
|
"e.passShort": "Utilisez au moins 12 caract\xE8res. Quelques mots al\xE9atoires conviennent bien.",
|
|
"e.passOk": "Acceptable. Plus elle est longue, plus elle est robuste\xA0: 16 caract\xE8res ou plus, ou 4 mots al\xE9atoires ou plus.",
|
|
"e.passStrong": "Robuste.",
|
|
"e.checking": "V\xE9rification du d\xE9p\xF4t\u2026",
|
|
"e.unlockTitle": "D\xE9verrouiller le coffre chiffr\xE9",
|
|
"e.upgrade": "Mettre \xE0 niveau le chiffrement\u2026",
|
|
"e.upgradeDesc": "Ce d\xE9p\xF4t utilise l\u2019ancien format : le contenu chiffr\xE9 d\u2019un fichier n\u2019est pas li\xE9 \xE0 son nom, si bien qu\u2019une personne ayant un acc\xE8s en \xE9criture pourrait \xE9changer deux fichiers sans que cela se voie. La mise \xE0 niveau rechiffre chaque fichier une fois, avec la m\xEAme phrase secr\xE8te, pour qu\u2019il ne s\u2019ouvre plus que sous son propre nom.",
|
|
"e.upgradeTitle": "Mettre \xE0 niveau le chiffrement de bout en bout",
|
|
"e.upgradeBody": "Cet appareil se synchronise d\u2019abord, puis chaque fichier chiffr\xE9 du d\xE9p\xF4t est rechiffr\xE9 et renvoy\xE9 en un seul commit (m\xEAme phrase secr\xE8te). Les autres appareils basculent \xE0 leur prochaine synchronisation. Les appareils avec une version du plugin ant\xE9rieure \xE0 1.8.0 ne peuvent pas lire le nouveau format et cessent de se synchroniser jusqu\u2019\xE0 leur mise \xE0 jour.",
|
|
"e.upgradeConfirm": "Mettre \xE0 niveau",
|
|
"e.upgraded": "Chiffrement mis \xE0 niveau : {n} fichier(s) rechiffr\xE9(s).",
|
|
"e.upgradeFailed": "Impossible de mettre \xE0 niveau le chiffrement : {error}",
|
|
"e.unlockBody": "Ce d\xE9p\xF4t est chiffr\xE9 de bout en bout. Saisissez sa phrase secr\xE8te pour synchroniser sur cet appareil. La cl\xE9 est conserv\xE9e dans le stockage s\xE9curis\xE9 de cet appareil.",
|
|
"e.unlocking": "D\xE9verrouillage\u2026 (cela prend volontairement une seconde)",
|
|
"e.unlocked": "Coffre chiffr\xE9 d\xE9verrouill\xE9 sur cet appareil.",
|
|
"e.unlock": "D\xE9verrouiller",
|
|
"e.enableTitle": "Activer le chiffrement de bout en bout",
|
|
"e.point1": "Les notes, pi\xE8ces jointes et noms de fichiers sont chiffr\xE9s sur cet appareil avant l'envoi. L'h\xE9bergeur du d\xE9p\xF4t ne stocke que des donn\xE9es illisibles.",
|
|
"e.point2": "Chaque appareil a besoin de la m\xEAme phrase secr\xE8te. Il est impossible de la r\xE9cup\xE9rer\xA0: si vous l'oubliez, la copie du d\xE9p\xF4t sera illisible.",
|
|
"e.point3": "Si ce d\xE9p\xF4t contient d\xE9j\xE0 des notes non chiffr\xE9es, elles restent dans son historique. Pour une confidentialit\xE9 totale, utilisez un nouveau d\xE9p\xF4t vide.",
|
|
"e.point4": "Vous ne pourrez plus parcourir les notes sur le site de l'h\xE9bergeur\xA0; utilisez plut\xF4t l'historique et la chronologie du plugin.",
|
|
"e.repeat": "R\xE9p\xE9ter la phrase secr\xE8te",
|
|
"e.ack": "J'ai enregistr\xE9 la phrase secr\xE8te en lieu s\xFBr, par exemple dans un gestionnaire de mots de passe",
|
|
"e.turnOn": "Activer le chiffrement",
|
|
"e.mismatch": "Les phrases secr\xE8tes ne correspondent pas.",
|
|
"e.confirmSaved": "Veuillez confirmer que vous avez enregistr\xE9 la phrase secr\xE8te.",
|
|
"e.settingUp": "Configuration\u2026 (cela prend volontairement une seconde)",
|
|
"e.enabled": "Le chiffrement est activ\xE9. La prochaine synchronisation enverra tout sous forme chiffr\xE9e.",
|
|
"sh.intro": "Synchronisez un dossier avec son propre d\xE9p\xF4t, par exemple un dossier d'\xE9quipe, tandis que le reste de votre coffre reste dans votre d\xE9p\xF4t priv\xE9. Le dossier correspond \xE0 la racine de ce d\xE9p\xF4t, ou \xE0 un dossier qu'il contient.",
|
|
"sh.folder": "Dossier",
|
|
"sh.folderPlaceholder": "Travail",
|
|
"sh.ownerDesc": "Utilisateur, organisation, groupe ou espace de travail du d\xE9p\xF4t partag\xE9.",
|
|
"sh.token": "Jeton (facultatif)",
|
|
"sh.tokenDesc": "Laissez vide pour utiliser votre jeton principal (m\xEAme h\xE9bergeur uniquement). Stock\xE9 de mani\xE8re s\xE9curis\xE9e sur cet appareil.",
|
|
"sh.note": "Les fichiers d\xE9j\xE0 pr\xE9sents dans ce dossier dans votre d\xE9p\xF4t principal y restent (dans son historique) mais n'y sont plus synchronis\xE9s. Le chiffrement ne s'applique pas aux dossiers partag\xE9s, car les collaborateurs doivent pouvoir les lire.",
|
|
"sh.add": "Ajouter",
|
|
"sh.required": "Le dossier, le propri\xE9taire et le d\xE9p\xF4t sont obligatoires.",
|
|
"sh.overlap": "Ce dossier chevauche un dossier partag\xE9 existant.",
|
|
"sh.checking": "V\xE9rification de l'acc\xE8s\u2026",
|
|
"sh.noAccess": "Impossible d'acc\xE9der \xE0 {repo}\xA0: {error}",
|
|
"sh.added": "Dossier partag\xE9 ajout\xE9\xA0: {folder} \u2194 {repo}",
|
|
"u.andMore": "\u2026et {n} de plus",
|
|
"u.binaryDiff": "Fichier binaire\xA0: pas de comparaison textuelle. {a}\xA0: {as} octets \xB7 {b}\xA0: {bs} octets.",
|
|
"u.loadFailed": "Impossible de charger\xA0: {error}",
|
|
"u.conflictTitle": "Conflit\xA0: {path}",
|
|
"u.repository": "D\xE9p\xF4t",
|
|
"u.conflictBody": "Ce fichier a \xE9t\xE9 modifi\xE9 sur cet appareil et dans le d\xE9p\xF4t ({host}) depuis la derni\xE8re synchronisation.",
|
|
"u.pickHint": "Pour chaque modification, choisissez la version \xE0 conserver. Choisir les deux place d'abord les lignes de cet appareil.",
|
|
"u.thisDevice": "Cet appareil",
|
|
"u.chooseChanges": "Choisir les modifications",
|
|
"u.fullDiff": "Diff\xE9rences compl\xE8tes",
|
|
"u.apply": "Appliquer mes choix",
|
|
"u.binaryConflict": "Fichier binaire. Cet appareil\xA0: {a} octets \xB7 {host}\xA0: {b} octets.",
|
|
"u.wholeFile": "Ou garder un fichier entier",
|
|
"u.keepBoth": "Garder les deux fichiers",
|
|
"u.markers": "Fusionner avec des marqueurs",
|
|
"u.guardTitle": "Suppression massive d\xE9tect\xE9e",
|
|
"u.guardBody": "Cette synchronisation supprimerait {n} fichiers. Veuillez confirmer que c'est voulu.",
|
|
"u.guardLocal": "Supprimer sur cet appareil (d\xE9plac\xE9s vers la corbeille)\xA0: {n}",
|
|
"u.guardRemote": "Supprimer dans le d\xE9p\xF4t (conserv\xE9s dans l'historique)\xA0: {n}",
|
|
"u.cancelSync": "Annuler la synchronisation",
|
|
"u.skipDeletes": "Synchroniser sans les suppressions",
|
|
"u.deleteThem": "Les supprimer",
|
|
"u.gDownload": "T\xE9l\xE9charger depuis le d\xE9p\xF4t",
|
|
"u.gUpload": "Envoyer vers le d\xE9p\xF4t",
|
|
"u.gMoveLocal": "Renomm\xE9 ailleurs (renommer ici)",
|
|
"u.gAdopt": "Renomm\xE9 ici, modifi\xE9 ailleurs",
|
|
"u.gRenameMerge": "Renomm\xE9 et modifi\xE9 des deux c\xF4t\xE9s (fusion)",
|
|
"u.gConflict": "Modifi\xE9 des deux c\xF4t\xE9s",
|
|
"u.gDeleteLocal": "Supprimer sur cet appareil",
|
|
"u.gDeleteRemote": "Supprimer dans le d\xE9p\xF4t",
|
|
"u.reviewTitle": "V\xE9rifier les modifications",
|
|
"u.upToDate": "Tout est \xE0 jour.",
|
|
"u.reviewHint": "D\xE9cochez ce que vous ne voulez pas encore synchroniser. Les fichiers d\xE9coch\xE9s restent inchang\xE9s des deux c\xF4t\xE9s jusqu'\xE0 une synchronisation ult\xE9rieure.",
|
|
"u.cancel": "Annuler",
|
|
"u.syncAll": "Tout synchroniser",
|
|
"u.syncSelected": "Synchroniser la s\xE9lection ({n})",
|
|
"u.logTitle": "Journal de synchronisation",
|
|
"u.noActivity": "Aucune activit\xE9 de synchronisation pour l'instant.",
|
|
"u.loading": "Chargement depuis le d\xE9p\xF4t\u2026",
|
|
"u.nothingFound": "Aucun r\xE9sultat.",
|
|
"u.failed": "\xC9chec\xA0: {error}",
|
|
"u.currentFile": "Fichier actuel",
|
|
"u.thisVersion": "Cette version",
|
|
"u.compareCurrent": "Comparer avec la version actuelle",
|
|
"u.fullVersion": "Version compl\xE8te",
|
|
"u.restoreCopy": "Restaurer en tant que copie",
|
|
"u.restoreThis": "Restaurer cette version",
|
|
"u.pickFolder": "Choisir un dossier \xE0 restaurer",
|
|
"u.pickRemoteOnly": "T\xE9l\xE9charger un fichier absent de cet appareil",
|
|
"u.timelineTitle": "Chronologie",
|
|
"u.timelineHint": "Chaque synchronisation est un point auquel vous pouvez revenir. La restauration ajoute un nouveau commit par-dessus, l'\xE9tat actuel reste donc lui aussi dans l'historique.",
|
|
"u.browseFiles": "Parcourir les fichiers",
|
|
"u.restoreFolder": "Restaurer un dossier\u2026",
|
|
"u.restoreVault": "Restaurer tout le coffre",
|
|
"d.unified": "Unifi\xE9",
|
|
"d.split": "C\xF4te \xE0 c\xF4te",
|
|
"d.same": "Aucune diff\xE9rence.",
|
|
"d.unchanged": "\u22EF {n} ligne(s) inchang\xE9e(s)",
|
|
"d.both": "Les deux",
|
|
"d.change": "Modification {n}",
|
|
"d.nothing": "(rien)",
|
|
"d.identical": "Les deux versions sont identiques.",
|
|
"m.embedMissing": "{path} ({mb} Mo) n'est pas t\xE9l\xE9charg\xE9 sur cet appareil.",
|
|
"m.download": "T\xE9l\xE9charger",
|
|
"m.downloadingOne": "T\xE9l\xE9chargement de {path}\u2026",
|
|
"m.downloadingMany": "T\xE9l\xE9chargement de {n} fichiers\u2026",
|
|
"m.allLocal": "Tous les fichiers sont sur cet appareil.",
|
|
"m.plainTitle": "Supprimer les copies non chiffr\xE9es",
|
|
"m.plainBody": "Supprimer ces fichiers non chiffr\xE9s du d\xE9p\xF4t en un seul commit. Vos notes restent en s\xE9curit\xE9\xA0: leurs copies chiffr\xE9es sont d\xE9j\xE0 envoy\xE9es. Remarque\xA0: les versions ant\xE9rieures restent dans l'historique du d\xE9p\xF4t.",
|
|
"m.deleteFrom": "Supprimer de {host}",
|
|
"m.remove": "Supprimer",
|
|
"m.plainRemoved": "{n} fichier(s) non chiffr\xE9(s) supprim\xE9(s) du d\xE9p\xF4t.",
|
|
"m.plainNone": "Aucun fichier non chiffr\xE9 trouv\xE9.",
|
|
"m.removeFailed": "Impossible de supprimer les fichiers\xA0: {error}",
|
|
"m.firstFailed": "La premi\xE8re synchronisation a \xE9chou\xE9\xA0: {error}. Vous pouvez r\xE9essayer depuis le panneau d'\xE9tat de la synchronisation.",
|
|
"m.syncFinished": "Synchronisation termin\xE9e.",
|
|
"m.alreadyInSync": "Tout \xE9tait d\xE9j\xE0 synchronis\xE9.",
|
|
"m.nDownloaded": "{n} t\xE9l\xE9charg\xE9(s)",
|
|
"m.nUploaded": "{n} envoy\xE9(s)",
|
|
"m.nBoth": "{n} conserv\xE9(s) en deux versions",
|
|
"m.nSkipped": "{n} ignor\xE9(s) (voir le panneau d'\xE9tat)",
|
|
"m.firstDone": "Premi\xE8re synchronisation termin\xE9e\xA0: {summary}.",
|
|
"m.noChanges": "aucune modification",
|
|
"m.freeBody": "Supprimer {n} fichier(s) local(aux) ({mb} Mo) que cet appareil ne synchronise pas (hors de ses dossiers ou au-del\xE0 de sa limite de t\xE9l\xE9chargement). Chacun est identique \xE0 la copie du d\xE9p\xF4t, qui est conserv\xE9e. Ils sont plac\xE9s dans la corbeille.",
|
|
"m.removeHere": "Supprimer de cet appareil",
|
|
"m.freeNothing": "Rien \xE0 supprimer\xA0: aucun fichier local hors du p\xE9rim\xE8tre de cet appareil n'est en s\xE9curit\xE9 dans le d\xE9p\xF4t.",
|
|
"m.freed": "{mb} Mo lib\xE9r\xE9s.",
|
|
"m.freeFailed": "Impossible de lib\xE9rer de l'espace\xA0: {error}",
|
|
"m.needToken": "Ajoutez un jeton d'acc\xE8s dans Param\xE8tres \u2192 Vault Sync for Git.",
|
|
"m.needRepo": "Indiquez le propri\xE9taire et le nom du d\xE9p\xF4t dans les param\xE8tres du plugin.",
|
|
"m.snapshotOk": "Instantan\xE9 cr\xE9\xE9\xA0: {tag}",
|
|
"m.snapshotFailed": "\xC9chec de l'instantan\xE9\xA0: {error}",
|
|
"m.reviewFailed": "Impossible de pr\xE9parer la v\xE9rification\xA0: {error}",
|
|
"m.filesAt": "Fichiers au commit {sha} ({date})",
|
|
"m.bytes": "{n} octets",
|
|
"m.whatFolder": "dossier \xAB\xA0{folder}\xA0\xBB",
|
|
"m.whatVault": "coffre entier",
|
|
"m.restoring": "Restauration du {what}\u2026",
|
|
"m.restoreTitle": "Restaurer le {what}",
|
|
"m.restoreBody": "Ramener le {what} \xE0 son \xE9tat du {date} ({sha}). Cette op\xE9ration est ajout\xE9e sous forme de nouveau commit\xA0: la version actuelle reste dans l'historique et vous pouvez l'annuler de la m\xEAme mani\xE8re.",
|
|
"m.restoredOlder": "Restaur\xE9 \xE0 la version ant\xE9rieure",
|
|
"m.broughtBack": "R\xE9tabli (supprim\xE9 depuis)",
|
|
"m.removedSince": "Supprim\xE9 (cr\xE9\xE9 depuis)",
|
|
"m.restore": "Restaurer",
|
|
"m.restored": "Restauration du {what} effectu\xE9e\xA0: {n} fichier(s) modifi\xE9(s).",
|
|
"m.restoreSame": "Le {what} correspond d\xE9j\xE0 \xE0 ce point dans le temps.",
|
|
"m.restoreFailed": "\xC9chec de la restauration\xA0: {error}",
|
|
"m.comparing": "Comparaison avec le d\xE9p\xF4t\u2026",
|
|
"m.resetBody": "Abandonner les modifications non synchronis\xE9es de cet appareil et en faire une copie exacte du d\xE9p\xF4t. Les fichiers remplac\xE9s et supprim\xE9s sont d'abord d\xE9plac\xE9s vers la corbeille, vous pouvez donc encore les r\xE9cup\xE9rer.",
|
|
"m.replacedWith": "Remplac\xE9 par la version de {host}",
|
|
"m.downloaded": "T\xE9l\xE9charg\xE9",
|
|
"m.removedNotInRepo": "Supprim\xE9 (absent du d\xE9p\xF4t)",
|
|
"m.matchRepo": "Aligner sur le d\xE9p\xF4t",
|
|
"m.matched": "Cet appareil correspond maintenant au d\xE9p\xF4t ({n} fichier(s) modifi\xE9(s)).",
|
|
"m.alreadyMatches": "Cet appareil correspond d\xE9j\xE0 au d\xE9p\xF4t.",
|
|
"m.resetFailed": "\xC9chec de la r\xE9initialisation\xA0: {error}",
|
|
"m.repoNotFound": "D\xE9p\xF4t introuvable. V\xE9rifiez les param\xE8tres de connexion.",
|
|
"m.history": "Historique\xA0: {path}",
|
|
"m.notInVersion": "Le fichier n'existait pas dans cette version.",
|
|
"m.restoredFile": "{path} restaur\xE9. Il sera envoy\xE9 lors de la prochaine synchronisation.",
|
|
"m.versionFailed": "Impossible de charger la version\xA0: {error}",
|
|
"m.recentlyDeleted": "Fichiers supprim\xE9s r\xE9cemment",
|
|
"m.deletedOn": "Supprim\xE9 le {date} \xB7 {msg}",
|
|
"h.notConnected": "Pas encore connect\xE9",
|
|
"h.notConnectedHint": "Ajoutez un jeton d'acc\xE8s {host} dans les param\xE8tres du plugin.",
|
|
"h.badToken": "{host} n'a pas accept\xE9 votre jeton",
|
|
"h.badTokenHint": "Il a peut-\xEAtre expir\xE9 ou \xE9t\xE9 r\xE9voqu\xE9. Cr\xE9ez un nouveau jeton et collez-le dans les param\xE8tres.",
|
|
"h.repoMissing": "D\xE9p\xF4t introuvable",
|
|
"h.repoMissingHint": "V\xE9rifiez le propri\xE9taire et le nom du d\xE9p\xF4t, ainsi que l'acc\xE8s du jeton \xE0 ce d\xE9p\xF4t.",
|
|
"h.rateLimit": "Limite de requ\xEAtes {host} atteinte",
|
|
"h.rateLimitHint": "{host} autorise un nombre limit\xE9 de requ\xEAtes par heure. La synchronisation fonctionnera de nouveau sous peu.",
|
|
"h.busy": "{host} \xE9tait occup\xE9",
|
|
"h.busyHint": "Un autre appareil synchronisait au m\xEAme moment. R\xE9essayez.",
|
|
"h.offline": "Impossible de joindre {host}",
|
|
"h.offlineHint": "V\xE9rifiez votre connexion Internet. La synchronisation r\xE9essaiera automatiquement.",
|
|
"h.encrypted": "Ce coffre est chiffr\xE9",
|
|
"h.encryptedHint": "Saisissez la phrase secr\xE8te pour synchroniser sur cet appareil.",
|
|
"h.otherKey": "Cl\xE9 de chiffrement diff\xE9rente",
|
|
"h.otherKeyHint": "Le d\xE9p\xF4t a \xE9t\xE9 chiffr\xE9 avec une autre phrase secr\xE8te. D\xE9verrouillez-le de nouveau.",
|
|
"h.pullOnly": "Indisponible en mode r\xE9cup\xE9ration uniquement",
|
|
"h.pullOnlyHint": "Changez le mode dans les param\xE8tres pour envoyer les modifications.",
|
|
"h.branchMissing": "Branche introuvable",
|
|
"h.failed": "\xC9chec de la synchronisation",
|
|
"h.onDemand": "Non t\xE9l\xE9charg\xE9s sur cet appareil ({n})",
|
|
"h.onDemandHint": "{mb} Mo de fichiers volumineux restent dans le d\xE9p\xF4t jusqu'\xE0 ce que vous en ayez besoin.",
|
|
"h.budget": "Quota d'API\xA0: {budget}",
|
|
"h.budgetValue": "{left}/{limit} requ\xEAtes restantes, r\xE9initialisation {time}",
|
|
"h.unknown": "inconnu",
|
|
"h.checkFailed": "Impossible de v\xE9rifier {host}\xA0: {error}",
|
|
"h.deviceScope": "Cet appareil synchronise {what}.",
|
|
"h.only": "uniquement {list}",
|
|
"h.excluding": "\xE0 l'exclusion de {list}",
|
|
"h.noDownloadsOver": "aucun t\xE9l\xE9chargement au-del\xE0 de {mb} Mo",
|
|
"h.notOnDevice": "non synchronis\xE9 sur cet appareil",
|
|
"hs.ghApi": "\xC0 modifier uniquement pour GitHub Enterprise Server, par exemple https://github.example.com/api/v3",
|
|
"hs.glApi": "gitlab.com, ou votre serveur, par exemple https://gitlab.example.com/api/v4",
|
|
"hs.gtApi": "L'API de votre serveur, par exemple https://codeberg.org/api/v1 ou https://git.example.com/api/v1",
|
|
"hs.bbApi": "Bitbucket Cloud\xA0: https://api.bitbucket.org/2.0",
|
|
"hs.gh1": "Ouvrez la page des jetons de GitHub\xA0; le nom, l'expiration et \xAB\xA0Contents: read and write\xA0\xBB sont pr\xE9remplis.",
|
|
"hs.gh1Link": "Cr\xE9er un jeton \xE0 granularit\xE9 fine",
|
|
"hs.gh2": "Sous \xAB\xA0Repository access\xA0\xBB, choisissez \xAB\xA0Only select repositories\xA0\xBB et s\xE9lectionnez le d\xE9p\xF4t de votre coffre (ajoutez \xAB\xA0Administration: read and write\xA0\xBB si vous voulez que le plugin cr\xE9e le d\xE9p\xF4t).",
|
|
"hs.gh3": "G\xE9n\xE9rez-le, copiez-le et collez-le ici.",
|
|
"hs.gh4": "Alternative plus simple (acc\xE8s \xE0 tous les d\xE9p\xF4ts)\xA0:",
|
|
"hs.gh4Link": "jeton classique avec la port\xE9e repo",
|
|
"hs.gl1": "Cr\xE9ez un jeton d'acc\xE8s personnel avec la port\xE9e api (n\xE9cessaire pour \xE9crire des commits).",
|
|
"hs.gl1Link": "Ouvrir la page des jetons de GitLab",
|
|
"hs.gl2": "Astuce\xA0: un jeton d'acc\xE8s de projet (Settings \u2192 Access tokens dans le projet de votre coffre, r\xF4le Developer, port\xE9e api) limite l'acc\xE8s \xE0 ce seul projet.",
|
|
"hs.paste": "Copiez-le et collez-le ici.",
|
|
"hs.gt1": "Ouvrez Settings \u2192 Applications et g\xE9n\xE9rez un jeton avec \xAB\xA0repository: Read and Write\xA0\xBB et \xAB\xA0user: Read\xA0\xBB. Pour que le plugin puisse cr\xE9er le d\xE9p\xF4t, choisissez plut\xF4t \xAB user: Read and Write \xBB.",
|
|
"hs.gt1Link": "Ouvrir la page des applications",
|
|
"hs.gt2": "N\xE9cessite Gitea 1.20+ ou Forgejo 1.20+ (API de commit multifichier).",
|
|
"hs.bb1": "Le plus simple\xA0: dans le d\xE9p\xF4t de votre coffre, ouvrez Repository settings \u2192 Security \u2192 Access tokens et cr\xE9ez-en un avec \xAB\xA0Repositories: Read and Write\xA0\xBB. Collez-le ici (saisissez le propri\xE9taire et le d\xE9p\xF4t dans les param\xE8tres).",
|
|
"hs.bb1Link": "Aide sur les jetons d'acc\xE8s Bitbucket",
|
|
"hs.bb2": "Pour choisir ou cr\xE9er des d\xE9p\xF4ts dans l'assistant, utilisez plut\xF4t un jeton d'API Atlassian avec des port\xE9es Bitbucket, saisi sous la forme email:token.",
|
|
"hs.bb2Link": "Cr\xE9er un jeton d'API",
|
|
"hs.bb3": "Remarque\xA0: la premi\xE8re synchronisation t\xE9l\xE9charge chaque fichier une fois pour l'indexer\xA0; les suivantes ne r\xE9cup\xE8rent que ce qui a chang\xE9.",
|
|
"u.skipped": "Ignor\xE9s\xA0: {n}",
|
|
"u.loadingShort": "Chargement\u2026",
|
|
"u.diff": "Diff\xE9rences",
|
|
"h.lastSync": "Derni\xE8re synchronisation {ago}",
|
|
"m.sharedFailed": "\xC9chec de la synchronisation du dossier partag\xE9\xA0:",
|
|
"m.offline": "Hors ligne\xA0: la synchronisation reprendra une fois la connexion r\xE9tablie",
|
|
"m.filesFailed": "\xC9chec pour {n} fichier(s)\xA0: voir l'\xE9tat de la synchronisation",
|
|
"m.copiesCreated": "{n} copie(s) en conflit cr\xE9\xE9e(s)",
|
|
"m.statusTip": "{title}. Cliquez pour voir l'\xE9tat de la synchronisation.",
|
|
"m.notThere": "{host} (fichier absent)",
|
|
"app.signIn": "Se connecter avec GitHub",
|
|
"app.signInDesc": "Autorisez l'acc\xE8s dans votre navigateur au lieu de cr\xE9er un jeton. L'application n'a acc\xE8s qu'aux d\xE9p\xF4ts que vous choisissez, et l'acc\xE8s se renouvelle automatiquement.",
|
|
"app.signInBtn": "Se connecter",
|
|
"app.orToken": "Ou utiliser un jeton d'acc\xE8s",
|
|
"app.starting": "Connexion \xE0 {host}\u2026",
|
|
"app.notAvailable": "La connexion avec {host} n'est pas disponible pour ce serveur. Utilisez un jeton d'acc\xE8s.",
|
|
"app.codeBody": "Copiez ce code, puis collez-le sur la page {host} qui s'ouvre\xA0:",
|
|
"app.copy": "Copier le code",
|
|
"app.copied": "Code copi\xE9",
|
|
"app.open": "Copier et ouvrir {host}",
|
|
"app.waiting": "En attente de votre autorisation sur {host}\u2026",
|
|
"app.expired": "Le code a expir\xE9. Fermez cette fen\xEAtre et reconnectez-vous.",
|
|
"app.denied": "L'acc\xE8s a \xE9t\xE9 refus\xE9 sur {host}.",
|
|
"app.disabled": "Cette GitHub App n'autorise pas la connexion par appareil. Utilisez un jeton d'acc\xE8s ou demandez \xE0 son propri\xE9taire d'activer le device flow.",
|
|
"app.failed": "\xC9chec de la connexion\xA0: {error}",
|
|
"app.signedIn": "Connect\xE9 avec GitHub",
|
|
"app.signedInDesc": "Cet appareil utilise la GitHub App Vault Sync for GitHub. L'acc\xE8s se renouvelle automatiquement. Stock\xE9 sur cet appareil uniquement.",
|
|
"app.signOut": "Se d\xE9connecter",
|
|
"app.chooseRepos": "Choisir les d\xE9p\xF4ts",
|
|
"app.chooseReposDesc": "Vous ne voyez pas le d\xE9p\xF4t de votre coffre ? Ajoutez-le sur GitHub, ou cr\xE9ez-en d'abord un. La liste se met \xE0 jour toute seule \xE0 votre retour.",
|
|
"app.createOnGitHub": "Cr\xE9er sur GitHub",
|
|
"app.refresh": "Actualiser la liste",
|
|
"app.expiredSession": "Votre connexion {host} a expir\xE9. Reconnectez-vous dans Param\xE8tres \u2192 Vault Sync for Git.",
|
|
"app.clientId": "ID client de la GitHub App (facultatif)",
|
|
"app.clientIdDesc": "Pour proposer \xAB\xA0Se connecter avec GitHub\xA0\xBB sur GitHub Enterprise\xA0: l'ID client d'une GitHub App avec le device flow activ\xE9 et l'autorisation Contents en lecture et \xE9criture. Stock\xE9 sur cet appareil uniquement.",
|
|
"app.slug": "Nom d'URL de la GitHub App",
|
|
"app.slugDesc": "Le NAME dans https://your-server/apps/NAME, utilis\xE9 pour ouvrir la page d'installation de l'application.",
|
|
"h.refresh": "Actualiser",
|
|
"h.setupHint": "Lancez l'assistant de configuration pour connecter un h\xE9bergeur Git et un d\xE9p\xF4t.",
|
|
"h.resolve": "R\xE9soudre",
|
|
"h.resolveTitle": "R\xE9soudre le conflit\xA0: {path}",
|
|
"h.currentNote": "Note actuelle",
|
|
"h.conflictCopy": "Copie en conflit",
|
|
"h.tokenExpires": "Votre jeton d'acc\xE8s expire dans {days} jour(s). Cr\xE9ez-en un nouveau et collez-le dans les param\xE8tres.",
|
|
"h.tokenExpiresToday": "Votre jeton d'acc\xE8s expire aujourd'hui. Cr\xE9ez-en un nouveau et collez-le dans les param\xE8tres.",
|
|
"h.newToken": "Cr\xE9er un nouveau jeton",
|
|
"u.previewTitle": "Aper\xE7u de la synchronisation",
|
|
"u.previewHint": "Rien n'a encore \xE9t\xE9 modifi\xE9. Voici ce que ferait la prochaine synchronisation.",
|
|
"u.close": "Fermer",
|
|
"s.configDirWarn": "Le code des plugins est aussi synchronis\xE9\xA0: toute personne pouvant pousser vers le d\xE9p\xF4t peut ex\xE9cuter du code sur vos appareils. Les plugins synchronis\xE9s se chargent apr\xE8s un red\xE9marrage.",
|
|
"p.scanning": "Analyse des fichiers\u2026",
|
|
"p.checking": "V\xE9rification de {host}\u2026",
|
|
"p.downloading": "T\xE9l\xE9chargement {done}/{total}",
|
|
"p.uploading": "Envoi {done}/{total}",
|
|
"cmd.syncFile": "Synchroniser le fichier actuel maintenant",
|
|
"cmd.setupLink": "Ajouter un autre appareil (lien de configuration)",
|
|
"x.pending": "Modifi\xE9 depuis la derni\xE8re synchronisation",
|
|
"x.conflict": "Copie en conflit\xA0: r\xE9solvez-la dans le panneau d'\xE9tat de la synchronisation",
|
|
"os.title": "Un autre outil de synchronisation est actif",
|
|
"os.found": "Ce coffre est aussi synchronis\xE9 par\xA0: {list}.",
|
|
"os.gitFolder": "un d\xE9p\xF4t Git (dossier .git)",
|
|
"os.hint": "Deux outils qui \xE9crivent dans les m\xEAmes fichiers peuvent \xE9craser mutuellement leurs modifications. Utilisez-en un seul pour ce coffre, ou assurez-vous qu'ils synchronisent des dossiers diff\xE9rents.",
|
|
"link.addDevice": "Ajouter un autre appareil",
|
|
"link.addDeviceDesc": "Cr\xE9e un lien et un code QR qui configurent un autre appareil avec ce d\xE9p\xF4t et ces param\xE8tres de synchronisation.",
|
|
"link.createBtn": "Cr\xE9er un lien de configuration",
|
|
"link.createTitle": "Ajouter un autre appareil",
|
|
"link.createIntro": "Apr\xE8s avoir install\xE9 le plugin sur le nouvel appareil, ouvrez-y ce lien (ou scannez le code avec son appareil photo). Il renseigne l'h\xE9bergeur, le d\xE9p\xF4t et les param\xE8tres de synchronisation.",
|
|
"link.includeToken": "Inclure le jeton d'acc\xE8s",
|
|
"link.includeTokenDesc": "Le jeton est chiffr\xE9 avec un code \xE0 usage unique affich\xE9 ci-dessous. Sans ce code, le lien est inutilisable\xA0; partagez le code s\xE9par\xE9ment.",
|
|
"link.signInNote": "Cet appareil est connect\xE9 avec {host}. Le nouvel appareil se connecte lui-m\xEAme, donc aucun jeton n'est inclus.",
|
|
"link.encrypting": "Chiffrement\u2026",
|
|
"link.link": "Lien de configuration",
|
|
"link.linkDesc": "Envoyez-le \xE0 vous-m\xEAme, par exemple par e-mail ou via une application de notes.",
|
|
"link.copyLink": "Copier le lien",
|
|
"link.copied": "Copi\xE9",
|
|
"link.qrLabel": "Code QR du lien de configuration",
|
|
"link.codeIntro": "Code \xE0 usage unique (saisissez-le sur le nouvel appareil)\xA0:",
|
|
"link.keepApart": "N'envoyez pas le code avec le lien.",
|
|
"link.noSecrets": "Le lien ne contient ni jeton ni mot de passe. Le nouvel appareil se connecte avec sa propre connexion ou son propre jeton.",
|
|
"link.applyTitle": "Configurer cet appareil \xE0 partir d'un lien",
|
|
"link.applyIntro": "Ce lien configure la synchronisation du coffre \xAB\xA0{vault}\xA0\xBB\xA0:",
|
|
"link.server": "Serveur\xA0: {url}",
|
|
"link.withSettings": "Synchronise aussi le dossier des param\xE8tres, avec les m\xEAmes choix",
|
|
"link.withToken": "Inclut un jeton d'acc\xE8s (n\xE9cessite le code \xE0 usage unique)",
|
|
"link.subdir": "Dossier dans le d\xE9p\xF4t : {folder}",
|
|
"link.onlyYours": "Ne continuez que si vous avez cr\xE9\xE9 ce lien vous-m\xEAme. Un lien provenant d'une autre personne pourrait connecter votre coffre \xE0 son d\xE9p\xF4t.",
|
|
"link.replaces": "Cela remplace la connexion actuelle \xE0 {repo}.",
|
|
"link.code": "Code \xE0 usage unique",
|
|
"link.codeDesc": "Affich\xE9 sur l'appareil qui a cr\xE9\xE9 le lien.",
|
|
"link.apply": "Configurer cet appareil",
|
|
"link.needCode": "Saisissez d'abord le code \xE0 usage unique.",
|
|
"link.decrypting": "V\xE9rification du code\u2026",
|
|
"link.wrongCode": "Ce code ne correspond pas \xE0 ce lien.",
|
|
"link.invalid": "Ce lien de configuration est incomplet ou endommag\xE9. Cr\xE9ez-en un nouveau sur votre autre appareil.",
|
|
"link.wizardHint": "Vous synchronisez d\xE9j\xE0 sur un autre appareil\xA0? Sur cet appareil-l\xE0, choisissez \xAB\xA0Ajouter un autre appareil\xA0\xBB dans le panneau d'\xE9tat ou les param\xE8tres, puis ouvrez plut\xF4t le lien ici.",
|
|
"s.cfgAppearance": "Apparence et th\xE8mes",
|
|
"s.cfgAppearanceDesc": "Th\xE8me, polices, couleur d'accentuation et th\xE8mes install\xE9s.",
|
|
"s.cfgSnippets": "Extraits CSS",
|
|
"s.cfgHotkeys": "Raccourcis clavier",
|
|
"s.cfgCore": "Param\xE8tres principaux",
|
|
"s.cfgCoreDesc": "\xC9diteur, fichiers et liens, plugins principaux et leurs options.",
|
|
"s.cfgPluginList": "Plugins communautaires activ\xE9s",
|
|
"s.cfgPluginListDesc": "Activer ou d\xE9sactiver un plugin sur un appareil fait de m\xEAme sur les autres.",
|
|
"s.cfgPluginCode": "Code des plugins communautaires",
|
|
"s.cfgPluginCodeDesc": "Installe et met \xE0 jour les plugins sur chaque appareil. Le code des plugins synchronis\xE9 peut s'ex\xE9cuter sur tous vos appareils.",
|
|
"s.cfgPluginSettings": "Param\xE8tres des plugins communautaires",
|
|
"s.cfgPerPlugin": "Choisir par plugin",
|
|
"s.cfgPerPluginDesc": "Exceptions pour certains plugins ({n} d\xE9finie(s)).",
|
|
"s.cfgPerPluginBtn": "Choisir",
|
|
"s.cfgPerPluginIntro": "Pour chaque plugin, suivez les interrupteurs ci-dessus ou choisissez ce qui est synchronis\xE9. Les plugins qui stockent des donn\xE9es propres \xE0 l'appareil (chemins, disposition des fen\xEAtres) sont de bons candidats pour \xAB\xA0Cet appareil uniquement\xA0\xBB.",
|
|
"s.cfgNoPlugins": "Aucun plugin communautaire n'est install\xE9.",
|
|
"s.cfgThisPlugin": "ce plugin",
|
|
"s.cfgFollow": "Suivre les interrupteurs",
|
|
"s.cfgAll": "Code et param\xE8tres",
|
|
"s.cfgCodeOnly": "Code uniquement",
|
|
"s.cfgSettingsOnly": "Param\xE8tres uniquement",
|
|
"s.cfgNone": "Cet appareil uniquement",
|
|
"s.hidden": "Synchroniser les fichiers et dossiers cach\xE9s",
|
|
"s.hiddenDesc": "Fichiers et dossiers \xE0 la racine du coffre dont le nom commence par un point, comme .github ou .editorconfig. Jamais .git, .trash ni le dossier des param\xE8tres. Les modifications sont d\xE9tect\xE9es en quelques minutes.",
|
|
"s.gitignore": "Respecter le .gitignore du coffre",
|
|
"s.gitignoreDesc": "Les fichiers list\xE9s dans les .gitignore du coffre ne sont pas synchronis\xE9s (un .gitignore dans un dossier s'applique \xE0 ce dossier, comme dans Git), et les .gitignore eux-m\xEAmes sont synchronis\xE9s sur chaque appareil. Vos motifs d'exclusion ont toujours le dernier mot.",
|
|
"s.onOpen": "Synchroniser \xE0 l'ouverture d'une note",
|
|
"s.onOpenDesc": "R\xE9cup\xE8re la derni\xE8re version avant que vous ne la modifiiez, au plus toutes les 30 secondes.",
|
|
"s.badges": "Afficher l'\xE9tat de synchronisation dans l'explorateur de fichiers",
|
|
"s.badgesDesc": "Un point sur les fichiers modifi\xE9s depuis la derni\xE8re synchronisation, et un avertissement sur les copies en conflit.",
|
|
"s.noticesAuto": "Automatique (modifications sur t\xE9l\xE9phone, erreurs sur ordinateur)",
|
|
"s.noticesChanges": "Quand des fichiers ont chang\xE9, et en cas d'erreur",
|
|
"s.cfgPluginSettingsDesc": "Les options de chaque plugin (data.json).",
|
|
"link.tooLongForQr": "Ce lien est trop long pour un code QR. Copiez plut\xF4t le lien.",
|
|
"link.withHidden": "Synchronise aussi les fichiers cach\xE9s \xE0 la racine du coffre",
|
|
"link.withGitignore": "Respecte le .gitignore du coffre",
|
|
"link.withExclude": "Remplace les motifs d'exclusion de ce coffre",
|
|
"s.apiBaseInvalid": "Saisissez l'adresse de l'API commen\xE7ant par https:// (http:// uniquement pour un serveur sur cet ordinateur).",
|
|
"s.lfsAboveMax": "Le seuil des fichiers volumineux est sup\xE9rieur ou \xE9gal \xE0 la taille maximale des fichiers ({max} Mo), donc le stockage des fichiers volumineux ne sera jamais utilis\xE9. Abaissez le seuil ou augmentez le maximum.",
|
|
"s.guardMinLabel": "Nombre minimal de suppressions",
|
|
"s.guardPercentLabel": "Pourcentage minimal de fichiers",
|
|
"sh.notFound": "d\xE9p\xF4t introuvable ou inaccessible avec ce jeton",
|
|
"m.unlockToBrowse": "Ce d\xE9p\xF4t est chiffr\xE9 de bout en bout. Saisissez la phrase secr\xE8te sur cet appareil pour le parcourir.",
|
|
"m.beforeCommit": "avant {sha}",
|
|
"m.mergedN": "{n} fusionn\xE9(s)",
|
|
"m.nothingToSnapshot": "Rien \xE0 capturer pour l'instant. Synchronisez d'abord.",
|
|
"m.queued": "Une synchronisation est en cours. La v\xF4tre d\xE9marrera juste apr\xE8s.",
|
|
"h.deleteCopyBody": "La copie en conflit est plac\xE9e dans la corbeille (ou supprim\xE9e, selon le param\xE8tre \xAB\xA0Fichiers supprim\xE9s\xA0\xBB d'Obsidian). Assurez-vous d'avoir gard\xE9 ce dont vous avez besoin.",
|
|
"u.binaryFile": "(fichier binaire, {n} octets)",
|
|
"u.selectGroup": "Tout s\xE9lectionner\xA0: {group}",
|
|
"u.includeFile": "Inclure {path} dans cette synchronisation",
|
|
"m.pausedStatus": "Synchronisation automatique en pause",
|
|
"m.paused": "Synchronisation automatique en pause sur cet appareil jusqu'\xE0 ce que vous la repreniez. La synchronisation manuelle fonctionne toujours.",
|
|
"m.pausedFor": "Synchronisation automatique en pause pendant {n} minutes sur cet appareil.",
|
|
"m.resumed": "Synchronisation automatique reprise.",
|
|
"cmd.pause": "Mettre en pause ou reprendre la synchronisation automatique",
|
|
"cmd.pauseHour": "Mettre en pause la synchronisation automatique pendant une heure",
|
|
"cmd.diagnostics": "Copier les diagnostics (pour un rapport de bug)",
|
|
"cmd.openOnHost": "Ouvrir le fichier actuel chez l'h\xE9bergeur",
|
|
"cmd.historyOnHost": "Ouvrir l'historique du fichier actuel chez l'h\xE9bergeur",
|
|
"cmd.copyHostLink": "Copier le lien du fichier actuel chez l'h\xE9bergeur",
|
|
"menu.shareFolder": "Partager ce dossier avec un d\xE9p\xF4t\u2026",
|
|
"menu.excludeFolder": "Exclure ce dossier de la synchronisation",
|
|
"menu.openOnHost": "Ouvrir sur {host}",
|
|
"menu.copyHostLink": "Copier le lien sur {host}",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "Ce d\xE9p\xF4t est chiffr\xE9 de bout en bout\xA0: les fichiers n'ont donc pas d'adresse lisible chez l'h\xE9bergeur.",
|
|
"m.hostLinkUnsupported": "{host} n'a pas de page web pour ce fichier.",
|
|
"m.alreadyExcluded": "{folder} est d\xE9j\xE0 exclu.",
|
|
"m.excludeBody": "Les fichiers de {folder} ne seront plus envoy\xE9s, t\xE9l\xE9charg\xE9s ni supprim\xE9s, sur aucun appareil. Rien n'est supprim\xE9 maintenant.",
|
|
"m.excluded": "{folder} est d\xE9sormais exclu de la synchronisation.",
|
|
"m.diagnosticsCopied": "Diagnostics copi\xE9s. Les jetons sont masqu\xE9s\xA0; v\xE9rifiez le texte avant de le partager, car il contient des noms de fichiers issus du journal.",
|
|
"h.resume": "Reprendre",
|
|
"h.pause": "Pause d'une heure",
|
|
"h.pausedUntilResumed": "La synchronisation automatique est en pause jusqu'\xE0 ce que vous la repreniez.",
|
|
"h.pausedUntil": "La synchronisation automatique est en pause jusqu'\xE0 {time}.",
|
|
"h.batterySaverOn": "L'\xE9conomiseur de batterie est activ\xE9\xA0: pas de minuterie ni de synchronisation apr\xE8s chaque modification sur cet appareil.",
|
|
"h.batterySaverTurnOn": "Activer l'\xE9conomiseur de batterie",
|
|
"h.batterySaverOff": "D\xE9sactiver l'\xE9conomiseur de batterie",
|
|
"h.versionMismatch": "Les appareils utilisent des versions diff\xE9rentes de ce plugin (cet appareil\xA0: {mine}\xA0; {list}). Mettez-les \xE0 jour pour qu'ils synchronisent de la m\xEAme fa\xE7on.",
|
|
"h.badNames": "Noms que Windows ne peut pas enregistrer ({n})",
|
|
"h.badNamesHint": 'Ces fichiers ne se synchroniseront pas avec les appareils Windows (ni avec certains appareils Android). Renommez-les pour supprimer < > : " | ? * ou un point ou une espace en fin de nom.',
|
|
"u.filterSearch": "Filtrer par nom",
|
|
"u.filterAll": "Tout",
|
|
"u.filterUploads": "Envois",
|
|
"u.filterDownloads": "T\xE9l\xE9chargements",
|
|
"u.filterDeletes": "Suppressions",
|
|
"u.filterConflicts": "Conflits",
|
|
"m.mirrorFailed": "Miroir de sauvegarde\xA0: {error}",
|
|
"m.hostRemoved": "Gitee et Azure DevOps ne sont plus pris en charge. La synchronisation est en pause : choisissez un autre h\xE9bergeur dans Param\xE8tres \u2192 Vault Sync for Git. Vos fichiers sont inchang\xE9s.",
|
|
"m.hostRemovedOther": "Gitee et Azure DevOps ne sont plus pris en charge. Le miroir de sauvegarde qui les utilisait est d\xE9sactiv\xE9, et les dossiers partag\xE9s qui s'y trouvent sont ignor\xE9s. Vos fichiers sont inchang\xE9s.",
|
|
"sh.subdir": "Dossier dans le d\xE9p\xF4t (facultatif)",
|
|
"sh.subdirDesc": "Associe le dossier partag\xE9 \xE0 un dossier \xE0 l'int\xE9rieur du d\xE9p\xF4t, par exemple docs, au lieu de sa racine. Les fichiers situ\xE9s ailleurs dans le d\xE9p\xF4t ne sont pas touch\xE9s.",
|
|
"sh.conflicts": "Quand deux personnes modifient les m\xEAmes lignes",
|
|
"sh.conflictsDesc": "Conservez les deux versions ici sous forme de copie en conflit, ou envoyez la version de cet appareil vers une nouvelle branche avec une pull request que l'\xE9quipe pourra examiner.",
|
|
"sh.conflictsCopy": "Garder les deux (copie en conflit)",
|
|
"sh.conflictsPr": "Ouvrir une pull request",
|
|
"m.prOpened": "{folder}\xA0: les modifications en conflit ont \xE9t\xE9 envoy\xE9es sous forme de pull request\xA0: {url}",
|
|
"pi.title": "Installer les plugins utilis\xE9s sur vos autres appareils",
|
|
"pi.body": "Ces plugins communautaires sont activ\xE9s (ou mis \xE0 jour) sur un autre appareil. Vault Sync for Git peut installer la m\xEAme version ici, \xE0 partir de la version officielle de chaque plugin sur GitHub, telle que r\xE9f\xE9renc\xE9e dans l'annuaire communautaire d'Obsidian.",
|
|
"pi.list": "Plugins",
|
|
"pi.install": "Installer",
|
|
"pi.failed": "Impossible d'installer {name}\xA0: {error}",
|
|
"pi.done": "Install\xE9s\xA0: {list}. Red\xE9marrez Obsidian (ou d\xE9sactivez puis r\xE9activez chaque plugin) pour les charger.",
|
|
"s.cfgInstall": "Installer le code des plugins depuis les versions officielles",
|
|
"s.cfgInstallDesc": "Au lieu de synchroniser le code des plugins, chaque appareil installe la m\xEAme version depuis la version officielle du plugin (apr\xE8s confirmation). Les versions des plugins restent synchronis\xE9es. Plus s\xFBr\xA0: personne ne peut envoyer de code sur vos appareils via le d\xE9p\xF4t.",
|
|
"s.branchDesc": "La branche avec laquelle ce coffre se synchronise. En changer lance une nouvelle comparaison\xA0; rien n'est supprim\xE9.",
|
|
"s.branchChoose": "Choisir",
|
|
"s.branchIntro": "Choisissez une branche existante ou cr\xE9ez-en une \xE0 partir de la branche actuelle (par exemple une branche de brouillons).",
|
|
"s.branchNew": "Nouvelle branche",
|
|
"s.branchInvalid": "Utilisez uniquement des lettres, des chiffres, - _ . et /.",
|
|
"s.branchNoHead": "La branche {branch} est vide\xA0: il n'y a donc encore rien \xE0 partir de quoi cr\xE9er une branche.",
|
|
"s.branchNone": "Aucune branche pour l'instant.",
|
|
"s.branchCurrent": "Branche actuelle",
|
|
"s.branchUse": "Utiliser",
|
|
"s.emptyFolders": "Conserver les dossiers vides",
|
|
"s.emptyFoldersDesc": "Les dossiers sans fichiers sont conserv\xE9s sur chaque appareil (r\xE9pertori\xE9s dans .vault-sync/folders.json). D\xE9sactiv\xE9 tant que le chiffrement de bout en bout est activ\xE9.",
|
|
"s.battery": "\xC9conomiseur de batterie",
|
|
"s.batteryDesc": "Sur cet appareil\xA0: pas de minuterie ni de synchronisation apr\xE8s chaque modification. Synchronise au d\xE9marrage, quand vous revenez dans Obsidian et quand vous synchronisez manuellement.",
|
|
"s.pause": "Mettre en pause la synchronisation automatique",
|
|
"s.pauseDesc": "Sur cet appareil uniquement. La synchronisation manuelle continue de fonctionner.",
|
|
"s.pauseDescOn": "La synchronisation automatique est en pause sur cet appareil.",
|
|
"s.pauseUntilResumed": "Jusqu'\xE0 la reprise",
|
|
"s.author": "Auteur des commits",
|
|
"s.authorDesc": "Nom et e-mail inscrits dans les commits (les deux sont n\xE9cessaires). Vide\xA0: l'h\xE9bergeur utilise le compte du jeton.",
|
|
"s.authorName": "Nom",
|
|
"s.authorEmail": "E-mail",
|
|
"s.hMirror": "Miroir de sauvegarde",
|
|
"s.mirrorIntro": "Chaque synchronisation envoie aussi ce coffre vers un second d\xE9p\xF4t, par exemple chez un autre h\xE9bergeur. Envoi uniquement\xA0: le miroir n'est jamais relu. Avec le chiffrement de bout en bout, le miroir est \xE9galement chiffr\xE9.",
|
|
"s.mirrorOn": "Cr\xE9er un miroir de ce coffre",
|
|
"s.mirrorToken": "Jeton du miroir",
|
|
"s.mirrorTokenDesc": "Jeton d'acc\xE8s pour le d\xE9p\xF4t miroir. Stock\xE9 sur cet appareil uniquement. Vide\xA0: le jeton principal, s'il s'agit du m\xEAme h\xE9bergeur.",
|
|
"s.mirrorIncomplete": "Activez d'abord le miroir et renseignez le propri\xE9taire et le d\xE9p\xF4t.",
|
|
"s.mirrorOk": "Miroir accessible\xA0: {repo}",
|
|
"h.mirror": "Miroir de sauvegarde {target}\xA0: dernier envoi {ago}",
|
|
"h.mirrorFailed": "\xC9chec du miroir de sauvegarde {target}\xA0: {error}",
|
|
"cmd.overwrite": "Aligner le d\xE9p\xF4t sur cet appareil",
|
|
"ow.title": "Aligner le d\xE9p\xF4t sur cet appareil",
|
|
"ow.body": "Un nouveau commit sur {host} rend le d\xE9p\xF4t identique \xE0 cet appareil\xA0: ces fichiers y sont envoy\xE9s et ceux-ci y sont supprim\xE9s (ils restent dans son historique). Les fichiers conserv\xE9s uniquement sur {host} pour un t\xE9l\xE9chargement \xE0 la demande ne sont pas touch\xE9s. Les autres appareils r\xE9cup\xE9reront ce changement \xE0 leur prochaine synchronisation.",
|
|
"ow.upload": "Envoy\xE9s",
|
|
"ow.confirm": "Aligner",
|
|
"ow.done": "D\xE9p\xF4t mis \xE0 jour\xA0: {n} modification(s) en un seul commit.",
|
|
"ow.failed": "Impossible de mettre \xE0 jour le d\xE9p\xF4t\xA0: {error}",
|
|
"m.clipboardFailed": "Impossible de copier dans le presse-papiers\xA0: {error}",
|
|
"ce.ours": "Garder cet appareil",
|
|
"ce.theirs": "Garder le d\xE9p\xF4t",
|
|
"ce.both": "Garder les deux",
|
|
"ce.hint": "Modification en conflit :",
|
|
"app.signInGitLab": "Se connecter avec GitLab",
|
|
"app.signInDescGitLab": "Approuvez l\u2019acc\xE8s dans votre navigateur au lieu de cr\xE9er un jeton. L\u2019acc\xE8s est renouvel\xE9 automatiquement.",
|
|
"app.signedInGitLab": "Connect\xE9 avec GitLab",
|
|
"app.signedInDescGitLab": "Cet appareil utilise l\u2019application Vault Sync for Git sur GitLab. L\u2019acc\xE8s est renouvel\xE9 automatiquement. Stock\xE9 uniquement sur cet appareil.",
|
|
"app.glClientId": "ID d\u2019application GitLab (facultatif)",
|
|
"app.glClientIdDesc": "Pour utiliser \xAB Se connecter avec GitLab \xBB : l\u2019Application ID d\u2019une application OAuth non confidentielle avec la port\xE9e api, cr\xE9\xE9e sur votre GitLab (Modifier le profil \u2192 Applications). Stock\xE9 uniquement sur cet appareil.",
|
|
"sh.ghFormat": "Markdown adapt\xE9 \xE0 GitHub",
|
|
"sh.ghFormatDesc": "Enregistre les notes pour qu\u2019elles soient lisibles sur GitHub : les wikiliens deviennent des liens, les callouts des alertes, les surlignages des <mark>. Votre coffre garde le texte Obsidian exact. D\xE9fini \xE0 l\u2019ajout du dossier.",
|
|
"s.hiddenNested": "Fichiers cach\xE9s dans les dossiers",
|
|
"s.hiddenNestedDesc": "Synchronise aussi les fichiers et dossiers cach\xE9s dans vos dossiers de notes (par exemple Notes/.assets). Les dossiers de param\xE8tres, .trash et .git ne sont jamais inclus.",
|
|
"app.reposTitle": "D\xE9p\xF4ts que l'application peut utiliser",
|
|
"app.addRepos": "Ajouter des d\xE9p\xF4ts sur GitHub",
|
|
"app.watching": "En attente de vous sur GitHub. La liste se met \xE0 jour toute seule \xE0 votre retour.",
|
|
"app.noRepos": "L'application ne voit encore aucun d\xE9p\xF4t. Ajoutez le d\xE9p\xF4t de votre coffre sur GitHub.",
|
|
"app.newRepo": "Nouveau",
|
|
"app.newArrived": "D\xE9p\xF4t ajout\xE9. S\xE9lectionnez-le dans la liste ci-dessus.",
|
|
"s.repoPick": "Choisissez un d\xE9p\xF4t",
|
|
"s.strategyDesc": "La fusion automatique combine les modifications de lignes diff\xE9rentes et garde les deux versions quand les m\xEAmes lignes ont chang\xE9.",
|
|
"s.pauseDescUntil": "La synchronisation automatique est en pause sur cet appareil jusqu'\xE0 {time}.",
|
|
"s.branchPick": "Choisissez une branche",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "l'h\xE9bergeur du d\xE9p\xF4t",
|
|
"err.network": "Erreur r\xE9seau lors de la communication avec {host}",
|
|
"err.badToken": "Le jeton {host} est invalide ou expir\xE9.",
|
|
"err.forbidden": "{host} a refus\xE9 l'acc\xE8s (HTTP {status}). V\xE9rifiez que le jeton peut lire et \xE9crire dans ce d\xE9p\xF4t.",
|
|
"err.notFound": "{host} n'a pas trouv\xE9 le d\xE9p\xF4t, la branche ou le fichier (HTTP {status}). V\xE9rifiez le nom du d\xE9p\xF4t et les acc\xE8s du jeton.",
|
|
"err.conflict": "{host} signale un conflit (HTTP {status}) ; un autre appareil vient peut-\xEAtre d'envoyer des modifications. Relancez la synchronisation.",
|
|
"err.tooLarge": "{host} a refus\xE9 un fichier trop volumineux (HTTP {status}).",
|
|
"err.rateLimit": "Limite de requ\xEAtes {host} atteinte. R\xE9essayez dans une minute.",
|
|
"err.rateLimitMin": "Limite de requ\xEAtes {host} atteinte. R\xE9essayez dans {min} min.",
|
|
"err.secondaryRateLimit": "Limite secondaire de requ\xEAtes {host} atteinte. R\xE9essayez dans une minute.",
|
|
"err.server": "{host} rencontre des probl\xE8mes (HTTP {status}). R\xE9essayez plus tard.",
|
|
"err.noToken": "Aucun jeton {host} d\xE9fini. Ajoutez-en un dans les param\xE8tres du plugin.",
|
|
"err.foreignLink": "{host} a renvoy\xE9 un lien vers un autre serveur ({origin}) ; le jeton ne lui sera pas envoy\xE9.",
|
|
"err.versionUnavailable": "{host} : cette version du fichier n'est pas disponible",
|
|
"err.contentMismatch": "\xAB {path} \xBB n'a pas pu \xEAtre t\xE9l\xE9charg\xE9 enti\xE8rement depuis {host} (le contenu ne correspond pas). Relancez la synchronisation.",
|
|
"err.partialDownload": "\xAB {path} \xBB n'a pas pu \xEAtre t\xE9l\xE9charg\xE9 enti\xE8rement depuis {host} ({got} octets re\xE7us sur {expected}). Relancez la synchronisation.",
|
|
"err.incompleteDownload": "{path} n'a pas pu \xEAtre t\xE9l\xE9charg\xE9 enti\xE8rement depuis {host} ({bytes} octets re\xE7us). Le serveur limite peut-\xEAtre la taille des fichiers envoy\xE9s par son API.",
|
|
"err.commitRefused": "{host} a refus\xE9 le commit : {detail}",
|
|
"err.commitNotCreated": "{host} n'a pas cr\xE9\xE9 le commit",
|
|
"err.commitNoTree": "Le commit {sha} n'a pas d'arborescence",
|
|
"err.repoTooLarge": "Le d\xE9p\xF4t est trop volumineux pour \xEAtre list\xE9 sur {host}.",
|
|
"err.badPagination": "{host} a renvoy\xE9 un lien de pagination inattendu",
|
|
"err.listFailed": "{host} n'a pas pu lister les fichiers de {ref} (HTTP 404)",
|
|
"err.blobTooLarge": "{host} : fichier trop volumineux pour l'API de ce serveur (au-del\xE0 de sa limite de taille)",
|
|
"err.blobTooLargeMismatch": "{host} : fichier trop volumineux pour l'API de ce serveur (au-del\xE0 de sa limite de taille), et le fichier brut ne correspond pas",
|
|
"err.unsupportedHost": "H\xE9bergeur Git non pris en charge : {host}",
|
|
"err.lfsCorrupt": "{path} : le t\xE9l\xE9chargement du gros fichier est corrompu",
|
|
"err.lfsError": "Stockage des gros fichiers : {detail}",
|
|
"err.lfsMissing": "{path} : le gros fichier est absent du stockage LFS de l'h\xE9bergeur",
|
|
"err.encLocked": "Ce d\xE9p\xF4t est chiffr\xE9 de bout en bout. Saisissez la phrase secr\xE8te dans Param\xE8tres \u2192 Chiffrement pour synchroniser sur cet appareil.",
|
|
"err.encMismatch": "Ce d\xE9p\xF4t a \xE9t\xE9 chiffr\xE9 avec une phrase secr\xE8te diff\xE9rente de celle d\xE9verrouill\xE9e sur cet appareil. D\xE9verrouillez-le \xE0 nouveau dans Param\xE8tres \u2192 Chiffrement.",
|
|
"err.encUpgraded": "Le chiffrement de bout en bout a \xE9t\xE9 mis \xE0 niveau sur un autre appareil (m\xEAme phrase secr\xE8te, fichiers d\xE9sormais li\xE9s \xE0 leur nom). Cet appareil a aussi bascul\xE9 ; la prochaine synchronisation continue.",
|
|
"err.branchMoved": "La branche a chang\xE9 pendant la synchronisation (un autre appareil a envoy\xE9 des modifications).",
|
|
"err.editedDuringSync": "{path} a \xE9t\xE9 modifi\xE9 pendant la synchronisation",
|
|
"err.cancelled": "Annul\xE9.",
|
|
"err.unloaded": "Le plugin a \xE9t\xE9 d\xE9charg\xE9 ; la synchronisation s'est arr\xEAt\xE9e. Elle reprendra la prochaine fois.",
|
|
"err.guardCancelled": "Synchronisation annul\xE9e par la protection contre les suppressions.",
|
|
"err.resetCancelled": "R\xE9initialisation annul\xE9e.",
|
|
"err.restoreCancelled": "Restauration annul\xE9e.",
|
|
"err.branchMissing": "La branche \xAB {branch} \xBB est introuvable dans {repo}. Elle a peut-\xEAtre \xE9t\xE9 supprim\xE9e ou renomm\xE9e, ou le jeton a perdu l'acc\xE8s. Rien n'a \xE9t\xE9 modifi\xE9.",
|
|
"err.repoNotFound": "D\xE9p\xF4t {repo} introuvable, ou le jeton n'y a pas acc\xE8s.",
|
|
"err.initFailed": "Impossible d'initialiser la branche du d\xE9p\xF4t.",
|
|
"err.encryptionOff": "Le chiffrement n'est pas activ\xE9 sur cet appareil.",
|
|
"err.branchEmpty": "La branche du d\xE9p\xF4t est vide.",
|
|
"err.resetEmpty": "La branche du d\xE9p\xF4t est vide. Rien \xE0 restaurer.",
|
|
"err.restorePullOnly": "La restauration doit envoyer des modifications au d\xE9p\xF4t, ce que le mode r\xE9cup\xE9ration uniquement ne permet pas.",
|
|
"err.restoreRaced": "Un autre appareil a envoy\xE9 des modifications pendant la restauration. Rien n'a \xE9t\xE9 modifi\xE9 ; r\xE9essayez.",
|
|
"skip.deferred": "report\xE9 lors de la v\xE9rification",
|
|
"skip.localTooLarge": "fichier local de plus de {mb} Mo",
|
|
"skip.remoteTooLarge": "fichier distant de plus de {mb} Mo",
|
|
"skip.windowsName": "nom interdit sous Windows ; renommez-le sur un autre appareil",
|
|
"skip.onDemand": "d\xE9passe la limite de t\xE9l\xE9chargement de cet appareil ; disponible \xE0 la demande",
|
|
"skip.caseRenamedFrom": "renomm\xE9 depuis {other} (changement de casse) ailleurs ; appliqu\xE9 lors de la prochaine synchronisation bidirectionnelle",
|
|
"skip.caseRenamedTo": "renomm\xE9 en {other} (changement de casse) ailleurs ; appliqu\xE9 lors de la prochaine synchronisation bidirectionnelle",
|
|
"skip.unicodeClash": "m\xEAme nom que {other} sous une autre forme Unicode",
|
|
"skip.caseClash": "ne diff\xE8re de {other} que par la casse",
|
|
"skip.winRenamed": "renomm\xE9 ailleurs avec un nom que Windows ne peut pas stocker ; conserv\xE9 ici",
|
|
"skip.winMaybeRenamed": "peut-\xEAtre renomm\xE9 ailleurs avec un nom que Windows ne peut pas stocker ; conserv\xE9 ici",
|
|
"skip.unsafePath": "chemin non s\xFBr",
|
|
"skip.movedOutOfScope": "d\xE9plac\xE9 vers {to}, hors du p\xE9rim\xE8tre de synchronisation de cet appareil ; conserv\xE9 dans le d\xE9p\xF4t",
|
|
"skip.conflictKept": "conflit conserv\xE9 pour la prochaine synchronisation : {error}",
|
|
"skip.caseRenameFailed": "renomm\xE9 depuis {from} (changement de casse) ailleurs ; pas encore renomm\xE9 ici : {error}",
|
|
"skip.editedDuringSync": "modifi\xE9 pendant la synchronisation, sera synchronis\xE9 la prochaine fois",
|
|
"err.newerFormat": "Ce d\xE9p\xF4t utilise un format de chiffrement plus r\xE9cent. Mettez \xE0 jour le plugin.",
|
|
"err.wrongPass": "Phrase secr\xE8te incorrecte.",
|
|
"err.decryptFailed": "Impossible de d\xE9chiffrer {path}\xA0: phrase secr\xE8te incorrecte ou fichier endommag\xE9",
|
|
"err.notEncrypted": "{path} n'est pas chiffr\xE9 avec la cl\xE9 de ce coffre",
|
|
"err.overwritePullOnly": "Le mode r\xE9cup\xE9ration uniquement ne modifie jamais le d\xE9p\xF4t.",
|
|
"err.overwriteEmpty": "La branche du d\xE9p\xF4t est vide\xA0: lancez d'abord une synchronisation normale.",
|
|
"skip.pushCopyTooLarge": "modifi\xE9 aussi sur {host} ; sauvegarde uniquement : cette version est trop volumineuse pour \xEAtre copi\xE9e ici et reste dans l'historique du d\xE9p\xF4t",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "Historique de synchronisation",
|
|
"cmd.openHistory": "Ouvrir l'historique de synchronisation",
|
|
"cmd.useRepo": "Utiliser la version du d\xE9p\xF4t pour ce fichier",
|
|
"menu.useRepo": "Utiliser la version du d\xE9p\xF4t",
|
|
"hist.title": "Historique de synchronisation",
|
|
"hist.filter": "Filtrer par chemin",
|
|
"hist.loadMore": "Charger plus",
|
|
"hist.empty": "Aucune synchronisation pour l'instant.",
|
|
"hist.noMatch": "Aucun fichier modifi\xE9 ne correspond dans les synchronisations charg\xE9es. Chargez-en plus pour remonter plus loin.",
|
|
"hist.noFiles": "Aucun fichier de ce coffre n'a chang\xE9 dans cette synchronisation.",
|
|
"hist.added": "Ajout\xE9",
|
|
"hist.modified": "Modifi\xE9",
|
|
"hist.deleted": "Supprim\xE9",
|
|
"hist.renamed": "Renomm\xE9",
|
|
"hist.renamedFrom": "(depuis {path})",
|
|
"hist.restoreFile": "Restaurer ce fichier",
|
|
"hist.before": "Avant ({sha})",
|
|
"hist.after": "Apr\xE8s ({sha})",
|
|
"hist.none": "(n'existait pas)",
|
|
"h.pendingFiles": "Afficher les fichiers modifi\xE9s",
|
|
"repo.use": "Utiliser la version du d\xE9p\xF4t",
|
|
"repo.useBody": "Remplacer {path} sur cet appareil par la derni\xE8re version de {host} ? La version de cet appareil va d'abord dans la corbeille, vous pouvez donc la r\xE9cup\xE9rer.",
|
|
"repo.used": "{path} correspond maintenant \xE0 {host}. La version pr\xE9c\xE9dente est dans la corbeille sous le nom {copy}.",
|
|
"repo.restored": "{path} a \xE9t\xE9 r\xE9cup\xE9r\xE9 depuis {host}.",
|
|
"repo.same": "{path} correspond d\xE9j\xE0 \xE0 {host}.",
|
|
"repo.missing": "{path} n'est pas dans {host} : rien n'a chang\xE9.",
|
|
"repo.failed": "Impossible d'utiliser la version du d\xE9p\xF4t : {error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "Annuler cette modification (revenir au texte de la derni\xE8re synchronisation)",
|
|
"cmd.nextChange": "Aller \xE0 la modification suivante depuis la derni\xE8re synchronisation",
|
|
"cmd.prevChange": "Aller \xE0 la modification pr\xE9c\xE9dente depuis la derni\xE8re synchronisation",
|
|
"cmd.whoChanged": "Afficher qui a modifi\xE9 cette ligne en dernier",
|
|
"cm.added": "Ajout\xE9 depuis la derni\xE8re synchronisation",
|
|
"cm.changed": "Modifi\xE9 depuis la derni\xE8re synchronisation",
|
|
"cm.deleted": "Supprim\xE9 depuis la derni\xE8re synchronisation",
|
|
"cm.lastSynced": "\xC0 la derni\xE8re synchronisation :",
|
|
"cm.newLines": "Ces lignes sont nouvelles depuis la derni\xE8re synchronisation.",
|
|
"cm.revert": "Annuler la modification",
|
|
"cm.who": "Qui a modifi\xE9 ceci ?",
|
|
"la.title": "Qui a modifi\xE9 cette ligne en dernier",
|
|
"la.result": "Modifi\xE9e en dernier le {date} par {device} ({sha}).",
|
|
"la.resultOlder": "Modifi\xE9e en dernier le {date} ou avant par {device} ({sha}). Seules les {n} derni\xE8res versions ont \xE9t\xE9 examin\xE9es.",
|
|
"la.local": "Cette ligne a \xE9t\xE9 modifi\xE9e sur cet appareil depuis la derni\xE8re synchronisation : aucune version du d\xE9p\xF4t ne la contient encore.",
|
|
"la.none": "Aucun historique trouv\xE9 pour ce fichier dans le d\xE9p\xF4t.",
|
|
"la.looking": "Parcours de l'historique du fichier\u2026",
|
|
"la.failed": "Impossible de lire l'historique du fichier : {error}",
|
|
"la.tooBig": "Ce fichier est trop volumineux pour parcourir son historique (plus de 1 Mo).",
|
|
"la.open": "Ouvrir cette version",
|
|
"s.changeMarkers": "Afficher dans l'\xE9diteur les modifications depuis la derni\xE8re synchronisation",
|
|
"s.changeMarkersDesc": "Marque \xE0 c\xF4t\xE9 du texte les lignes ajout\xE9es, modifi\xE9es et supprim\xE9es. Cliquez ou touchez une marque pour voir le texte de la derni\xE8re synchronisation et annuler la modification.",
|
|
"cmd.syncMessage": "Synchroniser avec un message personnalis\xE9\u2026",
|
|
"cmd.syncClose": "Synchroniser et fermer Obsidian",
|
|
"cmd.editExcludes": "Modifier les motifs d'exclusion",
|
|
"msg.title": "Message du commit",
|
|
"msg.placeholder": "Qu'est-ce qui a chang\xE9 ?",
|
|
"msg.sync": "Synchroniser",
|
|
"msg.empty": "Saisissez d'abord un message.",
|
|
"menu.excludeFile": "Exclure ce fichier de la synchronisation",
|
|
"menu.include": "Inclure dans la synchronisation",
|
|
"m.excludeFileBody": "{path} ne sera plus envoy\xE9, t\xE9l\xE9charg\xE9 ni supprim\xE9, sur aucun appareil. Sa copie dans le d\xE9p\xF4t reste telle quelle. Rien n'est supprim\xE9 maintenant.",
|
|
"m.excludedFile": "{path} est d\xE9sormais exclu de la synchronisation.",
|
|
"m.included": "{path} est de nouveau synchronis\xE9.",
|
|
"m.includeImpossible": "{path} est laiss\xE9 de c\xF4t\xE9 par autre chose que vos motifs d'exclusion (la port\xE9e de synchronisation de cet appareil, les fichiers cach\xE9s, le dossier des param\xE8tres ou sync: false) : impossible de l'inclure d'ici.",
|
|
"ex.save": "Enregistrer",
|
|
"ex.saved": "Motifs d'exclusion enregistr\xE9s.",
|
|
"m.closeSyncing": "Synchronisation avant fermeture\u2026",
|
|
"m.closeFailed": "La synchronisation n'a pas abouti, Obsidian reste donc ouvert : {error}",
|
|
"m.closeNotSynced": "Synchronisation impossible (hors ligne, en pause ou non configur\xE9e), Obsidian reste donc ouvert.",
|
|
"m.syncFileErrors": "{count} fichier(s) n'ont pas pu \xEAtre synchronis\xE9s (premier : {first})",
|
|
"m.closeIncomplete": "Tout n'a pas \xE9t\xE9 synchronis\xE9, Obsidian reste donc ouvert :\n{reasons}",
|
|
"x.excluded": "Non synchronis\xE9",
|
|
"skip.frontmatterPending": "en attente de la lecture des propri\xE9t\xE9s par Obsidian (v\xE9rification de sync: false)",
|
|
"s.commitMsgAuto": "Message du commit pour les synchronisations automatiques",
|
|
"s.commitMsgAutoDesc": "Utilis\xE9 quand une synchronisation d\xE9marre d'elle-m\xEAme (minuteur, modifications, d\xE9marrage, retour dans l'app). Laissez vide pour utiliser le message ci-dessus.",
|
|
"s.commitPreview": "Aper\xE7u : {msg}",
|
|
"s.repoSubdir": "Dossier dans le d\xE9p\xF4t",
|
|
"s.repoSubdirDesc": "Placer ce coffre dans un dossier du d\xE9p\xF4t (par exemple vaults/personal) plut\xF4t qu'\xE0 sa racine. Les fichiers hors de ce dossier ne sont jamais t\xE9l\xE9charg\xE9s, modifi\xE9s ni supprim\xE9s. Le changer lance une nouvelle comparaison qui ne supprime rien.",
|
|
"s.subdirChangeTitle": "Changer le dossier dans le d\xE9p\xF4t ?",
|
|
"s.subdirChangeBody": "La prochaine synchronisation compare ce coffre \xE0 {folder} en repartant de z\xE9ro. Rien n'est supprim\xE9, mais les fichiers d\xE9j\xE0 pr\xE9sents \xE0 cet endroit sont t\xE9l\xE9charg\xE9s dans ce coffre et les fichiers de ce coffre y sont envoy\xE9s.",
|
|
"s.subdirRoot": "la racine du d\xE9p\xF4t",
|
|
"s.subdirHasFiles": "Cet emplacement contient d\xE9j\xE0 {count} fichiers dans le d\xE9p\xF4t. S'ils appartiennent \xE0 un autre coffre, ils seront m\xE9lang\xE9s \xE0 celui-ci : choisissez un autre dossier.",
|
|
"s.subdirMaybeFiles": "Si cet emplacement contient d\xE9j\xE0 les fichiers d'un autre coffre, ils seront m\xE9lang\xE9s \xE0 celui-ci.",
|
|
"s.subdirChangeConfirm": "Changer de dossier",
|
|
"s.frontmatter": "Respecter sync: false dans les propri\xE9t\xE9s",
|
|
"s.frontmatterDesc": "Les notes avec sync: false dans leurs propri\xE9t\xE9s restent sur cet appareil : elles ne sont jamais envoy\xE9es, et une copie d\xE9j\xE0 pr\xE9sente dans le d\xE9p\xF4t est conserv\xE9e telle quelle.",
|
|
"s.statusCountdown": "Afficher la prochaine synchronisation dans la barre d'\xE9tat",
|
|
"s.statusCountdownDesc": "Temps restant avant la prochaine synchronisation planifi\xE9e, par exemple \xAB dans 4 min \xBB.",
|
|
"s.statusBranch": "Afficher la branche dans la barre d'\xE9tat",
|
|
"s.statusBranchDesc": "La branche avec laquelle ce coffre se synchronise.",
|
|
"sb.next": "dans {n} min",
|
|
"sb.soon": "dans moins d'une minute",
|
|
"sb.nextTip": "Prochaine synchronisation planifi\xE9e",
|
|
"sb.branchTip": "Branche : {branch}",
|
|
"w.subdir": "Dossier dans le d\xE9p\xF4t (facultatif)",
|
|
"w.subdirDesc": "Laissez vide pour utiliser tout le d\xE9p\xF4t. Renseignez-le pour garder ce coffre dans un dossier, par exemple quand plusieurs coffres partagent un d\xE9p\xF4t."
|
|
};
|
|
|
|
// src/locales/ja.ts
|
|
var ja = {
|
|
"cmd.sync": "\u4ECA\u3059\u3050\u540C\u671F",
|
|
"cmd.review": "\u5909\u66F4\u3092\u78BA\u8A8D\u3057\u3066\u540C\u671F",
|
|
"cmd.status": "\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\u3092\u958B\u304F",
|
|
"cmd.pull": "\u30D7\u30EB\u306E\u307F\uFF08\u5909\u66F4\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\uFF09",
|
|
"cmd.push": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u307F\uFF08\u5909\u66F4\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\uFF09",
|
|
"cmd.preview": "\u540C\u671F\u3092\u30D7\u30EC\u30D3\u30E5\u30FC\uFF08\u30C9\u30E9\u30A4\u30E9\u30F3\uFF09",
|
|
"cmd.timeline": "\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3\uFF1A\u4FDD\u7BA1\u5EAB\u307E\u305F\u306F\u30D5\u30A9\u30EB\u30C0\u3092\u4EE5\u524D\u306E\u6642\u70B9\u306B\u5FA9\u5143",
|
|
"cmd.reset": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u4E00\u81F4\u3055\u305B\u308B\uFF08\u30ED\u30FC\u30AB\u30EB\u306E\u5909\u66F4\u3092\u7834\u68C4\uFF09",
|
|
"cmd.snapshot": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u4F5C\u6210",
|
|
"cmd.wizard": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u5B9F\u884C",
|
|
"cmd.encryption": "\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\uFF1A\u6709\u52B9\u5316\u307E\u305F\u306F\u30ED\u30C3\u30AF\u89E3\u9664",
|
|
"cmd.freeSpace": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u7A7A\u304D\u5BB9\u91CF\u3092\u5897\u3084\u3059",
|
|
"cmd.onDemand": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
"cmd.log": "\u540C\u671F\u30ED\u30B0\u3092\u8868\u793A",
|
|
"cmd.history": "\u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u5C65\u6B74\u3092\u8868\u793A",
|
|
"cmd.compare": "\u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u6BD4\u8F03",
|
|
"cmd.recover": "\u524A\u9664\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u5FA9\u5143",
|
|
"cmd.openRepo": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u30D6\u30E9\u30A6\u30B6\u3067\u958B\u304F",
|
|
"ribbon.sync": "\u4FDD\u7BA1\u5EAB\u3092\u540C\u671F",
|
|
"ribbon.status": "\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9",
|
|
"menu.history": "\u30D0\u30FC\u30B8\u30E7\u30F3\u5C65\u6B74",
|
|
"menu.compare": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u6BD4\u8F03",
|
|
"health.title": "\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9",
|
|
"health.upToDate": "\u6700\u65B0\u306E\u72B6\u614B",
|
|
"health.syncing": "\u540C\u671F\u4E2D\u2026",
|
|
"health.failed": "\u524D\u56DE\u306E\u540C\u671F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
"health.attention": "\u5BFE\u5FDC\u304C\u5FC5\u8981\u3067\u3059",
|
|
"health.notSynced": "\u307E\u3060\u540C\u671F\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
|
|
"health.notSetUp": "\u672A\u8A2D\u5B9A",
|
|
"health.syncNow": "\u4ECA\u3059\u3050\u540C\u671F",
|
|
"health.review": "\u78BA\u8A8D\u2026",
|
|
"health.wizard": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u5B9F\u884C",
|
|
"health.pending": "\u4FDD\u7559\u4E2D",
|
|
"health.editedN": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067 {n} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u7DE8\u96C6\u3055\u308C\u307E\u3057\u305F",
|
|
"health.noEdits": "\u5F85\u6A5F\u4E2D\u306E\u30ED\u30FC\u30AB\u30EB\u7DE8\u96C6\u306F\u3042\u308A\u307E\u305B\u3093",
|
|
"health.remoteAhead": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u304B\u3089\u306E\u65B0\u3057\u3044\u5909\u66F4\u304C\u3042\u308A\u307E\u3059",
|
|
"health.remoteSame": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u65B0\u3057\u3044\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093",
|
|
"health.checking": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u78BA\u8A8D\u4E2D\u2026",
|
|
"health.nextSync": "\u6B21\u56DE\u306E\u5B9A\u671F\u540C\u671F\uFF1A{time}",
|
|
"health.noSchedule": "\u5B9A\u671F\u540C\u671F\u306F\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
|
|
"health.conflicts": "\u7AF6\u5408\u30B3\u30D4\u30FC\uFF08{n}\uFF09",
|
|
"health.conflictsHint": "\u4E21\u65B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4FDD\u6301\u3057\u307E\u3057\u305F\u3002\u6BD4\u8F03\u3057\u3066\u5FC5\u8981\u306A\u5185\u5BB9\u3092\u6B8B\u3057\u3066\u304B\u3089\u3001\u30B3\u30D4\u30FC\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"health.compare": "\u6BD4\u8F03",
|
|
"health.open": "\u958B\u304F",
|
|
"health.deleteCopy": "\u30B3\u30D4\u30FC\u3092\u524A\u9664",
|
|
"health.skipped": "\u524D\u56DE\u306E\u540C\u671F\u3067\u30B9\u30AD\u30C3\u30D7\uFF08{n}\uFF09",
|
|
"health.devices": "\u30C7\u30D0\u30A4\u30B9",
|
|
"health.thisDevice": "\uFF08\u3053\u306E\u30C7\u30D0\u30A4\u30B9\uFF09",
|
|
"health.lastSynced": "\u6700\u7D42\u540C\u671F\uFF1A{ago}",
|
|
"health.shared": "\u5171\u6709\u30D5\u30A9\u30EB\u30C0",
|
|
"health.tools": "\u30C4\u30FC\u30EB",
|
|
"health.timeline": "\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3\u3068\u5FA9\u5143",
|
|
"health.snapshot": "\u4ECA\u3059\u3050\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",
|
|
"health.reset": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u4E00\u81F4\u3055\u305B\u308B",
|
|
"health.freeSpace": "\u7A7A\u304D\u5BB9\u91CF\u3092\u5897\u3084\u3059",
|
|
"health.log": "\u540C\u671F\u30ED\u30B0",
|
|
"health.settings": "\u8A2D\u5B9A",
|
|
"health.openSettings": "\u8A2D\u5B9A\u3092\u958B\u304F",
|
|
"health.tryAgain": "\u518D\u8A66\u884C",
|
|
"health.enterPassphrase": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u5165\u529B",
|
|
"health.encrypted": "\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u6E08\u307F",
|
|
"notice.upToDate": "\u4FDD\u7BA1\u5EAB\u306F\u6700\u65B0\u306E\u72B6\u614B\u3067\u3059\u3002",
|
|
"notice.synced": "\u540C\u671F\uFF1A{summary}",
|
|
"notice.failed": "\u540C\u671F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"notice.errors": "\u540C\u671F\u306F\u5B8C\u4E86\u3057\u307E\u3057\u305F\u304C\u3001{n} \u4EF6\u306E\u30A8\u30E9\u30FC\u304C\u3042\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u306F\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"notice.conflicts": "\u540C\u671F\uFF1A{n} \u4EF6\u306E\u7AF6\u5408\u3002\u4E21\u65B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4FDD\u6301\u3057\u307E\u3057\u305F\u3002\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\u3067\u6BD4\u8F03\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"notice.busy": "\u540C\u671F\u3092\u5B9F\u884C\u4E2D\u3067\u3059\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
"time.never": "\u306A\u3057",
|
|
"time.now": "\u305F\u3063\u305F\u4ECA",
|
|
"time.min": "{n} \u5206\u524D",
|
|
"time.hour": "{n} \u6642\u9593\u524D",
|
|
"time.day": "{n} \u65E5\u524D",
|
|
"s.wizard": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30A6\u30A3\u30B6\u30FC\u30C9",
|
|
"s.wizardDesc": "\u63A5\u7D9A\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u9078\u629E\u307E\u305F\u306F\u4F5C\u6210\u3001\u6700\u521D\u306E\u540C\u671F\u3092\u9806\u3092\u8FFD\u3063\u3066\u884C\u3044\u307E\u3059\u3002",
|
|
"s.wizardBtn": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u5B9F\u884C",
|
|
"s.hConnection": "\u63A5\u7D9A",
|
|
"s.host": "Git \u30DB\u30B9\u30C8",
|
|
"s.hostDesc": "GitHub \u4EE5\u5916\u306E\u30DB\u30B9\u30C8\u3078\u306E\u5BFE\u5FDC\u306F\u30D9\u30FC\u30BF\u7248\u3067\u3059\u3002",
|
|
"s.beta": "\u30D9\u30FC\u30BF",
|
|
"s.token": "\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3",
|
|
"s.tokenDesc": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u5B89\u5168\u306B\u4FDD\u5B58\u3055\u308C\uFF08Obsidian \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u30B9\u30C8\u30EC\u30FC\u30B8\uFF09\u3001\u540C\u671F\u3055\u308C\u308B\u8A2D\u5B9A\u306B\u306F\u542B\u307E\u308C\u307E\u305B\u3093\u3002\u30C7\u30D0\u30A4\u30B9\u3054\u3068\u306B\u4E00\u5EA6\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.tokenPlaceholder": "\u30C8\u30FC\u30AF\u30F3\u3092\u8CBC\u308A\u4ED8\u3051",
|
|
"s.owner": "\u30AA\u30FC\u30CA\u30FC",
|
|
"s.ownerDesc": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u6240\u6709\u3059\u308B\u30E6\u30FC\u30B6\u30FC\u307E\u305F\u306F\u7D44\u7E54\u3002",
|
|
"s.ownerDescGitlab": "\u30E6\u30FC\u30B6\u30FC\u307E\u305F\u306F\u30B0\u30EB\u30FC\u30D7\u306E\u30D1\u30B9\uFF08\u30B5\u30D6\u30B0\u30EB\u30FC\u30D7\u3082\u53EF\u3002\u4F8B\uFF1Ateam/notes\uFF09\u3002",
|
|
"s.ownerDescBitbucket": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u6240\u6709\u3059\u308B\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u3002",
|
|
"s.ownerPlaceholder": "\u30E6\u30FC\u30B6\u30FC\u540D",
|
|
"s.repo": "\u30EA\u30DD\u30B8\u30C8\u30EA",
|
|
"s.repoDesc": "\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.repoPlaceholder": "\u30EA\u30DD\u30B8\u30C8\u30EA\u540D",
|
|
"s.branch": "\u30D6\u30E9\u30F3\u30C1",
|
|
"s.check": "\u8A2D\u5B9A\u3092\u78BA\u8A8D",
|
|
"s.checkDesc": "\u30C8\u30FC\u30AF\u30F3\u3068\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u30C6\u30B9\u30C8\u3059\u308B\u304B\u3001\u65B0\u3057\u3044\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002",
|
|
"s.test": "\u63A5\u7D9A\u3092\u30C6\u30B9\u30C8",
|
|
"s.testNoRepo": "{user} \u3068\u3057\u3066\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u307E\u3057\u305F\u3002\u6B21\u306B\u30EA\u30DD\u30B8\u30C8\u30EA\u540D\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.testNotFound": "{user} \u3068\u3057\u3066\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u307E\u3057\u305F\u304C\u3001{repo} \u304C\u898B\u3064\u304B\u3089\u306A\u3044\u304B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
"s.testOkPrivate": "OK\uFF1A{repo}\uFF08\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\uFF09\u3002",
|
|
"s.testOkPublic": "OK\uFF1A{repo}\u3002\u305F\u3060\u3057\u516C\u958B\uFF08PUBLIC\uFF09\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u3059\u3002\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u306B\u3059\u308B\u3053\u3068\u3092\u691C\u8A0E\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.testFailed": "\u63A5\u7D9A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"s.createRepo": "\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210",
|
|
"s.created": "{url} \u3092\u4F5C\u6210\u3057\u307E\u3057\u305F",
|
|
"s.createFailed": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}\u3002\u30C8\u30FC\u30AF\u30F3\u306B\u3088\u3063\u3066\u306F\u8FFD\u52A0\u306E\u6A29\u9650\u304C\u5FC5\u8981\u3067\u3059\u3002\u30DB\u30B9\u30C8\u306E\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8\u3067\u4F5C\u6210\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002",
|
|
"s.apiBase": "API \u30D9\u30FC\u30B9 URL",
|
|
"s.apiBaseDesc": "{hint}\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"s.device": "\u30C7\u30D0\u30A4\u30B9\u540D",
|
|
"s.deviceDesc": "\u30B3\u30DF\u30C3\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u7AF6\u5408\u30D5\u30A1\u30A4\u30EB\u540D\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"s.hBehaviour": "\u540C\u671F\u306E\u52D5\u4F5C",
|
|
"s.mode": "\u30E2\u30FC\u30C9",
|
|
"s.modeDesc": "\u53CC\u65B9\u5411\u540C\u671F\u3001\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u307F\uFF08\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306E\u307F\u3067\u3001\u30ED\u30FC\u30AB\u30EB\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u307E\u305B\u3093\uFF09\u3001\u30D7\u30EB\u306E\u307F\uFF08\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u30B3\u30D4\u30FC\uFF09\u304B\u3089\u9078\u3073\u307E\u3059\u3002",
|
|
"s.modeSync": "\u53CC\u65B9\u5411\u540C\u671F",
|
|
"s.modePush": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u307F\uFF08\u30D7\u30C3\u30B7\u30E5\uFF09",
|
|
"s.modePull": "\u30D7\u30EB\u306E\u307F\uFF08\u30DF\u30E9\u30FC\uFF09",
|
|
"s.onStartup": "\u8D77\u52D5\u6642\u306B\u540C\u671F",
|
|
"s.onStartupDesc": "\u4FDD\u7BA1\u5EAB\u3092\u958B\u3044\u305F\u3068\u304D\u306B\u30D7\u30EB\u3068\u30D7\u30C3\u30B7\u30E5\u3092\u884C\u3044\u307E\u3059\u3002",
|
|
"s.onChange": "\u7DE8\u96C6\u5F8C\u306B\u540C\u671F",
|
|
"s.onChangeDesc": "\u7DE8\u96C6\u3092\u3084\u3081\u3066\u3057\u3070\u3089\u304F\u3059\u308B\u3068\u540C\u671F\u3057\u307E\u3059\u3002",
|
|
"s.delay": "\u7DE8\u96C6\u5F8C\u306E\u5F85\u6A5F\u6642\u9593\uFF08\u79D2\uFF09",
|
|
"s.delayDesc": "\u6700\u5F8C\u306E\u7DE8\u96C6\u304B\u3089\u540C\u671F\u307E\u3067\u306E\u5F85\u6A5F\u6642\u9593\u3067\u3059\u3002",
|
|
"s.interval": "\u5B9A\u671F\u540C\u671F\uFF08\u5206\uFF09",
|
|
"s.intervalDesc": "0 \u306B\u3059\u308B\u3068\u7121\u52B9\u306B\u306A\u308A\u307E\u3059\u3002\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u3084\u69CB\u6210\u30D5\u30A1\u30A4\u30EB\u306E\u5909\u66F4\u3082\u691C\u51FA\u3057\u307E\u3059\u3002",
|
|
"s.onResume": "\u30A2\u30D7\u30EA\u306B\u623B\u3063\u305F\u3068\u304D\u306B\u540C\u671F",
|
|
"s.onResumeDesc": "\u30E2\u30D0\u30A4\u30EB\u3067 Obsidian \u306B\u623B\u3063\u305F\u3068\u304D\u306B\u540C\u671F\u3057\u307E\u3059\u3002",
|
|
"s.onBackground": "\u30A2\u30D7\u30EA\u304C\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u306B\u79FB\u3063\u305F\u3068\u304D\u306B\u540C\u671F",
|
|
"s.onBackgroundDesc": "Obsidian \u3092\u96E2\u308C\u305F\u3068\u304D\uFF08\u30E2\u30D0\u30A4\u30EB\uFF09\u3084\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u96A0\u3057\u305F\u3068\u304D\u306B\u3001\u53EF\u80FD\u306A\u7BC4\u56F2\u3067\u30D7\u30C3\u30B7\u30E5\u3057\u307E\u3059\u3002",
|
|
"s.hScope": "\u540C\u671F\u3059\u308B\u5BFE\u8C61",
|
|
"s.configDir": "\u8A2D\u5B9A\u30D5\u30A9\u30EB\u30C0\u3092\u540C\u671F\uFF08{dir}\uFF09",
|
|
"s.configDirDesc": "\u30C6\u30FC\u30DE\u3001\u30B9\u30CB\u30DA\u30C3\u30C8\u3001\u30DB\u30C3\u30C8\u30AD\u30FC\u3001\u30D7\u30E9\u30B0\u30A4\u30F3\u3068\u305D\u306E\u8A2D\u5B9A\u3002\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30EC\u30A4\u30A2\u30A6\u30C8\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u9664\u5916\u3055\u308C\u307E\u3059\u3002",
|
|
"s.exclude": "\u9664\u5916\u30D1\u30BF\u30FC\u30F3",
|
|
"s.excludeDesc": "gitignore \u5F62\u5F0F\u3067 1 \u884C\u306B 1 \u3064\u3002{config} \u306F\u8A2D\u5B9A\u30D5\u30A9\u30EB\u30C0\u3092\u8868\u3057\u307E\u3059\u3002\u9664\u5916\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u306F\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3001\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3001\u524A\u9664\u3055\u308C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"s.maxSize": "\u6700\u5927\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA\uFF08MB\uFF09",
|
|
"s.maxSizeDesc": "\u3053\u308C\u3088\u308A\u5927\u304D\u3044\u30D5\u30A1\u30A4\u30EB\u306F\u30B9\u30AD\u30C3\u30D7\u3055\u308C\u307E\u3059\uFF08\u6700\u5927 2000 MB\uFF09\u3002\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u30B9\u30C8\u30EC\u30FC\u30B8\u3092\u4F7F\u308F\u306A\u3044 GitHub \u3067\u306F\u3001GitHub \u304C\u53D7\u3051\u4ED8\u3051\u308B\u4E0A\u9650\u306E 100 MB \u307E\u3067\u3067\u3059\u3002",
|
|
"s.delayNow": "\u73FE\u5728: {n} \u79D2\u3002",
|
|
"s.resetConfirm": "\u6B21\u56DE\u306E\u540C\u671F\u3067\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u6BD4\u8F03\u3057\u307E\u3059\u3002\u4F55\u3082\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3002\u5185\u5BB9\u304C\u7570\u306A\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u4E21\u65B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u304C\u6B8B\u308B\u305F\u3081\u3001\u6574\u7406\u304C\u5FC5\u8981\u306A\u7AF6\u5408\u30B3\u30D4\u30FC\u304C\u3067\u304D\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
"m.restoreOverBody": "\u3053\u306E\u7AEF\u672B\u306E {path} \u306F {date} \u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3068\u7570\u306A\u308A\u307E\u3059\u3002\u5FA9\u5143\u3059\u308B\u3068\u73FE\u5728\u306E\u5185\u5BB9\u304C\u7F6E\u304D\u63DB\u3048\u3089\u308C\u307E\u3059\u3002\u4E21\u65B9\u3092\u6B8B\u3059\u306B\u306F\u300C\u30B3\u30D4\u30FC\u3068\u3057\u3066\u5FA9\u5143\u300D\u3092\u4F7F\u3063\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.lfs": "\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u30B9\u30C8\u30EC\u30FC\u30B8\u306E\u3057\u304D\u3044\u5024\uFF08MB\uFF09",
|
|
"s.lfsDesc": "\u3053\u306E\u30B5\u30A4\u30BA\u4EE5\u4E0A\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u306F\u306A\u304F\u30DB\u30B9\u30C8\u306E\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u30B9\u30C8\u30EC\u30FC\u30B8\u306B\u4FDD\u5B58\u3055\u308C\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5C0F\u3055\u304F\u9AD8\u901F\u306B\u4FDD\u3066\u307E\u3059\u30020 \u306B\u3059\u308B\u3068\u7121\u52B9\u306B\u306A\u308A\u307E\u3059\u3002\u7121\u6599\u30D7\u30E9\u30F3\u306B\u306F\u5236\u9650\u304C\u3042\u308B\u305F\u3081\u3001\u30DB\u30B9\u30C8\u306E\u30B9\u30C8\u30EC\u30FC\u30B8\u5BB9\u91CF\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6709\u52B9\u306B\u3059\u308B\u3068\u3001\u4E0A\u8A18\u306E\u6700\u5927\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA\u3092 2000 MB \u307E\u3067\u4E0A\u3052\u3089\u308C\u307E\u3059\u3002",
|
|
"s.hEncryption": "\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316",
|
|
"s.encOn": "\u6697\u53F7\u5316\u306F\u6709\u52B9\u3067\u3059\uFF08\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u30ED\u30C3\u30AF\u89E3\u9664\u6E08\u307F\uFF09",
|
|
"s.encOnDesc": "\u30CE\u30FC\u30C8\u3001\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3001\u30D5\u30A1\u30A4\u30EB\u540D\u306F\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u524D\u306B\u6697\u53F7\u5316\u3055\u308C\u307E\u3059\u3002\u4ED6\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3082\u540C\u3058\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u304C\u5FC5\u8981\u3067\u3059\u3002",
|
|
"s.encRemovePlain": "\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u30B3\u30D4\u30FC\u3092\u524A\u9664\u2026",
|
|
"s.encLock": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u30ED\u30C3\u30AF",
|
|
"s.encOff": "\u4FDD\u7BA1\u5EAB\u3092\u6697\u53F7\u5316",
|
|
"s.encOffDesc": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u8A2D\u5B9A\u3059\u308B\u3068\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30DB\u30B9\u30C8\u306B\u306F\u8AAD\u307F\u53D6\u308C\u306A\u3044\u30C7\u30FC\u30BF\u3057\u304B\u898B\u3048\u306A\u304F\u306A\u308A\u307E\u3059\u3002\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3059\u3067\u306B\u6697\u53F7\u5316\u3055\u308C\u305F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30ED\u30C3\u30AF\u89E3\u9664\u306B\u3082\u4F7F\u7528\u3057\u307E\u3059\u3002",
|
|
"s.encTurnOn": "\u6709\u52B9\u5316\u307E\u305F\u306F\u30ED\u30C3\u30AF\u89E3\u9664\u2026",
|
|
"s.hShared": "\u5171\u6709\u30D5\u30A9\u30EB\u30C0",
|
|
"s.sharedIntro": "\u4FDD\u7BA1\u5EAB\u306E\u4ED6\u306E\u90E8\u5206\u3092\u975E\u516C\u958B\u306B\u3057\u305F\u307E\u307E\u3001\u7279\u5B9A\u306E\u30D5\u30A9\u30EB\u30C0\uFF08\u30C1\u30FC\u30E0\u30D5\u30A9\u30EB\u30C0\u306A\u3069\uFF09\u3092\u5C02\u7528\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u540C\u671F\u3057\u307E\u3059\u3002",
|
|
"s.sharedRowDesc": "{host}\u3001\u30D6\u30E9\u30F3\u30C1 {branch}",
|
|
"s.sharedRemove": "\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u500B\u5225\u540C\u671F\u3092\u505C\u6B62",
|
|
"s.sharedAdd": "\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u3092\u8FFD\u52A0",
|
|
"s.sharedAddBtn": "\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u3092\u8FFD\u52A0\u2026",
|
|
"s.hDevice": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u307F",
|
|
"s.deviceIntro": "\u3053\u308C\u3089\u306E\u8A2D\u5B9A\u306F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u4FDD\u5B58\u3055\u308C\u3001\u540C\u671F\u3055\u308C\u307E\u305B\u3093\u3002\u305D\u306E\u305F\u3081\u3001\u30B9\u30DE\u30FC\u30C8\u30D5\u30A9\u30F3\u3067\u306F\u30CE\u30FC\u30C8\u30D1\u30BD\u30B3\u30F3\u3088\u308A\u5C11\u306A\u3044\u7BC4\u56F2\u3060\u3051\u3092\u540C\u671F\u3067\u304D\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u5BFE\u8C61\u5916\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u3001\u3053\u3053\u304B\u3089\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3001\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3001\u524A\u9664\u3055\u308C\u308B\u3053\u3068\u306F\u306A\u304F\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306B\u5B89\u5168\u306B\u6B8B\u308A\u307E\u3059\u3002",
|
|
"s.include": "\u3053\u308C\u3089\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u307F\u540C\u671F",
|
|
"s.includeDesc": "1 \u884C\u306B 1 \u3064\u306E\u30D5\u30A9\u30EB\u30C0\u307E\u305F\u306F\u30D1\u30BF\u30FC\u30F3\uFF08\u4F8B\uFF1Adaily/ \u3084 projects/\uFF09\u3002\u7A7A\u6B04\u306B\u3059\u308B\u3068\u3059\u3079\u3066\u3092\u540C\u671F\u3057\u307E\u3059\u3002",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3055\u3089\u306B\u9664\u5916",
|
|
"s.deviceExcludeDesc": "gitignore \u5F62\u5F0F\u3067 1 \u884C\u306B 1 \u3064\uFF08\u4F8B\uFF1Aattachments/ \u3084 *.mp4\uFF09",
|
|
"s.maxDownload": "\u3053\u306E\u30B5\u30A4\u30BA\uFF08MB\uFF09\u3092\u8D85\u3048\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u306A\u3044",
|
|
"s.maxDownloadDesc": "\u5927\u304D\u306A\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u6B8B\u308A\u3001\u5FC5\u8981\u306A\u3068\u304D\u306B\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3067\u304D\u307E\u3059\u30020 = \u5236\u9650\u306A\u3057\u3002\u30B9\u30DE\u30FC\u30C8\u30D5\u30A9\u30F3\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u306F 25 \u3067\u3059\u3002",
|
|
"s.onDemand": "\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u3067\u5229\u7528\u3067\u304D\u308B\u30D5\u30A1\u30A4\u30EB",
|
|
"s.onDemandDesc": "{n} \u500B\u306E\u5927\u304D\u306A\u30D5\u30A1\u30A4\u30EB\u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306F\u3042\u308A\u307E\u305B\u3093\u3002{pinned} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u3067\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3055\u308C\u3001\u540C\u671F\u304C\u7DAD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
"s.onDemandBrowse": "\u53C2\u7167\u3057\u3066\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u2026",
|
|
"s.onDemandForget": "\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u30EA\u30B9\u30C8\u3092\u30AF\u30EA\u30A2",
|
|
"s.onDemandForgotten": "\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u30EA\u30B9\u30C8\u3092\u30AF\u30EA\u30A2\u3057\u307E\u3057\u305F\u3002\u305D\u308C\u3089\u306E\u30ED\u30FC\u30AB\u30EB\u30B3\u30D4\u30FC\u3092\u524A\u9664\u3059\u308B\u306B\u306F\u300C\u7A7A\u304D\u5BB9\u91CF\u3092\u5897\u3084\u3059\u300D\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.freeSpace": "\u7A7A\u304D\u5BB9\u91CF\u3092\u5897\u3084\u3059",
|
|
"s.freeSpaceDesc": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540C\u671F\u3057\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u306E\u30ED\u30FC\u30AB\u30EB\u30B3\u30D4\u30FC\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u305F\u3060\u3057\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30B3\u30D4\u30FC\u3068\u540C\u4E00\u306E\u5834\u5408\u306B\u9650\u308A\u307E\u3059\u3002",
|
|
"s.freeSpaceBtn": "\u7A7A\u304D\u5BB9\u91CF\u3092\u5897\u3084\u3059\u2026",
|
|
"s.hConflicts": "\u7AF6\u5408\u3068\u5B89\u5168\u6027",
|
|
"s.strategy": "\u30D5\u30A1\u30A4\u30EB\u304C\u4E21\u65B9\u3067\u5909\u66F4\u3055\u308C\u305F\u5834\u5408",
|
|
"s.strategyAuto": "\u81EA\u52D5\u7684\u306B\u30DE\u30FC\u30B8\uFF08\u63A8\u5968\uFF09",
|
|
"s.strategyMarkers": "\u30DE\u30FC\u30B8\u3057\u3001\u91CD\u306A\u308A\u3092 <<<<<<< \u30DE\u30FC\u30AB\u30FC\u3067\u793A\u3059",
|
|
"s.strategyBoth": "\u4E21\u65B9\u3092\u4FDD\u6301\uFF08\u81EA\u5206\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u30B3\u30D4\u30FC\u3068\u3057\u3066\u4FDD\u5B58\uFF09",
|
|
"s.strategyAsk": "\u6BCE\u56DE\u78BA\u8A8D\u3059\u308B",
|
|
"s.strategyLocal": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u512A\u5148",
|
|
"s.strategyRemote": "{host} \u3092\u512A\u5148",
|
|
"s.review": "\u624B\u52D5\u540C\u671F\u306E\u524D\u306B\u78BA\u8A8D",
|
|
"s.reviewDesc": "\u624B\u52D5\u3067\u540C\u671F\u3092\u958B\u59CB\u3057\u305F\u3068\u304D\u3001\u4FDD\u7559\u4E2D\u306E\u3059\u3079\u3066\u306E\u5909\u66F4\u3092\u5DEE\u5206\u3068\u30C1\u30A7\u30C3\u30AF\u30DC\u30C3\u30AF\u30B9\u4ED8\u304D\u3067\u5148\u306B\u8868\u793A\u3057\u307E\u3059\u3002\u81EA\u52D5\u540C\u671F\u306B\u306F\u5F71\u97FF\u3057\u307E\u305B\u3093\u3002",
|
|
"s.eol": "\u6539\u884C\u30B3\u30FC\u30C9\u306E\u307F\u306E\u5909\u66F4\u3092\u7121\u8996",
|
|
"s.eolDesc": "\u6539\u884C\u30B3\u30FC\u30C9\u306E\u5F62\u5F0F\u3060\u3051\u304C\u5909\u308F\u3063\u305F\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u306A\u3057\u3068\u3057\u3066\u6271\u308F\u308C\u308B\u305F\u3081\u3001\u4ED6\u306E OS \u306E\u30A8\u30C7\u30A3\u30BF\u306B\u3088\u308B\u4E0D\u8981\u306A\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3084\u7AF6\u5408\u304C\u767A\u751F\u3057\u307E\u305B\u3093\u3002",
|
|
"s.guard": "\u524A\u9664\u30AC\u30FC\u30C9",
|
|
"s.guardDesc": "\u540C\u671F\u3067\u4E00\u5EA6\u306B\u591A\u6570\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u524A\u9664\u3055\u308C\u308B\u524D\u306B\u78BA\u8A8D\u3057\u307E\u3059\u3002",
|
|
"s.guardThreshold": "\u524A\u9664\u30AC\u30FC\u30C9\u306E\u3057\u304D\u3044\u5024",
|
|
"s.guardThresholdDesc": "\u524A\u9664\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u304C\u3053\u306E\u6570\uFF08\u5DE6\uFF09\u307E\u305F\u306F\u4FDD\u7BA1\u5EAB\u306E\u3053\u306E\u5272\u5408\uFF08\u53F3\uFF09\u306E\u3046\u3061\u5927\u304D\u3044\u65B9\u3092\u8D85\u3048\u305F\u3068\u304D\u306B\u78BA\u8A8D\u3057\u307E\u3059\u3002",
|
|
"s.hBackup": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7",
|
|
"s.snapshot": "\u6BCE\u65E5\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8",
|
|
"s.snapshotDesc": "1 \u65E5\u306B 1 \u56DE\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u73FE\u5728\u306E\u72B6\u614B\u306B\u65E5\u4ED8\u4ED8\u304D\u306E\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u30BF\u30B0\u3092\u4ED8\u3051\u3001\u3044\u3064\u3067\u3082\u305D\u306E\u72B6\u614B\u306B\u623B\u308C\u308B\u3088\u3046\u306B\u3057\u307E\u3059\u3002",
|
|
"s.hAdvanced": "\u8A73\u7D30\u8A2D\u5B9A",
|
|
"s.commitMsg": "\u30B3\u30DF\u30C3\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8",
|
|
"s.commitMsgDesc": "\u5909\u6570\uFF1A{{device}}\u3001{{summary}}\u3001{{date}}\u3001{{count}}\u3001{{files}}\u3001{{trigger}}\u3001{{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "\u5B8C\u5168\u306A\u518D\u30B9\u30AD\u30E3\u30F3\u306E\u9593\u9694\uFF08\u5206\uFF09",
|
|
"s.fullScanDesc": "\u5B8C\u5168\u306A\u518D\u30B9\u30AD\u30E3\u30F3\u306E\u5408\u9593\u306F\u3001Obsidian \u304C\u7DE8\u96C6\u6E08\u307F\u3068\u5831\u544A\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u306E\u307F\u3092\u518D\u78BA\u8A8D\u3057\u3001\u8A2D\u5B9A\u30D5\u30A9\u30EB\u30C0\u306E\u30C7\u30A3\u30B9\u30AF\u8AAD\u307F\u8FBC\u307F\u306F\u6700\u5927 5 \u5206\u306B 1 \u56DE\u3067\u3059\u3002\u30B9\u30DE\u30FC\u30C8\u30D5\u30A9\u30F3\u3067\u306E\u52D5\u4F5C\u3092\u8EFD\u304F\u4FDD\u3061\u307E\u3059\u3002",
|
|
"s.notices": "\u901A\u77E5",
|
|
"s.noticesAll": "\u3059\u3079\u3066\u306E\u540C\u671F",
|
|
"s.noticesErrors": "\u30A8\u30E9\u30FC\u3068\u7AF6\u5408\u306E\u307F",
|
|
"s.noticesNone": "\u306A\u3057",
|
|
"s.resetState": "\u540C\u671F\u72B6\u614B\u3092\u30EA\u30BB\u30C3\u30C8",
|
|
"s.resetStateDesc": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u6700\u5F8C\u306B\u540C\u671F\u3057\u305F\u5185\u5BB9\u306E\u8A18\u9332\u3092\u6D88\u53BB\u3057\u307E\u3059\u3002\u6B21\u56DE\u306E\u540C\u671F\u3067\u306F\u3059\u3079\u3066\u3092\u6BD4\u8F03\u3057\u3001\u524A\u9664\u306F\u4E00\u5207\u884C\u3044\u307E\u305B\u3093\u3002\u5185\u5BB9\u304C\u7570\u306A\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u4E21\u65B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u304C\u4FDD\u6301\u3055\u308C\u307E\u3059\u3002",
|
|
"s.resetBtn": "\u30EA\u30BB\u30C3\u30C8",
|
|
"s.resetDone": "\u540C\u671F\u72B6\u614B\u3092\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",
|
|
"w.stepConnect": "\u63A5\u7D9A",
|
|
"w.stepRepo": "\u30EA\u30DD\u30B8\u30C8\u30EA",
|
|
"w.stepVault": "\u3053\u306E\u4FDD\u7BA1\u5EAB",
|
|
"w.stepSync": "\u6700\u521D\u306E\u540C\u671F",
|
|
"w.title": "\u4FDD\u7BA1\u5EAB\u306E\u540C\u671F\u3092\u8A2D\u5B9A",
|
|
"w.sub": "\u30CE\u30FC\u30C8\u306F\u3001GitHub\u3001GitLab\u3001Codeberg\u3001Gitea\u3001Forgejo\u3001Bitbucket \u4E0A\u306E\u3042\u306A\u305F\u304C\u6240\u6709\u3059\u308B\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8 Git \u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002\u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\u3068\u30E2\u30D0\u30A4\u30EB\u3067\u52D5\u4F5C\u3057\u3001\u8FFD\u52A0\u306E\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u306F\u4E0D\u8981\u3067\u3059\u3002",
|
|
"w.where": "\u4FDD\u7BA1\u5EAB\u306E\u4FDD\u5B58\u5148\u306F\u3069\u3053\u306B\u3057\u307E\u3059\u304B\uFF1F",
|
|
"w.apiUrl": "\u30B5\u30FC\u30D0\u30FC API URL",
|
|
"w.deviceName": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u540D\u524D",
|
|
"w.deviceNameDesc": "\u5C65\u6B74\u3068\u7AF6\u5408\u30B3\u30D4\u30FC\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002",
|
|
"w.signedIn": "{user} \u3068\u3057\u3066\u30B5\u30A4\u30F3\u30A4\u30F3\u4E2D",
|
|
"w.tokenFailed": "\u305D\u306E\u30C8\u30FC\u30AF\u30F3\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"w.alreadyConnected": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u3059\u3067\u306B\u63A5\u7D9A\u6E08\u307F\u3067\u3059",
|
|
"w.continue": "\u7D9A\u884C",
|
|
"w.connectWith": "{host} \u306E\u30C8\u30FC\u30AF\u30F3\u3067\u63A5\u7D9A",
|
|
"w.tokenStored": "\u30C8\u30FC\u30AF\u30F3\u306F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u5B89\u5168\u306B\u4FDD\u5B58\u3055\u308C\u3001\u540C\u671F\u3055\u308C\u308B\u8A2D\u5B9A\u306B\u306F\u542B\u307E\u308C\u307E\u305B\u3093\u3002",
|
|
"w.token": "\u30C8\u30FC\u30AF\u30F3",
|
|
"w.pasteFirst": "\u5148\u306B\u30C8\u30FC\u30AF\u30F3\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"w.repoTitle": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u9078\u629E",
|
|
"w.repoSub": "{user} \u3068\u3057\u3066\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u307E\u3057\u305F\u3002\u3053\u306E\u4FDD\u7BA1\u5EAB\u7528\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u9078\u629E\u3059\u308B\u304B\u3001\u65B0\u3057\u3044\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"w.createNew": "\u65B0\u3057\u3044\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210",
|
|
"w.create": "\u4F5C\u6210",
|
|
"w.createFailed": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}\u3002\u30C8\u30FC\u30AF\u30F3\u306B\u3088\u3063\u3066\u306F\u8FFD\u52A0\u306E\u6A29\u9650\u304C\u5FC5\u8981\u3067\u3059\u3002\u30DB\u30B9\u30C8\u306E\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8\u3067\u4F5C\u6210\u3057\u3066\u304B\u3089\u3001\u4E0B\u3067\u9078\u629E\u3059\u308B\u3053\u3068\u3082\u3067\u304D\u307E\u3059\u3002",
|
|
"w.useExisting": "\u307E\u305F\u306F\u65E2\u5B58\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F7F\u7528",
|
|
"w.filter": "\u7D5E\u308A\u8FBC\u307F\u2026",
|
|
"w.loadingRepos": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
"w.noMatch": "\u4E00\u81F4\u3059\u308B\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"w.private": "\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8",
|
|
"w.public": "\u516C\u958B",
|
|
"w.publicTitle": "\u516C\u958B\u30EA\u30DD\u30B8\u30C8\u30EA",
|
|
"w.publicBody": "{repo} \u306F\u516C\u958B\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u30A4\u30F3\u30BF\u30FC\u30CD\u30C3\u30C8\u4E0A\u306E\u8AB0\u3082\u304C\u3042\u306A\u305F\u306E\u30CE\u30FC\u30C8\u3092\u8AAD\u3081\u308B\u72B6\u614B\u3067\u3059\u3002\u30CE\u30FC\u30C8\u3092\u516C\u958B\u3059\u308B\u3064\u3082\u308A\u3067\u306A\u3044\u9650\u308A\u3001\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"w.useAnyway": "\u305D\u308C\u3067\u3082\u4F7F\u7528\u3059\u308B",
|
|
"w.listFailed": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u4E00\u89A7\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"w.back": "\u623B\u308B",
|
|
"w.vaultTitle": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u3068\u30EA\u30DD\u30B8\u30C8\u30EA",
|
|
"w.looking": "\u4E21\u65B9\u306E\u5185\u5BB9\u3092\u78BA\u8A8D\u4E2D\u2026",
|
|
"w.readFailed": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"w.counts": "\u3053\u306E\u4FDD\u7BA1\u5EAB\uFF1A{local} \u500B\u306E\u30D5\u30A1\u30A4\u30EB \xB7 \u30EA\u30DD\u30B8\u30C8\u30EA\uFF1A{remote} \u500B\u306E\u30D5\u30A1\u30A4\u30EB",
|
|
"w.optUpload": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",
|
|
"w.optUploadDesc": "\u3053\u308C\u304C\u6700\u521D\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3059\u3002\u3053\u3053\u306B\u3042\u308B\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30B3\u30D4\u30FC\u3055\u308C\u307E\u3059\u3002",
|
|
"w.optDownload": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u4FDD\u7BA1\u5EAB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
"w.optDownloadDesc": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306F\u65B0\u898F\u3067\u3059\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u3001\u3053\u3053\u306B\u3042\u308B\u521D\u671F\u30D5\u30A1\u30A4\u30EB\u3092\u7F6E\u304D\u63DB\u3048\u307E\u3059\u3002",
|
|
"w.optMerge": "\u30DE\u30FC\u30B8\u3057\u3001\u7570\u306A\u308B\u5834\u5408\u306F\u4E21\u65B9\u3092\u4FDD\u6301",
|
|
"w.optMergeDesc": "\u4F55\u3082\u4E0A\u66F8\u304D\u3055\u308C\u307E\u305B\u3093\u3002\u5185\u5BB9\u304C\u7570\u306A\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u4E26\u3079\u3066\u4FDD\u6301\u3055\u308C\u307E\u3059\u3002",
|
|
"w.optMergeSafe": "\u30DE\u30FC\u30B8\u3057\u3001\u7570\u306A\u308B\u5834\u5408\u306F\u4E21\u65B9\u3092\u4FDD\u6301\uFF08\u6700\u3082\u5B89\u5168\uFF09",
|
|
"w.optMergeSafeDesc": "\u7247\u65B9\u306B\u3057\u304B\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u306F\u3082\u3046\u7247\u65B9\u306B\u30B3\u30D4\u30FC\u3055\u308C\u307E\u3059\u3002\u5185\u5BB9\u304C\u7570\u306A\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u4E26\u3079\u3066\u4FDD\u6301\u3055\u308C\u307E\u3059\u3002",
|
|
"w.optRemoteWins": "\u30DE\u30FC\u30B8\u3057\u3001\u7570\u306A\u308B\u5834\u5408\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u512A\u5148",
|
|
"w.optRemoteWinsDesc": "\u4E21\u65B9\u306B\u5B58\u5728\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u30B4\u30DF\u7BB1\u306B\u79FB\u52D5\u3055\u308C\u307E\u3059\u3002",
|
|
"w.optLocalWins": "\u30DE\u30FC\u30B8\u3057\u3001\u7570\u306A\u308B\u5834\u5408\u306F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u512A\u5148",
|
|
"w.optLocalWinsDesc": "\u4E21\u65B9\u306B\u5B58\u5728\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002",
|
|
"w.neverDeletes": "\u6700\u521D\u306E\u540C\u671F\u3067\u4F55\u304B\u304C\u524A\u9664\u3055\u308C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"w.encrypted": "\u{1F512} \u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u7D9A\u884C\u3059\u308B\u306B\u306F\u30ED\u30C3\u30AF\u3092\u89E3\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"w.encryptOpt": "\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u3067\u6697\u53F7\u5316\uFF08\u4EFB\u610F\uFF09",
|
|
"w.encryptOptDesc": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30DB\u30B9\u30C8\u306B\u306F\u8AAD\u307F\u53D6\u308C\u306A\u3044\u30C7\u30FC\u30BF\u3057\u304B\u898B\u3048\u307E\u305B\u3093\u3002\u3059\u3079\u3066\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3053\u306E\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u304C\u5FC5\u8981\u306B\u306A\u308A\u3001\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u306F\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
"w.passphrase": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA",
|
|
"w.encOnDevice": "\u{1F512} \u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u304C\u6709\u52B9\u3067\u3059\u3002",
|
|
"w.alsoConfig": "\u8A2D\u5B9A\u3001\u30C6\u30FC\u30DE\u3001\u30D7\u30E9\u30B0\u30A4\u30F3\u3082\u540C\u671F\uFF08{dir}\uFF09",
|
|
"w.start": "\u6700\u521D\u306E\u540C\u671F\u3092\u958B\u59CB",
|
|
"w.unlockFirst": "\u5148\u306B\u6697\u53F7\u5316\u3055\u308C\u305F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30ED\u30C3\u30AF\u3092\u89E3\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"w.saveTitle": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u4FDD\u5B58",
|
|
"w.saveBody": "\u3053\u306E\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u5B89\u5168\u306A\u5834\u6240\u306B\u4FDD\u5B58\u3057\u307E\u3057\u305F\u304B\uFF1F\u5FA9\u5143\u3059\u308B\u65B9\u6CD5\u306F\u306A\u304F\u3001\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u304C\u306A\u3051\u308C\u3070\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30B3\u30D4\u30FC\u306F\u8AAD\u307F\u53D6\u308C\u307E\u305B\u3093\u3002",
|
|
"w.saved": "\u4FDD\u5B58\u3057\u307E\u3057\u305F",
|
|
"w.syncTitle": "\u6700\u521D\u306E\u540C\u671F",
|
|
"w.syncSub": "\u5927\u304D\u306A\u4FDD\u7BA1\u5EAB\u3067\u306F\u6642\u9593\u304C\u304B\u304B\u308B\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002\u3053\u306E\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u9589\u3058\u3066\u3082\u3001\u540C\u671F\u306F\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u7D9A\u884C\u3055\u308C\u307E\u3059\u3002",
|
|
"w.starting": "\u958B\u59CB\u4E2D\u2026",
|
|
"w.doneTitle": "\u6E96\u5099\u304C\u6574\u3044\u307E\u3057\u305F",
|
|
"w.tip1": "\u540C\u671F\u306F\u8D77\u52D5\u6642\u3001\u7DE8\u96C6\u5F8C\u3001\u304A\u3088\u3073\u5B9A\u671F\u7684\u306B\u5B9F\u884C\u3055\u308C\u307E\u3059\u3002\u30EA\u30DC\u30F3\u306E\u30DC\u30BF\u30F3\u3067\u3059\u3050\u306B\u540C\u671F\u3067\u304D\u307E\u3059\u3002",
|
|
"w.tip2": "\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\uFF08\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u30A2\u30A4\u30B3\u30F3\uFF09\u306B\u306F\u3001\u4FDD\u7559\u4E2D\u306E\u5185\u5BB9\u3068\u5BFE\u5FDC\u304C\u5FC5\u8981\u306A\u9805\u76EE\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002",
|
|
"w.tip3": "\u4ED6\u306E\u5404\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u3001\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3001\u540C\u3058\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u3053\u306E\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"w.openStatus": "\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u958B\u304F",
|
|
"w.done": "\u5B8C\u4E86",
|
|
"e.passShort": "12 \u6587\u5B57\u4EE5\u4E0A\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30E9\u30F3\u30C0\u30E0\u306A\u5358\u8A9E\u3092\u3044\u304F\u3064\u304B\u4E26\u3079\u308B\u306E\u304C\u304A\u3059\u3059\u3081\u3067\u3059\u3002",
|
|
"e.passOk": "OK\u3002\u9577\u3044\u307B\u3069\u5F37\u529B\u3067\u3059\uFF0816 \u6587\u5B57\u4EE5\u4E0A\u3001\u307E\u305F\u306F\u30E9\u30F3\u30C0\u30E0\u306A\u5358\u8A9E 4 \u3064\u4EE5\u4E0A\uFF09\u3002",
|
|
"e.passStrong": "\u5F37\u529B\u3067\u3059\u3002",
|
|
"e.checking": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u78BA\u8A8D\u4E2D\u2026",
|
|
"e.unlockTitle": "\u6697\u53F7\u5316\u3055\u308C\u305F\u4FDD\u7BA1\u5EAB\u306E\u30ED\u30C3\u30AF\u3092\u89E3\u9664",
|
|
"e.upgrade": "\u6697\u53F7\u5316\u3092\u30A2\u30C3\u30D7\u30B0\u30EC\u30FC\u30C9\u2026",
|
|
"e.upgradeDesc": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u53E4\u3044\u5F62\u5F0F\u3092\u4F7F\u3063\u3066\u3044\u307E\u3059\u3002\u30D5\u30A1\u30A4\u30EB\u306E\u6697\u53F7\u5316\u3055\u308C\u305F\u5185\u5BB9\u304C\u540D\u524D\u306B\u7D50\u3073\u4ED8\u3044\u3066\u3044\u306A\u3044\u305F\u3081\u3001\u66F8\u304D\u8FBC\u307F\u6A29\u9650\u3092\u6301\u3064\u4EBA\u304C2\u3064\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u6C17\u4ED8\u304B\u308C\u305A\u306B\u5165\u308C\u66FF\u3048\u3089\u308C\u307E\u3059\u3002\u30A2\u30C3\u30D7\u30B0\u30EC\u30FC\u30C9\u3059\u308B\u3068\u3001\u540C\u3058\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3067\u5404\u30D5\u30A1\u30A4\u30EB\u3092\u4E00\u5EA6\u3060\u3051\u518D\u6697\u53F7\u5316\u3057\u3001\u305D\u308C\u305E\u308C\u81EA\u5206\u306E\u540D\u524D\u3067\u306E\u307F\u958B\u3051\u308B\u3088\u3046\u306B\u3057\u307E\u3059\u3002",
|
|
"e.upgradeTitle": "\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u3092\u30A2\u30C3\u30D7\u30B0\u30EC\u30FC\u30C9",
|
|
"e.upgradeBody": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u304C\u5148\u306B\u540C\u671F\u3057\u3001\u305D\u306E\u5F8C\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u6697\u53F7\u5316\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u3059\u3079\u3066\u518D\u6697\u53F7\u5316\u3057\u3066\u30011\u3064\u306E\u30B3\u30DF\u30C3\u30C8\u3067\u518D\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u307E\u3059\uFF08\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u306F\u540C\u3058\uFF09\u3002\u4ED6\u306E\u30C7\u30D0\u30A4\u30B9\u306F\u6B21\u56DE\u306E\u540C\u671F\u3067\u5207\u308A\u66FF\u308F\u308A\u307E\u3059\u3002\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u304C1.8.0\u3088\u308A\u524D\u306E\u30C7\u30D0\u30A4\u30B9\u306F\u65B0\u3057\u3044\u5F62\u5F0F\u3092\u8AAD\u3081\u305A\u3001\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3059\u308B\u307E\u3067\u540C\u671F\u3092\u505C\u6B62\u3057\u307E\u3059\u3002",
|
|
"e.upgradeConfirm": "\u30A2\u30C3\u30D7\u30B0\u30EC\u30FC\u30C9",
|
|
"e.upgraded": "\u6697\u53F7\u5316\u3092\u30A2\u30C3\u30D7\u30B0\u30EC\u30FC\u30C9\u3057\u307E\u3057\u305F\uFF1A{n} \u4EF6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u518D\u6697\u53F7\u5316\u3057\u307E\u3057\u305F\u3002",
|
|
"e.upgradeFailed": "\u6697\u53F7\u5316\u3092\u30A2\u30C3\u30D7\u30B0\u30EC\u30FC\u30C9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"e.unlockBody": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540C\u671F\u3059\u308B\u306B\u306F\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30AD\u30FC\u306F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u5B89\u5168\u306A\u30B9\u30C8\u30EC\u30FC\u30B8\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"e.unlocking": "\u30ED\u30C3\u30AF\u89E3\u9664\u4E2D\u2026\uFF08\u610F\u56F3\u7684\u306B\u5C11\u3057\u6642\u9593\u304C\u304B\u304B\u308A\u307E\u3059\uFF09",
|
|
"e.unlocked": "\u6697\u53F7\u5316\u3055\u308C\u305F\u4FDD\u7BA1\u5EAB\u3092\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u30ED\u30C3\u30AF\u89E3\u9664\u3057\u307E\u3057\u305F\u3002",
|
|
"e.unlock": "\u30ED\u30C3\u30AF\u89E3\u9664",
|
|
"e.enableTitle": "\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u3092\u6709\u52B9\u306B\u3059\u308B",
|
|
"e.point1": "\u30CE\u30FC\u30C8\u3001\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB\u3001\u30D5\u30A1\u30A4\u30EB\u540D\u306F\u3001\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u524D\u306B\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u4E0A\u3067\u6697\u53F7\u5316\u3055\u308C\u307E\u3059\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30DB\u30B9\u30C8\u306B\u306F\u8AAD\u307F\u53D6\u308C\u306A\u3044\u30C7\u30FC\u30BF\u306E\u307F\u304C\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"e.point2": "\u3059\u3079\u3066\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540C\u3058\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u304C\u5FC5\u8981\u3067\u3059\u3002\u5FA9\u5143\u3059\u308B\u65B9\u6CD5\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u5FD8\u308C\u308B\u3068\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30B3\u30D4\u30FC\u306F\u8AAD\u307F\u53D6\u308C\u306A\u304F\u306A\u308A\u307E\u3059\u3002",
|
|
"e.point3": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u30CE\u30FC\u30C8\u304C\u3059\u3067\u306B\u3042\u308B\u5834\u5408\u3001\u305D\u308C\u3089\u306F\u5C65\u6B74\u306B\u6B8B\u308A\u307E\u3059\u3002\u5B8C\u5168\u306A\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u306E\u305F\u3081\u306B\u306F\u3001\u65B0\u3057\u3044\u7A7A\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"e.point4": "\u30DB\u30B9\u30C8\u306E\u30A6\u30A7\u30D6\u30B5\u30A4\u30C8\u3067\u30CE\u30FC\u30C8\u3092\u95B2\u89A7\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u306A\u304F\u306A\u308A\u307E\u3059\u3002\u4EE3\u308F\u308A\u306B\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u5C65\u6B74\u3068\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"e.repeat": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u518D\u5165\u529B",
|
|
"e.ack": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u5B89\u5168\u306A\u5834\u6240\uFF08\u30D1\u30B9\u30EF\u30FC\u30C9\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u306A\u3069\uFF09\u306B\u4FDD\u5B58\u3057\u307E\u3057\u305F",
|
|
"e.turnOn": "\u6697\u53F7\u5316\u3092\u6709\u52B9\u306B\u3059\u308B",
|
|
"e.mismatch": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u304C\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002",
|
|
"e.confirmSaved": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u4FDD\u5B58\u3057\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"e.settingUp": "\u8A2D\u5B9A\u4E2D\u2026\uFF08\u610F\u56F3\u7684\u306B\u5C11\u3057\u6642\u9593\u304C\u304B\u304B\u308A\u307E\u3059\uFF09",
|
|
"e.enabled": "\u6697\u53F7\u5316\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3057\u305F\u3002\u6B21\u56DE\u306E\u540C\u671F\u3067\u3059\u3079\u3066\u304C\u6697\u53F7\u5316\u3055\u308C\u3066\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3059\u3002",
|
|
"sh.intro": "\u4FDD\u7BA1\u5EAB\u306E\u4ED6\u306E\u90E8\u5206\u3092\u81EA\u5206\u306E\u30D7\u30E9\u30A4\u30D9\u30FC\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u7F6E\u3044\u305F\u307E\u307E\u30011 \u3064\u306E\u30D5\u30A9\u30EB\u30C0\uFF08\u30C1\u30FC\u30E0\u30D5\u30A9\u30EB\u30C0\u306A\u3069\uFF09\u3092\u5C02\u7528\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u540C\u671F\u3057\u307E\u3059\u3002\u30D5\u30A9\u30EB\u30C0\u306F\u305D\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EB\u30FC\u30C8\u3001\u307E\u305F\u306F\u305D\u306E\u4E2D\u306E\u30D5\u30A9\u30EB\u30C0\u306B\u5BFE\u5FDC\u3057\u307E\u3059\u3002",
|
|
"sh.folder": "\u30D5\u30A9\u30EB\u30C0",
|
|
"sh.folderPlaceholder": "Work",
|
|
"sh.ownerDesc": "\u5171\u6709\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30E6\u30FC\u30B6\u30FC\u3001\u7D44\u7E54\u3001\u30B0\u30EB\u30FC\u30D7\u3001\u307E\u305F\u306F\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u3002",
|
|
"sh.token": "\u30C8\u30FC\u30AF\u30F3\uFF08\u4EFB\u610F\uFF09",
|
|
"sh.tokenDesc": "\u7A7A\u6B04\u306B\u3059\u308B\u3068\u30E1\u30A4\u30F3\u306E\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u7528\u3057\u307E\u3059\uFF08\u540C\u3058\u30DB\u30B9\u30C8\u306E\u307F\uFF09\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u5B89\u5168\u306B\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"sh.note": "\u30E1\u30A4\u30F3\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u306B\u3059\u3067\u306B\u3042\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u305D\u306E\u307E\u307E\uFF08\u5C65\u6B74\u5185\u306B\uFF09\u6B8B\u308A\u307E\u3059\u304C\u3001\u30E1\u30A4\u30F3\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u306F\u540C\u671F\u3055\u308C\u306A\u304F\u306A\u308A\u307E\u3059\u3002\u5171\u540C\u7DE8\u96C6\u8005\u304C\u8AAD\u3081\u308B\u3088\u3046\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308B\u305F\u3081\u3001\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u306B\u306F\u6697\u53F7\u5316\u306F\u9069\u7528\u3055\u308C\u307E\u305B\u3093\u3002",
|
|
"sh.add": "\u8FFD\u52A0",
|
|
"sh.required": "\u30D5\u30A9\u30EB\u30C0\u3001\u30AA\u30FC\u30CA\u30FC\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u5FC5\u9808\u3067\u3059\u3002",
|
|
"sh.overlap": "\u305D\u306E\u30D5\u30A9\u30EB\u30C0\u306F\u65E2\u5B58\u306E\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u3068\u91CD\u8907\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
"sh.checking": "\u30A2\u30AF\u30BB\u30B9\u3092\u78BA\u8A8D\u4E2D\u2026",
|
|
"sh.noAccess": "{repo} \u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\uFF1A{error}",
|
|
"sh.added": "\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u3092\u8FFD\u52A0\u3057\u307E\u3057\u305F\uFF1A{folder} \u2194 {repo}",
|
|
"u.andMore": "\u2026\u4ED6 {n} \u4EF6",
|
|
"u.binaryDiff": "\u30D0\u30A4\u30CA\u30EA\u30D5\u30A1\u30A4\u30EB\uFF1A\u30C6\u30AD\u30B9\u30C8\u306E\u5DEE\u5206\u306F\u3042\u308A\u307E\u305B\u3093\u3002{a}\uFF1A{as} \u30D0\u30A4\u30C8 \xB7 {b}\uFF1A{bs} \u30D0\u30A4\u30C8\u3002",
|
|
"u.loadFailed": "\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"u.conflictTitle": "\u7AF6\u5408\uFF1A{path}",
|
|
"u.repository": "\u30EA\u30DD\u30B8\u30C8\u30EA",
|
|
"u.conflictBody": "\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3068\u30EA\u30DD\u30B8\u30C8\u30EA\uFF08{host}\uFF09\u306E\u4E21\u65B9\u3067\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
"u.pickHint": "\u5909\u66F4\u3054\u3068\u306B\u3001\u4FDD\u6301\u3059\u308B\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u4E21\u65B9\u3092\u9078\u3076\u3068\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u884C\u304C\u5148\u306B\u306A\u308A\u307E\u3059\u3002",
|
|
"u.thisDevice": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9",
|
|
"u.chooseChanges": "\u5909\u66F4\u3092\u9078\u629E",
|
|
"u.fullDiff": "\u5168\u4F53\u306E\u5DEE\u5206",
|
|
"u.apply": "\u9078\u629E\u3092\u9069\u7528",
|
|
"u.binaryConflict": "\u30D0\u30A4\u30CA\u30EA\u30D5\u30A1\u30A4\u30EB\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\uFF1A{a} \u30D0\u30A4\u30C8 \xB7 {host}\uFF1A{b} \u30D0\u30A4\u30C8\u3002",
|
|
"u.wholeFile": "\u307E\u305F\u306F\u30D5\u30A1\u30A4\u30EB\u5168\u4F53\u3092\u63A1\u7528",
|
|
"u.keepBoth": "\u4E21\u65B9\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u6301",
|
|
"u.markers": "\u30DE\u30FC\u30AB\u30FC\u4ED8\u304D\u3067\u30DE\u30FC\u30B8",
|
|
"u.guardTitle": "\u5927\u91CF\u306E\u524A\u9664\u3092\u691C\u51FA\u3057\u307E\u3057\u305F",
|
|
"u.guardBody": "\u3053\u306E\u540C\u671F\u3067\u306F {n} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u524A\u9664\u3055\u308C\u307E\u3059\u3002\u610F\u56F3\u3057\u305F\u64CD\u4F5C\u3067\u3042\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"u.guardLocal": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u524A\u9664\uFF08\u30B4\u30DF\u7BB1\u306B\u79FB\u52D5\uFF09\uFF1A{n}",
|
|
"u.guardRemote": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u524A\u9664\uFF08\u5C65\u6B74\u306B\u306F\u6B8B\u308A\u307E\u3059\uFF09\uFF1A{n}",
|
|
"u.cancelSync": "\u540C\u671F\u3092\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
"u.skipDeletes": "\u524A\u9664\u3092\u30B9\u30AD\u30C3\u30D7\u3057\u3066\u540C\u671F",
|
|
"u.deleteThem": "\u524A\u9664\u3059\u308B",
|
|
"u.gDownload": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
"u.gUpload": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",
|
|
"u.gMoveLocal": "\u5225\u306E\u5834\u6240\u3067\u540D\u524D\u5909\u66F4\uFF08\u3053\u3053\u3067\u3082\u540D\u524D\u5909\u66F4\uFF09",
|
|
"u.gAdopt": "\u3053\u3053\u3067\u540D\u524D\u5909\u66F4\u3001\u5225\u306E\u5834\u6240\u3067\u7DE8\u96C6",
|
|
"u.gRenameMerge": "\u4E21\u65B9\u3067\u540D\u524D\u5909\u66F4\u3068\u7DE8\u96C6\uFF08\u30DE\u30FC\u30B8\uFF09",
|
|
"u.gConflict": "\u4E21\u65B9\u3067\u5909\u66F4",
|
|
"u.gDeleteLocal": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u524A\u9664",
|
|
"u.gDeleteRemote": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3067\u524A\u9664",
|
|
"u.reviewTitle": "\u5909\u66F4\u3092\u78BA\u8A8D",
|
|
"u.upToDate": "\u3059\u3079\u3066\u6700\u65B0\u306E\u72B6\u614B\u3067\u3059\u3002",
|
|
"u.reviewHint": "\u307E\u3060\u540C\u671F\u3057\u305F\u304F\u306A\u3044\u9805\u76EE\u306F\u30C1\u30A7\u30C3\u30AF\u3092\u5916\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30C1\u30A7\u30C3\u30AF\u3092\u5916\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u306F\u3001\u5F8C\u3067\u540C\u671F\u3059\u308B\u307E\u3067\u3069\u3061\u3089\u5074\u3067\u3082\u5909\u66F4\u3055\u308C\u307E\u305B\u3093\u3002",
|
|
"u.cancel": "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
|
"u.syncAll": "\u3059\u3079\u3066\u540C\u671F",
|
|
"u.syncSelected": "\u9078\u629E\u3057\u305F {n} \u4EF6\u3092\u540C\u671F",
|
|
"u.logTitle": "\u540C\u671F\u30ED\u30B0",
|
|
"u.noActivity": "\u540C\u671F\u306E\u5C65\u6B74\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"u.loading": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
"u.nothingFound": "\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
"u.failed": "\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"u.currentFile": "\u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB",
|
|
"u.thisVersion": "\u3053\u306E\u30D0\u30FC\u30B8\u30E7\u30F3",
|
|
"u.compareCurrent": "\u73FE\u5728\u306E\u5185\u5BB9\u3068\u6BD4\u8F03",
|
|
"u.fullVersion": "\u30D0\u30FC\u30B8\u30E7\u30F3\u5168\u4F53",
|
|
"u.restoreCopy": "\u30B3\u30D4\u30FC\u3068\u3057\u3066\u5FA9\u5143",
|
|
"u.restoreThis": "\u3053\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u5FA9\u5143",
|
|
"u.pickFolder": "\u5FA9\u5143\u3059\u308B\u30D5\u30A9\u30EB\u30C0\u3092\u9078\u629E",
|
|
"u.pickRemoteOnly": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
"u.timelineTitle": "\u30BF\u30A4\u30E0\u30E9\u30A4\u30F3",
|
|
"u.timelineHint": "\u540C\u671F\u306E\u305F\u3073\u306B\u3001\u623B\u308B\u3053\u3068\u306E\u3067\u304D\u308B\u6642\u70B9\u304C\u4F5C\u3089\u308C\u307E\u3059\u3002\u5FA9\u5143\u3059\u308B\u3068\u65B0\u3057\u3044\u30B3\u30DF\u30C3\u30C8\u304C\u8FFD\u52A0\u3055\u308C\u308B\u305F\u3081\u3001\u73FE\u5728\u306E\u72B6\u614B\u3082\u5C65\u6B74\u306B\u6B8B\u308A\u307E\u3059\u3002",
|
|
"u.browseFiles": "\u30D5\u30A1\u30A4\u30EB\u3092\u53C2\u7167",
|
|
"u.restoreFolder": "\u30D5\u30A9\u30EB\u30C0\u3092\u5FA9\u5143\u2026",
|
|
"u.restoreVault": "\u4FDD\u7BA1\u5EAB\u5168\u4F53\u3092\u5FA9\u5143",
|
|
"d.unified": "\u7D71\u5408\u8868\u793A",
|
|
"d.split": "\u5DE6\u53F3\u306B\u4E26\u3079\u3066\u8868\u793A",
|
|
"d.same": "\u5DEE\u5206\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"d.unchanged": "\u22EF \u5909\u66F4\u306E\u306A\u3044 {n} \u884C",
|
|
"d.both": "\u4E21\u65B9",
|
|
"d.change": "\u5909\u66F4 {n}",
|
|
"d.nothing": "\uFF08\u306A\u3057\uFF09",
|
|
"d.identical": "2 \u3064\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u540C\u4E00\u3067\u3059\u3002",
|
|
"m.embedMissing": "{path}\uFF08{mb} MB\uFF09\u306F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"m.download": "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
"m.downloadingOne": "{path} \u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D\u2026",
|
|
"m.downloadingMany": "{n} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D\u2026",
|
|
"m.allLocal": "\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u3042\u308A\u307E\u3059\u3002",
|
|
"m.plainTitle": "\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u30B3\u30D4\u30FC\u3092\u524A\u9664",
|
|
"m.plainBody": "\u3053\u308C\u3089\u306E\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u3092 1 \u56DE\u306E\u30B3\u30DF\u30C3\u30C8\u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u524A\u9664\u3057\u307E\u3059\u3002\u6697\u53F7\u5316\u3055\u308C\u305F\u30B3\u30D4\u30FC\u306F\u3059\u3067\u306B\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u6E08\u307F\u306E\u305F\u3081\u3001\u30CE\u30FC\u30C8\u306F\u5B89\u5168\u3067\u3059\u3002\u6CE8\u610F\uFF1A\u53E4\u3044\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5C65\u6B74\u306B\u6B8B\u308A\u307E\u3059\u3002",
|
|
"m.deleteFrom": "{host} \u304B\u3089\u524A\u9664",
|
|
"m.remove": "\u524A\u9664",
|
|
"m.plainRemoved": "\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u306A\u3044 {n} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u524A\u9664\u3057\u307E\u3057\u305F\u3002",
|
|
"m.plainNone": "\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
"m.removeFailed": "\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"m.firstFailed": "\u6700\u521D\u306E\u540C\u671F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}\u3002\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\u304B\u3089\u518D\u8A66\u884C\u3067\u304D\u307E\u3059\u3002",
|
|
"m.syncFinished": "\u540C\u671F\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002",
|
|
"m.alreadyInSync": "\u3059\u3079\u3066\u540C\u671F\u6E08\u307F\u3067\u3057\u305F\u3002",
|
|
"m.nDownloaded": "{n} \u4EF6\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
"m.nUploaded": "{n} \u4EF6\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",
|
|
"m.nBoth": "{n} \u4EF6\u3092\u4E21\u65B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3067\u4FDD\u6301",
|
|
"m.nSkipped": "{n} \u4EF6\u30B9\u30AD\u30C3\u30D7\uFF08\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\u3092\u53C2\u7167\uFF09",
|
|
"m.firstDone": "\u6700\u521D\u306E\u540C\u671F\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\uFF1A{summary}\u3002",
|
|
"m.noChanges": "\u5909\u66F4\u306A\u3057",
|
|
"m.freeBody": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540C\u671F\u3057\u306A\u3044\uFF08\u5BFE\u8C61\u30D5\u30A9\u30EB\u30C0\u5916\u3001\u307E\u305F\u306F\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E0A\u9650\u3092\u8D85\u3048\u308B\uFF09\u30ED\u30FC\u30AB\u30EB\u30D5\u30A1\u30A4\u30EB {n} \u500B\uFF08{mb} MB\uFF09\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u3044\u305A\u308C\u3082\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30B3\u30D4\u30FC\u3068\u540C\u4E00\u3067\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30B3\u30D4\u30FC\u306F\u4FDD\u6301\u3055\u308C\u307E\u3059\u3002\u30D5\u30A1\u30A4\u30EB\u306F\u30B4\u30DF\u7BB1\u306B\u79FB\u52D5\u3055\u308C\u307E\u3059\u3002",
|
|
"m.removeHere": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u304B\u3089\u524A\u9664",
|
|
"m.freeNothing": "\u524A\u9664\u3059\u308B\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\uFF1A\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u5BFE\u8C61\u5916\u3067\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u5B89\u5168\u306B\u4FDD\u5B58\u3055\u308C\u3066\u3044\u308B\u30ED\u30FC\u30AB\u30EB\u30D5\u30A1\u30A4\u30EB\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"m.freed": "{mb} MB \u3092\u89E3\u653E\u3057\u307E\u3057\u305F\u3002",
|
|
"m.freeFailed": "\u7A7A\u304D\u5BB9\u91CF\u3092\u5897\u3084\u305B\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"m.needToken": "\u8A2D\u5B9A \u2192 Vault Sync for Git \u3067\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"m.needRepo": "\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u8A2D\u5B9A\u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30AA\u30FC\u30CA\u30FC\u3068\u540D\u524D\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"m.snapshotOk": "\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\uFF1A{tag}",
|
|
"m.snapshotFailed": "\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"m.reviewFailed": "\u78BA\u8A8D\u306E\u6E96\u5099\u304C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"m.filesAt": "{sha}\uFF08{date}\uFF09\u6642\u70B9\u306E\u30D5\u30A1\u30A4\u30EB",
|
|
"m.bytes": "{n} \u30D0\u30A4\u30C8",
|
|
"m.whatFolder": "\u30D5\u30A9\u30EB\u30C0\u300C{folder}\u300D",
|
|
"m.whatVault": "\u4FDD\u7BA1\u5EAB\u5168\u4F53",
|
|
"m.restoring": "{what}\u3092\u5FA9\u5143\u4E2D\u2026",
|
|
"m.restoreTitle": "{what}\u3092\u5FA9\u5143",
|
|
"m.restoreBody": "{what}\u3092 {date}\uFF08{sha}\uFF09\u6642\u70B9\u306E\u72B6\u614B\u306B\u623B\u3057\u307E\u3059\u3002\u3053\u308C\u306F\u65B0\u3057\u3044\u30B3\u30DF\u30C3\u30C8\u3068\u3057\u3066\u8FFD\u52A0\u3055\u308C\u308B\u305F\u3081\u3001\u73FE\u5728\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u5C65\u6B74\u306B\u6B8B\u308A\u3001\u540C\u3058\u65B9\u6CD5\u3067\u5143\u306B\u623B\u305B\u307E\u3059\u3002",
|
|
"m.restoredOlder": "\u4EE5\u524D\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306B\u5FA9\u5143",
|
|
"m.broughtBack": "\u5FA9\u5143\uFF08\u305D\u306E\u5F8C\u524A\u9664\u3055\u308C\u305F\u3082\u306E\uFF09",
|
|
"m.removedSince": "\u524A\u9664\uFF08\u305D\u306E\u5F8C\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF09",
|
|
"m.restore": "\u5FA9\u5143",
|
|
"m.restored": "{what}\u3092\u5FA9\u5143\u3057\u307E\u3057\u305F\uFF1A{n} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u5909\u66F4\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
"m.restoreSame": "{what}\u306F\u3059\u3067\u306B\u305D\u306E\u6642\u70B9\u3068\u4E00\u81F4\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
"m.restoreFailed": "\u5FA9\u5143\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"m.comparing": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u6BD4\u8F03\u4E2D\u2026",
|
|
"m.resetBody": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u672A\u540C\u671F\u306E\u5909\u66F4\u3092\u7834\u68C4\u3057\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u5B8C\u5168\u306B\u540C\u3058\u72B6\u614B\u306B\u3057\u307E\u3059\u3002\u7F6E\u304D\u63DB\u3048\u3089\u308C\u308B\u30D5\u30A1\u30A4\u30EB\u3068\u524A\u9664\u3055\u308C\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u5148\u306B\u30B4\u30DF\u7BB1\u3078\u79FB\u52D5\u3055\u308C\u308B\u305F\u3081\u3001\u5F8C\u304B\u3089\u5FA9\u5143\u3067\u304D\u307E\u3059\u3002",
|
|
"m.replacedWith": "{host} \u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3067\u7F6E\u304D\u63DB\u3048",
|
|
"m.downloaded": "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u6E08\u307F",
|
|
"m.removedNotInRepo": "\u524A\u9664\uFF08\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u5B58\u5728\u3057\u306A\u3044\uFF09",
|
|
"m.matchRepo": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u4E00\u81F4\u3055\u305B\u308B",
|
|
"m.matched": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u4E00\u81F4\u3057\u307E\u3057\u305F\uFF08{n} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u5909\u66F4\uFF09\u3002",
|
|
"m.alreadyMatches": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306F\u3059\u3067\u306B\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u4E00\u81F4\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
"m.resetFailed": "\u30EA\u30BB\u30C3\u30C8\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"m.repoNotFound": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u63A5\u7D9A\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"m.history": "\u5C65\u6B74\uFF1A{path}",
|
|
"m.notInVersion": "\u305D\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306B\u306F\u30D5\u30A1\u30A4\u30EB\u304C\u5B58\u5728\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
"m.restoredFile": "{path} \u3092\u5FA9\u5143\u3057\u307E\u3057\u305F\u3002\u6B21\u56DE\u306E\u540C\u671F\u3067\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3059\u3002",
|
|
"m.versionFailed": "\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"m.recentlyDeleted": "\u6700\u8FD1\u524A\u9664\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB",
|
|
"m.deletedOn": "{date} \u306B\u524A\u9664 \xB7 {msg}",
|
|
"h.notConnected": "\u307E\u3060\u63A5\u7D9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
|
|
"h.notConnectedHint": "\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u8A2D\u5B9A\u3067 {host} \u306E\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.badToken": "{host} \u304C\u30C8\u30FC\u30AF\u30F3\u3092\u53D7\u3051\u4ED8\u3051\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
"h.badTokenHint": "\u671F\u9650\u5207\u308C\u304B\u53D6\u308A\u6D88\u3055\u308C\u305F\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210\u3057\u3001\u8A2D\u5B9A\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.repoMissing": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
"h.repoMissingHint": "\u30AA\u30FC\u30CA\u30FC\u3068\u30EA\u30DD\u30B8\u30C8\u30EA\u540D\u3001\u304A\u3088\u3073\u30C8\u30FC\u30AF\u30F3\u304C\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u308B\u304B\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.rateLimit": "{host} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u9054\u3057\u307E\u3057\u305F",
|
|
"h.rateLimitHint": "{host} \u3067\u306F 1 \u6642\u9593\u3042\u305F\u308A\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u6570\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u307E\u3082\u306A\u304F\u518D\u3073\u540C\u671F\u3067\u304D\u308B\u3088\u3046\u306B\u306A\u308A\u307E\u3059\u3002",
|
|
"h.busy": "{host} \u304C\u6DF7\u96D1\u3057\u3066\u3044\u307E\u3057\u305F",
|
|
"h.busyHint": "\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u304C\u540C\u6642\u306B\u540C\u671F\u3057\u3066\u3044\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
"h.offline": "{host} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093",
|
|
"h.offlineHint": "\u30A4\u30F3\u30BF\u30FC\u30CD\u30C3\u30C8\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u540C\u671F\u306F\u81EA\u52D5\u7684\u306B\u518D\u8A66\u884C\u3055\u308C\u307E\u3059\u3002",
|
|
"h.encrypted": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u306F\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u3059",
|
|
"h.encryptedHint": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540C\u671F\u3059\u308B\u306B\u306F\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.otherKey": "\u7570\u306A\u308B\u6697\u53F7\u5316\u30AD\u30FC",
|
|
"h.otherKeyHint": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u5225\u306E\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3067\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u3082\u3046\u4E00\u5EA6\u30ED\u30C3\u30AF\u3092\u89E3\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.pullOnly": "\u30D7\u30EB\u306E\u307F\u30E2\u30FC\u30C9\u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093",
|
|
"h.pullOnlyHint": "\u5909\u66F4\u3092\u30D7\u30C3\u30B7\u30E5\u3059\u308B\u306B\u306F\u3001\u8A2D\u5B9A\u3067\u30E2\u30FC\u30C9\u3092\u5207\u308A\u66FF\u3048\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.branchMissing": "\u30D6\u30E9\u30F3\u30C1\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
"h.failed": "\u540C\u671F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
|
|
"h.onDemand": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3055\u308C\u3066\u3044\u307E\u305B\u3093\uFF08{n}\uFF09",
|
|
"h.onDemandHint": "{mb} MB \u306E\u5927\u304D\u306A\u30D5\u30A1\u30A4\u30EB\u306F\u3001\u5FC5\u8981\u306B\u306A\u308B\u307E\u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u4FDD\u7BA1\u3055\u308C\u307E\u3059\u3002",
|
|
"h.budget": "API \u6B8B\u91CF\uFF1A{budget}",
|
|
"h.budgetValue": "\u6B8B\u308A {left}/{limit} \u30EA\u30AF\u30A8\u30B9\u30C8\u3001{time} \u306B\u30EA\u30BB\u30C3\u30C8",
|
|
"h.unknown": "\u4E0D\u660E",
|
|
"h.checkFailed": "{host} \u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"h.deviceScope": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306F{what}\u3092\u540C\u671F\u3057\u307E\u3059\u3002",
|
|
"h.only": "{list} \u306E\u307F",
|
|
"h.excluding": "{list} \u3092\u9664\u304F",
|
|
"h.noDownloadsOver": "{mb} MB \u3092\u8D85\u3048\u308B\u3082\u306E\u306F\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u306A\u3044",
|
|
"h.notOnDevice": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u540C\u671F\u3057\u306A\u3044",
|
|
"hs.ghApi": "GitHub Enterprise Server \u306E\u5834\u5408\u306E\u307F\u5909\u66F4\u3057\u3066\u304F\u3060\u3055\u3044\uFF08\u4F8B\uFF1Ahttps://github.example.com/api/v3\uFF09",
|
|
"hs.glApi": "gitlab.com\u3001\u307E\u305F\u306F\u3054\u5229\u7528\u306E\u30B5\u30FC\u30D0\u30FC\uFF08\u4F8B\uFF1Ahttps://gitlab.example.com/api/v4\uFF09",
|
|
"hs.gtApi": "\u3054\u5229\u7528\u306E\u30B5\u30FC\u30D0\u30FC\u306E API\uFF08\u4F8B\uFF1Ahttps://codeberg.org/api/v1 \u307E\u305F\u306F https://git.example.com/api/v1\uFF09",
|
|
"hs.bbApi": "Bitbucket Cloud\uFF1Ahttps://api.bitbucket.org/2.0",
|
|
"hs.gh1": "GitHub \u306E\u30C8\u30FC\u30AF\u30F3\u30DA\u30FC\u30B8\u3092\u958B\u304D\u307E\u3059\u3002\u540D\u524D\u3001\u6709\u52B9\u671F\u9650\u3001\u300CContents: read and write\u300D\u306F\u5165\u529B\u6E08\u307F\u3067\u3059\u3002",
|
|
"hs.gh1Link": "Fine-grained \u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210",
|
|
"hs.gh2": "\u300CRepository access\u300D\u3067\u300COnly select repositories\u300D\u3092\u9078\u3073\u3001\u4FDD\u7BA1\u5EAB\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u9078\u629E\u3057\u307E\u3059\uFF08\u30D7\u30E9\u30B0\u30A4\u30F3\u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210\u3059\u308B\u5834\u5408\u306F\u300CAdministration: read and write\u300D\u3082\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\uFF09\u3002",
|
|
"hs.gh3": "\u751F\u6210\u3057\u3066\u30B3\u30D4\u30FC\u3057\u3001\u3053\u3053\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"hs.gh4": "\u3088\u308A\u7C21\u5358\u306A\u4EE3\u66FF\u624B\u6BB5\uFF08\u3059\u3079\u3066\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3078\u306E\u30A2\u30AF\u30BB\u30B9\uFF09\uFF1A",
|
|
"hs.gh4Link": "repo \u30B9\u30B3\u30FC\u30D7\u4ED8\u304D\u306E\u30AF\u30E9\u30B7\u30C3\u30AF\u30C8\u30FC\u30AF\u30F3",
|
|
"hs.gl1": "api \u30B9\u30B3\u30FC\u30D7\u4ED8\u304D\u306E\u500B\u4EBA\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210\u3057\u307E\u3059\uFF08\u30B3\u30DF\u30C3\u30C8\u306E\u66F8\u304D\u8FBC\u307F\u306B\u5FC5\u8981\uFF09\u3002",
|
|
"hs.gl1Link": "GitLab \u306E\u30C8\u30FC\u30AF\u30F3\u30DA\u30FC\u30B8\u3092\u958B\u304F",
|
|
"hs.gl2": "\u30D2\u30F3\u30C8\uFF1A\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\uFF08\u4FDD\u7BA1\u5EAB\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E Settings \u2192 Access tokens\u3001\u30ED\u30FC\u30EB Developer\u3001\u30B9\u30B3\u30FC\u30D7 api\uFF09\u3092\u4F7F\u3046\u3068\u3001\u30A2\u30AF\u30BB\u30B9\u3092\u305D\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u307F\u306B\u5236\u9650\u3067\u304D\u307E\u3059\u3002",
|
|
"hs.paste": "\u30B3\u30D4\u30FC\u3057\u3066\u3053\u3053\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"hs.gt1": "Settings \u2192 Applications \u3092\u958B\u304D\u3001\u300Crepository: Read and Write\u300D\u3068\u300Cuser: Read\u300D\u3092\u6301\u3064\u30C8\u30FC\u30AF\u30F3\u3092\u751F\u6210\u3057\u307E\u3059\u3002\u30D7\u30E9\u30B0\u30A4\u30F3\u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u4F5C\u6210\u3059\u308B\u5834\u5408\u306F\u3001\u4EE3\u308F\u308A\u306B\u300Cuser: Read and Write\u300D\u3092\u9078\u3073\u307E\u3059\u3002",
|
|
"hs.gt1Link": "\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u30DA\u30FC\u30B8\u3092\u958B\u304F",
|
|
"hs.gt2": "Gitea 1.20 \u4EE5\u964D\u307E\u305F\u306F Forgejo 1.20 \u4EE5\u964D\u304C\u5FC5\u8981\u3067\u3059\uFF08\u8907\u6570\u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30DF\u30C3\u30C8 API\uFF09\u3002",
|
|
"hs.bb1": "\u6700\u3082\u7C21\u5358\u306A\u65B9\u6CD5\uFF1A\u4FDD\u7BA1\u5EAB\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3067 Repository settings \u2192 Security \u2192 Access tokens \u3092\u958B\u304D\u3001\u300CRepositories: Read and Write\u300D\u3092\u6301\u3064\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002\u3053\u3053\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\uFF08\u30AA\u30FC\u30CA\u30FC\u3068\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u8A2D\u5B9A\u3067\u5165\u529B\u3057\u307E\u3059\uFF09\u3002",
|
|
"hs.bb1Link": "Bitbucket \u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u306E\u30D8\u30EB\u30D7",
|
|
"hs.bb2": "\u30A6\u30A3\u30B6\u30FC\u30C9\u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u9078\u629E\u307E\u305F\u306F\u4F5C\u6210\u3059\u308B\u306B\u306F\u3001\u4EE3\u308F\u308A\u306B Bitbucket \u30B9\u30B3\u30FC\u30D7\u4ED8\u304D\u306E Atlassian API \u30C8\u30FC\u30AF\u30F3\u3092 email:token \u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"hs.bb2Link": "API \u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210",
|
|
"hs.bb3": "\u6CE8\u610F\uFF1A\u6700\u521D\u306E\u540C\u671F\u3067\u306F\u30A4\u30F3\u30C7\u30C3\u30AF\u30B9\u4F5C\u6210\u306E\u305F\u3081\u3059\u3079\u3066\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u4E00\u5EA6\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3057\u307E\u3059\u3002\u4EE5\u964D\u306E\u540C\u671F\u3067\u306F\u5909\u66F4\u5206\u306E\u307F\u3092\u53D6\u5F97\u3057\u307E\u3059\u3002",
|
|
"u.skipped": "\u30B9\u30AD\u30C3\u30D7\uFF1A{n}",
|
|
"u.loadingShort": "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
|
|
"u.diff": "\u5DEE\u5206",
|
|
"h.lastSync": "\u6700\u7D42\u540C\u671F\uFF1A{ago}",
|
|
"m.sharedFailed": "\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u306E\u540C\u671F\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A",
|
|
"m.offline": "\u30AA\u30D5\u30E9\u30A4\u30F3\uFF1A\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308B\u3068\u540C\u671F\u3057\u307E\u3059",
|
|
"m.filesFailed": "{n} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u3067\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
"m.copiesCreated": "{n} \u500B\u306E\u7AF6\u5408\u30B3\u30D4\u30FC\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F",
|
|
"m.statusTip": "{title}\u3002\u30AF\u30EA\u30C3\u30AF\u3059\u308B\u3068\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8868\u793A\u3057\u307E\u3059\u3002",
|
|
"m.notThere": "{host}\uFF08\u30D5\u30A1\u30A4\u30EB\u306A\u3057\uFF09",
|
|
"app.signIn": "GitHub \u3067\u30B5\u30A4\u30F3\u30A4\u30F3",
|
|
"app.signInDesc": "\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210\u3059\u308B\u4EE3\u308F\u308A\u306B\u3001\u30D6\u30E9\u30A6\u30B6\u3067\u30A2\u30AF\u30BB\u30B9\u3092\u627F\u8A8D\u3057\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u9078\u629E\u3057\u305F\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u306E\u307F\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u3001\u30A2\u30AF\u30BB\u30B9\u306F\u81EA\u52D5\u7684\u306B\u66F4\u65B0\u3055\u308C\u307E\u3059\u3002",
|
|
"app.signInBtn": "\u30B5\u30A4\u30F3\u30A4\u30F3",
|
|
"app.orToken": "\u307E\u305F\u306F\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u7528",
|
|
"app.starting": "{host} \u306B\u63A5\u7D9A\u4E2D\u2026",
|
|
"app.notAvailable": "\u3053\u306E\u30B5\u30FC\u30D0\u30FC\u3067\u306F {host} \u3067\u306E\u30B5\u30A4\u30F3\u30A4\u30F3\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"app.codeBody": "\u3053\u306E\u30B3\u30FC\u30C9\u3092\u30B3\u30D4\u30FC\u3057\u3001\u958B\u3044\u305F {host} \u306E\u30DA\u30FC\u30B8\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\uFF1A",
|
|
"app.copy": "\u30B3\u30FC\u30C9\u3092\u30B3\u30D4\u30FC",
|
|
"app.copied": "\u30B3\u30FC\u30C9\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
"app.open": "\u30B3\u30D4\u30FC\u3057\u3066 {host} \u3092\u958B\u304F",
|
|
"app.waiting": "{host} \u3067\u306E\u627F\u8A8D\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\u2026",
|
|
"app.expired": "\u30B3\u30FC\u30C9\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002\u3053\u306E\u30A6\u30A3\u30F3\u30C9\u30A6\u3092\u9589\u3058\u3066\u3001\u3082\u3046\u4E00\u5EA6\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"app.denied": "{host} \u3067\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
"app.disabled": "\u3053\u306E GitHub App \u306F\u30C7\u30D0\u30A4\u30B9\u3067\u306E\u30B5\u30A4\u30F3\u30A4\u30F3\u3092\u8A31\u53EF\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u7528\u3059\u308B\u304B\u3001\u30AA\u30FC\u30CA\u30FC\u306B\u30C7\u30D0\u30A4\u30B9\u30D5\u30ED\u30FC\u3092\u6709\u52B9\u306B\u3059\u308B\u3088\u3046\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"app.failed": "\u30B5\u30A4\u30F3\u30A4\u30F3\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"app.signedIn": "GitHub \u3067\u30B5\u30A4\u30F3\u30A4\u30F3\u6E08\u307F",
|
|
"app.signedInDesc": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306F Vault Sync for GitHub \u306E GitHub App \u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059\u3002\u30A2\u30AF\u30BB\u30B9\u306F\u81EA\u52D5\u7684\u306B\u66F4\u65B0\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"app.signOut": "\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",
|
|
"app.chooseRepos": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u9078\u629E",
|
|
"app.chooseReposDesc": "\u4FDD\u7BA1\u5EAB\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u304C\u898B\u5F53\u305F\u308A\u307E\u305B\u3093\u304B\uFF1FGitHub \u3067\u8FFD\u52A0\u3059\u308B\u304B\u3001\u5148\u306B\u305D\u3053\u3067\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u623B\u308B\u3068\u4E00\u89A7\u304C\u81EA\u52D5\u3067\u66F4\u65B0\u3055\u308C\u307E\u3059\u3002",
|
|
"app.createOnGitHub": "GitHub \u3067\u4F5C\u6210",
|
|
"app.refresh": "\u4E00\u89A7\u3092\u66F4\u65B0",
|
|
"app.expiredSession": "{host} \u306E\u30B5\u30A4\u30F3\u30A4\u30F3\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002\u8A2D\u5B9A \u2192 Vault Sync for Git \u3067\u518D\u5EA6\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"app.clientId": "GitHub App \u306E\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8 ID\uFF08\u4EFB\u610F\uFF09",
|
|
"app.clientIdDesc": "GitHub Enterprise \u3067\u300CGitHub \u3067\u30B5\u30A4\u30F3\u30A4\u30F3\u300D\u3092\u63D0\u4F9B\u3059\u308B\u306B\u306F\u3001\u30C7\u30D0\u30A4\u30B9\u30D5\u30ED\u30FC\u304C\u6709\u52B9\u3067 Contents \u306E\u8AAD\u307F\u66F8\u304D\u6A29\u9650\u3092\u6301\u3064 GitHub App \u306E\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8 ID \u3092\u5165\u529B\u3057\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"app.slug": "GitHub App \u306E URL \u540D",
|
|
"app.slugDesc": "https://your-server/apps/NAME \u306E NAME \u306E\u90E8\u5206\u3067\u3001\u30A2\u30D7\u30EA\u306E\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u30DA\u30FC\u30B8\u3092\u958B\u304F\u305F\u3081\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002",
|
|
"h.refresh": "\u66F4\u65B0",
|
|
"h.setupHint": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30A6\u30A3\u30B6\u30FC\u30C9\u3092\u5B9F\u884C\u3057\u3066\u3001Git \u30DB\u30B9\u30C8\u3068\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.resolve": "\u89E3\u6C7A",
|
|
"h.resolveTitle": "\u7AF6\u5408\u3092\u89E3\u6C7A\uFF1A{path}",
|
|
"h.currentNote": "\u73FE\u5728\u306E\u30CE\u30FC\u30C8",
|
|
"h.conflictCopy": "\u7AF6\u5408\u30B3\u30D4\u30FC",
|
|
"h.tokenExpires": "\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u306F\u3042\u3068 {days} \u65E5\u3067\u671F\u9650\u5207\u308C\u306B\u306A\u308A\u307E\u3059\u3002\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210\u3057\u3066\u8A2D\u5B9A\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.tokenExpiresToday": "\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u306F\u4ECA\u65E5\u671F\u9650\u5207\u308C\u306B\u306A\u308A\u307E\u3059\u3002\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210\u3057\u3066\u8A2D\u5B9A\u306B\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.newToken": "\u65B0\u3057\u3044\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210",
|
|
"u.previewTitle": "\u540C\u671F\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",
|
|
"u.previewHint": "\u307E\u3060\u4F55\u3082\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u6B21\u56DE\u306E\u540C\u671F\u3067\u884C\u308F\u308C\u308B\u5185\u5BB9\u3067\u3059\u3002",
|
|
"u.close": "\u9589\u3058\u308B",
|
|
"s.configDirWarn": "\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30B3\u30FC\u30C9\u3082\u540C\u671F\u3055\u308C\u308B\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u308B\u4EBA\u306F\u8AB0\u3067\u3082\u3042\u306A\u305F\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u30B3\u30FC\u30C9\u3092\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u540C\u671F\u3055\u308C\u305F\u30D7\u30E9\u30B0\u30A4\u30F3\u306F\u518D\u8D77\u52D5\u5F8C\u306B\u8AAD\u307F\u8FBC\u307E\u308C\u307E\u3059\u3002",
|
|
"p.scanning": "\u30D5\u30A1\u30A4\u30EB\u3092\u30B9\u30AD\u30E3\u30F3\u4E2D\u2026",
|
|
"p.checking": "{host} \u3092\u78BA\u8A8D\u4E2D\u2026",
|
|
"p.downloading": "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D {done}/{total}",
|
|
"p.uploading": "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u4E2D {done}/{total}",
|
|
"cmd.syncFile": "\u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u4ECA\u3059\u3050\u540C\u671F",
|
|
"cmd.setupLink": "\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u8FFD\u52A0\uFF08\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30EA\u30F3\u30AF\uFF09",
|
|
"x.pending": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306B\u7DE8\u96C6\u3055\u308C\u307E\u3057\u305F",
|
|
"x.conflict": "\u7AF6\u5408\u30B3\u30D4\u30FC\uFF1A\u540C\u671F\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\u3067\u89E3\u6C7A\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
"os.title": "\u5225\u306E\u540C\u671F\u30C4\u30FC\u30EB\u304C\u6709\u52B9\u3067\u3059",
|
|
"os.found": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u306F\u6B21\u306E\u65B9\u6CD5\u3067\u3082\u540C\u671F\u3055\u308C\u3066\u3044\u307E\u3059\uFF1A{list}\u3002",
|
|
"os.gitFolder": "Git \u30EA\u30DD\u30B8\u30C8\u30EA\uFF08.git \u30D5\u30A9\u30EB\u30C0\uFF09",
|
|
"os.hint": "2 \u3064\u306E\u30C4\u30FC\u30EB\u304C\u540C\u3058\u30D5\u30A1\u30A4\u30EB\u306B\u66F8\u304D\u8FBC\u3080\u3068\u3001\u4E92\u3044\u306E\u5909\u66F4\u3092\u4E0A\u66F8\u304D\u3057\u3066\u3057\u307E\u3046\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u3053\u306E\u4FDD\u7BA1\u5EAB\u306B\u306F\u3069\u3061\u3089\u304B\u4E00\u65B9\u306E\u307F\u3092\u4F7F\u7528\u3059\u308B\u304B\u3001\u5225\u3005\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u540C\u671F\u3059\u308B\u3088\u3046\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"link.addDevice": "\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u8FFD\u52A0",
|
|
"link.addDeviceDesc": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u3053\u306E\u540C\u671F\u8A2D\u5B9A\u3067\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3059\u308B\u305F\u3081\u306E\u30EA\u30F3\u30AF\u3068 QR \u30B3\u30FC\u30C9\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002",
|
|
"link.createBtn": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30EA\u30F3\u30AF\u3092\u4F5C\u6210",
|
|
"link.createTitle": "\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u8FFD\u52A0",
|
|
"link.createIntro": "\u65B0\u3057\u3044\u30C7\u30D0\u30A4\u30B9\u306B\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u305F\u5F8C\u3001\u305D\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3053\u306E\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u304F\u3060\u3055\u3044\uFF08\u307E\u305F\u306F\u30AB\u30E1\u30E9\u3067\u30B3\u30FC\u30C9\u3092\u8AAD\u307F\u53D6\u3063\u3066\u304F\u3060\u3055\u3044\uFF09\u3002\u30DB\u30B9\u30C8\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u3001\u540C\u671F\u8A2D\u5B9A\u304C\u5165\u529B\u3055\u308C\u307E\u3059\u3002",
|
|
"link.includeToken": "\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u542B\u3081\u308B",
|
|
"link.includeTokenDesc": "\u30C8\u30FC\u30AF\u30F3\u306F\u4E0B\u306B\u8868\u793A\u3055\u308C\u308B\u30EF\u30F3\u30BF\u30A4\u30E0\u30B3\u30FC\u30C9\u3067\u6697\u53F7\u5316\u3055\u308C\u307E\u3059\u3002\u30B3\u30FC\u30C9\u304C\u306A\u3051\u308C\u3070\u30EA\u30F3\u30AF\u306F\u4F7F\u3048\u307E\u305B\u3093\u3002\u30B3\u30FC\u30C9\u306F\u5225\u306E\u65B9\u6CD5\u3067\u5171\u6709\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"link.signInNote": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306F {host} \u3067\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u3044\u307E\u3059\u3002\u65B0\u3057\u3044\u30C7\u30D0\u30A4\u30B9\u306F\u81EA\u5206\u3067\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u305F\u3081\u3001\u30C8\u30FC\u30AF\u30F3\u306F\u542B\u307E\u308C\u307E\u305B\u3093\u3002",
|
|
"link.encrypting": "\u6697\u53F7\u5316\u4E2D\u2026",
|
|
"link.link": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30EA\u30F3\u30AF",
|
|
"link.linkDesc": "\u30E1\u30FC\u30EB\u3084\u30E1\u30E2\u30A2\u30D7\u30EA\u306A\u3069\u3067\u81EA\u5206\u5B9B\u3066\u306B\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"link.copyLink": "\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC",
|
|
"link.copied": "\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
|
|
"link.qrLabel": "\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30EA\u30F3\u30AF\u306E QR \u30B3\u30FC\u30C9",
|
|
"link.codeIntro": "\u30EF\u30F3\u30BF\u30A4\u30E0\u30B3\u30FC\u30C9\uFF08\u65B0\u3057\u3044\u30C7\u30D0\u30A4\u30B9\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\uFF09\uFF1A",
|
|
"link.keepApart": "\u30B3\u30FC\u30C9\u3092\u30EA\u30F3\u30AF\u3068\u4E00\u7DD2\u306B\u9001\u4FE1\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
"link.noSecrets": "\u30EA\u30F3\u30AF\u306B\u306F\u30C8\u30FC\u30AF\u30F3\u3082\u30D1\u30B9\u30EF\u30FC\u30C9\u3082\u542B\u307E\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u65B0\u3057\u3044\u30C7\u30D0\u30A4\u30B9\u306F\u72EC\u81EA\u306E\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30C8\u30FC\u30AF\u30F3\u3067\u63A5\u7D9A\u3057\u307E\u3059\u3002",
|
|
"link.applyTitle": "\u30EA\u30F3\u30AF\u304B\u3089\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7",
|
|
"link.applyIntro": "\u3053\u306E\u30EA\u30F3\u30AF\u306F\u4FDD\u7BA1\u5EAB\u300C{vault}\u300D\u306E\u540C\u671F\u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3057\u307E\u3059\uFF1A",
|
|
"link.server": "\u30B5\u30FC\u30D0\u30FC\uFF1A{url}",
|
|
"link.withSettings": "\u8A2D\u5B9A\u30D5\u30A9\u30EB\u30C0\u3082\u540C\u3058\u9078\u629E\u5185\u5BB9\u3067\u540C\u671F\u3057\u307E\u3059",
|
|
"link.withToken": "\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3092\u542B\u307F\u307E\u3059\uFF08\u30EF\u30F3\u30BF\u30A4\u30E0\u30B3\u30FC\u30C9\u304C\u5FC5\u8981\u3067\u3059\uFF09",
|
|
"link.subdir": "\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D5\u30A9\u30EB\u30C0: {folder}",
|
|
"link.onlyYours": "\u3053\u306E\u30EA\u30F3\u30AF\u3092\u81EA\u5206\u3067\u4F5C\u6210\u3057\u305F\u5834\u5408\u306B\u306E\u307F\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u4ED6\u4EBA\u304B\u3089\u306E\u30EA\u30F3\u30AF\u306F\u3001\u3042\u306A\u305F\u306E\u4FDD\u7BA1\u5EAB\u3092\u305D\u306E\u4EBA\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u63A5\u7D9A\u3059\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
"link.replaces": "\u73FE\u5728\u306E {repo} \u3078\u306E\u63A5\u7D9A\u304C\u7F6E\u304D\u63DB\u3048\u3089\u308C\u307E\u3059\u3002",
|
|
"link.code": "\u30EF\u30F3\u30BF\u30A4\u30E0\u30B3\u30FC\u30C9",
|
|
"link.codeDesc": "\u30EA\u30F3\u30AF\u3092\u4F5C\u6210\u3057\u305F\u30C7\u30D0\u30A4\u30B9\u306B\u8868\u793A\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
"link.apply": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7",
|
|
"link.needCode": "\u5148\u306B\u30EF\u30F3\u30BF\u30A4\u30E0\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"link.decrypting": "\u30B3\u30FC\u30C9\u3092\u78BA\u8A8D\u4E2D\u2026",
|
|
"link.wrongCode": "\u3053\u306E\u30B3\u30FC\u30C9\u306F\u3053\u306E\u30EA\u30F3\u30AF\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002",
|
|
"link.invalid": "\u3053\u306E\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u30EA\u30F3\u30AF\u306F\u4E0D\u5B8C\u5168\u304B\u7834\u640D\u3057\u3066\u3044\u307E\u3059\u3002\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u65B0\u3057\u3044\u30EA\u30F3\u30AF\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"link.wizardHint": "\u3059\u3067\u306B\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540C\u671F\u3057\u3066\u3044\u307E\u3059\u304B\uFF1F\u305D\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u30D1\u30CD\u30EB\u307E\u305F\u306F\u8A2D\u5B9A\u3067\u300C\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3092\u8FFD\u52A0\u300D\u3092\u9078\u629E\u3057\u3001\u3053\u3053\u3067\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.cfgAppearance": "\u5916\u89B3\u3068\u30C6\u30FC\u30DE",
|
|
"s.cfgAppearanceDesc": "\u30C6\u30FC\u30DE\u3001\u30D5\u30A9\u30F3\u30C8\u3001\u30A2\u30AF\u30BB\u30F3\u30C8\u30AB\u30E9\u30FC\u3001\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u6E08\u307F\u306E\u30C6\u30FC\u30DE\u3002",
|
|
"s.cfgSnippets": "CSS \u30B9\u30CB\u30DA\u30C3\u30C8",
|
|
"s.cfgHotkeys": "\u30DB\u30C3\u30C8\u30AD\u30FC",
|
|
"s.cfgCore": "\u30B3\u30A2\u8A2D\u5B9A",
|
|
"s.cfgCoreDesc": "\u30A8\u30C7\u30A3\u30BF\u3001\u30D5\u30A1\u30A4\u30EB\u3068\u30EA\u30F3\u30AF\u3001\u30B3\u30A2\u30D7\u30E9\u30B0\u30A4\u30F3\u3068\u305D\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\u3002",
|
|
"s.cfgPluginList": "\u6709\u52B9\u306A\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u30D7\u30E9\u30B0\u30A4\u30F3",
|
|
"s.cfgPluginListDesc": "\u3042\u308B\u30C7\u30D0\u30A4\u30B9\u3067\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u6709\u52B9\u307E\u305F\u306F\u7121\u52B9\u306B\u3059\u308B\u3068\u3001\u4ED6\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3082\u540C\u3058\u3088\u3046\u306B\u306A\u308A\u307E\u3059\u3002",
|
|
"s.cfgPluginCode": "\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30B3\u30FC\u30C9",
|
|
"s.cfgPluginCodeDesc": "\u3059\u3079\u3066\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u30FB\u66F4\u65B0\u3057\u307E\u3059\u3002\u540C\u671F\u3055\u308C\u305F\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30B3\u30FC\u30C9\u306F\u3059\u3079\u3066\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u5B9F\u884C\u3055\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
"s.cfgPluginSettings": "\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u8A2D\u5B9A",
|
|
"s.cfgPerPlugin": "\u30D7\u30E9\u30B0\u30A4\u30F3\u3054\u3068\u306B\u9078\u629E",
|
|
"s.cfgPerPluginDesc": "\u500B\u5225\u306E\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u4E0A\u66F8\u304D\u8A2D\u5B9A\uFF08{n} \u4EF6\u8A2D\u5B9A\u6E08\u307F\uFF09\u3002",
|
|
"s.cfgPerPluginBtn": "\u9078\u629E",
|
|
"s.cfgPerPluginIntro": "\u30D7\u30E9\u30B0\u30A4\u30F3\u3054\u3068\u306B\u3001\u4E0A\u306E\u30B9\u30A4\u30C3\u30C1\u306B\u5F93\u3046\u304B\u3001\u540C\u671F\u3059\u308B\u5185\u5BB9\u3092\u9078\u629E\u3057\u307E\u3059\u3002\u30C7\u30D0\u30A4\u30B9\u56FA\u6709\u306E\u30C7\u30FC\u30BF\uFF08\u30D1\u30B9\u3001\u30A6\u30A3\u30F3\u30C9\u30A6\u30EC\u30A4\u30A2\u30A6\u30C8\uFF09\u3092\u6301\u3064\u30D7\u30E9\u30B0\u30A4\u30F3\u306F\u300C\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u307F\u300D\u306B\u9069\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
"s.cfgNoPlugins": "\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u30D7\u30E9\u30B0\u30A4\u30F3\u306F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"s.cfgThisPlugin": "\u3053\u306E\u30D7\u30E9\u30B0\u30A4\u30F3",
|
|
"s.cfgFollow": "\u30B9\u30A4\u30C3\u30C1\u306B\u5F93\u3046",
|
|
"s.cfgAll": "\u30B3\u30FC\u30C9\u3068\u8A2D\u5B9A",
|
|
"s.cfgCodeOnly": "\u30B3\u30FC\u30C9\u306E\u307F",
|
|
"s.cfgSettingsOnly": "\u8A2D\u5B9A\u306E\u307F",
|
|
"s.cfgNone": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u307F",
|
|
"s.hidden": "\u96A0\u3057\u30D5\u30A1\u30A4\u30EB\u3068\u30D5\u30A9\u30EB\u30C0\u3092\u540C\u671F",
|
|
"s.hiddenDesc": "\u4FDD\u7BA1\u5EAB\u306E\u6700\u4E0A\u4F4D\u306B\u3042\u308B\u3001\u540D\u524D\u304C\u30C9\u30C3\u30C8\u3067\u59CB\u307E\u308B\u30D5\u30A1\u30A4\u30EB\u3068\u30D5\u30A9\u30EB\u30C0\uFF08.github \u3084 .editorconfig \u306A\u3069\uFF09\u3002.git\u3001.trash\u3001\u8A2D\u5B9A\u30D5\u30A9\u30EB\u30C0\u306F\u5BFE\u8C61\u5916\u3067\u3059\u3002\u5909\u66F4\u306F\u6570\u5206\u4EE5\u5185\u306B\u691C\u51FA\u3055\u308C\u307E\u3059\u3002",
|
|
"s.gitignore": "\u4FDD\u7BA1\u5EAB\u306E .gitignore \u306B\u5F93\u3046",
|
|
"s.gitignoreDesc": "\u4FDD\u7BA1\u5EAB\u306E .gitignore \u30D5\u30A1\u30A4\u30EB\u306B\u8A18\u8F09\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u306F\u540C\u671F\u3055\u308C\u307E\u305B\u3093\uFF08\u30D5\u30A9\u30EB\u30C0\u5185\u306E .gitignore \u306F\u305D\u306E\u30D5\u30A9\u30EB\u30C0\u306B\u9069\u7528\u3055\u308C\u307E\u3059\u3002Git \u3068\u540C\u3058\u3067\u3059\uFF09\u3002.gitignore \u30D5\u30A1\u30A4\u30EB\u81EA\u4F53\u306F\u3059\u3079\u3066\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u540C\u671F\u3055\u308C\u307E\u3059\u3002\u9664\u5916\u30D1\u30BF\u30FC\u30F3\u304C\u6700\u512A\u5148\u3055\u308C\u307E\u3059\u3002",
|
|
"s.onOpen": "\u30CE\u30FC\u30C8\u3092\u958B\u3044\u305F\u3068\u304D\u306B\u540C\u671F",
|
|
"s.onOpenDesc": "\u7DE8\u96C6\u524D\u306B\u6700\u65B0\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u53D6\u5F97\u3057\u307E\u3059\uFF08\u6700\u5927 30 \u79D2\u306B 1 \u56DE\uFF09\u3002",
|
|
"s.badges": "\u30D5\u30A1\u30A4\u30EB\u30A8\u30AF\u30B9\u30D7\u30ED\u30FC\u30E9\u30FC\u306B\u540C\u671F\u72B6\u614B\u3092\u8868\u793A",
|
|
"s.badgesDesc": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306B\u7DE8\u96C6\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u306B\u306F\u30C9\u30C3\u30C8\u3001\u7AF6\u5408\u30B3\u30D4\u30FC\u306B\u306F\u8B66\u544A\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002",
|
|
"s.noticesAuto": "\u81EA\u52D5\uFF08\u30B9\u30DE\u30FC\u30C8\u30D5\u30A9\u30F3\u3067\u306F\u5909\u66F4\u3001\u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\u3067\u306F\u30A8\u30E9\u30FC\uFF09",
|
|
"s.noticesChanges": "\u30D5\u30A1\u30A4\u30EB\u304C\u5909\u66F4\u3055\u308C\u305F\u3068\u304D\u3068\u30A8\u30E9\u30FC",
|
|
"s.cfgPluginSettingsDesc": "\u5404\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30AA\u30D7\u30B7\u30E7\u30F3\uFF08data.json\uFF09\u3002",
|
|
"link.tooLongForQr": "\u3053\u306E\u30EA\u30F3\u30AF\u306F QR \u30B3\u30FC\u30C9\u306B\u306F\u9577\u3059\u304E\u307E\u3059\u3002\u4EE3\u308F\u308A\u306B\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"link.withHidden": "\u4FDD\u7BA1\u5EAB\u306E\u6700\u4E0A\u4F4D\u306B\u3042\u308B\u96A0\u3057\u30D5\u30A1\u30A4\u30EB\u3082\u540C\u671F\u3057\u307E\u3059",
|
|
"link.withGitignore": "\u4FDD\u7BA1\u5EAB\u306E .gitignore \u306B\u5F93\u3044\u307E\u3059",
|
|
"link.withExclude": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u306E\u9664\u5916\u30D1\u30BF\u30FC\u30F3\u3092\u7F6E\u304D\u63DB\u3048\u307E\u3059",
|
|
"s.apiBaseInvalid": "https:// \u3067\u59CB\u307E\u308B API \u30A2\u30C9\u30EC\u30B9\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\uFF08http:// \u306F\u3053\u306E\u30B3\u30F3\u30D4\u30E5\u30FC\u30BF\u4E0A\u306E\u30B5\u30FC\u30D0\u30FC\u306E\u5834\u5408\u306E\u307F\uFF09\u3002",
|
|
"s.lfsAboveMax": "\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u306E\u3057\u304D\u3044\u5024\u304C\u6700\u5927\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA\uFF08{max} MB\uFF09\u4EE5\u4E0A\u306E\u305F\u3081\u3001\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u30B9\u30C8\u30EC\u30FC\u30B8\u306F\u4F7F\u7528\u3055\u308C\u307E\u305B\u3093\u3002\u3057\u304D\u3044\u5024\u3092\u4E0B\u3052\u308B\u304B\u3001\u6700\u5927\u5024\u3092\u4E0A\u3052\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.guardMinLabel": "\u6700\u5C0F\u524A\u9664\u6570",
|
|
"s.guardPercentLabel": "\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5C0F\u5272\u5408",
|
|
"sh.notFound": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304C\u898B\u3064\u304B\u3089\u306A\u3044\u304B\u3001\u3053\u306E\u30C8\u30FC\u30AF\u30F3\u3067\u306F\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093",
|
|
"m.unlockToBrowse": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u3067\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u95B2\u89A7\u3059\u308B\u306B\u306F\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"m.beforeCommit": "{sha} \u3088\u308A\u524D",
|
|
"m.mergedN": "{n} \u4EF6\u3092\u30DE\u30FC\u30B8",
|
|
"m.nothingToSnapshot": "\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u306B\u3059\u308B\u5185\u5BB9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002\u5148\u306B\u540C\u671F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"m.queued": "\u540C\u671F\u3092\u5B9F\u884C\u4E2D\u3067\u3059\u3002\u5B8C\u4E86\u5F8C\u3059\u3050\u306B\u3042\u306A\u305F\u306E\u540C\u671F\u304C\u59CB\u307E\u308A\u307E\u3059\u3002",
|
|
"h.deleteCopyBody": "\u7AF6\u5408\u30B3\u30D4\u30FC\u306F\u30B4\u30DF\u7BB1\u306B\u79FB\u52D5\u3055\u308C\u307E\u3059\uFF08Obsidian \u306E\u300C\u524A\u9664\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u300D\u8A2D\u5B9A\u306B\u3088\u3063\u3066\u306F\u524A\u9664\u3055\u308C\u307E\u3059\uFF09\u3002\u5FC5\u8981\u306A\u5185\u5BB9\u3092\u6B8B\u3057\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"u.binaryFile": "\uFF08\u30D0\u30A4\u30CA\u30EA\u30D5\u30A1\u30A4\u30EB\u3001{n} \u30D0\u30A4\u30C8\uFF09",
|
|
"u.selectGroup": "\u3059\u3079\u3066\u9078\u629E\uFF1A{group}",
|
|
"u.includeFile": "\u3053\u306E\u540C\u671F\u306B {path} \u3092\u542B\u3081\u308B",
|
|
"m.pausedStatus": "\u81EA\u52D5\u540C\u671F\u3092\u4E00\u6642\u505C\u6B62\u4E2D",
|
|
"m.paused": "\u518D\u958B\u3059\u308B\u307E\u3067\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u81EA\u52D5\u540C\u671F\u3092\u4E00\u6642\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u624B\u52D5\u540C\u671F\u306F\u5F15\u304D\u7D9A\u304D\u4F7F\u3048\u307E\u3059\u3002",
|
|
"m.pausedFor": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u81EA\u52D5\u540C\u671F\u3092 {n} \u5206\u9593\u4E00\u6642\u505C\u6B62\u3057\u307E\u3057\u305F\u3002",
|
|
"m.resumed": "\u81EA\u52D5\u540C\u671F\u3092\u518D\u958B\u3057\u307E\u3057\u305F\u3002",
|
|
"cmd.pause": "\u81EA\u52D5\u540C\u671F\u3092\u4E00\u6642\u505C\u6B62\u307E\u305F\u306F\u518D\u958B",
|
|
"cmd.pauseHour": "\u81EA\u52D5\u540C\u671F\u3092 1 \u6642\u9593\u4E00\u6642\u505C\u6B62",
|
|
"cmd.diagnostics": "\u8A3A\u65AD\u60C5\u5831\u3092\u30B3\u30D4\u30FC\uFF08\u30D0\u30B0\u5831\u544A\u7528\uFF09",
|
|
"cmd.openOnHost": "\u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u30DB\u30B9\u30C8\u3067\u958B\u304F",
|
|
"cmd.historyOnHost": "\u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u5C65\u6B74\u3092\u30DB\u30B9\u30C8\u3067\u958B\u304F",
|
|
"cmd.copyHostLink": "\u30DB\u30B9\u30C8\u4E0A\u306E\u73FE\u5728\u306E\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC",
|
|
"menu.shareFolder": "\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u3068\u5171\u6709\u2026",
|
|
"menu.excludeFolder": "\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u540C\u671F\u304B\u3089\u9664\u5916",
|
|
"menu.openOnHost": "{host} \u3067\u958B\u304F",
|
|
"menu.copyHostLink": "{host} \u4E0A\u306E\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u3067\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u30D5\u30A1\u30A4\u30EB\u306B\u306F\u30DB\u30B9\u30C8\u4E0A\u3067\u8AAD\u3081\u308B\u30A2\u30C9\u30EC\u30B9\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"m.hostLinkUnsupported": "{host} \u306B\u306F\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u30A6\u30A7\u30D6\u30DA\u30FC\u30B8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"m.alreadyExcluded": "{folder} \u306F\u3059\u3067\u306B\u9664\u5916\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
"m.excludeBody": "{folder} \u5185\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u3001\u3069\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3082\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3001\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3001\u524A\u9664\u3055\u308C\u306A\u304F\u306A\u308A\u307E\u3059\u3002\u4ECA\u3059\u3050\u524A\u9664\u3055\u308C\u308B\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"m.excluded": "{folder} \u3092\u540C\u671F\u304B\u3089\u9664\u5916\u3057\u307E\u3057\u305F\u3002",
|
|
"m.diagnosticsCopied": "\u8A3A\u65AD\u60C5\u5831\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\u3002\u30C8\u30FC\u30AF\u30F3\u306F\u4F0F\u305B\u3066\u3042\u308A\u307E\u3059\u304C\u3001\u30ED\u30B0\u306E\u30D5\u30A1\u30A4\u30EB\u540D\u304C\u542B\u307E\u308C\u308B\u305F\u3081\u3001\u5171\u6709\u3059\u308B\u524D\u306B\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.resume": "\u518D\u958B",
|
|
"h.pause": "1 \u6642\u9593\u4E00\u6642\u505C\u6B62",
|
|
"h.pausedUntilResumed": "\u518D\u958B\u3059\u308B\u307E\u3067\u81EA\u52D5\u540C\u671F\u306F\u4E00\u6642\u505C\u6B62\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
"h.pausedUntil": "\u81EA\u52D5\u540C\u671F\u306F {time} \u307E\u3067\u4E00\u6642\u505C\u6B62\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
"h.batterySaverOn": "\u30D0\u30C3\u30C6\u30EA\u30FC\u7BC0\u7D04\u30E2\u30FC\u30C9\u304C\u30AA\u30F3\u3067\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u5B9A\u671F\u540C\u671F\u3068\u7DE8\u96C6\u3054\u3068\u306E\u540C\u671F\u3092\u884C\u3044\u307E\u305B\u3093\u3002",
|
|
"h.batterySaverTurnOn": "\u30D0\u30C3\u30C6\u30EA\u30FC\u7BC0\u7D04\u30E2\u30FC\u30C9\u3092\u30AA\u30F3",
|
|
"h.batterySaverOff": "\u30D0\u30C3\u30C6\u30EA\u30FC\u7BC0\u7D04\u30E2\u30FC\u30C9\u3092\u30AA\u30D5",
|
|
"h.versionMismatch": "\u30C7\u30D0\u30A4\u30B9\u3054\u3068\u306B\u3053\u306E\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u304C\u7570\u306A\u308A\u307E\u3059\uFF08\u3053\u306E\u30C7\u30D0\u30A4\u30B9\uFF1A{mine}\u3001{list}\uFF09\u3002\u540C\u3058\u65B9\u6CD5\u3067\u540C\u671F\u3055\u308C\u308B\u3088\u3046\u3001\u3059\u3079\u3066\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"h.badNames": "Windows \u3067\u4FDD\u5B58\u3067\u304D\u306A\u3044\u540D\u524D\uFF08{n}\uFF09",
|
|
"h.badNamesHint": '\u3053\u308C\u3089\u306E\u30D5\u30A1\u30A4\u30EB\u306F Windows \u30C7\u30D0\u30A4\u30B9\uFF08\u304A\u3088\u3073\u4E00\u90E8\u306E Android \u30C7\u30D0\u30A4\u30B9\uFF09\u306B\u540C\u671F\u3055\u308C\u307E\u305B\u3093\u3002\u540D\u524D\u3092\u5909\u66F4\u3057\u3066 < > : " | ? * \u3084\u672B\u5C3E\u306E\u30C9\u30C3\u30C8\u30FB\u30B9\u30DA\u30FC\u30B9\u3092\u53D6\u308A\u9664\u3044\u3066\u304F\u3060\u3055\u3044\u3002',
|
|
"u.filterSearch": "\u540D\u524D\u3067\u7D5E\u308A\u8FBC\u307F",
|
|
"u.filterAll": "\u3059\u3079\u3066",
|
|
"u.filterUploads": "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",
|
|
"u.filterDownloads": "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",
|
|
"u.filterDeletes": "\u524A\u9664",
|
|
"u.filterConflicts": "\u7AF6\u5408",
|
|
"m.mirrorFailed": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30DF\u30E9\u30FC\uFF1A{error}",
|
|
"m.hostRemoved": "Gitee \u3068 Azure DevOps \u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u306A\u304F\u306A\u308A\u307E\u3057\u305F\u3002\u540C\u671F\u306F\u4E00\u6642\u505C\u6B62\u3057\u3066\u3044\u307E\u3059\u3002\u8A2D\u5B9A \u2192 Vault Sync for Git \u3067\u5225\u306E\u30DB\u30B9\u30C8\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"m.hostRemovedOther": "Gitee \u3068 Azure DevOps \u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u306A\u304F\u306A\u308A\u307E\u3057\u305F\u3002\u3053\u308C\u3089\u3092\u4F7F\u3063\u3066\u3044\u305F\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30DF\u30E9\u30FC\u306F\u30AA\u30D5\u306B\u306A\u308A\u3001\u3053\u308C\u3089\u306E\u4E0A\u306E\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u306F\u30B9\u30AD\u30C3\u30D7\u3055\u308C\u307E\u3059\u3002\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"sh.subdir": "\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D5\u30A9\u30EB\u30C0\uFF08\u4EFB\u610F\uFF09",
|
|
"sh.subdirDesc": "\u5171\u6709\u30D5\u30A9\u30EB\u30C0\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EB\u30FC\u30C8\u3067\u306F\u306A\u304F\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D5\u30A9\u30EB\u30C0\uFF08\u4F8B\uFF1Adocs\uFF09\u306B\u5BFE\u5FDC\u3055\u305B\u307E\u3059\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u305D\u308C\u4EE5\u5916\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u305D\u306E\u307E\u307E\u6B8B\u308A\u307E\u3059\u3002",
|
|
"sh.conflicts": "2 \u4EBA\u304C\u540C\u3058\u884C\u3092\u5909\u66F4\u3057\u305F\u5834\u5408",
|
|
"sh.conflictsDesc": "\u4E21\u65B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u7AF6\u5408\u30B3\u30D4\u30FC\u3068\u3057\u3066\u3053\u3053\u306B\u4FDD\u6301\u3059\u308B\u304B\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u65B0\u3057\u3044\u30D6\u30E9\u30F3\u30C1\u306B\u9001\u308A\u3001\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3067\u304D\u308B\u3088\u3046\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002",
|
|
"sh.conflictsCopy": "\u4E21\u65B9\u3092\u4FDD\u6301\uFF08\u7AF6\u5408\u30B3\u30D4\u30FC\uFF09",
|
|
"sh.conflictsPr": "\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u4F5C\u6210",
|
|
"m.prOpened": "{folder}\uFF1A\u7AF6\u5408\u3059\u308B\u7DE8\u96C6\u3092\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3068\u3057\u3066\u9001\u4FE1\u3057\u307E\u3057\u305F\uFF1A{url}",
|
|
"pi.title": "\u4ED6\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u4F7F\u3063\u3066\u3044\u308B\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",
|
|
"pi.body": "\u3053\u308C\u3089\u306E\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u30D7\u30E9\u30B0\u30A4\u30F3\u306F\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u6709\u52B9\u5316\uFF08\u307E\u305F\u306F\u66F4\u65B0\uFF09\u3055\u308C\u3066\u3044\u307E\u3059\u3002Vault Sync for Git \u306F\u3001Obsidian \u306E\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306B\u767B\u9332\u3055\u308C\u3066\u3044\u308B\u5404\u30D7\u30E9\u30B0\u30A4\u30F3\u306E GitHub \u4E0A\u306E\u516C\u5F0F\u30EA\u30EA\u30FC\u30B9\u304B\u3089\u3001\u540C\u3058\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u3053\u3053\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u3059\u3002",
|
|
"pi.list": "\u30D7\u30E9\u30B0\u30A4\u30F3",
|
|
"pi.install": "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",
|
|
"pi.failed": "{name} \u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"pi.done": "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3057\u305F\uFF1A{list}\u3002\u8AAD\u307F\u8FBC\u3080\u306B\u306F Obsidian \u3092\u518D\u8D77\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\uFF08\u307E\u305F\u306F\u5404\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30AA\u30D5\u306B\u3057\u3066\u304B\u3089\u30AA\u30F3\u306B\u3057\u3066\u304F\u3060\u3055\u3044\uFF09\u3002",
|
|
"s.cfgInstall": "\u516C\u5F0F\u30EA\u30EA\u30FC\u30B9\u304B\u3089\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30B3\u30FC\u30C9\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB",
|
|
"s.cfgInstallDesc": "\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30B3\u30FC\u30C9\u3092\u540C\u671F\u3059\u308B\u4EE3\u308F\u308A\u306B\u3001\u5404\u30C7\u30D0\u30A4\u30B9\u304C\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u516C\u5F0F\u30EA\u30EA\u30FC\u30B9\u304B\u3089\u540C\u3058\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\uFF08\u78BA\u8A8D\u5F8C\uFF09\u3002\u30D7\u30E9\u30B0\u30A4\u30F3\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u5F15\u304D\u7D9A\u304D\u540C\u671F\u3055\u308C\u307E\u3059\u3002\u3053\u3061\u3089\u306E\u65B9\u304C\u5B89\u5168\u3067\u3059\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u901A\u3058\u3066\u8AB0\u304B\u304C\u3042\u306A\u305F\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u30B3\u30FC\u30C9\u3092\u9001\u308A\u8FBC\u3080\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
"s.branchDesc": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u304C\u540C\u671F\u3059\u308B\u30D6\u30E9\u30F3\u30C1\u3002\u5207\u308A\u66FF\u3048\u308B\u3068\u65B0\u305F\u306B\u6BD4\u8F03\u304C\u884C\u308F\u308C\u307E\u3059\u3002\u4F55\u3082\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3002",
|
|
"s.branchChoose": "\u9078\u629E",
|
|
"s.branchIntro": "\u65E2\u5B58\u306E\u30D6\u30E9\u30F3\u30C1\u3092\u9078\u3076\u304B\u3001\u73FE\u5728\u306E\u30D6\u30E9\u30F3\u30C1\u304B\u3089\u65B0\u3057\u3044\u30D6\u30E9\u30F3\u30C1\uFF08\u4E0B\u66F8\u304D\u7528\u30D6\u30E9\u30F3\u30C1\u306A\u3069\uFF09\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002",
|
|
"s.branchNew": "\u65B0\u3057\u3044\u30D6\u30E9\u30F3\u30C1",
|
|
"s.branchInvalid": "\u4F7F\u7528\u3067\u304D\u308B\u306E\u306F\u82F1\u5B57\u3001\u6570\u5B57\u3001- _ . \u3068 / \u306E\u307F\u3067\u3059\u3002",
|
|
"s.branchNoHead": "\u30D6\u30E9\u30F3\u30C1 {branch} \u306F\u7A7A\u306E\u305F\u3081\u3001\u307E\u3060\u5206\u5C90\u5143\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"s.branchNone": "\u30D6\u30E9\u30F3\u30C1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"s.branchCurrent": "\u73FE\u5728\u306E\u30D6\u30E9\u30F3\u30C1",
|
|
"s.branchUse": "\u4F7F\u7528",
|
|
"s.emptyFolders": "\u7A7A\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u4FDD\u6301",
|
|
"s.emptyFoldersDesc": "\u30D5\u30A1\u30A4\u30EB\u306E\u306A\u3044\u30D5\u30A9\u30EB\u30C0\u3082\u3059\u3079\u3066\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u4FDD\u6301\u3055\u308C\u307E\u3059\uFF08.vault-sync/folders.json \u306B\u8A18\u9332\uFF09\u3002\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u304C\u6709\u52B9\u306A\u9593\u306F\u30AA\u30D5\u306B\u306A\u308A\u307E\u3059\u3002",
|
|
"s.battery": "\u30D0\u30C3\u30C6\u30EA\u30FC\u7BC0\u7D04\u30E2\u30FC\u30C9",
|
|
"s.batteryDesc": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u5B9A\u671F\u540C\u671F\u3068\u7DE8\u96C6\u3054\u3068\u306E\u540C\u671F\u3092\u884C\u3044\u307E\u305B\u3093\u3002\u8D77\u52D5\u6642\u3001Obsidian \u306B\u623B\u3063\u305F\u3068\u304D\u3001\u624B\u52D5\u3067\u540C\u671F\u3057\u305F\u3068\u304D\u306B\u540C\u671F\u3057\u307E\u3059\u3002",
|
|
"s.pause": "\u81EA\u52D5\u540C\u671F\u3092\u4E00\u6642\u505C\u6B62",
|
|
"s.pauseDesc": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u307F\u3002\u624B\u52D5\u540C\u671F\u306F\u5F15\u304D\u7D9A\u304D\u4F7F\u3048\u307E\u3059\u3002",
|
|
"s.pauseDescOn": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u81EA\u52D5\u540C\u671F\u304C\u4E00\u6642\u505C\u6B62\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
"s.pauseUntilResumed": "\u518D\u958B\u3059\u308B\u307E\u3067",
|
|
"s.author": "\u30B3\u30DF\u30C3\u30C8\u306E\u4F5C\u6210\u8005",
|
|
"s.authorDesc": "\u30B3\u30DF\u30C3\u30C8\u306B\u8A18\u9332\u3055\u308C\u308B\u540D\u524D\u3068\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\uFF08\u4E21\u65B9\u5FC5\u8981\uFF09\u3002\u7A7A\u6B04\u306E\u5834\u5408\u3001\u30DB\u30B9\u30C8\u306F\u30C8\u30FC\u30AF\u30F3\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002",
|
|
"s.authorName": "\u540D\u524D",
|
|
"s.authorEmail": "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",
|
|
"s.hMirror": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30DF\u30E9\u30FC",
|
|
"s.mirrorIntro": "\u540C\u671F\u306E\u305F\u3073\u306B\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u3092 2 \u3064\u76EE\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\uFF08\u5225\u306E\u30DB\u30B9\u30C8\u306A\u3069\uFF09\u306B\u3082\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3057\u307E\u3059\u3002\u30D7\u30C3\u30B7\u30E5\u306E\u307F\u3067\u3001\u30DF\u30E9\u30FC\u304B\u3089\u8AAD\u307F\u8FBC\u3080\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u304C\u6709\u52B9\u306A\u5834\u5408\u306F\u3001\u30DF\u30E9\u30FC\u3082\u6697\u53F7\u5316\u3055\u308C\u307E\u3059\u3002",
|
|
"s.mirrorOn": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u3092\u30DF\u30E9\u30FC\u3059\u308B",
|
|
"s.mirrorToken": "\u30DF\u30E9\u30FC\u7528\u30C8\u30FC\u30AF\u30F3",
|
|
"s.mirrorTokenDesc": "\u30DF\u30E9\u30FC\u5148\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30A2\u30AF\u30BB\u30B9\u30C8\u30FC\u30AF\u30F3\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002\u7A7A\u6B04\u306E\u5834\u5408\u3001\u540C\u3058\u30DB\u30B9\u30C8\u3067\u3042\u308C\u3070\u30E1\u30A4\u30F3\u306E\u30C8\u30FC\u30AF\u30F3\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002",
|
|
"s.mirrorIncomplete": "\u5148\u306B\u30DF\u30E9\u30FC\u3092\u30AA\u30F3\u306B\u3057\u3066\u3001\u30AA\u30FC\u30CA\u30FC\u3068\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.mirrorOk": "\u30DF\u30E9\u30FC\u306B\u63A5\u7D9A\u3067\u304D\u307E\u3059\uFF1A{repo}",
|
|
"h.mirror": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30DF\u30E9\u30FC {target}\uFF1A\u6700\u7D42\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9 {ago}",
|
|
"h.mirrorFailed": "\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u30DF\u30E9\u30FC {target} \u304C\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A{error}",
|
|
"cmd.overwrite": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3068\u4E00\u81F4\u3055\u305B\u308B",
|
|
"ow.title": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3068\u4E00\u81F4\u3055\u305B\u308B",
|
|
"ow.body": "{host} \u306B\u65B0\u3057\u3044\u30B3\u30DF\u30C3\u30C8\u3092 1 \u3064\u4F5C\u6210\u3057\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3068\u540C\u3058\u72B6\u614B\u306B\u3057\u307E\u3059\u3002\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3055\u308C\u3001\u4EE5\u4E0B\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u524A\u9664\u3055\u308C\u307E\u3059\uFF08\u5C65\u6B74\u306B\u306F\u6B8B\u308A\u307E\u3059\uFF09\u3002\u30AA\u30F3\u30C7\u30DE\u30F3\u30C9\u3067\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3059\u308B\u305F\u3081\u306B {host} \u306B\u306E\u307F\u7F6E\u304B\u308C\u3066\u3044\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u305D\u306E\u307E\u307E\u6B8B\u308A\u307E\u3059\u3002\u4ED6\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306F\u6B21\u56DE\u306E\u540C\u671F\u3067\u53CD\u6620\u3055\u308C\u307E\u3059\u3002",
|
|
"ow.upload": "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9",
|
|
"ow.confirm": "\u4E00\u81F4\u3055\u305B\u308B",
|
|
"ow.done": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\uFF1A1 \u3064\u306E\u30B3\u30DF\u30C3\u30C8\u3067 {n} \u4EF6\u306E\u5909\u66F4\u3002",
|
|
"ow.failed": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u66F4\u65B0\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"m.clipboardFailed": "\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"ce.ours": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u7248\u3092\u6B8B\u3059",
|
|
"ce.theirs": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u7248\u3092\u6B8B\u3059",
|
|
"ce.both": "\u4E21\u65B9\u6B8B\u3059",
|
|
"ce.hint": "\u7AF6\u5408\u3057\u3066\u3044\u308B\u5909\u66F4\uFF1A",
|
|
"app.signInGitLab": "GitLab \u3067\u30B5\u30A4\u30F3\u30A4\u30F3",
|
|
"app.signInDescGitLab": "\u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210\u3059\u308B\u4EE3\u308F\u308A\u306B\u3001\u30D6\u30E9\u30A6\u30B6\u30FC\u3067\u30A2\u30AF\u30BB\u30B9\u3092\u627F\u8A8D\u3057\u307E\u3059\u3002\u30A2\u30AF\u30BB\u30B9\u306F\u81EA\u52D5\u3067\u66F4\u65B0\u3055\u308C\u307E\u3059\u3002",
|
|
"app.signedInGitLab": "GitLab \u3067\u30B5\u30A4\u30F3\u30A4\u30F3\u6E08\u307F",
|
|
"app.signedInDescGitLab": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306F GitLab \u4E0A\u306E Vault Sync for Git \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059\u3002\u30A2\u30AF\u30BB\u30B9\u306F\u81EA\u52D5\u7684\u306B\u66F4\u65B0\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"app.glClientId": "GitLab \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3 ID\uFF08\u4EFB\u610F\uFF09",
|
|
"app.glClientIdDesc": "\u300CGitLab \u3067\u30B5\u30A4\u30F3\u30A4\u30F3\u300D\u3092\u4F7F\u3046\u306B\u306F\uFF1AGitLab\uFF08\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u3092\u7DE8\u96C6 \u2192 \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\uFF09\u3067\u4F5C\u6210\u3057\u305F\u3001api \u30B9\u30B3\u30FC\u30D7\u3092\u6301\u3064\u975E\u6A5F\u5BC6 OAuth \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E Application ID \u3092\u5165\u529B\u3057\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u306E\u307F\u4FDD\u5B58\u3055\u308C\u307E\u3059\u3002",
|
|
"sh.ghFormat": "GitHub \u5411\u3051 Markdown",
|
|
"sh.ghFormatDesc": "GitHub \u3067\u8AAD\u307F\u3084\u3059\u3044\u5F62\u3067\u30CE\u30FC\u30C8\u3092\u4FDD\u5B58\u3057\u307E\u3059\uFF1A\u30A6\u30A3\u30AD\u30EA\u30F3\u30AF\u306F\u30EA\u30F3\u30AF\u306B\u3001\u30B3\u30FC\u30EB\u30A2\u30A6\u30C8\u306F\u30A2\u30E9\u30FC\u30C8\u306B\u3001\u30CF\u30A4\u30E9\u30A4\u30C8\u306F <mark> \u306B\u306A\u308A\u307E\u3059\u3002\u4FDD\u7BA1\u5EAB\u306B\u306F Obsidian \u306E\u5143\u306E\u30C6\u30AD\u30B9\u30C8\u304C\u305D\u306E\u307E\u307E\u6B8B\u308A\u307E\u3059\u3002\u30D5\u30A9\u30EB\u30C0\u306E\u8FFD\u52A0\u6642\u306B\u8A2D\u5B9A\u3057\u307E\u3059\u3002",
|
|
"s.hiddenNested": "\u30D5\u30A9\u30EB\u30C0\u5185\u306E\u96A0\u3057\u30D5\u30A1\u30A4\u30EB",
|
|
"s.hiddenNestedDesc": "\u30CE\u30FC\u30C8\u306E\u30D5\u30A9\u30EB\u30C0\u5185\u306B\u3042\u308B\u96A0\u3057\u30D5\u30A1\u30A4\u30EB\u3084\u96A0\u3057\u30D5\u30A9\u30EB\u30C0\uFF08\u4F8B\uFF1ANotes/.assets\uFF09\u3082\u540C\u671F\u3057\u307E\u3059\u3002\u8A2D\u5B9A\u30D5\u30A9\u30EB\u30C0\u3001.trash\u3001.git \u306F\u542B\u307E\u308C\u307E\u305B\u3093\u3002",
|
|
"app.reposTitle": "\u30A2\u30D7\u30EA\u304C\u4F7F\u3048\u308B\u30EA\u30DD\u30B8\u30C8\u30EA",
|
|
"app.addRepos": "GitHub \u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u8FFD\u52A0",
|
|
"app.watching": "GitHub \u3067\u306E\u64CD\u4F5C\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\u3002\u623B\u308B\u3068\u4E00\u89A7\u304C\u81EA\u52D5\u3067\u66F4\u65B0\u3055\u308C\u307E\u3059\u3002",
|
|
"app.noRepos": "\u30A2\u30D7\u30EA\u306F\u307E\u3060\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u53C2\u7167\u3067\u304D\u307E\u305B\u3093\u3002GitHub \u3067\u4FDD\u7BA1\u5EAB\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"app.newRepo": "\u65B0\u898F",
|
|
"app.newArrived": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304C\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F\u3002\u4E0A\u306E\u4E00\u89A7\u304B\u3089\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"s.repoPick": "\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u9078\u629E",
|
|
"s.strategyDesc": "\u81EA\u52D5\u30DE\u30FC\u30B8\u306F\u7570\u306A\u308B\u884C\u306E\u5909\u66F4\u3092\u7D50\u5408\u3057\u3001\u540C\u3058\u884C\u304C\u5909\u66F4\u3055\u308C\u305F\u5834\u5408\u306F\u4E21\u65B9\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u6B8B\u3057\u307E\u3059\u3002",
|
|
"s.pauseDescUntil": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u81EA\u52D5\u540C\u671F\u306F {time} \u307E\u3067\u4E00\u6642\u505C\u6B62\u4E2D\u3067\u3059\u3002",
|
|
"s.branchPick": "\u30D6\u30E9\u30F3\u30C1\u3092\u9078\u629E",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30DB\u30B9\u30C8",
|
|
"err.network": "{host} \u3068\u306E\u901A\u4FE1\u4E2D\u306B\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F",
|
|
"err.badToken": "{host} \u306E\u30C8\u30FC\u30AF\u30F3\u304C\u7121\u52B9\u304B\u3001\u671F\u9650\u5207\u308C\u3067\u3059\u3002",
|
|
"err.forbidden": "{host} \u304C\u30A2\u30AF\u30BB\u30B9\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\uFF08HTTP {status}\uFF09\u3002\u30C8\u30FC\u30AF\u30F3\u306B\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u8AAD\u307F\u66F8\u304D\u6A29\u9650\u304C\u3042\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.notFound": "{host} \u3067\u30EA\u30DD\u30B8\u30C8\u30EA\u3001\u30D6\u30E9\u30F3\u30C1\u3001\u307E\u305F\u306F\u30D5\u30A1\u30A4\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\uFF08HTTP {status}\uFF09\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u540D\u3068\u30C8\u30FC\u30AF\u30F3\u306E\u30A2\u30AF\u30BB\u30B9\u6A29\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.conflict": "{host} \u304C\u7AF6\u5408\u3092\u5831\u544A\u3057\u307E\u3057\u305F\uFF08HTTP {status}\uFF09\u3002\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u304C\u30D7\u30C3\u30B7\u30E5\u3057\u305F\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u3082\u3046\u4E00\u5EA6\u540C\u671F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.tooLarge": "{host} \u304C\u5927\u304D\u3059\u304E\u308B\u30D5\u30A1\u30A4\u30EB\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\uFF08HTTP {status}\uFF09\u3002",
|
|
"err.rateLimit": "{host} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u30021 \u5206\u5F8C\u306B\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
"err.rateLimitMin": "{host} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002{min} \u5206\u5F8C\u306B\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
"err.secondaryRateLimit": "{host} \u306E\u30BB\u30AB\u30F3\u30C0\u30EA\u30EC\u30FC\u30C8\u5236\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u30021 \u5206\u5F8C\u306B\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
"err.server": "{host} \u3067\u554F\u984C\u304C\u767A\u751F\u3057\u3066\u3044\u307E\u3059\uFF08HTTP {status}\uFF09\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
"err.noToken": "{host} \u306E\u30C8\u30FC\u30AF\u30F3\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D7\u30E9\u30B0\u30A4\u30F3\u8A2D\u5B9A\u3067\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.foreignLink": "{host} \u304C\u5225\u306E\u30B5\u30FC\u30D0\u30FC\u3078\u306E\u30EA\u30F3\u30AF\uFF08{origin}\uFF09\u3092\u8FD4\u3057\u307E\u3057\u305F\u3002\u305D\u3053\u306B\u306F\u30C8\u30FC\u30AF\u30F3\u3092\u9001\u4FE1\u3057\u307E\u305B\u3093\u3002",
|
|
"err.versionUnavailable": "{host}\uFF1A\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093",
|
|
"err.contentMismatch": "\u300C{path}\u300D\u3092 {host} \u304B\u3089\u5B8C\u5168\u306B\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u5185\u5BB9\u304C\u4E00\u81F4\u3057\u307E\u305B\u3093\uFF09\u3002\u3082\u3046\u4E00\u5EA6\u540C\u671F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.partialDownload": "\u300C{path}\u300D\u3092 {host} \u304B\u3089\u5B8C\u5168\u306B\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08{expected} \u30D0\u30A4\u30C8\u4E2D {got} \u30D0\u30A4\u30C8\u3092\u53D7\u4FE1\uFF09\u3002\u3082\u3046\u4E00\u5EA6\u540C\u671F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.incompleteDownload": "{path} \u3092 {host} \u304B\u3089\u5B8C\u5168\u306B\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08{bytes} \u30D0\u30A4\u30C8\u3092\u53D7\u4FE1\uFF09\u3002\u30B5\u30FC\u30D0\u30FC\u304C API \u3067\u9001\u4FE1\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u30B5\u30A4\u30BA\u3092\u5236\u9650\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",
|
|
"err.commitRefused": "{host} \u304C\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\uFF1A{detail}",
|
|
"err.commitNotCreated": "{host} \u304C\u30B3\u30DF\u30C3\u30C8\u3092\u4F5C\u6210\u3057\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
"err.commitNoTree": "\u30B3\u30DF\u30C3\u30C8 {sha} \u306B\u30C4\u30EA\u30FC\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
"err.repoTooLarge": "\u30EA\u30DD\u30B8\u30C8\u30EA\u304C\u5927\u304D\u3059\u304E\u3066 {host} \u3067\u4E00\u89A7\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
"err.badPagination": "{host} \u304C\u4E88\u671F\u3057\u306A\u3044\u30DA\u30FC\u30B8\u30CD\u30FC\u30B7\u30E7\u30F3\u30EA\u30F3\u30AF\u3092\u8FD4\u3057\u307E\u3057\u305F",
|
|
"err.listFailed": "{host} \u304C {ref} \u306E\u30D5\u30A1\u30A4\u30EB\u3092\u4E00\u89A7\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08HTTP 404\uFF09",
|
|
"err.blobTooLarge": "{host}\uFF1A\u30D5\u30A1\u30A4\u30EB\u304C\u3053\u306E\u30B5\u30FC\u30D0\u30FC\u306E API \u306E\u30B5\u30A4\u30BA\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059",
|
|
"err.blobTooLargeMismatch": "{host}\uFF1A\u30D5\u30A1\u30A4\u30EB\u304C\u3053\u306E\u30B5\u30FC\u30D0\u30FC\u306E API \u306E\u30B5\u30A4\u30BA\u4E0A\u9650\u3092\u8D85\u3048\u3066\u304A\u308A\u3001\u751F\u30D5\u30A1\u30A4\u30EB\u3082\u4E00\u81F4\u3057\u307E\u305B\u3093\u3067\u3057\u305F",
|
|
"err.unsupportedHost": "\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044 Git \u30DB\u30B9\u30C8\uFF1A{host}",
|
|
"err.lfsCorrupt": "{path}\uFF1A\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u304C\u7834\u640D\u3057\u3066\u3044\u307E\u3057\u305F",
|
|
"err.lfsError": "\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u30B9\u30C8\u30EC\u30FC\u30B8\uFF1A{detail}",
|
|
"err.lfsMissing": "{path}\uFF1A\u5927\u5BB9\u91CF\u30D5\u30A1\u30A4\u30EB\u304C\u30DB\u30B9\u30C8\u306E LFS \u30B9\u30C8\u30EC\u30FC\u30B8\u306B\u3042\u308A\u307E\u305B\u3093",
|
|
"err.encLocked": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540C\u671F\u3059\u308B\u306B\u306F\u3001\u8A2D\u5B9A \u2192 \u6697\u53F7\u5316 \u3067\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.encMismatch": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u3001\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u30ED\u30C3\u30AF\u89E3\u9664\u3057\u305F\u3082\u306E\u3068\u306F\u5225\u306E\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3067\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u8A2D\u5B9A \u2192 \u6697\u53F7\u5316 \u3067\u3082\u3046\u4E00\u5EA6\u30ED\u30C3\u30AF\u89E3\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.encUpgraded": "\u30A8\u30F3\u30C9\u30C4\u30FC\u30A8\u30F3\u30C9\u6697\u53F7\u5316\u304C\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u30A2\u30C3\u30D7\u30B0\u30EC\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F\uFF08\u540C\u3058\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u3067\u3001\u5404\u30D5\u30A1\u30A4\u30EB\u304C\u540D\u524D\u306B\u7D50\u3073\u4ED8\u3051\u3089\u308C\u307E\u3059\uFF09\u3002\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3082\u5207\u308A\u66FF\u3048\u307E\u3057\u305F\u3002\u6B21\u56DE\u306E\u540C\u671F\u3067\u7D9A\u884C\u3057\u307E\u3059\u3002",
|
|
"err.branchMoved": "\u540C\u671F\u4E2D\u306B\u30D6\u30E9\u30F3\u30C1\u304C\u5909\u308F\u308A\u307E\u3057\u305F\uFF08\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u304C\u30D7\u30C3\u30B7\u30E5\u3057\u307E\u3057\u305F\uFF09\u3002",
|
|
"err.editedDuringSync": "{path} \u306F\u540C\u671F\u4E2D\u306B\u7DE8\u96C6\u3055\u308C\u307E\u3057\u305F",
|
|
"err.cancelled": "\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3057\u305F\u3002",
|
|
"err.unloaded": "\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u7D42\u4E86\u3057\u305F\u305F\u3081\u540C\u671F\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u6B21\u56DE\u7D9A\u884C\u3057\u307E\u3059\u3002",
|
|
"err.guardCancelled": "\u524A\u9664\u30AC\u30FC\u30C9\u306B\u3088\u308A\u540C\u671F\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3057\u305F\u3002",
|
|
"err.resetCancelled": "\u30EA\u30BB\u30C3\u30C8\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3057\u305F\u3002",
|
|
"err.restoreCancelled": "\u5FA9\u5143\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3057\u305F\u3002",
|
|
"err.branchMissing": "{repo} \u306B\u30D6\u30E9\u30F3\u30C1\u300C{branch}\u300D\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u524A\u9664\u307E\u305F\u306F\u540D\u524D\u5909\u66F4\u3055\u308C\u305F\u304B\u3001\u30C8\u30FC\u30AF\u30F3\u306E\u30A2\u30AF\u30BB\u30B9\u6A29\u304C\u5931\u308F\u308C\u305F\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u4F55\u3082\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"err.repoNotFound": "\u30EA\u30DD\u30B8\u30C8\u30EA {repo} \u304C\u898B\u3064\u304B\u3089\u306A\u3044\u304B\u3001\u30C8\u30FC\u30AF\u30F3\u3067\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
"err.initFailed": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D6\u30E9\u30F3\u30C1\u3092\u521D\u671F\u5316\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
"err.encryptionOff": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u306F\u6697\u53F7\u5316\u304C\u6709\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"err.branchEmpty": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D6\u30E9\u30F3\u30C1\u304C\u7A7A\u3067\u3059\u3002",
|
|
"err.resetEmpty": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D6\u30E9\u30F3\u30C1\u304C\u7A7A\u3067\u3059\u3002\u30EA\u30BB\u30C3\u30C8\u5148\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"err.restorePullOnly": "\u5FA9\u5143\u306B\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u3078\u306E\u30D7\u30C3\u30B7\u30E5\u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u30D7\u30EB\u306E\u307F\u30E2\u30FC\u30C9\u3067\u306F\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"err.restoreRaced": "\u5FA9\u5143\u4E2D\u306B\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u304C\u30D7\u30C3\u30B7\u30E5\u3057\u307E\u3057\u305F\u3002\u4F55\u3082\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
|
|
"skip.deferred": "\u30EC\u30D3\u30E5\u30FC\u3067\u4FDD\u7559",
|
|
"skip.localTooLarge": "\u30ED\u30FC\u30AB\u30EB\u30D5\u30A1\u30A4\u30EB\u304C {mb} MB \u3092\u8D85\u3048\u3066\u3044\u307E\u3059",
|
|
"skip.remoteTooLarge": "\u30EA\u30E2\u30FC\u30C8\u306E\u30D5\u30A1\u30A4\u30EB\u304C {mb} MB \u3092\u8D85\u3048\u3066\u3044\u307E\u3059",
|
|
"skip.windowsName": "Windows \u3067\u4F7F\u3048\u306A\u3044\u540D\u524D\u3067\u3059\u3002\u5225\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u540D\u524D\u3092\u5909\u66F4\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
"skip.onDemand": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002\u5FC5\u8981\u306B\u5FDC\u3058\u3066\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3067\u304D\u307E\u3059",
|
|
"skip.caseRenamedFrom": "\u5225\u306E\u5834\u6240\u3067 {other} \u304B\u3089\u5927\u6587\u5B57\u30FB\u5C0F\u6587\u5B57\u306E\u5909\u66F4\u3067\u540D\u524D\u5909\u66F4\u3055\u308C\u307E\u3057\u305F\u3002\u6B21\u56DE\u306E\u53CC\u65B9\u5411\u540C\u671F\u3067\u53CD\u6620\u3055\u308C\u307E\u3059",
|
|
"skip.caseRenamedTo": "\u5225\u306E\u5834\u6240\u3067\u5927\u6587\u5B57\u30FB\u5C0F\u6587\u5B57\u306E\u5909\u66F4\u306B\u3088\u308A {other} \u306B\u540D\u524D\u5909\u66F4\u3055\u308C\u307E\u3057\u305F\u3002\u6B21\u56DE\u306E\u53CC\u65B9\u5411\u540C\u671F\u3067\u53CD\u6620\u3055\u308C\u307E\u3059",
|
|
"skip.unicodeClash": "{other} \u3068\u540C\u3058\u540D\u524D\uFF08Unicode \u306E\u5F62\u5F0F\u304C\u7570\u306A\u308B\uFF09",
|
|
"skip.caseClash": "{other} \u3068\u5927\u6587\u5B57\u30FB\u5C0F\u6587\u5B57\u3060\u3051\u304C\u7570\u306A\u308A\u307E\u3059",
|
|
"skip.winRenamed": "\u5225\u306E\u5834\u6240\u3067 Windows \u306B\u4FDD\u5B58\u3067\u304D\u306A\u3044\u540D\u524D\u306B\u5909\u66F4\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u3053\u3067\u306F\u4FDD\u6301\u3057\u307E\u3059",
|
|
"skip.winMaybeRenamed": "\u5225\u306E\u5834\u6240\u3067 Windows \u306B\u4FDD\u5B58\u3067\u304D\u306A\u3044\u540D\u524D\u306B\u5909\u66F4\u3055\u308C\u305F\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002\u3053\u3053\u3067\u306F\u4FDD\u6301\u3057\u307E\u3059",
|
|
"skip.unsafePath": "\u5B89\u5168\u3067\u306A\u3044\u30D1\u30B9",
|
|
"skip.movedOutOfScope": "{to} \u306B\u79FB\u52D5\u3055\u308C\u307E\u3057\u305F\uFF08\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u540C\u671F\u7BC4\u56F2\u5916\uFF09\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u306F\u6B8B\u308A\u307E\u3059",
|
|
"skip.conflictKept": "\u7AF6\u5408\u306F\u6B21\u56DE\u306E\u540C\u671F\u307E\u3067\u4FDD\u6301\u3055\u308C\u307E\u3059\uFF1A{error}",
|
|
"skip.caseRenameFailed": "\u5225\u306E\u5834\u6240\u3067 {from} \u304B\u3089\u5927\u6587\u5B57\u30FB\u5C0F\u6587\u5B57\u306E\u5909\u66F4\u3067\u540D\u524D\u5909\u66F4\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u3053\u3067\u306F\u307E\u3060\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u305B\u3093\uFF1A{error}",
|
|
"skip.editedDuringSync": "\u540C\u671F\u4E2D\u306B\u7DE8\u96C6\u3055\u308C\u307E\u3057\u305F\u3002\u6B21\u56DE\u540C\u671F\u3057\u307E\u3059",
|
|
"err.newerFormat": "\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u65B0\u3057\u3044\u6697\u53F7\u5316\u5F62\u5F0F\u3092\u4F7F\u7528\u3057\u3066\u3044\u307E\u3059\u3002\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"err.wrongPass": "\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"err.decryptFailed": "{path} \u3092\u5FA9\u53F7\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A\u30D1\u30B9\u30D5\u30EC\u30FC\u30BA\u304C\u6B63\u3057\u304F\u306A\u3044\u304B\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u307E\u3059",
|
|
"err.notEncrypted": "{path} \u306F\u3053\u306E\u4FDD\u7BA1\u5EAB\u306E\u30AD\u30FC\u3067\u6697\u53F7\u5316\u3055\u308C\u3066\u3044\u307E\u305B\u3093",
|
|
"err.overwritePullOnly": "\u30D7\u30EB\u306E\u307F\u30E2\u30FC\u30C9\u3067\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3057\u307E\u305B\u3093\u3002",
|
|
"err.overwriteEmpty": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D6\u30E9\u30F3\u30C1\u304C\u7A7A\u3067\u3059\u3002\u5148\u306B\u901A\u5E38\u306E\u540C\u671F\u3092\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"skip.pushCopyTooLarge": "{host} \u3067\u3082\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u306E\u307F: \u305D\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u5927\u304D\u3059\u304E\u3066\u3053\u3053\u306B\u30B3\u30D4\u30FC\u3067\u304D\u306A\u3044\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5C65\u6B74\u306B\u6B8B\u308A\u307E\u3059",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "\u540C\u671F\u5C65\u6B74",
|
|
"cmd.openHistory": "\u540C\u671F\u5C65\u6B74\u3092\u958B\u304F",
|
|
"cmd.useRepo": "\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u7248\u3092\u4F7F\u3046",
|
|
"menu.useRepo": "\u30EA\u30DD\u30B8\u30C8\u30EA\u7248\u3092\u4F7F\u3046",
|
|
"hist.title": "\u540C\u671F\u5C65\u6B74",
|
|
"hist.filter": "\u30D1\u30B9\u3067\u7D5E\u308A\u8FBC\u307F",
|
|
"hist.loadMore": "\u3055\u3089\u306B\u8AAD\u307F\u8FBC\u3080",
|
|
"hist.empty": "\u307E\u3060\u540C\u671F\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"hist.noMatch": "\u8AAD\u307F\u8FBC\u3093\u3060\u540C\u671F\u306E\u4E2D\u306B\u4E00\u81F4\u3059\u308B\u5909\u66F4\u30D5\u30A1\u30A4\u30EB\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3055\u3089\u306B\u8AAD\u307F\u8FBC\u3080\u3068\u904E\u53BB\u306B\u3055\u304B\u306E\u307C\u3063\u3066\u691C\u7D22\u3057\u307E\u3059\u3002",
|
|
"hist.noFiles": "\u3053\u306E\u540C\u671F\u3067\u306F\u3053\u306E\u4FDD\u7BA1\u5EAB\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"hist.added": "\u8FFD\u52A0",
|
|
"hist.modified": "\u5909\u66F4",
|
|
"hist.deleted": "\u524A\u9664",
|
|
"hist.renamed": "\u540D\u524D\u5909\u66F4",
|
|
"hist.renamedFrom": "\uFF08\u5143\uFF1A{path}\uFF09",
|
|
"hist.restoreFile": "\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u5FA9\u5143",
|
|
"hist.before": "\u5909\u66F4\u524D\uFF08{sha}\uFF09",
|
|
"hist.after": "\u5909\u66F4\u5F8C\uFF08{sha}\uFF09",
|
|
"hist.none": "\uFF08\u5B58\u5728\u3057\u306A\u3044\uFF09",
|
|
"h.pendingFiles": "\u7DE8\u96C6\u3057\u305F\u30D5\u30A1\u30A4\u30EB\u3092\u8868\u793A",
|
|
"repo.use": "\u30EA\u30DD\u30B8\u30C8\u30EA\u7248\u3092\u4F7F\u3046",
|
|
"repo.useBody": "\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E {path} \u3092 {host} \u306E\u6700\u65B0\u7248\u3067\u7F6E\u304D\u63DB\u3048\u307E\u3059\u304B\uFF1F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u7248\u306F\u5148\u306B\u30B4\u30DF\u7BB1\u306B\u79FB\u52D5\u3055\u308C\u308B\u306E\u3067\u3001\u3042\u3068\u304B\u3089\u623B\u305B\u307E\u3059\u3002",
|
|
"repo.used": "{path} \u306F {host} \u3068\u4E00\u81F4\u3057\u307E\u3057\u305F\u3002\u4EE5\u524D\u306E\u7248\u306F {copy} \u3068\u3057\u3066\u30B4\u30DF\u7BB1\u306B\u3042\u308A\u307E\u3059\u3002",
|
|
"repo.restored": "{path} \u3092 {host} \u304B\u3089\u623B\u3057\u307E\u3057\u305F\u3002",
|
|
"repo.same": "{path} \u306F\u3059\u3067\u306B {host} \u3068\u4E00\u81F4\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
"repo.missing": "{path} \u306F {host} \u306B\u3042\u308A\u307E\u305B\u3093\uFF1A\u4F55\u3082\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"repo.failed": "\u30EA\u30DD\u30B8\u30C8\u30EA\u7248\u3092\u4F7F\u3048\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "\u3053\u306E\u5909\u66F4\u3092\u5143\u306B\u623B\u3059\uFF08\u524D\u56DE\u306E\u540C\u671F\u6642\u306E\u30C6\u30AD\u30B9\u30C8\u306B\u623B\u3059\uFF09",
|
|
"cmd.nextChange": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306E\u6B21\u306E\u5909\u66F4\u3078\u79FB\u52D5",
|
|
"cmd.prevChange": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306E\u524D\u306E\u5909\u66F4\u3078\u79FB\u52D5",
|
|
"cmd.whoChanged": "\u3053\u306E\u884C\u3092\u6700\u5F8C\u306B\u5909\u66F4\u3057\u305F\u306E\u306F\u8AB0\u304B\u3092\u8868\u793A",
|
|
"cm.added": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306B\u8FFD\u52A0",
|
|
"cm.changed": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306B\u5909\u66F4",
|
|
"cm.deleted": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306B\u524A\u9664",
|
|
"cm.lastSynced": "\u524D\u56DE\u306E\u540C\u671F\u6642\uFF1A",
|
|
"cm.newLines": "\u3053\u308C\u3089\u306E\u884C\u306F\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F\u3002",
|
|
"cm.revert": "\u5143\u306B\u623B\u3059",
|
|
"cm.who": "\u8AB0\u304C\u5909\u66F4\u3057\u305F\uFF1F",
|
|
"la.title": "\u3053\u306E\u884C\u3092\u6700\u5F8C\u306B\u5909\u66F4\u3057\u305F\u306E\u306F",
|
|
"la.result": "\u6700\u7D42\u5909\u66F4\uFF1A{date}\u3001\u30C7\u30D0\u30A4\u30B9\uFF1A{device}\uFF08{sha}\uFF09\u3002",
|
|
"la.resultOlder": "\u6700\u7D42\u5909\u66F4\uFF1A{date} \u4EE5\u524D\u3001\u30C7\u30D0\u30A4\u30B9\uFF1A{device}\uFF08{sha}\uFF09\u3002\u76F4\u8FD1 {n} \u500B\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306E\u307F\u78BA\u8A8D\u3057\u307E\u3057\u305F\u3002",
|
|
"la.local": "\u3053\u306E\u884C\u306F\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306B\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u3069\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306B\u3082\u307E\u3060\u542B\u307E\u308C\u3066\u3044\u307E\u305B\u3093\u3002",
|
|
"la.none": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",
|
|
"la.looking": "\u30D5\u30A1\u30A4\u30EB\u306E\u5C65\u6B74\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u2026",
|
|
"la.failed": "\u30D5\u30A1\u30A4\u30EB\u306E\u5C65\u6B74\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\uFF1A{error}",
|
|
"la.tooBig": "\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u5927\u304D\u3059\u304E\u308B\u305F\u3081\uFF081 MB \u8D85\uFF09\u3001\u5C65\u6B74\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3002",
|
|
"la.open": "\u3053\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u958B\u304F",
|
|
"s.changeMarkers": "\u524D\u56DE\u306E\u540C\u671F\u4EE5\u964D\u306E\u5909\u66F4\u3092\u30A8\u30C7\u30A3\u30BF\u306B\u8868\u793A",
|
|
"s.changeMarkersDesc": "\u30C6\u30AD\u30B9\u30C8\u306E\u6A2A\u306B\u8FFD\u52A0\u30FB\u5909\u66F4\u30FB\u524A\u9664\u3055\u308C\u305F\u884C\u3092\u8868\u793A\u3057\u307E\u3059\u3002\u30DE\u30FC\u30AF\u3092\u30AF\u30EA\u30C3\u30AF\u307E\u305F\u306F\u30BF\u30C3\u30D7\u3059\u308B\u3068\u3001\u524D\u56DE\u306E\u540C\u671F\u6642\u306E\u30C6\u30AD\u30B9\u30C8\u3092\u8868\u793A\u3057\u3066\u5143\u306B\u623B\u305B\u307E\u3059\u3002",
|
|
"cmd.syncMessage": "\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u6307\u5B9A\u3057\u3066\u540C\u671F\u2026",
|
|
"cmd.syncClose": "\u540C\u671F\u3057\u3066 Obsidian \u3092\u9589\u3058\u308B",
|
|
"cmd.editExcludes": "\u9664\u5916\u30D1\u30BF\u30FC\u30F3\u3092\u7DE8\u96C6",
|
|
"msg.title": "\u30B3\u30DF\u30C3\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8",
|
|
"msg.placeholder": "\u4F55\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304B\uFF1F",
|
|
"msg.sync": "\u540C\u671F",
|
|
"msg.empty": "\u5148\u306B\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
"menu.excludeFile": "\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u540C\u671F\u304B\u3089\u9664\u5916",
|
|
"menu.include": "\u540C\u671F\u306B\u542B\u3081\u308B",
|
|
"m.excludeFileBody": "{path} \u306F\u3001\u3069\u306E\u30C7\u30D0\u30A4\u30B9\u3067\u3082\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3001\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3001\u524A\u9664\u3055\u308C\u306A\u304F\u306A\u308A\u307E\u3059\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30B3\u30D4\u30FC\u306F\u305D\u306E\u307E\u307E\u6B8B\u308A\u307E\u3059\u3002\u4ECA\u3059\u3050\u524A\u9664\u3055\u308C\u308B\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
"m.excludedFile": "{path} \u3092\u540C\u671F\u304B\u3089\u9664\u5916\u3057\u307E\u3057\u305F\u3002",
|
|
"m.included": "{path} \u3092\u518D\u3073\u540C\u671F\u306B\u542B\u3081\u307E\u3057\u305F\u3002",
|
|
"m.includeImpossible": "{path} \u306F\u9664\u5916\u30D1\u30BF\u30FC\u30F3\u4EE5\u5916\u306E\u7406\u7531\uFF08\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306E\u540C\u671F\u7BC4\u56F2\u3001\u96A0\u3057\u30D5\u30A1\u30A4\u30EB\u3001\u8A2D\u5B9A\u30D5\u30A9\u30EB\u30C0\u3001\u307E\u305F\u306F sync: false\uFF09\u3067\u5BFE\u8C61\u5916\u306E\u305F\u3081\u3001\u3053\u3053\u304B\u3089\u306F\u542B\u3081\u3089\u308C\u307E\u305B\u3093\u3002",
|
|
"ex.save": "\u4FDD\u5B58",
|
|
"ex.saved": "\u9664\u5916\u30D1\u30BF\u30FC\u30F3\u3092\u4FDD\u5B58\u3057\u307E\u3057\u305F\u3002",
|
|
"m.closeSyncing": "\u9589\u3058\u308B\u524D\u306B\u540C\u671F\u3057\u3066\u3044\u307E\u3059\u2026",
|
|
"m.closeFailed": "\u540C\u671F\u304C\u5B8C\u4E86\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001Obsidian \u306F\u958B\u3044\u305F\u307E\u307E\u3067\u3059\uFF1A{error}",
|
|
"m.closeNotSynced": "\u540C\u671F\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\uFF08\u30AA\u30D5\u30E9\u30A4\u30F3\u3001\u4E00\u6642\u505C\u6B62\u4E2D\u3001\u307E\u305F\u306F\u672A\u8A2D\u5B9A\uFF09\u3001Obsidian \u306F\u958B\u3044\u305F\u307E\u307E\u3067\u3059\u3002",
|
|
"m.syncFileErrors": "{count} \u4EF6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u540C\u671F\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u6700\u521D: {first}\uFF09",
|
|
"m.closeIncomplete": "\u3059\u3079\u3066\u306F\u540C\u671F\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001Obsidian \u306F\u958B\u3044\u305F\u307E\u307E\u3067\u3059:\n{reasons}",
|
|
"x.excluded": "\u540C\u671F\u3055\u308C\u307E\u305B\u3093",
|
|
"skip.frontmatterPending": "Obsidian \u304C\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u8AAD\u307F\u8FBC\u3080\u306E\u3092\u5F85\u3063\u3066\u3044\u307E\u3059\uFF08sync: false \u306E\u78BA\u8A8D\uFF09",
|
|
"s.commitMsgAuto": "\u81EA\u52D5\u540C\u671F\u306E\u30B3\u30DF\u30C3\u30C8\u30E1\u30C3\u30BB\u30FC\u30B8",
|
|
"s.commitMsgAutoDesc": "\u540C\u671F\u304C\u81EA\u52D5\u3067\u59CB\u307E\u308B\u3068\u304D\uFF08\u30BF\u30A4\u30DE\u30FC\u3001\u7DE8\u96C6\u3001\u8D77\u52D5\u3001\u30A2\u30D7\u30EA\u3078\u306E\u5FA9\u5E30\uFF09\u306B\u4F7F\u3044\u307E\u3059\u3002\u7A7A\u6B04\u306A\u3089\u4E0A\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u4F7F\u3044\u307E\u3059\u3002",
|
|
"s.commitPreview": "\u30D7\u30EC\u30D3\u30E5\u30FC\uFF1A{msg}",
|
|
"s.repoSubdir": "\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D5\u30A9\u30EB\u30C0",
|
|
"s.repoSubdirDesc": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u3092\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EB\u30FC\u30C8\u3067\u306F\u306A\u304F\u30D5\u30A9\u30EB\u30C0\uFF08\u4F8B\uFF1Avaults/personal\uFF09\u306B\u7F6E\u304D\u307E\u3059\u3002\u305D\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u5916\u306B\u3042\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u3001\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3001\u5909\u66F4\u3001\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3002\u5909\u66F4\u3059\u308B\u3068\u3001\u4F55\u3082\u524A\u9664\u3057\u306A\u3044\u65B0\u3057\u3044\u6BD4\u8F03\u304B\u3089\u59CB\u307E\u308A\u307E\u3059\u3002",
|
|
"s.subdirChangeTitle": "\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u5909\u66F4\u3057\u307E\u3059\u304B\uFF1F",
|
|
"s.subdirChangeBody": "\u6B21\u56DE\u306E\u540C\u671F\u3067\u306F\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u3092 {folder} \u3068\u4E00\u304B\u3089\u6BD4\u8F03\u3057\u307E\u3059\u3002\u4F55\u3082\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u304C\u3001\u305D\u3053\u306B\u3059\u3067\u306B\u3042\u308B\u30D5\u30A1\u30A4\u30EB\u306F\u3053\u306E\u4FDD\u7BA1\u5EAB\u306B\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3055\u308C\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u305D\u3053\u306B\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3059\u3002",
|
|
"s.subdirRoot": "\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EB\u30FC\u30C8",
|
|
"s.subdirHasFiles": "\u305D\u306E\u5834\u6240\u306B\u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306B\u3059\u3067\u306B {count} \u4EF6\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u3059\u3002\u5225\u306E\u4FDD\u7BA1\u5EAB\u306E\u3082\u306E\u3067\u3042\u308C\u3070\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u3068\u6DF7\u3056\u308A\u307E\u3059\u3002\u5225\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u9078\u3093\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
"s.subdirMaybeFiles": "\u305D\u306E\u5834\u6240\u306B\u3059\u3067\u306B\u5225\u306E\u4FDD\u7BA1\u5EAB\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308B\u5834\u5408\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u3068\u6DF7\u3056\u308A\u307E\u3059\u3002",
|
|
"s.subdirChangeConfirm": "\u30D5\u30A9\u30EB\u30C0\u3092\u5909\u66F4",
|
|
"s.frontmatter": "\u30D7\u30ED\u30D1\u30C6\u30A3\u306E sync: false \u306B\u5F93\u3046",
|
|
"s.frontmatterDesc": "\u30D7\u30ED\u30D1\u30C6\u30A3\u306B sync: false \u304C\u3042\u308B\u30CE\u30FC\u30C8\u306F\u3053\u306E\u30C7\u30D0\u30A4\u30B9\u306B\u6B8B\u308A\u307E\u3059\u3002\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3055\u308C\u308B\u3053\u3068\u306F\u306A\u304F\u3001\u3059\u3067\u306B\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u3042\u308B\u30B3\u30D4\u30FC\u306F\u305D\u306E\u307E\u307E\u6B8B\u308A\u307E\u3059\u3002",
|
|
"s.statusCountdown": "\u6B21\u56DE\u306E\u540C\u671F\u3092\u30B9\u30C6\u30FC\u30BF\u30B9\u30D0\u30FC\u306B\u8868\u793A",
|
|
"s.statusCountdownDesc": "\u6B21\u306B\u4E88\u5B9A\u3055\u308C\u3066\u3044\u308B\u540C\u671F\u307E\u3067\u306E\u6642\u9593\uFF08\u4F8B\uFF1A\u300C\u3042\u3068 4 \u5206\u300D\uFF09\u3002",
|
|
"s.statusBranch": "\u30D6\u30E9\u30F3\u30C1\u3092\u30B9\u30C6\u30FC\u30BF\u30B9\u30D0\u30FC\u306B\u8868\u793A",
|
|
"s.statusBranchDesc": "\u3053\u306E\u4FDD\u7BA1\u5EAB\u304C\u540C\u671F\u3059\u308B\u30D6\u30E9\u30F3\u30C1\u3002",
|
|
"sb.next": "\u3042\u3068 {n} \u5206",
|
|
"sb.soon": "1 \u5206\u4EE5\u5185",
|
|
"sb.nextTip": "\u6B21\u306B\u4E88\u5B9A\u3055\u308C\u3066\u3044\u308B\u540C\u671F",
|
|
"sb.branchTip": "\u30D6\u30E9\u30F3\u30C1\uFF1A{branch}",
|
|
"w.subdir": "\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306E\u30D5\u30A9\u30EB\u30C0\uFF08\u4EFB\u610F\uFF09",
|
|
"w.subdirDesc": "\u7A7A\u6B04\u306A\u3089\u30EA\u30DD\u30B8\u30C8\u30EA\u5168\u4F53\u3092\u4F7F\u3044\u307E\u3059\u3002\u8907\u6570\u306E\u4FDD\u7BA1\u5EAB\u3067 1 \u3064\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5171\u6709\u3059\u308B\u5834\u5408\u306A\u3069\u306B\u3001\u3053\u306E\u4FDD\u7BA1\u5EAB\u3092 1 \u3064\u306E\u30D5\u30A9\u30EB\u30C0\u306B\u7F6E\u304F\u3088\u3046\u6307\u5B9A\u3057\u307E\u3059\u3002"
|
|
};
|
|
|
|
// src/locales/ko.ts
|
|
var ko = {
|
|
// commands
|
|
"cmd.sync": "\uC9C0\uAE08 \uB3D9\uAE30\uD654",
|
|
"cmd.review": "\uBCC0\uACBD \uC0AC\uD56D \uAC80\uD1A0 \uD6C4 \uB3D9\uAE30\uD654",
|
|
"cmd.status": "\uB3D9\uAE30\uD654 \uC0C1\uD0DC \uD328\uB110 \uC5F4\uAE30",
|
|
"cmd.pull": "\uAC00\uC838\uC624\uAE30\uB9CC (\uBCC0\uACBD \uC0AC\uD56D \uB2E4\uC6B4\uB85C\uB4DC)",
|
|
"cmd.push": "\uBC31\uC5C5\uB9CC (\uBCC0\uACBD \uC0AC\uD56D \uC5C5\uB85C\uB4DC)",
|
|
"cmd.preview": "\uB3D9\uAE30\uD654 \uBBF8\uB9AC \uBCF4\uAE30 (\uC2DC\uD5D8 \uC2E4\uD589)",
|
|
"cmd.timeline": "\uD0C0\uC784\uB77C\uC778: \uBCF4\uAD00\uC18C \uB610\uB294 \uD3F4\uB354\uB97C \uC774\uC804 \uC2DC\uC810\uC73C\uB85C \uBCF5\uC6D0",
|
|
"cmd.reset": "\uC774 \uAE30\uAE30\uB97C \uC800\uC7A5\uC18C\uC640 \uC77C\uCE58\uC2DC\uD0A4\uAE30 (\uB85C\uCEEC \uBCC0\uACBD \uC0AC\uD56D \uD3D0\uAE30)",
|
|
"cmd.snapshot": "\uBC31\uC5C5 \uC2A4\uB0C5\uC0F7 \uB9CC\uB4E4\uAE30",
|
|
"cmd.wizard": "\uC124\uC815 \uB9C8\uBC95\uC0AC \uC2E4\uD589",
|
|
"cmd.encryption": "\uC885\uB2E8 \uAC04 \uC554\uD638\uD654: \uCF1C\uAE30 \uB610\uB294 \uC7A0\uAE08 \uD574\uC81C",
|
|
"cmd.freeSpace": "\uC774 \uAE30\uAE30\uC758 \uACF5\uAC04 \uD655\uBCF4",
|
|
"cmd.onDemand": "\uC774 \uAE30\uAE30\uC5D0 \uC5C6\uB294 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC",
|
|
"cmd.log": "\uB3D9\uAE30\uD654 \uB85C\uADF8 \uBCF4\uAE30",
|
|
"cmd.history": "\uD604\uC7AC \uD30C\uC77C\uC758 \uAE30\uB85D \uBCF4\uAE30",
|
|
"cmd.compare": "\uD604\uC7AC \uD30C\uC77C\uC744 \uC800\uC7A5\uC18C\uC640 \uBE44\uAD50",
|
|
"cmd.recover": "\uC0AD\uC81C\uB41C \uD30C\uC77C \uBCF5\uAD6C",
|
|
"cmd.openRepo": "\uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C \uC800\uC7A5\uC18C \uC5F4\uAE30",
|
|
// ribbon / menus
|
|
"ribbon.sync": "\uBCF4\uAD00\uC18C \uB3D9\uAE30\uD654",
|
|
"ribbon.status": "\uB3D9\uAE30\uD654 \uC0C1\uD0DC",
|
|
"menu.history": "\uBC84\uC804 \uAE30\uB85D",
|
|
"menu.compare": "\uC800\uC7A5\uC18C\uC640 \uBE44\uAD50",
|
|
// status panel
|
|
"health.title": "\uB3D9\uAE30\uD654 \uC0C1\uD0DC",
|
|
"health.upToDate": "\uCD5C\uC2E0 \uC0C1\uD0DC",
|
|
"health.syncing": "\uB3D9\uAE30\uD654 \uC911\u2026",
|
|
"health.failed": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC2E4\uD328",
|
|
"health.attention": "\uD655\uC778 \uD544\uC694",
|
|
"health.notSynced": "\uC544\uC9C1 \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC74C",
|
|
"health.notSetUp": "\uC124\uC815\uB418\uC9C0 \uC54A\uC74C",
|
|
"health.syncNow": "\uC9C0\uAE08 \uB3D9\uAE30\uD654",
|
|
"health.review": "\uAC80\uD1A0\u2026",
|
|
"health.wizard": "\uC124\uC815 \uB9C8\uBC95\uC0AC \uC2E4\uD589",
|
|
"health.pending": "\uB300\uAE30 \uC911",
|
|
"health.editedN": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uC774 \uAE30\uAE30\uC5D0\uC11C \uD3B8\uC9D1\uB41C \uD30C\uC77C {n}\uAC1C",
|
|
"health.noEdits": "\uB300\uAE30 \uC911\uC778 \uB85C\uCEEC \uD3B8\uC9D1 \uC5C6\uC74C",
|
|
"health.remoteAhead": "\uC800\uC7A5\uC18C\uC5D0 \uB2E4\uB978 \uAE30\uAE30\uC758 \uC0C8 \uBCC0\uACBD \uC0AC\uD56D\uC774 \uC788\uC2B5\uB2C8\uB2E4",
|
|
"health.remoteSame": "\uC800\uC7A5\uC18C\uC5D0 \uC0C8\uB85C\uC6B4 \uB0B4\uC6A9 \uC5C6\uC74C",
|
|
"health.checking": "\uC800\uC7A5\uC18C \uD655\uC778 \uC911\u2026",
|
|
"health.nextSync": "\uB2E4\uC74C \uC608\uC57D \uB3D9\uAE30\uD654 {time}",
|
|
"health.noSchedule": "\uC608\uC57D\uB41C \uC8FC\uAE30\uC801 \uB3D9\uAE30\uD654 \uC5C6\uC74C",
|
|
"health.conflicts": "\uCDA9\uB3CC \uC0AC\uBCF8 ({n})",
|
|
"health.conflictsHint": "\uB450 \uBC84\uC804\uC744 \uBAA8\uB450 \uBCF4\uAD00\uD588\uC2B5\uB2C8\uB2E4. \uBE44\uAD50\uD574\uC11C \uD544\uC694\uD55C \uB0B4\uC6A9\uC744 \uB0A8\uAE34 \uB2E4\uC74C \uC0AC\uBCF8\uC744 \uC0AD\uC81C\uD558\uC138\uC694.",
|
|
"health.compare": "\uBE44\uAD50",
|
|
"health.open": "\uC5F4\uAE30",
|
|
"health.deleteCopy": "\uC0AC\uBCF8 \uC0AD\uC81C",
|
|
"health.skipped": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654\uC5D0\uC11C \uAC74\uB108\uB700 ({n})",
|
|
"health.devices": "\uAE30\uAE30",
|
|
"health.thisDevice": "(\uC774 \uAE30\uAE30)",
|
|
"health.lastSynced": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 {ago}",
|
|
"health.shared": "\uACF5\uC720 \uD3F4\uB354",
|
|
"health.tools": "\uB3C4\uAD6C",
|
|
"health.timeline": "\uD0C0\uC784\uB77C\uC778 \uBC0F \uBCF5\uC6D0",
|
|
"health.snapshot": "\uC9C0\uAE08 \uC2A4\uB0C5\uC0F7 \uB9CC\uB4E4\uAE30",
|
|
"health.reset": "\uC774 \uAE30\uAE30\uB97C \uC800\uC7A5\uC18C\uC640 \uC77C\uCE58\uC2DC\uD0A4\uAE30",
|
|
"health.freeSpace": "\uACF5\uAC04 \uD655\uBCF4",
|
|
"health.log": "\uB3D9\uAE30\uD654 \uB85C\uADF8",
|
|
"health.settings": "\uC124\uC815",
|
|
"health.openSettings": "\uC124\uC815 \uC5F4\uAE30",
|
|
"health.tryAgain": "\uB2E4\uC2DC \uC2DC\uB3C4",
|
|
"health.enterPassphrase": "\uC554\uD638\uBB38\uAD6C \uC785\uB825",
|
|
"health.encrypted": "\uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uB428",
|
|
// notices
|
|
"notice.upToDate": "\uBCF4\uAD00\uC18C\uAC00 \uCD5C\uC2E0 \uC0C1\uD0DC\uC785\uB2C8\uB2E4.",
|
|
"notice.synced": "\uB3D9\uAE30\uD654: {summary}",
|
|
"notice.failed": "\uB3D9\uAE30\uD654 \uC2E4\uD328: {error}",
|
|
"notice.errors": "\uB3D9\uAE30\uD654\uAC00 \uB05D\uB0AC\uC9C0\uB9CC \uC624\uB958\uAC00 {n}\uAC1C \uC788\uC2B5\uB2C8\uB2E4. \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 \uB3D9\uAE30\uD654 \uC0C1\uD0DC \uD328\uB110\uC5D0\uC11C \uD655\uC778\uD558\uC138\uC694.",
|
|
"notice.conflicts": "\uB3D9\uAE30\uD654: \uCDA9\uB3CC {n}\uAC1C. \uB450 \uBC84\uC804\uC744 \uBAA8\uB450 \uBCF4\uAD00\uD588\uC2B5\uB2C8\uB2E4. \uB3D9\uAE30\uD654 \uC0C1\uD0DC \uD328\uB110\uC5D0\uC11C \uBE44\uAD50\uD558\uC138\uC694.",
|
|
"notice.busy": "\uB3D9\uAE30\uD654\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
|
|
// time
|
|
"time.never": "\uC5C6\uC74C",
|
|
"time.now": "\uBC29\uAE08",
|
|
"time.min": "{n}\uBD84 \uC804",
|
|
"time.hour": "{n}\uC2DC\uAC04 \uC804",
|
|
"time.day": "{n}\uC77C \uC804",
|
|
// settings
|
|
"s.wizard": "\uC124\uC815 \uB9C8\uBC95\uC0AC",
|
|
"s.wizardDesc": "\uC5F0\uACB0\uD558\uACE0, \uC800\uC7A5\uC18C\uB97C \uC120\uD0DD\uD558\uAC70\uB098 \uB9CC\uB4E4\uACE0, \uCCAB \uB3D9\uAE30\uD654\uB97C \uB2E8\uACC4\uBCC4\uB85C \uC9C4\uD589\uD569\uB2C8\uB2E4.",
|
|
"s.wizardBtn": "\uC124\uC815 \uB9C8\uBC95\uC0AC \uC2E4\uD589",
|
|
"s.hConnection": "\uC5F0\uACB0",
|
|
"s.host": "Git \uD638\uC2A4\uD2B8",
|
|
"s.hostDesc": "GitHub \uC774\uC678\uC758 \uD638\uC2A4\uD2B8 \uC9C0\uC6D0\uC740 \uBCA0\uD0C0\uC785\uB2C8\uB2E4.",
|
|
"s.beta": "\uBCA0\uD0C0",
|
|
"s.token": "\uC561\uC138\uC2A4 \uD1A0\uD070",
|
|
"s.tokenDesc": "\uC774 \uAE30\uAE30\uC5D0\uB9CC \uC548\uC804\uD558\uAC8C \uC800\uC7A5\uB418\uBA70(Obsidian \uBCF4\uC548 \uC800\uC7A5\uC18C), \uB3D9\uAE30\uD654\uB418\uB294 \uC124\uC815\uC5D0\uB294 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uAE30\uAE30\uB9C8\uB2E4 \uD55C \uBC88\uC529 \uC785\uB825\uD558\uC138\uC694.",
|
|
"s.tokenPlaceholder": "\uD1A0\uD070 \uBD99\uC5EC\uB123\uAE30",
|
|
"s.owner": "\uC18C\uC720\uC790",
|
|
"s.ownerDesc": "\uC800\uC7A5\uC18C\uB97C \uC18C\uC720\uD55C \uC0AC\uC6A9\uC790 \uB610\uB294 \uC870\uC9C1\uC785\uB2C8\uB2E4.",
|
|
"s.ownerDescGitlab": "\uC0AC\uC6A9\uC790 \uB610\uB294 \uADF8\uB8F9 \uACBD\uB85C\uC785\uB2C8\uB2E4(\uD558\uC704 \uADF8\uB8F9 \uAC00\uB2A5, \uC608: team/notes).",
|
|
"s.ownerDescBitbucket": "\uC800\uC7A5\uC18C\uB97C \uC18C\uC720\uD55C \uC6CC\uD06C\uC2A4\uD398\uC774\uC2A4\uC785\uB2C8\uB2E4.",
|
|
"s.ownerPlaceholder": "\uC0AC\uC6A9\uC790 \uC774\uB984",
|
|
"s.repo": "\uC800\uC7A5\uC18C",
|
|
"s.repoDesc": "\uBE44\uACF5\uAC1C \uC800\uC7A5\uC18C\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"s.repoPlaceholder": "\uC800\uC7A5\uC18C \uC774\uB984",
|
|
"s.branch": "\uBE0C\uB79C\uCE58",
|
|
"s.check": "\uC124\uC815 \uD655\uC778",
|
|
"s.checkDesc": "\uD1A0\uD070\uACFC \uC800\uC7A5\uC18C\uB97C \uD14C\uC2A4\uD2B8\uD558\uAC70\uB098 \uC0C8 \uBE44\uACF5\uAC1C \uC800\uC7A5\uC18C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",
|
|
"s.test": "\uC5F0\uACB0 \uD14C\uC2A4\uD2B8",
|
|
"s.testNoRepo": "{user}(\uC73C)\uB85C \uB85C\uADF8\uC778\uD588\uC2B5\uB2C8\uB2E4. \uC774\uC81C \uC800\uC7A5\uC18C \uC774\uB984\uC744 \uC124\uC815\uD558\uC138\uC694.",
|
|
"s.testNotFound": "{user}(\uC73C)\uB85C \uB85C\uADF8\uC778\uD588\uC9C0\uB9CC {repo}\uC744(\uB97C) \uCC3E\uC744 \uC218 \uC5C6\uAC70\uB098 \uC811\uADFC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"s.testOkPrivate": "\uC815\uC0C1: {repo} (\uBE44\uACF5\uAC1C).",
|
|
"s.testOkPublic": "\uC815\uC0C1: {repo}. \uD558\uC9C0\uB9CC \uACF5\uAC1C \uC800\uC7A5\uC18C\uC785\uB2C8\uB2E4. \uBE44\uACF5\uAC1C\uB85C \uC804\uD658\uD558\uB294 \uAC83\uC744 \uACE0\uB824\uD558\uC138\uC694.",
|
|
"s.testFailed": "\uC5F0\uACB0 \uC2E4\uD328: {error}",
|
|
"s.createRepo": "\uBE44\uACF5\uAC1C \uC800\uC7A5\uC18C \uB9CC\uB4E4\uAE30",
|
|
"s.created": "{url} \uC0DD\uC131\uB428",
|
|
"s.createFailed": "\uC800\uC7A5\uC18C\uB97C \uB9CC\uB4E4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}. \uC77C\uBD80 \uD1A0\uD070\uC740 \uC774 \uC791\uC5C5\uC5D0 \uCD94\uAC00 \uAD8C\uD55C\uC774 \uD544\uC694\uD569\uB2C8\uB2E4. \uD638\uC2A4\uD2B8 \uC6F9\uC0AC\uC774\uD2B8\uC5D0\uC11C \uC9C1\uC811 \uB9CC\uB4E4 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"s.apiBase": "API \uAE30\uBCF8 URL",
|
|
"s.apiBaseDesc": "{hint}. \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"s.device": "\uAE30\uAE30 \uC774\uB984",
|
|
"s.deviceDesc": "\uCEE4\uBC0B \uBA54\uC2DC\uC9C0\uC640 \uCDA9\uB3CC \uD30C\uC77C \uC774\uB984\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"s.hBehaviour": "\uB3D9\uAE30\uD654 \uBC29\uC2DD",
|
|
"s.mode": "\uBAA8\uB4DC",
|
|
"s.modeDesc": "\uC591\uBC29\uD5A5 \uB3D9\uAE30\uD654, \uBC31\uC5C5\uB9CC(\uC5C5\uB85C\uB4DC\uB9CC \uD558\uACE0 \uB85C\uCEEC \uD30C\uC77C\uC740 \uC808\uB300 \uBCC0\uACBD\uD558\uC9C0 \uC54A\uC74C), \uB610\uB294 \uAC00\uC838\uC624\uAE30\uB9CC(\uC77D\uAE30 \uC804\uC6A9 \uC0AC\uBCF8) \uC911\uC5D0\uC11C \uC120\uD0DD\uD569\uB2C8\uB2E4.",
|
|
"s.modeSync": "\uC591\uBC29\uD5A5 \uB3D9\uAE30\uD654",
|
|
"s.modePush": "\uBC31\uC5C5\uB9CC (\uD478\uC2DC)",
|
|
"s.modePull": "\uAC00\uC838\uC624\uAE30\uB9CC (\uBBF8\uB7EC)",
|
|
"s.onStartup": "\uC2DC\uC791 \uC2DC \uB3D9\uAE30\uD654",
|
|
"s.onStartupDesc": "\uBCF4\uAD00\uC18C\uB97C \uC5F4 \uB54C \uAC00\uC838\uC624\uAE30\uC640 \uD478\uC2DC\uB97C \uC2E4\uD589\uD569\uB2C8\uB2E4.",
|
|
"s.onChange": "\uD3B8\uC9D1 \uD6C4 \uB3D9\uAE30\uD654",
|
|
"s.onChangeDesc": "\uD3B8\uC9D1\uC744 \uBA48\uCD94\uACE0 \uC7A0\uC2DC \uD6C4 \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
"s.delay": "\uD3B8\uC9D1 \uC9C0\uC5F0 \uC2DC\uAC04 (\uCD08)",
|
|
"s.delayDesc": "\uB9C8\uC9C0\uB9C9 \uD3B8\uC9D1 \uD6C4 \uB3D9\uAE30\uD654\uD558\uAE30\uAE4C\uC9C0 \uAE30\uB2E4\uB9AC\uB294 \uC2DC\uAC04\uC785\uB2C8\uB2E4.",
|
|
"s.interval": "\uC8FC\uAE30\uC801 \uB3D9\uAE30\uD654 (\uBD84)",
|
|
"s.intervalDesc": "0\uC73C\uB85C \uC124\uC815\uD558\uBA74 \uAEBC\uC9D1\uB2C8\uB2E4. \uC124\uC815 \uBC0F \uAD6C\uC131 \uD30C\uC77C\uC758 \uBCC0\uACBD \uC0AC\uD56D\uB3C4 \uAC10\uC9C0\uD569\uB2C8\uB2E4.",
|
|
"s.onResume": "\uC571\uC73C\uB85C \uB3CC\uC544\uC624\uBA74 \uB3D9\uAE30\uD654",
|
|
"s.onResumeDesc": "\uBAA8\uBC14\uC77C\uC5D0\uC11C Obsidian\uC73C\uB85C \uB2E4\uC2DC \uC804\uD658\uD558\uBA74 \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
"s.onBackground": "\uC571\uC774 \uBC31\uADF8\uB77C\uC6B4\uB4DC\uB85C \uAC00\uBA74 \uB3D9\uAE30\uD654",
|
|
"s.onBackgroundDesc": "Obsidian\uC744 \uBC97\uC5B4\uB098\uAC70\uB098(\uBAA8\uBC14\uC77C) \uCC3D\uC744 \uC228\uAE30\uBA74 \uAC00\uB2A5\uD55C \uBC94\uC704\uC5D0\uC11C \uD478\uC2DC\uD569\uB2C8\uB2E4.",
|
|
"s.hScope": "\uB3D9\uAE30\uD654 \uB300\uC0C1",
|
|
"s.configDir": "\uC124\uC815 \uD3F4\uB354 \uB3D9\uAE30\uD654 ({dir})",
|
|
"s.configDirDesc": "\uD14C\uB9C8, \uC2A4\uB2C8\uD3AB, \uB2E8\uCD95\uD0A4, \uD50C\uB7EC\uADF8\uC778\uACFC \uADF8 \uC124\uC815\uC785\uB2C8\uB2E4. \uC791\uC5C5 \uACF5\uAC04 \uB808\uC774\uC544\uC6C3\uC740 \uAE30\uBCF8\uC801\uC73C\uB85C \uC81C\uC678\uB429\uB2C8\uB2E4.",
|
|
"s.exclude": "\uC81C\uC678 \uD328\uD134",
|
|
"s.excludeDesc": "gitignore \uD615\uC2DD, \uD55C \uC904\uC5D0 \uD558\uB098\uC529. {config}\uB294 \uC124\uC815 \uD3F4\uB354\uB97C \uB73B\uD569\uB2C8\uB2E4. \uC81C\uC678\uB41C \uD30C\uC77C\uC740 \uC5C5\uB85C\uB4DC, \uB2E4\uC6B4\uB85C\uB4DC, \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"s.maxSize": "\uCD5C\uB300 \uD30C\uC77C \uD06C\uAE30 (MB)",
|
|
"s.maxSizeDesc": "\uB354 \uD070 \uD30C\uC77C\uC740 \uAC74\uB108\uB701\uB2C8\uB2E4(\uCD5C\uB300 2000MB). \uB300\uC6A9\uB7C9 \uD30C\uC77C \uC800\uC7A5\uC18C \uC5C6\uC774 GitHub\uB97C \uC4F0\uBA74 GitHub\uAC00 \uD5C8\uC6A9\uD558\uB294 \uCD5C\uB300\uCE58\uC778 100MB\uAC00 \uD55C\uB3C4\uC785\uB2C8\uB2E4.",
|
|
"s.delayNow": "\uD604\uC7AC: {n}\uCD08.",
|
|
"s.resetConfirm": "\uB2E4\uC74C \uB3D9\uAE30\uD654\uC5D0\uC11C \uBAA8\uB4E0 \uD30C\uC77C\uC744 \uC800\uC7A5\uC18C\uC640 \uBE44\uAD50\uD569\uB2C8\uB2E4. \uC544\uBB34\uAC83\uB3C4 \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC73C\uBA70, \uB0B4\uC6A9\uC774 \uB2E4\uB978 \uD30C\uC77C\uC740 \uB450 \uBC84\uC804 \uBAA8\uB450 \uBCF4\uAD00\uB418\uBBC0\uB85C \uC815\uB9AC\uD560 \uCDA9\uB3CC \uC0AC\uBCF8\uC774 \uC0DD\uAE38 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.restoreOverBody": '\uC774 \uAE30\uAE30\uC758 {path}\uC774(\uAC00) {date} \uBC84\uC804\uACFC \uB2E4\uB985\uB2C8\uB2E4. \uBCF5\uC6D0\uD558\uBA74 \uD604\uC7AC \uB0B4\uC6A9\uC774 \uBC14\uB01D\uB2C8\uB2E4. \uB458 \uB2E4 \uC720\uC9C0\uD558\uB824\uBA74 "\uC0AC\uBCF8\uC73C\uB85C \uBCF5\uC6D0"\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.',
|
|
"s.lfs": "\uB300\uC6A9\uB7C9 \uD30C\uC77C \uC800\uC7A5\uC18C \uAE30\uC900 \uD06C\uAE30 (MB)",
|
|
"s.lfsDesc": "\uC774 \uD06C\uAE30 \uC774\uC0C1\uC758 \uD30C\uC77C\uC740 \uC800\uC7A5\uC18C \uB300\uC2E0 \uD638\uC2A4\uD2B8\uC758 \uB300\uC6A9\uB7C9 \uD30C\uC77C \uC800\uC7A5\uC18C\uC5D0 \uBCF4\uAD00\uB418\uC5B4 \uC800\uC7A5\uC18C\uB97C \uC791\uACE0 \uBE60\uB974\uAC8C \uC720\uC9C0\uD569\uB2C8\uB2E4. 0\uC73C\uB85C \uC124\uC815\uD558\uBA74 \uAEBC\uC9D1\uB2C8\uB2E4. \uBB34\uB8CC \uC694\uAE08\uC81C\uB294 \uC81C\uD55C\uC774 \uC788\uC73C\uBBC0\uB85C \uD638\uC2A4\uD2B8\uC758 \uC800\uC7A5 \uC6A9\uB7C9\uC744 \uD655\uC778\uD558\uC138\uC694. \uCF1C\uC838 \uC788\uC73C\uBA74 \uC704\uC758 \uCD5C\uB300 \uD30C\uC77C \uD06C\uAE30\uB97C 2000MB\uAE4C\uC9C0 \uB298\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"s.hEncryption": "\uC885\uB2E8 \uAC04 \uC554\uD638\uD654",
|
|
"s.encOn": "\uC554\uD638\uD654 \uCF1C\uC9D0 (\uC774 \uAE30\uAE30\uC5D0\uC11C \uC7A0\uAE08 \uD574\uC81C\uB428)",
|
|
"s.encOnDesc": "\uB178\uD2B8, \uCCA8\uBD80 \uD30C\uC77C, \uD30C\uC77C \uC774\uB984\uC774 \uC5C5\uB85C\uB4DC \uC804\uC5D0 \uC554\uD638\uD654\uB429\uB2C8\uB2E4. \uB2E4\uB978 \uAE30\uAE30\uC5D0\uB3C4 \uAC19\uC740 \uC554\uD638\uBB38\uAD6C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4.",
|
|
"s.encRemovePlain": "\uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC740 \uC0AC\uBCF8 \uC81C\uAC70\u2026",
|
|
"s.encLock": "\uC774 \uAE30\uAE30 \uC7A0\uADF8\uAE30",
|
|
"s.encOff": "\uBCF4\uAD00\uC18C \uC554\uD638\uD654",
|
|
"s.encOffDesc": "\uC554\uD638\uBB38\uAD6C\uB97C \uC124\uC815\uD558\uBA74 \uC800\uC7A5\uC18C \uD638\uC2A4\uD2B8\uB294 \uC77D\uC744 \uC218 \uC5C6\uB294 \uB370\uC774\uD130\uB9CC \uBCF4\uAC8C \uB429\uB2C8\uB2E4. \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uC774\uBBF8 \uC554\uD638\uD654\uD55C \uC800\uC7A5\uC18C\uB97C \uC7A0\uAE08 \uD574\uC81C\uD560 \uB54C\uB3C4 \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"s.encTurnOn": "\uCF1C\uAE30 \uB610\uB294 \uC7A0\uAE08 \uD574\uC81C\u2026",
|
|
"s.hShared": "\uACF5\uC720 \uD3F4\uB354",
|
|
"s.sharedIntro": "\uD3F4\uB354 \uD558\uB098(\uC608: \uD300 \uD3F4\uB354)\uB97C \uBCC4\uB3C4\uC758 \uC800\uC7A5\uC18C\uC640 \uB3D9\uAE30\uD654\uD558\uACE0, \uB098\uBA38\uC9C0 \uBCF4\uAD00\uC18C\uB294 \uBE44\uACF5\uAC1C\uB85C \uC720\uC9C0\uD569\uB2C8\uB2E4.",
|
|
"s.sharedRowDesc": "{host}, \uBE0C\uB79C\uCE58 {branch}",
|
|
"s.sharedRemove": "\uC774 \uD3F4\uB354\uC758 \uBCC4\uB3C4 \uB3D9\uAE30\uD654 \uC911\uC9C0",
|
|
"s.sharedAdd": "\uACF5\uC720 \uD3F4\uB354 \uCD94\uAC00",
|
|
"s.sharedAddBtn": "\uACF5\uC720 \uD3F4\uB354 \uCD94\uAC00\u2026",
|
|
"s.hDevice": "\uC774 \uAE30\uAE30 \uC804\uC6A9",
|
|
"s.deviceIntro": "\uC774 \uC124\uC815\uC740 \uC774 \uAE30\uAE30\uC5D0 \uC800\uC7A5\uB418\uBA70 \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC73C\uBBC0\uB85C, \uD734\uB300\uD3F0\uC740 \uB178\uD2B8\uBD81\uBCF4\uB2E4 \uC801\uAC8C \uB3D9\uAE30\uD654\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC758 \uBC94\uC704 \uBC16\uC5D0 \uC788\uB294 \uD30C\uC77C\uC740 \uC5EC\uAE30\uC11C \uC5C5\uB85C\uB4DC, \uB2E4\uC6B4\uB85C\uB4DC, \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC73C\uBA70 \uC800\uC7A5\uC18C\uC5D0 \uC548\uC804\uD558\uAC8C \uB0A8\uC544 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"s.include": "\uC774 \uD3F4\uB354\uB9CC \uB3D9\uAE30\uD654",
|
|
"s.includeDesc": "\uD55C \uC904\uC5D0 \uD3F4\uB354\uB098 \uD328\uD134 \uD558\uB098\uC529, \uC608: daily/ \uB610\uB294 projects/. \uBE44\uC6CC \uB450\uBA74 \uBAA8\uB450 \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uCD94\uAC00\uB85C \uC81C\uC678",
|
|
"s.deviceExcludeDesc": "gitignore \uD615\uC2DD, \uD55C \uC904\uC5D0 \uD558\uB098\uC529, \uC608: attachments/ \uB610\uB294 *.mp4",
|
|
"s.maxDownload": "\uC774 \uD06C\uAE30(MB)\uBCF4\uB2E4 \uD070 \uD30C\uC77C\uC740 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC9C0 \uC54A\uC74C",
|
|
"s.maxDownloadDesc": "\uD070 \uCCA8\uBD80 \uD30C\uC77C\uC740 \uC800\uC7A5\uC18C\uC5D0 \uB0A8\uC544 \uC788\uC73C\uBA70 \uD544\uC694\uD560 \uB54C \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. 0 = \uC81C\uD55C \uC5C6\uC74C. \uD734\uB300\uD3F0 \uAE30\uBCF8\uAC12\uC740 25\uC785\uB2C8\uB2E4.",
|
|
"s.onDemand": "\uD544\uC694 \uC2DC \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uB294 \uD30C\uC77C",
|
|
"s.onDemandDesc": "\uD070 \uD30C\uC77C {n}\uAC1C\uAC00 \uC800\uC7A5\uC18C\uC5D0 \uC788\uC9C0\uB9CC \uC774 \uAE30\uAE30\uC5D0\uB294 \uC5C6\uC2B5\uB2C8\uB2E4. \uD30C\uC77C {pinned}\uAC1C\uB294 \uD544\uC694 \uC2DC \uB2E4\uC6B4\uB85C\uB4DC\uB418\uC5C8\uC73C\uBA70 \uACC4\uC18D \uB3D9\uAE30\uD654\uB429\uB2C8\uB2E4.",
|
|
"s.onDemandBrowse": "\uCC3E\uC544\uBCF4\uAE30 \uBC0F \uB2E4\uC6B4\uB85C\uB4DC\u2026",
|
|
"s.onDemandForget": "\uD544\uC694 \uC2DC \uB2E4\uC6B4\uB85C\uB4DC \uBAA9\uB85D \uC9C0\uC6B0\uAE30",
|
|
"s.onDemandForgotten": "\uD544\uC694 \uC2DC \uB2E4\uC6B4\uB85C\uB4DC \uBAA9\uB85D\uC744 \uC9C0\uC6E0\uC2B5\uB2C8\uB2E4. \uB85C\uCEEC \uC0AC\uBCF8\uC744 \uC81C\uAC70\uD558\uB824\uBA74 \uACF5\uAC04 \uD655\uBCF4\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"s.freeSpace": "\uACF5\uAC04 \uD655\uBCF4",
|
|
"s.freeSpaceDesc": "\uC774 \uAE30\uAE30\uAC00 \uB3D9\uAE30\uD654\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C\uC758 \uB85C\uCEEC \uC0AC\uBCF8\uC744 \uC81C\uAC70\uD569\uB2C8\uB2E4. \uB2E8, \uC800\uC7A5\uC18C\uC758 \uC0AC\uBCF8\uACFC \uB3D9\uC77C\uD55C \uACBD\uC6B0\uC5D0\uB9CC \uC81C\uAC70\uD569\uB2C8\uB2E4.",
|
|
"s.freeSpaceBtn": "\uACF5\uAC04 \uD655\uBCF4\u2026",
|
|
"s.hConflicts": "\uCDA9\uB3CC \uBC0F \uC548\uC804",
|
|
"s.strategy": "\uC591\uCABD\uC5D0\uC11C \uD30C\uC77C\uC774 \uBCC0\uACBD\uB41C \uACBD\uC6B0",
|
|
"s.strategyAuto": "\uC790\uB3D9 \uBCD1\uD569(\uAD8C\uC7A5)",
|
|
"s.strategyMarkers": "\uBCD1\uD569\uD558\uACE0, \uACB9\uCE58\uB294 \uBD80\uBD84\uC744 <<<<<<< \uD45C\uC2DC\uB85C \uAD6C\uBD84",
|
|
"s.strategyBoth": "\uB458 \uB2E4 \uBCF4\uAD00 (\uB0B4 \uBC84\uC804\uC744 \uC0AC\uBCF8\uC73C\uB85C \uC800\uC7A5)",
|
|
"s.strategyAsk": "\uB9E4\uBC88 \uBB3B\uAE30",
|
|
"s.strategyLocal": "\uC774 \uAE30\uAE30 \uC6B0\uC120",
|
|
"s.strategyRemote": "{host} \uC6B0\uC120",
|
|
"s.review": "\uC218\uB3D9 \uB3D9\uAE30\uD654 \uC804 \uAC80\uD1A0",
|
|
"s.reviewDesc": "\uB3D9\uAE30\uD654\uB97C \uC9C1\uC811 \uC2DC\uC791\uD558\uBA74 \uBA3C\uC800 \uB300\uAE30 \uC911\uC778 \uBAA8\uB4E0 \uBCC0\uACBD \uC0AC\uD56D\uC744 \uCC28\uC774\uC810\uACFC \uCCB4\uD06C\uBC15\uC2A4\uB85C \uBCF4\uC5EC \uC90D\uB2C8\uB2E4. \uC790\uB3D9 \uB3D9\uAE30\uD654\uC5D0\uB294 \uC601\uD5A5\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"s.eol": "\uC904 \uB05D \uBB38\uC790\uB9CC \uBC14\uB010 \uBCC0\uACBD \uBB34\uC2DC",
|
|
"s.eolDesc": "\uC904 \uB05D \uD615\uC2DD\uB9CC \uBC14\uB010 \uD30C\uC77C\uC740 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC740 \uAC83\uC73C\uB85C \uCC98\uB9AC\uD558\uBBC0\uB85C, \uB2E4\uB978 \uC6B4\uC601 \uCCB4\uC81C\uC758 \uD3B8\uC9D1\uAE30 \uB54C\uBB38\uC5D0 \uBD88\uD544\uC694\uD55C \uC5C5\uB85C\uB4DC\uB098 \uCDA9\uB3CC\uC774 \uC0DD\uAE30\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"s.guard": "\uC0AD\uC81C \uBCF4\uD638",
|
|
"s.guardDesc": "\uB3D9\uAE30\uD654\uAC00 \uD55C \uBC88\uC5D0 \uB9CE\uC740 \uD30C\uC77C\uC744 \uC0AD\uC81C\uD558\uB824 \uD558\uBA74 \uBA3C\uC800 \uD655\uC778\uD569\uB2C8\uB2E4.",
|
|
"s.guardThreshold": "\uC0AD\uC81C \uBCF4\uD638 \uAE30\uC900",
|
|
"s.guardThresholdDesc": "\uC774 \uAC1C\uC218(\uC67C\uCABD) \uB610\uB294 \uBCF4\uAD00\uC18C\uC758 \uC774 \uBE44\uC728(\uC624\uB978\uCABD) \uC911 \uB354 \uD070 \uAC12\uBCF4\uB2E4 \uB9CE\uC740 \uD30C\uC77C\uC744 \uC0AD\uC81C\uD558\uB824 \uD558\uBA74 \uD655\uC778\uD569\uB2C8\uB2E4.",
|
|
"s.hBackup": "\uBC31\uC5C5",
|
|
"s.snapshot": "\uC77C\uC77C \uC2A4\uB0C5\uC0F7",
|
|
"s.snapshotDesc": "\uD558\uB8E8\uC5D0 \uD55C \uBC88 \uC800\uC7A5\uC18C\uC758 \uD604\uC7AC \uC0C1\uD0DC\uC5D0 \uB0A0\uC9DC\uAC00 \uBD99\uC740 \uC2A4\uB0C5\uC0F7 \uD0DC\uADF8\uB97C \uB2EC\uC544, \uC5B8\uC81C\uB4E0 \uADF8 \uC0C1\uD0DC\uB85C \uB418\uB3CC\uC544\uAC08 \uC218 \uC788\uAC8C \uD569\uB2C8\uB2E4.",
|
|
"s.hAdvanced": "\uACE0\uAE09",
|
|
"s.commitMsg": "\uCEE4\uBC0B \uBA54\uC2DC\uC9C0",
|
|
"s.commitMsgDesc": "\uBCC0\uC218: {{device}}, {{summary}}, {{date}}, {{count}}, {{files}}, {{trigger}}, {{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "\uC804\uCCB4 \uC7AC\uAC80\uC0AC \uC8FC\uAE30 (\uBD84)",
|
|
"s.fullScanDesc": "\uC804\uCCB4 \uC7AC\uAC80\uC0AC \uC0AC\uC774\uC5D0\uB294 Obsidian\uC774 \uD3B8\uC9D1\uB410\uB2E4\uACE0 \uC54C\uB9B0 \uD30C\uC77C\uB9CC \uB2E4\uC2DC \uD655\uC778\uD558\uACE0, \uC124\uC815 \uD3F4\uB354\uB294 \uCD5C\uB300 5\uBD84\uC5D0 \uD55C \uBC88 \uB514\uC2A4\uD06C\uC5D0\uC11C \uC77D\uC2B5\uB2C8\uB2E4. \uD734\uB300\uD3F0\uC5D0\uC11C\uB3C4 \uBE60\uB974\uAC8C \uC791\uB3D9\uD569\uB2C8\uB2E4.",
|
|
"s.notices": "\uC54C\uB9BC",
|
|
"s.noticesAll": "\uBAA8\uB4E0 \uB3D9\uAE30\uD654",
|
|
"s.noticesErrors": "\uC624\uB958 \uBC0F \uCDA9\uB3CC\uB9CC",
|
|
"s.noticesNone": "\uC5C6\uC74C",
|
|
"s.resetState": "\uB3D9\uAE30\uD654 \uC0C1\uD0DC \uCD08\uAE30\uD654",
|
|
"s.resetStateDesc": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uB9C8\uC9C0\uB9C9\uC73C\uB85C \uB3D9\uAE30\uD654\uB41C \uB0B4\uC6A9\uC744 \uC78A\uC2B5\uB2C8\uB2E4. \uB2E4\uC74C \uB3D9\uAE30\uD654\uB294 \uBAA8\uB4E0 \uAC83\uC744 \uBE44\uAD50\uD558\uBA70 \uC544\uBB34\uAC83\uB3C4 \uC0AD\uC81C\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC11C\uB85C \uB2E4\uB978 \uD30C\uC77C\uC740 \uB450 \uBC84\uC804 \uBAA8\uB450 \uBCF4\uAD00\uB429\uB2C8\uB2E4.",
|
|
"s.resetBtn": "\uCD08\uAE30\uD654",
|
|
"s.resetDone": "\uB3D9\uAE30\uD654 \uC0C1\uD0DC\uB97C \uCD08\uAE30\uD654\uD588\uC2B5\uB2C8\uB2E4.",
|
|
// setup wizard
|
|
"w.stepConnect": "\uC5F0\uACB0",
|
|
"w.stepRepo": "\uC800\uC7A5\uC18C",
|
|
"w.stepVault": "\uC774 \uBCF4\uAD00\uC18C",
|
|
"w.stepSync": "\uCCAB \uB3D9\uAE30\uD654",
|
|
"w.title": "\uBCF4\uAD00\uC18C \uB3D9\uAE30\uD654 \uC124\uC815",
|
|
"w.sub": "\uB178\uD2B8\uB294 GitHub, GitLab, Codeberg, Gitea, Forgejo \uB610\uB294 Bitbucket\uC5D0 \uC788\uB294, \uB0B4\uAC00 \uC18C\uC720\uD55C \uBE44\uACF5\uAC1C Git \uC800\uC7A5\uC18C\uC5D0 \uBCF4\uAD00\uB429\uB2C8\uB2E4. \uB370\uC2A4\uD06C\uD1B1\uACFC \uBAA8\uBC14\uC77C\uC5D0\uC11C \uC791\uB3D9\uD558\uBA70 \uB530\uB85C \uC124\uCE58\uD560 \uAC83\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"w.where": "\uBCF4\uAD00\uC18C\uB97C \uC5B4\uB514\uC5D0 \uB458\uAE4C\uC694?",
|
|
"w.apiUrl": "\uC11C\uBC84 API URL",
|
|
"w.deviceName": "\uC774 \uAE30\uAE30\uC758 \uC774\uB984",
|
|
"w.deviceNameDesc": "\uAE30\uB85D\uACFC \uCDA9\uB3CC \uC0AC\uBCF8\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4.",
|
|
"w.signedIn": "{user}(\uC73C)\uB85C \uB85C\uADF8\uC778\uD568",
|
|
"w.tokenFailed": "\uD1A0\uD070\uC774 \uC791\uB3D9\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: {error}",
|
|
"w.alreadyConnected": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC774\uBBF8 \uC5F0\uACB0\uB428",
|
|
"w.continue": "\uACC4\uC18D",
|
|
"w.connectWith": "{host} \uD1A0\uD070\uC73C\uB85C \uC5F0\uACB0",
|
|
"w.tokenStored": "\uD1A0\uD070\uC740 \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC548\uC804\uD558\uAC8C \uC800\uC7A5\uB418\uBA70, \uB3D9\uAE30\uD654\uB418\uB294 \uC124\uC815\uC5D0\uB294 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"w.token": "\uD1A0\uD070",
|
|
"w.pasteFirst": "\uBA3C\uC800 \uD1A0\uD070\uC744 \uBD99\uC5EC\uB123\uC73C\uC138\uC694.",
|
|
"w.repoTitle": "\uC800\uC7A5\uC18C \uC120\uD0DD",
|
|
"w.repoSub": "{user}(\uC73C)\uB85C \uB85C\uADF8\uC778\uD588\uC2B5\uB2C8\uB2E4. \uC774 \uBCF4\uAD00\uC18C\uC5D0 \uC0AC\uC6A9\uD560 \uC800\uC7A5\uC18C\uB97C \uC120\uD0DD\uD558\uAC70\uB098 \uC0C8 \uBE44\uACF5\uAC1C \uC800\uC7A5\uC18C\uB97C \uB9CC\uB4DC\uC138\uC694.",
|
|
"w.createNew": "\uC0C8 \uBE44\uACF5\uAC1C \uC800\uC7A5\uC18C \uB9CC\uB4E4\uAE30",
|
|
"w.create": "\uB9CC\uB4E4\uAE30",
|
|
"w.createFailed": "\uC800\uC7A5\uC18C\uB97C \uB9CC\uB4E4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}. \uC77C\uBD80 \uD1A0\uD070\uC740 \uC774 \uC791\uC5C5\uC5D0 \uCD94\uAC00 \uAD8C\uD55C\uC774 \uD544\uC694\uD569\uB2C8\uB2E4. \uD638\uC2A4\uD2B8 \uC6F9\uC0AC\uC774\uD2B8\uC5D0\uC11C \uC9C1\uC811 \uB9CC\uB4E0 \uD6C4 \uC544\uB798\uC5D0\uC11C \uC120\uD0DD\uD560 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"w.useExisting": "\uB610\uB294 \uAE30\uC874 \uC800\uC7A5\uC18C \uC0AC\uC6A9",
|
|
"w.filter": "\uD544\uD130\u2026",
|
|
"w.loadingRepos": "\uC800\uC7A5\uC18C\uB97C \uBD88\uB7EC\uC624\uB294 \uC911\u2026",
|
|
"w.noMatch": "\uC77C\uCE58\uD558\uB294 \uC800\uC7A5\uC18C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"w.private": "\uBE44\uACF5\uAC1C",
|
|
"w.public": "\uACF5\uAC1C",
|
|
"w.publicTitle": "\uACF5\uAC1C \uC800\uC7A5\uC18C",
|
|
"w.publicBody": "{repo}\uC740(\uB294) \uACF5\uAC1C \uC800\uC7A5\uC18C\uC785\uB2C8\uB2E4. \uC778\uD130\uB137\uC758 \uB204\uAD6C\uB098 \uB178\uD2B8\uB97C \uC77D\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uACF5\uAC1C\uD560 \uC758\uB3C4\uAC00 \uC544\uB2C8\uB77C\uBA74 \uBE44\uACF5\uAC1C \uC800\uC7A5\uC18C\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"w.useAnyway": "\uADF8\uB798\uB3C4 \uC0AC\uC6A9",
|
|
"w.listFailed": "\uC800\uC7A5\uC18C \uBAA9\uB85D\uC744 \uBD88\uB7EC\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"w.back": "\uB4A4\uB85C",
|
|
"w.vaultTitle": "\uC774 \uBCF4\uAD00\uC18C\uC640 \uC800\uC7A5\uC18C",
|
|
"w.looking": "\uC591\uCABD\uC744 \uD655\uC778\uD558\uB294 \uC911\u2026",
|
|
"w.readFailed": "\uC800\uC7A5\uC18C\uB97C \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"w.counts": "\uC774 \uBCF4\uAD00\uC18C: \uD30C\uC77C {local}\uAC1C \xB7 \uC800\uC7A5\uC18C: \uD30C\uC77C {remote}\uAC1C",
|
|
"w.optUpload": "\uC774 \uBCF4\uAD00\uC18C \uC5C5\uB85C\uB4DC",
|
|
"w.optUploadDesc": "\uCCAB \uBC88\uC9F8 \uAE30\uAE30\uC785\uB2C8\uB2E4. \uC5EC\uAE30 \uC788\uB294 \uBAA8\uB4E0 \uAC83\uC744 \uC800\uC7A5\uC18C\uB85C \uBCF5\uC0AC\uD569\uB2C8\uB2E4.",
|
|
"w.optDownload": "\uC800\uC7A5\uC18C\uC5D0\uC11C \uBCF4\uAD00\uC18C \uB2E4\uC6B4\uB85C\uB4DC",
|
|
"w.optDownloadDesc": "\uC0C8 \uAE30\uAE30\uC785\uB2C8\uB2E4. \uC800\uC7A5\uC18C\uC758 \uD30C\uC77C\uC774 \uC774\uACF3\uC758 \uAE30\uBCF8 \uD30C\uC77C\uC744 \uB300\uCCB4\uD569\uB2C8\uB2E4.",
|
|
"w.optMerge": "\uBCD1\uD569, \uB2E4\uB974\uBA74 \uB458 \uB2E4 \uBCF4\uAD00",
|
|
"w.optMergeDesc": "\uC544\uBB34\uAC83\uB3C4 \uB36E\uC5B4\uC4F0\uC9C0 \uC54A\uC73C\uBA70, \uC11C\uB85C \uB2E4\uB978 \uD30C\uC77C\uC740 \uB098\uB780\uD788 \uBCF4\uAD00\uD569\uB2C8\uB2E4.",
|
|
"w.optMergeSafe": "\uBCD1\uD569, \uB2E4\uB974\uBA74 \uB458 \uB2E4 \uBCF4\uAD00 (\uAC00\uC7A5 \uC548\uC804)",
|
|
"w.optMergeSafeDesc": "\uD55C\uCABD\uC5D0\uB9CC \uC788\uB294 \uD30C\uC77C\uC740 \uBC18\uB300\uCABD\uC73C\uB85C \uBCF5\uC0AC\uD569\uB2C8\uB2E4. \uC11C\uB85C \uB2E4\uB978 \uD30C\uC77C\uC740 \uB098\uB780\uD788 \uBCF4\uAD00\uD569\uB2C8\uB2E4.",
|
|
"w.optRemoteWins": "\uBCD1\uD569, \uB2E4\uB974\uBA74 \uC800\uC7A5\uC18C \uC6B0\uC120",
|
|
"w.optRemoteWinsDesc": "\uD30C\uC77C\uC774 \uC591\uCABD\uC5D0 \uC788\uC73C\uBA74 \uC800\uC7A5\uC18C\uC758 \uBC84\uC804\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC758 \uBC84\uC804\uC740 \uD734\uC9C0\uD1B5\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",
|
|
"w.optLocalWins": "\uBCD1\uD569, \uB2E4\uB974\uBA74 \uC774 \uAE30\uAE30 \uC6B0\uC120",
|
|
"w.optLocalWinsDesc": "\uD30C\uC77C\uC774 \uC591\uCABD\uC5D0 \uC788\uC73C\uBA74 \uC774 \uAE30\uAE30\uC758 \uBC84\uC804\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4.",
|
|
"w.neverDeletes": "\uCCAB \uB3D9\uAE30\uD654\uC5D0\uC11C\uB294 \uC544\uBB34\uAC83\uB3C4 \uC0AD\uC81C\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"w.encrypted": "\u{1F512} \uC774 \uC800\uC7A5\uC18C\uB294 \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uACC4\uC18D\uD558\uB824\uBA74 \uC7A0\uAE08\uC744 \uD574\uC81C\uD558\uC138\uC694.",
|
|
"w.encryptOpt": "\uC885\uB2E8 \uAC04 \uC554\uD638\uD654 (\uC120\uD0DD \uC0AC\uD56D)",
|
|
"w.encryptOptDesc": "\uC800\uC7A5\uC18C \uD638\uC2A4\uD2B8\uB294 \uC77D\uC744 \uC218 \uC5C6\uB294 \uB370\uC774\uD130\uB9CC \uBCF4\uAC8C \uB429\uB2C8\uB2E4. \uBAA8\uB4E0 \uAE30\uAE30\uC5D0 \uC774 \uC554\uD638\uBB38\uAD6C\uAC00 \uD544\uC694\uD558\uBA70, \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"w.passphrase": "\uC554\uD638\uBB38\uAD6C",
|
|
"w.encOnDevice": "\u{1F512} \uC774 \uAE30\uAE30\uC5D0\uC11C \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uAC00 \uCF1C\uC838 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"w.alsoConfig": "\uC124\uC815, \uD14C\uB9C8, \uD50C\uB7EC\uADF8\uC778\uB3C4 \uB3D9\uAE30\uD654 ({dir})",
|
|
"w.start": "\uCCAB \uB3D9\uAE30\uD654 \uC2DC\uC791",
|
|
"w.unlockFirst": "\uBA3C\uC800 \uC554\uD638\uD654\uB41C \uC800\uC7A5\uC18C\uC758 \uC7A0\uAE08\uC744 \uD574\uC81C\uD558\uC138\uC694.",
|
|
"w.saveTitle": "\uC554\uD638\uBB38\uAD6C\uB97C \uC800\uC7A5\uD558\uC138\uC694",
|
|
"w.saveBody": "\uC774 \uC554\uD638\uBB38\uAD6C\uB97C \uC548\uC804\uD55C \uACF3\uC5D0 \uC800\uC7A5\uD588\uB098\uC694? \uBCF5\uAD6C\uD560 \uBC29\uBC95\uC774 \uC5C6\uC73C\uBA70, \uC554\uD638\uBB38\uAD6C\uAC00 \uC5C6\uC73C\uBA74 \uC800\uC7A5\uC18C\uC758 \uC0AC\uBCF8\uC744 \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"w.saved": "\uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4",
|
|
"w.syncTitle": "\uCCAB \uB3D9\uAE30\uD654",
|
|
"w.syncSub": "\uBCF4\uAD00\uC18C\uAC00 \uD06C\uBA74 \uC2DC\uAC04\uC774 \uAC78\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uCC3D\uC744 \uB2EB\uC544\uB3C4 \uB3D9\uAE30\uD654\uB294 \uBC31\uADF8\uB77C\uC6B4\uB4DC\uC5D0\uC11C \uACC4\uC18D\uB429\uB2C8\uB2E4.",
|
|
"w.starting": "\uC2DC\uC791\uD558\uB294 \uC911\u2026",
|
|
"w.doneTitle": "\uBAA8\uB4E0 \uC900\uBE44\uAC00 \uB05D\uB0AC\uC2B5\uB2C8\uB2E4",
|
|
"w.tip1": "\uB3D9\uAE30\uD654\uB294 \uC2DC\uC791 \uC2DC, \uD3B8\uC9D1 \uD6C4, \uADF8\uB9AC\uACE0 \uC8FC\uAE30\uC801\uC73C\uB85C \uC2E4\uD589\uB429\uB2C8\uB2E4. \uB9AC\uBCF8 \uBC84\uD2BC\uC744 \uB204\uB974\uBA74 \uBC14\uB85C \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
"w.tip2": "\uB3D9\uAE30\uD654 \uC0C1\uD0DC \uD328\uB110(\uD65C\uB3D9 \uC544\uC774\uCF58)\uC5D0\uC11C \uB300\uAE30 \uC911\uC778 \uD56D\uBAA9\uACFC \uD655\uC778\uC774 \uD544\uC694\uD55C \uC0AC\uD56D\uC744 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"w.tip3": "\uB2E4\uB978 \uAE30\uAE30\uB9C8\uB2E4 \uD50C\uB7EC\uADF8\uC778\uC744 \uC124\uCE58\uD558\uACE0 \uAC19\uC740 \uC800\uC7A5\uC18C\uB85C \uC774 \uB9C8\uBC95\uC0AC\uB97C \uC2E4\uD589\uD558\uC138\uC694.",
|
|
"w.openStatus": "\uB3D9\uAE30\uD654 \uC0C1\uD0DC \uC5F4\uAE30",
|
|
"w.done": "\uC644\uB8CC",
|
|
// encryption and shared folders
|
|
"e.passShort": "12\uC790 \uC774\uC0C1\uC744 \uC0AC\uC6A9\uD558\uC138\uC694. \uBB34\uC791\uC704 \uB2E8\uC5B4 \uBA87 \uAC1C\uB97C \uC870\uD569\uD558\uBA74 \uC88B\uC2B5\uB2C8\uB2E4.",
|
|
"e.passOk": "\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4. \uAE38\uC218\uB85D \uAC15\uB825\uD569\uB2C8\uB2E4: 16\uC790 \uC774\uC0C1 \uB610\uB294 \uBB34\uC791\uC704 \uB2E8\uC5B4 4\uAC1C \uC774\uC0C1.",
|
|
"e.passStrong": "\uAC15\uB825\uD569\uB2C8\uB2E4.",
|
|
"e.checking": "\uC800\uC7A5\uC18C \uD655\uC778 \uC911\u2026",
|
|
"e.unlockTitle": "\uC554\uD638\uD654\uB41C \uBCF4\uAD00\uC18C \uC7A0\uAE08 \uD574\uC81C",
|
|
"e.upgrade": "\uC554\uD638\uD654 \uC5C5\uADF8\uB808\uC774\uB4DC\u2026",
|
|
"e.upgradeDesc": "\uC774 \uC800\uC7A5\uC18C\uB294 \uC774\uC804 \uD615\uC2DD\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uD30C\uC77C\uC758 \uC554\uD638\uD654\uB41C \uB0B4\uC6A9\uC774 \uC774\uB984\uC5D0 \uBB36\uC5EC \uC788\uC9C0 \uC54A\uC544, \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uC788\uB294 \uC0AC\uB78C\uC774 \uB450 \uD30C\uC77C\uC744 \uD2F0 \uB098\uC9C0 \uC54A\uAC8C \uBC14\uAFC0 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC5C5\uADF8\uB808\uC774\uB4DC\uD558\uBA74 \uAC19\uC740 \uC554\uD638\uBB38\uAD6C\uB85C \uBAA8\uB4E0 \uD30C\uC77C\uC744 \uD55C \uBC88 \uB2E4\uC2DC \uC554\uD638\uD654\uD558\uC5EC \uAC01 \uD30C\uC77C\uC774 \uC790\uAE30 \uC774\uB984\uC73C\uB85C\uB9CC \uC5F4\uB9AC\uAC8C \uD569\uB2C8\uB2E4.",
|
|
"e.upgradeTitle": "\uC885\uB2E8 \uAC04 \uC554\uD638\uD654 \uC5C5\uADF8\uB808\uC774\uB4DC",
|
|
"e.upgradeBody": "\uC774 \uAE30\uAE30\uAC00 \uBA3C\uC800 \uB3D9\uAE30\uD654\uD55C \uB2E4\uC74C, \uC800\uC7A5\uC18C\uC758 \uBAA8\uB4E0 \uC554\uD638\uD654\uB41C \uD30C\uC77C\uC744 \uB2E4\uC2DC \uC554\uD638\uD654\uD558\uC5EC \uD558\uB098\uC758 \uCEE4\uBC0B\uC73C\uB85C \uB2E4\uC2DC \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4(\uAC19\uC740 \uC554\uD638\uBB38\uAD6C). \uB2E4\uB978 \uAE30\uAE30\uB294 \uB2E4\uC74C \uB3D9\uAE30\uD654 \uB54C \uC804\uD658\uB429\uB2C8\uB2E4. \uD50C\uB7EC\uADF8\uC778 \uBC84\uC804\uC774 1.8.0\uBCF4\uB2E4 \uC774\uC804\uC778 \uAE30\uAE30\uB294 \uC0C8 \uD615\uC2DD\uC744 \uC77D\uC744 \uC218 \uC5C6\uC5B4 \uC5C5\uB370\uC774\uD2B8\uD560 \uB54C\uAE4C\uC9C0 \uB3D9\uAE30\uD654\uB97C \uBA48\uCDA5\uB2C8\uB2E4.",
|
|
"e.upgradeConfirm": "\uC5C5\uADF8\uB808\uC774\uB4DC",
|
|
"e.upgraded": "\uC554\uD638\uD654\uB97C \uC5C5\uADF8\uB808\uC774\uB4DC\uD588\uC2B5\uB2C8\uB2E4: \uD30C\uC77C {n}\uAC1C\uB97C \uB2E4\uC2DC \uC554\uD638\uD654\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"e.upgradeFailed": "\uC554\uD638\uD654\uB97C \uC5C5\uADF8\uB808\uC774\uB4DC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4: {error}",
|
|
"e.unlockBody": "\uC774 \uC800\uC7A5\uC18C\uB294 \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC5D0\uC11C \uB3D9\uAE30\uD654\uD558\uB824\uBA74 \uC554\uD638\uBB38\uAD6C\uB97C \uC785\uB825\uD558\uC138\uC694. \uD0A4\uB294 \uC774 \uAE30\uAE30\uC758 \uBCF4\uC548 \uC800\uC7A5\uC18C\uC5D0 \uBCF4\uAD00\uB429\uB2C8\uB2E4.",
|
|
"e.unlocking": "\uC7A0\uAE08 \uD574\uC81C \uC911\u2026 (\uBCF4\uC548\uC744 \uC704\uD574 \uC758\uB3C4\uC801\uC73C\uB85C \uC7A0\uC2DC \uAC78\uB9BD\uB2C8\uB2E4)",
|
|
"e.unlocked": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC554\uD638\uD654\uB41C \uBCF4\uAD00\uC18C\uC758 \uC7A0\uAE08\uC744 \uD574\uC81C\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"e.unlock": "\uC7A0\uAE08 \uD574\uC81C",
|
|
"e.enableTitle": "\uC885\uB2E8 \uAC04 \uC554\uD638\uD654 \uCF1C\uAE30",
|
|
"e.point1": "\uB178\uD2B8, \uCCA8\uBD80 \uD30C\uC77C, \uD30C\uC77C \uC774\uB984\uC774 \uC5C5\uB85C\uB4DC \uC804\uC5D0 \uC774 \uAE30\uAE30\uC5D0\uC11C \uC554\uD638\uD654\uB429\uB2C8\uB2E4. \uC800\uC7A5\uC18C \uD638\uC2A4\uD2B8\uC5D0\uB294 \uC77D\uC744 \uC218 \uC5C6\uB294 \uB370\uC774\uD130\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"e.point2": "\uBAA8\uB4E0 \uAE30\uAE30\uC5D0 \uAC19\uC740 \uC554\uD638\uBB38\uAD6C\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4. \uC554\uD638\uBB38\uAD6C\uB294 \uBCF5\uAD6C\uD560 \uBC29\uBC95\uC774 \uC5C6\uC73C\uBBC0\uB85C, \uC78A\uC5B4\uBC84\uB9AC\uBA74 \uC800\uC7A5\uC18C\uC758 \uC0AC\uBCF8\uC744 \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"e.point3": "\uC774 \uC800\uC7A5\uC18C\uC5D0 \uC774\uBBF8 \uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC740 \uB178\uD2B8\uAC00 \uC788\uB2E4\uBA74 \uADF8 \uAE30\uB85D\uC5D0 \uB0A8\uC544 \uC788\uC2B5\uB2C8\uB2E4. \uC644\uC804\uD55C \uAC1C\uC778 \uC815\uBCF4 \uBCF4\uD638\uB97C \uC6D0\uD558\uBA74 \uBE44\uC5B4 \uC788\uB294 \uC0C8 \uC800\uC7A5\uC18C\uB97C \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"e.point4": "\uB354 \uC774\uC0C1 \uD638\uC2A4\uD2B8 \uC6F9\uC0AC\uC774\uD2B8\uC5D0\uC11C \uB178\uD2B8\uB97C \uBCFC \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB300\uC2E0 \uD50C\uB7EC\uADF8\uC778\uC758 \uAE30\uB85D\uACFC \uD0C0\uC784\uB77C\uC778\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"e.repeat": "\uC554\uD638\uBB38\uAD6C \uD655\uC778",
|
|
"e.ack": "\uC554\uD638\uBB38\uAD6C\uB97C \uC548\uC804\uD55C \uACF3(\uC608: \uBE44\uBC00\uBC88\uD638 \uAD00\uB9AC\uC790)\uC5D0 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4",
|
|
"e.turnOn": "\uC554\uD638\uD654 \uCF1C\uAE30",
|
|
"e.mismatch": "\uC554\uD638\uBB38\uAD6C\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"e.confirmSaved": "\uC554\uD638\uBB38\uAD6C\uB97C \uC800\uC7A5\uD588\uB294\uC9C0 \uD655\uC778\uD574 \uC8FC\uC138\uC694.",
|
|
"e.settingUp": "\uC124\uC815 \uC911\u2026 (\uBCF4\uC548\uC744 \uC704\uD574 \uC758\uB3C4\uC801\uC73C\uB85C \uC7A0\uC2DC \uAC78\uB9BD\uB2C8\uB2E4)",
|
|
"e.enabled": "\uC554\uD638\uD654\uAC00 \uCF1C\uC84C\uC2B5\uB2C8\uB2E4. \uB2E4\uC74C \uB3D9\uAE30\uD654\uC5D0\uC11C \uBAA8\uB4E0 \uAC83\uC744 \uC554\uD638\uD654\uD558\uC5EC \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4.",
|
|
"sh.intro": "\uD3F4\uB354 \uD558\uB098(\uC608: \uD300 \uD3F4\uB354)\uB97C \uBCC4\uB3C4\uC758 \uC800\uC7A5\uC18C\uC640 \uB3D9\uAE30\uD654\uD558\uACE0, \uB098\uBA38\uC9C0 \uBCF4\uAD00\uC18C\uB294 \uBE44\uACF5\uAC1C \uC800\uC7A5\uC18C\uC5D0 \uADF8\uB300\uB85C \uB461\uB2C8\uB2E4. \uD3F4\uB354\uB294 \uD574\uB2F9 \uC800\uC7A5\uC18C\uC758 \uB8E8\uD2B8 \uB610\uB294 \uADF8 \uC548\uC758 \uD3F4\uB354\uC5D0 \uC5F0\uACB0\uB429\uB2C8\uB2E4.",
|
|
"sh.folder": "\uD3F4\uB354",
|
|
"sh.folderPlaceholder": "Work",
|
|
"sh.ownerDesc": "\uACF5\uC720 \uC800\uC7A5\uC18C\uC758 \uC0AC\uC6A9\uC790, \uC870\uC9C1, \uADF8\uB8F9 \uB610\uB294 \uC6CC\uD06C\uC2A4\uD398\uC774\uC2A4\uC785\uB2C8\uB2E4.",
|
|
"sh.token": "\uD1A0\uD070 (\uC120\uD0DD \uC0AC\uD56D)",
|
|
"sh.tokenDesc": "\uBE44\uC6CC \uB450\uBA74 \uAE30\uBCF8 \uD1A0\uD070\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4(\uAC19\uC740 \uD638\uC2A4\uD2B8\uB9CC \uD574\uB2F9). \uC774 \uAE30\uAE30\uC5D0 \uC548\uC804\uD558\uAC8C \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"sh.note": "\uAE30\uBCF8 \uC800\uC7A5\uC18C\uC5D0\uC11C \uC774 \uD3F4\uB354\uC5D0 \uC774\uBBF8 \uC788\uB358 \uD30C\uC77C\uC740 \uADF8\uB300\uB85C(\uAE30\uB85D \uC18D\uC5D0) \uB0A8\uC9C0\uB9CC \uB354 \uC774\uC0C1 \uADF8 \uC800\uC7A5\uC18C\uC640 \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uACF5\uB3D9 \uC791\uC5C5\uC790\uAC00 \uC77D\uC5B4\uC57C \uD558\uBBC0\uB85C \uACF5\uC720 \uD3F4\uB354\uC5D0\uB294 \uC554\uD638\uD654\uAC00 \uC801\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"sh.add": "\uCD94\uAC00",
|
|
"sh.required": "\uD3F4\uB354, \uC18C\uC720\uC790, \uC800\uC7A5\uC18C\uB294 \uD544\uC218\uC785\uB2C8\uB2E4.",
|
|
"sh.overlap": "\uC774 \uD3F4\uB354\uB294 \uAE30\uC874 \uACF5\uC720 \uD3F4\uB354\uC640 \uACB9\uCE69\uB2C8\uB2E4.",
|
|
"sh.checking": "\uC811\uADFC \uAD8C\uD55C \uD655\uC778 \uC911\u2026",
|
|
"sh.noAccess": "{repo}\uC5D0 \uC811\uADFC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"sh.added": "\uACF5\uC720 \uD3F4\uB354 \uCD94\uAC00\uB428: {folder} \u2194 {repo}",
|
|
// dialogs
|
|
"u.andMore": "\u2026\uC678 {n}\uAC1C",
|
|
"u.binaryDiff": "\uBC14\uC774\uB108\uB9AC \uD30C\uC77C: \uD14D\uC2A4\uD2B8 \uCC28\uC774\uB97C \uD45C\uC2DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. {a}: {as}\uBC14\uC774\uD2B8 \xB7 {b}: {bs}\uBC14\uC774\uD2B8.",
|
|
"u.loadFailed": "\uBD88\uB7EC\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"u.conflictTitle": "\uCDA9\uB3CC: {path}",
|
|
"u.repository": "\uC800\uC7A5\uC18C",
|
|
"u.conflictBody": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uC774 \uD30C\uC77C\uC774 \uC774 \uAE30\uAE30\uC640 \uC800\uC7A5\uC18C({host}) \uC591\uCABD\uC5D0\uC11C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"u.pickHint": "\uAC01 \uBCC0\uACBD\uB9C8\uB2E4 \uC720\uC9C0\uD560 \uBC84\uC804\uC744 \uC120\uD0DD\uD558\uC138\uC694. \uB458 \uB2E4 \uC120\uD0DD\uD558\uBA74 \uC774 \uAE30\uAE30\uC758 \uC904\uC774 \uBA3C\uC800 \uC635\uB2C8\uB2E4.",
|
|
"u.thisDevice": "\uC774 \uAE30\uAE30",
|
|
"u.chooseChanges": "\uBCC0\uACBD \uC0AC\uD56D \uC120\uD0DD",
|
|
"u.fullDiff": "\uC804\uCCB4 \uCC28\uC774\uC810",
|
|
"u.apply": "\uC120\uD0DD \uC801\uC6A9",
|
|
"u.binaryConflict": "\uBC14\uC774\uB108\uB9AC \uD30C\uC77C. \uC774 \uAE30\uAE30: {a}\uBC14\uC774\uD2B8 \xB7 {host}: {b}\uBC14\uC774\uD2B8.",
|
|
"u.wholeFile": "\uB610\uB294 \uD30C\uC77C \uC804\uCCB4\uB97C \uC120\uD0DD",
|
|
"u.keepBoth": "\uB450 \uD30C\uC77C \uBAA8\uB450 \uBCF4\uAD00",
|
|
"u.markers": "\uCDA9\uB3CC \uD45C\uC2DC\uB97C \uB123\uC5B4 \uBCD1\uD569",
|
|
"u.guardTitle": "\uB300\uB7C9 \uC0AD\uC81C \uAC10\uC9C0\uB428",
|
|
"u.guardBody": "\uC774 \uB3D9\uAE30\uD654\uB294 \uD30C\uC77C {n}\uAC1C\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uC758\uB3C4\uD55C \uAC83\uC778\uC9C0 \uD655\uC778\uD574 \uC8FC\uC138\uC694.",
|
|
"u.guardLocal": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC0AD\uC81C (\uD734\uC9C0\uD1B5\uC73C\uB85C \uC774\uB3D9): {n}",
|
|
"u.guardRemote": "\uC800\uC7A5\uC18C\uC5D0\uC11C \uC0AD\uC81C (\uAE30\uB85D\uC5D0 \uBCF4\uC874): {n}",
|
|
"u.cancelSync": "\uB3D9\uAE30\uD654 \uCDE8\uC18C",
|
|
"u.skipDeletes": "\uB3D9\uAE30\uD654\uD558\uB418 \uC0AD\uC81C\uB294 \uAC74\uB108\uB6F0\uAE30",
|
|
"u.deleteThem": "\uC0AD\uC81C",
|
|
"u.gDownload": "\uC800\uC7A5\uC18C\uC5D0\uC11C \uB2E4\uC6B4\uB85C\uB4DC",
|
|
"u.gUpload": "\uC800\uC7A5\uC18C\uB85C \uC5C5\uB85C\uB4DC",
|
|
"u.gMoveLocal": "\uB2E4\uB978 \uACF3\uC5D0\uC11C \uC774\uB984 \uBCC0\uACBD\uB428 (\uC5EC\uAE30\uC11C\uB3C4 \uC774\uB984 \uBCC0\uACBD)",
|
|
"u.gAdopt": "\uC5EC\uAE30\uC11C \uC774\uB984 \uBCC0\uACBD, \uB2E4\uB978 \uACF3\uC5D0\uC11C \uD3B8\uC9D1\uB428",
|
|
"u.gRenameMerge": "\uC591\uCABD\uC5D0\uC11C \uC774\uB984 \uBCC0\uACBD \uBC0F \uD3B8\uC9D1\uB428 (\uBCD1\uD569)",
|
|
"u.gConflict": "\uC591\uCABD\uC5D0\uC11C \uBCC0\uACBD\uB428",
|
|
"u.gDeleteLocal": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC0AD\uC81C",
|
|
"u.gDeleteRemote": "\uC800\uC7A5\uC18C\uC5D0\uC11C \uC0AD\uC81C",
|
|
"u.reviewTitle": "\uBCC0\uACBD \uC0AC\uD56D \uAC80\uD1A0",
|
|
"u.upToDate": "\uBAA8\uB450 \uCD5C\uC2E0 \uC0C1\uD0DC\uC785\uB2C8\uB2E4.",
|
|
"u.reviewHint": "\uC544\uC9C1 \uB3D9\uAE30\uD654\uD558\uC9C0 \uC54A\uC744 \uD56D\uBAA9\uC740 \uCCB4\uD06C\uB97C \uD574\uC81C\uD558\uC138\uC694. \uCCB4\uD06C \uD574\uC81C\uB41C \uD30C\uC77C\uC740 \uC774\uD6C4 \uB3D9\uAE30\uD654 \uC804\uAE4C\uC9C0 \uC591\uCABD \uBAA8\uB450 \uADF8\uB300\uB85C \uB461\uB2C8\uB2E4.",
|
|
"u.cancel": "\uCDE8\uC18C",
|
|
"u.syncAll": "\uBAA8\uB450 \uB3D9\uAE30\uD654",
|
|
"u.syncSelected": "\uC120\uD0DD\uD55C {n}\uAC1C \uB3D9\uAE30\uD654",
|
|
"u.logTitle": "\uB3D9\uAE30\uD654 \uB85C\uADF8",
|
|
"u.noActivity": "\uC544\uC9C1 \uB3D9\uAE30\uD654 \uD65C\uB3D9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"u.loading": "\uC800\uC7A5\uC18C\uC5D0\uC11C \uBD88\uB7EC\uC624\uB294 \uC911\u2026",
|
|
"u.nothingFound": "\uCC3E\uC740 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"u.failed": "\uC2E4\uD328: {error}",
|
|
"u.currentFile": "\uD604\uC7AC \uD30C\uC77C",
|
|
"u.thisVersion": "\uC774 \uBC84\uC804",
|
|
"u.compareCurrent": "\uD604\uC7AC \uBC84\uC804\uACFC \uBE44\uAD50",
|
|
"u.fullVersion": "\uC804\uCCB4 \uBC84\uC804",
|
|
"u.restoreCopy": "\uC0AC\uBCF8\uC73C\uB85C \uBCF5\uC6D0",
|
|
"u.restoreThis": "\uC774 \uBC84\uC804\uC73C\uB85C \uBCF5\uC6D0",
|
|
"u.pickFolder": "\uBCF5\uC6D0\uD560 \uD3F4\uB354 \uC120\uD0DD",
|
|
"u.pickRemoteOnly": "\uC774 \uAE30\uAE30\uC5D0 \uC5C6\uB294 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC",
|
|
"u.timelineTitle": "\uD0C0\uC784\uB77C\uC778",
|
|
"u.timelineHint": "\uBAA8\uB4E0 \uB3D9\uAE30\uD654\uB294 \uB418\uB3CC\uC544\uAC08 \uC218 \uC788\uB294 \uC2DC\uC810\uC785\uB2C8\uB2E4. \uBCF5\uC6D0\uD558\uBA74 \uC0C8 \uCEE4\uBC0B\uC774 \uC704\uC5D0 \uCD94\uAC00\uB418\uBBC0\uB85C \uD604\uC7AC \uC0C1\uD0DC\uB3C4 \uAE30\uB85D\uC5D0 \uB0A8\uC2B5\uB2C8\uB2E4.",
|
|
"u.browseFiles": "\uD30C\uC77C \uCC3E\uC544\uBCF4\uAE30",
|
|
"u.restoreFolder": "\uD3F4\uB354 \uBCF5\uC6D0\u2026",
|
|
"u.restoreVault": "\uBCF4\uAD00\uC18C \uC804\uCCB4 \uBCF5\uC6D0",
|
|
"d.unified": "\uD1B5\uD569 \uBCF4\uAE30",
|
|
"d.split": "\uB098\uB780\uD788 \uBCF4\uAE30",
|
|
"d.same": "\uCC28\uC774\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"d.unchanged": "\u22EF \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC740 \uC904 {n}\uAC1C",
|
|
"d.both": "\uB458 \uB2E4",
|
|
"d.change": "\uBCC0\uACBD {n}",
|
|
"d.nothing": "(\uC5C6\uC74C)",
|
|
"d.identical": "\uB450 \uBC84\uC804\uC774 \uB3D9\uC77C\uD569\uB2C8\uB2E4.",
|
|
// plugin notices and dialogs
|
|
"m.embedMissing": "{path} ({mb} MB)\uC774(\uAC00) \uC774 \uAE30\uAE30\uC5D0 \uB2E4\uC6B4\uB85C\uB4DC\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",
|
|
"m.download": "\uB2E4\uC6B4\uB85C\uB4DC",
|
|
"m.downloadingOne": "{path} \uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",
|
|
"m.downloadingMany": "\uD30C\uC77C {n}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",
|
|
"m.allLocal": "\uBAA8\uB4E0 \uD30C\uC77C\uC774 \uC774 \uAE30\uAE30\uC5D0 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.plainTitle": "\uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC740 \uC0AC\uBCF8 \uC81C\uAC70",
|
|
"m.plainBody": "\uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC740 \uC774 \uD30C\uC77C\uB4E4\uC744 \uD558\uB098\uC758 \uCEE4\uBC0B\uC73C\uB85C \uC800\uC7A5\uC18C\uC5D0\uC11C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uC554\uD638\uD654\uB41C \uC0AC\uBCF8\uC774 \uC774\uBBF8 \uC5C5\uB85C\uB4DC\uB418\uC5B4 \uC788\uC73C\uBBC0\uB85C \uB178\uD2B8\uB294 \uC548\uC804\uD569\uB2C8\uB2E4. \uCC38\uACE0: \uC774\uC804 \uBC84\uC804\uC740 \uC800\uC7A5\uC18C \uAE30\uB85D\uC5D0 \uB0A8\uC544 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.deleteFrom": "{host}\uC5D0\uC11C \uC0AD\uC81C",
|
|
"m.remove": "\uC81C\uAC70",
|
|
"m.plainRemoved": "\uC800\uC7A5\uC18C\uC5D0\uC11C \uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC740 \uD30C\uC77C {n}\uAC1C\uB97C \uC81C\uAC70\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"m.plainNone": "\uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC740 \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"m.removeFailed": "\uD30C\uC77C\uC744 \uC81C\uAC70\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"m.firstFailed": "\uCCAB \uB3D9\uAE30\uD654\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4: {error}. \uB3D9\uAE30\uD654 \uC0C1\uD0DC \uD328\uB110\uC5D0\uC11C \uB2E4\uC2DC \uC2DC\uB3C4\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.syncFinished": "\uB3D9\uAE30\uD654\uAC00 \uB05D\uB0AC\uC2B5\uB2C8\uB2E4.",
|
|
"m.alreadyInSync": "\uBAA8\uB4E0 \uD56D\uBAA9\uC774 \uC774\uBBF8 \uB3D9\uAE30\uD654\uB418\uC5B4 \uC788\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"m.nDownloaded": "{n}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC\uB428",
|
|
"m.nUploaded": "{n}\uAC1C \uC5C5\uB85C\uB4DC\uB428",
|
|
"m.nBoth": "{n}\uAC1C \uB450 \uBC84\uC804 \uBAA8\uB450 \uBCF4\uAD00\uB428",
|
|
"m.nSkipped": "{n}\uAC1C \uAC74\uB108\uB700 (\uC0C1\uD0DC \uD328\uB110 \uCC38\uACE0)",
|
|
"m.firstDone": "\uCCAB \uB3D9\uAE30\uD654 \uC644\uB8CC: {summary}.",
|
|
"m.noChanges": "\uBCC0\uACBD \uC0AC\uD56D \uC5C6\uC74C",
|
|
"m.freeBody": "\uC774 \uAE30\uAE30\uAC00 \uB3D9\uAE30\uD654\uD558\uC9C0 \uC54A\uB294(\uD3F4\uB354 \uBC94\uC704 \uBC16\uC774\uAC70\uB098 \uB2E4\uC6B4\uB85C\uB4DC \uC81C\uD55C\uC744 \uCD08\uACFC\uD55C) \uB85C\uCEEC \uD30C\uC77C {n}\uAC1C({mb} MB)\uB97C \uC81C\uAC70\uD569\uB2C8\uB2E4. \uAC01 \uD30C\uC77C\uC740 \uC800\uC7A5\uC18C\uC758 \uC0AC\uBCF8\uACFC \uB3D9\uC77C\uD558\uBA70, \uC800\uC7A5\uC18C\uC758 \uC0AC\uBCF8\uC740 \uC720\uC9C0\uB429\uB2C8\uB2E4. \uC81C\uAC70\uB41C \uD30C\uC77C\uC740 \uD734\uC9C0\uD1B5\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",
|
|
"m.removeHere": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC81C\uAC70",
|
|
"m.freeNothing": "\uC81C\uAC70\uD560 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4: \uC774 \uAE30\uAE30\uC758 \uBC94\uC704 \uBC16\uC5D0 \uC788\uC73C\uBA74\uC11C \uC800\uC7A5\uC18C\uC5D0 \uC548\uC804\uD558\uAC8C \uBCF4\uAD00\uB41C \uB85C\uCEEC \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"m.freed": "{mb} MB\uB97C \uD655\uBCF4\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"m.freeFailed": "\uACF5\uAC04\uC744 \uD655\uBCF4\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"m.needToken": "\uC124\uC815 \u2192 Vault Sync for Git\uC5D0\uC11C \uC561\uC138\uC2A4 \uD1A0\uD070\uC744 \uCD94\uAC00\uD558\uC138\uC694.",
|
|
"m.needRepo": "\uD50C\uB7EC\uADF8\uC778 \uC124\uC815\uC5D0\uC11C \uC800\uC7A5\uC18C \uC18C\uC720\uC790\uC640 \uC774\uB984\uC744 \uC124\uC815\uD558\uC138\uC694.",
|
|
"m.snapshotOk": "\uC2A4\uB0C5\uC0F7 \uC0DD\uC131\uB428: {tag}",
|
|
"m.snapshotFailed": "\uC2A4\uB0C5\uC0F7 \uC2E4\uD328: {error}",
|
|
"m.reviewFailed": "\uAC80\uD1A0\uB97C \uC900\uBE44\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"m.filesAt": "{sha} \uC2DC\uC810\uC758 \uD30C\uC77C ({date})",
|
|
"m.bytes": "{n}\uBC14\uC774\uD2B8",
|
|
"m.whatFolder": '"{folder}" \uD3F4\uB354',
|
|
"m.whatVault": "\uBCF4\uAD00\uC18C \uC804\uCCB4",
|
|
"m.restoring": "{what} \uBCF5\uC6D0 \uC911\u2026",
|
|
"m.restoreTitle": "{what} \uBCF5\uC6D0",
|
|
"m.restoreBody": "{what}\uC744(\uB97C) {date}({sha}) \uC2DC\uC810\uC758 \uC0C1\uD0DC\uB85C \uB418\uB3CC\uB9BD\uB2C8\uB2E4. \uC0C8 \uCEE4\uBC0B\uC73C\uB85C \uCD94\uAC00\uB418\uBBC0\uB85C \uC624\uB298 \uBC84\uC804\uC740 \uAE30\uB85D\uC5D0 \uB0A8\uC73C\uBA70, \uAC19\uC740 \uBC29\uBC95\uC73C\uB85C \uB418\uB3CC\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.restoredOlder": "\uC774\uC804 \uBC84\uC804\uC73C\uB85C \uBCF5\uC6D0\uB428",
|
|
"m.broughtBack": "\uB418\uC0B4\uB9BC (\uC774\uD6C4 \uC0AD\uC81C\uB418\uC5C8\uB358 \uD30C\uC77C)",
|
|
"m.removedSince": "\uC81C\uAC70\uB428 (\uC774\uD6C4 \uC0DD\uC131\uB41C \uD30C\uC77C)",
|
|
"m.restore": "\uBCF5\uC6D0",
|
|
"m.restored": "{what} \uBCF5\uC6D0\uB428: \uD30C\uC77C {n}\uAC1C \uBCC0\uACBD.",
|
|
"m.restoreSame": "{what}\uC774(\uAC00) \uC774\uBBF8 \uD574\uB2F9 \uC2DC\uC810\uACFC \uC77C\uCE58\uD569\uB2C8\uB2E4.",
|
|
"m.restoreFailed": "\uBCF5\uC6D0 \uC2E4\uD328: {error}",
|
|
"m.comparing": "\uC800\uC7A5\uC18C\uC640 \uBE44\uAD50\uD558\uB294 \uC911\u2026",
|
|
"m.resetBody": "\uC774 \uAE30\uAE30\uC758 \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC740 \uBCC0\uACBD \uC0AC\uD56D\uC744 \uD3D0\uAE30\uD558\uACE0 \uC800\uC7A5\uC18C\uC640 \uC815\uD655\uD788 \uAC19\uC740 \uC0AC\uBCF8\uC73C\uB85C \uB9CC\uB4ED\uB2C8\uB2E4. \uAD50\uCCB4\uB418\uAC70\uB098 \uC81C\uAC70\uB418\uB294 \uD30C\uC77C\uC740 \uBA3C\uC800 \uD734\uC9C0\uD1B5\uC73C\uB85C \uC774\uB3D9\uD558\uBBC0\uB85C \uB098\uC911\uC5D0 \uBCF5\uAD6C\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.replacedWith": "{host} \uBC84\uC804\uC73C\uB85C \uAD50\uCCB4\uB428",
|
|
"m.downloaded": "\uB2E4\uC6B4\uB85C\uB4DC\uB428",
|
|
"m.removedNotInRepo": "\uC81C\uAC70\uB428 (\uC800\uC7A5\uC18C\uC5D0 \uC5C6\uC74C)",
|
|
"m.matchRepo": "\uC800\uC7A5\uC18C\uC640 \uC77C\uCE58\uC2DC\uD0A4\uAE30",
|
|
"m.matched": "\uC774\uC81C \uC774 \uAE30\uAE30\uAC00 \uC800\uC7A5\uC18C\uC640 \uC77C\uCE58\uD569\uB2C8\uB2E4 (\uD30C\uC77C {n}\uAC1C \uBCC0\uACBD).",
|
|
"m.alreadyMatches": "\uC774 \uAE30\uAE30\uB294 \uC774\uBBF8 \uC800\uC7A5\uC18C\uC640 \uC77C\uCE58\uD569\uB2C8\uB2E4.",
|
|
"m.resetFailed": "\uCD08\uAE30\uD654 \uC2E4\uD328: {error}",
|
|
"m.repoNotFound": "\uC800\uC7A5\uC18C\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC5F0\uACB0 \uC124\uC815\uC744 \uD655\uC778\uD558\uC138\uC694.",
|
|
"m.history": "\uAE30\uB85D: {path}",
|
|
"m.notInVersion": "\uD574\uB2F9 \uBC84\uC804\uC5D0\uB294 \uC774 \uD30C\uC77C\uC774 \uC5C6\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"m.restoredFile": "{path}\uC744(\uB97C) \uBCF5\uC6D0\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC74C \uB3D9\uAE30\uD654 \uB54C \uC5C5\uB85C\uB4DC\uB429\uB2C8\uB2E4.",
|
|
"m.versionFailed": "\uBC84\uC804\uC744 \uBD88\uB7EC\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"m.recentlyDeleted": "\uCD5C\uADFC \uC0AD\uC81C\uB41C \uD30C\uC77C",
|
|
"m.deletedOn": "{date} \uC0AD\uC81C\uB428 \xB7 {msg}",
|
|
// status panel and hosts
|
|
"h.notConnected": "\uC544\uC9C1 \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC74C",
|
|
"h.notConnectedHint": "\uD50C\uB7EC\uADF8\uC778 \uC124\uC815\uC5D0\uC11C {host} \uC561\uC138\uC2A4 \uD1A0\uD070\uC744 \uCD94\uAC00\uD558\uC138\uC694.",
|
|
"h.badToken": "{host}\uC5D0\uC11C \uD1A0\uD070\uC744 \uAC70\uBD80\uD588\uC2B5\uB2C8\uB2E4",
|
|
"h.badTokenHint": "\uB9CC\uB8CC\uB418\uC5C8\uAC70\uB098 \uCDE8\uC18C\uB418\uC5C8\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC0C8 \uD1A0\uD070\uC744 \uB9CC\uB4E4\uC5B4 \uC124\uC815\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694.",
|
|
"h.repoMissing": "\uC800\uC7A5\uC18C\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C",
|
|
"h.repoMissingHint": "\uC18C\uC720\uC790\uC640 \uC800\uC7A5\uC18C \uC774\uB984\uC744 \uD655\uC778\uD558\uACE0, \uD1A0\uD070\uC774 \uC774 \uC800\uC7A5\uC18C\uC5D0 \uC811\uADFC\uD560 \uC218 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.",
|
|
"h.rateLimit": "{host} \uC694\uCCAD \uD55C\uB3C4 \uB3C4\uB2EC",
|
|
"h.rateLimitHint": "{host}\uC740(\uB294) \uC2DC\uAC04\uB2F9 \uC694\uCCAD \uC218\uB97C \uC81C\uD55C\uD569\uB2C8\uB2E4. \uACE7 \uB2E4\uC2DC \uB3D9\uAE30\uD654\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"h.busy": "{host}\uC774(\uAC00) \uB2E4\uB978 \uC694\uCCAD\uC744 \uCC98\uB9AC \uC911\uC774\uC5C8\uC2B5\uB2C8\uB2E4",
|
|
"h.busyHint": "\uB2E4\uB978 \uAE30\uAE30\uAC00 \uAC19\uC740 \uC21C\uAC04\uC5D0 \uB3D9\uAE30\uD654\uD558\uACE0 \uC788\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
|
|
"h.offline": "{host}\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC5C6\uC74C",
|
|
"h.offlineHint": "\uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uC138\uC694. \uB3D9\uAE30\uD654\uAC00 \uC790\uB3D9\uC73C\uB85C \uB2E4\uC2DC \uC2DC\uB3C4\uB429\uB2C8\uB2E4.",
|
|
"h.encrypted": "\uC774 \uBCF4\uAD00\uC18C\uB294 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4",
|
|
"h.encryptedHint": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uB3D9\uAE30\uD654\uD558\uB824\uBA74 \uC554\uD638\uBB38\uAD6C\uB97C \uC785\uB825\uD558\uC138\uC694.",
|
|
"h.otherKey": "\uB2E4\uB978 \uC554\uD638\uD654 \uD0A4",
|
|
"h.otherKeyHint": "\uC800\uC7A5\uC18C\uAC00 \uB2E4\uB978 \uC554\uD638\uBB38\uAD6C\uB85C \uC554\uD638\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC7A0\uAE08 \uD574\uC81C\uD558\uC138\uC694.",
|
|
"h.pullOnly": "\uAC00\uC838\uC624\uAE30 \uC804\uC6A9 \uBAA8\uB4DC\uC5D0\uC11C\uB294 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC74C",
|
|
"h.pullOnlyHint": "\uBCC0\uACBD \uC0AC\uD56D\uC744 \uD478\uC2DC\uD558\uB824\uBA74 \uC124\uC815\uC5D0\uC11C \uBAA8\uB4DC\uB97C \uBC14\uAFB8\uC138\uC694.",
|
|
"h.branchMissing": "\uBE0C\uB79C\uCE58\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C",
|
|
"h.failed": "\uB3D9\uAE30\uD654 \uC2E4\uD328",
|
|
"h.onDemand": "\uC774 \uAE30\uAE30\uC5D0 \uB2E4\uC6B4\uB85C\uB4DC\uB418\uC9C0 \uC54A\uC74C ({n})",
|
|
"h.onDemandHint": "\uD070 \uD30C\uC77C {mb} MB\uB294 \uD544\uC694\uD560 \uB54C\uAE4C\uC9C0 \uC800\uC7A5\uC18C\uC5D0 \uB0A8\uC544 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"h.budget": "API \uD55C\uB3C4: {budget}",
|
|
"h.budgetValue": "\uC694\uCCAD {left}/{limit}\uD68C \uB0A8\uC74C, {time} \uCD08\uAE30\uD654",
|
|
"h.unknown": "\uC54C \uC218 \uC5C6\uC74C",
|
|
"h.checkFailed": "{host}\uC744(\uB97C) \uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"h.deviceScope": "\uC774 \uAE30\uAE30\uB294 {what} \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
"h.only": "{list}\uB9CC",
|
|
"h.excluding": "{list}\uC744(\uB97C) \uC81C\uC678\uD558\uACE0",
|
|
"h.noDownloadsOver": "{mb} MB \uCD08\uACFC \uD30C\uC77C\uC740 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC9C0 \uC54A\uACE0",
|
|
"h.notOnDevice": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC74C",
|
|
"hs.ghApi": "GitHub Enterprise Server\uC5D0\uC11C\uB9CC \uBCC0\uACBD\uD558\uC138\uC694. \uC608: https://github.example.com/api/v3",
|
|
"hs.glApi": "gitlab.com \uB610\uB294 \uC0AC\uC6A9 \uC911\uC778 \uC11C\uBC84, \uC608: https://gitlab.example.com/api/v4",
|
|
"hs.gtApi": "\uC11C\uBC84\uC758 API, \uC608: https://codeberg.org/api/v1 \uB610\uB294 https://git.example.com/api/v1",
|
|
"hs.bbApi": "Bitbucket Cloud: https://api.bitbucket.org/2.0",
|
|
"hs.gh1": 'GitHub \uD1A0\uD070 \uD398\uC774\uC9C0\uB97C \uC5EC\uC138\uC694. \uC774\uB984, \uB9CC\uB8CC\uC77C, "Contents: read and write"\uAC00 \uBBF8\uB9AC \uCC44\uC6CC\uC838 \uC788\uC2B5\uB2C8\uB2E4.',
|
|
"hs.gh1Link": "\uC138\uBD84\uD654\uB41C(fine-grained) \uD1A0\uD070 \uB9CC\uB4E4\uAE30",
|
|
"hs.gh2": 'Repository access\uC5D0\uC11C "Only select repositories"\uB97C \uC120\uD0DD\uD558\uACE0 \uBCF4\uAD00\uC18C \uC800\uC7A5\uC18C\uB97C \uACE0\uB974\uC138\uC694(\uD50C\uB7EC\uADF8\uC778\uC774 \uC800\uC7A5\uC18C\uB97C \uB9CC\uB4E4\uAC8C \uD558\uB824\uBA74 Administration: read and write\uB3C4 \uCD94\uAC00\uD558\uC138\uC694).',
|
|
"hs.gh3": "\uC0DD\uC131\uD55C \uD6C4 \uBCF5\uC0AC\uD574\uC11C \uC5EC\uAE30\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694.",
|
|
"hs.gh4": "\uB354 \uAC04\uB2E8\uD55C \uB300\uC548(\uBAA8\uB4E0 \uC800\uC7A5\uC18C\uC5D0 \uC811\uADFC):",
|
|
"hs.gh4Link": "repo \uBC94\uC704\uC758 \uD074\uB798\uC2DD \uD1A0\uD070",
|
|
"hs.gl1": "api \uBC94\uC704\uB85C \uAC1C\uC778 \uC561\uC138\uC2A4 \uD1A0\uD070\uC744 \uB9CC\uB4DC\uC138\uC694(\uCEE4\uBC0B\uC744 \uC4F0\uB294 \uB370 \uD544\uC694).",
|
|
"hs.gl1Link": "GitLab \uD1A0\uD070 \uD398\uC774\uC9C0 \uC5F4\uAE30",
|
|
"hs.gl2": "\uD301: \uD504\uB85C\uC81D\uD2B8 \uC561\uC138\uC2A4 \uD1A0\uD070(\uBCF4\uAD00\uC18C \uD504\uB85C\uC81D\uD2B8\uC758 Settings \u2192 Access tokens, \uC5ED\uD560 Developer, \uBC94\uC704 api)\uC744 \uC0AC\uC6A9\uD558\uBA74 \uD574\uB2F9 \uD504\uB85C\uC81D\uD2B8 \uD558\uB098\uB85C\uB9CC \uC811\uADFC\uC774 \uC81C\uD55C\uB429\uB2C8\uB2E4.",
|
|
"hs.paste": "\uBCF5\uC0AC\uD574\uC11C \uC5EC\uAE30\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694.",
|
|
"hs.gt1": 'Settings \u2192 Applications\uB97C \uC5F4\uACE0 "repository: Read and Write"\uC640 "user: Read" \uAD8C\uD55C\uC73C\uB85C \uD1A0\uD070\uC744 \uC0DD\uC131\uD558\uC138\uC694. \uD50C\uB7EC\uADF8\uC778\uC774 \uC800\uC7A5\uC18C\uB97C \uB9CC\uB4E4\uAC8C \uD558\uB824\uBA74 \uB300\uC2E0 "user: Read and Write"\uB97C \uC120\uD0DD\uD558\uC138\uC694.',
|
|
"hs.gt1Link": "Applications \uD398\uC774\uC9C0 \uC5F4\uAE30",
|
|
"hs.gt2": "Gitea 1.20+ \uB610\uB294 Forgejo 1.20+\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4(\uB2E4\uC911 \uD30C\uC77C \uCEE4\uBC0B API).",
|
|
"hs.bb1": "\uAC00\uC7A5 \uC26C\uC6B4 \uBC29\uBC95: \uBCF4\uAD00\uC18C \uC800\uC7A5\uC18C\uC5D0\uC11C Repository settings \u2192 Security \u2192 Access tokens\uB97C \uC5F4\uACE0 Repositories: Read and Write \uAD8C\uD55C\uC73C\uB85C \uD1A0\uD070\uC744 \uB9CC\uB4DC\uC138\uC694. \uC5EC\uAE30\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694(\uC18C\uC720\uC790\uC640 \uC800\uC7A5\uC18C\uB294 \uC124\uC815\uC5D0\uC11C \uC785\uB825).",
|
|
"hs.bb1Link": "Bitbucket \uC561\uC138\uC2A4 \uD1A0\uD070 \uB3C4\uC6C0\uB9D0",
|
|
"hs.bb2": "\uB9C8\uBC95\uC0AC\uC5D0\uC11C \uC800\uC7A5\uC18C\uB97C \uC120\uD0DD\uD558\uAC70\uB098 \uB9CC\uB4E4\uB824\uBA74 \uB300\uC2E0 Bitbucket \uBC94\uC704\uAC00 \uC788\uB294 Atlassian API \uD1A0\uD070\uC744 email:token \uD615\uC2DD\uC73C\uB85C \uC785\uB825\uD558\uC138\uC694.",
|
|
"hs.bb2Link": "API \uD1A0\uD070 \uB9CC\uB4E4\uAE30",
|
|
"hs.bb3": "\uCC38\uACE0: \uCCAB \uB3D9\uAE30\uD654\uB294 \uC0C9\uC778\uC744 \uC704\uD574 \uBAA8\uB4E0 \uD30C\uC77C\uC744 \uD55C \uBC88 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uBA70, \uC774\uD6C4 \uB3D9\uAE30\uD654\uB294 \uBCC0\uACBD\uB41C \uB0B4\uC6A9\uB9CC \uAC00\uC838\uC635\uB2C8\uB2E4.",
|
|
"u.skipped": "\uAC74\uB108\uB700: {n}",
|
|
"u.loadingShort": "\uBD88\uB7EC\uC624\uB294 \uC911\u2026",
|
|
"u.diff": "\uCC28\uC774\uC810",
|
|
"h.lastSync": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 {ago}",
|
|
"m.sharedFailed": "\uACF5\uC720 \uD3F4\uB354 \uB3D9\uAE30\uD654 \uC2E4\uD328:",
|
|
"m.offline": "\uC624\uD504\uB77C\uC778: \uB2E4\uC2DC \uC5F0\uACB0\uB418\uBA74 \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4",
|
|
"m.filesFailed": "\uD30C\uC77C {n}\uAC1C \uC2E4\uD328: \uB3D9\uAE30\uD654 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC138\uC694",
|
|
"m.copiesCreated": "\uCDA9\uB3CC \uC0AC\uBCF8 {n}\uAC1C \uC0DD\uC131\uB428",
|
|
"m.statusTip": "{title}. \uD074\uB9AD\uD558\uBA74 \uB3D9\uAE30\uD654 \uC0C1\uD0DC\uB97C \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.notThere": "{host} (\uD30C\uC77C \uC5C6\uC74C)",
|
|
"app.signIn": "GitHub\uB85C \uB85C\uADF8\uC778",
|
|
"app.signInDesc": "\uD1A0\uD070\uC744 \uB9CC\uB4DC\uB294 \uB300\uC2E0 \uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C \uC811\uADFC\uC744 \uC2B9\uC778\uD569\uB2C8\uB2E4. \uC571\uC740 \uC120\uD0DD\uD55C \uC800\uC7A5\uC18C\uC5D0\uB9CC \uC811\uADFC\uD558\uBA70, \uC811\uADFC \uAD8C\uD55C\uC740 \uC790\uB3D9\uC73C\uB85C \uAC31\uC2E0\uB429\uB2C8\uB2E4.",
|
|
"app.signInBtn": "\uB85C\uADF8\uC778",
|
|
"app.orToken": "\uB610\uB294 \uC561\uC138\uC2A4 \uD1A0\uD070 \uC0AC\uC6A9",
|
|
"app.starting": "{host}\uC5D0 \uC5F0\uACB0\uD558\uB294 \uC911\u2026",
|
|
"app.notAvailable": "\uC774 \uC11C\uBC84\uC5D0\uC11C\uB294 {host}\uB85C \uB85C\uADF8\uC778\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC561\uC138\uC2A4 \uD1A0\uD070\uC744 \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"app.codeBody": "\uC774 \uCF54\uB4DC\uB97C \uBCF5\uC0AC\uD55C \uB2E4\uC74C, \uC5F4\uB9AC\uB294 {host} \uD398\uC774\uC9C0\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694:",
|
|
"app.copy": "\uCF54\uB4DC \uBCF5\uC0AC",
|
|
"app.copied": "\uCF54\uB4DC \uBCF5\uC0AC\uB428",
|
|
"app.open": "\uBCF5\uC0AC\uD558\uACE0 {host} \uC5F4\uAE30",
|
|
"app.waiting": "{host}\uC5D0\uC11C \uC2B9\uC778\uD558\uAE30\uB97C \uAE30\uB2E4\uB9AC\uB294 \uC911\u2026",
|
|
"app.expired": "\uCF54\uB4DC\uAC00 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC774 \uCC3D\uC744 \uB2EB\uACE0 \uB2E4\uC2DC \uB85C\uADF8\uC778\uD558\uC138\uC694.",
|
|
"app.denied": "{host}\uC5D0\uC11C \uC811\uADFC\uC774 \uAC70\uBD80\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"app.disabled": "\uC774 GitHub App\uC740 \uAE30\uAE30 \uB85C\uADF8\uC778\uC744 \uD5C8\uC6A9\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC561\uC138\uC2A4 \uD1A0\uD070\uC744 \uC0AC\uC6A9\uD558\uAC70\uB098, \uC571 \uC18C\uC720\uC790\uC5D0\uAC8C \uAE30\uAE30 \uD750\uB984(device flow)\uC744 \uD65C\uC131\uD654\uD574 \uB2EC\uB77C\uACE0 \uC694\uCCAD\uD558\uC138\uC694.",
|
|
"app.failed": "\uB85C\uADF8\uC778 \uC2E4\uD328: {error}",
|
|
"app.signedIn": "GitHub\uB85C \uB85C\uADF8\uC778\uB428",
|
|
"app.signedInDesc": "\uC774 \uAE30\uAE30\uB294 Vault Sync for GitHub GitHub App\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC811\uADFC \uAD8C\uD55C\uC740 \uC790\uB3D9\uC73C\uB85C \uAC31\uC2E0\uB429\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"app.signOut": "\uB85C\uADF8\uC544\uC6C3",
|
|
"app.chooseRepos": "\uC800\uC7A5\uC18C \uC120\uD0DD",
|
|
"app.chooseReposDesc": "\uBCF4\uAD00\uC18C \uC800\uC7A5\uC18C\uAC00 \uBCF4\uC774\uC9C0 \uC54A\uB098\uC694? GitHub\uC5D0\uC11C \uCD94\uAC00\uD558\uAC70\uB098 \uBA3C\uC800 \uADF8\uACF3\uC5D0\uC11C \uB9CC\uB4DC\uC138\uC694. \uB3CC\uC544\uC624\uBA74 \uBAA9\uB85D\uC774 \uC790\uB3D9\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB429\uB2C8\uB2E4.",
|
|
"app.createOnGitHub": "GitHub\uC5D0\uC11C \uB9CC\uB4E4\uAE30",
|
|
"app.refresh": "\uBAA9\uB85D \uC0C8\uB85C\uACE0\uCE68",
|
|
"app.expiredSession": "{host} \uB85C\uADF8\uC778\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC124\uC815 \u2192 Vault Sync for Git\uC5D0\uC11C \uB2E4\uC2DC \uB85C\uADF8\uC778\uD558\uC138\uC694.",
|
|
"app.clientId": "GitHub App \uD074\uB77C\uC774\uC5B8\uD2B8 ID (\uC120\uD0DD \uC0AC\uD56D)",
|
|
"app.clientIdDesc": "GitHub Enterprise\uC5D0\uC11C GitHub\uB85C \uB85C\uADF8\uC778\uC744 \uC81C\uACF5\uD558\uB824\uBA74, \uAE30\uAE30 \uD750\uB984(device flow)\uC774 \uD65C\uC131\uD654\uB418\uC5B4 \uC788\uACE0 Contents \uC77D\uAE30 \uBC0F \uC4F0\uAE30 \uAD8C\uD55C\uC774 \uC788\uB294 GitHub App\uC758 \uD074\uB77C\uC774\uC5B8\uD2B8 ID\uB97C \uC785\uB825\uD558\uC138\uC694. \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"app.slug": "GitHub App URL \uC774\uB984",
|
|
"app.slugDesc": "https://your-server/apps/NAME\uC758 NAME\uC73C\uB85C, \uC571 \uC124\uCE58 \uD398\uC774\uC9C0\uB97C \uC5EC\uB294 \uB370 \uC0AC\uC6A9\uB429\uB2C8\uB2E4.",
|
|
"h.refresh": "\uC0C8\uB85C\uACE0\uCE68",
|
|
"h.setupHint": "\uC124\uC815 \uB9C8\uBC95\uC0AC\uB97C \uC2E4\uD589\uD574 Git \uD638\uC2A4\uD2B8\uC640 \uC800\uC7A5\uC18C\uB97C \uC5F0\uACB0\uD558\uC138\uC694.",
|
|
"h.resolve": "\uD574\uACB0",
|
|
"h.resolveTitle": "\uCDA9\uB3CC \uD574\uACB0: {path}",
|
|
"h.currentNote": "\uD604\uC7AC \uB178\uD2B8",
|
|
"h.conflictCopy": "\uCDA9\uB3CC \uC0AC\uBCF8",
|
|
"h.tokenExpires": "\uC561\uC138\uC2A4 \uD1A0\uD070\uC774 {days}\uC77C \uD6C4 \uB9CC\uB8CC\uB429\uB2C8\uB2E4. \uC0C8 \uD1A0\uD070\uC744 \uB9CC\uB4E4\uC5B4 \uC124\uC815\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694.",
|
|
"h.tokenExpiresToday": "\uC561\uC138\uC2A4 \uD1A0\uD070\uC774 \uC624\uB298 \uB9CC\uB8CC\uB429\uB2C8\uB2E4. \uC0C8 \uD1A0\uD070\uC744 \uB9CC\uB4E4\uC5B4 \uC124\uC815\uC5D0 \uBD99\uC5EC\uB123\uC73C\uC138\uC694.",
|
|
"h.newToken": "\uC0C8 \uD1A0\uD070 \uB9CC\uB4E4\uAE30",
|
|
"u.previewTitle": "\uB3D9\uAE30\uD654 \uBBF8\uB9AC \uBCF4\uAE30",
|
|
"u.previewHint": "\uC544\uC9C1 \uC544\uBB34\uAC83\uB3C4 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB2E4\uC74C \uB3D9\uAE30\uD654\uC5D0\uC11C \uC218\uD589\uB420 \uC791\uC5C5\uC785\uB2C8\uB2E4.",
|
|
"u.close": "\uB2EB\uAE30",
|
|
"s.configDirWarn": "\uD50C\uB7EC\uADF8\uC778 \uCF54\uB4DC\uB3C4 \uB3D9\uAE30\uD654\uB418\uBBC0\uB85C \uC800\uC7A5\uC18C\uC5D0 \uD478\uC2DC\uD560 \uC218 \uC788\uB294 \uC0AC\uB78C\uC740 \uB204\uAD6C\uB098 \uAE30\uAE30\uC5D0\uC11C \uCF54\uB4DC\uB97C \uC2E4\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB3D9\uAE30\uD654\uB41C \uD50C\uB7EC\uADF8\uC778\uC740 \uB2E4\uC2DC \uC2DC\uC791\uD55C \uD6C4 \uB85C\uB4DC\uB429\uB2C8\uB2E4.",
|
|
"p.scanning": "\uD30C\uC77C \uAC80\uC0AC \uC911\u2026",
|
|
"p.checking": "{host} \uD655\uC778 \uC911\u2026",
|
|
"p.downloading": "\uB2E4\uC6B4\uB85C\uB4DC \uC911 {done}/{total}",
|
|
"p.uploading": "\uC5C5\uB85C\uB4DC \uC911 {done}/{total}",
|
|
"cmd.syncFile": "\uD604\uC7AC \uD30C\uC77C \uC9C0\uAE08 \uB3D9\uAE30\uD654",
|
|
"cmd.setupLink": "\uB2E4\uB978 \uAE30\uAE30 \uCD94\uAC00 (\uC124\uC815 \uB9C1\uD06C)",
|
|
"x.pending": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uD3B8\uC9D1\uB428",
|
|
"x.conflict": "\uCDA9\uB3CC \uC0AC\uBCF8: \uB3D9\uAE30\uD654 \uC0C1\uD0DC \uD328\uB110\uC5D0\uC11C \uD574\uACB0\uD558\uC138\uC694",
|
|
"os.title": "\uB2E4\uB978 \uB3D9\uAE30\uD654 \uB3C4\uAD6C\uAC00 \uD65C\uC131\uD654\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4",
|
|
"os.found": "\uC774 \uBCF4\uAD00\uC18C\uB97C \uD568\uAED8 \uB3D9\uAE30\uD654\uD558\uB294 \uB3C4\uAD6C: {list}.",
|
|
"os.gitFolder": "Git \uC800\uC7A5\uC18C (.git \uD3F4\uB354)",
|
|
"os.hint": "\uB450 \uB3C4\uAD6C\uAC00 \uAC19\uC740 \uD30C\uC77C\uC5D0 \uC4F0\uBA74 \uC11C\uB85C\uC758 \uBCC0\uACBD \uC0AC\uD56D\uC744 \uB36E\uC5B4\uC4F8 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uBCF4\uAD00\uC18C\uC5D0\uB294 \uD558\uB098\uB9CC \uC0AC\uC6A9\uD558\uAC70\uB098, \uC11C\uB85C \uB2E4\uB978 \uD3F4\uB354\uB97C \uB3D9\uAE30\uD654\uD558\uB3C4\uB85D \uD558\uC138\uC694.",
|
|
"link.addDevice": "\uB2E4\uB978 \uAE30\uAE30 \uCD94\uAC00",
|
|
"link.addDeviceDesc": "\uC774 \uC800\uC7A5\uC18C\uC640 \uC774 \uB3D9\uAE30\uD654 \uC124\uC815\uC73C\uB85C \uB2E4\uB978 \uAE30\uAE30\uB97C \uC124\uC815\uD558\uB294 \uB9C1\uD06C\uC640 QR \uCF54\uB4DC\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",
|
|
"link.createBtn": "\uC124\uC815 \uB9C1\uD06C \uB9CC\uB4E4\uAE30",
|
|
"link.createTitle": "\uB2E4\uB978 \uAE30\uAE30 \uCD94\uAC00",
|
|
"link.createIntro": "\uC0C8 \uAE30\uAE30\uC5D0 \uD50C\uB7EC\uADF8\uC778\uC744 \uC124\uCE58\uD55C \uB4A4 \uADF8 \uAE30\uAE30\uC5D0\uC11C \uC774 \uB9C1\uD06C\uB97C \uC5EC\uC138\uC694(\uB610\uB294 \uCE74\uBA54\uB77C\uB85C \uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694). \uD638\uC2A4\uD2B8, \uC800\uC7A5\uC18C, \uB3D9\uAE30\uD654 \uC124\uC815\uC774 \uC790\uB3D9\uC73C\uB85C \uC785\uB825\uB429\uB2C8\uB2E4.",
|
|
"link.includeToken": "\uC561\uC138\uC2A4 \uD1A0\uD070 \uD3EC\uD568",
|
|
"link.includeTokenDesc": "\uD1A0\uD070\uC740 \uC544\uB798\uC5D0 \uD45C\uC2DC\uB418\uB294 \uC77C\uD68C\uC6A9 \uCF54\uB4DC\uB85C \uC554\uD638\uD654\uB429\uB2C8\uB2E4. \uCF54\uB4DC\uAC00 \uC5C6\uC73C\uBA74 \uB9C1\uD06C\uB294 \uC4F8\uBAA8\uAC00 \uC5C6\uC73C\uB2C8, \uCF54\uB4DC\uB294 \uB530\uB85C \uACF5\uC720\uD558\uC138\uC694.",
|
|
"link.signInNote": "\uC774 \uAE30\uAE30\uB294 {host}\uB85C \uB85C\uADF8\uC778\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uC0C8 \uAE30\uAE30\uB294 \uC9C1\uC811 \uB85C\uADF8\uC778\uD558\uBBC0\uB85C \uD1A0\uD070\uC774 \uD3EC\uD568\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"link.encrypting": "\uC554\uD638\uD654 \uC911\u2026",
|
|
"link.link": "\uC124\uC815 \uB9C1\uD06C",
|
|
"link.linkDesc": "\uC774\uBA54\uC77C\uC774\uB098 \uBA54\uBAA8 \uC571 \uB4F1\uC73C\uB85C \uC790\uC2E0\uC5D0\uAC8C \uBCF4\uB0B4\uC138\uC694.",
|
|
"link.copyLink": "\uB9C1\uD06C \uBCF5\uC0AC",
|
|
"link.copied": "\uBCF5\uC0AC\uB428",
|
|
"link.qrLabel": "\uC124\uC815 \uB9C1\uD06C\uC758 QR \uCF54\uB4DC",
|
|
"link.codeIntro": "\uC77C\uD68C\uC6A9 \uCF54\uB4DC (\uC0C8 \uAE30\uAE30\uC5D0\uC11C \uC785\uB825\uD558\uC138\uC694):",
|
|
"link.keepApart": "\uCF54\uB4DC\uB97C \uB9C1\uD06C\uC640 \uD568\uAED8 \uBCF4\uB0B4\uC9C0 \uB9C8\uC138\uC694.",
|
|
"link.noSecrets": "\uB9C1\uD06C\uC5D0\uB294 \uD1A0\uD070\uC774\uB098 \uBE44\uBC00\uBC88\uD638\uAC00 \uD3EC\uD568\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC0C8 \uAE30\uAE30\uB294 \uC790\uCCB4 \uB85C\uADF8\uC778 \uB610\uB294 \uD1A0\uD070\uC73C\uB85C \uC5F0\uACB0\uD569\uB2C8\uB2E4.",
|
|
"link.applyTitle": "\uB9C1\uD06C\uB85C \uC774 \uAE30\uAE30 \uC124\uC815",
|
|
"link.applyIntro": '\uC774 \uB9C1\uD06C\uB294 \uBCF4\uAD00\uC18C "{vault}"\uC758 \uB3D9\uAE30\uD654\uB97C \uC124\uC815\uD569\uB2C8\uB2E4:',
|
|
"link.server": "\uC11C\uBC84: {url}",
|
|
"link.withSettings": "\uC124\uC815 \uD3F4\uB354\uB3C4 \uAC19\uC740 \uC120\uD0DD\uC73C\uB85C \uB3D9\uAE30\uD654",
|
|
"link.withToken": "\uC561\uC138\uC2A4 \uD1A0\uD070 \uD3EC\uD568 (\uC77C\uD68C\uC6A9 \uCF54\uB4DC \uD544\uC694)",
|
|
"link.subdir": "\uC800\uC7A5\uC18C\uC758 \uD3F4\uB354: {folder}",
|
|
"link.onlyYours": "\uC774 \uB9C1\uD06C\uB97C \uC9C1\uC811 \uB9CC\uB4E0 \uACBD\uC6B0\uC5D0\uB9CC \uACC4\uC18D\uD558\uC138\uC694. \uB2E4\uB978 \uC0AC\uB78C\uC774 \uBCF4\uB0B8 \uB9C1\uD06C\uB294 \uB0B4 \uBCF4\uAD00\uC18C\uB97C \uADF8 \uC0AC\uB78C\uC758 \uC800\uC7A5\uC18C\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"link.replaces": "{repo}\uC5D0 \uB300\uD55C \uD604\uC7AC \uC5F0\uACB0\uC744 \uB300\uCCB4\uD569\uB2C8\uB2E4.",
|
|
"link.code": "\uC77C\uD68C\uC6A9 \uCF54\uB4DC",
|
|
"link.codeDesc": "\uB9C1\uD06C\uB97C \uB9CC\uB4E0 \uAE30\uAE30\uC5D0 \uD45C\uC2DC\uB429\uB2C8\uB2E4.",
|
|
"link.apply": "\uC774 \uAE30\uAE30 \uC124\uC815",
|
|
"link.needCode": "\uBA3C\uC800 \uC77C\uD68C\uC6A9 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uC138\uC694.",
|
|
"link.decrypting": "\uCF54\uB4DC \uD655\uC778 \uC911\u2026",
|
|
"link.wrongCode": "\uC774 \uCF54\uB4DC\uB294 \uC774 \uB9C1\uD06C\uC640 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"link.invalid": "\uC774 \uC124\uC815 \uB9C1\uD06C\uAC00 \uBD88\uC644\uC804\uD558\uAC70\uB098 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uC0C8 \uB9C1\uD06C\uB97C \uB9CC\uB4DC\uC138\uC694.",
|
|
"link.wizardHint": '\uC774\uBBF8 \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uB3D9\uAE30\uD654 \uC911\uC778\uAC00\uC694? \uADF8 \uAE30\uAE30\uC758 \uC0C1\uD0DC \uD328\uB110\uC774\uB098 \uC124\uC815\uC5D0\uC11C "\uB2E4\uB978 \uAE30\uAE30 \uCD94\uAC00"\uB97C \uC120\uD0DD\uD55C \uB4A4, \uC5EC\uAE30\uC5D0\uC11C \uB9C1\uD06C\uB97C \uC5EC\uC138\uC694.',
|
|
"s.cfgAppearance": "\uBAA8\uC591 \uBC0F \uD14C\uB9C8",
|
|
"s.cfgAppearanceDesc": "\uD14C\uB9C8, \uAE00\uAF34, \uAC15\uC870 \uC0C9\uC0C1, \uC124\uCE58\uB41C \uD14C\uB9C8\uC785\uB2C8\uB2E4.",
|
|
"s.cfgSnippets": "CSS \uC2A4\uB2C8\uD3AB",
|
|
"s.cfgHotkeys": "\uB2E8\uCD95\uD0A4",
|
|
"s.cfgCore": "\uD575\uC2EC \uC124\uC815",
|
|
"s.cfgCoreDesc": "\uD3B8\uC9D1\uAE30, \uD30C\uC77C \uBC0F \uB9C1\uD06C, \uD575\uC2EC \uD50C\uB7EC\uADF8\uC778\uACFC \uADF8 \uC635\uC158\uC785\uB2C8\uB2E4.",
|
|
"s.cfgPluginList": "\uCF1C\uC838 \uC788\uB294 \uCEE4\uBBA4\uB2C8\uD2F0 \uD50C\uB7EC\uADF8\uC778",
|
|
"s.cfgPluginListDesc": "\uD55C \uAE30\uAE30\uC5D0\uC11C \uD50C\uB7EC\uADF8\uC778\uC744 \uCF1C\uAC70\uB098 \uB044\uBA74 \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C\uB3C4 \uB611\uAC19\uC774 \uC801\uC6A9\uB429\uB2C8\uB2E4.",
|
|
"s.cfgPluginCode": "\uCEE4\uBBA4\uB2C8\uD2F0 \uD50C\uB7EC\uADF8\uC778 \uCF54\uB4DC",
|
|
"s.cfgPluginCodeDesc": "\uBAA8\uB4E0 \uAE30\uAE30\uC5D0 \uD50C\uB7EC\uADF8\uC778\uC744 \uC124\uCE58\uD558\uACE0 \uC5C5\uB370\uC774\uD2B8\uD569\uB2C8\uB2E4. \uB3D9\uAE30\uD654\uB41C \uD50C\uB7EC\uADF8\uC778 \uCF54\uB4DC\uB294 \uBAA8\uB4E0 \uAE30\uAE30\uC5D0\uC11C \uC2E4\uD589\uB420 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"s.cfgPluginSettings": "\uCEE4\uBBA4\uB2C8\uD2F0 \uD50C\uB7EC\uADF8\uC778 \uC124\uC815",
|
|
"s.cfgPerPlugin": "\uD50C\uB7EC\uADF8\uC778\uBCC4\uB85C \uC120\uD0DD",
|
|
"s.cfgPerPluginDesc": "\uAC1C\uBCC4 \uD50C\uB7EC\uADF8\uC778 \uC7AC\uC815\uC758 ({n}\uAC1C \uC124\uC815\uB428).",
|
|
"s.cfgPerPluginBtn": "\uC120\uD0DD",
|
|
"s.cfgPerPluginIntro": '\uD50C\uB7EC\uADF8\uC778\uB9C8\uB2E4 \uC704\uC758 \uC2A4\uC704\uCE58\uB97C \uB530\uB974\uAC70\uB098 \uB3D9\uAE30\uD654\uD560 \uD56D\uBAA9\uC744 \uC120\uD0DD\uD558\uC138\uC694. \uAE30\uAE30\uBCC4 \uB370\uC774\uD130(\uACBD\uB85C, \uCC3D \uB808\uC774\uC544\uC6C3)\uB97C \uAC00\uC9C4 \uD50C\uB7EC\uADF8\uC778\uC740 "\uC774 \uAE30\uAE30\uB9CC"\uC774 \uC801\uD569\uD569\uB2C8\uB2E4.',
|
|
"s.cfgNoPlugins": "\uC124\uCE58\uB41C \uCEE4\uBBA4\uB2C8\uD2F0 \uD50C\uB7EC\uADF8\uC778\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"s.cfgThisPlugin": "\uC774 \uD50C\uB7EC\uADF8\uC778",
|
|
"s.cfgFollow": "\uC2A4\uC704\uCE58 \uB530\uB974\uAE30",
|
|
"s.cfgAll": "\uCF54\uB4DC\uC640 \uC124\uC815",
|
|
"s.cfgCodeOnly": "\uCF54\uB4DC\uB9CC",
|
|
"s.cfgSettingsOnly": "\uC124\uC815\uB9CC",
|
|
"s.cfgNone": "\uC774 \uAE30\uAE30\uB9CC",
|
|
"s.hidden": "\uC228\uAE40 \uD30C\uC77C \uBC0F \uD3F4\uB354 \uB3D9\uAE30\uD654",
|
|
"s.hiddenDesc": "\uBCF4\uAD00\uC18C \uCD5C\uC0C1\uC704\uC5D0 \uC788\uB294, \uC774\uB984\uC774 \uC810\uC73C\uB85C \uC2DC\uC791\uD558\uB294 \uD30C\uC77C\uACFC \uD3F4\uB354(\uC608: .github, .editorconfig). .git, .trash, \uC124\uC815 \uD3F4\uB354\uB294 \uC81C\uC678\uB429\uB2C8\uB2E4. \uBCC0\uACBD \uC0AC\uD56D\uC740 \uBA87 \uBD84 \uC548\uC5D0 \uAC10\uC9C0\uB429\uB2C8\uB2E4.",
|
|
"s.gitignore": "\uBCF4\uAD00\uC18C\uC758 .gitignore \uB530\uB974\uAE30",
|
|
"s.gitignoreDesc": "\uBCF4\uAD00\uC18C\uC758 .gitignore \uD30C\uC77C\uC5D0 \uB098\uC5F4\uB41C \uD30C\uC77C\uC740 \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC73C\uBA70(\uD3F4\uB354 \uC548\uC758 .gitignore\uB294 Git\uCC98\uB7FC \uD574\uB2F9 \uD3F4\uB354\uC5D0 \uC801\uC6A9\uB428), .gitignore \uD30C\uC77C \uC790\uCCB4\uB294 \uBAA8\uB4E0 \uAE30\uAE30\uC5D0 \uB3D9\uAE30\uD654\uB429\uB2C8\uB2E4. \uC81C\uC678 \uD328\uD134\uC774 \uC5EC\uC804\uD788 \uCD5C\uC6B0\uC120\uC785\uB2C8\uB2E4.",
|
|
"s.onOpen": "\uB178\uD2B8\uB97C \uC5F4 \uB54C \uB3D9\uAE30\uD654",
|
|
"s.onOpenDesc": "\uD3B8\uC9D1\uD558\uAE30 \uC804\uC5D0 \uCD5C\uC2E0 \uBC84\uC804\uC744 \uAC00\uC838\uC635\uB2C8\uB2E4(\uCD5C\uB300 30\uCD08\uC5D0 \uD55C \uBC88).",
|
|
"s.badges": "\uD30C\uC77C \uD0D0\uC0C9\uAE30\uC5D0 \uB3D9\uAE30\uD654 \uC0C1\uD0DC \uD45C\uC2DC",
|
|
"s.badgesDesc": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uD3B8\uC9D1\uB41C \uD30C\uC77C\uC5D0\uB294 \uC810\uC774, \uCDA9\uB3CC \uC0AC\uBCF8\uC5D0\uB294 \uACBD\uACE0\uAC00 \uD45C\uC2DC\uB429\uB2C8\uB2E4.",
|
|
"s.noticesAuto": "\uC790\uB3D9 (\uD734\uB300\uD3F0\uC5D0\uC11C\uB294 \uBCC0\uACBD \uC0AC\uD56D, \uB370\uC2A4\uD06C\uD1B1\uC5D0\uC11C\uB294 \uC624\uB958)",
|
|
"s.noticesChanges": "\uD30C\uC77C\uC774 \uBCC0\uACBD\uB420 \uB54C \uBC0F \uC624\uB958",
|
|
"s.cfgPluginSettingsDesc": "\uAC01 \uD50C\uB7EC\uADF8\uC778\uC758 \uC635\uC158 (data.json).",
|
|
"link.tooLongForQr": "\uC774 \uB9C1\uD06C\uB294 QR \uCF54\uB4DC\uB85C \uB9CC\uB4E4\uAE30\uC5D0 \uB108\uBB34 \uAE41\uB2C8\uB2E4. \uB300\uC2E0 \uB9C1\uD06C\uB97C \uBCF5\uC0AC\uD558\uC138\uC694.",
|
|
"link.withHidden": "\uBCF4\uAD00\uC18C \uCD5C\uC0C1\uC704\uC758 \uC228\uAE40 \uD30C\uC77C\uB3C4 \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4",
|
|
"link.withGitignore": "\uBCF4\uAD00\uC18C\uC758 .gitignore\uB97C \uB530\uB985\uB2C8\uB2E4",
|
|
"link.withExclude": "\uC774 \uBCF4\uAD00\uC18C\uC758 \uC81C\uC678 \uD328\uD134\uC744 \uBC14\uAFC9\uB2C8\uB2E4",
|
|
"s.apiBaseInvalid": "https://\uB85C \uC2DC\uC791\uD558\uB294 API \uC8FC\uC18C\uB97C \uC785\uB825\uD558\uC138\uC694(http://\uB294 \uC774 \uCEF4\uD4E8\uD130\uC758 \uC11C\uBC84\uC5D0\uB9CC \uC0AC\uC6A9).",
|
|
"s.lfsAboveMax": "\uB300\uC6A9\uB7C9 \uD30C\uC77C \uAE30\uC900 \uD06C\uAE30\uAC00 \uCD5C\uB300 \uD30C\uC77C \uD06C\uAE30({max}MB) \uC774\uC0C1\uC774\uBBC0\uB85C \uB300\uC6A9\uB7C9 \uD30C\uC77C \uC800\uC7A5\uC18C\uAC00 \uC0AC\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uAE30\uC900 \uD06C\uAE30\uB97C \uB0AE\uCD94\uAC70\uB098 \uCD5C\uB300 \uD06C\uAE30\uB97C \uB192\uC774\uC138\uC694.",
|
|
"s.guardMinLabel": "\uCD5C\uC18C \uC0AD\uC81C \uAC1C\uC218",
|
|
"s.guardPercentLabel": "\uCD5C\uC18C \uD30C\uC77C \uBE44\uC728",
|
|
"sh.notFound": "\uC800\uC7A5\uC18C\uB97C \uCC3E\uC744 \uC218 \uC5C6\uAC70\uB098 \uC774 \uD1A0\uD070\uC73C\uB85C \uC811\uADFC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
"m.unlockToBrowse": "\uC774 \uC800\uC7A5\uC18C\uB294 \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uB458\uB7EC\uBCF4\uB824\uBA74 \uC774 \uAE30\uAE30\uC5D0\uC11C \uC554\uD638\uBB38\uAD6C\uB97C \uC785\uB825\uD558\uC138\uC694.",
|
|
"m.beforeCommit": "{sha} \uC774\uC804",
|
|
"m.mergedN": "{n}\uAC1C \uBCD1\uD569\uB428",
|
|
"m.nothingToSnapshot": "\uC544\uC9C1 \uC2A4\uB0C5\uC0F7\uC73C\uB85C \uB9CC\uB4E4 \uB0B4\uC6A9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uBA3C\uC800 \uB3D9\uAE30\uD654\uD558\uC138\uC694.",
|
|
"m.queued": "\uB3D9\uAE30\uD654\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uB05D\uB098\uBA74 \uBC14\uB85C \uC774\uC5B4\uC11C \uC694\uCCAD\uD55C \uB3D9\uAE30\uD654\uAC00 \uC2DC\uC791\uB429\uB2C8\uB2E4.",
|
|
"h.deleteCopyBody": "\uCDA9\uB3CC \uC0AC\uBCF8\uC740 \uD734\uC9C0\uD1B5\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4(Obsidian\uC758 '\uC0AD\uC81C\uB41C \uD30C\uC77C' \uC124\uC815\uC5D0 \uB530\uB77C \uC0AD\uC81C\uB420 \uC218\uB3C4 \uC788\uC2B5\uB2C8\uB2E4). \uD544\uC694\uD55C \uB0B4\uC6A9\uC744 \uB0A8\uACBC\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.",
|
|
"u.binaryFile": "(\uBC14\uC774\uB108\uB9AC \uD30C\uC77C, {n}\uBC14\uC774\uD2B8)",
|
|
"u.selectGroup": "\uBAA8\uB450 \uC120\uD0DD: {group}",
|
|
"u.includeFile": "\uC774\uBC88 \uB3D9\uAE30\uD654\uC5D0 {path} \uD3EC\uD568",
|
|
"m.pausedStatus": "\uC790\uB3D9 \uB3D9\uAE30\uD654 \uC77C\uC2DC \uC911\uC9C0\uB428",
|
|
"m.paused": "\uB2E4\uC2DC \uC2DC\uC791\uD560 \uB54C\uAE4C\uC9C0 \uC774 \uAE30\uAE30\uC758 \uC790\uB3D9 \uB3D9\uAE30\uD654\uB97C \uC77C\uC2DC \uC911\uC9C0\uD588\uC2B5\uB2C8\uB2E4. \uC218\uB3D9 \uB3D9\uAE30\uD654\uB294 \uACC4\uC18D \uC791\uB3D9\uD569\uB2C8\uB2E4.",
|
|
"m.pausedFor": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC790\uB3D9 \uB3D9\uAE30\uD654\uB97C {n}\uBD84 \uB3D9\uC548 \uC77C\uC2DC \uC911\uC9C0\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"m.resumed": "\uC790\uB3D9 \uB3D9\uAE30\uD654\uB97C \uB2E4\uC2DC \uC2DC\uC791\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"cmd.pause": "\uC790\uB3D9 \uB3D9\uAE30\uD654 \uC77C\uC2DC \uC911\uC9C0 \uB610\uB294 \uB2E4\uC2DC \uC2DC\uC791",
|
|
"cmd.pauseHour": "\uC790\uB3D9 \uB3D9\uAE30\uD654 1\uC2DC\uAC04 \uC77C\uC2DC \uC911\uC9C0",
|
|
"cmd.diagnostics": "\uC9C4\uB2E8 \uC815\uBCF4 \uBCF5\uC0AC (\uBC84\uADF8 \uC2E0\uACE0\uC6A9)",
|
|
"cmd.openOnHost": "\uD638\uC2A4\uD2B8\uC5D0\uC11C \uD604\uC7AC \uD30C\uC77C \uC5F4\uAE30",
|
|
"cmd.historyOnHost": "\uD638\uC2A4\uD2B8\uC5D0\uC11C \uD604\uC7AC \uD30C\uC77C\uC758 \uAE30\uB85D \uC5F4\uAE30",
|
|
"cmd.copyHostLink": "\uD638\uC2A4\uD2B8\uC758 \uD604\uC7AC \uD30C\uC77C \uB9C1\uD06C \uBCF5\uC0AC",
|
|
"menu.shareFolder": "\uC774 \uD3F4\uB354\uB97C \uC800\uC7A5\uC18C\uC640 \uACF5\uC720\u2026",
|
|
"menu.excludeFolder": "\uC774 \uD3F4\uB354\uB97C \uB3D9\uAE30\uD654\uC5D0\uC11C \uC81C\uC678",
|
|
"menu.openOnHost": "{host}\uC5D0\uC11C \uC5F4\uAE30",
|
|
"menu.copyHostLink": "{host} \uB9C1\uD06C \uBCF5\uC0AC",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "\uC774 \uC800\uC7A5\uC18C\uB294 \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC73C\uBBC0\uB85C \uD30C\uC77C\uC5D0 \uD638\uC2A4\uD2B8\uC5D0\uC11C \uC77D\uC744 \uC218 \uC788\uB294 \uC8FC\uC18C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"m.hostLinkUnsupported": "{host}\uC5D0\uB294 \uC774 \uD30C\uC77C\uC758 \uC6F9 \uD398\uC774\uC9C0\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"m.alreadyExcluded": "{folder}\uC740(\uB294) \uC774\uBBF8 \uC81C\uC678\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"m.excludeBody": "{folder}\uC758 \uD30C\uC77C\uC740 \uC774\uC81C \uC5B4\uB5A4 \uAE30\uAE30\uC5D0\uC11C\uB3C4 \uC5C5\uB85C\uB4DC, \uB2E4\uC6B4\uB85C\uB4DC, \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC9C0\uAE08 \uC0AD\uC81C\uB418\uB294 \uAC83\uC740 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"m.excluded": "{folder}\uC744(\uB97C) \uB3D9\uAE30\uD654\uC5D0\uC11C \uC81C\uC678\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"m.diagnosticsCopied": "\uC9C4\uB2E8 \uC815\uBCF4\uB97C \uBCF5\uC0AC\uD588\uC2B5\uB2C8\uB2E4. \uD1A0\uD070\uC740 \uAC00\uB824\uC838 \uC788\uC9C0\uB9CC \uB85C\uADF8\uC758 \uD30C\uC77C \uC774\uB984\uC774 \uD3EC\uD568\uB418\uC5B4 \uC788\uC73C\uB2C8 \uACF5\uC720\uD558\uAE30 \uC804\uC5D0 \uB0B4\uC6A9\uC744 \uD655\uC778\uD558\uC138\uC694.",
|
|
"h.resume": "\uB2E4\uC2DC \uC2DC\uC791",
|
|
"h.pause": "1\uC2DC\uAC04 \uC77C\uC2DC \uC911\uC9C0",
|
|
"h.pausedUntilResumed": "\uB2E4\uC2DC \uC2DC\uC791\uD560 \uB54C\uAE4C\uC9C0 \uC790\uB3D9 \uB3D9\uAE30\uD654\uAC00 \uC77C\uC2DC \uC911\uC9C0\uB429\uB2C8\uB2E4.",
|
|
"h.pausedUntil": "\uC790\uB3D9 \uB3D9\uAE30\uD654\uAC00 {time}\uAE4C\uC9C0 \uC77C\uC2DC \uC911\uC9C0\uB429\uB2C8\uB2E4.",
|
|
"h.batterySaverOn": "\uBC30\uD130\uB9AC \uC808\uC57D \uBAA8\uB4DC\uAC00 \uCF1C\uC838 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC8FC\uAE30\uC801 \uB3D9\uAE30\uD654\uC640 \uD3B8\uC9D1 \uD6C4 \uB3D9\uAE30\uD654\uB97C \uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"h.batterySaverTurnOn": "\uBC30\uD130\uB9AC \uC808\uC57D \uBAA8\uB4DC \uCF1C\uAE30",
|
|
"h.batterySaverOff": "\uBC30\uD130\uB9AC \uC808\uC57D \uBAA8\uB4DC \uB044\uAE30",
|
|
"h.versionMismatch": "\uAE30\uAE30\uB9C8\uB2E4 \uC774 \uD50C\uB7EC\uADF8\uC778\uC758 \uBC84\uC804\uC774 \uB2E4\uB985\uB2C8\uB2E4(\uC774 \uAE30\uAE30: {mine}; {list}). \uAC19\uC740 \uBC29\uC2DD\uC73C\uB85C \uB3D9\uAE30\uD654\uB418\uB3C4\uB85D \uBAA8\uB450 \uC5C5\uB370\uC774\uD2B8\uD558\uC138\uC694.",
|
|
"h.badNames": "Windows\uC5D0\uC11C \uC800\uC7A5\uD560 \uC218 \uC5C6\uB294 \uC774\uB984 ({n})",
|
|
"h.badNamesHint": '\uC774 \uD30C\uC77C\uB4E4\uC740 Windows \uAE30\uAE30(\uBC0F \uC77C\uBD80 Android \uAE30\uAE30)\uC5D0 \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC774\uB984\uC744 \uBC14\uAFD4 < > : " | ? * \uB610\uB294 \uB05D\uC5D0 \uBD99\uC740 \uC810\uC774\uB098 \uACF5\uBC31\uC744 \uC5C6\uC560\uC138\uC694.',
|
|
"u.filterSearch": "\uC774\uB984\uC73C\uB85C \uD544\uD130",
|
|
"u.filterAll": "\uC804\uCCB4",
|
|
"u.filterUploads": "\uC5C5\uB85C\uB4DC",
|
|
"u.filterDownloads": "\uB2E4\uC6B4\uB85C\uB4DC",
|
|
"u.filterDeletes": "\uC0AD\uC81C",
|
|
"u.filterConflicts": "\uCDA9\uB3CC",
|
|
"m.mirrorFailed": "\uBC31\uC5C5 \uBBF8\uB7EC: {error}",
|
|
"m.hostRemoved": "Gitee\uC640 Azure DevOps\uB294 \uB354 \uC774\uC0C1 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uB3D9\uAE30\uD654\uAC00 \uC77C\uC2DC \uC911\uC9C0\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC124\uC815 \u2192 Vault Sync for Git\uC5D0\uC11C \uB2E4\uB978 \uD638\uC2A4\uD2B8\uB97C \uC120\uD0DD\uD558\uC138\uC694. \uD30C\uC77C\uC740 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",
|
|
"m.hostRemovedOther": "Gitee\uC640 Azure DevOps\uB294 \uB354 \uC774\uC0C1 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC774\uB97C \uC0AC\uC6A9\uD558\uB358 \uBC31\uC5C5 \uBBF8\uB7EC\uB294 \uAEBC\uC84C\uACE0, \uADF8 \uC704\uC758 \uACF5\uC720 \uD3F4\uB354\uB294 \uAC74\uB108\uB701\uB2C8\uB2E4. \uD30C\uC77C\uC740 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",
|
|
"sh.subdir": "\uC800\uC7A5\uC18C \uC548\uC758 \uD3F4\uB354 (\uC120\uD0DD \uC0AC\uD56D)",
|
|
"sh.subdirDesc": "\uACF5\uC720 \uD3F4\uB354\uB97C \uC800\uC7A5\uC18C \uB8E8\uD2B8 \uB300\uC2E0 \uC800\uC7A5\uC18C \uC548\uC758 \uD3F4\uB354(\uC608: docs)\uC5D0 \uC5F0\uACB0\uD569\uB2C8\uB2E4. \uC800\uC7A5\uC18C\uC758 \uB2E4\uB978 \uC704\uCE58\uC5D0 \uC788\uB294 \uD30C\uC77C\uC740 \uADF8\uB300\uB85C \uB461\uB2C8\uB2E4.",
|
|
"sh.conflicts": "\uB450 \uC0AC\uB78C\uC774 \uAC19\uC740 \uC904\uC744 \uBCC0\uACBD\uD588\uC744 \uB54C",
|
|
"sh.conflictsDesc": "\uB450 \uBC84\uC804\uC744 \uBAA8\uB450 \uC5EC\uAE30\uC5D0 \uCDA9\uB3CC \uC0AC\uBCF8\uC73C\uB85C \uBCF4\uAD00\uD558\uAC70\uB098, \uC774 \uAE30\uAE30\uC758 \uBC84\uC804\uC744 \uC0C8 \uBE0C\uB79C\uCE58\uB85C \uBCF4\uB0B4\uACE0 \uD300\uC774 \uAC80\uD1A0\uD560 \uC218 \uC788\uB3C4\uB85D \uD480 \uB9AC\uD018\uC2A4\uD2B8\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",
|
|
"sh.conflictsCopy": "\uB458 \uB2E4 \uBCF4\uAD00 (\uCDA9\uB3CC \uC0AC\uBCF8)",
|
|
"sh.conflictsPr": "\uD480 \uB9AC\uD018\uC2A4\uD2B8 \uC5F4\uAE30",
|
|
"m.prOpened": "{folder}: \uCDA9\uB3CC\uD558\uB294 \uD3B8\uC9D1 \uB0B4\uC6A9\uC744 \uD480 \uB9AC\uD018\uC2A4\uD2B8\uB85C \uBCF4\uB0C8\uC2B5\uB2C8\uB2E4: {url}",
|
|
"pi.title": "\uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uC4F0\uB294 \uD50C\uB7EC\uADF8\uC778 \uC124\uCE58",
|
|
"pi.body": "\uC774 \uCEE4\uBBA4\uB2C8\uD2F0 \uD50C\uB7EC\uADF8\uC778\uB4E4\uC740 \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uCF1C\uC838(\uB610\uB294 \uC5C5\uB370\uC774\uD2B8\uB418\uC5B4) \uC788\uC2B5\uB2C8\uB2E4. Vault Sync for Git\uC740 Obsidian \uCEE4\uBBA4\uB2C8\uD2F0 \uB514\uB809\uD130\uB9AC\uC5D0 \uB4F1\uB85D\uB41C \uB300\uB85C, \uAC01 \uD50C\uB7EC\uADF8\uC778\uC758 GitHub \uACF5\uC2DD \uB9B4\uB9AC\uC2A4\uC5D0\uC11C \uAC19\uC740 \uBC84\uC804\uC744 \uC5EC\uAE30\uC5D0 \uC124\uCE58\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"pi.list": "\uD50C\uB7EC\uADF8\uC778",
|
|
"pi.install": "\uC124\uCE58",
|
|
"pi.failed": "{name}\uC744(\uB97C) \uC124\uCE58\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"pi.done": "\uC124\uCE58\uB428: {list}. \uBD88\uB7EC\uC624\uB824\uBA74 Obsidian\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD558\uC138\uC694(\uB610\uB294 \uAC01 \uD50C\uB7EC\uADF8\uC778\uC744 \uAED0\uB2E4\uAC00 \uCF1C\uC138\uC694).",
|
|
"s.cfgInstall": "\uACF5\uC2DD \uB9B4\uB9AC\uC2A4\uC5D0\uC11C \uD50C\uB7EC\uADF8\uC778 \uCF54\uB4DC \uC124\uCE58",
|
|
"s.cfgInstallDesc": "\uD50C\uB7EC\uADF8\uC778 \uCF54\uB4DC\uB97C \uB3D9\uAE30\uD654\uD558\uB294 \uB300\uC2E0, \uAC01 \uAE30\uAE30\uAC00 \uD50C\uB7EC\uADF8\uC778\uC758 \uACF5\uC2DD \uB9B4\uB9AC\uC2A4\uC5D0\uC11C \uAC19\uC740 \uBC84\uC804\uC744 \uC124\uCE58\uD569\uB2C8\uB2E4(\uD655\uC778 \uD6C4). \uD50C\uB7EC\uADF8\uC778 \uBC84\uC804\uC740 \uACC4\uC18D \uB3D9\uAE30\uD654\uB429\uB2C8\uB2E4. \uB354 \uC548\uC804\uD569\uB2C8\uB2E4. \uB204\uAD6C\uB3C4 \uC800\uC7A5\uC18C\uB97C \uD1B5\uD574 \uB0B4 \uAE30\uAE30\uC5D0 \uCF54\uB4DC\uB97C \uBC00\uC5B4 \uB123\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"s.branchDesc": "\uC774 \uBCF4\uAD00\uC18C\uAC00 \uB3D9\uAE30\uD654\uD558\uB294 \uBE0C\uB79C\uCE58\uC785\uB2C8\uB2E4. \uBC14\uAFB8\uBA74 \uC0C8\uB85C \uBE44\uAD50\uB97C \uC2DC\uC791\uD558\uBA70, \uC544\uBB34\uAC83\uB3C4 \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"s.branchChoose": "\uC120\uD0DD",
|
|
"s.branchIntro": "\uAE30\uC874 \uBE0C\uB79C\uCE58\uB97C \uACE0\uB974\uAC70\uB098, \uD604\uC7AC \uBE0C\uB79C\uCE58\uC5D0\uC11C \uC0C8 \uBE0C\uB79C\uCE58(\uC608: \uCD08\uC548 \uBE0C\uB79C\uCE58)\uB97C \uB9CC\uB4DC\uC138\uC694.",
|
|
"s.branchNew": "\uC0C8 \uBE0C\uB79C\uCE58",
|
|
"s.branchInvalid": "\uC601\uBB38\uC790, \uC22B\uC790, - _ . \uBC0F /\uB9CC \uC0AC\uC6A9\uD558\uC138\uC694.",
|
|
"s.branchNoHead": "{branch} \uBE0C\uB79C\uCE58\uAC00 \uBE44\uC5B4 \uC788\uC5B4 \uC544\uC9C1 \uBD84\uAE30\uD560 \uB300\uC0C1\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"s.branchNone": "\uC544\uC9C1 \uBE0C\uB79C\uCE58\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"s.branchCurrent": "\uD604\uC7AC \uBE0C\uB79C\uCE58",
|
|
"s.branchUse": "\uC0AC\uC6A9",
|
|
"s.emptyFolders": "\uBE48 \uD3F4\uB354 \uC720\uC9C0",
|
|
"s.emptyFoldersDesc": "\uD30C\uC77C\uC774 \uC5C6\uB294 \uD3F4\uB354\uB3C4 \uBAA8\uB4E0 \uAE30\uAE30\uC5D0 \uC720\uC9C0\uB429\uB2C8\uB2E4(.vault-sync/folders.json\uC5D0 \uAE30\uB85D). \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uAC00 \uCF1C\uC838 \uC788\uB294 \uB3D9\uC548\uC5D0\uB294 \uAEBC\uC9D1\uB2C8\uB2E4.",
|
|
"s.battery": "\uBC30\uD130\uB9AC \uC808\uC57D \uBAA8\uB4DC",
|
|
"s.batteryDesc": "\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC8FC\uAE30\uC801 \uB3D9\uAE30\uD654\uC640 \uD3B8\uC9D1 \uD6C4 \uB3D9\uAE30\uD654\uB97C \uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC2DC\uC791\uD560 \uB54C, Obsidian\uC73C\uB85C \uB3CC\uC544\uC62C \uB54C, \uC218\uB3D9\uC73C\uB85C \uB3D9\uAE30\uD654\uD560 \uB54C \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
"s.pause": "\uC790\uB3D9 \uB3D9\uAE30\uD654 \uC77C\uC2DC \uC911\uC9C0",
|
|
"s.pauseDesc": "\uC774 \uAE30\uAE30\uC5D0\uB9CC \uC801\uC6A9\uB429\uB2C8\uB2E4. \uC218\uB3D9 \uB3D9\uAE30\uD654\uB294 \uACC4\uC18D \uC791\uB3D9\uD569\uB2C8\uB2E4.",
|
|
"s.pauseDescOn": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC790\uB3D9 \uB3D9\uAE30\uD654\uAC00 \uC77C\uC2DC \uC911\uC9C0\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"s.pauseUntilResumed": "\uB2E4\uC2DC \uC2DC\uC791\uD560 \uB54C\uAE4C\uC9C0",
|
|
"s.author": "\uCEE4\uBC0B \uC791\uC131\uC790",
|
|
"s.authorDesc": "\uCEE4\uBC0B\uC5D0 \uAE30\uB85D\uB418\uB294 \uC774\uB984\uACFC \uC774\uBA54\uC77C(\uB458 \uB2E4 \uD544\uC694). \uBE44\uC6CC \uB450\uBA74 \uD638\uC2A4\uD2B8\uAC00 \uD1A0\uD070\uC758 \uACC4\uC815\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4.",
|
|
"s.authorName": "\uC774\uB984",
|
|
"s.authorEmail": "\uC774\uBA54\uC77C",
|
|
"s.hMirror": "\uBC31\uC5C5 \uBBF8\uB7EC",
|
|
"s.mirrorIntro": "\uB3D9\uAE30\uD654\uD560 \uB54C\uB9C8\uB2E4 \uC774 \uBCF4\uAD00\uC18C\uB97C \uB450 \uBC88\uC9F8 \uC800\uC7A5\uC18C(\uC608: \uB2E4\uB978 \uD638\uC2A4\uD2B8)\uC5D0\uB3C4 \uC5C5\uB85C\uB4DC\uD569\uB2C8\uB2E4. \uD478\uC2DC \uC804\uC6A9\uC774\uBA70 \uBBF8\uB7EC\uC5D0\uC11C \uB2E4\uC2DC \uC77D\uC5B4 \uC624\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uB97C \uC0AC\uC6A9\uD558\uBA74 \uBBF8\uB7EC\uB3C4 \uC554\uD638\uD654\uB429\uB2C8\uB2E4.",
|
|
"s.mirrorOn": "\uC774 \uBCF4\uAD00\uC18C \uBBF8\uB7EC\uB9C1",
|
|
"s.mirrorToken": "\uBBF8\uB7EC \uD1A0\uD070",
|
|
"s.mirrorTokenDesc": "\uBBF8\uB7EC \uC800\uC7A5\uC18C\uC758 \uC561\uC138\uC2A4 \uD1A0\uD070\uC785\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4. \uBE44\uC6CC \uB450\uBA74 \uAC19\uC740 \uD638\uC2A4\uD2B8\uC778 \uACBD\uC6B0 \uAE30\uBCF8 \uD1A0\uD070\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4.",
|
|
"s.mirrorIncomplete": "\uBA3C\uC800 \uBBF8\uB7EC\uB97C \uCF1C\uACE0 \uC18C\uC720\uC790\uC640 \uC800\uC7A5\uC18C\uB97C \uC785\uB825\uD558\uC138\uC694.",
|
|
"s.mirrorOk": "\uBBF8\uB7EC\uC5D0 \uC5F0\uACB0\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4: {repo}",
|
|
"h.mirror": "\uBC31\uC5C5 \uBBF8\uB7EC {target}: \uB9C8\uC9C0\uB9C9 \uC5C5\uB85C\uB4DC {ago}",
|
|
"h.mirrorFailed": "\uBC31\uC5C5 \uBBF8\uB7EC {target} \uC2E4\uD328: {error}",
|
|
"cmd.overwrite": "\uC800\uC7A5\uC18C\uB97C \uC774 \uAE30\uAE30\uC640 \uC77C\uCE58\uC2DC\uD0A4\uAE30",
|
|
"ow.title": "\uC800\uC7A5\uC18C\uB97C \uC774 \uAE30\uAE30\uC640 \uC77C\uCE58\uC2DC\uD0A4\uAE30",
|
|
"ow.body": "{host}\uC5D0 \uC0C8 \uCEE4\uBC0B \uD558\uB098\uB97C \uB9CC\uB4E4\uC5B4 \uC800\uC7A5\uC18C\uB97C \uC774 \uAE30\uAE30\uC640 \uB611\uAC19\uC774 \uB9CC\uB4ED\uB2C8\uB2E4. \uC774 \uD30C\uC77C\uB4E4\uC740 \uC5C5\uB85C\uB4DC\uB418\uACE0, \uC774 \uD30C\uC77C\uB4E4\uC740 \uC800\uC7A5\uC18C\uC5D0\uC11C \uC0AD\uC81C\uB429\uB2C8\uB2E4(\uAE30\uB85D\uC5D0\uB294 \uB0A8\uC2B5\uB2C8\uB2E4). \uD544\uC694\uD560 \uB54C \uB2E4\uC6B4\uB85C\uB4DC\uD558\uB3C4\uB85D {host}\uC5D0\uB9CC \uBCF4\uAD00\uB41C \uD30C\uC77C\uC740 \uADF8\uB300\uB85C \uB461\uB2C8\uB2E4. \uB2E4\uB978 \uAE30\uAE30\uC5D0\uB294 \uB2E4\uC74C \uB3D9\uAE30\uD654 \uB54C \uBC18\uC601\uB429\uB2C8\uB2E4.",
|
|
"ow.upload": "\uC5C5\uB85C\uB4DC",
|
|
"ow.confirm": "\uC77C\uCE58\uC2DC\uD0A4\uAE30",
|
|
"ow.done": "\uC800\uC7A5\uC18C\uB97C \uC5C5\uB370\uC774\uD2B8\uD588\uC2B5\uB2C8\uB2E4: \uCEE4\uBC0B \uD558\uB098\uC5D0 \uBCC0\uACBD \uC0AC\uD56D {n}\uAC1C.",
|
|
"ow.failed": "\uC800\uC7A5\uC18C\uB97C \uC5C5\uB370\uC774\uD2B8\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"m.clipboardFailed": "\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"ce.ours": "\uC774 \uAE30\uAE30 \uBC84\uC804 \uC720\uC9C0",
|
|
"ce.theirs": "\uC800\uC7A5\uC18C \uBC84\uC804 \uC720\uC9C0",
|
|
"ce.both": "\uB458 \uB2E4 \uC720\uC9C0",
|
|
"ce.hint": "\uCDA9\uB3CC\uD558\uB294 \uBCC0\uACBD:",
|
|
"app.signInGitLab": "GitLab\uC73C\uB85C \uB85C\uADF8\uC778",
|
|
"app.signInDescGitLab": "\uD1A0\uD070\uC744 \uB9CC\uB4DC\uB294 \uB300\uC2E0 \uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C \uC811\uADFC\uC744 \uC2B9\uC778\uD558\uC138\uC694. \uC811\uADFC \uAD8C\uD55C\uC740 \uC790\uB3D9\uC73C\uB85C \uAC31\uC2E0\uB429\uB2C8\uB2E4.",
|
|
"app.signedInGitLab": "GitLab\uC73C\uB85C \uB85C\uADF8\uC778\uB428",
|
|
"app.signedInDescGitLab": "\uC774 \uAE30\uAE30\uB294 GitLab\uC758 Vault Sync for Git \uC560\uD50C\uB9AC\uCF00\uC774\uC158\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC811\uADFC \uAD8C\uD55C\uC740 \uC790\uB3D9\uC73C\uB85C \uAC31\uC2E0\uB429\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"app.glClientId": "GitLab \uC560\uD50C\uB9AC\uCF00\uC774\uC158 ID(\uC120\uD0DD \uC0AC\uD56D)",
|
|
"app.glClientIdDesc": "'GitLab\uC73C\uB85C \uB85C\uADF8\uC778'\uC744 \uC0AC\uC6A9\uD558\uB824\uBA74: GitLab(\uD504\uB85C\uD544 \uD3B8\uC9D1 \u2192 \uC560\uD50C\uB9AC\uCF00\uC774\uC158)\uC5D0\uC11C \uB9CC\uB4E0 api \uBC94\uC704\uC758 \uBE44\uAE30\uBC00 OAuth \uC560\uD50C\uB9AC\uCF00\uC774\uC158\uC758 Application ID\uB97C \uC785\uB825\uD558\uC138\uC694. \uC774 \uAE30\uAE30\uC5D0\uB9CC \uC800\uC7A5\uB429\uB2C8\uB2E4.",
|
|
"sh.ghFormat": "GitHub \uCE5C\uD654\uC801 Markdown",
|
|
"sh.ghFormatDesc": "GitHub\uC5D0\uC11C \uC77D\uAE30 \uC88B\uC740 \uD615\uD0DC\uB85C \uB178\uD2B8\uB97C \uC800\uC7A5\uD569\uB2C8\uB2E4: \uC704\uD0A4\uB9C1\uD06C\uB294 \uB9C1\uD06C\uB85C, \uCF5C\uC544\uC6C3\uC740 \uC54C\uB9BC\uC73C\uB85C, \uD558\uC774\uB77C\uC774\uD2B8\uB294 <mark>\uB85C \uBC14\uB01D\uB2C8\uB2E4. \uBCF4\uAD00\uC18C\uC5D0\uB294 Obsidian \uC6D0\uBCF8 \uD14D\uC2A4\uD2B8\uAC00 \uADF8\uB300\uB85C \uC720\uC9C0\uB429\uB2C8\uB2E4. \uD3F4\uB354\uB97C \uCD94\uAC00\uD560 \uB54C \uC124\uC815\uD569\uB2C8\uB2E4.",
|
|
"s.hiddenNested": "\uD3F4\uB354 \uC548\uC758 \uC228\uAE40 \uD30C\uC77C",
|
|
"s.hiddenNestedDesc": "\uB178\uD2B8 \uD3F4\uB354 \uC548\uC758 \uC228\uAE40 \uD30C\uC77C\uACFC \uD3F4\uB354(\uC608: Notes/.assets)\uB3C4 \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4. \uC124\uC815 \uD3F4\uB354, .trash, .git\uC740 \uC808\uB300 \uD3EC\uD568\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"app.reposTitle": "\uC571\uC774 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB294 \uC800\uC7A5\uC18C",
|
|
"app.addRepos": "GitHub\uC5D0\uC11C \uC800\uC7A5\uC18C \uCD94\uAC00",
|
|
"app.watching": "GitHub\uC5D0\uC11C \uC791\uC5C5\uC744 \uAE30\uB2E4\uB9AC\uB294 \uC911\uC785\uB2C8\uB2E4. \uB3CC\uC544\uC624\uBA74 \uBAA9\uB85D\uC774 \uC790\uB3D9\uC73C\uB85C \uC5C5\uB370\uC774\uD2B8\uB429\uB2C8\uB2E4.",
|
|
"app.noRepos": "\uC571\uC774 \uC544\uC9C1 \uC800\uC7A5\uC18C\uB97C \uBCFC \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. GitHub\uC5D0\uC11C \uBCF4\uAD00\uC18C \uC800\uC7A5\uC18C\uB97C \uCD94\uAC00\uD558\uC138\uC694.",
|
|
"app.newRepo": "\uC0C8\uB85C \uCD94\uAC00",
|
|
"app.newArrived": "\uC800\uC7A5\uC18C\uAC00 \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC704 \uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD\uD558\uC138\uC694.",
|
|
"s.repoPick": "\uC800\uC7A5\uC18C \uC120\uD0DD",
|
|
"s.strategyDesc": "\uC790\uB3D9 \uBCD1\uD569\uC740 \uC11C\uB85C \uB2E4\uB978 \uC904\uC758 \uBCC0\uACBD\uC744 \uD569\uCE58\uACE0, \uAC19\uC740 \uC904\uC774 \uBC14\uB00C\uBA74 \uB450 \uBC84\uC804\uC744 \uBAA8\uB450 \uC720\uC9C0\uD569\uB2C8\uB2E4.",
|
|
"s.pauseDescUntil": "\uC774 \uAE30\uAE30\uC758 \uC790\uB3D9 \uB3D9\uAE30\uD654\uAC00 {time}\uAE4C\uC9C0 \uC77C\uC2DC \uC911\uC9C0\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"s.branchPick": "\uBE0C\uB79C\uCE58 \uC120\uD0DD",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "\uC800\uC7A5\uC18C \uD638\uC2A4\uD2B8",
|
|
"err.network": "{host}\uC640(\uACFC) \uD1B5\uC2E0\uD558\uB294 \uC911 \uB124\uD2B8\uC6CC\uD06C \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4",
|
|
"err.badToken": "{host} \uD1A0\uD070\uC774 \uC798\uBABB\uB418\uC5C8\uAC70\uB098 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"err.forbidden": "{host}\uC5D0\uC11C \uC811\uADFC\uC744 \uAC70\uBD80\uD588\uC2B5\uB2C8\uB2E4(HTTP {status}). \uD1A0\uD070\uC5D0 \uC774 \uC800\uC7A5\uC18C\uC758 \uC77D\uAE30/\uC4F0\uAE30 \uAD8C\uD55C\uC774 \uC788\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.",
|
|
"err.notFound": "{host}\uC5D0\uC11C \uC800\uC7A5\uC18C, \uBE0C\uB79C\uCE58 \uB610\uB294 \uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4(HTTP {status}). \uC800\uC7A5\uC18C \uC774\uB984\uACFC \uD1A0\uD070\uC758 \uC811\uADFC \uAD8C\uD55C\uC744 \uD655\uC778\uD558\uC138\uC694.",
|
|
"err.conflict": "{host}\uC5D0\uC11C \uCDA9\uB3CC\uC744 \uBCF4\uACE0\uD588\uC2B5\uB2C8\uB2E4(HTTP {status}). \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uD478\uC2DC\uD588\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uB3D9\uAE30\uD654\uD558\uC138\uC694.",
|
|
"err.tooLarge": "{host}\uC5D0\uC11C \uB108\uBB34 \uD070 \uD30C\uC77C\uC744 \uAC70\uBD80\uD588\uC2B5\uB2C8\uB2E4(HTTP {status}).",
|
|
"err.rateLimit": "{host} \uC694\uCCAD \uD55C\uB3C4\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. 1\uBD84 \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
|
|
"err.rateLimitMin": "{host} \uC694\uCCAD \uD55C\uB3C4\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. {min}\uBD84 \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
|
|
"err.secondaryRateLimit": "{host} \uBCF4\uC870 \uC694\uCCAD \uD55C\uB3C4\uC5D0 \uB3C4\uB2EC\uD588\uC2B5\uB2C8\uB2E4. 1\uBD84 \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
|
|
"err.server": "{host}\uC5D0 \uBB38\uC81C\uAC00 \uC788\uC2B5\uB2C8\uB2E4(HTTP {status}). \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
|
|
"err.noToken": "{host} \uD1A0\uD070\uC774 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uD50C\uB7EC\uADF8\uC778 \uC124\uC815\uC5D0\uC11C \uCD94\uAC00\uD558\uC138\uC694.",
|
|
"err.foreignLink": "{host}\uC774(\uAC00) \uB2E4\uB978 \uC11C\uBC84\uB85C\uC758 \uB9C1\uD06C({origin})\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4. \uADF8\uACF3\uC73C\uB85C \uD1A0\uD070\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"err.versionUnavailable": "{host}: \uC774 \uD30C\uC77C \uBC84\uC804\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
"err.contentMismatch": '"{path}"\uC744(\uB97C) {host}\uC5D0\uC11C \uC644\uC804\uD788 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4(\uB0B4\uC6A9 \uBD88\uC77C\uCE58). \uB2E4\uC2DC \uB3D9\uAE30\uD654\uD558\uC138\uC694.',
|
|
"err.partialDownload": '"{path}"\uC744(\uB97C) {host}\uC5D0\uC11C \uC644\uC804\uD788 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4({expected}\uBC14\uC774\uD2B8 \uC911 {got}\uBC14\uC774\uD2B8 \uC218\uC2E0). \uB2E4\uC2DC \uB3D9\uAE30\uD654\uD558\uC138\uC694.',
|
|
"err.incompleteDownload": "{path}\uC744(\uB97C) {host}\uC5D0\uC11C \uC644\uC804\uD788 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4({bytes}\uBC14\uC774\uD2B8 \uC218\uC2E0). \uC11C\uBC84\uAC00 API\uB85C \uBCF4\uB0B4\uB294 \uD30C\uC77C \uD06C\uAE30\uB97C \uC81C\uD55C\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"err.commitRefused": "{host}\uC5D0\uC11C \uCEE4\uBC0B\uC744 \uAC70\uBD80\uD588\uC2B5\uB2C8\uB2E4: {detail}",
|
|
"err.commitNotCreated": "{host}\uC5D0\uC11C \uCEE4\uBC0B\uC744 \uB9CC\uB4E4\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4",
|
|
"err.commitNoTree": "\uCEE4\uBC0B {sha}\uC5D0 \uD2B8\uB9AC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
"err.repoTooLarge": "\uC800\uC7A5\uC18C\uAC00 \uB108\uBB34 \uCEE4\uC11C {host}\uC5D0\uC11C \uBAA9\uB85D\uC744 \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"err.badPagination": "{host}\uC774(\uAC00) \uC608\uC0C1\uCE58 \uBABB\uD55C \uD398\uC774\uC9C0 \uB9C1\uD06C\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4",
|
|
"err.listFailed": "{host}\uC5D0\uC11C {ref}\uC758 \uD30C\uC77C \uBAA9\uB85D\uC744 \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4(HTTP 404)",
|
|
"err.blobTooLarge": "{host}: \uD30C\uC77C\uC774 \uC774 \uC11C\uBC84 API\uC758 \uD06C\uAE30 \uC81C\uD55C\uC744 \uB118\uC2B5\uB2C8\uB2E4",
|
|
"err.blobTooLargeMismatch": "{host}: \uD30C\uC77C\uC774 \uC774 \uC11C\uBC84 API\uC758 \uD06C\uAE30 \uC81C\uD55C\uC744 \uB118\uACE0, \uC6D0\uBCF8 \uD30C\uC77C\uB3C4 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",
|
|
"err.unsupportedHost": "\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 Git \uD638\uC2A4\uD2B8: {host}",
|
|
"err.lfsCorrupt": "{path}: \uB300\uC6A9\uB7C9 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC\uAC00 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4",
|
|
"err.lfsError": "\uB300\uC6A9\uB7C9 \uD30C\uC77C \uC800\uC7A5\uC18C: {detail}",
|
|
"err.lfsMissing": "{path}: \uD638\uC2A4\uD2B8\uC758 LFS \uC800\uC7A5\uC18C\uC5D0 \uB300\uC6A9\uB7C9 \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
"err.encLocked": "\uC774 \uC800\uC7A5\uC18C\uB294 \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uAE30\uAE30\uC5D0\uC11C \uB3D9\uAE30\uD654\uD558\uB824\uBA74 \uC124\uC815 \u2192 \uC554\uD638\uD654\uC5D0\uC11C \uC554\uD638\uBB38\uAD6C\uB97C \uC785\uB825\uD558\uC138\uC694.",
|
|
"err.encMismatch": "\uC774 \uC800\uC7A5\uC18C\uB294 \uC774 \uAE30\uAE30\uC5D0\uC11C \uC7A0\uAE08 \uD574\uC81C\uD55C \uAC83\uACFC \uB2E4\uB978 \uC554\uD638\uBB38\uAD6C\uB85C \uC554\uD638\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC124\uC815 \u2192 \uC554\uD638\uD654\uC5D0\uC11C \uB2E4\uC2DC \uC7A0\uAE08 \uD574\uC81C\uD558\uC138\uC694.",
|
|
"err.encUpgraded": "\uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uC885\uB2E8 \uAC04 \uC554\uD638\uD654\uAC00 \uC5C5\uADF8\uB808\uC774\uB4DC\uB418\uC5C8\uC2B5\uB2C8\uB2E4(\uAC19\uC740 \uC554\uD638\uBB38\uAD6C, \uC774\uC81C \uAC01 \uD30C\uC77C\uC774 \uC774\uB984\uC5D0 \uBB36\uC784). \uC774 \uAE30\uAE30\uB3C4 \uC804\uD658\uD588\uC73C\uBA70 \uB2E4\uC74C \uB3D9\uAE30\uD654\uC5D0\uC11C \uACC4\uC18D\uB429\uB2C8\uB2E4.",
|
|
"err.branchMoved": "\uB3D9\uAE30\uD654 \uC911\uC5D0 \uBE0C\uB79C\uCE58\uAC00 \uBC14\uB00C\uC5C8\uC2B5\uB2C8\uB2E4(\uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uD478\uC2DC\uD568).",
|
|
"err.editedDuringSync": "{path}\uC774(\uAC00) \uB3D9\uAE30\uD654 \uC911\uC5D0 \uD3B8\uC9D1\uB418\uC5C8\uC2B5\uB2C8\uB2E4",
|
|
"err.cancelled": "\uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"err.unloaded": "\uD50C\uB7EC\uADF8\uC778\uC774 \uC885\uB8CC\uB418\uC5B4 \uB3D9\uAE30\uD654\uB97C \uC911\uB2E8\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC74C\uC5D0 \uC774\uC5B4\uC11C \uC9C4\uD589\uD569\uB2C8\uB2E4.",
|
|
"err.guardCancelled": "\uC0AD\uC81C \uBCF4\uD638\uB85C \uB3D9\uAE30\uD654\uAC00 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"err.resetCancelled": "\uCD08\uAE30\uD654\uAC00 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"err.restoreCancelled": "\uBCF5\uC6D0\uC774 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"err.branchMissing": '{repo}\uC5D0\uC11C \uBE0C\uB79C\uCE58 "{branch}"\uC744(\uB97C) \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC0AD\uC81C\uB418\uC5C8\uAC70\uB098 \uC774\uB984\uC774 \uBC14\uB00C\uC5C8\uAC70\uB098 \uD1A0\uD070\uC758 \uC811\uADFC \uAD8C\uD55C\uC774 \uC5C6\uC5B4\uC84C\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC544\uBB34\uAC83\uB3C4 \uBCC0\uACBD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.',
|
|
"err.repoNotFound": "\uC800\uC7A5\uC18C {repo}\uC744(\uB97C) \uCC3E\uC744 \uC218 \uC5C6\uAC70\uB098 \uD1A0\uD070\uC73C\uB85C \uC811\uADFC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"err.initFailed": "\uC800\uC7A5\uC18C \uBE0C\uB79C\uCE58\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"err.encryptionOff": "\uC774 \uAE30\uAE30\uC5D0\uC11C \uC554\uD638\uD654\uAC00 \uCF1C\uC838 \uC788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"err.branchEmpty": "\uC800\uC7A5\uC18C\uC758 \uBE0C\uB79C\uCE58\uAC00 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"err.resetEmpty": "\uC800\uC7A5\uC18C\uC758 \uBE0C\uB79C\uCE58\uAC00 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uCD08\uAE30\uD654\uD560 \uB300\uC0C1\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"err.restorePullOnly": "\uBCF5\uC6D0\uD558\uB824\uBA74 \uC800\uC7A5\uC18C\uC5D0 \uD478\uC2DC\uD574\uC57C \uD558\uC9C0\uB9CC \uAC00\uC838\uC624\uAE30 \uC804\uC6A9 \uBAA8\uB4DC\uC5D0\uC11C\uB294 \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"err.restoreRaced": "\uBCF5\uC6D0 \uC911\uC5D0 \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uD478\uC2DC\uD588\uC2B5\uB2C8\uB2E4. \uC544\uBB34\uAC83\uB3C4 \uBCC0\uACBD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
|
|
"skip.deferred": "\uAC80\uD1A0\uC5D0\uC11C \uBCF4\uB958\uB428",
|
|
"skip.localTooLarge": "\uB85C\uCEEC \uD30C\uC77C\uC774 {mb}MB\uBCF4\uB2E4 \uD07C",
|
|
"skip.remoteTooLarge": "\uC6D0\uACA9 \uD30C\uC77C\uC774 {mb}MB\uBCF4\uB2E4 \uD07C",
|
|
"skip.windowsName": "Windows\uC5D0\uC11C \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uB294 \uC774\uB984. \uB2E4\uB978 \uAE30\uAE30\uC5D0\uC11C \uC774\uB984\uC744 \uBC14\uAFB8\uC138\uC694",
|
|
"skip.onDemand": "\uC774 \uAE30\uAE30\uC758 \uB2E4\uC6B4\uB85C\uB4DC \uD55C\uB3C4\uBCF4\uB2E4 \uD07C. \uD544\uC694\uD560 \uB54C \uB2E4\uC6B4\uB85C\uB4DC \uAC00\uB2A5",
|
|
"skip.caseRenamedFrom": "\uB2E4\uB978 \uACF3\uC5D0\uC11C \uB300\uC18C\uBB38\uC790\uB9CC \uBC14\uAFD4 {other}\uC5D0\uC11C \uC774\uB984\uC774 \uBCC0\uACBD\uB428. \uB2E4\uC74C \uC591\uBC29\uD5A5 \uB3D9\uAE30\uD654\uC5D0\uC11C \uC801\uC6A9",
|
|
"skip.caseRenamedTo": "\uB2E4\uB978 \uACF3\uC5D0\uC11C \uB300\uC18C\uBB38\uC790\uB9CC \uBC14\uAFD4 {other}(\uC73C)\uB85C \uC774\uB984\uC774 \uBCC0\uACBD\uB428. \uB2E4\uC74C \uC591\uBC29\uD5A5 \uB3D9\uAE30\uD654\uC5D0\uC11C \uC801\uC6A9",
|
|
"skip.unicodeClash": "{other}\uC640(\uACFC) \uAC19\uC740 \uC774\uB984(\uB2E4\uB978 \uC720\uB2C8\uCF54\uB4DC \uD615\uC2DD)",
|
|
"skip.caseClash": "{other}\uC640(\uACFC) \uB300\uC18C\uBB38\uC790\uB9CC \uB2E4\uB984",
|
|
"skip.winRenamed": "\uB2E4\uB978 \uACF3\uC5D0\uC11C Windows\uAC00 \uC800\uC7A5\uD560 \uC218 \uC5C6\uB294 \uC774\uB984\uC73C\uB85C \uBCC0\uACBD\uB428. \uC5EC\uAE30\uC11C\uB294 \uC720\uC9C0",
|
|
"skip.winMaybeRenamed": "\uB2E4\uB978 \uACF3\uC5D0\uC11C Windows\uAC00 \uC800\uC7A5\uD560 \uC218 \uC5C6\uB294 \uC774\uB984\uC73C\uB85C \uBCC0\uACBD\uB418\uC5C8\uC744 \uC218 \uC788\uC74C. \uC5EC\uAE30\uC11C\uB294 \uC720\uC9C0",
|
|
"skip.unsafePath": "\uC548\uC804\uD558\uC9C0 \uC54A\uC740 \uACBD\uB85C",
|
|
"skip.movedOutOfScope": "{to}(\uC73C)\uB85C \uC774\uB3D9\uB428(\uC774 \uAE30\uAE30\uC758 \uB3D9\uAE30\uD654 \uBC94\uC704 \uBC16). \uC800\uC7A5\uC18C\uC5D0\uB294 \uC720\uC9C0\uB428",
|
|
"skip.conflictKept": "\uCDA9\uB3CC\uC740 \uB2E4\uC74C \uB3D9\uAE30\uD654\uAE4C\uC9C0 \uC720\uC9C0\uB428: {error}",
|
|
"skip.caseRenameFailed": "\uB2E4\uB978 \uACF3\uC5D0\uC11C \uB300\uC18C\uBB38\uC790\uB9CC \uBC14\uAFD4 {from}\uC5D0\uC11C \uC774\uB984\uC774 \uBCC0\uACBD\uB428. \uC5EC\uAE30\uC11C\uB294 \uC544\uC9C1 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC74C: {error}",
|
|
"skip.editedDuringSync": "\uB3D9\uAE30\uD654 \uC911\uC5D0 \uD3B8\uC9D1\uB428. \uB2E4\uC74C\uC5D0 \uB3D9\uAE30\uD654",
|
|
"err.newerFormat": "\uC774 \uC800\uC7A5\uC18C\uB294 \uB354 \uC0C8\uB85C\uC6B4 \uC554\uD638\uD654 \uD615\uC2DD\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uD50C\uB7EC\uADF8\uC778\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uC138\uC694.",
|
|
"err.wrongPass": "\uC554\uD638\uBB38\uAD6C\uAC00 \uD2C0\uB838\uC2B5\uB2C8\uB2E4.",
|
|
"err.decryptFailed": "{path}\uC744(\uB97C) \uBCF5\uD638\uD654\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: \uC554\uD638\uBB38\uAD6C\uAC00 \uD2C0\uB838\uAC70\uB098 \uD30C\uC77C\uC774 \uC190\uC0C1\uB418\uC5C8\uC2B5\uB2C8\uB2E4",
|
|
"err.notEncrypted": "{path}\uC740(\uB294) \uC774 \uBCF4\uAD00\uC18C\uC758 \uD0A4\uB85C \uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4",
|
|
"err.overwritePullOnly": "\uAC00\uC838\uC624\uAE30 \uC804\uC6A9 \uBAA8\uB4DC\uB294 \uC800\uC7A5\uC18C\uB97C \uBCC0\uACBD\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
"err.overwriteEmpty": "\uC800\uC7A5\uC18C\uC758 \uBE0C\uB79C\uCE58\uAC00 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uBA3C\uC800 \uC77C\uBC18 \uB3D9\uAE30\uD654\uB97C \uC2E4\uD589\uD558\uC138\uC694.",
|
|
"skip.pushCopyTooLarge": "{host}\uC5D0\uC11C\uB3C4 \uBCC0\uACBD\uB428. \uBC31\uC5C5\uB9CC: \uD574\uB2F9 \uBC84\uC804\uC740 \uB108\uBB34 \uCEE4\uC11C \uC5EC\uAE30\uC5D0 \uBCF5\uC0AC\uD560 \uC218 \uC5C6\uC73C\uBA70 \uC800\uC7A5\uC18C \uAE30\uB85D\uC5D0 \uB0A8\uC2B5\uB2C8\uB2E4",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "\uB3D9\uAE30\uD654 \uAE30\uB85D",
|
|
"cmd.openHistory": "\uB3D9\uAE30\uD654 \uAE30\uB85D \uC5F4\uAE30",
|
|
"cmd.useRepo": "\uC774 \uD30C\uC77C\uC758 \uC800\uC7A5\uC18C \uBC84\uC804 \uC0AC\uC6A9",
|
|
"menu.useRepo": "\uC800\uC7A5\uC18C \uBC84\uC804 \uC0AC\uC6A9",
|
|
"hist.title": "\uB3D9\uAE30\uD654 \uAE30\uB85D",
|
|
"hist.filter": "\uACBD\uB85C\uB85C \uD544\uD130",
|
|
"hist.loadMore": "\uB354 \uBD88\uB7EC\uC624\uAE30",
|
|
"hist.empty": "\uC544\uC9C1 \uB3D9\uAE30\uD654\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"hist.noMatch": "\uC9C0\uAE08\uAE4C\uC9C0 \uBD88\uB7EC\uC628 \uB3D9\uAE30\uD654 \uC911 \uC77C\uCE58\uD558\uB294 \uBCC0\uACBD \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4. \uB354 \uBD88\uB7EC\uC640\uC11C \uC774\uC804 \uAE30\uB85D\uC744 \uAC80\uC0C9\uD558\uC138\uC694.",
|
|
"hist.noFiles": "\uC774 \uB3D9\uAE30\uD654\uC5D0\uC11C \uC774 \uBCF4\uAD00\uC18C\uC758 \uD30C\uC77C\uC740 \uBCC0\uACBD\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",
|
|
"hist.added": "\uCD94\uAC00\uB428",
|
|
"hist.modified": "\uC218\uC815\uB428",
|
|
"hist.deleted": "\uC0AD\uC81C\uB428",
|
|
"hist.renamed": "\uC774\uB984 \uBCC0\uACBD\uB428",
|
|
"hist.renamedFrom": "({path}\uC5D0\uC11C)",
|
|
"hist.restoreFile": "\uC774 \uD30C\uC77C \uBCF5\uC6D0",
|
|
"hist.before": "\uC774\uC804 ({sha})",
|
|
"hist.after": "\uC774\uD6C4 ({sha})",
|
|
"hist.none": "(\uC5C6\uC5C8\uC74C)",
|
|
"h.pendingFiles": "\uD3B8\uC9D1\uB41C \uD30C\uC77C \uBCF4\uAE30",
|
|
"repo.use": "\uC800\uC7A5\uC18C \uBC84\uC804 \uC0AC\uC6A9",
|
|
"repo.useBody": "\uC774 \uAE30\uAE30\uC758 {path}\uC744(\uB97C) {host}\uC758 \uCD5C\uC2E0 \uBC84\uC804\uC73C\uB85C \uBC14\uAFC0\uAE4C\uC694? \uC774 \uAE30\uAE30\uC758 \uBC84\uC804\uC740 \uBA3C\uC800 \uD734\uC9C0\uD1B5\uC73C\uB85C \uC774\uB3D9\uD558\uBBC0\uB85C \uB098\uC911\uC5D0 \uB418\uCC3E\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"repo.used": "{path}\uC774(\uAC00) \uC774\uC81C {host}\uC640(\uACFC) \uC77C\uCE58\uD569\uB2C8\uB2E4. \uC774\uC804 \uBC84\uC804\uC740 \uD734\uC9C0\uD1B5\uC5D0 {copy}(\uC73C)\uB85C \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"repo.restored": "{host}\uC5D0\uC11C {path}\uC744(\uB97C) \uB418\uCC3E\uC558\uC2B5\uB2C8\uB2E4.",
|
|
"repo.same": "{path}\uC740(\uB294) \uC774\uBBF8 {host}\uC640(\uACFC) \uC77C\uCE58\uD569\uB2C8\uB2E4.",
|
|
"repo.missing": "{path}\uC774(\uAC00) {host}\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4: \uBCC0\uACBD\uB41C \uAC83\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"repo.failed": "\uC800\uC7A5\uC18C \uBC84\uC804\uC744 \uC0AC\uC6A9\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4: {error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "\uC774 \uBCC0\uACBD \uB418\uB3CC\uB9AC\uAE30 (\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uB54C\uC758 \uD14D\uC2A4\uD2B8\uB85C)",
|
|
"cmd.nextChange": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uB2E4\uC74C \uBCC0\uACBD\uC73C\uB85C \uC774\uB3D9",
|
|
"cmd.prevChange": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uC774\uC804 \uBCC0\uACBD\uC73C\uB85C \uC774\uB3D9",
|
|
"cmd.whoChanged": "\uC774 \uC904\uC744 \uB9C8\uC9C0\uB9C9\uC73C\uB85C \uBCC0\uACBD\uD55C \uC0AC\uB78C \uBCF4\uAE30",
|
|
"cm.added": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uCD94\uAC00\uB428",
|
|
"cm.changed": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uBCC0\uACBD\uB428",
|
|
"cm.deleted": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uC0AD\uC81C\uB428",
|
|
"cm.lastSynced": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uB54C:",
|
|
"cm.newLines": "\uC774 \uC904\uB4E4\uC740 \uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uC0C8\uB85C \uCD94\uAC00\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
"cm.revert": "\uB418\uB3CC\uB9AC\uAE30",
|
|
"cm.who": "\uB204\uAC00 \uBCC0\uACBD\uD588\uB098\uC694?",
|
|
"la.title": "\uC774 \uC904\uC744 \uB9C8\uC9C0\uB9C9\uC73C\uB85C \uBCC0\uACBD\uD55C \uC0AC\uB78C",
|
|
"la.result": "\uB9C8\uC9C0\uB9C9 \uBCC0\uACBD: {date}, \uAE30\uAE30: {device} ({sha}).",
|
|
"la.resultOlder": "\uB9C8\uC9C0\uB9C9 \uBCC0\uACBD: {date} \uB610\uB294 \uADF8 \uC774\uC804, \uAE30\uAE30: {device} ({sha}). \uCD5C\uADFC {n}\uAC1C \uBC84\uC804\uB9CC \uD655\uC778\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"la.local": "\uC774 \uC904\uC740 \uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4 \uC774 \uAE30\uAE30\uC5D0\uC11C \uBCC0\uACBD\uB418\uC5B4 \uC544\uC9C1 \uC800\uC7A5\uC18C\uC758 \uC5B4\uB5A4 \uBC84\uC804\uC5D0\uB3C4 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"la.none": "\uC800\uC7A5\uC18C\uC5D0\uC11C \uC774 \uD30C\uC77C\uC758 \uAE30\uB85D\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"la.looking": "\uD30C\uC77C \uAE30\uB85D\uC744 \uC0B4\uD3B4\uBCF4\uB294 \uC911\u2026",
|
|
"la.failed": "\uD30C\uC77C \uAE30\uB85D\uC744 \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {error}",
|
|
"la.tooBig": "\uC774 \uD30C\uC77C\uC740 \uB108\uBB34 \uCEE4\uC11C(1 MB \uCD08\uACFC) \uAE30\uB85D\uC744 \uC0B4\uD3B4\uBCFC \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"la.open": "\uC774 \uBC84\uC804 \uC5F4\uAE30",
|
|
"s.changeMarkers": "\uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uC774\uD6C4\uC758 \uBCC0\uACBD\uC744 \uD3B8\uC9D1\uAE30\uC5D0 \uD45C\uC2DC",
|
|
"s.changeMarkersDesc": "\uD14D\uC2A4\uD2B8 \uC606\uC5D0 \uCD94\uAC00\xB7\uBCC0\uACBD\xB7\uC0AD\uC81C\uB41C \uC904\uC744 \uD45C\uC2DC\uD569\uB2C8\uB2E4. \uD45C\uC2DC\uB97C \uD074\uB9AD\uD558\uAC70\uB098 \uD0ED\uD558\uBA74 \uB9C8\uC9C0\uB9C9 \uB3D9\uAE30\uD654 \uB54C\uC758 \uD14D\uC2A4\uD2B8\uB97C \uBCF4\uACE0 \uB418\uB3CC\uB9B4 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
|
|
"cmd.syncMessage": "\uBA54\uC2DC\uC9C0\uB97C \uC785\uB825\uD574 \uB3D9\uAE30\uD654\u2026",
|
|
"cmd.syncClose": "\uB3D9\uAE30\uD654\uD558\uACE0 Obsidian \uB2EB\uAE30",
|
|
"cmd.editExcludes": "\uC81C\uC678 \uD328\uD134 \uD3B8\uC9D1",
|
|
"msg.title": "\uCEE4\uBC0B \uBA54\uC2DC\uC9C0",
|
|
"msg.placeholder": "\uBB34\uC5C7\uC774 \uBC14\uB00C\uC5C8\uB098\uC694?",
|
|
"msg.sync": "\uB3D9\uAE30\uD654",
|
|
"msg.empty": "\uBA3C\uC800 \uBA54\uC2DC\uC9C0\uB97C \uC785\uB825\uD558\uC138\uC694.",
|
|
"menu.excludeFile": "\uC774 \uD30C\uC77C\uC744 \uB3D9\uAE30\uD654\uC5D0\uC11C \uC81C\uC678",
|
|
"menu.include": "\uB3D9\uAE30\uD654\uC5D0 \uD3EC\uD568",
|
|
"m.excludeFileBody": "{path}\uC740(\uB294) \uC774\uC81C \uC5B4\uB5A4 \uAE30\uAE30\uC5D0\uC11C\uB3C4 \uC5C5\uB85C\uB4DC, \uB2E4\uC6B4\uB85C\uB4DC, \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uC800\uC7A5\uC18C\uC758 \uC0AC\uBCF8\uC740 \uADF8\uB300\uB85C \uB0A8\uC2B5\uB2C8\uB2E4. \uC9C0\uAE08 \uC0AD\uC81C\uB418\uB294 \uAC83\uC740 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"m.excludedFile": "{path}\uC744(\uB97C) \uB3D9\uAE30\uD654\uC5D0\uC11C \uC81C\uC678\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"m.included": "{path}\uC744(\uB97C) \uB2E4\uC2DC \uB3D9\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
"m.includeImpossible": "{path}\uC740(\uB294) \uC81C\uC678 \uD328\uD134\uC774 \uC544\uB2CC \uB2E4\uB978 \uC774\uC720(\uC774 \uAE30\uAE30\uC758 \uB3D9\uAE30\uD654 \uBC94\uC704, \uC228\uAE40 \uD30C\uC77C, \uC124\uC815 \uD3F4\uB354 \uB610\uB294 sync: false)\uB85C \uBE60\uC838 \uC788\uC5B4 \uC5EC\uAE30\uC11C \uD3EC\uD568\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
"ex.save": "\uC800\uC7A5",
|
|
"ex.saved": "\uC81C\uC678 \uD328\uD134\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",
|
|
"m.closeSyncing": "\uB2EB\uAE30 \uC804\uC5D0 \uB3D9\uAE30\uD654\uD558\uB294 \uC911\u2026",
|
|
"m.closeFailed": "\uB3D9\uAE30\uD654\uAC00 \uB05D\uB098\uC9C0 \uC54A\uC544 Obsidian\uC744 \uC5F4\uC5B4 \uB461\uB2C8\uB2E4: {error}",
|
|
"m.closeNotSynced": "\uB3D9\uAE30\uD654\uD560 \uC218 \uC5C6\uC5B4(\uC624\uD504\uB77C\uC778, \uC77C\uC2DC \uC911\uC9C0 \uB610\uB294 \uC124\uC815 \uC548 \uB428) Obsidian\uC744 \uC5F4\uC5B4 \uB461\uB2C8\uB2E4.",
|
|
"m.syncFileErrors": "\uD30C\uC77C {count}\uAC1C\uB97C \uB3D9\uAE30\uD654\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4(\uCCAB \uBC88\uC9F8: {first})",
|
|
"m.closeIncomplete": "\uBAA8\uB4E0 \uD56D\uBAA9\uC774 \uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC544 Obsidian\uC744 \uC5F4\uC5B4 \uB461\uB2C8\uB2E4:\n{reasons}",
|
|
"x.excluded": "\uB3D9\uAE30\uD654\uB418\uC9C0 \uC54A\uC74C",
|
|
"skip.frontmatterPending": "Obsidian\uC774 \uC18D\uC131\uC744 \uC77D\uC744 \uB54C\uAE4C\uC9C0 \uB300\uAE30 \uC911(sync: false \uD655\uC778)",
|
|
"s.commitMsgAuto": "\uC790\uB3D9 \uB3D9\uAE30\uD654\uC6A9 \uCEE4\uBC0B \uBA54\uC2DC\uC9C0",
|
|
"s.commitMsgAutoDesc": "\uB3D9\uAE30\uD654\uAC00 \uC800\uC808\uB85C \uC2DC\uC791\uB420 \uB54C(\uD0C0\uC774\uBA38, \uD3B8\uC9D1, \uC2DC\uC791, \uC571\uC73C\uB85C \uB3CC\uC544\uC62C \uB54C) \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uBE44\uC6CC \uB450\uBA74 \uC704\uC758 \uBA54\uC2DC\uC9C0\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4.",
|
|
"s.commitPreview": "\uBBF8\uB9AC \uBCF4\uAE30: {msg}",
|
|
"s.repoSubdir": "\uC800\uC7A5\uC18C \uC548\uC758 \uD3F4\uB354",
|
|
"s.repoSubdirDesc": "\uC774 \uBCF4\uAD00\uC18C\uB97C \uC800\uC7A5\uC18C \uB8E8\uD2B8\uAC00 \uC544\uB2CC \uD3F4\uB354(\uC608: vaults/personal)\uC5D0 \uB461\uB2C8\uB2E4. \uADF8 \uD3F4\uB354 \uBC16\uC758 \uD30C\uC77C\uC740 \uB2E4\uC6B4\uB85C\uB4DC, \uBCC0\uACBD, \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBC14\uAFB8\uBA74 \uC544\uBB34\uAC83\uB3C4 \uC0AD\uC81C\uD558\uC9C0 \uC54A\uB294 \uC0C8 \uBE44\uAD50\uB85C \uC2DC\uC791\uD569\uB2C8\uB2E4.",
|
|
"s.subdirChangeTitle": "\uC800\uC7A5\uC18C\uC758 \uD3F4\uB354\uB97C \uBCC0\uACBD\uD560\uAE4C\uC694?",
|
|
"s.subdirChangeBody": "\uB2E4\uC74C \uB3D9\uAE30\uD654\uB294 \uC774 \uBCF4\uAD00\uC18C\uB97C {folder}\uC640 \uCC98\uC74C\uBD80\uD130 \uBE44\uAD50\uD569\uB2C8\uB2E4. \uC544\uBB34\uAC83\uB3C4 \uC0AD\uC81C\uB418\uC9C0 \uC54A\uC9C0\uB9CC, \uADF8\uACF3\uC5D0 \uC774\uBBF8 \uC788\uB294 \uD30C\uC77C\uC740 \uC774 \uBCF4\uAD00\uC18C\uB85C \uB2E4\uC6B4\uB85C\uB4DC\uB418\uACE0 \uC774 \uBCF4\uAD00\uC18C\uC758 \uD30C\uC77C\uC740 \uADF8\uACF3\uC73C\uB85C \uC5C5\uB85C\uB4DC\uB429\uB2C8\uB2E4.",
|
|
"s.subdirRoot": "\uC800\uC7A5\uC18C \uB8E8\uD2B8",
|
|
"s.subdirHasFiles": "\uADF8 \uC704\uCE58\uC5D0\uB294 \uC800\uC7A5\uC18C\uC5D0 \uC774\uBBF8 \uD30C\uC77C {count}\uAC1C\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uBCF4\uAD00\uC18C\uC758 \uD30C\uC77C\uC774\uB77C\uBA74 \uC774 \uBCF4\uAD00\uC18C\uC640 \uC11E\uC785\uB2C8\uB2E4. \uB2E4\uB978 \uD3F4\uB354\uB97C \uC120\uD0DD\uD558\uC138\uC694.",
|
|
"s.subdirMaybeFiles": "\uADF8 \uC704\uCE58\uC5D0 \uC774\uBBF8 \uB2E4\uB978 \uBCF4\uAD00\uC18C\uC758 \uD30C\uC77C\uC774 \uC788\uC73C\uBA74 \uC774 \uBCF4\uAD00\uC18C\uC640 \uC11E\uC785\uB2C8\uB2E4.",
|
|
"s.subdirChangeConfirm": "\uD3F4\uB354 \uBCC0\uACBD",
|
|
"s.frontmatter": "\uC18D\uC131\uC758 sync: false \uB530\uB974\uAE30",
|
|
"s.frontmatterDesc": "\uC18D\uC131\uC5D0 sync: false\uAC00 \uC788\uB294 \uB178\uD2B8\uB294 \uC774 \uAE30\uAE30\uC5D0\uB9CC \uB0A8\uC2B5\uB2C8\uB2E4. \uC5C5\uB85C\uB4DC\uB418\uC9C0 \uC54A\uC73C\uBA70, \uC774\uBBF8 \uC800\uC7A5\uC18C\uC5D0 \uC788\uB294 \uC0AC\uBCF8\uC740 \uADF8\uB300\uB85C \uC720\uC9C0\uB429\uB2C8\uB2E4.",
|
|
"s.statusCountdown": "\uB2E4\uC74C \uB3D9\uAE30\uD654\uB97C \uC0C1\uD0DC \uD45C\uC2DC\uC904\uC5D0 \uD45C\uC2DC",
|
|
"s.statusCountdownDesc": "\uB2E4\uC74C \uC608\uC57D \uB3D9\uAE30\uD654\uAE4C\uC9C0 \uB0A8\uC740 \uC2DC\uAC04(\uC608: \u201C4\uBD84 \uD6C4\u201D).",
|
|
"s.statusBranch": "\uBE0C\uB79C\uCE58\uB97C \uC0C1\uD0DC \uD45C\uC2DC\uC904\uC5D0 \uD45C\uC2DC",
|
|
"s.statusBranchDesc": "\uC774 \uBCF4\uAD00\uC18C\uAC00 \uB3D9\uAE30\uD654\uD558\uB294 \uBE0C\uB79C\uCE58\uC785\uB2C8\uB2E4.",
|
|
"sb.next": "{n}\uBD84 \uD6C4",
|
|
"sb.soon": "1\uBD84 \uC774\uB0B4",
|
|
"sb.nextTip": "\uB2E4\uC74C \uC608\uC57D \uB3D9\uAE30\uD654",
|
|
"sb.branchTip": "\uBE0C\uB79C\uCE58: {branch}",
|
|
"w.subdir": "\uC800\uC7A5\uC18C \uC548\uC758 \uD3F4\uB354(\uC120\uD0DD)",
|
|
"w.subdirDesc": "\uBE44\uC6CC \uB450\uBA74 \uC800\uC7A5\uC18C \uC804\uCCB4\uB97C \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uC5EC\uB7EC \uBCF4\uAD00\uC18C\uAC00 \uC800\uC7A5\uC18C \uD558\uB098\uB97C \uD568\uAED8 \uC4F8 \uB54C\uCC98\uB7FC \uC774 \uBCF4\uAD00\uC18C\uB97C \uD55C \uD3F4\uB354\uC5D0 \uB450\uB824\uBA74 \uC9C0\uC815\uD558\uC138\uC694."
|
|
};
|
|
|
|
// src/locales/pt.ts
|
|
var pt = {
|
|
"cmd.sync": "Sincronizar agora",
|
|
"cmd.review": "Revisar altera\xE7\xF5es e sincronizar",
|
|
"cmd.status": "Abrir painel de status da sincroniza\xE7\xE3o",
|
|
"cmd.pull": "Somente baixar (receber altera\xE7\xF5es)",
|
|
"cmd.push": "Somente backup (enviar altera\xE7\xF5es)",
|
|
"cmd.preview": "Pr\xE9-visualizar sincroniza\xE7\xE3o (simula\xE7\xE3o)",
|
|
"cmd.timeline": "Linha do tempo: restaurar o cofre ou uma pasta a um ponto anterior",
|
|
"cmd.reset": "Igualar este dispositivo ao reposit\xF3rio (descartar altera\xE7\xF5es locais)",
|
|
"cmd.snapshot": "Criar snapshot de backup",
|
|
"cmd.wizard": "Executar assistente de configura\xE7\xE3o",
|
|
"cmd.encryption": "Criptografia de ponta a ponta: ativar ou desbloquear",
|
|
"cmd.freeSpace": "Liberar espa\xE7o neste dispositivo",
|
|
"cmd.onDemand": "Baixar arquivos que n\xE3o est\xE3o neste dispositivo",
|
|
"cmd.log": "Mostrar registro de sincroniza\xE7\xE3o",
|
|
"cmd.history": "Mostrar hist\xF3rico do arquivo atual",
|
|
"cmd.compare": "Comparar arquivo atual com o reposit\xF3rio",
|
|
"cmd.recover": "Recuperar arquivos exclu\xEDdos",
|
|
"cmd.openRepo": "Abrir reposit\xF3rio no navegador",
|
|
"ribbon.sync": "Sincronizar cofre",
|
|
"ribbon.status": "Status da sincroniza\xE7\xE3o",
|
|
"menu.history": "Hist\xF3rico de vers\xF5es",
|
|
"menu.compare": "Comparar com o reposit\xF3rio",
|
|
"health.title": "Status da sincroniza\xE7\xE3o",
|
|
"health.upToDate": "Atualizado",
|
|
"health.syncing": "Sincronizando\u2026",
|
|
"health.failed": "A \xFAltima sincroniza\xE7\xE3o falhou",
|
|
"health.attention": "Requer aten\xE7\xE3o",
|
|
"health.notSynced": "Ainda n\xE3o sincronizado",
|
|
"health.notSetUp": "N\xE3o configurado",
|
|
"health.syncNow": "Sincronizar agora",
|
|
"health.review": "Revisar\u2026",
|
|
"health.wizard": "Executar assistente de configura\xE7\xE3o",
|
|
"health.pending": "Pendente",
|
|
"health.editedN": "{n} arquivo(s) editado(s) neste dispositivo desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"health.noEdits": "Nenhuma edi\xE7\xE3o local pendente",
|
|
"health.remoteAhead": "O reposit\xF3rio tem altera\xE7\xF5es mais recentes de outro dispositivo",
|
|
"health.remoteSame": "Nada novo no reposit\xF3rio",
|
|
"health.checking": "Verificando o reposit\xF3rio\u2026",
|
|
"health.nextSync": "Pr\xF3xima sincroniza\xE7\xE3o agendada {time}",
|
|
"health.noSchedule": "Nenhuma sincroniza\xE7\xE3o peri\xF3dica agendada",
|
|
"health.conflicts": "C\xF3pias de conflito ({n})",
|
|
"health.conflictsHint": "As duas vers\xF5es foram mantidas. Compare-as, fique com o que precisar e depois exclua a c\xF3pia.",
|
|
"health.compare": "Comparar",
|
|
"health.open": "Abrir",
|
|
"health.deleteCopy": "Excluir c\xF3pia",
|
|
"health.skipped": "Ignorados na \xFAltima sincroniza\xE7\xE3o ({n})",
|
|
"health.devices": "Dispositivos",
|
|
"health.thisDevice": "(este dispositivo)",
|
|
"health.lastSynced": "\xFAltima sincroniza\xE7\xE3o {ago}",
|
|
"health.shared": "Pastas compartilhadas",
|
|
"health.tools": "Ferramentas",
|
|
"health.timeline": "Linha do tempo e restaura\xE7\xE3o",
|
|
"health.snapshot": "Criar snapshot agora",
|
|
"health.reset": "Igualar este dispositivo ao reposit\xF3rio",
|
|
"health.freeSpace": "Liberar espa\xE7o",
|
|
"health.log": "Registro de sincroniza\xE7\xE3o",
|
|
"health.settings": "Configura\xE7\xF5es",
|
|
"health.openSettings": "Abrir configura\xE7\xF5es",
|
|
"health.tryAgain": "Tentar novamente",
|
|
"health.enterPassphrase": "Inserir frase secreta",
|
|
"health.encrypted": "criptografado de ponta a ponta",
|
|
"notice.upToDate": "O cofre est\xE1 atualizado.",
|
|
"notice.synced": "Sincroniza\xE7\xE3o: {summary}",
|
|
"notice.failed": "Falha na sincroniza\xE7\xE3o: {error}",
|
|
"notice.errors": "A sincroniza\xE7\xE3o terminou com {n} erro(s). Veja os detalhes no painel de status da sincroniza\xE7\xE3o.",
|
|
"notice.conflicts": "Sincroniza\xE7\xE3o: {n} conflito(s). As duas vers\xF5es foram mantidas; compare-as no painel de status da sincroniza\xE7\xE3o.",
|
|
"notice.busy": "Uma sincroniza\xE7\xE3o est\xE1 em andamento. Tente novamente em instantes.",
|
|
"time.never": "nunca",
|
|
"time.now": "agora mesmo",
|
|
"time.min": "h\xE1 {n} min",
|
|
"time.hour": "h\xE1 {n} h",
|
|
"time.day": "h\xE1 {n} d",
|
|
"s.wizard": "Assistente de configura\xE7\xE3o",
|
|
"s.wizardDesc": "Conecte-se, escolha ou crie um reposit\xF3rio e fa\xE7a a primeira sincroniza\xE7\xE3o passo a passo.",
|
|
"s.wizardBtn": "Executar assistente de configura\xE7\xE3o",
|
|
"s.hConnection": "Conex\xE3o",
|
|
"s.host": "Servidor Git",
|
|
"s.hostDesc": "O suporte a servidores al\xE9m do GitHub est\xE1 em beta.",
|
|
"s.beta": "beta",
|
|
"s.token": "Token de acesso",
|
|
"s.tokenDesc": "Armazenado com seguran\xE7a apenas neste dispositivo (armazenamento secreto do Obsidian), nunca nas configura\xE7\xF5es sincronizadas. Digite-o uma vez por dispositivo.",
|
|
"s.tokenPlaceholder": "Cole seu token",
|
|
"s.owner": "Propriet\xE1rio",
|
|
"s.ownerDesc": "Usu\xE1rio ou organiza\xE7\xE3o dona do reposit\xF3rio.",
|
|
"s.ownerDescGitlab": "Caminho do usu\xE1rio ou grupo (subgrupos s\xE3o permitidos, por exemplo team/notes).",
|
|
"s.ownerDescBitbucket": "Workspace dono do reposit\xF3rio.",
|
|
"s.ownerPlaceholder": "Nome de usu\xE1rio",
|
|
"s.repo": "Reposit\xF3rio",
|
|
"s.repoDesc": "Use um reposit\xF3rio privado.",
|
|
"s.repoPlaceholder": "Nome do reposit\xF3rio",
|
|
"s.branch": "Branch",
|
|
"s.check": "Verificar configura\xE7\xE3o",
|
|
"s.checkDesc": "Teste o token e o reposit\xF3rio ou crie um novo reposit\xF3rio privado.",
|
|
"s.test": "Testar conex\xE3o",
|
|
"s.testNoRepo": "Conectado como {user}. Agora defina o nome de um reposit\xF3rio.",
|
|
"s.testNotFound": "Conectado como {user}, mas {repo} n\xE3o foi encontrado ou n\xE3o est\xE1 acess\xEDvel.",
|
|
"s.testOkPrivate": "OK: {repo} (privado).",
|
|
"s.testOkPublic": "OK: {repo}, mas ele \xE9 P\xDABLICO. Considere torn\xE1-lo privado.",
|
|
"s.testFailed": "Falha na conex\xE3o: {error}",
|
|
"s.createRepo": "Criar reposit\xF3rio privado",
|
|
"s.created": "Criado: {url}",
|
|
"s.createFailed": "N\xE3o foi poss\xEDvel criar o reposit\xF3rio: {error}. Alguns tokens precisam de permiss\xF5es extras para isso; voc\xEA tamb\xE9m pode cri\xE1-lo no site do servidor.",
|
|
"s.apiBase": "URL base da API",
|
|
"s.apiBaseDesc": "{hint}. Armazenado apenas neste dispositivo.",
|
|
"s.device": "Nome do dispositivo",
|
|
"s.deviceDesc": "Exibido nas mensagens de commit e nos nomes dos arquivos de conflito. Armazenado apenas neste dispositivo.",
|
|
"s.hBehaviour": "Comportamento da sincroniza\xE7\xE3o",
|
|
"s.mode": "Modo",
|
|
"s.modeDesc": "Sincroniza\xE7\xE3o bidirecional, somente backup (envia, nunca altera arquivos locais) ou somente baixar (c\xF3pia somente leitura).",
|
|
"s.modeSync": "Sincroniza\xE7\xE3o bidirecional",
|
|
"s.modePush": "Somente backup (push)",
|
|
"s.modePull": "Somente baixar (espelho)",
|
|
"s.onStartup": "Sincronizar ao iniciar",
|
|
"s.onStartupDesc": "Baixa e envia altera\xE7\xF5es quando o cofre \xE9 aberto.",
|
|
"s.onChange": "Sincronizar ap\xF3s edi\xE7\xF5es",
|
|
"s.onChangeDesc": "Sincroniza pouco depois que voc\xEA para de editar.",
|
|
"s.delay": "Atraso ap\xF3s edi\xE7\xE3o (segundos)",
|
|
"s.delayDesc": "Quanto tempo esperar ap\xF3s a \xFAltima edi\xE7\xE3o antes de sincronizar.",
|
|
"s.interval": "Sincroniza\xE7\xE3o peri\xF3dica (minutos)",
|
|
"s.intervalDesc": "Defina como 0 para desativar. Tamb\xE9m detecta altera\xE7\xF5es em configura\xE7\xF5es e arquivos de configura\xE7\xE3o.",
|
|
"s.onResume": "Sincronizar quando o app voltar",
|
|
"s.onResumeDesc": "No celular, sincroniza quando voc\xEA volta ao Obsidian.",
|
|
"s.onBackground": "Sincronizar quando o app for para segundo plano",
|
|
"s.onBackgroundDesc": "Tenta enviar as altera\xE7\xF5es quando voc\xEA sai do Obsidian (celular) ou oculta a janela.",
|
|
"s.hScope": "O que sincronizar",
|
|
"s.configDir": "Sincronizar pasta de configura\xE7\xF5es ({dir})",
|
|
"s.configDirDesc": "Temas, snippets, atalhos, plugins e suas configura\xE7\xF5es. O layout do espa\xE7o de trabalho fica de fora por padr\xE3o.",
|
|
"s.exclude": "Padr\xF5es de exclus\xE3o",
|
|
"s.excludeDesc": "Estilo gitignore, um por linha. {config} representa a pasta de configura\xE7\xF5es. Arquivos que correspondem a esses padr\xF5es nunca s\xE3o enviados, baixados nem exclu\xEDdos.",
|
|
"s.maxSize": "Tamanho m\xE1ximo de arquivo em megabytes",
|
|
"s.maxSizeDesc": "Arquivos maiores s\xE3o ignorados (no m\xE1ximo 2000 megabytes). No GitHub sem armazenamento de arquivos grandes o limite \xE9 de 100 megabytes, o m\xE1ximo que o GitHub aceita.",
|
|
"s.delayNow": "Agora: {n} segundos.",
|
|
"s.resetConfirm": "A pr\xF3xima sincroniza\xE7\xE3o compara cada arquivo com o reposit\xF3rio. Nada \xE9 exclu\xEDdo; arquivos diferentes s\xE3o mantidos nas duas vers\xF5es, ent\xE3o pode haver c\xF3pias de conflito para organizar.",
|
|
"m.restoreOverBody": '{path} neste dispositivo difere da vers\xE3o de {date}. Restaurar substitui o conte\xFAdo atual. Use "Restaurar como c\xF3pia" para manter os dois.',
|
|
"s.lfs": "Limite para armazenamento de arquivos grandes em megabytes",
|
|
"s.lfsDesc": "Arquivos com pelo menos este tamanho ficam no armazenamento de arquivos grandes do servidor em vez do reposit\xF3rio, o que mant\xE9m o reposit\xF3rio pequeno e r\xE1pido. Defina como 0 para desativar. Verifique a cota de armazenamento do seu servidor, pois planos gratuitos s\xE3o limitados. Quando ativado, o tamanho m\xE1ximo de arquivo acima pode chegar a 2000 megabytes.",
|
|
"s.hEncryption": "Criptografia de ponta a ponta",
|
|
"s.encOn": "A criptografia est\xE1 ativada (desbloqueada neste dispositivo)",
|
|
"s.encOnDesc": "Notas, anexos e nomes de arquivos s\xE3o criptografados antes do envio. Outros dispositivos precisam da mesma frase secreta.",
|
|
"s.encRemovePlain": "Remover c\xF3pias n\xE3o criptografadas\u2026",
|
|
"s.encLock": "Bloquear este dispositivo",
|
|
"s.encOff": "Criptografar seu cofre",
|
|
"s.encOffDesc": "Defina uma frase secreta para que o servidor do reposit\xF3rio veja apenas dados ileg\xEDveis. Use tamb\xE9m para desbloquear um reposit\xF3rio que outro dispositivo j\xE1 criptografou.",
|
|
"s.encTurnOn": "Ativar ou desbloquear\u2026",
|
|
"s.hShared": "Pastas compartilhadas",
|
|
"s.sharedIntro": "Sincronize uma pasta com um reposit\xF3rio pr\xF3prio (por exemplo, uma pasta da equipe) enquanto o restante do cofre continua privado.",
|
|
"s.sharedRowDesc": "{host}, branch {branch}",
|
|
"s.sharedRemove": "Parar de sincronizar esta pasta separadamente",
|
|
"s.sharedAdd": "Adicionar uma pasta compartilhada",
|
|
"s.sharedAddBtn": "Adicionar pasta compartilhada\u2026",
|
|
"s.hDevice": "Somente este dispositivo",
|
|
"s.deviceIntro": "Estas escolhas ficam armazenadas neste dispositivo e n\xE3o s\xE3o sincronizadas, ent\xE3o um celular pode sincronizar menos que um notebook. Arquivos fora do escopo deste dispositivo nunca s\xE3o enviados, baixados nem exclu\xEDdos a partir daqui e continuam seguros no reposit\xF3rio.",
|
|
"s.include": "Sincronizar somente estas pastas",
|
|
"s.includeDesc": "Uma pasta ou padr\xE3o por linha, por exemplo daily/ ou projects/. Deixe em branco para sincronizar tudo.",
|
|
"s.includePlaceholder": "Daily/\nprojects/",
|
|
"s.deviceExclude": "Tamb\xE9m deixar de fora neste dispositivo",
|
|
"s.deviceExcludeDesc": "Estilo gitignore, um por linha, por exemplo attachments/ ou *.mp4",
|
|
"s.maxDownload": "N\xE3o baixar arquivos maiores que este n\xFAmero de megabytes",
|
|
"s.maxDownloadDesc": "Anexos grandes ficam no reposit\xF3rio e podem ser baixados sob demanda. 0 = sem limite. Em celulares, o padr\xE3o \xE9 25.",
|
|
"s.onDemand": "Arquivos dispon\xEDveis sob demanda",
|
|
"s.onDemandDesc": "{n} arquivo(s) grande(s) est\xE3o no reposit\xF3rio, mas n\xE3o neste dispositivo. {pinned} arquivo(s) foram baixados sob demanda e continuam sincronizados.",
|
|
"s.onDemandBrowse": "Procurar e baixar\u2026",
|
|
"s.onDemandForget": "Limpar lista sob demanda",
|
|
"s.onDemandForgotten": "Lista sob demanda limpa. Use Liberar espa\xE7o para remover essas c\xF3pias locais.",
|
|
"s.freeSpace": "Liberar espa\xE7o",
|
|
"s.freeSpaceDesc": "Remove c\xF3pias locais de arquivos que este dispositivo n\xE3o sincroniza, mas somente quando s\xE3o id\xEAnticas \xE0 c\xF3pia no reposit\xF3rio.",
|
|
"s.freeSpaceBtn": "Liberar espa\xE7o\u2026",
|
|
"s.hConflicts": "Conflitos e seguran\xE7a",
|
|
"s.strategy": "Quando um arquivo mudou nos dois lados",
|
|
"s.strategyAuto": "Mesclar automaticamente (recomendado)",
|
|
"s.strategyMarkers": "Mesclar, marcar sobreposi\xE7\xF5es com marcadores <<<<<<<",
|
|
"s.strategyBoth": "Manter as duas (salvar minha vers\xE3o como c\xF3pia)",
|
|
"s.strategyAsk": "Perguntar sempre",
|
|
"s.strategyLocal": "Este dispositivo prevalece",
|
|
"s.strategyRemote": "{host} prevalece",
|
|
"s.review": "Revisar antes da sincroniza\xE7\xE3o manual",
|
|
"s.reviewDesc": "Ao iniciar uma sincroniza\xE7\xE3o manualmente, mostra antes cada altera\xE7\xE3o pendente com as diferen\xE7as e caixas de sele\xE7\xE3o. Sincroniza\xE7\xF5es autom\xE1ticas n\xE3o s\xE3o afetadas.",
|
|
"s.eol": "Ignorar altera\xE7\xF5es apenas de fim de linha",
|
|
"s.eolDesc": "Um arquivo cuja \xFAnica altera\xE7\xE3o \xE9 o estilo de fim de linha \xE9 tratado como inalterado, para que editores em outros sistemas operacionais n\xE3o causem envios ou conflitos desnecess\xE1rios.",
|
|
"s.guard": "Prote\xE7\xE3o contra exclus\xF5es",
|
|
"s.guardDesc": "Pergunta antes que uma sincroniza\xE7\xE3o exclua muitos arquivos de uma vez.",
|
|
"s.guardThreshold": "Limite da prote\xE7\xE3o contra exclus\xF5es",
|
|
"s.guardThresholdDesc": "Pergunta ao excluir mais do que este n\xFAmero de arquivos (esquerda) ou esta porcentagem do cofre (direita), o que for maior.",
|
|
"s.hBackup": "Backup",
|
|
"s.snapshot": "Snapshot di\xE1rio",
|
|
"s.snapshotDesc": "Uma vez por dia, marca o estado atual no reposit\xF3rio com um snapshot datado, para que voc\xEA sempre possa voltar a ele.",
|
|
"s.hAdvanced": "Avan\xE7ado",
|
|
"s.commitMsg": "Mensagem de commit",
|
|
"s.commitMsgDesc": "Vari\xE1veis: {{device}}, {{summary}}, {{date}}, {{count}}, {{files}}, {{trigger}}, {{date:YYYY-MM-DD HH:mm}}",
|
|
"s.fullScan": "Nova varredura completa a cada (minutos)",
|
|
"s.fullScanDesc": "Entre varreduras completas, s\xF3 os arquivos que o Obsidian informa como editados s\xE3o verificados de novo, e a pasta de configura\xE7\xF5es \xE9 lida do disco no m\xE1ximo a cada 5 minutos. Mant\xE9m os celulares r\xE1pidos.",
|
|
"s.notices": "Notifica\xE7\xF5es",
|
|
"s.noticesAll": "Toda sincroniza\xE7\xE3o",
|
|
"s.noticesErrors": "Somente erros e conflitos",
|
|
"s.noticesNone": "Nenhuma",
|
|
"s.resetState": "Redefinir estado da sincroniza\xE7\xE3o",
|
|
"s.resetStateDesc": "Esquece o que foi sincronizado por \xFAltimo neste dispositivo. A pr\xF3xima sincroniza\xE7\xE3o compara tudo e nunca exclui; arquivos diferentes s\xE3o mantidos nas duas vers\xF5es.",
|
|
"s.resetBtn": "Redefinir",
|
|
"s.resetDone": "Estado da sincroniza\xE7\xE3o redefinido.",
|
|
"w.stepConnect": "Conectar",
|
|
"w.stepRepo": "Reposit\xF3rio",
|
|
"w.stepVault": "Este cofre",
|
|
"w.stepSync": "Primeira sincroniza\xE7\xE3o",
|
|
"w.title": "Configurar a sincroniza\xE7\xE3o do cofre",
|
|
"w.sub": "Suas notas ficam em um reposit\xF3rio Git privado que pertence a voc\xEA, no GitHub, GitLab, Codeberg, Gitea, Forgejo ou Bitbucket. Funciona no computador e no celular, sem nada para instalar.",
|
|
"w.where": "Onde seu cofre deve ficar?",
|
|
"w.apiUrl": "URL da API do servidor",
|
|
"w.deviceName": "D\xEA um nome a este dispositivo",
|
|
"w.deviceNameDesc": "Exibido no hist\xF3rico e nas c\xF3pias de conflito.",
|
|
"w.signedIn": "Conectado como {user}",
|
|
"w.tokenFailed": "Esse token n\xE3o funcionou: {error}",
|
|
"w.alreadyConnected": "J\xE1 conectado neste dispositivo",
|
|
"w.continue": "Continuar",
|
|
"w.connectWith": "Conectar com um token do {host}",
|
|
"w.tokenStored": "O token \xE9 armazenado com seguran\xE7a apenas neste dispositivo, nunca nas configura\xE7\xF5es sincronizadas.",
|
|
"w.token": "Token",
|
|
"w.pasteFirst": "Cole um token primeiro.",
|
|
"w.repoTitle": "Escolha um reposit\xF3rio",
|
|
"w.repoSub": "Conectado como {user}. Escolha o reposit\xF3rio para este cofre ou crie um novo reposit\xF3rio privado.",
|
|
"w.createNew": "Criar um novo reposit\xF3rio privado",
|
|
"w.create": "Criar",
|
|
"w.createFailed": "N\xE3o foi poss\xEDvel criar o reposit\xF3rio: {error}. Alguns tokens precisam de permiss\xF5es extras para isso; voc\xEA tamb\xE9m pode cri\xE1-lo no site do servidor e escolh\xEA-lo abaixo.",
|
|
"w.useExisting": "Ou use um reposit\xF3rio existente",
|
|
"w.filter": "Filtrar\u2026",
|
|
"w.loadingRepos": "Carregando seus reposit\xF3rios\u2026",
|
|
"w.noMatch": "Nenhum reposit\xF3rio encontrado.",
|
|
"w.private": "privado",
|
|
"w.public": "P\xDABLICO",
|
|
"w.publicTitle": "Reposit\xF3rio p\xFAblico",
|
|
"w.publicBody": "{repo} \xE9 p\xFAblico: qualquer pessoa na internet poderia ler suas notas. Use um reposit\xF3rio privado, a menos que voc\xEA queira public\xE1-las.",
|
|
"w.useAnyway": "Usar mesmo assim",
|
|
"w.listFailed": "N\xE3o foi poss\xEDvel listar os reposit\xF3rios: {error}",
|
|
"w.back": "Voltar",
|
|
"w.vaultTitle": "Este cofre e o reposit\xF3rio",
|
|
"w.looking": "Verificando os dois lados\u2026",
|
|
"w.readFailed": "N\xE3o foi poss\xEDvel ler o reposit\xF3rio: {error}",
|
|
"w.counts": "Este cofre: {local} arquivo(s) \xB7 Reposit\xF3rio: {remote} arquivo(s)",
|
|
"w.optUpload": "Enviar este cofre",
|
|
"w.optUploadDesc": "Este \xE9 o primeiro dispositivo. Tudo o que est\xE1 aqui \xE9 copiado para o reposit\xF3rio.",
|
|
"w.optDownload": "Baixar o cofre do reposit\xF3rio",
|
|
"w.optDownloadDesc": "Este dispositivo \xE9 novo. Os arquivos do reposit\xF3rio substituem quaisquer arquivos iniciais aqui.",
|
|
"w.optMerge": "Mesclar, manter ambos quando diferentes",
|
|
"w.optMergeDesc": "Nada \xE9 sobrescrito; arquivos diferentes s\xE3o mantidos lado a lado.",
|
|
"w.optMergeSafe": "Mesclar, manter ambos quando diferentes (mais seguro)",
|
|
"w.optMergeSafeDesc": "Arquivos que existem s\xF3 em um lado s\xE3o copiados. Arquivos diferentes s\xE3o mantidos lado a lado.",
|
|
"w.optRemoteWins": "Mesclar, o reposit\xF3rio prevalece quando diferente",
|
|
"w.optRemoteWinsDesc": "Usa a vers\xE3o do reposit\xF3rio quando um arquivo existe nos dois lados. A vers\xE3o deste dispositivo vai para a lixeira.",
|
|
"w.optLocalWins": "Mesclar, este dispositivo prevalece quando diferente",
|
|
"w.optLocalWinsDesc": "Usa a vers\xE3o deste dispositivo quando um arquivo existe nos dois lados.",
|
|
"w.neverDeletes": "Nada \xE9 exclu\xEDdo na primeira sincroniza\xE7\xE3o.",
|
|
"w.encrypted": "\u{1F512} Este reposit\xF3rio \xE9 criptografado de ponta a ponta. Desbloqueie-o para continuar.",
|
|
"w.encryptOpt": "Criptografar de ponta a ponta (opcional)",
|
|
"w.encryptOptDesc": "O servidor do reposit\xF3rio v\xEA apenas dados ileg\xEDveis. Todos os dispositivos precisar\xE3o desta frase secreta, e ela n\xE3o pode ser recuperada.",
|
|
"w.passphrase": "Frase secreta",
|
|
"w.encOnDevice": "\u{1F512} A criptografia de ponta a ponta est\xE1 ativada neste dispositivo.",
|
|
"w.alsoConfig": "Sincronizar tamb\xE9m configura\xE7\xF5es, temas e plugins ({dir})",
|
|
"w.start": "Iniciar primeira sincroniza\xE7\xE3o",
|
|
"w.unlockFirst": "Desbloqueie primeiro o reposit\xF3rio criptografado.",
|
|
"w.saveTitle": "Salve sua frase secreta",
|
|
"w.saveBody": "Voc\xEA salvou esta frase secreta em um lugar seguro? N\xE3o h\xE1 como recuper\xE1-la e, sem ela, a c\xF3pia no reposit\xF3rio n\xE3o pode ser lida.",
|
|
"w.saved": "J\xE1 salvei",
|
|
"w.syncTitle": "Primeira sincroniza\xE7\xE3o",
|
|
"w.syncSub": "Isso pode demorar em um cofre grande. Voc\xEA pode fechar esta janela; a sincroniza\xE7\xE3o continua em segundo plano.",
|
|
"w.starting": "Iniciando\u2026",
|
|
"w.doneTitle": "Tudo pronto",
|
|
"w.tip1": "A sincroniza\xE7\xE3o \xE9 executada ao iniciar, ap\xF3s edi\xE7\xF5es e periodicamente. O bot\xE3o da barra lateral sincroniza na hora.",
|
|
"w.tip2": "O painel de status da sincroniza\xE7\xE3o (\xEDcone de atividade) mostra o que est\xE1 pendente e tudo o que requer aten\xE7\xE3o.",
|
|
"w.tip3": "Em cada um dos outros dispositivos: instale o plugin e execute este assistente com o mesmo reposit\xF3rio.",
|
|
"w.openStatus": "Abrir status da sincroniza\xE7\xE3o",
|
|
"w.done": "Concluir",
|
|
"e.passShort": "Use pelo menos 12 caracteres. Algumas palavras aleat\xF3rias funcionam bem.",
|
|
"e.passOk": "OK. Quanto mais longa, mais forte: 16+ caracteres ou 4+ palavras aleat\xF3rias.",
|
|
"e.passStrong": "Forte.",
|
|
"e.checking": "Verificando o reposit\xF3rio\u2026",
|
|
"e.unlockTitle": "Desbloquear cofre criptografado",
|
|
"e.upgrade": "Atualizar a criptografia\u2026",
|
|
"e.upgradeDesc": "Este reposit\xF3rio usa o formato antigo: o conte\xFAdo criptografado de um arquivo n\xE3o est\xE1 vinculado ao seu nome, ent\xE3o algu\xE9m com acesso de escrita poderia trocar dois arquivos sem que isso aparecesse. A atualiza\xE7\xE3o criptografa cada arquivo novamente uma vez, com a mesma frase secreta, para que cada um s\xF3 abra com o pr\xF3prio nome.",
|
|
"e.upgradeTitle": "Atualizar a criptografia de ponta a ponta",
|
|
"e.upgradeBody": "Este dispositivo sincroniza primeiro; depois, cada arquivo criptografado do reposit\xF3rio \xE9 criptografado novamente e enviado de novo em um \xFAnico commit (mesma frase secreta). Os outros dispositivos mudam na pr\xF3xima sincroniza\xE7\xE3o. Dispositivos com vers\xF5es do plugin anteriores \xE0 1.8.0 n\xE3o conseguem ler o novo formato e param de sincronizar at\xE9 serem atualizados.",
|
|
"e.upgradeConfirm": "Atualizar",
|
|
"e.upgraded": "Criptografia atualizada: {n} arquivo(s) criptografado(s) novamente.",
|
|
"e.upgradeFailed": "N\xE3o foi poss\xEDvel atualizar a criptografia: {error}",
|
|
"e.unlockBody": "Este reposit\xF3rio \xE9 criptografado de ponta a ponta. Digite a frase secreta para sincronizar neste dispositivo. A chave \xE9 guardada no armazenamento seguro deste dispositivo.",
|
|
"e.unlocking": "Desbloqueando\u2026 (isso demora um pouco de prop\xF3sito)",
|
|
"e.unlocked": "Cofre criptografado desbloqueado neste dispositivo.",
|
|
"e.unlock": "Desbloquear",
|
|
"e.enableTitle": "Ativar criptografia de ponta a ponta",
|
|
"e.point1": "Notas, anexos e nomes de arquivos s\xE3o criptografados neste dispositivo antes do envio. O servidor do reposit\xF3rio armazena apenas dados ileg\xEDveis.",
|
|
"e.point2": "Todos os dispositivos precisam da mesma frase secreta. N\xE3o h\xE1 como recuper\xE1-la: se voc\xEA esquec\xEA-la, a c\xF3pia no reposit\xF3rio n\xE3o poder\xE1 ser lida.",
|
|
"e.point3": "Se este reposit\xF3rio j\xE1 tiver notas n\xE3o criptografadas, elas permanecem no hist\xF3rico dele. Para privacidade total, use um reposit\xF3rio novo e vazio.",
|
|
"e.point4": "Voc\xEA n\xE3o poder\xE1 mais navegar pelas notas no site do servidor; use o hist\xF3rico e a linha do tempo do plugin.",
|
|
"e.repeat": "Repita a frase secreta",
|
|
"e.ack": "Salvei a frase secreta em um lugar seguro, por exemplo em um gerenciador de senhas",
|
|
"e.turnOn": "Ativar criptografia",
|
|
"e.mismatch": "As frases secretas n\xE3o coincidem.",
|
|
"e.confirmSaved": "Confirme que voc\xEA salvou a frase secreta.",
|
|
"e.settingUp": "Configurando\u2026 (isso demora um pouco de prop\xF3sito)",
|
|
"e.enabled": "A criptografia est\xE1 ativada. A pr\xF3xima sincroniza\xE7\xE3o envia tudo criptografado.",
|
|
"sh.intro": "Sincronize uma pasta com um reposit\xF3rio pr\xF3prio, por exemplo uma pasta da equipe, enquanto o restante do cofre fica no seu reposit\xF3rio privado. A pasta corresponde \xE0 raiz desse reposit\xF3rio ou a uma pasta dentro dele.",
|
|
"sh.folder": "Pasta",
|
|
"sh.folderPlaceholder": "Trabalho",
|
|
"sh.ownerDesc": "Usu\xE1rio, organiza\xE7\xE3o, grupo ou workspace do reposit\xF3rio compartilhado.",
|
|
"sh.token": "Token (opcional)",
|
|
"sh.tokenDesc": "Deixe em branco para usar seu token principal (somente no mesmo servidor). Armazenado com seguran\xE7a neste dispositivo.",
|
|
"sh.note": "Arquivos que j\xE1 est\xE3o nesta pasta no seu reposit\xF3rio principal permanecem l\xE1 (no hist\xF3rico), mas deixam de ser sincronizados com ele. A criptografia n\xE3o se aplica a pastas compartilhadas, porque os colaboradores precisam l\xEA-las.",
|
|
"sh.add": "Adicionar",
|
|
"sh.required": "Pasta, propriet\xE1rio e reposit\xF3rio s\xE3o obrigat\xF3rios.",
|
|
"sh.overlap": "Essa pasta se sobrep\xF5e a uma pasta compartilhada existente.",
|
|
"sh.checking": "Verificando acesso\u2026",
|
|
"sh.noAccess": "N\xE3o foi poss\xEDvel acessar {repo}: {error}",
|
|
"sh.added": "Pasta compartilhada adicionada: {folder} \u2194 {repo}",
|
|
"u.andMore": "\u2026e mais {n}",
|
|
"u.binaryDiff": "Arquivo bin\xE1rio: sem diferen\xE7as de texto. {a}: {as} bytes \xB7 {b}: {bs} bytes.",
|
|
"u.loadFailed": "N\xE3o foi poss\xEDvel carregar: {error}",
|
|
"u.conflictTitle": "Conflito: {path}",
|
|
"u.repository": "Reposit\xF3rio",
|
|
"u.conflictBody": "Este arquivo foi alterado neste dispositivo e no reposit\xF3rio ({host}) desde a \xFAltima sincroniza\xE7\xE3o.",
|
|
"u.pickHint": "Para cada altera\xE7\xE3o, escolha qual vers\xE3o manter. Escolher ambas mant\xE9m primeiro as linhas deste dispositivo.",
|
|
"u.thisDevice": "Este dispositivo",
|
|
"u.chooseChanges": "Escolher altera\xE7\xF5es",
|
|
"u.fullDiff": "Diferen\xE7as completas",
|
|
"u.apply": "Aplicar minhas escolhas",
|
|
"u.binaryConflict": "Arquivo bin\xE1rio. Este dispositivo: {a} bytes \xB7 {host}: {b} bytes.",
|
|
"u.wholeFile": "Ou fique com um arquivo inteiro",
|
|
"u.keepBoth": "Manter os dois arquivos",
|
|
"u.markers": "Mesclar com marcadores",
|
|
"u.guardTitle": "Exclus\xE3o em massa detectada",
|
|
"u.guardBody": "Esta sincroniza\xE7\xE3o excluiria {n} arquivos. Confirme que isso \xE9 intencional.",
|
|
"u.guardLocal": "Excluir neste dispositivo (movidos para a lixeira): {n}",
|
|
"u.guardRemote": "Excluir no reposit\xF3rio (mantidos no hist\xF3rico): {n}",
|
|
"u.cancelSync": "Cancelar sincroniza\xE7\xE3o",
|
|
"u.skipDeletes": "Sincronizar sem as exclus\xF5es",
|
|
"u.deleteThem": "Excluir",
|
|
"u.gDownload": "Baixar do reposit\xF3rio",
|
|
"u.gUpload": "Enviar para o reposit\xF3rio",
|
|
"u.gMoveLocal": "Renomeado em outro lugar (renomear aqui)",
|
|
"u.gAdopt": "Renomeado aqui, editado em outro lugar",
|
|
"u.gRenameMerge": "Renomeado e editado nos dois lados (mesclar)",
|
|
"u.gConflict": "Alterado nos dois lados",
|
|
"u.gDeleteLocal": "Excluir neste dispositivo",
|
|
"u.gDeleteRemote": "Excluir no reposit\xF3rio",
|
|
"u.reviewTitle": "Revisar altera\xE7\xF5es",
|
|
"u.upToDate": "Tudo est\xE1 atualizado.",
|
|
"u.reviewHint": "Desmarque o que voc\xEA ainda n\xE3o quer sincronizar. Arquivos desmarcados n\xE3o s\xE3o alterados em nenhum dos lados at\xE9 uma sincroniza\xE7\xE3o posterior.",
|
|
"u.cancel": "Cancelar",
|
|
"u.syncAll": "Sincronizar tudo",
|
|
"u.syncSelected": "Sincronizar {n} selecionado(s)",
|
|
"u.logTitle": "Registro de sincroniza\xE7\xE3o",
|
|
"u.noActivity": "Nenhuma atividade de sincroniza\xE7\xE3o ainda.",
|
|
"u.loading": "Carregando do reposit\xF3rio\u2026",
|
|
"u.nothingFound": "Nada encontrado.",
|
|
"u.failed": "Falha: {error}",
|
|
"u.currentFile": "Arquivo atual",
|
|
"u.thisVersion": "Esta vers\xE3o",
|
|
"u.compareCurrent": "Comparar com a atual",
|
|
"u.fullVersion": "Vers\xE3o completa",
|
|
"u.restoreCopy": "Restaurar como c\xF3pia",
|
|
"u.restoreThis": "Restaurar esta vers\xE3o",
|
|
"u.pickFolder": "Escolha uma pasta para restaurar",
|
|
"u.pickRemoteOnly": "Baixar um arquivo que n\xE3o est\xE1 neste dispositivo",
|
|
"u.timelineTitle": "Linha do tempo",
|
|
"u.timelineHint": "Cada sincroniza\xE7\xE3o \xE9 um ponto ao qual voc\xEA pode voltar. Restaurar adiciona um novo commit por cima, ent\xE3o o estado atual tamb\xE9m fica no hist\xF3rico.",
|
|
"u.browseFiles": "Navegar pelos arquivos",
|
|
"u.restoreFolder": "Restaurar uma pasta\u2026",
|
|
"u.restoreVault": "Restaurar o cofre inteiro",
|
|
"d.unified": "Unificado",
|
|
"d.split": "Lado a lado",
|
|
"d.same": "Sem diferen\xE7as.",
|
|
"d.unchanged": "\u22EF {n} linha(s) inalterada(s)",
|
|
"d.both": "Ambas",
|
|
"d.change": "Altera\xE7\xE3o {n}",
|
|
"d.nothing": "(nada)",
|
|
"d.identical": "As duas vers\xF5es s\xE3o id\xEAnticas.",
|
|
"m.embedMissing": "{path} ({mb} MB) n\xE3o foi baixado para este dispositivo.",
|
|
"m.download": "Baixar",
|
|
"m.downloadingOne": "Baixando {path}\u2026",
|
|
"m.downloadingMany": "Baixando {n} arquivos\u2026",
|
|
"m.allLocal": "Todos os arquivos est\xE3o neste dispositivo.",
|
|
"m.plainTitle": "Remover c\xF3pias n\xE3o criptografadas",
|
|
"m.plainBody": "Exclui estes arquivos n\xE3o criptografados do reposit\xF3rio em um \xFAnico commit. Suas notas continuam seguras: as c\xF3pias criptografadas j\xE1 foram enviadas. Observa\xE7\xE3o: vers\xF5es antigas permanecem no hist\xF3rico do reposit\xF3rio.",
|
|
"m.deleteFrom": "Excluir do {host}",
|
|
"m.remove": "Remover",
|
|
"m.plainRemoved": "{n} arquivo(s) n\xE3o criptografado(s) removido(s) do reposit\xF3rio.",
|
|
"m.plainNone": "Nenhum arquivo n\xE3o criptografado encontrado.",
|
|
"m.removeFailed": "N\xE3o foi poss\xEDvel remover os arquivos: {error}",
|
|
"m.firstFailed": "A primeira sincroniza\xE7\xE3o falhou: {error}. Voc\xEA pode tentar novamente pelo painel de status da sincroniza\xE7\xE3o.",
|
|
"m.syncFinished": "Sincroniza\xE7\xE3o conclu\xEDda.",
|
|
"m.alreadyInSync": "Tudo j\xE1 estava sincronizado.",
|
|
"m.nDownloaded": "{n} baixado(s)",
|
|
"m.nUploaded": "{n} enviado(s)",
|
|
"m.nBoth": "{n} mantido(s) nas duas vers\xF5es",
|
|
"m.nSkipped": "{n} ignorado(s) (veja o painel de status)",
|
|
"m.firstDone": "Primeira sincroniza\xE7\xE3o conclu\xEDda: {summary}.",
|
|
"m.noChanges": "nenhuma altera\xE7\xE3o",
|
|
"m.freeBody": "Remove {n} arquivo(s) local(is) ({mb} MB) que este dispositivo n\xE3o sincroniza (fora das pastas dele ou acima do limite de download). Cada um \xE9 id\xEAntico \xE0 c\xF3pia no reposit\xF3rio, que \xE9 mantida. Eles v\xE3o para a lixeira.",
|
|
"m.removeHere": "Remover deste dispositivo",
|
|
"m.freeNothing": "Nada a remover: n\xE3o h\xE1 arquivos locais fora do escopo deste dispositivo que estejam guardados com seguran\xE7a no reposit\xF3rio.",
|
|
"m.freed": "{mb} MB liberados.",
|
|
"m.freeFailed": "N\xE3o foi poss\xEDvel liberar espa\xE7o: {error}",
|
|
"m.needToken": "Adicione um token de acesso em Configura\xE7\xF5es \u2192 Vault Sync for Git.",
|
|
"m.needRepo": "Defina o propriet\xE1rio e o nome do reposit\xF3rio nas configura\xE7\xF5es do plugin.",
|
|
"m.snapshotOk": "Snapshot criado: {tag}",
|
|
"m.snapshotFailed": "Falha no snapshot: {error}",
|
|
"m.reviewFailed": "N\xE3o foi poss\xEDvel preparar a revis\xE3o: {error}",
|
|
"m.filesAt": "Arquivos em {sha} ({date})",
|
|
"m.bytes": "{n} bytes",
|
|
"m.whatFolder": 'pasta "{folder}"',
|
|
"m.whatVault": "cofre inteiro",
|
|
"m.restoring": "Restaurando {what}\u2026",
|
|
"m.restoreTitle": "Restaurar {what}",
|
|
"m.restoreBody": "Voltar ao estado de {date} ({sha}): {what}. Isso \xE9 adicionado como um novo commit, ent\xE3o a vers\xE3o de hoje fica no hist\xF3rico e voc\xEA pode desfazer da mesma forma.",
|
|
"m.restoredOlder": "Restaurado para a vers\xE3o anterior",
|
|
"m.broughtBack": "Trazido de volta (exclu\xEDdo desde ent\xE3o)",
|
|
"m.removedSince": "Removido (criado desde ent\xE3o)",
|
|
"m.restore": "Restaurar",
|
|
"m.restored": "Restaurado: {what}. {n} arquivo(s) alterado(s).",
|
|
"m.restoreSame": "J\xE1 corresponde \xE0quele momento: {what}.",
|
|
"m.restoreFailed": "Falha na restaura\xE7\xE3o: {error}",
|
|
"m.comparing": "Comparando com o reposit\xF3rio\u2026",
|
|
"m.resetBody": "Descarta as altera\xE7\xF5es n\xE3o sincronizadas deste dispositivo e o torna uma c\xF3pia exata do reposit\xF3rio. Arquivos substitu\xEDdos e removidos s\xE3o movidos antes para a lixeira, para que voc\xEA ainda possa recuper\xE1-los.",
|
|
"m.replacedWith": "Substitu\xEDdo pela vers\xE3o do {host}",
|
|
"m.downloaded": "Baixado",
|
|
"m.removedNotInRepo": "Removido (n\xE3o est\xE1 no reposit\xF3rio)",
|
|
"m.matchRepo": "Igualar ao reposit\xF3rio",
|
|
"m.matched": "Este dispositivo agora corresponde ao reposit\xF3rio ({n} arquivo(s) alterado(s)).",
|
|
"m.alreadyMatches": "Este dispositivo j\xE1 corresponde ao reposit\xF3rio.",
|
|
"m.resetFailed": "Falha ao redefinir: {error}",
|
|
"m.repoNotFound": "N\xE3o foi poss\xEDvel encontrar o reposit\xF3rio. Verifique as configura\xE7\xF5es de conex\xE3o.",
|
|
"m.history": "Hist\xF3rico: {path}",
|
|
"m.notInVersion": "O arquivo n\xE3o existia nessa vers\xE3o.",
|
|
"m.restoredFile": "{path} restaurado. Ele ser\xE1 enviado na pr\xF3xima sincroniza\xE7\xE3o.",
|
|
"m.versionFailed": "N\xE3o foi poss\xEDvel carregar a vers\xE3o: {error}",
|
|
"m.recentlyDeleted": "Arquivos exclu\xEDdos recentemente",
|
|
"m.deletedOn": "Exclu\xEDdo em {date} \xB7 {msg}",
|
|
"h.notConnected": "Ainda n\xE3o conectado",
|
|
"h.notConnectedHint": "Adicione um token de acesso do {host} nas configura\xE7\xF5es do plugin.",
|
|
"h.badToken": "O {host} n\xE3o aceitou seu token",
|
|
"h.badTokenHint": "Ele pode ter expirado ou sido revogado. Crie um novo token e cole-o nas configura\xE7\xF5es.",
|
|
"h.repoMissing": "Reposit\xF3rio n\xE3o encontrado",
|
|
"h.repoMissingHint": "Verifique o propriet\xE1rio e o nome do reposit\xF3rio, e se o token tem acesso a ele.",
|
|
"h.rateLimit": "Limite de requisi\xE7\xF5es do {host} atingido",
|
|
"h.rateLimitHint": "O {host} permite um n\xFAmero limitado de requisi\xE7\xF5es por hora. A sincroniza\xE7\xE3o voltar\xE1 a funcionar em breve.",
|
|
"h.busy": "O {host} estava ocupado",
|
|
"h.busyHint": "Outro dispositivo estava sincronizando no mesmo momento. Tente novamente.",
|
|
"h.offline": "N\xE3o foi poss\xEDvel acessar o {host}",
|
|
"h.offlineHint": "Verifique sua conex\xE3o com a internet. A sincroniza\xE7\xE3o tentar\xE1 novamente de forma autom\xE1tica.",
|
|
"h.encrypted": "Este cofre est\xE1 criptografado",
|
|
"h.encryptedHint": "Digite a frase secreta para sincronizar neste dispositivo.",
|
|
"h.otherKey": "Chave de criptografia diferente",
|
|
"h.otherKeyHint": "O reposit\xF3rio foi criptografado com outra frase secreta. Desbloqueie-o novamente.",
|
|
"h.pullOnly": "Indispon\xEDvel no modo somente baixar",
|
|
"h.pullOnlyHint": "Mude o modo nas configura\xE7\xF5es para enviar altera\xE7\xF5es.",
|
|
"h.branchMissing": "Branch n\xE3o encontrado",
|
|
"h.failed": "Falha na sincroniza\xE7\xE3o",
|
|
"h.onDemand": "N\xE3o baixados para este dispositivo ({n})",
|
|
"h.onDemandHint": "{mb} MB de arquivos grandes ficam no reposit\xF3rio at\xE9 que voc\xEA precise deles.",
|
|
"h.budget": "Cota da API: {budget}",
|
|
"h.budgetValue": "{left}/{limit} requisi\xE7\xF5es restantes, renova {time}",
|
|
"h.unknown": "desconhecido",
|
|
"h.checkFailed": "N\xE3o foi poss\xEDvel verificar o {host}: {error}",
|
|
"h.deviceScope": "Este dispositivo sincroniza {what}.",
|
|
"h.only": "somente {list}",
|
|
"h.excluding": "exceto {list}",
|
|
"h.noDownloadsOver": "sem downloads acima de {mb} MB",
|
|
"h.notOnDevice": "n\xE3o sincronizado neste dispositivo",
|
|
"hs.ghApi": "Altere apenas para o GitHub Enterprise Server, por exemplo https://github.example.com/api/v3",
|
|
"hs.glApi": "gitlab.com ou seu servidor, por exemplo https://gitlab.example.com/api/v4",
|
|
"hs.gtApi": "A API do seu servidor, por exemplo https://codeberg.org/api/v1 ou https://git.example.com/api/v1",
|
|
"hs.bbApi": "Bitbucket Cloud: https://api.bitbucket.org/2.0",
|
|
"hs.gh1": 'Abra a p\xE1gina de tokens do GitHub; nome, validade e "Contents: read and write" j\xE1 v\xEAm preenchidos.',
|
|
"hs.gh1Link": "Criar um token fine-grained",
|
|
"hs.gh2": 'Em Repository access, escolha "Only select repositories" e selecione o reposit\xF3rio do seu cofre (adicione Administration: read and write se quiser que o plugin crie o reposit\xF3rio).',
|
|
"hs.gh3": "Gere, copie e cole aqui.",
|
|
"hs.gh4": "Alternativa mais simples (acesso a todos os reposit\xF3rios):",
|
|
"hs.gh4Link": "token cl\xE1ssico com o escopo repo",
|
|
"hs.gl1": "Crie um token de acesso pessoal com o escopo api (necess\xE1rio para gravar commits).",
|
|
"hs.gl1Link": "Abrir a p\xE1gina de tokens do GitLab",
|
|
"hs.gl2": "Dica: um token de acesso de projeto (Settings \u2192 Access tokens no projeto do seu cofre, papel Developer, escopo api) limita o acesso a esse \xFAnico projeto.",
|
|
"hs.paste": "Copie e cole aqui.",
|
|
"hs.gt1": 'Abra Settings \u2192 Applications e gere um token com "repository: Read and Write" e "user: Read". Para o plugin criar o reposit\xF3rio, escolha "user: Read and Write".',
|
|
"hs.gt1Link": "Abrir a p\xE1gina de aplica\xE7\xF5es",
|
|
"hs.gt2": "Requer Gitea 1.20+ ou Forgejo 1.20+ (API de commit com v\xE1rios arquivos).",
|
|
"hs.bb1": "Mais f\xE1cil: no reposit\xF3rio do seu cofre, abra Repository settings \u2192 Security \u2192 Access tokens e crie um com Repositories: Read and Write. Cole-o aqui (informe o propriet\xE1rio e o reposit\xF3rio nas configura\xE7\xF5es).",
|
|
"hs.bb1Link": "Ajuda sobre tokens de acesso do Bitbucket",
|
|
"hs.bb2": "Para escolher ou criar reposit\xF3rios no assistente, use um token de API da Atlassian com escopos do Bitbucket, digitado como email:token.",
|
|
"hs.bb2Link": "Criar um token de API",
|
|
"hs.bb3": "Observa\xE7\xE3o: a primeira sincroniza\xE7\xE3o baixa cada arquivo uma vez para index\xE1-lo; as seguintes buscam apenas o que mudou.",
|
|
"u.skipped": "Ignorados: {n}",
|
|
"u.loadingShort": "Carregando\u2026",
|
|
"u.diff": "Diferen\xE7as",
|
|
"h.lastSync": "\xDAltima sincroniza\xE7\xE3o {ago}",
|
|
"m.sharedFailed": "Falha na sincroniza\xE7\xE3o da pasta compartilhada:",
|
|
"m.offline": "Offline: sincronizar\xE1 quando a conex\xE3o voltar",
|
|
"m.filesFailed": "Falha em {n} arquivo(s): veja o status da sincroniza\xE7\xE3o",
|
|
"m.copiesCreated": "{n} c\xF3pia(s) de conflito criada(s)",
|
|
"m.statusTip": "{title}. Clique para ver o status da sincroniza\xE7\xE3o.",
|
|
"m.notThere": "{host} (arquivo ausente)",
|
|
"app.signIn": "Entrar com o GitHub",
|
|
"app.signInDesc": "Aprove o acesso no navegador em vez de criar um token. O app s\xF3 recebe os reposit\xF3rios que voc\xEA escolher, e o acesso \xE9 renovado automaticamente.",
|
|
"app.signInBtn": "Entrar",
|
|
"app.orToken": "Ou use um token de acesso",
|
|
"app.starting": "Contatando o {host}\u2026",
|
|
"app.notAvailable": "Entrar com o {host} n\xE3o est\xE1 dispon\xEDvel para este servidor. Use um token de acesso.",
|
|
"app.codeBody": "Copie este c\xF3digo e cole-o na p\xE1gina do {host} que ser\xE1 aberta:",
|
|
"app.copy": "Copiar c\xF3digo",
|
|
"app.copied": "C\xF3digo copiado",
|
|
"app.open": "Copiar e abrir o {host}",
|
|
"app.waiting": "Aguardando sua aprova\xE7\xE3o no {host}\u2026",
|
|
"app.expired": "O c\xF3digo expirou. Feche esta janela e entre novamente.",
|
|
"app.denied": "O acesso foi negado no {host}.",
|
|
"app.disabled": "Este GitHub App n\xE3o permite login por dispositivo. Use um token de acesso ou pe\xE7a ao propriet\xE1rio para ativar o device flow.",
|
|
"app.failed": "Falha ao entrar: {error}",
|
|
"app.signedIn": "Conectado com o GitHub",
|
|
"app.signedInDesc": "Este dispositivo usa o GitHub App do Vault Sync for GitHub. O acesso \xE9 renovado automaticamente. Armazenado apenas neste dispositivo.",
|
|
"app.signOut": "Sair",
|
|
"app.chooseRepos": "Escolher reposit\xF3rios",
|
|
"app.chooseReposDesc": "N\xE3o v\xEA o reposit\xF3rio do seu cofre? Adicione-o no GitHub ou crie um l\xE1 primeiro. A lista se atualiza sozinha quando voc\xEA voltar.",
|
|
"app.createOnGitHub": "Criar no GitHub",
|
|
"app.refresh": "Atualizar lista",
|
|
"app.expiredSession": "Seu login no {host} expirou. Entre novamente em Configura\xE7\xF5es \u2192 Vault Sync for Git.",
|
|
"app.clientId": "Client ID do GitHub App (opcional)",
|
|
"app.clientIdDesc": "Para oferecer Entrar com o GitHub no GitHub Enterprise: o client ID de um GitHub App com device flow ativado e Contents read and write. Armazenado apenas neste dispositivo.",
|
|
"app.slug": "Nome do GitHub App na URL",
|
|
"app.slugDesc": "O NAME em https://your-server/apps/NAME, usado para abrir a p\xE1gina de instala\xE7\xE3o do app.",
|
|
"h.refresh": "Atualizar",
|
|
"h.setupHint": "Execute o assistente de configura\xE7\xE3o para conectar um servidor Git e um reposit\xF3rio.",
|
|
"h.resolve": "Resolver",
|
|
"h.resolveTitle": "Resolver conflito: {path}",
|
|
"h.currentNote": "Nota atual",
|
|
"h.conflictCopy": "C\xF3pia de conflito",
|
|
"h.tokenExpires": "Seu token de acesso expira em {days} dia(s). Crie um novo e cole-o nas configura\xE7\xF5es.",
|
|
"h.tokenExpiresToday": "Seu token de acesso expira hoje. Crie um novo e cole-o nas configura\xE7\xF5es.",
|
|
"h.newToken": "Criar um novo token",
|
|
"u.previewTitle": "Pr\xE9-visualiza\xE7\xE3o da sincroniza\xE7\xE3o",
|
|
"u.previewHint": "Nada foi alterado ainda. Isto \xE9 o que a pr\xF3xima sincroniza\xE7\xE3o faria.",
|
|
"u.close": "Fechar",
|
|
"s.configDirWarn": "O c\xF3digo dos plugins tamb\xE9m \xE9 sincronizado, ent\xE3o qualquer pessoa que possa enviar ao reposit\xF3rio pode executar c\xF3digo nos seus dispositivos. Plugins sincronizados carregam ap\xF3s reiniciar.",
|
|
"p.scanning": "Verificando arquivos\u2026",
|
|
"p.checking": "Verificando o {host}\u2026",
|
|
"p.downloading": "Baixando {done}/{total}",
|
|
"p.uploading": "Enviando {done}/{total}",
|
|
"cmd.syncFile": "Sincronizar arquivo atual agora",
|
|
"cmd.setupLink": "Adicionar outro dispositivo (link de configura\xE7\xE3o)",
|
|
"x.pending": "Editado desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"x.conflict": "C\xF3pia de conflito: resolva no painel de status da sincroniza\xE7\xE3o",
|
|
"os.title": "Outra ferramenta de sincroniza\xE7\xE3o est\xE1 ativa",
|
|
"os.found": "Tamb\xE9m sincronizando este cofre: {list}.",
|
|
"os.gitFolder": "um reposit\xF3rio Git (pasta .git)",
|
|
"os.hint": "Duas ferramentas gravando os mesmos arquivos podem sobrescrever as altera\xE7\xF5es uma da outra. Use apenas uma delas neste cofre ou garanta que sincronizem pastas diferentes.",
|
|
"link.addDevice": "Adicionar outro dispositivo",
|
|
"link.addDeviceDesc": "Cria um link e um c\xF3digo QR que configuram outro dispositivo com este reposit\xF3rio e estas configura\xE7\xF5es de sincroniza\xE7\xE3o.",
|
|
"link.createBtn": "Criar link de configura\xE7\xE3o",
|
|
"link.createTitle": "Adicionar outro dispositivo",
|
|
"link.createIntro": "Abra este link no novo dispositivo (ou escaneie o c\xF3digo com a c\xE2mera dele) depois de instalar o plugin l\xE1. Ele preenche o servidor, o reposit\xF3rio e as configura\xE7\xF5es de sincroniza\xE7\xE3o.",
|
|
"link.includeToken": "Incluir o token de acesso",
|
|
"link.includeTokenDesc": "O token \xE9 criptografado com um c\xF3digo de uso \xFAnico mostrado abaixo. Sem o c\xF3digo, o link \xE9 in\xFAtil; compartilhe o c\xF3digo separadamente.",
|
|
"link.signInNote": "Este dispositivo est\xE1 conectado com o {host}. O novo dispositivo faz login por conta pr\xF3pria, ent\xE3o nenhum token \xE9 inclu\xEDdo.",
|
|
"link.encrypting": "Criptografando\u2026",
|
|
"link.link": "Link de configura\xE7\xE3o",
|
|
"link.linkDesc": "Envie para voc\xEA mesmo, por exemplo por e-mail ou em um app de notas.",
|
|
"link.copyLink": "Copiar link",
|
|
"link.copied": "Copiado",
|
|
"link.qrLabel": "C\xF3digo QR do link de configura\xE7\xE3o",
|
|
"link.codeIntro": "C\xF3digo de uso \xFAnico (digite-o no novo dispositivo):",
|
|
"link.keepApart": "N\xE3o envie o c\xF3digo junto com o link.",
|
|
"link.noSecrets": "O link n\xE3o cont\xE9m token nem senha. O novo dispositivo se conecta com o pr\xF3prio login ou token.",
|
|
"link.applyTitle": "Configurar este dispositivo a partir de um link",
|
|
"link.applyIntro": 'Este link configura a sincroniza\xE7\xE3o do cofre "{vault}":',
|
|
"link.server": "Servidor: {url}",
|
|
"link.withSettings": "Tamb\xE9m sincroniza a pasta de configura\xE7\xF5es, com as mesmas escolhas",
|
|
"link.withToken": "Inclui um token de acesso (requer o c\xF3digo de uso \xFAnico)",
|
|
"link.subdir": "Pasta no reposit\xF3rio: {folder}",
|
|
"link.onlyYours": "S\xF3 continue se voc\xEA mesmo criou este link. Um link de outra pessoa poderia conectar seu cofre ao reposit\xF3rio dela.",
|
|
"link.replaces": "Isto substitui a conex\xE3o atual com {repo}.",
|
|
"link.code": "C\xF3digo de uso \xFAnico",
|
|
"link.codeDesc": "Mostrado no dispositivo que criou o link.",
|
|
"link.apply": "Configurar este dispositivo",
|
|
"link.needCode": "Digite primeiro o c\xF3digo de uso \xFAnico.",
|
|
"link.decrypting": "Verificando o c\xF3digo\u2026",
|
|
"link.wrongCode": "Esse c\xF3digo n\xE3o corresponde a este link.",
|
|
"link.invalid": "Este link de configura\xE7\xE3o est\xE1 incompleto ou danificado. Crie um novo no seu outro dispositivo.",
|
|
"link.wizardHint": 'J\xE1 sincroniza em outro dispositivo? L\xE1, escolha "Adicionar outro dispositivo" no painel de status ou nas configura\xE7\xF5es e abra o link aqui.',
|
|
"s.cfgAppearance": "Apar\xEAncia e temas",
|
|
"s.cfgAppearanceDesc": "Tema, fontes, cor de destaque e temas instalados.",
|
|
"s.cfgSnippets": "Snippets CSS",
|
|
"s.cfgHotkeys": "Atalhos",
|
|
"s.cfgCore": "Configura\xE7\xF5es principais",
|
|
"s.cfgCoreDesc": "Editor, arquivos e links, plugins principais e suas op\xE7\xF5es.",
|
|
"s.cfgPluginList": "Quais plugins da comunidade est\xE3o ativados",
|
|
"s.cfgPluginListDesc": "Ativar ou desativar um plugin em um dispositivo faz o mesmo nos outros.",
|
|
"s.cfgPluginCode": "C\xF3digo dos plugins da comunidade",
|
|
"s.cfgPluginCodeDesc": "Instala e atualiza plugins em todos os dispositivos. O c\xF3digo de plugin sincronizado pode ser executado em todos os seus dispositivos.",
|
|
"s.cfgPluginSettings": "Configura\xE7\xF5es dos plugins da comunidade",
|
|
"s.cfgPerPlugin": "Escolher por plugin",
|
|
"s.cfgPerPluginDesc": "Exce\xE7\xF5es para plugins individuais ({n} definidas).",
|
|
"s.cfgPerPluginBtn": "Escolher",
|
|
"s.cfgPerPluginIntro": 'Para cada plugin, siga os interruptores acima ou escolha o que sincronizar. Plugins que guardam dados espec\xEDficos do dispositivo (caminhos, layout de janelas) s\xE3o bons candidatos a "Somente este dispositivo".',
|
|
"s.cfgNoPlugins": "Nenhum plugin da comunidade est\xE1 instalado.",
|
|
"s.cfgThisPlugin": "este plugin",
|
|
"s.cfgFollow": "Seguir os interruptores",
|
|
"s.cfgAll": "C\xF3digo e configura\xE7\xF5es",
|
|
"s.cfgCodeOnly": "Somente c\xF3digo",
|
|
"s.cfgSettingsOnly": "Somente configura\xE7\xF5es",
|
|
"s.cfgNone": "Somente este dispositivo",
|
|
"s.hidden": "Sincronizar arquivos e pastas ocultos",
|
|
"s.hiddenDesc": "Arquivos e pastas na raiz do cofre cujos nomes come\xE7am com ponto, como .github ou .editorconfig. Nunca .git, .trash ou a pasta de configura\xE7\xF5es. As altera\xE7\xF5es s\xE3o detectadas em poucos minutos.",
|
|
"s.gitignore": "Respeitar o .gitignore do cofre",
|
|
"s.gitignoreDesc": "Arquivos listados nos .gitignore do cofre n\xE3o s\xE3o sincronizados (um .gitignore dentro de uma pasta vale para essa pasta, como no Git), e os pr\xF3prios .gitignore s\xE3o sincronizados com todos os dispositivos. Seus padr\xF5es de exclus\xE3o continuam tendo a palavra final.",
|
|
"s.onOpen": "Sincronizar ao abrir uma nota",
|
|
"s.onOpenDesc": "Busca a vers\xE3o mais recente antes de voc\xEA editar, no m\xE1ximo a cada 30 segundos.",
|
|
"s.badges": "Mostrar status da sincroniza\xE7\xE3o no explorador de arquivos",
|
|
"s.badgesDesc": "Um ponto nos arquivos editados desde a \xFAltima sincroniza\xE7\xE3o e um aviso nas c\xF3pias de conflito.",
|
|
"s.noticesAuto": "Autom\xE1tico (altera\xE7\xF5es em celulares, erros no computador)",
|
|
"s.noticesChanges": "Altera\xE7\xF5es em arquivos e erros",
|
|
"s.cfgPluginSettingsDesc": "As op\xE7\xF5es de cada plugin (data.json).",
|
|
"link.tooLongForQr": "Este link \xE9 longo demais para um c\xF3digo QR. Copie o link.",
|
|
"link.withHidden": "Tamb\xE9m sincroniza arquivos ocultos na raiz do cofre",
|
|
"link.withGitignore": "Respeita o .gitignore do cofre",
|
|
"link.withExclude": "Substitui os padr\xF5es de exclus\xE3o deste cofre",
|
|
"s.apiBaseInvalid": "Digite o endere\xE7o da API come\xE7ando com https:// (http:// apenas para um servidor neste computador).",
|
|
"s.lfsAboveMax": "O limite de arquivos grandes \xE9 igual ou maior que o tamanho m\xE1ximo de arquivo ({max} MB), ent\xE3o o armazenamento de arquivos grandes nunca ser\xE1 usado. Reduza o limite ou aumente o m\xE1ximo.",
|
|
"s.guardMinLabel": "N\xFAmero m\xEDnimo de exclus\xF5es",
|
|
"s.guardPercentLabel": "Porcentagem m\xEDnima de arquivos",
|
|
"sh.notFound": "reposit\xF3rio n\xE3o encontrado ou n\xE3o acess\xEDvel com este token",
|
|
"m.unlockToBrowse": "Este reposit\xF3rio tem criptografia de ponta a ponta. Digite a frase secreta neste dispositivo para navegar por ele.",
|
|
"m.beforeCommit": "antes de {sha}",
|
|
"m.mergedN": "{n} mesclado(s)",
|
|
"m.nothingToSnapshot": "Ainda n\xE3o h\xE1 nada para um snapshot. Sincronize primeiro.",
|
|
"m.queued": "Uma sincroniza\xE7\xE3o est\xE1 em andamento. A sua come\xE7a logo em seguida.",
|
|
"h.deleteCopyBody": "A c\xF3pia de conflito vai para a lixeira (ou \xE9 exclu\xEDda, conforme a configura\xE7\xE3o Arquivos exclu\xEDdos do Obsidian). Confira se voc\xEA guardou o que precisa dela.",
|
|
"u.binaryFile": "(arquivo bin\xE1rio, {n} bytes)",
|
|
"u.selectGroup": "Selecionar tudo: {group}",
|
|
"u.includeFile": "Incluir {path} nesta sincroniza\xE7\xE3o",
|
|
"m.pausedStatus": "Sincroniza\xE7\xE3o autom\xE1tica pausada",
|
|
"m.paused": "Sincroniza\xE7\xE3o autom\xE1tica pausada neste dispositivo at\xE9 voc\xEA retom\xE1-la. A sincroniza\xE7\xE3o manual continua funcionando.",
|
|
"m.pausedFor": "Sincroniza\xE7\xE3o autom\xE1tica pausada por {n} minutos neste dispositivo.",
|
|
"m.resumed": "Sincroniza\xE7\xE3o autom\xE1tica retomada.",
|
|
"cmd.pause": "Pausar ou retomar a sincroniza\xE7\xE3o autom\xE1tica",
|
|
"cmd.pauseHour": "Pausar a sincroniza\xE7\xE3o autom\xE1tica por uma hora",
|
|
"cmd.diagnostics": "Copiar diagn\xF3stico (para relatar um bug)",
|
|
"cmd.openOnHost": "Abrir o arquivo atual no servidor",
|
|
"cmd.historyOnHost": "Abrir o hist\xF3rico do arquivo atual no servidor",
|
|
"cmd.copyHostLink": "Copiar link do arquivo atual no servidor",
|
|
"menu.shareFolder": "Compartilhar esta pasta com um reposit\xF3rio\u2026",
|
|
"menu.excludeFolder": "Deixar esta pasta fora da sincroniza\xE7\xE3o",
|
|
"menu.openOnHost": "Abrir no {host}",
|
|
"menu.copyHostLink": "Copiar link no {host}",
|
|
"menu.prefixed": "Git: {item}",
|
|
"m.hostLinkEncrypted": "Este reposit\xF3rio tem criptografia de ponta a ponta, ent\xE3o os arquivos n\xE3o t\xEAm um endere\xE7o leg\xEDvel no servidor.",
|
|
"m.hostLinkUnsupported": "O {host} n\xE3o tem uma p\xE1gina web para este arquivo.",
|
|
"m.alreadyExcluded": "{folder} j\xE1 est\xE1 fora da sincroniza\xE7\xE3o.",
|
|
"m.excludeBody": "Os arquivos em {folder} deixar\xE3o de ser enviados, baixados ou exclu\xEDdos em qualquer dispositivo. Nada \xE9 exclu\xEDdo agora.",
|
|
"m.excluded": "{folder} agora est\xE1 fora da sincroniza\xE7\xE3o.",
|
|
"m.diagnosticsCopied": "Diagn\xF3stico copiado. Os tokens ficam ocultos; confira o texto antes de compartilhar, pois ele inclui nomes de arquivos do log.",
|
|
"h.resume": "Retomar",
|
|
"h.pause": "Pausar 1 hora",
|
|
"h.pausedUntilResumed": "A sincroniza\xE7\xE3o autom\xE1tica est\xE1 pausada at\xE9 voc\xEA retom\xE1-la.",
|
|
"h.pausedUntil": "A sincroniza\xE7\xE3o autom\xE1tica est\xE1 pausada at\xE9 {time}.",
|
|
"h.batterySaverOn": "A economia de bateria est\xE1 ativada: neste dispositivo n\xE3o h\xE1 sincroniza\xE7\xE3o peri\xF3dica nem sincroniza\xE7\xE3o ap\xF3s cada edi\xE7\xE3o.",
|
|
"h.batterySaverTurnOn": "Ativar economia de bateria",
|
|
"h.batterySaverOff": "Desativar economia de bateria",
|
|
"h.versionMismatch": "Os dispositivos usam vers\xF5es diferentes deste plugin (este dispositivo: {mine}; {list}). Atualize-os para que sincronizem da mesma forma.",
|
|
"h.badNames": "Nomes que o Windows n\xE3o aceita ({n})",
|
|
"h.badNamesHint": 'Estes arquivos n\xE3o ser\xE3o sincronizados com dispositivos Windows (e alguns dispositivos Android). Renomeie-os para remover < > : " | ? * ou um ponto ou espa\xE7o no final.',
|
|
"u.filterSearch": "Filtrar por nome",
|
|
"u.filterAll": "Todos",
|
|
"u.filterUploads": "Envios",
|
|
"u.filterDownloads": "Downloads",
|
|
"u.filterDeletes": "Exclus\xF5es",
|
|
"u.filterConflicts": "Conflitos",
|
|
"m.mirrorFailed": "Espelho de backup: {error}",
|
|
"m.hostRemoved": "O Gitee e o Azure DevOps n\xE3o s\xE3o mais compat\xEDveis. A sincroniza\xE7\xE3o est\xE1 pausada: escolha outro servi\xE7o em Configura\xE7\xF5es \u2192 Vault Sync for Git. Seus arquivos n\xE3o foram alterados.",
|
|
"m.hostRemovedOther": "O Gitee e o Azure DevOps n\xE3o s\xE3o mais compat\xEDveis. O espelho de backup que os usava foi desativado, e as pastas compartilhadas neles s\xE3o ignoradas. Seus arquivos n\xE3o foram alterados.",
|
|
"sh.subdir": "Pasta no reposit\xF3rio (opcional)",
|
|
"sh.subdirDesc": "Associa a pasta compartilhada a uma pasta dentro do reposit\xF3rio, por exemplo docs, em vez da raiz. Arquivos em outros lugares do reposit\xF3rio n\xE3o s\xE3o alterados.",
|
|
"sh.conflicts": "Quando duas pessoas alteram as mesmas linhas",
|
|
"sh.conflictsDesc": "Mantenha as duas vers\xF5es aqui como c\xF3pia de conflito ou envie a vers\xE3o deste dispositivo para um novo branch com um pull request para a equipe revisar.",
|
|
"sh.conflictsCopy": "Manter as duas (c\xF3pia de conflito)",
|
|
"sh.conflictsPr": "Abrir um pull request",
|
|
"m.prOpened": "{folder}: as edi\xE7\xF5es conflitantes foram enviadas como pull request: {url}",
|
|
"pi.title": "Instalar plugins usados nos seus outros dispositivos",
|
|
"pi.body": "Estes plugins da comunidade est\xE3o ativados (ou foram atualizados) em outro dispositivo. O Vault Sync for Git pode instalar a mesma vers\xE3o aqui, a partir da release oficial de cada plugin no GitHub, conforme listado no diret\xF3rio da comunidade do Obsidian.",
|
|
"pi.list": "Plugins",
|
|
"pi.install": "Instalar",
|
|
"pi.failed": "N\xE3o foi poss\xEDvel instalar {name}: {error}",
|
|
"pi.done": "Instalados: {list}. Reinicie o Obsidian (ou desative e ative cada plugin) para carreg\xE1-los.",
|
|
"s.cfgInstall": "Instalar o c\xF3digo dos plugins a partir das releases oficiais",
|
|
"s.cfgInstallDesc": "Em vez de sincronizar o c\xF3digo dos plugins, cada dispositivo instala a mesma vers\xE3o a partir da release oficial do plugin (depois de perguntar). As vers\xF5es dos plugins continuam sincronizadas. Mais seguro: ningu\xE9m consegue enviar c\xF3digo para seus dispositivos pelo reposit\xF3rio.",
|
|
"s.branchDesc": "O branch com o qual este cofre sincroniza. Trocar inicia uma nova compara\xE7\xE3o; nada \xE9 exclu\xEDdo.",
|
|
"s.branchChoose": "Escolher",
|
|
"s.branchIntro": "Escolha um branch existente ou crie um novo a partir do branch atual (por exemplo, um branch de rascunhos).",
|
|
"s.branchNew": "Novo branch",
|
|
"s.branchInvalid": "Use apenas letras, n\xFAmeros, - _ . e /.",
|
|
"s.branchNoHead": "O branch {branch} est\xE1 vazio, ent\xE3o ainda n\xE3o h\xE1 de onde criar um branch.",
|
|
"s.branchNone": "Ainda n\xE3o h\xE1 branches.",
|
|
"s.branchCurrent": "Branch atual",
|
|
"s.branchUse": "Usar",
|
|
"s.emptyFolders": "Manter pastas vazias",
|
|
"s.emptyFoldersDesc": "Pastas sem arquivos s\xE3o mantidas em todos os dispositivos (listadas em .vault-sync/folders.json). Desativado enquanto a criptografia de ponta a ponta estiver ativada.",
|
|
"s.battery": "Economia de bateria",
|
|
"s.batteryDesc": "Neste dispositivo: sem sincroniza\xE7\xE3o peri\xF3dica e sem sincroniza\xE7\xE3o ap\xF3s cada edi\xE7\xE3o. Sincroniza ao iniciar, quando voc\xEA volta ao Obsidian e quando voc\xEA sincroniza manualmente.",
|
|
"s.pause": "Pausar sincroniza\xE7\xE3o autom\xE1tica",
|
|
"s.pauseDesc": "Somente neste dispositivo. A sincroniza\xE7\xE3o manual continua funcionando.",
|
|
"s.pauseDescOn": "A sincroniza\xE7\xE3o autom\xE1tica est\xE1 pausada neste dispositivo.",
|
|
"s.pauseUntilResumed": "At\xE9 retomar",
|
|
"s.author": "Autor dos commits",
|
|
"s.authorDesc": "Nome e e-mail gravados nos commits (ambos obrigat\xF3rios). Em branco: o servidor usa a conta do token.",
|
|
"s.authorName": "Nome",
|
|
"s.authorEmail": "E-mail",
|
|
"s.hMirror": "Espelho de backup",
|
|
"s.mirrorIntro": "Cada sincroniza\xE7\xE3o tamb\xE9m envia este cofre para um segundo reposit\xF3rio, por exemplo em outro servidor. Somente envio: o espelho nunca \xE9 lido de volta. Com criptografia de ponta a ponta, o espelho tamb\xE9m \xE9 criptografado.",
|
|
"s.mirrorOn": "Espelhar este cofre",
|
|
"s.mirrorToken": "Token do espelho",
|
|
"s.mirrorTokenDesc": "Token de acesso para o reposit\xF3rio espelho. Armazenado somente neste dispositivo. Em branco: o token principal, se for o mesmo servidor.",
|
|
"s.mirrorIncomplete": "Primeiro ative o espelho e preencha o propriet\xE1rio e o reposit\xF3rio.",
|
|
"s.mirrorOk": "Espelho acess\xEDvel: {repo}",
|
|
"h.mirror": "Espelho de backup {target}: \xFAltimo envio {ago}",
|
|
"h.mirrorFailed": "Falha no espelho de backup {target}: {error}",
|
|
"cmd.overwrite": "Igualar o reposit\xF3rio a este dispositivo",
|
|
"ow.title": "Igualar o reposit\xF3rio a este dispositivo",
|
|
"ow.body": "Um novo commit no {host} deixa o reposit\xF3rio igual a este dispositivo: estes arquivos s\xE3o enviados e estes s\xE3o exclu\xEDdos l\xE1 (eles continuam no hist\xF3rico). Arquivos mantidos somente no {host} para download sob demanda n\xE3o s\xE3o alterados. Os outros dispositivos recebem a mudan\xE7a na pr\xF3xima sincroniza\xE7\xE3o.",
|
|
"ow.upload": "Enviados",
|
|
"ow.confirm": "Igualar",
|
|
"ow.done": "Reposit\xF3rio atualizado: {n} altera\xE7\xE3o(\xF5es) em um commit.",
|
|
"ow.failed": "N\xE3o foi poss\xEDvel atualizar o reposit\xF3rio: {error}",
|
|
"m.clipboardFailed": "N\xE3o foi poss\xEDvel copiar para a \xE1rea de transfer\xEAncia: {error}",
|
|
"ce.ours": "Manter este dispositivo",
|
|
"ce.theirs": "Manter reposit\xF3rio",
|
|
"ce.both": "Manter ambos",
|
|
"ce.hint": "Altera\xE7\xE3o em conflito:",
|
|
"app.signInGitLab": "Entrar com o GitLab",
|
|
"app.signInDescGitLab": "Aprove o acesso no navegador em vez de criar um token. O acesso \xE9 renovado automaticamente.",
|
|
"app.signedInGitLab": "Conectado com o GitLab",
|
|
"app.signedInDescGitLab": "Este dispositivo usa o aplicativo Vault Sync for Git no GitLab. O acesso \xE9 renovado automaticamente. Armazenado apenas neste dispositivo.",
|
|
"app.glClientId": "ID do aplicativo GitLab (opcional)",
|
|
"app.glClientIdDesc": "Para usar \u201CEntrar com o GitLab\u201D: o Application ID de um aplicativo OAuth n\xE3o confidencial com o escopo api, criado no seu GitLab (Editar perfil \u2192 Aplicativos). Armazenado apenas neste dispositivo.",
|
|
"sh.ghFormat": "Markdown compat\xEDvel com o GitHub",
|
|
"sh.ghFormatDesc": "Salva as notas para que fiquem leg\xEDveis no GitHub: wikilinks viram links, callouts viram alertas e destaques viram <mark>. Seu cofre mant\xE9m o texto exato do Obsidian. Definido ao adicionar a pasta.",
|
|
"s.hiddenNested": "Arquivos ocultos dentro de pastas",
|
|
"s.hiddenNestedDesc": "Sincroniza tamb\xE9m arquivos e pastas ocultos dentro das suas pastas de notas (por exemplo Notes/.assets). Pastas de configura\xE7\xF5es, .trash e .git nunca s\xE3o inclu\xEDdas.",
|
|
"app.reposTitle": "Reposit\xF3rios que o app pode usar",
|
|
"app.addRepos": "Adicionar reposit\xF3rios no GitHub",
|
|
"app.watching": "Aguardando voc\xEA no GitHub. A lista se atualiza sozinha quando voc\xEA voltar.",
|
|
"app.noRepos": "O app ainda n\xE3o v\xEA nenhum reposit\xF3rio. Adicione o reposit\xF3rio do seu cofre no GitHub.",
|
|
"app.newRepo": "Novo",
|
|
"app.newArrived": "Reposit\xF3rio adicionado. Selecione-o na lista acima.",
|
|
"s.repoPick": "Escolha um reposit\xF3rio",
|
|
"s.strategyDesc": "A mesclagem autom\xE1tica combina altera\xE7\xF5es em linhas diferentes e mant\xE9m as duas vers\xF5es quando as mesmas linhas mudaram.",
|
|
"s.pauseDescUntil": "A sincroniza\xE7\xE3o autom\xE1tica est\xE1 pausada neste dispositivo at\xE9 {time}.",
|
|
"s.branchPick": "Escolha um branch",
|
|
// error messages and skipped-file reasons (see errors.ts)
|
|
"err.someHost": "o servidor do reposit\xF3rio",
|
|
"err.network": "Erro de rede ao se comunicar com o {host}",
|
|
"err.badToken": "O token do {host} \xE9 inv\xE1lido ou expirou.",
|
|
"err.forbidden": "O {host} recusou o acesso (HTTP {status}). Verifique se o token pode ler e gravar neste reposit\xF3rio.",
|
|
"err.notFound": "O {host} n\xE3o encontrou o reposit\xF3rio, o branch ou o arquivo (HTTP {status}). Verifique o nome do reposit\xF3rio e o acesso do token.",
|
|
"err.conflict": "O {host} relatou um conflito (HTTP {status}); outro dispositivo pode ter enviado altera\xE7\xF5es. Sincronize novamente.",
|
|
"err.tooLarge": "O {host} recusou um arquivo grande demais (HTTP {status}).",
|
|
"err.rateLimit": "Limite de requisi\xE7\xF5es do {host} atingido. Tente novamente em um minuto.",
|
|
"err.rateLimitMin": "Limite de requisi\xE7\xF5es do {host} atingido. Tente novamente em {min} min.",
|
|
"err.secondaryRateLimit": "Limite secund\xE1rio de requisi\xE7\xF5es do {host} atingido. Tente novamente em um minuto.",
|
|
"err.server": "O {host} est\xE1 com problemas (HTTP {status}). Tente novamente mais tarde.",
|
|
"err.noToken": "Nenhum token do {host} definido. Adicione um nas configura\xE7\xF5es do plugin.",
|
|
"err.foreignLink": "O {host} retornou um link para outro servidor ({origin}); o token n\xE3o ser\xE1 enviado para l\xE1.",
|
|
"err.versionUnavailable": "{host}: esta vers\xE3o do arquivo n\xE3o est\xE1 dispon\xEDvel",
|
|
"err.contentMismatch": '"{path}" n\xE3o p\xF4de ser baixado por completo do {host} (o conte\xFAdo n\xE3o confere). Sincronize novamente.',
|
|
"err.partialDownload": '"{path}" n\xE3o p\xF4de ser baixado por completo do {host} ({got} de {expected} bytes recebidos). Sincronize novamente.',
|
|
"err.incompleteDownload": "{path} n\xE3o p\xF4de ser baixado por completo do {host} ({bytes} bytes recebidos). O servidor pode limitar o tamanho dos arquivos enviados pela API.",
|
|
"err.commitRefused": "O {host} recusou o commit: {detail}",
|
|
"err.commitNotCreated": "O {host} n\xE3o criou o commit",
|
|
"err.commitNoTree": "O commit {sha} n\xE3o tem \xE1rvore de arquivos",
|
|
"err.repoTooLarge": "O reposit\xF3rio \xE9 grande demais para ser listado no {host}.",
|
|
"err.badPagination": "O {host} retornou um link de pagina\xE7\xE3o inesperado",
|
|
"err.listFailed": "O {host} n\xE3o conseguiu listar os arquivos de {ref} (HTTP 404)",
|
|
"err.blobTooLarge": "{host}: arquivo grande demais para a API deste servidor (acima do limite de tamanho)",
|
|
"err.blobTooLargeMismatch": "{host}: arquivo grande demais para a API deste servidor (acima do limite de tamanho), e o arquivo bruto n\xE3o confere",
|
|
"err.unsupportedHost": "Servidor Git n\xE3o suportado: {host}",
|
|
"err.lfsCorrupt": "{path}: o download do arquivo grande est\xE1 corrompido",
|
|
"err.lfsError": "Armazenamento de arquivos grandes: {detail}",
|
|
"err.lfsMissing": "{path}: o arquivo grande n\xE3o est\xE1 no armazenamento LFS do servidor",
|
|
"err.encLocked": "Este reposit\xF3rio \xE9 criptografado de ponta a ponta. Digite a frase secreta em Configura\xE7\xF5es \u2192 Criptografia para sincronizar neste dispositivo.",
|
|
"err.encMismatch": "Este reposit\xF3rio foi criptografado com uma frase secreta diferente da desbloqueada neste dispositivo. Desbloqueie-o novamente em Configura\xE7\xF5es \u2192 Criptografia.",
|
|
"err.encUpgraded": "A criptografia de ponta a ponta foi atualizada em outro dispositivo (mesma frase secreta, arquivos agora vinculados aos seus nomes). Este dispositivo tamb\xE9m mudou; a pr\xF3xima sincroniza\xE7\xE3o continua.",
|
|
"err.branchMoved": "O branch mudou durante a sincroniza\xE7\xE3o (outro dispositivo enviou altera\xE7\xF5es).",
|
|
"err.editedDuringSync": "{path} foi editado durante a sincroniza\xE7\xE3o",
|
|
"err.cancelled": "Cancelado.",
|
|
"err.unloaded": "O plugin foi descarregado; a sincroniza\xE7\xE3o parou. Ela continua na pr\xF3xima vez.",
|
|
"err.guardCancelled": "Sincroniza\xE7\xE3o cancelada pela prote\xE7\xE3o contra exclus\xF5es.",
|
|
"err.resetCancelled": "Redefini\xE7\xE3o cancelada.",
|
|
"err.restoreCancelled": "Restaura\xE7\xE3o cancelada.",
|
|
"err.branchMissing": 'O branch "{branch}" n\xE3o foi encontrado em {repo}. Ele pode ter sido exclu\xEDdo ou renomeado, ou o token perdeu o acesso. Nada foi alterado.',
|
|
"err.repoNotFound": "Reposit\xF3rio {repo} n\xE3o encontrado ou o token n\xE3o tem acesso a ele.",
|
|
"err.initFailed": "N\xE3o foi poss\xEDvel inicializar o branch do reposit\xF3rio.",
|
|
"err.encryptionOff": "A criptografia n\xE3o est\xE1 ativada neste dispositivo.",
|
|
"err.branchEmpty": "O branch do reposit\xF3rio est\xE1 vazio.",
|
|
"err.resetEmpty": "O branch do reposit\xF3rio est\xE1 vazio. N\xE3o h\xE1 nada para redefinir.",
|
|
"err.restorePullOnly": "A restaura\xE7\xE3o precisa enviar ao reposit\xF3rio, o que o modo somente baixar n\xE3o permite.",
|
|
"err.restoreRaced": "Outro dispositivo enviou altera\xE7\xF5es durante a restaura\xE7\xE3o. Nada foi alterado; tente novamente.",
|
|
"skip.deferred": "adiado na revis\xE3o",
|
|
"skip.localTooLarge": "arquivo local maior que {mb} MB",
|
|
"skip.remoteTooLarge": "arquivo remoto maior que {mb} MB",
|
|
"skip.windowsName": "nome n\xE3o permitido no Windows; renomeie-o em outro dispositivo",
|
|
"skip.onDemand": "maior que o limite de download deste dispositivo; dispon\xEDvel sob demanda",
|
|
"skip.caseRenamedFrom": "renomeado de {other} (mai\xFAsculas/min\xFAsculas) em outro lugar; aplicado na pr\xF3xima sincroniza\xE7\xE3o bidirecional",
|
|
"skip.caseRenamedTo": "renomeado para {other} (mai\xFAsculas/min\xFAsculas) em outro lugar; aplicado na pr\xF3xima sincroniza\xE7\xE3o bidirecional",
|
|
"skip.unicodeClash": "mesmo nome que {other} em outra forma Unicode",
|
|
"skip.caseClash": "difere de {other} apenas por mai\xFAsculas/min\xFAsculas",
|
|
"skip.winRenamed": "renomeado em outro lugar para um nome que o Windows n\xE3o aceita; mantido aqui",
|
|
"skip.winMaybeRenamed": "pode ter sido renomeado em outro lugar para um nome que o Windows n\xE3o aceita; mantido aqui",
|
|
"skip.unsafePath": "caminho inseguro",
|
|
"skip.movedOutOfScope": "movido para {to}, fora do escopo de sincroniza\xE7\xE3o deste dispositivo; mantido no reposit\xF3rio",
|
|
"skip.conflictKept": "conflito mantido para a pr\xF3xima sincroniza\xE7\xE3o: {error}",
|
|
"skip.caseRenameFailed": "renomeado de {from} (mai\xFAsculas/min\xFAsculas) em outro lugar; ainda n\xE3o renomeado aqui: {error}",
|
|
"skip.editedDuringSync": "editado durante a sincroniza\xE7\xE3o; ser\xE1 sincronizado na pr\xF3xima vez",
|
|
"err.newerFormat": "Este reposit\xF3rio usa um formato de criptografia mais recente. Atualize o plugin.",
|
|
"err.wrongPass": "Frase secreta incorreta.",
|
|
"err.decryptFailed": "N\xE3o foi poss\xEDvel descriptografar {path}: frase secreta incorreta ou arquivo danificado",
|
|
"err.notEncrypted": "{path} n\xE3o est\xE1 criptografado com a chave deste cofre",
|
|
"err.overwritePullOnly": "O modo somente baixar nunca altera o reposit\xF3rio.",
|
|
"err.overwriteEmpty": "O branch do reposit\xF3rio est\xE1 vazio: execute primeiro uma sincroniza\xE7\xE3o normal.",
|
|
"skip.pushCopyTooLarge": "tamb\xE9m alterado em {host}; somente backup: essa vers\xE3o \xE9 grande demais para copiar aqui e permanece no hist\xF3rico do reposit\xF3rio",
|
|
// 1.6: history sidebar, use the repository version
|
|
"ribbon.history": "Hist\xF3rico de sincroniza\xE7\xE3o",
|
|
"cmd.openHistory": "Abrir hist\xF3rico de sincroniza\xE7\xE3o",
|
|
"cmd.useRepo": "Usar a vers\xE3o do reposit\xF3rio deste arquivo",
|
|
"menu.useRepo": "Usar vers\xE3o do reposit\xF3rio",
|
|
"hist.title": "Hist\xF3rico de sincroniza\xE7\xE3o",
|
|
"hist.filter": "Filtrar por caminho",
|
|
"hist.loadMore": "Carregar mais",
|
|
"hist.empty": "Ainda n\xE3o h\xE1 sincroniza\xE7\xF5es.",
|
|
"hist.noMatch": "Nenhum arquivo alterado corresponde nas sincroniza\xE7\xF5es carregadas at\xE9 agora. Carregue mais para buscar mais para tr\xE1s.",
|
|
"hist.noFiles": "Nenhum arquivo deste cofre mudou nesta sincroniza\xE7\xE3o.",
|
|
"hist.added": "Adicionado",
|
|
"hist.modified": "Modificado",
|
|
"hist.deleted": "Exclu\xEDdo",
|
|
"hist.renamed": "Renomeado",
|
|
"hist.renamedFrom": "(de {path})",
|
|
"hist.restoreFile": "Restaurar este arquivo",
|
|
"hist.before": "Antes ({sha})",
|
|
"hist.after": "Depois ({sha})",
|
|
"hist.none": "(n\xE3o existia)",
|
|
"h.pendingFiles": "Mostrar arquivos editados",
|
|
"repo.use": "Usar a vers\xE3o do reposit\xF3rio",
|
|
"repo.useBody": "Substituir {path} neste dispositivo pela vers\xE3o mais recente em {host}? A vers\xE3o deste dispositivo vai antes para a lixeira, ent\xE3o voc\xEA ainda pode recuper\xE1-la.",
|
|
"repo.used": "{path} agora corresponde a {host}. A vers\xE3o anterior est\xE1 na lixeira como {copy}.",
|
|
"repo.restored": "{path} foi recuperado de {host}.",
|
|
"repo.same": "{path} j\xE1 corresponde a {host}.",
|
|
"repo.missing": "{path} n\xE3o est\xE1 em {host}: nada mudou.",
|
|
"repo.failed": "N\xE3o foi poss\xEDvel usar a vers\xE3o do reposit\xF3rio: {error}",
|
|
// editor change markers and line history
|
|
"cmd.revertChange": "Reverter esta altera\xE7\xE3o (voltar ao texto da \xFAltima sincroniza\xE7\xE3o)",
|
|
"cmd.nextChange": "Ir para a pr\xF3xima altera\xE7\xE3o desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"cmd.prevChange": "Ir para a altera\xE7\xE3o anterior desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"cmd.whoChanged": "Mostrar quem alterou esta linha por \xFAltimo",
|
|
"cm.added": "Adicionado desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"cm.changed": "Alterado desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"cm.deleted": "Exclu\xEDdo desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"cm.lastSynced": "Na \xFAltima sincroniza\xE7\xE3o:",
|
|
"cm.newLines": "Estas linhas s\xE3o novas desde a \xFAltima sincroniza\xE7\xE3o.",
|
|
"cm.revert": "Reverter",
|
|
"cm.who": "Quem alterou isto?",
|
|
"la.title": "Quem alterou esta linha por \xFAltimo",
|
|
"la.result": "\xDAltima altera\xE7\xE3o em {date} por {device} ({sha}).",
|
|
"la.resultOlder": "\xDAltima altera\xE7\xE3o em {date} ou antes por {device} ({sha}). S\xF3 as \xFAltimas {n} vers\xF5es foram verificadas.",
|
|
"la.local": "Esta linha foi alterada neste dispositivo desde a \xFAltima sincroniza\xE7\xE3o, ent\xE3o nenhuma vers\xE3o no reposit\xF3rio a cont\xE9m ainda.",
|
|
"la.none": "Nenhum hist\xF3rico deste arquivo encontrado no reposit\xF3rio.",
|
|
"la.looking": "Verificando o hist\xF3rico do arquivo\u2026",
|
|
"la.failed": "N\xE3o foi poss\xEDvel ler o hist\xF3rico do arquivo: {error}",
|
|
"la.tooBig": "Este arquivo \xE9 grande demais para verificar seu hist\xF3rico (mais de 1 MB).",
|
|
"la.open": "Abrir esta vers\xE3o",
|
|
"s.changeMarkers": "Mostrar no editor as altera\xE7\xF5es desde a \xFAltima sincroniza\xE7\xE3o",
|
|
"s.changeMarkersDesc": "Marca ao lado do texto as linhas adicionadas, alteradas e exclu\xEDdas. Clique ou toque numa marca para ver o texto da \xFAltima sincroniza\xE7\xE3o e revert\xEA-lo.",
|
|
"cmd.syncMessage": "Sincronizar com uma mensagem pr\xF3pria\u2026",
|
|
"cmd.syncClose": "Sincronizar e fechar o Obsidian",
|
|
"cmd.editExcludes": "Editar padr\xF5es de exclus\xE3o",
|
|
"msg.title": "Mensagem do commit",
|
|
"msg.placeholder": "O que mudou?",
|
|
"msg.sync": "Sincronizar",
|
|
"msg.empty": "Digite uma mensagem primeiro.",
|
|
"menu.excludeFile": "Deixar este arquivo fora da sincroniza\xE7\xE3o",
|
|
"menu.include": "Incluir na sincroniza\xE7\xE3o",
|
|
"m.excludeFileBody": "{path} deixar\xE1 de ser enviado, baixado ou exclu\xEDdo em qualquer dispositivo. A c\xF3pia no reposit\xF3rio fica como est\xE1. Nada \xE9 exclu\xEDdo agora.",
|
|
"m.excludedFile": "{path} agora est\xE1 fora da sincroniza\xE7\xE3o.",
|
|
"m.included": "{path} voltou a ser sincronizado.",
|
|
"m.includeImpossible": "{path} fica de fora por outro motivo al\xE9m dos seus padr\xF5es de exclus\xE3o (o escopo de sincroniza\xE7\xE3o deste dispositivo, arquivos ocultos, a pasta de configura\xE7\xF5es ou sync: false), ent\xE3o n\xE3o pode ser inclu\xEDdo daqui.",
|
|
"ex.save": "Salvar",
|
|
"ex.saved": "Padr\xF5es de exclus\xE3o salvos.",
|
|
"m.closeSyncing": "Sincronizando antes de fechar\u2026",
|
|
"m.closeFailed": "A sincroniza\xE7\xE3o n\xE3o terminou, ent\xE3o o Obsidian continua aberto: {error}",
|
|
"m.closeNotSynced": "N\xE3o foi poss\xEDvel sincronizar (offline, em pausa ou n\xE3o configurado), ent\xE3o o Obsidian continua aberto.",
|
|
"m.syncFileErrors": "{count} arquivo(s) n\xE3o puderam ser sincronizados (primeiro: {first})",
|
|
"m.closeIncomplete": "Nem tudo foi sincronizado, ent\xE3o o Obsidian continua aberto:\n{reasons}",
|
|
"x.excluded": "N\xE3o sincronizado",
|
|
"skip.frontmatterPending": "aguardando o Obsidian ler as propriedades (verifica\xE7\xE3o de sync: false)",
|
|
"s.commitMsgAuto": "Mensagem do commit para sincroniza\xE7\xF5es autom\xE1ticas",
|
|
"s.commitMsgAutoDesc": "Usada quando uma sincroniza\xE7\xE3o come\xE7a sozinha (temporizador, edi\xE7\xF5es, inicializa\xE7\xE3o, volta ao app). Deixe vazio para usar a mensagem acima.",
|
|
"s.commitPreview": "Pr\xE9via: {msg}",
|
|
"s.repoSubdir": "Pasta no reposit\xF3rio",
|
|
"s.repoSubdirDesc": "Guarda este cofre numa pasta do reposit\xF3rio (por exemplo vaults/personal) em vez da raiz. Arquivos fora dessa pasta nunca s\xE3o baixados, alterados ou exclu\xEDdos. Mudar isso inicia uma nova compara\xE7\xE3o que n\xE3o exclui nada.",
|
|
"s.subdirChangeTitle": "Alterar a pasta no reposit\xF3rio?",
|
|
"s.subdirChangeBody": "A pr\xF3xima sincroniza\xE7\xE3o compara este cofre do zero com {folder}. Nada \xE9 exclu\xEDdo, mas os arquivos que j\xE1 est\xE3o l\xE1 s\xE3o baixados para este cofre e os arquivos deste cofre s\xE3o enviados para l\xE1.",
|
|
"s.subdirRoot": "a raiz do reposit\xF3rio",
|
|
"s.subdirHasFiles": "Esse local j\xE1 tem {count} arquivos no reposit\xF3rio. Se pertencerem a outro cofre, ser\xE3o misturados a este: escolha outra pasta.",
|
|
"s.subdirMaybeFiles": "Se esse local j\xE1 tiver arquivos de outro cofre, eles ser\xE3o misturados a este.",
|
|
"s.subdirChangeConfirm": "Alterar pasta",
|
|
"s.frontmatter": "Respeitar sync: false nas propriedades",
|
|
"s.frontmatterDesc": "Notas com sync: false nas propriedades ficam neste dispositivo: nunca s\xE3o enviadas, e uma c\xF3pia que j\xE1 esteja no reposit\xF3rio \xE9 mantida como est\xE1.",
|
|
"s.statusCountdown": "Mostrar a pr\xF3xima sincroniza\xE7\xE3o na barra de status",
|
|
"s.statusCountdownDesc": "Tempo at\xE9 a pr\xF3xima sincroniza\xE7\xE3o agendada, como \u201Cem 4 min\u201D.",
|
|
"s.statusBranch": "Mostrar o branch na barra de status",
|
|
"s.statusBranchDesc": "O branch com que este cofre sincroniza.",
|
|
"sb.next": "em {n} min",
|
|
"sb.soon": "em menos de um minuto",
|
|
"sb.nextTip": "Pr\xF3xima sincroniza\xE7\xE3o agendada",
|
|
"sb.branchTip": "Branch: {branch}",
|
|
"w.subdir": "Pasta no reposit\xF3rio (opcional)",
|
|
"w.subdirDesc": "Deixe vazio para usar o reposit\xF3rio inteiro. Preencha para manter este cofre numa pasta, por exemplo quando v\xE1rios cofres compartilham um reposit\xF3rio."
|
|
};
|
|
|
|
// src/i18n.ts
|
|
var catalogs = { zh, de, es, fr, ja, ko, pt };
|
|
function language() {
|
|
try {
|
|
return ((0, import_obsidian.getLanguage)() || "en").toLowerCase();
|
|
} catch {
|
|
return "en";
|
|
}
|
|
}
|
|
function fill(s, vars) {
|
|
return s.replace(/\{(\w+)\}/g, (_, k) => String(vars[k] ?? `{${k}}`));
|
|
}
|
|
function t(key2, vars = {}) {
|
|
const lang = language();
|
|
const cat = catalogs[lang] ?? catalogs[lang.split("-")[0]];
|
|
return fill(cat?.[key2] ?? en[key2], vars);
|
|
}
|
|
function tEn(key2, vars = {}) {
|
|
return fill(en[key2], vars);
|
|
}
|
|
var LANGUAGES = ["en", ...Object.keys(catalogs)];
|
|
|
|
// src/util.ts
|
|
var encoder = new TextEncoder();
|
|
async function gitBlobSha(data) {
|
|
const header3 = encoder.encode(`blob ${data.byteLength}\0`);
|
|
const buf = new Uint8Array(header3.length + data.byteLength);
|
|
buf.set(header3, 0);
|
|
buf.set(new Uint8Array(data), header3.length);
|
|
const digest = await crypto.subtle.digest("SHA-1", buf);
|
|
return Array.from(new Uint8Array(digest), (x) => x.toString(16).padStart(2, "0")).join("");
|
|
}
|
|
var TEXT_EXT = /* @__PURE__ */ new Set([
|
|
"md",
|
|
"markdown",
|
|
"txt",
|
|
"canvas",
|
|
"base",
|
|
"json",
|
|
"css",
|
|
"js",
|
|
"mjs",
|
|
"ts",
|
|
"csv",
|
|
"tsv",
|
|
"html",
|
|
"htm",
|
|
"xml",
|
|
"svg",
|
|
"yml",
|
|
"yaml",
|
|
"toml",
|
|
"ini",
|
|
"tex",
|
|
"bib",
|
|
"org",
|
|
"rst",
|
|
"sh",
|
|
"py",
|
|
"excalidraw",
|
|
"mermaid",
|
|
"log"
|
|
]);
|
|
function asText(path, data) {
|
|
const ext2 = path.split(".").pop()?.toLowerCase() ?? "";
|
|
if (!TEXT_EXT.has(ext2)) return null;
|
|
const bytes = new Uint8Array(data);
|
|
if (bytes.includes(0)) return null;
|
|
try {
|
|
return new TextDecoder("utf-8", { fatal: true, ignoreBOM: true }).decode(bytes);
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
function encodeText(s) {
|
|
const u = encoder.encode(s);
|
|
return u.buffer.slice(u.byteOffset, u.byteOffset + u.byteLength);
|
|
}
|
|
function isHiddenPath(path) {
|
|
return path.split("/").some((seg) => seg.startsWith("."));
|
|
}
|
|
function parentDir(path) {
|
|
const i = path.lastIndexOf("/");
|
|
return i < 0 ? "" : path.slice(0, i);
|
|
}
|
|
function stamp(d = /* @__PURE__ */ new Date()) {
|
|
const p = (n) => String(n).padStart(2, "0");
|
|
return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}${p(d.getMinutes())}`;
|
|
}
|
|
function conflictCopyPath(path, device, d = /* @__PURE__ */ new Date(), n = 1) {
|
|
const dir = parentDir(path);
|
|
const file = dir ? path.slice(dir.length + 1) : path;
|
|
const dot = file.lastIndexOf(".");
|
|
const name = dot > 0 ? file.slice(0, dot) : file;
|
|
const ext2 = dot > 0 ? file.slice(dot) : "";
|
|
const safeDevice = device.replace(/[\\/:*?"<>|#^[\]]/g, "-");
|
|
const out = `${name} (conflict ${safeDevice} ${stamp(d)}${n > 1 ? `-${n}` : ""})${ext2}`;
|
|
return dir ? `${dir}/${out}` : out;
|
|
}
|
|
var COPY_RE = /^(.*) \((?:conflict|restored) .+ \d{4}-\d{2}-\d{2} \d{4}(?:-\d+)?\)(\.[^./]*)?$/;
|
|
function conflictCopyOriginal(path) {
|
|
const dir = parentDir(path);
|
|
const file = dir ? path.slice(dir.length + 1) : path;
|
|
if (!file.includes("(conflict ")) return null;
|
|
const m = COPY_RE.exec(file);
|
|
if (!m) return null;
|
|
const orig = m[1] + (m[2] ?? "");
|
|
return dir ? `${dir}/${orig}` : orig;
|
|
}
|
|
function restoredCopyPath(path, sha, d = /* @__PURE__ */ new Date()) {
|
|
const dir = parentDir(path);
|
|
const file = dir ? path.slice(dir.length + 1) : path;
|
|
const dot = file.lastIndexOf(".");
|
|
const name = dot > 0 ? file.slice(0, dot) : file;
|
|
const ext2 = dot > 0 ? file.slice(dot) : "";
|
|
const out = `${name} (restored ${sha.slice(0, 7)} ${stamp(d)})${ext2}`;
|
|
return dir ? `${dir}/${out}` : out;
|
|
}
|
|
async function pool(items, limit, fn) {
|
|
let next = 0;
|
|
const workers = Array.from({ length: Math.min(limit, items.length) }, async () => {
|
|
while (next < items.length) {
|
|
const item = items[next++];
|
|
await fn(item);
|
|
}
|
|
});
|
|
await Promise.all(workers);
|
|
}
|
|
var sleep = (ms) => new Promise((r) => window.setTimeout(r, ms));
|
|
function errMsg(e) {
|
|
return e instanceof Error ? e.message : String(e);
|
|
}
|
|
var WINDOWS_RESERVED = /^(con|prn|aux|nul|com[1-9]|lpt[1-9])(\..*)?$/i;
|
|
function portableNameProblem(path) {
|
|
for (const seg of path.split("/")) {
|
|
if (/[<>:"|?*\u0000-\u001f]/.test(seg)) return "char";
|
|
if (/[. ]$/.test(seg)) return "end";
|
|
if (WINDOWS_RESERVED.test(seg)) return "reserved";
|
|
}
|
|
return null;
|
|
}
|
|
function redactSecrets(text) {
|
|
return text.replace(/\b(gh[pousr]_[A-Za-z0-9]{10,}|github_pat_[A-Za-z0-9_]{20,}|glpat-[A-Za-z0-9_-]{10,}|ATBB[A-Za-z0-9]{10,}|ATATT[A-Za-z0-9_=-]{10,}|ATCTT[A-Za-z0-9_=-]{10,})/g, "[token]").replace(/(Authorization["']?\s*[:=]\s*["']?)(?:(Bearer|token|Basic)\s+)?[^\s"',;]{8,}/gi, (_m, pre, scheme) => `${pre}${scheme ? `${scheme} ` : ""}[token]`).replace(/\b(Bearer|token|Basic)\s+(?!\[token\])[A-Za-z0-9._~+/=-]{12,}/gi, "$1 [token]").replace(/\btoken\s*[:=]?\s*["']?[a-f0-9]{40}\b/gi, "token [token]").replace(/([?&](access_token|private_token|token)=)[^&\s]+/gi, "$1[token]").replace(/\b[a-f0-9]{64}\b/gi, "[token]");
|
|
}
|
|
function tokenLooksLike(provider, token) {
|
|
const t2 = token.trim();
|
|
switch (provider) {
|
|
case "github":
|
|
return /^(ghp_|github_pat_|gho_|ghu_|ghs_)[A-Za-z0-9_]+$/.test(t2);
|
|
case "gitlab":
|
|
return /^glpat-[A-Za-z0-9_.-]+$/.test(t2);
|
|
case "bitbucket":
|
|
return /^(ATCTT|ATBB)[A-Za-z0-9_=-]+$/.test(t2) || /^[^\s:]+:\S+$/.test(t2);
|
|
case "gitea":
|
|
return /^[a-f0-9]{40}$/i.test(t2);
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
function urlHost(url) {
|
|
try {
|
|
return new URL(url).host.toLowerCase() || null;
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// src/errors.ts
|
|
var errKey = (code) => `err.${code}`;
|
|
var skipKey = (code) => `skip.${code}`;
|
|
var SyncError = class extends Error {
|
|
constructor(code, params = {}) {
|
|
super(tEn(errKey(code), params));
|
|
this.code = code;
|
|
this.params = params;
|
|
}
|
|
};
|
|
var RemoteError = class extends Error {
|
|
constructor(message2, status, info = {}) {
|
|
super(message2);
|
|
this.status = status;
|
|
this.host = info.host;
|
|
this.code = info.code;
|
|
this.params = info.params ?? {};
|
|
}
|
|
};
|
|
function codedRemoteError(make, code, status, host, params = {}) {
|
|
const all = { host, ...params };
|
|
return make(tEn(errKey(code), all), status, { host, code, params: all });
|
|
}
|
|
function looksLikeNetworkError(msg) {
|
|
const m = msg.toLowerCase();
|
|
return m.includes("network") || m.includes("failed to fetch") || m.includes("err_") || m.includes("offline") || m.includes("timed out") || m.includes("timeout") || /\b(enotfound|econnrefused|econnreset|eai_again|etimedout|ehostunreach|enetunreach)\b/.test(m);
|
|
}
|
|
function statusCode(status) {
|
|
if (status === 0) return "network";
|
|
if (status === 401) return "badToken";
|
|
if (status === 403) return "forbidden";
|
|
if (status === 404) return "notFound";
|
|
if (status === 409 || status === 412) return "conflict";
|
|
if (status === 413) return "tooLarge";
|
|
if (status === 429) return "rateLimit";
|
|
if (status >= 500) return "server";
|
|
return null;
|
|
}
|
|
function localizeError(e, host) {
|
|
if (e instanceof SyncError) return t(errKey(e.code), e.params);
|
|
const where = e instanceof RemoteError && e.host || host || t("err.someHost");
|
|
if (e instanceof RemoteError) {
|
|
if (e.code) return t(errKey(e.code), { host: where, ...e.params });
|
|
const code = statusCode(e.status);
|
|
if (code) return t(errKey(code), { host: where, status: e.status });
|
|
return errMsg(e);
|
|
}
|
|
const msg = errMsg(e);
|
|
if (looksLikeNetworkError(msg)) return t("err.network", { host: where });
|
|
return msg;
|
|
}
|
|
function addSkip(sink, path, code, params = {}, enParams = params) {
|
|
sink.skipped.push(`${path} (${tEn(skipKey(code), enParams)})`);
|
|
(sink.skipNotes ?? (sink.skipNotes = [])).push({ path, code, params });
|
|
}
|
|
function skippedLines(skipped, notes) {
|
|
if (!notes || notes.length !== skipped.length) return skipped;
|
|
return notes.map((n) => `${n.path} (${t(skipKey(n.code), n.params)})`);
|
|
}
|
|
var ADVICE = {
|
|
noToken: "notConnected",
|
|
badToken: "badToken",
|
|
repoNotFound: "repoMissing",
|
|
notFound: "repoMissing",
|
|
rateLimit: "rateLimit",
|
|
rateLimitMin: "rateLimit",
|
|
secondaryRateLimit: "rateLimit",
|
|
branchMoved: "busy",
|
|
restoreRaced: "busy",
|
|
conflict: "busy",
|
|
network: "offline",
|
|
encLocked: "encrypted",
|
|
encMismatch: "otherKey",
|
|
encUpgraded: "busy",
|
|
overwritePullOnly: "pullOnly",
|
|
restorePullOnly: "pullOnly",
|
|
branchMissing: "branchMissing"
|
|
};
|
|
function advice(kind, host, hint) {
|
|
switch (kind) {
|
|
case "notConnected":
|
|
return { title: t("h.notConnected"), hint: t("h.notConnectedHint", { host }), action: "settings" };
|
|
case "badToken":
|
|
return { title: t("h.badToken", { host }), hint: t("h.badTokenHint"), action: "settings" };
|
|
case "repoMissing":
|
|
return { title: t("h.repoMissing"), hint: t("h.repoMissingHint"), action: "settings" };
|
|
case "rateLimit":
|
|
return { title: t("h.rateLimit", { host }), hint: t("h.rateLimitHint", { host }), action: "none" };
|
|
case "busy":
|
|
return { title: t("h.busy", { host }), hint: t("h.busyHint"), action: "retry" };
|
|
case "offline":
|
|
return { title: t("h.offline", { host }), hint: t("h.offlineHint"), action: "retry" };
|
|
case "encrypted":
|
|
return { title: t("h.encrypted"), hint: t("h.encryptedHint"), action: "encryption" };
|
|
case "otherKey":
|
|
return { title: t("h.otherKey"), hint: t("h.otherKeyHint"), action: "encryption" };
|
|
case "pullOnly":
|
|
return { title: t("h.pullOnly"), hint: t("h.pullOnlyHint"), action: "settings" };
|
|
case "branchMissing":
|
|
return { title: t("h.branchMissing"), hint, action: "settings" };
|
|
}
|
|
}
|
|
function friendlyError(err, host = t("err.someHost")) {
|
|
const shown = localizeError(err, host);
|
|
const code = err instanceof SyncError ? err.code : err instanceof RemoteError ? err.code ?? statusCode(err.status) : null;
|
|
if (err instanceof RemoteError && err.host) host = err.host;
|
|
if (code) {
|
|
const kind = ADVICE[code];
|
|
if (kind) return advice(kind, host, shown);
|
|
return { title: t("h.failed"), hint: shown, action: "retry" };
|
|
}
|
|
const msg = typeof err === "string" ? err : errMsg(err);
|
|
const m = msg.toLowerCase();
|
|
if (/no (\w+ )?token/.test(m)) return advice("notConnected", host, shown);
|
|
if (m.includes("invalid or expired") || m.includes("401")) return advice("badToken", host, shown);
|
|
if (m.includes("not found or the token cannot access") || m.includes("not found") && m.includes("repos")) return advice("repoMissing", host, shown);
|
|
if (m.includes("rate limit")) return advice("rateLimit", host, shown);
|
|
if (m.includes("outdated branch state") || m.includes("another device pushed")) return advice("busy", host, shown);
|
|
if (looksLikeNetworkError(m)) return advice("offline", host, shown);
|
|
if (m.includes("end-to-end encrypted")) return advice("encrypted", host, shown);
|
|
if (m.includes("different passphrase")) return advice("otherKey", host, shown);
|
|
if (m.includes("pull-only")) return advice("pullOnly", host, shown);
|
|
if (m.includes("was not found in")) return advice("branchMissing", host, shown);
|
|
return { title: t("h.failed"), hint: shown, action: "retry" };
|
|
}
|
|
function syncProblems(o) {
|
|
const out = [];
|
|
if (o.errors.length) out.push(t("m.syncFileErrors", { count: o.errors.length, first: o.errors[0] ?? "" }));
|
|
if (o.sharedErrors.length) out.push(`${t("m.sharedFailed")} ${o.sharedErrors.join("; ")}`);
|
|
if (o.mirrorError) out.push(t("m.mirrorFailed", { error: o.mirrorError }));
|
|
return out;
|
|
}
|
|
function closeVerdict(beforeSeq, outcome, lastError) {
|
|
if (!outcome || outcome.seq <= beforeSeq) return { quit: false, message: lastError ? t("m.closeFailed", { error: lastError }) : t("m.closeNotSynced") };
|
|
if (!outcome.ok) return { quit: false, message: outcome.problems.length ? t("m.closeIncomplete", { reasons: outcome.problems.join("\n") }) : t("m.closeNotSynced") };
|
|
return { quit: true };
|
|
}
|
|
|
|
// src/github.ts
|
|
var import_obsidian2 = require("obsidian");
|
|
|
|
// src/remote.ts
|
|
var NotFastForward = class extends SyncError {
|
|
constructor() {
|
|
super("branchMoved");
|
|
}
|
|
};
|
|
|
|
// src/github.ts
|
|
var GitHubError = class extends RemoteError {
|
|
};
|
|
function parseTokenExpiry(v) {
|
|
const m = /^(\d{4})-(\d\d)-(\d\d)[ T](\d\d):(\d\d):(\d\d)\s*(?:(UTC|Z)|([+-])(\d\d):?(\d\d))?/i.exec((v ?? "").trim());
|
|
if (!m) return null;
|
|
const utc = Date.UTC(+m[1], +m[2] - 1, +m[3], +m[4], +m[5], +m[6]);
|
|
const offset = m[8] ? (m[8] === "-" ? -1 : 1) * (+m[9] * 60 + +m[10]) * 6e4 : 0;
|
|
return utc - offset;
|
|
}
|
|
var INLINE_MAX = 400 * 1024;
|
|
var TREE_CHUNK_BYTES = 3 * 1024 * 1024;
|
|
var TREE_CHUNK_ENTRIES = 400;
|
|
var UPLOAD_BATCH = 8;
|
|
function header(res, name) {
|
|
const h = res.headers ?? {};
|
|
const key2 = Object.keys(h).find((k) => k.toLowerCase() === name);
|
|
return key2 ? h[key2] : void 0;
|
|
}
|
|
function safeJson(res) {
|
|
try {
|
|
return res.json;
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
var encPath = (p) => p.split("/").map(encodeURIComponent).join("/");
|
|
var GitHub = class {
|
|
constructor(cfg) {
|
|
this.kind = "github";
|
|
this.label = "GitHub";
|
|
this.expiry = null;
|
|
/** Waits between retries; replaceable in tests so they don't really sleep. */
|
|
this.delay = sleep;
|
|
this.cfg = cfg;
|
|
}
|
|
tokenExpiresAt() {
|
|
const e = this.expiry;
|
|
return e && e.token === this.cfg().token ? e.at : null;
|
|
}
|
|
gitUrl() {
|
|
const c = this.cfg();
|
|
return `${webBase(c.apiBase)}/${c.owner}/${c.repo}.git`;
|
|
}
|
|
authHeader() {
|
|
return `Basic ${btoa(`x-access-token:${this.cfg().token}`)}`;
|
|
}
|
|
/**
|
|
* One atomic commit: blobs → chained trees (bounded memory, bounded request size) → commit →
|
|
* fast-forward-only ref update.
|
|
*/
|
|
async commit(req) {
|
|
let tree = req.parentTree;
|
|
let chunk = [];
|
|
let chunkBytes = 0;
|
|
const blobShas = /* @__PURE__ */ new Map();
|
|
const flush = async () => {
|
|
if (!chunk.length) return;
|
|
tree = await this.createTree(tree, chunk);
|
|
chunk = [];
|
|
chunkBytes = 0;
|
|
};
|
|
const ups = req.upserts;
|
|
for (let i = 0; i < ups.length; i += UPLOAD_BATCH) {
|
|
req.progress?.(Math.min(i + UPLOAD_BATCH, ups.length), ups.length);
|
|
await pool(ups.slice(i, i + UPLOAD_BATCH), 2, async (u) => {
|
|
if (u.sha) {
|
|
chunk.push({ path: u.path, mode: u.mode, type: "blob", sha: u.sha });
|
|
chunkBytes += 100;
|
|
return;
|
|
}
|
|
const data = await u.load();
|
|
const text = data.byteLength <= INLINE_MAX ? u.text?.(data) ?? null : null;
|
|
if (text !== null) {
|
|
chunk.push({ path: u.path, mode: u.mode, type: "blob", content: text });
|
|
chunkBytes += data.byteLength;
|
|
} else {
|
|
const sha2 = await this.createBlob((0, import_obsidian2.arrayBufferToBase64)(data));
|
|
blobShas.set(u.path, sha2);
|
|
chunk.push({ path: u.path, mode: u.mode, type: "blob", sha: sha2 });
|
|
chunkBytes += 100;
|
|
}
|
|
});
|
|
if (chunkBytes >= TREE_CHUNK_BYTES || chunk.length >= TREE_CHUNK_ENTRIES) await flush();
|
|
}
|
|
for (const p of req.deletes) {
|
|
chunk.push({ path: p, mode: "100644", type: "blob", sha: null });
|
|
if (chunk.length >= TREE_CHUNK_ENTRIES) await flush();
|
|
}
|
|
await flush();
|
|
const sha = await this.createCommit(req.message, tree, [req.parent], req.author);
|
|
if (await this.getRef(req.branch) !== req.parent) throw new NotFastForward();
|
|
if (!await this.updateRef(req.branch, sha)) throw new NotFastForward();
|
|
return { sha, fastForward: true, blobShas };
|
|
}
|
|
get repoPath() {
|
|
const c = this.cfg();
|
|
return `/repos/${encodeURIComponent(c.owner)}/${encodeURIComponent(c.repo)}`;
|
|
}
|
|
async request(method, path, body, opts = {}) {
|
|
let c = this.cfg();
|
|
if (!c.token) throw codedRemoteError((m, st, i) => new GitHubError(m, st, i), "noToken", 401, "GitHub");
|
|
const url = (c.apiBase || "https://api.github.com").replace(/\/+$/, "") + path;
|
|
let lastErr;
|
|
let reauthed = false;
|
|
let secondaryWaited = false;
|
|
const once = !/^(GET|HEAD)$/i.test(method) && !(/^POST$/i.test(method) && /\/git\/(blobs|trees|commits)$/.test(path)) && !(/^PATCH$/i.test(method) && /\/git\/refs\//.test(path));
|
|
for (let attempt = 0; attempt < 4; attempt++) {
|
|
let res;
|
|
try {
|
|
res = await (0, import_obsidian2.requestUrl)({
|
|
url,
|
|
method,
|
|
headers: {
|
|
Authorization: `Bearer ${c.token}`,
|
|
Accept: opts.accept ?? "application/vnd.github+json",
|
|
"X-GitHub-Api-Version": "2022-11-28",
|
|
// GitHub marks responses cacheable for 60s and Obsidian's HTTP layer honours that.
|
|
// A stale branch head would look like remote deletions, so always revalidate.
|
|
"Cache-Control": "no-cache",
|
|
Pragma: "no-cache"
|
|
},
|
|
contentType: body !== void 0 ? "application/json" : void 0,
|
|
body: body !== void 0 ? JSON.stringify(body) : void 0,
|
|
throw: false
|
|
});
|
|
} catch (e) {
|
|
lastErr = e;
|
|
if (once) break;
|
|
if (attempt < 3) await this.delay(1e3 * 2 ** attempt);
|
|
continue;
|
|
}
|
|
if (res.status < 300 || opts.okStatuses?.includes(res.status)) {
|
|
if (res.status < 300) {
|
|
const at = parseTokenExpiry(header(res, "github-authentication-token-expiration"));
|
|
if (at !== null || this.expiry?.token !== c.token) this.expiry = { token: c.token, at };
|
|
}
|
|
return res;
|
|
}
|
|
const data = safeJson(res);
|
|
const msg = data?.message ?? `HTTP ${res.status}`;
|
|
if (res.status === 403 || res.status === 429) {
|
|
const retryAfter = Number(header(res, "retry-after"));
|
|
const remaining = header(res, "x-ratelimit-remaining");
|
|
const reset = Number(header(res, "x-ratelimit-reset"));
|
|
let waitMs = 0;
|
|
if (retryAfter) waitMs = retryAfter * 1e3;
|
|
else if (remaining === "0" && reset) waitMs = reset * 1e3 - Date.now() + 1e3;
|
|
if (waitMs > 0 && waitMs <= 6e4 && attempt < 3) {
|
|
await this.delay(waitMs);
|
|
continue;
|
|
}
|
|
if (waitMs > 0) {
|
|
throw codedRemoteError((m, st, i) => new GitHubError(m, st, i), "rateLimitMin", res.status, "GitHub", { min: Math.ceil(waitMs / 6e4) });
|
|
}
|
|
if (/secondary rate limit/i.test(msg)) {
|
|
if (!secondaryWaited && attempt < 3) {
|
|
secondaryWaited = true;
|
|
await this.delay(6e4);
|
|
continue;
|
|
}
|
|
throw codedRemoteError((m, st, i) => new GitHubError(m, st, i), "secondaryRateLimit", res.status, "GitHub");
|
|
}
|
|
}
|
|
if (res.status >= 500 && attempt < 3) {
|
|
lastErr = new GitHubError(msg, res.status, { host: "GitHub" });
|
|
if (once) break;
|
|
await this.delay(1e3 * 2 ** attempt);
|
|
continue;
|
|
}
|
|
if (res.status === 401) {
|
|
if (!reauthed && c.onUnauthorized && await c.onUnauthorized(c.token)) {
|
|
reauthed = true;
|
|
c = this.cfg();
|
|
attempt--;
|
|
continue;
|
|
}
|
|
throw codedRemoteError((m, st, i) => new GitHubError(m, st, i), "badToken", 401, "GitHub");
|
|
}
|
|
throw new GitHubError(`${msg} (${method} ${path.split("?")[0]})`, res.status, { host: "GitHub" });
|
|
}
|
|
if (lastErr instanceof RemoteError) throw lastErr;
|
|
if (lastErr instanceof Error) throw new GitHubError(lastErr.message, 0, { host: "GitHub" });
|
|
throw codedRemoteError((m, st, i) => new GitHubError(m, st, i), "network", 0, "GitHub");
|
|
}
|
|
async json(method, path, body) {
|
|
return (await this.request(method, path, body)).json;
|
|
}
|
|
// ---- account / repo ----
|
|
async getUser() {
|
|
return this.json("GET", "/user");
|
|
}
|
|
async getRepo() {
|
|
const res = await this.request("GET", this.repoPath, void 0, { okStatuses: [404] });
|
|
return res.status === 404 ? null : res.json;
|
|
}
|
|
/** Repositories the token can see, most recently updated first. */
|
|
async listRepos(maxPages = 3) {
|
|
const out = [];
|
|
if (this.cfg().token.startsWith("ghu_")) {
|
|
const inst = await this.json("GET", "/user/installations?per_page=100");
|
|
for (const i of inst.installations ?? []) {
|
|
for (let page = 1; page <= maxPages; page++) {
|
|
const res = await this.json("GET", `/user/installations/${i.id}/repositories?per_page=100&page=${page}`);
|
|
const list2 = res.repositories ?? [];
|
|
for (const r of list2) out.push({ owner: r.owner.login, name: r.name, private: r.private, updated: r.updated_at, defaultBranch: r.default_branch });
|
|
if (list2.length < 100) break;
|
|
}
|
|
}
|
|
return out.sort((a, b) => b.updated.localeCompare(a.updated));
|
|
}
|
|
for (let page = 1; page <= maxPages; page++) {
|
|
const list2 = await this.json("GET", `/user/repos?per_page=100&page=${page}&sort=updated&affiliation=owner,collaborator,organization_member`);
|
|
for (const r of list2) out.push({ owner: r.owner.login, name: r.name, private: r.private, updated: r.updated_at, defaultBranch: r.default_branch });
|
|
if (list2.length < 100) break;
|
|
}
|
|
return out;
|
|
}
|
|
/** Number of files on a branch (0 if the branch or repo is empty). */
|
|
async countFiles(branch) {
|
|
const head = await this.getRef(branch);
|
|
if (!head) return 0;
|
|
return (await this.listTree(await this.getCommitTree(head))).filter((e) => e.type === "blob").length;
|
|
}
|
|
async createRepo(name, org) {
|
|
const path = org ? `/orgs/${encodeURIComponent(org)}/repos` : "/user/repos";
|
|
return this.json("POST", path, {
|
|
name,
|
|
private: true,
|
|
auto_init: false,
|
|
description: "Obsidian vault (synced by Vault Sync for Git)"
|
|
});
|
|
}
|
|
// ---- refs / commits / trees / blobs ----
|
|
/** Head commit sha of a branch, or null if the branch (or the whole repo) is empty/missing. */
|
|
async getRef(branch) {
|
|
const res = await this.request("GET", `${this.repoPath}/git/ref/heads/${encPath(branch)}?_=${Date.now()}`, void 0, {
|
|
okStatuses: [404, 409]
|
|
});
|
|
if (res.status === 404 || res.status === 409) return null;
|
|
return res.json.object.sha;
|
|
}
|
|
async createRef(ref, sha) {
|
|
await this.json("POST", `${this.repoPath}/git/refs`, { ref, sha });
|
|
}
|
|
/** Fast-forward only. Returns false if someone else pushed first. */
|
|
async updateRef(branch, sha) {
|
|
const res = await this.request(
|
|
"PATCH",
|
|
`${this.repoPath}/git/refs/heads/${encPath(branch)}`,
|
|
{ sha, force: false },
|
|
{ okStatuses: [409, 422] }
|
|
);
|
|
if (res.status < 300) return true;
|
|
const msg = String(safeJson(res)?.message ?? "");
|
|
if (/fast[- ]forward/i.test(msg) || res.status === 409) return false;
|
|
throw new GitHubError(`Could not update branch ${branch}: ${msg || `HTTP ${res.status}`}`, res.status, { host: "GitHub" });
|
|
}
|
|
/**
|
|
* How `head` relates to `base`: "ahead" (head contains base), "behind" (head is older),
|
|
* "identical", "diverged" (history rewritten), or "missing" (base commit no longer exists).
|
|
*/
|
|
async compare(base, head) {
|
|
const res = await this.request("GET", `${this.repoPath}/compare/${base}...${head}?per_page=1`, void 0, {
|
|
okStatuses: [404]
|
|
});
|
|
return res.status === 404 ? "missing" : res.json.status;
|
|
}
|
|
async getCommitTree(sha) {
|
|
return (await this.json("GET", `${this.repoPath}/git/commits/${sha}`)).tree.sha;
|
|
}
|
|
async getTree(sha, recursive) {
|
|
return this.json("GET", `${this.repoPath}/git/trees/${sha}${recursive ? "?recursive=1" : ""}`);
|
|
}
|
|
/** Full file list of a tree, walking sub-trees if GitHub truncated the recursive listing. */
|
|
async listTree(sha) {
|
|
const res = await this.getTree(sha, true);
|
|
if (!res.truncated) return res.tree;
|
|
const out = [];
|
|
const walk = async (treeSha, prefix) => {
|
|
const t2 = await this.getTree(treeSha, false);
|
|
if (t2.truncated) throw new SyncError("repoTooLarge", { host: "GitHub" });
|
|
for (const e of t2.tree) {
|
|
const p = prefix ? `${prefix}/${e.path}` : e.path;
|
|
if (e.type === "tree") await walk(e.sha, p);
|
|
else out.push({ ...e, path: p });
|
|
}
|
|
};
|
|
await walk(sha, "");
|
|
return out;
|
|
}
|
|
async getBlob(sha) {
|
|
const res = await this.request("GET", `${this.repoPath}/git/blobs/${sha}`, void 0, {
|
|
accept: "application/vnd.github.raw+json"
|
|
});
|
|
return res.arrayBuffer;
|
|
}
|
|
async createBlob(base64) {
|
|
return (await this.json("POST", `${this.repoPath}/git/blobs`, { content: base64, encoding: "base64" })).sha;
|
|
}
|
|
async createTree(baseTree, tree) {
|
|
const body = { tree };
|
|
if (baseTree) body.base_tree = baseTree;
|
|
return (await this.json("POST", `${this.repoPath}/git/trees`, body)).sha;
|
|
}
|
|
async createCommit(message2, tree, parents, author) {
|
|
const body = { message: message2, tree, parents };
|
|
if (author) body.author = { name: author.name, email: author.email, date: (/* @__PURE__ */ new Date()).toISOString() };
|
|
return (await this.json("POST", `${this.repoPath}/git/commits`, body)).sha;
|
|
}
|
|
/** Creates the first commit in an empty repo (the Git Data API refuses to work on empty repos). */
|
|
async putFile(path, message2, base64, branch) {
|
|
await this.json("PUT", `${this.repoPath}/contents/${encPath(path)}`, { message: message2, content: base64, branch });
|
|
}
|
|
/** Core API budget. This endpoint does not count against the limit. */
|
|
async rateLimit() {
|
|
return (await this.json("GET", "/rate_limit")).resources.core;
|
|
}
|
|
async listTags() {
|
|
const out = [];
|
|
for (let page = 1; page <= 30; page++) {
|
|
const list2 = await this.json("GET", `${this.repoPath}/tags?per_page=100&page=${page}`);
|
|
for (const t2 of list2) out.push({ name: t2.name, sha: t2.commit.sha });
|
|
if (list2.length < 100) break;
|
|
}
|
|
return out;
|
|
}
|
|
/** All branches (GET /repos/{owner}/{repo}/branches), up to 3000. */
|
|
async listBranches() {
|
|
const out = [];
|
|
for (let page = 1; page <= 30; page++) {
|
|
const list2 = await this.json("GET", `${this.repoPath}/branches?per_page=100&page=${page}`);
|
|
for (const b of list2) out.push({ name: b.name, sha: b.commit.sha });
|
|
if (list2.length < 100) break;
|
|
}
|
|
return out;
|
|
}
|
|
webUrl(kind, path, ref) {
|
|
const c = this.cfg();
|
|
const repo = `${webBase(c.apiBase)}/${encodeURIComponent(c.owner)}/${encodeURIComponent(c.repo)}`;
|
|
if (kind === "repo") return repo;
|
|
const tail = path ? `/${encPath(path)}` : "";
|
|
return `${repo}/${kind === "file" ? "blob" : "commits"}/${encPath(ref)}${tail}`;
|
|
}
|
|
async createPullRequest(head, base, title, body) {
|
|
const pr = await this.json("POST", `${this.repoPath}/pulls`, { title, head, base, body });
|
|
return { url: pr.html_url };
|
|
}
|
|
// ---- history ----
|
|
async listCommits(branch, path, perPage = 30, page = 1) {
|
|
const q = new URLSearchParams({ sha: branch, per_page: String(perPage) });
|
|
if (page > 1) q.set("page", String(page));
|
|
if (path) q.set("path", path);
|
|
const list2 = await this.json("GET", `${this.repoPath}/commits?${q.toString()}`);
|
|
return list2.map((c) => ({
|
|
sha: c.sha,
|
|
message: c.commit.message,
|
|
date: c.commit.author?.date ?? c.commit.committer?.date ?? "",
|
|
author: c.commit.author?.name ?? ""
|
|
}));
|
|
}
|
|
async getCommitFiles(sha) {
|
|
const c = await this.json("GET", `${this.repoPath}/commits/${sha}?per_page=300&page=1`);
|
|
const files = [...c.files ?? []];
|
|
for (let page = 2, last = files.length; page <= 10 && last >= 300; page++) {
|
|
const more = (await this.json("GET", `${this.repoPath}/commits/${sha}?per_page=300&page=${page}`)).files ?? [];
|
|
files.push(...more);
|
|
last = more.length;
|
|
}
|
|
return {
|
|
parent: c.parents?.[0]?.sha ?? null,
|
|
files: files.map((f) => f.previous_filename ? { filename: f.filename, status: f.status, previous: f.previous_filename } : { filename: f.filename, status: f.status })
|
|
};
|
|
}
|
|
/** File content at a commit, or null if it did not exist there. */
|
|
/**
|
|
* A file's bytes at `ref`. The contents endpoint is only asked for the blob sha: its raw (and
|
|
* base64) content is transcoded when GitHub takes binary data for UTF-16 text (seen with encrypted
|
|
* files: 60 bytes came back as 90), while the blob endpoint returns the stored bytes exactly.
|
|
*/
|
|
async getFileAt(path, ref) {
|
|
const res = await this.request("GET", `${this.repoPath}/contents/${encPath(path)}?ref=${encodeURIComponent(ref)}`, void 0, {
|
|
accept: "application/vnd.github.object+json",
|
|
okStatuses: [404]
|
|
});
|
|
if (res.status === 404) return null;
|
|
const e = res.json;
|
|
if (!e || e.type !== "file" || !e.sha) return null;
|
|
const data = await this.getBlob(e.sha);
|
|
if (await gitBlobSha(data) !== e.sha.toLowerCase()) throw new SyncError("incompleteDownload", { path, host: "GitHub", bytes: data.byteLength });
|
|
return data;
|
|
}
|
|
};
|
|
|
|
// src/http.ts
|
|
var import_obsidian3 = require("obsidian");
|
|
var obsidianTransport = async (req) => {
|
|
const res = await (0, import_obsidian3.requestUrl)({ url: req.url, method: req.method, headers: req.headers, body: req.body, contentType: req.contentType, throw: false });
|
|
let parsed = null;
|
|
return {
|
|
status: res.status,
|
|
get json() {
|
|
if (!parsed) {
|
|
let value = null;
|
|
try {
|
|
value = res.json;
|
|
} catch {
|
|
}
|
|
parsed = { value };
|
|
}
|
|
return parsed.value;
|
|
},
|
|
arrayBuffer: res.arrayBuffer,
|
|
headers: res.headers ?? {}
|
|
};
|
|
};
|
|
function sameOrigin(url, base) {
|
|
try {
|
|
const a = new URL(url);
|
|
const b = new URL(base);
|
|
return a.protocol === b.protocol && a.host.toLowerCase() === b.host.toLowerCase();
|
|
} catch {
|
|
return false;
|
|
}
|
|
}
|
|
function lengthMatches(res) {
|
|
const enc = header2(res, "content-encoding");
|
|
if (enc && !/^identity$/i.test(enc)) return true;
|
|
const len = header2(res, "content-length");
|
|
return !len || !/^\d+$/.test(len) || Number(len) === res.arrayBuffer.byteLength;
|
|
}
|
|
function header2(res, name) {
|
|
const k = Object.keys(res.headers).find((x) => x.toLowerCase() === name.toLowerCase());
|
|
return k ? res.headers[k] : void 0;
|
|
}
|
|
async function httpRequest(transport, req, opts) {
|
|
const wait = opts.wait ?? sleep;
|
|
const once = !opts.idempotent && !/^(GET|HEAD)$/i.test(req.method);
|
|
let lastErr;
|
|
for (let attempt = 0; attempt < 4; attempt++) {
|
|
let res;
|
|
try {
|
|
res = await transport({ ...req, headers: { "Cache-Control": "no-cache", Pragma: "no-cache", ...req.headers } });
|
|
} catch (e) {
|
|
lastErr = e;
|
|
if (once) break;
|
|
if (attempt < 3) await wait(1e3 * 2 ** attempt);
|
|
continue;
|
|
}
|
|
if (res.status < 300 || opts.okStatuses?.includes(res.status)) return res;
|
|
const body = res.json ?? {};
|
|
const msg = typeof body.message === "string" ? body.message : typeof body.error === "string" ? body.error : `HTTP ${res.status}`;
|
|
if (res.status === 429 || res.status === 403 && header2(res, "retry-after")) {
|
|
const ms = Number(header2(res, "retry-after") ?? 0) * 1e3 || 2e3 * (attempt + 1);
|
|
if (ms <= 6e4 && attempt < 3) {
|
|
await wait(ms);
|
|
continue;
|
|
}
|
|
throw codedRemoteError((m, st, i) => new RemoteError(m, st, i), "rateLimit", res.status, opts.hostLabel);
|
|
}
|
|
if (res.status >= 500 && attempt < 3) {
|
|
lastErr = new RemoteError(String(msg), res.status, { host: opts.hostLabel });
|
|
if (once) break;
|
|
await wait(1e3 * 2 ** attempt);
|
|
continue;
|
|
}
|
|
if (res.status === 401) throw codedRemoteError((m, st, i) => new RemoteError(m, st, i), "badToken", 401, opts.hostLabel);
|
|
throw new RemoteError(`${typeof msg === "string" ? msg : JSON.stringify(msg)} (${req.method} ${req.url.replace(/\?.*$/, "")})`, res.status, { host: opts.hostLabel });
|
|
}
|
|
if (lastErr instanceof RemoteError) throw lastErr;
|
|
if (lastErr instanceof Error) throw new RemoteError(lastErr.message, 0, { host: opts.hostLabel });
|
|
throw codedRemoteError((m, st, i) => new RemoteError(m, st, i), "network", 0, opts.hostLabel);
|
|
}
|
|
function b64encode(buf) {
|
|
const u = new Uint8Array(buf);
|
|
let s = "";
|
|
for (let i = 0; i < u.length; i += 32768) s += String.fromCharCode(...u.subarray(i, i + 32768));
|
|
return btoa(s);
|
|
}
|
|
function b64decode(s) {
|
|
const bin = atob(s.replace(/\s/g, ""));
|
|
const out = new Uint8Array(bin.length);
|
|
for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i);
|
|
return out.buffer;
|
|
}
|
|
async function compareByWalking(list2, base, head) {
|
|
if (base === head) return "identical";
|
|
const walk = async (from, target) => {
|
|
for (let page = 1; page <= 60; page++) {
|
|
const got = await list2(from, page);
|
|
const shas = Array.isArray(got) ? got : got.shas;
|
|
const more = Array.isArray(got) ? void 0 : got.more;
|
|
if (shas.includes(target)) return true;
|
|
if (!shas.length || more === false) return false;
|
|
}
|
|
return null;
|
|
};
|
|
const fwd = await walk(head, base);
|
|
if (fwd) return "ahead";
|
|
const back = await walk(base, head);
|
|
if (back) return "behind";
|
|
if (fwd === null || back === null) return "ahead";
|
|
return "diverged";
|
|
}
|
|
function buildMultipart(parts) {
|
|
const boundary = `----vaultsync${Array.from(crypto.getRandomValues(new Uint8Array(12)), (b) => b.toString(16).padStart(2, "0")).join("")}`;
|
|
const te5 = new TextEncoder();
|
|
const chunks = [];
|
|
const esc = (s) => s.replace(/"/g, "%22").replace(/\r|\n/g, " ");
|
|
for (const p of parts) {
|
|
const head = `--${boundary}\r
|
|
Content-Disposition: form-data; name="${esc(p.name)}"` + (p.filename !== void 0 ? `; filename="${esc(p.filename)}"` : "") + (p.attributes ? `; x-attributes:"${esc(p.attributes)}"` : "") + (p.filename !== void 0 ? "\r\nContent-Type: application/octet-stream" : "") + "\r\n\r\n";
|
|
chunks.push(te5.encode(head));
|
|
chunks.push(typeof p.value === "string" ? te5.encode(p.value) : new Uint8Array(p.value));
|
|
chunks.push(te5.encode("\r\n"));
|
|
}
|
|
chunks.push(te5.encode(`--${boundary}--\r
|
|
`));
|
|
const total = chunks.reduce((n, c) => n + c.length, 0);
|
|
const out = new Uint8Array(total);
|
|
let o = 0;
|
|
for (const c of chunks) {
|
|
out.set(c, o);
|
|
o += c.length;
|
|
}
|
|
return { body: out.buffer, contentType: `multipart/form-data; boundary=${boundary}` };
|
|
}
|
|
|
|
// src/gitea.ts
|
|
var encPath2 = (p) => p.split("/").map(encodeURIComponent).join("/");
|
|
var BATCH_BYTES = 8 * 1024 * 1024;
|
|
var Gitea = class {
|
|
constructor(cfg, transport = obsidianTransport) {
|
|
this.kind = "gitea";
|
|
this.label = "Gitea";
|
|
this.cfg = cfg;
|
|
this.transport = transport;
|
|
}
|
|
get base() {
|
|
return this.cfg().apiBase.replace(/\/+$/, "");
|
|
}
|
|
get repoPath() {
|
|
const c = this.cfg();
|
|
return `/repos/${encodeURIComponent(c.owner)}/${encodeURIComponent(c.repo)}`;
|
|
}
|
|
gitUrl() {
|
|
const c = this.cfg();
|
|
return `${this.base.replace(/\/api\/v1$/i, "")}/${c.owner}/${c.repo}.git`;
|
|
}
|
|
authHeader() {
|
|
return `Basic ${btoa(`oauth2:${this.cfg().token}`)}`;
|
|
}
|
|
/** Web pages: /src/{commit|branch}/<ref>/<path> and /commits/{commit|branch}/<ref>/<path>. */
|
|
webUrl(kind, path, ref) {
|
|
const c = this.cfg();
|
|
const repo = `${this.base.replace(/\/api\/v1$/i, "")}/${encodeURIComponent(c.owner)}/${encodeURIComponent(c.repo)}`;
|
|
if (kind === "repo") return repo;
|
|
const refPart = /^[0-9a-f]{40}$/i.test(ref) ? `commit/${ref}` : `branch/${encPath2(ref)}`;
|
|
const tail = path ? `/${encPath2(path)}` : "";
|
|
return `${repo}/${kind === "file" ? "src" : "commits"}/${refPart}${tail}`;
|
|
}
|
|
async request(method, path, body, opts = {}) {
|
|
const c = this.cfg();
|
|
if (!c.token) throw new SyncError("noToken", { host: this.label });
|
|
return httpRequest(
|
|
this.transport,
|
|
{
|
|
url: this.base + path,
|
|
method,
|
|
headers: { Authorization: `token ${c.token}`, Accept: opts.accept ?? "application/json" },
|
|
body: body !== void 0 ? JSON.stringify(body) : void 0,
|
|
contentType: body !== void 0 ? "application/json" : void 0
|
|
},
|
|
{ okStatuses: opts.okStatuses, hostLabel: this.label }
|
|
);
|
|
}
|
|
async json(method, path, body) {
|
|
return (await this.request(method, path, body)).json;
|
|
}
|
|
async getUser() {
|
|
const u = await this.json("GET", "/user");
|
|
return { login: u.login ?? u.username ?? "" };
|
|
}
|
|
async getRepo() {
|
|
const res = await this.request("GET", this.repoPath, void 0, { okStatuses: [404] });
|
|
if (res.status === 404) return null;
|
|
const r = res.json;
|
|
return { private: !!r.private, default_branch: r.default_branch || "main", html_url: r.html_url, size: r.size ?? 0 };
|
|
}
|
|
async createRepo(name, org) {
|
|
const r = await this.json("POST", org ? `/orgs/${encodeURIComponent(org)}/repos` : "/user/repos", { name, private: true, auto_init: false, description: "Obsidian vault (synced by Vault Sync)" });
|
|
return { html_url: r.html_url };
|
|
}
|
|
async listRepos(maxPages = 6) {
|
|
const out = [];
|
|
for (let page = 1; page <= maxPages; page++) {
|
|
const list2 = await this.json("GET", `/user/repos?limit=50&page=${page}`) ?? [];
|
|
if (!list2.length) break;
|
|
for (const r of list2) out.push({ owner: r.owner?.login ?? r.owner?.username ?? "", name: r.name, private: !!r.private, updated: r.updated_at, defaultBranch: r.default_branch || "main" });
|
|
}
|
|
return out.sort((a, b) => b.updated.localeCompare(a.updated));
|
|
}
|
|
async getRef(branch) {
|
|
const res = await this.request("GET", `${this.repoPath}/branches/${encPath2(branch)}?_=${Date.now()}`, void 0, { okStatuses: [404, 409] });
|
|
return res.status < 300 ? res.json.commit?.id ?? null : null;
|
|
}
|
|
async createRef(ref, sha) {
|
|
if (ref.startsWith("refs/tags/")) await this.json("POST", `${this.repoPath}/tags`, { tag_name: ref.slice(10), target: sha });
|
|
else await this.json("POST", `${this.repoPath}/branches`, { new_branch_name: ref.replace(/^refs\/heads\//, ""), old_ref_name: sha });
|
|
}
|
|
async getCommitTree(sha) {
|
|
const c = await this.json("GET", `${this.repoPath}/git/commits/${sha}?stat=false&files=false`);
|
|
const tree = c.commit?.tree?.sha ?? c.tree?.sha;
|
|
if (!tree) throw new SyncError("commitNoTree", { sha });
|
|
return tree;
|
|
}
|
|
async listTree(treeSha) {
|
|
const out = [];
|
|
for (let page = 1; page < 1e3; page++) {
|
|
const t2 = await this.json("GET", `${this.repoPath}/git/trees/${treeSha}?recursive=true&per_page=1000&page=${page}`);
|
|
for (const e of t2.tree ?? []) out.push({ path: e.path, mode: e.mode, type: e.type, sha: e.sha, size: e.size });
|
|
if (!t2.truncated || !(t2.tree ?? []).length) return out;
|
|
}
|
|
throw new SyncError("repoTooLarge", { host: this.label });
|
|
}
|
|
/**
|
|
* Blob content. Above the server's blob size limit (DEFAULT_MAX_BLOB_SIZE, 10 MiB by default)
|
|
* /git/blobs returns no content; then the file is read through /raw/{path} when the caller says
|
|
* where the blob lives, and checked against `sha`. Never returns empty bytes for a non-empty blob.
|
|
*/
|
|
async getBlob(sha, hint) {
|
|
const b = await this.json("GET", `${this.repoPath}/git/blobs/${sha}`);
|
|
const size = typeof b.size === "number" ? b.size : null;
|
|
if (typeof b.content === "string" && (b.content !== "" || !size)) {
|
|
const data2 = b64decode(b.content);
|
|
if (size === null || data2.byteLength === size) return data2;
|
|
}
|
|
if (!hint) throw new SyncError("blobTooLarge", { host: this.label });
|
|
const data = await this.getFileAt(hint.path, hint.ref);
|
|
if (!data || await gitBlobSha(data) !== sha) throw new SyncError("blobTooLargeMismatch", { host: this.label });
|
|
return data;
|
|
}
|
|
async putFile(path, message2, base64, branch) {
|
|
await this.json("POST", `${this.repoPath}/contents/${encPath2(path)}`, { content: base64, message: message2, branch, new_branch: branch });
|
|
}
|
|
/**
|
|
* ChangeFiles needs to know which files already exist (update vs create) and their blob shas
|
|
* (optimistic locking). Large changes are split into several commits.
|
|
*/
|
|
async commit(req) {
|
|
const head = await this.getRef(req.branch);
|
|
if (head !== req.parent) throw new NotFastForward();
|
|
const existing = req.existing ?? new Map((await this.listTree(req.parentTree)).filter((e) => e.type === "blob").map((e) => [e.path, e.sha]));
|
|
let parent = req.parent;
|
|
let fastForward = true;
|
|
let part = 0;
|
|
const send = async (files, last) => {
|
|
if (!files.length) return;
|
|
part++;
|
|
const [subject, ...rest] = req.message.split("\n");
|
|
const message2 = part > 1 || !last ? `${subject} (part ${part})
|
|
${rest.join("\n")}` : req.message;
|
|
const author = req.author ? { author: { name: req.author.name, email: req.author.email } } : {};
|
|
const res = await this.request("POST", `${this.repoPath}/contents`, { branch: req.branch, message: message2, files, ...author }, { okStatuses: [409, 422] });
|
|
if (res.status === 409) throw new NotFastForward();
|
|
if (res.status === 422) {
|
|
const m = String(res.json?.message ?? "");
|
|
if (/sha|does not match|already exists|not exist/i.test(m)) throw new NotFastForward();
|
|
throw new SyncError("commitRefused", { host: this.label, detail: m || "HTTP 422" });
|
|
}
|
|
const body = res.json;
|
|
const c = body.commit ?? { sha: body.sha ?? "", parents: body.parents };
|
|
const parents = (c.parents ?? []).map((x) => x.sha);
|
|
if (parents.length && parents[0] !== parent) fastForward = false;
|
|
if (!c.sha) throw new SyncError("commitNotCreated", { host: this.label });
|
|
parent = c.sha;
|
|
};
|
|
let batch = [];
|
|
let bytes = 0;
|
|
let done = 0;
|
|
for (const u of req.upserts) {
|
|
const data = await u.load();
|
|
if (bytes + data.byteLength > BATCH_BYTES && batch.length) {
|
|
await send(batch, false);
|
|
batch = [];
|
|
bytes = 0;
|
|
}
|
|
const prev = existing.get(u.path);
|
|
batch.push(prev ? { operation: "update", path: u.path, content: b64encode(data), sha: prev } : { operation: "create", path: u.path, content: b64encode(data) });
|
|
bytes += data.byteLength;
|
|
req.progress?.(++done, req.upserts.length);
|
|
}
|
|
for (const p of req.deletes) {
|
|
const prev = existing.get(p);
|
|
if (prev) batch.push({ operation: "delete", path: p, sha: prev });
|
|
}
|
|
await send(batch, true);
|
|
return { sha: parent, fastForward };
|
|
}
|
|
/** All branches (GET /repos/{owner}/{repo}/branches). Pages may be clamped: only an empty page ends the list. */
|
|
async listBranches() {
|
|
const out = [];
|
|
for (let page = 1; page <= 60; page++) {
|
|
const list2 = await this.json("GET", `${this.repoPath}/branches?limit=50&page=${page}`) ?? [];
|
|
if (!list2.length) break;
|
|
for (const b of list2) if (b.name) out.push({ name: b.name, sha: b.commit?.id ?? "" });
|
|
}
|
|
return out;
|
|
}
|
|
async createPullRequest(head, base, title, body) {
|
|
const pr = await this.json("POST", `${this.repoPath}/pulls`, { head, base, title, body });
|
|
return { url: pr.html_url };
|
|
}
|
|
async compare(base, head) {
|
|
const exists = await this.request("GET", `${this.repoPath}/git/commits/${base}?stat=false&files=false`, void 0, { okStatuses: [404, 422] });
|
|
if (exists.status >= 300) return "missing";
|
|
return compareByWalking(
|
|
async (sha, page) => {
|
|
const res = await this.request("GET", `${this.repoPath}/commits?sha=${sha}&limit=50&page=${page}&stat=false&files=false&verification=false`);
|
|
const hasMore = header2(res, "x-hasmore");
|
|
return { shas: (res.json ?? []).map((c) => c.sha), more: hasMore === void 0 ? void 0 : hasMore === "true" };
|
|
},
|
|
base,
|
|
head
|
|
);
|
|
}
|
|
async listCommits(branch, path, perPage = 30, page = 1) {
|
|
const q = new URLSearchParams({ sha: branch, limit: String(perPage), stat: "false", files: "false", verification: "false" });
|
|
if (page > 1) q.set("page", String(page));
|
|
if (path) q.set("path", path);
|
|
const list2 = await this.json("GET", `${this.repoPath}/commits?${q.toString()}`);
|
|
return list2.map((c) => ({ sha: c.sha, message: c.commit?.message ?? "", date: c.commit?.author?.date ?? c.created ?? "", author: c.commit?.author?.name ?? "" }));
|
|
}
|
|
async getCommitFiles(sha) {
|
|
const c = await this.json("GET", `${this.repoPath}/git/commits/${sha}?stat=false&files=true`);
|
|
return {
|
|
parent: c.parents?.[0]?.sha ?? null,
|
|
files: (c.files ?? []).map(
|
|
(f) => (
|
|
// A rename names its old path (history shows "old → new" and restores from the old path).
|
|
f.previous_filename && f.previous_filename !== f.filename ? { filename: f.filename, status: "renamed", previous: f.previous_filename } : { filename: f.filename, status: f.status === "deleted" ? "removed" : f.status }
|
|
)
|
|
)
|
|
};
|
|
}
|
|
async getFileAt(path, ref) {
|
|
const res = await this.request("GET", `${this.repoPath}/raw/${encPath2(path)}?ref=${encodeURIComponent(ref)}`, void 0, { accept: "*/*", okStatuses: [404] });
|
|
if (res.status === 404) return null;
|
|
if (!lengthMatches(res)) throw new SyncError("incompleteDownload", { path, host: this.label, bytes: res.arrayBuffer.byteLength });
|
|
return res.arrayBuffer;
|
|
}
|
|
async listTags() {
|
|
const out = [];
|
|
for (let page = 1; page <= 30; page++) {
|
|
const list2 = await this.json("GET", `${this.repoPath}/tags?limit=50&page=${page}`) ?? [];
|
|
if (!list2.length) break;
|
|
for (const t2 of list2) out.push({ name: t2.name, sha: t2.commit?.sha ?? t2.id ?? "" });
|
|
}
|
|
return out;
|
|
}
|
|
async rateLimit() {
|
|
return null;
|
|
}
|
|
async countFiles(branch) {
|
|
const head = await this.getRef(branch);
|
|
if (!head) return 0;
|
|
return (await this.listTree(await this.getCommitTree(head))).filter((e) => e.type === "blob").length;
|
|
}
|
|
};
|
|
|
|
// src/gitlab.ts
|
|
var BATCH_BYTES2 = 8 * 1024 * 1024;
|
|
var encPath3 = (p) => p.split("/").map(encodeURIComponent).join("/");
|
|
var GitLab = class {
|
|
constructor(cfg, transport = obsidianTransport, sizeStore = null) {
|
|
this.kind = "gitlab";
|
|
this.label = "GitLab";
|
|
/**
|
|
* Blob sha → size in bytes. /repository/tree returns no sizes, but the sync engine needs them for its
|
|
* size limits, so they are looked up once per blob (HEAD, X-Gitlab-Size) and remembered here. Costs
|
|
* one HEAD per file on the first listing after start-up, then only for new content.
|
|
*/
|
|
this.sizes = /* @__PURE__ */ new Map();
|
|
this.sizesLoaded = false;
|
|
this.sizeStore = sizeStore;
|
|
this.cfg = cfg;
|
|
this.transport = transport;
|
|
}
|
|
get base() {
|
|
return (this.cfg().apiBase || "https://gitlab.com/api/v4").replace(/\/+$/, "");
|
|
}
|
|
/** Project id: URL-encoded "group/subgroup/project". */
|
|
get project() {
|
|
const c = this.cfg();
|
|
return `/projects/${encodeURIComponent(`${c.owner}/${c.repo}`)}`;
|
|
}
|
|
file(path) {
|
|
return encodeURIComponent(path);
|
|
}
|
|
gitUrl() {
|
|
const c = this.cfg();
|
|
return `${this.base.replace(/\/api\/v4$/i, "")}/${c.owner}/${c.repo}.git`;
|
|
}
|
|
/** Web address of a project page: owner may be "group/subgroup". */
|
|
webUrl(kind, path, ref) {
|
|
const c = this.cfg();
|
|
const project = `${this.base.replace(/\/api\/v4$/i, "")}/${encPath3(c.owner)}/${encodeURIComponent(c.repo)}`;
|
|
if (kind === "repo") return project;
|
|
const tail = path ? `/${encPath3(path)}` : "";
|
|
return `${project}/-/${kind === "file" ? "blob" : "commits"}/${encPath3(ref)}${tail}`;
|
|
}
|
|
authHeader() {
|
|
return `Basic ${btoa(`oauth2:${this.cfg().token}`)}`;
|
|
}
|
|
async request(method, path, body, opts = {}) {
|
|
const send = (c2) => httpRequest(
|
|
this.transport,
|
|
{
|
|
url: this.base + path,
|
|
method,
|
|
// Pasted personal tokens use PRIVATE-TOKEN; sign-in (OAuth) tokens use Bearer.
|
|
headers: { ...c2.bearer ? { Authorization: `Bearer ${c2.token}` } : { "PRIVATE-TOKEN": c2.token }, Accept: opts.accept ?? "application/json" },
|
|
body: body !== void 0 ? JSON.stringify(body) : void 0,
|
|
contentType: body !== void 0 ? "application/json" : void 0
|
|
},
|
|
{ okStatuses: opts.okStatuses, hostLabel: this.label }
|
|
);
|
|
const c = this.cfg();
|
|
if (!c.token) throw new SyncError("noToken", { host: this.label });
|
|
try {
|
|
return await send(c);
|
|
} catch (e) {
|
|
if (e instanceof RemoteError && e.status === 401 && c.onUnauthorized && await c.onUnauthorized(c.token)) return send(this.cfg());
|
|
throw e;
|
|
}
|
|
}
|
|
async json(method, path, body) {
|
|
return (await this.request(method, path, body)).json;
|
|
}
|
|
async getUser() {
|
|
return { login: (await this.json("GET", "/user")).username };
|
|
}
|
|
async getRepo() {
|
|
const res = await this.request("GET", this.project, void 0, { okStatuses: [404] });
|
|
if (res.status === 404) return null;
|
|
const r = res.json;
|
|
return { private: r.visibility !== "public", default_branch: r.default_branch || "main", html_url: r.web_url, size: 0 };
|
|
}
|
|
async createRepo(name, org) {
|
|
const body = { name, path: name, visibility: "private", initialize_with_readme: false };
|
|
if (org) body.namespace_id = (await this.json("GET", `/namespaces/${encodeURIComponent(org)}`)).id;
|
|
return { html_url: (await this.json("POST", "/projects", body)).web_url };
|
|
}
|
|
async listRepos(maxPages = 3) {
|
|
const out = [];
|
|
for (let page = 1; page <= maxPages; page++) {
|
|
const list2 = await this.json("GET", `/projects?membership=true&per_page=100&page=${page}&order_by=last_activity_at&simple=true`);
|
|
for (const r of list2) out.push({ owner: r.namespace?.full_path ?? r.path_with_namespace.split("/").slice(0, -1).join("/"), name: r.path, private: r.visibility !== "public", updated: r.last_activity_at, defaultBranch: r.default_branch || "main" });
|
|
if (list2.length < 100) break;
|
|
}
|
|
return out;
|
|
}
|
|
async getRef(branch) {
|
|
const res = await this.request("GET", `${this.project}/repository/branches/${encodeURIComponent(branch)}?_=${Date.now()}`, void 0, { okStatuses: [404] });
|
|
return res.status < 300 ? res.json.commit?.id ?? null : null;
|
|
}
|
|
async createRef(ref, sha) {
|
|
if (ref.startsWith("refs/tags/")) await this.json("POST", `${this.project}/repository/tags?tag_name=${encodeURIComponent(ref.slice(10))}&ref=${sha}`);
|
|
else await this.json("POST", `${this.project}/repository/branches?branch=${encodeURIComponent(ref.replace(/^refs\/heads\//, ""))}&ref=${sha}`);
|
|
}
|
|
/** GitLab lists trees by ref, so a commit sha serves as the tree id. */
|
|
async getCommitTree(sha) {
|
|
return sha;
|
|
}
|
|
/** File list with sizes (see `sizes`). */
|
|
async listTree(ref) {
|
|
const out = await this.listEntries(ref);
|
|
if (!this.sizesLoaded && this.sizeStore) {
|
|
this.sizesLoaded = true;
|
|
try {
|
|
const saved = await this.sizeStore.load();
|
|
for (const [sha, n] of Object.entries(saved?.gitlabSizes ?? {})) if (typeof n === "number") this.sizes.set(sha, n);
|
|
} catch {
|
|
}
|
|
}
|
|
const unknown = /* @__PURE__ */ new Map();
|
|
for (const e of out) if (e.type === "blob" && !this.sizes.has(e.sha) && !unknown.has(e.sha)) unknown.set(e.sha, e.path);
|
|
await pool([...unknown], 6, async ([sha, path]) => {
|
|
try {
|
|
const res = await this.request("HEAD", `${this.project}/repository/files/${this.file(path)}?ref=${encodeURIComponent(ref)}`, void 0, { okStatuses: [404] });
|
|
const size = Number(header2(res, "x-gitlab-size") ?? NaN);
|
|
if (res.status < 300 && Number.isFinite(size)) this.sizes.set(sha, size);
|
|
} catch {
|
|
}
|
|
});
|
|
if (unknown.size && this.sizeStore) {
|
|
try {
|
|
await this.sizeStore.save({ gitlabSizes: Object.fromEntries(this.sizes) });
|
|
} catch {
|
|
}
|
|
}
|
|
for (const e of out) if (e.type === "blob") e.size = this.sizes.get(e.sha);
|
|
return out;
|
|
}
|
|
/** File list without sizes (cheap: no per-file requests). */
|
|
async listEntries(ref) {
|
|
const out = [];
|
|
let url = `${this.project}/repository/tree?ref=${encodeURIComponent(ref)}&recursive=true&per_page=100&pagination=keyset`;
|
|
for (let page = 0; url; page++) {
|
|
if (page >= 5e3) throw new SyncError("repoTooLarge", { host: this.label });
|
|
const res = await this.request("GET", url, void 0, { okStatuses: page === 0 ? [404] : [] });
|
|
if (res.status === 404) {
|
|
if (await this.isEmptyTree(ref, res)) break;
|
|
throw new RemoteError(`GitLab could not list the files of ${ref} (HTTP 404)`, 404, { host: this.label, code: "listFailed", params: { ref } });
|
|
}
|
|
for (const e of res.json ?? []) out.push({ path: e.path, mode: e.mode, type: e.type, sha: e.id });
|
|
const next = /<([^>]+)>;\s*rel="next"/.exec(header2(res, "link") ?? "")?.[1];
|
|
url = next ? this.relativeLink(next) : "";
|
|
}
|
|
return out;
|
|
}
|
|
/**
|
|
* A 404 on the first tree page means an empty tree only when GitLab says so ("Tree Not Found") and
|
|
* the commit itself exists. Anything else (unknown commit, a proxy's 404) must not read as "the
|
|
* repository has no files": that would make every remote file look deleted.
|
|
*/
|
|
async isEmptyTree(ref, res) {
|
|
const m = res.json?.message;
|
|
const msg = typeof m === "string" ? m : "";
|
|
if (!/tree not found/i.test(msg)) return false;
|
|
const c = await this.request("GET", `${this.project}/repository/commits/${encodeURIComponent(ref)}`, void 0, { okStatuses: [404] });
|
|
return c.status < 300;
|
|
}
|
|
/**
|
|
* Path and query of a pagination link, relative to the API base. The link's own origin is ignored
|
|
* (behind a proxy GitLab may report http:// or another host name), so requests and the token always
|
|
* go to the configured server; the link only supplies the path under the API root.
|
|
*/
|
|
relativeLink(next) {
|
|
let u;
|
|
let b;
|
|
try {
|
|
u = new URL(next, this.base + "/");
|
|
b = new URL(this.base + "/");
|
|
} catch {
|
|
throw new SyncError("badPagination", { host: this.label });
|
|
}
|
|
const basePath = b.pathname.replace(/\/+$/, "");
|
|
const lower = u.pathname.toLowerCase();
|
|
let rest = null;
|
|
if (basePath && lower.startsWith(basePath.toLowerCase() + "/")) rest = u.pathname.slice(basePath.length);
|
|
else {
|
|
const i = lower.indexOf("/api/v4/");
|
|
if (i >= 0) rest = u.pathname.slice(i + "/api/v4".length);
|
|
}
|
|
if (rest === null || !rest.startsWith("/projects/")) throw new SyncError("badPagination", { host: this.label });
|
|
return rest + u.search;
|
|
}
|
|
async getBlob(sha) {
|
|
return (await this.request("GET", `${this.project}/repository/blobs/${sha}/raw`, void 0, { accept: "*/*" })).arrayBuffer;
|
|
}
|
|
async putFile(path, message2, base64, branch) {
|
|
await this.json("POST", `${this.project}/repository/files/${this.file(path)}`, { branch, content: base64, encoding: "base64", commit_message: message2 });
|
|
}
|
|
async commit(req) {
|
|
const head = await this.getRef(req.branch);
|
|
if (head !== req.parent) throw new NotFastForward();
|
|
const existing = new Set(req.existing ? req.existing.keys() : (await this.listEntries(req.parent)).filter((e) => e.type === "blob").map((e) => e.path));
|
|
const lastCommit = async (path) => {
|
|
const res = await this.request("HEAD", `${this.project}/repository/files/${this.file(path)}?ref=${req.parent}`, void 0, { okStatuses: [404] });
|
|
return Object.entries(res.headers).find(([k]) => k.toLowerCase() === "x-gitlab-last-commit-id")?.[1];
|
|
};
|
|
let parent = req.parent;
|
|
let fastForward = true;
|
|
let part = 0;
|
|
const send = async (actions, last) => {
|
|
if (!actions.length) return;
|
|
part++;
|
|
const [subject, ...rest] = req.message.split("\n");
|
|
const commit_message = part > 1 || !last ? `${subject} (part ${part})
|
|
${rest.join("\n")}` : req.message;
|
|
const author = req.author ? { author_name: req.author.name, author_email: req.author.email } : {};
|
|
const res = await this.request("POST", `${this.project}/repository/commits`, { branch: req.branch, commit_message, actions, ...author }, { okStatuses: [400, 409] });
|
|
if (res.status === 409) throw new NotFastForward();
|
|
if (res.status === 400) {
|
|
const m = String(res.json?.message ?? "");
|
|
if (/changed since|already exists|doesn't exist|does not exist|conflict/i.test(m)) throw new NotFastForward();
|
|
throw new SyncError("commitRefused", { host: this.label, detail: m || "HTTP 400" });
|
|
}
|
|
const created = res.json;
|
|
const parents = created.parent_ids ?? [];
|
|
if (parents.length && parents[0] !== parent) fastForward = false;
|
|
parent = created.id;
|
|
};
|
|
let batch = [];
|
|
let bytes = 0;
|
|
let done = 0;
|
|
for (const u of req.upserts) {
|
|
const data = await u.load();
|
|
if (bytes + data.byteLength > BATCH_BYTES2 && batch.length) {
|
|
await send(batch, false);
|
|
batch = [];
|
|
bytes = 0;
|
|
}
|
|
const update = existing.has(u.path);
|
|
batch.push({ action: update ? "update" : "create", file_path: u.path, content: b64encode(data), encoding: "base64", ...update ? { last_commit_id: await lastCommit(u.path) } : {} });
|
|
this.sizes.set(u.sha ?? await gitBlobSha(data), data.byteLength);
|
|
bytes += data.byteLength;
|
|
req.progress?.(++done, req.upserts.length);
|
|
}
|
|
for (const p of req.deletes) if (existing.has(p)) batch.push({ action: "delete", file_path: p, last_commit_id: await lastCommit(p) });
|
|
await send(batch, true);
|
|
return { sha: parent, fastForward };
|
|
}
|
|
/** All branches (GET /projects/:id/repository/branches), up to 3000. */
|
|
async listBranches() {
|
|
const out = [];
|
|
for (let page = 1; page <= 30; page++) {
|
|
const res = await this.request("GET", `${this.project}/repository/branches?per_page=100&page=${page}`);
|
|
const list2 = res.json ?? [];
|
|
for (const b of list2) if (b.name) out.push({ name: b.name, sha: b.commit?.id ?? "" });
|
|
const next = header2(res, "x-next-page");
|
|
if (!list2.length || (next !== void 0 ? !next : list2.length < 100)) break;
|
|
}
|
|
return out;
|
|
}
|
|
async createPullRequest(head, base, title, body) {
|
|
const mr = await this.json("POST", `${this.project}/merge_requests`, { source_branch: head, target_branch: base, title, description: body });
|
|
return { url: mr.web_url };
|
|
}
|
|
async compare(base, head) {
|
|
if (base === head) return "identical";
|
|
const res = await this.request("GET", `${this.project}/repository/merge_base?refs[]=${base}&refs[]=${head}`, void 0, { okStatuses: [400, 404] });
|
|
if (res.status >= 300) return "missing";
|
|
const mb = res.json.id;
|
|
if (mb === base) return "ahead";
|
|
if (mb === head) return "behind";
|
|
return "diverged";
|
|
}
|
|
async listCommits(branch, path, perPage = 30, page = 1) {
|
|
const q = new URLSearchParams({ ref_name: branch, per_page: String(perPage) });
|
|
if (page > 1) q.set("page", String(page));
|
|
if (path) q.set("path", path);
|
|
const list2 = await this.json("GET", `${this.project}/repository/commits?${q.toString()}`);
|
|
return list2.map((c) => ({ sha: c.id, message: c.message ?? c.title ?? "", date: c.authored_date ?? c.created_at ?? "", author: c.author_name ?? "" }));
|
|
}
|
|
async getCommitFiles(sha) {
|
|
const c = await this.json("GET", `${this.project}/repository/commits/${sha}`);
|
|
const diff = [];
|
|
for (let page = 1; page <= 30; page++) {
|
|
const res = await this.request("GET", `${this.project}/repository/commits/${sha}/diff?per_page=100&page=${page}`);
|
|
const list2 = res.json ?? [];
|
|
diff.push(...list2);
|
|
const next = header2(res, "x-next-page");
|
|
if (!list2.length || (next !== void 0 ? !next : list2.length < 100)) break;
|
|
}
|
|
return { parent: c.parent_ids?.[0] ?? null, files: diff.map((d) => d.renamed_file && !d.deleted_file && !d.new_file ? { filename: d.new_path, status: "renamed", previous: d.old_path } : { filename: d.deleted_file ? d.old_path : d.new_path, status: d.deleted_file ? "removed" : d.new_file ? "added" : "modified" }) };
|
|
}
|
|
async getFileAt(path, ref) {
|
|
const res = await this.request("GET", `${this.project}/repository/files/${this.file(path)}/raw?ref=${encodeURIComponent(ref)}`, void 0, { accept: "*/*", okStatuses: [404] });
|
|
if (res.status === 404) return null;
|
|
const blobId = header2(res, "x-gitlab-blob-id");
|
|
const ok = blobId && /^[0-9a-f]{40}$/i.test(blobId) ? await gitBlobSha(res.arrayBuffer) === blobId.toLowerCase() : lengthMatches(res);
|
|
if (!ok) throw new SyncError("incompleteDownload", { path, host: this.label, bytes: res.arrayBuffer.byteLength });
|
|
return res.arrayBuffer;
|
|
}
|
|
async listTags() {
|
|
const out = [];
|
|
for (let page = 1; page <= 30; page++) {
|
|
const list2 = await this.json("GET", `${this.project}/repository/tags?per_page=100&page=${page}`) ?? [];
|
|
for (const t2 of list2) out.push({ name: t2.name, sha: t2.commit?.id ?? "" });
|
|
if (list2.length < 100) break;
|
|
}
|
|
return out;
|
|
}
|
|
async rateLimit() {
|
|
return null;
|
|
}
|
|
async countFiles(branch) {
|
|
const head = await this.getRef(branch);
|
|
if (!head) return 0;
|
|
return (await this.listEntries(head)).filter((e) => e.type === "blob").length;
|
|
}
|
|
};
|
|
|
|
// src/bitbucket.ts
|
|
var IncompleteDownload = class extends SyncError {
|
|
constructor(path, got, expected) {
|
|
super("partialDownload", { path, host: "Bitbucket", got, expected });
|
|
this.name = "IncompleteDownload";
|
|
}
|
|
};
|
|
var encPath4 = (p) => p.split("/").map(encodeURIComponent).join("/");
|
|
var BATCH_BYTES3 = 8 * 1024 * 1024;
|
|
function modeOf(e) {
|
|
const a = e.attributes ?? [];
|
|
if (a.includes("subrepository")) return "160000";
|
|
if (a.includes("executable")) return "100755";
|
|
return "100644";
|
|
}
|
|
function safeOrigin(url) {
|
|
try {
|
|
return new URL(url).origin;
|
|
} catch {
|
|
return "invalid URL";
|
|
}
|
|
}
|
|
function commitFromLocation(location) {
|
|
if (!location) return null;
|
|
const m = /\/commit\/([0-9a-f]{7,64})\/?(?:[?#].*)?$/i.exec(location.trim());
|
|
return m ? m[1] : null;
|
|
}
|
|
var Bitbucket = class {
|
|
constructor(cfg, store = null, transport = obsidianTransport) {
|
|
this.kind = "bitbucket";
|
|
this.label = "Bitbucket";
|
|
this.cache = null;
|
|
this.cacheLoaded = false;
|
|
/** `next` links of commit list pages already fetched (Bitbucket's page tokens are opaque): list key → URL. */
|
|
this.commitPages = /* @__PURE__ */ new Map();
|
|
this.cfg = cfg;
|
|
this.store = store;
|
|
this.transport = transport;
|
|
}
|
|
get base() {
|
|
return (this.cfg().apiBase || "https://api.bitbucket.org/2.0").replace(/\/+$/, "");
|
|
}
|
|
get repoPath() {
|
|
const c = this.cfg();
|
|
return `/repositories/${encodeURIComponent(c.owner)}/${encodeURIComponent(c.repo)}`;
|
|
}
|
|
/** Atlassian API tokens are entered as "email:token" (Basic); access tokens are used as Bearer. */
|
|
authValue() {
|
|
const t2 = this.cfg().token;
|
|
return t2.includes(":") ? `Basic ${btoa(t2)}` : `Bearer ${t2}`;
|
|
}
|
|
get web() {
|
|
return this.base.includes("api.bitbucket.org") ? "https://bitbucket.org" : this.base.replace(/\/2\.0$/, "").replace("//api.", "//");
|
|
}
|
|
gitUrl() {
|
|
const c = this.cfg();
|
|
return `${this.web}/${c.owner}/${c.repo}.git`;
|
|
}
|
|
/** Web pages: /src/<ref>/<path> (file) and /history-node/<ref>/<path> (history). */
|
|
webUrl(kind, path, ref) {
|
|
const c = this.cfg();
|
|
const repo = `${this.web}/${encodeURIComponent(c.owner)}/${encodeURIComponent(c.repo)}`;
|
|
if (kind === "repo") return repo;
|
|
const tail = path ? `/${encPath4(path)}` : "";
|
|
return `${repo}/${kind === "file" ? "src" : "history-node"}/${encPath4(ref)}${tail}`;
|
|
}
|
|
/**
|
|
* Git/LFS credentials. App passwords ("username:password") are used as they are; Atlassian API
|
|
* tokens ("email:token") must use the fixed username x-bitbucket-api-token-auth for git; access
|
|
* tokens use x-token-auth.
|
|
*/
|
|
authHeader() {
|
|
const t2 = this.cfg().token;
|
|
const i = t2.indexOf(":");
|
|
if (i < 0) return `Basic ${btoa(`x-token-auth:${t2}`)}`;
|
|
if (t2.slice(0, i).includes("@")) return `Basic ${btoa(`x-bitbucket-api-token-auth:${t2.slice(i + 1)}`)}`;
|
|
return `Basic ${btoa(t2)}`;
|
|
}
|
|
async request(method, path, body, opts = {}) {
|
|
if (!this.cfg().token) throw new SyncError("noToken", { host: this.label });
|
|
const absolute = /^[a-z][a-z0-9+.-]*:/i.test(path);
|
|
if (absolute && !sameOrigin(path, this.base)) throw new SyncError("foreignLink", { host: this.label, origin: safeOrigin(path) });
|
|
const url = absolute ? path : this.base + path;
|
|
return httpRequest(
|
|
this.transport,
|
|
{
|
|
url,
|
|
method,
|
|
headers: { Authorization: this.authValue(), Accept: opts.accept ?? "application/json" },
|
|
body: body !== void 0 ? JSON.stringify(body) : void 0,
|
|
contentType: body !== void 0 ? "application/json" : void 0
|
|
},
|
|
{ okStatuses: opts.okStatuses, hostLabel: this.label }
|
|
);
|
|
}
|
|
async json(method, path, body) {
|
|
return (await this.request(method, path, body)).json;
|
|
}
|
|
async pages(path, limit = 50) {
|
|
const out = [];
|
|
let url = path;
|
|
for (let i = 0; url && i < limit; i++) {
|
|
const page = await this.json("GET", url);
|
|
out.push(...page.values ?? []);
|
|
url = page.next;
|
|
}
|
|
return out;
|
|
}
|
|
// ---------- account / repo ----------
|
|
async getUser() {
|
|
try {
|
|
const u = await this.json("GET", "/user");
|
|
return { login: u.username ?? u.nickname ?? u.display_name ?? "" };
|
|
} catch (e) {
|
|
const c = this.cfg();
|
|
if (c.owner && c.repo && await this.getRepo().catch(() => null)) return { login: c.owner };
|
|
throw e;
|
|
}
|
|
}
|
|
async getRepo() {
|
|
const res = await this.request("GET", this.repoPath, void 0, { okStatuses: [404] });
|
|
if (res.status === 404) return null;
|
|
const r = res.json;
|
|
return { private: r.is_private !== false, default_branch: r.mainbranch?.name || "main", html_url: r.links?.html?.href ?? "", size: r.size ?? 0 };
|
|
}
|
|
async createRepo(name, org) {
|
|
const ws = org ?? this.cfg().owner;
|
|
const r = await this.json("POST", `/repositories/${encodeURIComponent(ws)}/${encodeURIComponent(name)}`, { scm: "git", is_private: true });
|
|
return { html_url: r.links?.html?.href ?? "" };
|
|
}
|
|
async listRepos(maxPages = 3) {
|
|
const list2 = await this.pages("/repositories?role=member&pagelen=100&sort=-updated_on", maxPages);
|
|
return list2.map((r) => ({ owner: r.workspace?.slug ?? "", name: r.slug, private: r.is_private !== false, updated: r.updated_on ?? "", defaultBranch: r.mainbranch?.name || "main" }));
|
|
}
|
|
// ---------- refs ----------
|
|
async getRef(branch) {
|
|
const res = await this.request("GET", `${this.repoPath}/refs/branches/${encodeURIComponent(branch)}?_=${Date.now()}`, void 0, { okStatuses: [404] });
|
|
return res.status < 300 ? res.json.target?.hash ?? null : null;
|
|
}
|
|
async createRef(ref, sha) {
|
|
if (ref.startsWith("refs/tags/")) await this.json("POST", `${this.repoPath}/refs/tags`, { name: ref.slice(10), target: { hash: sha } });
|
|
else await this.json("POST", `${this.repoPath}/refs/branches`, { name: ref.replace(/^refs\/heads\//, ""), target: { hash: sha } });
|
|
}
|
|
/** Bitbucket lists files by commit, so the commit hash serves as the tree id. */
|
|
async getCommitTree(sha) {
|
|
return sha;
|
|
}
|
|
// ---------- content ----------
|
|
async loadCache() {
|
|
if (!this.cacheLoaded) {
|
|
this.cache = await this.store?.load().catch(() => null) ?? null;
|
|
this.cacheLoaded = true;
|
|
}
|
|
return this.cache;
|
|
}
|
|
async saveCache(c) {
|
|
this.cache = c;
|
|
await this.store?.save(c);
|
|
}
|
|
/**
|
|
* Raw file content at a commit. Checks the body's length against `expected` (the size from the folder
|
|
* listing, when known) and against Content-Length (when the body wasn't re-encoded), so a cut-off
|
|
* download throws IncompleteDownload instead of being hashed and stored as a valid version.
|
|
*/
|
|
async raw(commit, path, expected) {
|
|
const res = await this.request("GET", `${this.repoPath}/src/${commit}/${encPath4(path)}`, void 0, { accept: "*/*", okStatuses: [404] });
|
|
if (res.status === 404) return null;
|
|
const data = res.arrayBuffer;
|
|
const got = data.byteLength;
|
|
if (typeof expected === "number" && expected >= 0 && got !== expected) throw new IncompleteDownload(path, got, expected);
|
|
const encoding = header2(res, "content-encoding");
|
|
const length = Number(header2(res, "content-length") ?? NaN);
|
|
if ((!encoding || encoding === "identity") && Number.isFinite(length) && length >= 0 && got !== length) throw new IncompleteDownload(path, got, length);
|
|
return data;
|
|
}
|
|
listDir(commit, dir) {
|
|
return this.pages(`${this.repoPath}/src/${commit}/${dir ? encPath4(dir) + "/" : ""}?pagelen=100`, 1e3);
|
|
}
|
|
/** Hashes one file into `files`/`blobs`. Submodules have no content to fetch: their commit is the sha. */
|
|
/**
|
|
* Hashes one file into `files`/`blobs`. Submodules have no content to fetch: their commit is the sha.
|
|
* `size` is the listing's size for the file; a download of another length throws (nothing is recorded).
|
|
*/
|
|
async hashInto(commit, p, mode, hash, size, files, blobs) {
|
|
if (mode === "160000") {
|
|
files[p] = { sha: hash ?? "", size: 0, mode };
|
|
return;
|
|
}
|
|
const data = await this.raw(commit, p, size);
|
|
if (!data) {
|
|
delete files[p];
|
|
return;
|
|
}
|
|
const sha = await gitBlobSha(data);
|
|
files[p] = mode === "100644" ? { sha, size: data.byteLength } : { sha, size: data.byteLength, mode };
|
|
blobs[sha] = { path: p, commit, size: data.byteLength };
|
|
}
|
|
async fullListing(commit, blobs) {
|
|
const entries2 = [];
|
|
const walk = async (dir) => {
|
|
for (const e of await this.listDir(commit, dir)) {
|
|
if (e.type === "commit_directory") await walk(e.path);
|
|
else entries2.push(e);
|
|
}
|
|
};
|
|
await walk("");
|
|
const files = {};
|
|
await pool(entries2, 4, (e) => this.hashInto(commit, e.path, modeOf(e), e.commit?.hash, e.size, files, blobs));
|
|
return files;
|
|
}
|
|
/**
|
|
* Paths that differ between two commits (direction doesn't matter: each is re-fetched).
|
|
* `topic=false` asks for a plain two-dot diff; Bitbucket's default is relative to the merge base,
|
|
* which would miss changes when the cache sits ahead of `b` (timeline, restore, force-push).
|
|
*/
|
|
async changedPaths(a, b) {
|
|
const out = /* @__PURE__ */ new Set();
|
|
for (const d of await this.pages(`${this.repoPath}/diffstat/${b}..${a}?pagelen=500&topic=false`, 1e3)) {
|
|
if (d.old?.path) out.add(d.old.path);
|
|
if (d.new?.path) out.add(d.new.path);
|
|
}
|
|
return out;
|
|
}
|
|
async listTree(commit) {
|
|
const cache = await this.loadCache();
|
|
const blobs = { ...cache?.blobs ?? {} };
|
|
let files;
|
|
if (cache && cache.commit === commit) files = cache.files;
|
|
else if (cache) {
|
|
try {
|
|
const changed = await this.changedPaths(cache.commit, commit);
|
|
const next = { ...cache.files };
|
|
const attrs = /* @__PURE__ */ new Map();
|
|
const dirs = new Set([...changed].map((p) => p.includes("/") ? p.slice(0, p.lastIndexOf("/")) : ""));
|
|
await pool([...dirs], 4, async (d) => {
|
|
const list2 = await this.listDir(commit, d).catch((e) => {
|
|
if (e instanceof RemoteError && e.status === 404) return [];
|
|
throw e;
|
|
});
|
|
for (const e of list2) if (e.type !== "commit_directory") attrs.set(e.path, e);
|
|
});
|
|
await pool([...changed], 4, async (p) => {
|
|
const e = attrs.get(p);
|
|
if (!e) {
|
|
delete next[p];
|
|
return;
|
|
}
|
|
await this.hashInto(commit, p, modeOf(e), e.commit?.hash, e.size, next, blobs);
|
|
});
|
|
files = next;
|
|
} catch (e) {
|
|
if (e instanceof IncompleteDownload) throw e;
|
|
files = await this.fullListing(commit, blobs);
|
|
}
|
|
} else files = await this.fullListing(commit, blobs);
|
|
await this.saveCache({ commit, files, blobs });
|
|
return Object.entries(files).map(([path, f]) => ({ path, mode: f.mode ?? "100644", type: f.mode === "160000" ? "commit" : "blob", sha: f.sha, size: f.size }));
|
|
}
|
|
async getBlob(sha) {
|
|
const cache = await this.loadCache();
|
|
const where = cache?.blobs[sha];
|
|
const known = where?.size ?? (where && cache?.files[where.path]?.sha === sha ? cache.files[where.path].size : void 0);
|
|
const data = where ? await this.raw(where.commit, where.path, known) : null;
|
|
if (!data || !where) throw new SyncError("versionUnavailable", { host: this.label });
|
|
if (await gitBlobSha(data) !== sha) throw new SyncError("contentMismatch", { path: where.path, host: this.label });
|
|
return data;
|
|
}
|
|
async putFile(path, message2, base64, branch) {
|
|
const bin = atob(base64);
|
|
const bytes = new Uint8Array(bin.length);
|
|
for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i);
|
|
await this.postSrc([{ name: "message", value: message2 }, { name: "branch", value: branch }, { name: `/${path}`, value: bytes.buffer, filename: path.split("/").pop() }]);
|
|
}
|
|
async postSrc(parts) {
|
|
const { body, contentType } = buildMultipart(parts);
|
|
return httpRequest(
|
|
this.transport,
|
|
{ url: `${this.base}${this.repoPath}/src`, method: "POST", headers: { Authorization: this.authValue(), Accept: "application/json" }, body, contentType },
|
|
{ okStatuses: [400, 409], hostLabel: this.label }
|
|
);
|
|
}
|
|
async commit(req) {
|
|
if (await this.getRef(req.branch) !== req.parent) throw new NotFastForward();
|
|
const cache = await this.loadCache();
|
|
const files = cache?.commit === req.parent ? { ...cache.files } : null;
|
|
const blobs = { ...cache?.blobs ?? {} };
|
|
const stored = /* @__PURE__ */ new Map();
|
|
let parent = req.parent;
|
|
let part = 0;
|
|
const send = async (fileParts, deletes, last) => {
|
|
if (!fileParts.length && !deletes.length) return;
|
|
part++;
|
|
const [subject, ...rest] = req.message.split("\n");
|
|
const message2 = part > 1 || !last ? `${subject} (part ${part})
|
|
${rest.join("\n")}` : req.message;
|
|
const res = await this.postSrc([
|
|
{ name: "message", value: message2 },
|
|
{ name: "branch", value: req.branch },
|
|
{ name: "parents", value: parent },
|
|
...req.author ? [{ name: "author", value: `${req.author.name} <${req.author.email}>` }] : [],
|
|
...deletes.map((p) => ({ name: "files", value: p })),
|
|
...fileParts
|
|
]);
|
|
if (res.status === 409) throw new NotFastForward();
|
|
if (res.status === 400) {
|
|
const m = String(res.json?.error?.message ?? "");
|
|
if (/parent|tip|head|conflict|outdated/i.test(m)) throw new NotFastForward();
|
|
throw new SyncError("commitRefused", { host: this.label, detail: m || "HTTP 400" });
|
|
}
|
|
const created = commitFromLocation(header2(res, "location")) ?? await this.getRef(req.branch);
|
|
if (!created || created === parent) throw new SyncError("commitNotCreated", { host: this.label });
|
|
const info = await this.json("GET", `${this.repoPath}/commit/${created}`);
|
|
if (info.parents?.[0]?.hash !== parent) throw new NotFastForward();
|
|
parent = created;
|
|
};
|
|
let batch = [];
|
|
let bytes = 0;
|
|
let done = 0;
|
|
for (const u of req.upserts) {
|
|
const data = await u.load();
|
|
if (bytes + data.byteLength > BATCH_BYTES3 && batch.length) {
|
|
await send(batch, [], false);
|
|
batch = [];
|
|
bytes = 0;
|
|
}
|
|
const exec = u.mode === "100755";
|
|
batch.push({ name: `/${u.path}`, value: data, filename: u.path.split("/").pop() ?? u.path, ...exec ? { attributes: "executable" } : {} });
|
|
stored.set(u.path, exec ? { sha: await gitBlobSha(data), size: data.byteLength, mode: "100755" } : { sha: await gitBlobSha(data), size: data.byteLength });
|
|
bytes += data.byteLength;
|
|
req.progress?.(++done, req.upserts.length);
|
|
}
|
|
await send(batch, req.deletes, true);
|
|
if (files) {
|
|
for (const p of req.deletes) delete files[p];
|
|
for (const [p, f] of stored) {
|
|
files[p] = f;
|
|
blobs[f.sha] = { path: p, commit: parent, size: f.size };
|
|
}
|
|
await this.saveCache({ commit: parent, files, blobs });
|
|
}
|
|
return { sha: parent, fastForward: true };
|
|
}
|
|
/** All branches (GET /repositories/{workspace}/{repo}/refs/branches), up to 2000. */
|
|
async listBranches() {
|
|
const list2 = await this.pages(`${this.repoPath}/refs/branches?pagelen=100`, 20);
|
|
return list2.map((b) => ({ name: b.name, sha: b.target?.hash ?? "" }));
|
|
}
|
|
async createPullRequest(head, base, title, body) {
|
|
const pr = await this.json("POST", `${this.repoPath}/pullrequests`, {
|
|
title,
|
|
description: body,
|
|
source: { branch: { name: head } },
|
|
destination: { branch: { name: base } }
|
|
});
|
|
return { url: pr.links?.html?.href ?? "" };
|
|
}
|
|
async compare(base, head) {
|
|
if (base === head) return "identical";
|
|
const res = await this.request("GET", `${this.repoPath}/merge-base/${base}..${head}`, void 0, { okStatuses: [404] });
|
|
if (res.status === 404) {
|
|
const exists = await this.request("GET", `${this.repoPath}/commit/${base}`, void 0, { okStatuses: [404] });
|
|
if (exists.status === 404) return "missing";
|
|
return compareByWalking(
|
|
async (sha, page) => {
|
|
const res2 = await this.json("GET", `${this.repoPath}/commits/${sha}?pagelen=50&page=${page}`);
|
|
return { shas: res2.values?.map((c) => c.hash) ?? [], more: !!res2.next };
|
|
},
|
|
base,
|
|
head
|
|
);
|
|
}
|
|
const mb = res.json.hash;
|
|
if (mb === base) return "ahead";
|
|
if (mb === head) return "behind";
|
|
return "diverged";
|
|
}
|
|
async listCommits(branch, path, perPage = 30, page = 1) {
|
|
const key2 = (n) => `${this.base}${this.repoPath}\0${branch}\0${path ?? ""}\0${perPage}\0${n}`;
|
|
const q = new URLSearchParams({ pagelen: String(perPage) });
|
|
if (path) q.set("path", path);
|
|
let url = page > 1 ? this.commitPages.get(key2(page)) : void 0;
|
|
if (!url) {
|
|
if (page > 1) q.set("page", String(page));
|
|
url = `${this.repoPath}/commits/${encodeURIComponent(branch)}?${q.toString()}`;
|
|
}
|
|
const res = await this.json("GET", url);
|
|
if (res.next) {
|
|
if (this.commitPages.size > 200) this.commitPages.clear();
|
|
this.commitPages.set(key2(page + 1), res.next);
|
|
}
|
|
return (res.values ?? []).map((c) => ({ sha: c.hash, message: c.message ?? "", date: c.date ?? "", author: c.author?.user?.display_name ?? c.author?.raw ?? "" }));
|
|
}
|
|
async getCommitFiles(sha) {
|
|
const c = await this.json("GET", `${this.repoPath}/commit/${sha}`);
|
|
const stats = await this.pages(`${this.repoPath}/diffstat/${sha}?pagelen=500`, 20);
|
|
return {
|
|
parent: c.parents?.[0]?.hash ?? null,
|
|
files: stats.map(
|
|
(d) => d.status === "renamed" && d.new?.path && d.old?.path ? { filename: d.new.path, status: "renamed", previous: d.old.path } : { filename: d.new?.path ?? d.old?.path ?? "", status: d.status === "removed" ? "removed" : d.status === "added" ? "added" : "modified" }
|
|
)
|
|
};
|
|
}
|
|
getFileAt(path, ref) {
|
|
return this.raw(ref, path);
|
|
}
|
|
async listTags() {
|
|
const list2 = await this.pages(`${this.repoPath}/refs/tags?pagelen=100`, 5);
|
|
return list2.map((t2) => ({ name: t2.name, sha: t2.target?.hash ?? "" }));
|
|
}
|
|
async rateLimit() {
|
|
return null;
|
|
}
|
|
async countFiles(branch) {
|
|
const head = await this.getRef(branch);
|
|
return head ? (await this.listTree(head)).filter((e) => e.type === "blob").length : 0;
|
|
}
|
|
};
|
|
|
|
// src/hosts.ts
|
|
var webOf = (api, suffix) => api.replace(/\/+$/, "").replace(suffix, "");
|
|
var HOSTS = {
|
|
github: {
|
|
label: "GitHub",
|
|
defaultApi: "https://api.github.com",
|
|
get apiHint() {
|
|
return t("hs.ghApi");
|
|
},
|
|
beta: false,
|
|
tokenSteps: (api, vault) => [
|
|
{ text: t("hs.gh1"), link: { label: t("hs.gh1Link"), href: fineGrainedTokenUrl(api, vault) } },
|
|
{ text: t("hs.gh2") },
|
|
{ text: t("hs.gh3") },
|
|
{ text: t("hs.gh4"), link: { label: t("hs.gh4Link"), href: classicTokenUrl(api) } }
|
|
]
|
|
},
|
|
gitlab: {
|
|
label: "GitLab",
|
|
defaultApi: "https://gitlab.com/api/v4",
|
|
get apiHint() {
|
|
return t("hs.glApi");
|
|
},
|
|
beta: true,
|
|
tokenSteps: (api) => [
|
|
{ text: t("hs.gl1"), link: { label: t("hs.gl1Link"), href: `${webOf(api, /\/api\/v4$/i)}/-/user_settings/personal_access_tokens?name=${encodeURIComponent("Obsidian Vault Sync")}&scopes=api` } },
|
|
{ text: t("hs.gl2") },
|
|
{ text: t("hs.paste") }
|
|
]
|
|
},
|
|
gitea: {
|
|
label: "Gitea / Forgejo / Codeberg",
|
|
defaultApi: "https://codeberg.org/api/v1",
|
|
get apiHint() {
|
|
return t("hs.gtApi");
|
|
},
|
|
beta: true,
|
|
tokenSteps: (api) => [
|
|
{ text: t("hs.gt1"), link: { label: t("hs.gt1Link"), href: `${webOf(api, /\/api\/v1$/i)}/user/settings/applications` } },
|
|
{ text: t("hs.gt2") },
|
|
{ text: t("hs.paste") }
|
|
]
|
|
},
|
|
bitbucket: {
|
|
label: "Bitbucket",
|
|
defaultApi: "https://api.bitbucket.org/2.0",
|
|
get apiHint() {
|
|
return t("hs.bbApi");
|
|
},
|
|
beta: true,
|
|
tokenSteps: () => [
|
|
{ text: t("hs.bb1"), link: { label: t("hs.bb1Link"), href: "https://support.atlassian.com/bitbucket-cloud/docs/repository-access-tokens/" } },
|
|
{ text: t("hs.bb2"), link: { label: t("hs.bb2Link"), href: "https://id.atlassian.com/manage-profile/security/api-tokens" } },
|
|
{ text: t("hs.bb3") }
|
|
]
|
|
}
|
|
};
|
|
function makeRemote(kind, cfg, cacheStore = null) {
|
|
if (kind === "bitbucket") return new Bitbucket(cfg, cacheStore);
|
|
if (kind === "gitlab") return new GitLab(cfg, void 0, cacheStore);
|
|
if (kind === "gitea") return new Gitea(cfg);
|
|
if (kind === "github") return new GitHub(cfg);
|
|
throw new SyncError("unsupportedHost", { host: String(kind) });
|
|
}
|
|
|
|
// src/health.ts
|
|
var import_obsidian6 = require("obsidian");
|
|
|
|
// src/ui.ts
|
|
var import_obsidian5 = require("obsidian");
|
|
|
|
// src/diffview.ts
|
|
var import_obsidian4 = require("obsidian");
|
|
|
|
// src/merge.ts
|
|
var MAX_CELLS = 25e5;
|
|
function splitLines(s) {
|
|
const out = [];
|
|
let i = 0;
|
|
while (i < s.length) {
|
|
const j = s.indexOf("\n", i);
|
|
if (j < 0) {
|
|
out.push(s.slice(i));
|
|
break;
|
|
}
|
|
out.push(s.slice(i, j + 1));
|
|
i = j + 1;
|
|
}
|
|
return out;
|
|
}
|
|
function lcsMatch(a, b) {
|
|
const m = new Int32Array(a.length).fill(-1);
|
|
let s = 0;
|
|
while (s < a.length && s < b.length && a[s] === b[s]) {
|
|
m[s] = s;
|
|
s++;
|
|
}
|
|
let ea = a.length;
|
|
let eb = b.length;
|
|
while (ea > s && eb > s && a[ea - 1] === b[eb - 1]) {
|
|
ea--;
|
|
eb--;
|
|
m[ea] = eb;
|
|
}
|
|
const n = ea - s;
|
|
const k = eb - s;
|
|
if (n === 0 || k === 0) return m;
|
|
if (n * k > MAX_CELLS) return null;
|
|
const w = k + 1;
|
|
const dp = new Uint32Array((n + 1) * w);
|
|
for (let i2 = n - 1; i2 >= 0; i2--) {
|
|
for (let j2 = k - 1; j2 >= 0; j2--) {
|
|
dp[i2 * w + j2] = a[s + i2] === b[s + j2] ? dp[(i2 + 1) * w + j2 + 1] + 1 : Math.max(dp[(i2 + 1) * w + j2], dp[i2 * w + j2 + 1]);
|
|
}
|
|
}
|
|
let i = 0;
|
|
let j = 0;
|
|
while (i < n && j < k) {
|
|
if (a[s + i] === b[s + j]) {
|
|
m[s + i] = s + j;
|
|
i++;
|
|
j++;
|
|
} else if (dp[(i + 1) * w + j] >= dp[i * w + j + 1]) {
|
|
i++;
|
|
} else {
|
|
j++;
|
|
}
|
|
}
|
|
return m;
|
|
}
|
|
function sameLines(x, y) {
|
|
if (x.length !== y.length) return false;
|
|
for (let i = 0; i < x.length; i++) if (x[i] !== y[i]) return false;
|
|
return true;
|
|
}
|
|
var MARKER_LIKE = /^(<{7} |={7}\r?$|>{7} |\|{7})/m;
|
|
function hasMarkerLikeLines(text) {
|
|
return MARKER_LIKE.test(text);
|
|
}
|
|
function pushBlock(out, lines2) {
|
|
for (const l of lines2) out.push(l);
|
|
const last = out[out.length - 1];
|
|
if (lines2.length && last !== void 0 && !last.endsWith("\n")) out[out.length - 1] = last + "\n";
|
|
}
|
|
function merge3(base, local, remote, labels) {
|
|
if (local === remote) return { clean: true, conflicts: 0, text: local };
|
|
if (local === base) return { clean: true, conflicts: 0, text: remote };
|
|
if (remote === base) return { clean: true, conflicts: 0, text: local };
|
|
const O = splitLines(base);
|
|
const A = splitLines(local);
|
|
const B = splitLines(remote);
|
|
const ma = lcsMatch(O, A);
|
|
const mb = lcsMatch(O, B);
|
|
if (!ma || !mb) return null;
|
|
const out = [];
|
|
let conflicts = 0;
|
|
let markerLike = null;
|
|
let i = 0;
|
|
let a = 0;
|
|
let b = 0;
|
|
for (; ; ) {
|
|
while (i < O.length && ma[i] === a && mb[i] === b) {
|
|
out.push(O[i]);
|
|
i++;
|
|
a++;
|
|
b++;
|
|
}
|
|
if (i >= O.length && a >= A.length && b >= B.length) break;
|
|
let ni = i;
|
|
while (ni < O.length && (ma[ni] < 0 || mb[ni] < 0)) ni++;
|
|
const na = ni < O.length ? ma[ni] : A.length;
|
|
const nb = ni < O.length ? mb[ni] : B.length;
|
|
const oC = O.slice(i, ni);
|
|
const aC = A.slice(a, na);
|
|
const bC = B.slice(b, nb);
|
|
if (sameLines(aC, oC)) out.push(...bC);
|
|
else if (sameLines(bC, oC)) out.push(...aC);
|
|
else if (sameLines(aC, bC)) out.push(...aC);
|
|
else {
|
|
if (markerLike === null) markerLike = hasMarkerLikeLines(local) || hasMarkerLikeLines(remote);
|
|
if (markerLike) return null;
|
|
conflicts++;
|
|
const lastOut = out[out.length - 1];
|
|
if (lastOut !== void 0 && !lastOut.endsWith("\n")) out[out.length - 1] = lastOut + "\n";
|
|
out.push(`<<<<<<< ${labels.local}
|
|
`);
|
|
pushBlock(out, aC);
|
|
out.push("=======\n");
|
|
pushBlock(out, bC);
|
|
out.push(`>>>>>>> ${labels.remote}
|
|
`);
|
|
}
|
|
i = ni;
|
|
a = na;
|
|
b = nb;
|
|
}
|
|
return { clean: conflicts === 0, conflicts, text: out.join("") };
|
|
}
|
|
|
|
// src/diff.ts
|
|
function diffLines(a, b) {
|
|
const A = splitLines(a);
|
|
const B = splitLines(b);
|
|
const m = lcsMatch(A, B);
|
|
const ops = [];
|
|
if (!m) {
|
|
for (const line of A) ops.push({ t: "del", line });
|
|
for (const line of B) ops.push({ t: "add", line });
|
|
return ops;
|
|
}
|
|
let j = 0;
|
|
for (let i = 0; i < A.length; i++) {
|
|
if (m[i] < 0) {
|
|
ops.push({ t: "del", line: A[i] });
|
|
continue;
|
|
}
|
|
while (j < m[i]) ops.push({ t: "add", line: B[j++] });
|
|
ops.push({ t: "eq", line: A[i] });
|
|
j++;
|
|
}
|
|
while (j < B.length) ops.push({ t: "add", line: B[j++] });
|
|
return ops;
|
|
}
|
|
function segments(ops) {
|
|
const out = [];
|
|
for (const op of ops) {
|
|
const last = out[out.length - 1];
|
|
if (op.t === "eq") {
|
|
if (last?.kind === "same") last.lines.push(op.line);
|
|
else out.push({ kind: "same", lines: [op.line] });
|
|
} else {
|
|
const block = last?.kind === "change" ? last : null;
|
|
const target = block ?? { kind: "change", a: [], b: [] };
|
|
if (!block) out.push(target);
|
|
(op.t === "del" ? target.a : target.b).push(op.line);
|
|
}
|
|
}
|
|
return out;
|
|
}
|
|
function assemble(segs, picks) {
|
|
const out = [];
|
|
let k = 0;
|
|
const push2 = (lines2) => {
|
|
for (const l of lines2) {
|
|
const last = out[out.length - 1];
|
|
if (last !== void 0 && !last.endsWith("\n")) out[out.length - 1] = last + "\n";
|
|
out.push(l);
|
|
}
|
|
};
|
|
for (const s of segs) {
|
|
if (s.kind === "same") push2(s.lines);
|
|
else {
|
|
const p = picks[k++] ?? "b";
|
|
if (p === "a" || p === "both") push2(s.a);
|
|
if (p === "b" || p === "both") push2(s.b);
|
|
}
|
|
}
|
|
return out.join("");
|
|
}
|
|
function diffStats(ops) {
|
|
let added = 0;
|
|
let removed = 0;
|
|
for (const o of ops) {
|
|
if (o.t === "add") added++;
|
|
else if (o.t === "del") removed++;
|
|
}
|
|
return { added, removed };
|
|
}
|
|
|
|
// src/diffview.ts
|
|
var strip = (l) => l.replace(/\r?\n$/, "");
|
|
function lineEl(parent, kind, no, text) {
|
|
const row = parent.createDiv({ cls: `vsg-dl vsg-dl-${kind}` });
|
|
row.createSpan({ cls: "vsg-dl-no", text: no === null ? "" : String(no) });
|
|
row.createSpan({ cls: "vsg-dl-sign", text: kind === "add" ? "+" : kind === "del" ? "\u2212" : " " });
|
|
row.createSpan({ cls: "vsg-dl-text", text: text || " " });
|
|
}
|
|
function renderDiff(parent, oldText, newText, o) {
|
|
const ctx = o.context ?? 3;
|
|
const ops = diffLines(oldText, newText);
|
|
const segs = segments(ops);
|
|
const stats = diffStats(ops);
|
|
let mode = o.mode ?? (import_obsidian4.Platform.isMobile ? "unified" : "split");
|
|
const wrap = parent.createDiv({ cls: "vsg-dv" });
|
|
const head = wrap.createDiv({ cls: "vsg-dv-head" });
|
|
head.createSpan({ cls: "vsg-dv-label vsg-dl-del", text: `\u2212 ${o.oldLabel}` });
|
|
head.createSpan({ cls: "vsg-dv-label vsg-dl-add", text: `+ ${o.newLabel}` });
|
|
head.createSpan({ cls: "vsg-dv-stats", text: `+${stats.added} \u2212${stats.removed}` });
|
|
const body = wrap.createDiv({ cls: "vsg-dv-body" });
|
|
if (!import_obsidian4.Platform.isMobile) {
|
|
const btn = head.createEl("button", { cls: "vsg-dv-toggle", text: t("d.unified") });
|
|
btn.onClickEvent(() => {
|
|
mode = mode === "split" ? "unified" : "split";
|
|
btn.setText(mode === "split" ? t("d.unified") : t("d.split"));
|
|
draw();
|
|
});
|
|
btn.setText(mode === "split" ? t("d.unified") : t("d.split"));
|
|
}
|
|
const draw = () => {
|
|
body.empty();
|
|
if (!stats.added && !stats.removed) {
|
|
body.createDiv({ cls: "vsg-dv-same", text: t("d.same") });
|
|
return;
|
|
}
|
|
body.toggleClass("vsg-dv-split", mode === "split");
|
|
let oldNo = 1;
|
|
let newNo = 1;
|
|
const left = mode === "split" ? body.createDiv({ cls: "vsg-dv-col" }) : body;
|
|
const right = mode === "split" ? body.createDiv({ cls: "vsg-dv-col" }) : body;
|
|
segs.forEach((s, idx) => {
|
|
if (s.kind === "same") {
|
|
const n = s.lines.length;
|
|
const first = idx === 0;
|
|
const last = idx === segs.length - 1;
|
|
const keepHead = first ? 0 : ctx;
|
|
const keepTail = last ? 0 : ctx;
|
|
const show = (from, to) => {
|
|
for (let i = from; i < to; i++) {
|
|
lineEl(left, "eq", oldNo + i, strip(s.lines[i]));
|
|
if (mode === "split") lineEl(right, "eq", newNo + i, strip(s.lines[i]));
|
|
}
|
|
};
|
|
if (n <= keepHead + keepTail + 1) show(0, n);
|
|
else {
|
|
show(0, keepHead);
|
|
const hidden = n - keepHead - keepTail;
|
|
const startOld = oldNo;
|
|
const startNew = newNo;
|
|
const folds = mode === "split" ? [left, right] : [left];
|
|
const els = folds.map((col) => col.createDiv({ cls: "vsg-dl-fold", text: t("d.unchanged", { n: hidden }) }));
|
|
const expand = () => {
|
|
els.forEach((el, k) => {
|
|
const frag = createDiv();
|
|
for (let i = keepHead; i < keepHead + hidden; i++) {
|
|
lineEl(frag, "eq", (k === 0 ? startOld : startNew) + i, strip(s.lines[i]));
|
|
}
|
|
el.replaceWith(...Array.from(frag.childNodes));
|
|
});
|
|
};
|
|
els.forEach((el) => clickable(el, expand));
|
|
for (let i = n - keepTail; i < n; i++) {
|
|
lineEl(left, "eq", oldNo + i, strip(s.lines[i]));
|
|
if (mode === "split") lineEl(right, "eq", newNo + i, strip(s.lines[i]));
|
|
}
|
|
}
|
|
oldNo += n;
|
|
newNo += n;
|
|
} else if (mode === "unified") {
|
|
s.a.forEach((l, i) => lineEl(body, "del", oldNo + i, strip(l)));
|
|
s.b.forEach((l, i) => lineEl(body, "add", newNo + i, strip(l)));
|
|
oldNo += s.a.length;
|
|
newNo += s.b.length;
|
|
} else {
|
|
const rows = Math.max(s.a.length, s.b.length);
|
|
for (let i = 0; i < rows; i++) {
|
|
if (i < s.a.length) lineEl(left, "del", oldNo + i, strip(s.a[i]));
|
|
else lineEl(left, "empty", null, "");
|
|
if (i < s.b.length) lineEl(right, "add", newNo + i, strip(s.b[i]));
|
|
else lineEl(right, "empty", null, "");
|
|
}
|
|
oldNo += s.a.length;
|
|
newNo += s.b.length;
|
|
}
|
|
});
|
|
};
|
|
draw();
|
|
}
|
|
function renderHunkPicker(parent, localText, remoteText, labels) {
|
|
const segs = segments(diffLines(localText, remoteText));
|
|
const picks = [];
|
|
const wrap = parent.createDiv({ cls: "vsg-hp" });
|
|
let k = 0;
|
|
segs.forEach((s, idx) => {
|
|
if (s.kind === "same") {
|
|
const n = s.lines.length;
|
|
const box = wrap.createDiv({ cls: "vsg-hp-same" });
|
|
const preview = n > 4 && idx !== 0 && idx !== segs.length - 1 ? [...s.lines.slice(0, 2), null, ...s.lines.slice(-2)] : s.lines;
|
|
for (const l of preview) {
|
|
if (l === null) box.createDiv({ cls: "vsg-dl-fold", text: t("d.unchanged", { n: n - 4 }) });
|
|
else lineEl(box, "eq", null, strip(l));
|
|
}
|
|
return;
|
|
}
|
|
const i = k++;
|
|
picks[i] = "both";
|
|
const block = wrap.createDiv({ cls: "vsg-hp-block" });
|
|
const bar = block.createDiv({ cls: "vsg-hp-bar" });
|
|
bar.createSpan({ text: t("d.change", { n: i + 1 }), cls: "vsg-hp-title" });
|
|
const opts = [
|
|
["a", labels.a],
|
|
["b", labels.b],
|
|
["both", t("d.both")]
|
|
];
|
|
const buttons = opts.map(([p, label]) => {
|
|
const b = bar.createEl("button", { text: label, cls: "vsg-hp-btn" });
|
|
b.onClickEvent(() => {
|
|
picks[i] = p;
|
|
buttons.forEach((x, j) => x.toggleClass("is-active", opts[j][0] === p));
|
|
sideA.toggleClass("vsg-hp-off", p === "b");
|
|
sideB.toggleClass("vsg-hp-off", p === "a");
|
|
});
|
|
return b;
|
|
});
|
|
buttons[2].addClass("is-active");
|
|
const sideA = block.createDiv({ cls: "vsg-hp-side" });
|
|
sideA.createDiv({ cls: "vsg-hp-side-label", text: labels.a });
|
|
if (!s.a.length) sideA.createDiv({ cls: "vsg-hp-empty", text: t("d.nothing") });
|
|
s.a.forEach((l) => lineEl(sideA, "del", null, strip(l)));
|
|
const sideB = block.createDiv({ cls: "vsg-hp-side" });
|
|
sideB.createDiv({ cls: "vsg-hp-side-label", text: labels.b });
|
|
if (!s.b.length) sideB.createDiv({ cls: "vsg-hp-empty", text: t("d.nothing") });
|
|
s.b.forEach((l) => lineEl(sideB, "add", null, strip(l)));
|
|
});
|
|
if (!k) wrap.createDiv({ cls: "vsg-dv-same", text: t("d.identical") });
|
|
return () => assemble(segs, picks);
|
|
}
|
|
function clickable(el, fn, label) {
|
|
el.setAttr("role", "button");
|
|
el.setAttr("tabindex", "0");
|
|
if (label) el.setAttr("aria-label", label);
|
|
el.onClickEvent(fn);
|
|
el.addEventListener("keydown", (ev) => {
|
|
if (ev.target !== el) return;
|
|
if (ev.key === "Enter" || ev.key === " ") {
|
|
ev.preventDefault();
|
|
fn();
|
|
}
|
|
});
|
|
}
|
|
|
|
// src/ui.ts
|
|
function list(el, items, max = 200) {
|
|
const ul = el.createEl("ul", { cls: "vsg-list" });
|
|
for (const i of items.slice(0, max)) ul.createEl("li", { text: i });
|
|
if (items.length > max) ul.createEl("li", { text: t("u.andMore", { n: items.length - max }) });
|
|
}
|
|
var errText = (e) => localizeError(e);
|
|
function destructive(b) {
|
|
return b.setWarning();
|
|
}
|
|
function renderSides(el, d) {
|
|
if (d.oldText === null || d.newText === null) {
|
|
el.createEl("p", {
|
|
cls: "vsg-muted",
|
|
text: t("u.binaryDiff", { a: d.oldLabel, as: d.oldSize ?? 0, b: d.newLabel, bs: d.newSize ?? 0 })
|
|
});
|
|
return;
|
|
}
|
|
renderDiff(el, d.oldText, d.newText, { oldLabel: d.oldLabel, newLabel: d.newLabel });
|
|
}
|
|
var DiffModal = class extends import_obsidian5.Modal {
|
|
constructor(app, title, load, actions = () => []) {
|
|
super(app);
|
|
this.title = title;
|
|
this.load = load;
|
|
this.actions = actions;
|
|
}
|
|
async onOpen() {
|
|
this.modalEl.addClass("vsg-wide");
|
|
this.titleEl.setText(this.title);
|
|
const status = this.contentEl.createEl("p", { text: t("u.loadingShort"), cls: "vsg-muted" });
|
|
try {
|
|
const d = await this.load();
|
|
status.remove();
|
|
renderSides(this.contentEl, d);
|
|
const acts = this.actions(d);
|
|
if (acts.length) {
|
|
const row = new import_obsidian5.Setting(this.contentEl);
|
|
for (const a of acts)
|
|
row.addButton((b) => {
|
|
if (a.warning) destructive(b);
|
|
b.setButtonText(a.label).onClick(() => {
|
|
this.close();
|
|
a.run();
|
|
});
|
|
});
|
|
}
|
|
} catch (e) {
|
|
status.setText(t("u.loadFailed", { error: errText(e) }));
|
|
}
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
var ConflictModal = class extends import_obsidian5.Modal {
|
|
constructor(app, info, done) {
|
|
super(app);
|
|
this.info = info;
|
|
this.done = done;
|
|
this.choice = "keep-both";
|
|
}
|
|
onOpen() {
|
|
const { contentEl, info } = this;
|
|
this.modalEl.addClass("vsg-wide");
|
|
this.titleEl.setText(info.title ?? t("u.conflictTitle", { path: info.path }));
|
|
const R = info.remoteLabel ?? t("u.repository");
|
|
const L = info.localLabel ?? t("u.thisDevice");
|
|
if (!info.title) contentEl.createEl("p", { text: t("u.conflictBody", { host: R }), cls: "vsg-muted" });
|
|
const pick = (c) => {
|
|
this.choice = c;
|
|
this.close();
|
|
};
|
|
if (info.localText !== null && info.remoteText !== null) {
|
|
const tabs = contentEl.createDiv({ cls: "vsg-tabs", attr: { role: "tablist" } });
|
|
const panes = contentEl.createDiv({ cls: "vsg-cf-panes" });
|
|
const pickPane = panes.createDiv({ cls: "vsg-cf-pane", attr: { role: "tabpanel" } });
|
|
pickPane.createEl("p", { cls: "vsg-muted", text: t("u.pickHint") });
|
|
const build = renderHunkPicker(pickPane, info.localText, info.remoteText, { a: L, b: R });
|
|
const diffPane = panes.createDiv({ cls: "vsg-cf-pane", attr: { role: "tabpanel" } });
|
|
renderDiff(diffPane, info.localText, info.remoteText, { oldLabel: L, newLabel: R });
|
|
let current = "pick";
|
|
const pickTab = tabs.createEl("button", { text: t("u.chooseChanges"), attr: { role: "tab" } });
|
|
const diffTab = tabs.createEl("button", { text: t("u.fullDiff"), attr: { role: "tab" } });
|
|
const show = (which) => {
|
|
current = which;
|
|
pickPane.toggleClass("vsg-cf-hidden", which !== "pick");
|
|
diffPane.toggleClass("vsg-cf-hidden", which !== "diff");
|
|
pickPane.setAttr("aria-hidden", String(which !== "pick"));
|
|
diffPane.setAttr("aria-hidden", String(which !== "diff"));
|
|
for (const [tab, k] of [[pickTab, "pick"], [diffTab, "diff"]]) {
|
|
tab.toggleClass("is-active", k === which);
|
|
tab.setAttr("aria-selected", String(k === which));
|
|
}
|
|
};
|
|
pickTab.onClickEvent(() => show("pick"));
|
|
diffTab.onClickEvent(() => show("diff"));
|
|
show("pick");
|
|
new import_obsidian5.Setting(contentEl).addButton(
|
|
(b) => b.setButtonText(t("u.apply")).setCta().onClick(() => {
|
|
if (current === "pick") pick({ custom: build() });
|
|
else show("pick");
|
|
})
|
|
);
|
|
} else {
|
|
contentEl.createEl("p", { text: t("u.binaryConflict", { a: info.localSize, host: R, b: info.remoteSize }) });
|
|
}
|
|
const whole = new import_obsidian5.Setting(contentEl).setName(t("u.wholeFile"));
|
|
whole.addButton((b) => b.setButtonText(L).onClick(() => pick("local")));
|
|
whole.addButton((b) => b.setButtonText(R).onClick(() => pick("remote")));
|
|
whole.addButton((b) => b.setButtonText(t("u.keepBoth")).onClick(() => pick("keep-both")));
|
|
if (info.markers !== false && info.localText !== null && info.remoteText !== null) {
|
|
whole.addButton((b) => b.setButtonText(t("u.markers")).onClick(() => pick("markers")));
|
|
}
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
this.done(this.choice);
|
|
}
|
|
};
|
|
var DeleteGuardModal = class extends import_obsidian5.Modal {
|
|
constructor(app, local, remote, done) {
|
|
super(app);
|
|
this.local = local;
|
|
this.remote = remote;
|
|
this.done = done;
|
|
this.choice = "cancel";
|
|
}
|
|
onOpen() {
|
|
const { contentEl } = this;
|
|
this.titleEl.setText(t("u.guardTitle"));
|
|
contentEl.createEl("p", {
|
|
text: t("u.guardBody", { n: this.local.length + this.remote.length })
|
|
});
|
|
if (this.local.length) {
|
|
contentEl.createEl("h4", { text: t("u.guardLocal", { n: this.local.length }) });
|
|
list(contentEl, this.local, 50);
|
|
}
|
|
if (this.remote.length) {
|
|
contentEl.createEl("h4", { text: t("u.guardRemote", { n: this.remote.length }) });
|
|
list(contentEl, this.remote, 50);
|
|
}
|
|
new import_obsidian5.Setting(contentEl).addButton((b) => b.setButtonText(t("u.cancelSync")).onClick(() => this.pick("cancel"))).addButton((b) => b.setButtonText(t("u.skipDeletes")).setCta().onClick(() => this.pick("skip"))).addButton((b) => destructive(b.setButtonText(t("u.deleteThem"))).onClick(() => this.pick("proceed")));
|
|
}
|
|
pick(c) {
|
|
this.choice = c;
|
|
this.close();
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
this.done(this.choice);
|
|
}
|
|
};
|
|
var groups = () => [
|
|
[t("u.gDownload"), "download"],
|
|
[t("u.gUpload"), "upload"],
|
|
[t("u.gMoveLocal"), "move-local"],
|
|
[t("u.gAdopt"), "adopt-remote-edit"],
|
|
[t("u.gRenameMerge"), "rename-merge"],
|
|
[t("u.gConflict"), "conflict"],
|
|
[t("u.gDeleteLocal"), "delete-local"],
|
|
[t("u.gDeleteRemote"), "delete-remote"]
|
|
];
|
|
var ReviewModal = class extends import_obsidian5.Modal {
|
|
constructor(app, decisions, skipped, loadDiff, onSync) {
|
|
super(app);
|
|
this.decisions = decisions;
|
|
this.skipped = skipped;
|
|
this.loadDiff = loadDiff;
|
|
this.onSync = onSync;
|
|
this.checked = /* @__PURE__ */ new Map();
|
|
}
|
|
onOpen() {
|
|
const { contentEl } = this;
|
|
this.modalEl.addClass("vsg-wide");
|
|
const preview = !this.onSync;
|
|
this.titleEl.setText(preview ? t("u.previewTitle") : t("u.reviewTitle"));
|
|
if (!this.decisions.length) {
|
|
contentEl.createEl("p", { text: t("u.upToDate") });
|
|
if (this.skipped.length) {
|
|
contentEl.createEl("h4", { text: t("u.skipped", { n: this.skipped.length }) });
|
|
list(contentEl, this.skipped);
|
|
}
|
|
return;
|
|
}
|
|
contentEl.createEl("p", { cls: "vsg-muted", text: preview ? t("u.previewHint") : t("u.reviewHint") });
|
|
const footer = new import_obsidian5.Setting(contentEl.createDiv());
|
|
const syncBtnRef = {};
|
|
const refresh = () => syncBtnRef.set?.([...this.checked.values()].filter(Boolean).length);
|
|
const filterBar = this.decisions.length > 8 ? contentEl.createDiv({ cls: "vsg-review-filter" }) : null;
|
|
const shown = [];
|
|
for (const [title, kind] of groups()) {
|
|
const items = this.decisions.filter((d) => d.kind === kind);
|
|
if (!items.length) continue;
|
|
const h = contentEl.createDiv({ cls: "vsg-review-group" });
|
|
const all = h.createEl("input", { type: "checkbox" });
|
|
all.setAttr("aria-label", t("u.selectGroup", { group: title }));
|
|
all.checked = true;
|
|
all.toggleClass("vsg-hidden", preview);
|
|
h.createSpan({ text: ` ${title} (${items.length})`, cls: "vsg-review-title" });
|
|
const ul = contentEl.createDiv({ cls: "vsg-review-list" });
|
|
shown.push({ h, ul, kind, rows: [] });
|
|
const boxes = [];
|
|
for (const d of items) {
|
|
this.checked.set(d.path, true);
|
|
const row = ul.createDiv({ cls: "vsg-review-row" });
|
|
shown[shown.length - 1]?.rows.push({ el: row, path: ("from" in d ? `${d.from} ` : "") + d.path });
|
|
const cb = row.createEl("input", { type: "checkbox" });
|
|
cb.setAttr("aria-label", t("u.includeFile", { path: d.path }));
|
|
cb.checked = true;
|
|
cb.toggleClass("vsg-hidden", preview);
|
|
cb.onchange = () => {
|
|
this.checked.set(d.path, cb.checked);
|
|
refresh();
|
|
};
|
|
boxes.push(cb);
|
|
const from = "from" in d ? d.from : "renamedFrom" in d && d.renamedFrom ? d.renamedFrom : null;
|
|
row.createSpan({ text: from ? `${from} \u2192 ${d.path}` : d.path, cls: "vsg-review-path" });
|
|
const btn = row.createEl("button", { text: t("u.diff"), cls: "vsg-review-diff" });
|
|
btn.onClickEvent(() => new DiffModal(this.app, d.path, () => this.loadDiff(d)).open());
|
|
}
|
|
all.onchange = () => {
|
|
boxes.forEach((b, i) => {
|
|
b.checked = all.checked;
|
|
this.checked.set(items[i].path, all.checked);
|
|
});
|
|
refresh();
|
|
};
|
|
}
|
|
if (filterBar) {
|
|
const kinds = {
|
|
all: [],
|
|
up: ["upload"],
|
|
down: ["download", "move-local", "adopt-remote-edit"],
|
|
del: ["delete-local", "delete-remote"],
|
|
conflict: ["conflict", "rename-merge"]
|
|
};
|
|
let current = "all";
|
|
const search = filterBar.createEl("input", { type: "search", cls: "vsg-review-search", placeholder: t("u.filterSearch") });
|
|
const chips = filterBar.createDiv({ cls: "vsg-chips" });
|
|
const apply = () => {
|
|
const q = search.value.toLowerCase();
|
|
for (const g of shown) {
|
|
const kindOk = current === "all" || kinds[current].includes(g.kind);
|
|
let any = false;
|
|
for (const r of g.rows) {
|
|
const ok = kindOk && (!q || r.path.toLowerCase().includes(q));
|
|
r.el.toggleClass("vsg-hidden", !ok);
|
|
any || (any = ok);
|
|
}
|
|
g.h.toggleClass("vsg-hidden", !any);
|
|
g.ul.toggleClass("vsg-hidden", !any);
|
|
}
|
|
};
|
|
const labels = [["all", t("u.filterAll")], ["up", t("u.filterUploads")], ["down", t("u.filterDownloads")], ["del", t("u.filterDeletes")], ["conflict", t("u.filterConflicts")]];
|
|
for (const [key2, label] of labels) {
|
|
const n = key2 === "all" ? this.decisions.length : this.decisions.filter((d) => kinds[key2].includes(d.kind)).length;
|
|
if (key2 !== "all" && !n) continue;
|
|
const chip = chips.createEl("button", { text: `${label} (${n})`, cls: key2 === current ? "vsg-chip is-active" : "vsg-chip" });
|
|
chip.onClickEvent(() => {
|
|
current = key2;
|
|
chips.querySelectorAll(".vsg-chip").forEach((c) => c.removeClass("is-active"));
|
|
chip.addClass("is-active");
|
|
apply();
|
|
});
|
|
}
|
|
search.oninput = apply;
|
|
}
|
|
if (this.skipped.length) {
|
|
contentEl.createEl("h4", { text: t("u.skipped", { n: this.skipped.length }) });
|
|
list(contentEl, this.skipped);
|
|
}
|
|
contentEl.appendChild(footer.settingEl.parentElement);
|
|
footer.addButton((b) => b.setButtonText(preview ? t("u.close") : t("u.cancel")).onClick(() => this.close()));
|
|
if (preview) return;
|
|
footer.addButton((b) => {
|
|
syncBtnRef.set = (n) => {
|
|
b.setButtonText(n === this.checked.size ? t("u.syncAll") : t("u.syncSelected", { n })).setDisabled(n === 0);
|
|
};
|
|
b.setCta().onClick(() => {
|
|
const deferred = /* @__PURE__ */ new Set();
|
|
for (const d of this.decisions) {
|
|
if (this.checked.get(d.path)) continue;
|
|
deferred.add(d.path);
|
|
if ("from" in d) deferred.add(d.from);
|
|
if (d.kind === "upload" && d.renamedFrom) deferred.add(d.renamedFrom);
|
|
if (d.kind === "delete-remote" && d.renamedTo) deferred.add(d.renamedTo);
|
|
}
|
|
this.close();
|
|
this.onSync?.(deferred);
|
|
});
|
|
});
|
|
refresh();
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
var LogModal = class extends import_obsidian5.Modal {
|
|
constructor(app, lines2) {
|
|
super(app);
|
|
this.lines = lines2;
|
|
}
|
|
onOpen() {
|
|
this.titleEl.setText(t("u.logTitle"));
|
|
const pre = this.contentEl.createEl("pre", { cls: "vsg-log" });
|
|
pre.setText(this.lines.length ? [...this.lines].reverse().join("\n") : t("u.noActivity"));
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
var CommitListModal = class extends import_obsidian5.Modal {
|
|
constructor(app, title, load) {
|
|
super(app);
|
|
this.title = title;
|
|
this.load = load;
|
|
}
|
|
async onOpen() {
|
|
this.titleEl.setText(this.title);
|
|
const status = this.contentEl.createEl("p", { text: t("u.loading") });
|
|
try {
|
|
const rows = await this.load();
|
|
status.remove();
|
|
if (!rows.length) this.contentEl.createEl("p", { text: t("u.nothingFound") });
|
|
const ul = this.contentEl.createEl("ul", { cls: "vsg-commits" });
|
|
for (const r of rows) {
|
|
const li = ul.createEl("li");
|
|
li.createDiv({ text: r.label, cls: "vsg-commit-title" });
|
|
li.createDiv({ text: r.sub, cls: "vsg-commit-sub" });
|
|
clickable(li, () => {
|
|
this.close();
|
|
r.run();
|
|
});
|
|
}
|
|
} catch (e) {
|
|
status.setText(t("u.failed", { error: errText(e) }));
|
|
}
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
var FileVersionModal = class extends import_obsidian5.Modal {
|
|
constructor(app, path, commit, text, size, currentText, onRestore) {
|
|
super(app);
|
|
this.path = path;
|
|
this.commit = commit;
|
|
this.text = text;
|
|
this.size = size;
|
|
this.currentText = currentText;
|
|
this.onRestore = onRestore;
|
|
}
|
|
onOpen() {
|
|
this.modalEl.addClass("vsg-wide");
|
|
this.titleEl.setText(`${this.path} @ ${this.commit.sha.slice(0, 7)}`);
|
|
this.contentEl.createEl("p", {
|
|
text: `${new Date(this.commit.date).toLocaleString()} \xB7 ${this.commit.message.split("\n")[0]}`,
|
|
cls: "vsg-commit-sub"
|
|
});
|
|
const tabs = this.contentEl.createDiv({ cls: "vsg-tabs", attr: { role: "tablist" } });
|
|
const pane = this.contentEl.createDiv();
|
|
const canDiff = this.text !== null && typeof this.currentText === "string";
|
|
const show = (which) => {
|
|
pane.empty();
|
|
tabs.querySelectorAll("button").forEach((b) => {
|
|
b.toggleClass("is-active", b.dataset.k === which);
|
|
b.setAttr("aria-selected", String(b.dataset.k === which));
|
|
});
|
|
if (which === "diff" && canDiff) renderDiff(pane, this.currentText, this.text, { oldLabel: t("u.currentFile"), newLabel: t("u.thisVersion") });
|
|
else pane.createEl("pre", { cls: "vsg-version", text: this.text ?? t("u.binaryFile", { n: this.size }) });
|
|
};
|
|
if (canDiff) {
|
|
const b = tabs.createEl("button", { text: t("u.compareCurrent"), attr: { role: "tab" } });
|
|
b.dataset.k = "diff";
|
|
b.onClickEvent(() => show("diff"));
|
|
}
|
|
const f = tabs.createEl("button", { text: t("u.fullVersion"), attr: { role: "tab" } });
|
|
f.dataset.k = "full";
|
|
f.onClickEvent(() => show("full"));
|
|
show(canDiff ? "diff" : "full");
|
|
new import_obsidian5.Setting(this.contentEl).addButton(
|
|
(b) => b.setButtonText(t("u.restoreCopy")).onClick(() => {
|
|
this.close();
|
|
void this.onRestore(true);
|
|
})
|
|
).addButton(
|
|
(b) => b.setButtonText(t("u.restoreThis")).setCta().onClick(() => {
|
|
this.close();
|
|
void this.onRestore(false);
|
|
})
|
|
);
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
var ConfirmPlanModal = class extends import_obsidian5.Modal {
|
|
constructor(app, title, intro, sections, confirmText, warning, done) {
|
|
super(app);
|
|
this.title = title;
|
|
this.intro = intro;
|
|
this.sections = sections;
|
|
this.confirmText = confirmText;
|
|
this.warning = warning;
|
|
this.done = done;
|
|
this.ok = false;
|
|
}
|
|
onOpen() {
|
|
this.titleEl.setText(this.title);
|
|
this.contentEl.createEl("p", { text: this.intro });
|
|
for (const s of this.sections) {
|
|
if (!s.items.length) continue;
|
|
this.contentEl.createEl("h4", { text: `${s.title}: ${s.items.length}` });
|
|
list(this.contentEl, s.items, 100);
|
|
}
|
|
new import_obsidian5.Setting(this.contentEl).addButton((b) => b.setButtonText(t("u.cancel")).onClick(() => this.close())).addButton((b) => {
|
|
b.setButtonText(this.confirmText).onClick(() => {
|
|
this.ok = true;
|
|
this.close();
|
|
});
|
|
if (this.warning) destructive(b);
|
|
else b.setCta();
|
|
});
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
this.done(this.ok);
|
|
}
|
|
};
|
|
function confirmPlan(app, title, intro, sections, confirmText, warning = false) {
|
|
return new Promise((resolve) => new ConfirmPlanModal(app, title, intro, sections, confirmText, warning, resolve).open());
|
|
}
|
|
var FolderSuggestModal = class extends import_obsidian5.FuzzySuggestModal {
|
|
constructor(app, onPick) {
|
|
super(app);
|
|
this.onPick = onPick;
|
|
this.setPlaceholder(t("u.pickFolder"));
|
|
}
|
|
getItems() {
|
|
return this.app.vault.getAllLoadedFiles().filter((f) => f instanceof import_obsidian5.TFolder && !f.isRoot());
|
|
}
|
|
getItemText(f) {
|
|
return f.path;
|
|
}
|
|
onChooseItem(f) {
|
|
this.onPick(f);
|
|
}
|
|
};
|
|
var RepoSuggestModal = class extends import_obsidian5.FuzzySuggestModal {
|
|
constructor(app, repos, onPick) {
|
|
super(app);
|
|
this.repos = repos;
|
|
this.onPick = onPick;
|
|
this.setPlaceholder(t("s.repoPick"));
|
|
}
|
|
getItems() {
|
|
return this.repos;
|
|
}
|
|
getItemText(r) {
|
|
return `${r.owner}/${r.name}${r.private ? "" : ` (${t("w.public")})`}`;
|
|
}
|
|
onChooseItem(r) {
|
|
this.onPick(r);
|
|
}
|
|
};
|
|
var RemoteOnlyModal = class extends import_obsidian5.FuzzySuggestModal {
|
|
constructor(app, files, onPick) {
|
|
super(app);
|
|
this.files = files;
|
|
this.onPick = onPick;
|
|
this.setPlaceholder(t("u.pickRemoteOnly"));
|
|
}
|
|
getItems() {
|
|
return this.files;
|
|
}
|
|
getItemText(f) {
|
|
return `${f.path} (${(f.size / 1048576).toFixed(1)} MB)`;
|
|
}
|
|
onChooseItem(f) {
|
|
this.onPick(f);
|
|
}
|
|
};
|
|
var TimelineModal = class extends import_obsidian5.Modal {
|
|
constructor(app, load, actions) {
|
|
super(app);
|
|
this.load = load;
|
|
this.actions = actions;
|
|
}
|
|
async onOpen() {
|
|
this.modalEl.addClass("vsg-wide");
|
|
this.titleEl.setText(t("u.timelineTitle"));
|
|
this.contentEl.createEl("p", {
|
|
cls: "vsg-muted",
|
|
text: t("u.timelineHint")
|
|
});
|
|
const status = this.contentEl.createEl("p", { text: t("u.loading") });
|
|
try {
|
|
const entries2 = await this.load();
|
|
status.remove();
|
|
const ul = this.contentEl.createEl("ul", { cls: "vsg-commits vsg-timeline" });
|
|
for (const e of entries2) {
|
|
const li = ul.createEl("li");
|
|
const title = li.createDiv({ cls: "vsg-commit-title" });
|
|
for (const t2 of e.tags) title.createSpan({ cls: "vsg-tag", text: t2 });
|
|
title.appendText(e.message.split("\n")[0]);
|
|
li.createDiv({ text: `${new Date(e.date).toLocaleString()} \xB7 ${e.author} \xB7 ${e.sha.slice(0, 7)}`, cls: "vsg-commit-sub" });
|
|
const acts = li.createDiv({ cls: "vsg-timeline-actions" });
|
|
const act = (label, fn) => acts.createEl("button", { text: label }).onClickEvent((ev) => {
|
|
ev.stopPropagation();
|
|
this.close();
|
|
fn();
|
|
});
|
|
act(t("u.browseFiles"), () => this.actions.browse(e));
|
|
act(t("u.restoreFolder"), () => this.actions.restoreFolder(e));
|
|
act(t("u.restoreVault"), () => this.actions.restoreVault(e));
|
|
clickable(li, () => li.toggleClass("is-open", !li.hasClass("is-open")));
|
|
}
|
|
} catch (e) {
|
|
status.setText(t("u.failed", { error: errText(e) }));
|
|
}
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
|
|
// src/health.ts
|
|
var HEALTH_VIEW = "vault-sync-health";
|
|
function ago(ts) {
|
|
if (!ts) return t("time.never");
|
|
const s = Math.round((Date.now() - ts) / 1e3);
|
|
if (s < 60) return t("time.now");
|
|
if (s < 3600) return t("time.min", { n: Math.round(s / 60) });
|
|
if (s < 86400) return t("time.hour", { n: Math.round(s / 3600) });
|
|
return t("time.day", { n: Math.round(s / 86400) });
|
|
}
|
|
var HealthView = class extends import_obsidian6.ItemView {
|
|
constructor(leaf, plugin) {
|
|
super(leaf);
|
|
this.remoteInfo = null;
|
|
this.loadingRemote = false;
|
|
this.remoteAgain = false;
|
|
this.pendingOpen = false;
|
|
this.plugin = plugin;
|
|
}
|
|
getViewType() {
|
|
return HEALTH_VIEW;
|
|
}
|
|
getDisplayText() {
|
|
return t("health.title");
|
|
}
|
|
getIcon() {
|
|
return "activity";
|
|
}
|
|
async onOpen() {
|
|
this.render();
|
|
void this.loadRemote();
|
|
void this.plugin.checkOtherSync().then(() => this.render());
|
|
}
|
|
/** Re-render local info immediately; optionally re-query GitHub. */
|
|
refresh(withRemote = false) {
|
|
this.render();
|
|
if (withRemote) void this.loadRemote();
|
|
}
|
|
async loadRemote() {
|
|
const p = this.plugin;
|
|
if (!p.isConfigured()) return;
|
|
if (this.loadingRemote) return void (this.remoteAgain = true);
|
|
this.loadingRemote = true;
|
|
this.remoteAgain = false;
|
|
try {
|
|
const [head, rl, commits] = await Promise.all([
|
|
p.gh.getRef(p.settings.branch),
|
|
p.gh.rateLimit().catch(() => null),
|
|
p.gh.listCommits(p.settings.branch, void 0, 50).catch(() => [])
|
|
]);
|
|
const devices = /* @__PURE__ */ new Map();
|
|
const versions = /* @__PURE__ */ new Map();
|
|
for (const c of commits) {
|
|
const trailer = /^Device: (.+)$/m.exec(c.message)?.[1];
|
|
const name = trailer ?? /^([^:\n]{1,40}):/.exec(c.message)?.[1];
|
|
if (name && !devices.has(name)) {
|
|
devices.set(name, Date.parse(c.date));
|
|
const v = /^Plugin: (.+)$/m.exec(c.message)?.[1];
|
|
if (v) versions.set(name, v.trim());
|
|
}
|
|
}
|
|
this.remoteInfo = {
|
|
ahead: head ? head !== p.state.head : null,
|
|
budget: rl ? t("h.budgetValue", { left: rl.remaining, limit: rl.limit, time: new Date(rl.reset * 1e3).toLocaleTimeString() }) : t("h.unknown"),
|
|
devices: [...devices],
|
|
versions
|
|
};
|
|
} catch (e) {
|
|
this.remoteInfo = { ahead: null, budget: t("h.unknown"), devices: [], versions: /* @__PURE__ */ new Map(), error: localizeError(e, p.hostLabel()) };
|
|
} finally {
|
|
this.loadingRemote = false;
|
|
this.render();
|
|
if (this.remoteAgain) {
|
|
this.remoteAgain = false;
|
|
void this.loadRemote();
|
|
}
|
|
}
|
|
}
|
|
/** Conflict copies with resolve / compare / open / delete. */
|
|
renderConflicts() {
|
|
const p = this.plugin;
|
|
const copies = p.conflictCopies();
|
|
if (copies.length) {
|
|
const s = this.section(t("health.conflicts", { n: copies.length }), "git-merge");
|
|
s.createDiv({ cls: "vsg-muted", text: t("health.conflictsHint") });
|
|
for (const { copy: copy2, original } of copies) {
|
|
const row = s.createDiv({ cls: "vsg-h-row" });
|
|
row.createDiv({ text: copy2.path, cls: "vsg-h-path" });
|
|
const b = row.createDiv({ cls: "vsg-h-row-actions" });
|
|
if (original) {
|
|
this.button(b, t("h.resolve"), async () => {
|
|
if (p.isSyncing()) return void new import_obsidian6.Notice(t("notice.busy"));
|
|
if (await p.resolveConflictCopy(original, copy2)) this.refresh();
|
|
}, true);
|
|
this.button(b, t("health.compare"), () => p.compareFiles(original, copy2));
|
|
}
|
|
this.button(b, t("health.open"), () => void this.app.workspace.getLeaf(true).openFile(copy2));
|
|
this.button(b, t("health.deleteCopy"), async () => {
|
|
if (!await confirmPlan(this.app, t("health.deleteCopy"), t("h.deleteCopyBody"), [{ title: t("h.conflictCopy"), items: [copy2.path] }], t("health.deleteCopy"), true)) return;
|
|
await p.trashFile(copy2);
|
|
this.refresh();
|
|
});
|
|
}
|
|
}
|
|
}
|
|
/** Edited files, collapsed by default: compare each with the repository or take the repository's version. */
|
|
renderPendingFiles(parent) {
|
|
const p = this.plugin;
|
|
const paths = [...p.pendingLocalPaths()].sort((a, b) => a.localeCompare(b));
|
|
const box = parent.createEl("details", { cls: "vsg-h-pending" });
|
|
if (this.pendingOpen) box.open = true;
|
|
box.addEventListener("toggle", () => this.pendingOpen = box.open);
|
|
box.createEl("summary", { text: t("h.pendingFiles") });
|
|
const max = 50;
|
|
for (const path of paths.slice(0, max)) {
|
|
const row = box.createDiv({ cls: "vsg-h-row" });
|
|
row.createDiv({ text: path, cls: "vsg-h-path" });
|
|
const b = row.createDiv({ cls: "vsg-h-row-actions" });
|
|
const f = this.app.vault.getAbstractFileByPath(path);
|
|
if (f instanceof import_obsidian6.TFile) this.button(b, t("health.compare"), () => p.compareWithGitHub(f));
|
|
this.button(b, t("repo.use"), async () => {
|
|
await p.useRepositoryVersion(path);
|
|
this.refresh();
|
|
});
|
|
}
|
|
if (paths.length > max) box.createDiv({ cls: "vsg-muted", text: t("u.andMore", { n: paths.length - max }) });
|
|
}
|
|
section(title, icon) {
|
|
const s = this.contentEl.createDiv({ cls: "vsg-h-section" });
|
|
const h = s.createDiv({ cls: "vsg-h-title" });
|
|
(0, import_obsidian6.setIcon)(h.createSpan({ cls: "vsg-h-icon" }), icon);
|
|
h.createSpan({ text: title });
|
|
return s;
|
|
}
|
|
/** A button whose action can't run twice at once, and whose errors are shown instead of lost. */
|
|
button(parent, label, fn, cta = false) {
|
|
const b = parent.createEl("button", { text: label, cls: cta ? "mod-cta" : "" });
|
|
let busy = false;
|
|
b.onClickEvent(async () => {
|
|
if (busy) return;
|
|
busy = true;
|
|
b.disabled = true;
|
|
try {
|
|
await fn();
|
|
} catch (e) {
|
|
new import_obsidian6.Notice(localizeError(e, this.plugin.hostLabel()), 8e3);
|
|
} finally {
|
|
busy = false;
|
|
b.disabled = false;
|
|
}
|
|
});
|
|
return b;
|
|
}
|
|
render() {
|
|
const p = this.plugin;
|
|
const el = this.contentEl;
|
|
el.empty();
|
|
el.addClass("vsg-health");
|
|
const st = el.createDiv({ cls: "vsg-h-status" });
|
|
const icon = st.createSpan({ cls: "vsg-h-big" });
|
|
const text = st.createDiv();
|
|
let headline = t("health.upToDate");
|
|
let ico = "check-circle";
|
|
let cls = "ok";
|
|
if (!p.isConfigured()) [headline, ico, cls] = [t("health.notSetUp"), "settings", "warn"];
|
|
else if (p.isSyncing()) [headline, ico, cls] = [t("health.syncing"), "refresh-cw", "busy"];
|
|
else if (p.isPaused()) [headline, ico, cls] = [t("m.pausedStatus"), "pause-circle", "warn"];
|
|
else if (p.lastError) [headline, ico, cls] = [t("health.failed"), "alert-octagon", "err"];
|
|
else if (p.conflictCopies().length) [headline, ico, cls] = [t("health.attention"), "alert-triangle", "warn"];
|
|
else if (!p.state.lastSync) [headline, ico, cls] = [t("health.notSynced"), "cloud", "warn"];
|
|
(0, import_obsidian6.setIcon)(icon, ico);
|
|
st.addClass(`vsg-h-${cls}`);
|
|
text.createDiv({ cls: "vsg-h-headline", text: headline });
|
|
if (p.isConfigured()) text.createDiv({
|
|
cls: "vsg-muted",
|
|
text: `${t("h.lastSync", { ago: ago(p.state.lastSync) })} \xB7 ${p.settings.owner || "?"}/${p.settings.repo || "?"} (${p.settings.branch}) \xB7 ${p.settings.mode === "sync" ? t("s.modeSync") : p.settings.mode === "push" ? t("s.modePush") : t("s.modePull")}${p.isEncrypted() ? ` \xB7 \u{1F512} ${t("health.encrypted")}` : ""}`
|
|
});
|
|
const acts = el.createDiv({ cls: "vsg-h-actions" });
|
|
if (!p.isConfigured()) this.button(acts, t("health.wizard"), () => p.openWizard(), true);
|
|
else this.button(acts, t("health.syncNow"), () => p.sync("manual"), true);
|
|
if (p.isConfigured()) {
|
|
if (p.isPaused()) this.button(acts, t("h.resume"), () => {
|
|
p.resumeSync();
|
|
this.refresh();
|
|
});
|
|
else this.button(acts, t("h.pause"), () => {
|
|
p.pauseSync(60);
|
|
this.refresh();
|
|
});
|
|
}
|
|
this.button(acts, t("health.review"), () => p.openReview());
|
|
this.button(acts, "\u21BB", () => this.refresh(true)).setAttr("aria-label", t("h.refresh"));
|
|
if (!p.isConfigured()) {
|
|
el.createDiv({ cls: "vsg-muted", text: t("h.setupHint") });
|
|
this.renderConflicts();
|
|
return;
|
|
}
|
|
if (p.lastError) {
|
|
const cause = p.lastErrorCause ?? p.lastError;
|
|
const f = friendlyError(cause, p.hostLabel());
|
|
const s = this.section(f.title, "alert-octagon");
|
|
s.addClass("vsg-h-error");
|
|
s.createDiv({ text: f.hint });
|
|
const detail = localizeError(cause, p.hostLabel());
|
|
s.createDiv({ cls: "vsg-muted", text: detail === f.hint ? ago(p.lastErrorAt) : `${ago(p.lastErrorAt)} \xB7 ${detail}` });
|
|
if (f.action === "settings") this.button(s, t("health.openSettings"), () => p.openSettings(), true);
|
|
if (f.action === "retry") this.button(s, t("health.tryAgain"), () => p.sync("manual"), true);
|
|
if (f.action === "encryption") this.button(s, t("health.enterPassphrase"), () => p.openEncryption(() => void p.sync("manual")), true);
|
|
}
|
|
if (p.otherSync.length) {
|
|
const s = this.section(t("os.title"), "alert-triangle");
|
|
s.addClass("vsg-h-error");
|
|
s.createDiv({ text: t("os.found", { list: p.otherSync.map((x) => x === ".git" ? t("os.gitFolder") : x).join(", ") }) });
|
|
s.createDiv({ cls: "vsg-muted", text: t("os.hint") });
|
|
}
|
|
const pend = this.section(t("health.pending"), "clock");
|
|
const edited = p.pendingLocalCount();
|
|
pend.createDiv({ text: edited ? t("health.editedN", { n: edited }) : t("health.noEdits") });
|
|
if (edited) this.renderPendingFiles(pend);
|
|
if (this.remoteInfo?.ahead || p.remoteAhead) pend.createDiv({ text: t("health.remoteAhead"), cls: "vsg-h-accent" });
|
|
else if (this.remoteInfo?.ahead === false) pend.createDiv({ text: t("health.remoteSame"), cls: "vsg-muted" });
|
|
else if (this.loadingRemote) pend.createDiv({ text: t("health.checking"), cls: "vsg-muted" });
|
|
const ds = p.deviceScope();
|
|
if (ds.include.length || ds.exclude.length || ds.maxDownloadMB) {
|
|
const bits = [ds.include.length && t("h.only", { list: ds.include.join(", ") }), ds.exclude.length && t("h.excluding", { list: ds.exclude.join(", ") }), ds.maxDownloadMB && t("h.noDownloadsOver", { mb: ds.maxDownloadMB })].filter(Boolean);
|
|
pend.createDiv({ cls: "vsg-muted", text: t("h.deviceScope", { what: bits.join("; ") }) });
|
|
}
|
|
if (p.isPaused()) {
|
|
const until = p.pausedUntil();
|
|
pend.createDiv({ cls: "vsg-h-accent", text: until === Infinity ? t("h.pausedUntilResumed") : t("h.pausedUntil", { time: new Date(until).toLocaleTimeString() }) });
|
|
}
|
|
if (p.batterySaver()) pend.createDiv({ cls: "vsg-muted", text: t("h.batterySaverOn") });
|
|
const next = p.nextScheduledSync();
|
|
pend.createDiv({ cls: "vsg-muted", text: next ? t("health.nextSync", { time: new Date(next).toLocaleTimeString() }) : t("health.noSchedule") });
|
|
const shared = p.sharedHostsCached();
|
|
if (shared.length) {
|
|
const s = this.section(t("health.shared"), "folder-sync");
|
|
for (const h of shared) {
|
|
const row = s.createDiv({ cls: "vsg-h-row" });
|
|
row.createDiv({ text: `${h.def.folder} \u2192 ${h.def.owner}/${h.def.repo}`, cls: "vsg-h-path" });
|
|
const status = !h.activeOnThisDevice() ? t("h.notOnDevice") : h.lastError ? `\u26A0 ${h.lastError}` : t("health.lastSynced", { ago: ago(h.lastSync || h.state.lastSync) });
|
|
row.createDiv({ cls: h.lastError ? "vsg-h-accent" : "vsg-muted", text: status });
|
|
}
|
|
}
|
|
this.renderConflicts();
|
|
const onDemand = p.remoteOnlyFiles();
|
|
if (onDemand.length) {
|
|
const s = this.section(t("h.onDemand", { n: onDemand.length }), "cloud-download");
|
|
const mb = onDemand.reduce((n, f) => n + f.size, 0) / 1048576;
|
|
s.createDiv({ cls: "vsg-muted", text: t("h.onDemandHint", { mb: mb.toFixed(1) }) });
|
|
const row = s.createDiv({ cls: "vsg-h-actions" });
|
|
this.button(row, t("s.onDemandBrowse"), () => p.openRemoteOnly());
|
|
}
|
|
const badNames = p.unportableNames();
|
|
if (badNames.length) {
|
|
const s = this.section(t("h.badNames", { n: badNames.length }), "file-warning");
|
|
s.createDiv({ cls: "vsg-muted", text: t("h.badNamesHint") });
|
|
const ul = s.createEl("ul", { cls: "vsg-list" });
|
|
for (const x of badNames.slice(0, 30)) ul.createEl("li", { text: x });
|
|
}
|
|
const skipped = p.lastReport ? skippedLines(p.lastReport.skipped, p.lastReport.skipNotes) : [];
|
|
if (skipped.length) {
|
|
const s = this.section(t("health.skipped", { n: skipped.length }), "eye-off");
|
|
const ul = s.createEl("ul", { cls: "vsg-list" });
|
|
for (const x of skipped.slice(0, 50)) ul.createEl("li", { text: x });
|
|
}
|
|
if (this.remoteInfo?.devices.length) {
|
|
const s = this.section(t("health.devices"), "monitor-smartphone");
|
|
const mine = p.pluginVersion;
|
|
const other = [...this.remoteInfo.versions].filter(([name, v]) => name !== p.deviceName() && v !== mine);
|
|
if (other.length) s.createDiv({ cls: "vsg-h-accent", text: t("h.versionMismatch", { mine, list: other.map(([n, v]) => `${n} (${v})`).join(", ") }) });
|
|
for (const [name, ts] of this.remoteInfo.devices) {
|
|
const row = s.createDiv({ cls: "vsg-h-row" });
|
|
const v = this.remoteInfo.versions.get(name);
|
|
row.createDiv({ text: name + (name === p.deviceName() ? ` ${t("health.thisDevice")}` : "") + (v ? ` \xB7 ${v}` : "") });
|
|
row.createDiv({ cls: "vsg-muted", text: t("health.lastSynced", { ago: ago(ts) }) });
|
|
}
|
|
}
|
|
const gh = this.section(p.hostLabel(), "server");
|
|
if (p.settings.provider === "github") gh.createDiv({ cls: "vsg-muted", text: t("h.budget", { budget: this.remoteInfo?.budget ?? "\u2026" }) });
|
|
const expires = p.tokenExpiryDays();
|
|
if (expires !== null && expires <= 14) {
|
|
gh.createDiv({ cls: "vsg-h-accent", text: expires <= 0 ? t("h.tokenExpiresToday") : t("h.tokenExpires", { days: expires }) });
|
|
this.button(gh, t("h.newToken"), () => p.openTokenPage(), true);
|
|
}
|
|
if (this.remoteInfo?.error) gh.createDiv({ cls: "vsg-muted", text: t("h.checkFailed", { host: p.hostLabel(), error: this.remoteInfo.error }) });
|
|
const mirror = p.mirrorStatus();
|
|
if (mirror) {
|
|
gh.createDiv({
|
|
cls: mirror.lastError ? "vsg-h-accent" : "vsg-muted",
|
|
text: mirror.lastError ? t("h.mirrorFailed", { target: mirror.label, error: mirror.lastError }) : t("h.mirror", { target: mirror.label, ago: ago(mirror.lastSync) })
|
|
});
|
|
}
|
|
const tools = this.section(t("health.tools"), "wrench");
|
|
const tl = tools.createDiv({ cls: "vsg-h-actions" });
|
|
this.button(tl, t("health.timeline"), () => p.openTimeline());
|
|
this.button(tl, t("hist.title"), () => p.openHistory());
|
|
this.button(tl, t("health.snapshot"), () => p.snapshot(true));
|
|
this.button(tl, t("health.reset"), () => p.resetToGitHub());
|
|
this.button(tl, t("cmd.overwrite"), () => p.overwriteRemote());
|
|
this.button(tl, t("health.freeSpace"), () => p.freeUpSpace());
|
|
this.button(tl, t("link.addDevice"), () => p.openSetupLink());
|
|
this.button(tl, t("health.wizard"), () => p.openWizard());
|
|
this.button(tl, t("health.log"), () => p.openLog());
|
|
this.button(tl, t("cmd.diagnostics"), () => p.copyDiagnostics());
|
|
this.button(tl, p.batterySaver() ? t("h.batterySaverOff") : t("h.batterySaverTurnOn"), () => {
|
|
p.setBatterySaver(!p.batterySaver());
|
|
this.refresh();
|
|
});
|
|
this.button(tl, t("health.settings"), () => p.openSettings());
|
|
}
|
|
};
|
|
|
|
// src/history-view.ts
|
|
var import_obsidian7 = require("obsidian");
|
|
|
|
// src/history.ts
|
|
var HISTORY_PAGE = 30;
|
|
function deviceOf(message2) {
|
|
const trailer = /^Device: (.+)$/m.exec(message2)?.[1]?.trim();
|
|
if (trailer) return trailer;
|
|
return /^([^:\n]{1,40}):/.exec(message2)?.[1]?.trim() || null;
|
|
}
|
|
function parseCommit(c) {
|
|
return {
|
|
sha: c.sha,
|
|
title: c.message.split("\n")[0].trim() || c.sha.slice(0, 7),
|
|
date: c.date,
|
|
author: c.author,
|
|
device: deviceOf(c.message),
|
|
plugin: /^Plugin: (.+)$/m.exec(c.message)?.[1]?.trim() ?? null
|
|
};
|
|
}
|
|
function appendPage(shown, page) {
|
|
const seen = new Set(shown.map((c) => c.sha));
|
|
return [...shown, ...page.filter((c) => !seen.has(c.sha)).map(parseCommit)];
|
|
}
|
|
function normalizeStatus(s) {
|
|
switch (s.toLowerCase()) {
|
|
case "added":
|
|
case "new":
|
|
case "copied":
|
|
return "added";
|
|
case "removed":
|
|
case "deleted":
|
|
return "deleted";
|
|
case "renamed":
|
|
return "renamed";
|
|
default:
|
|
return "modified";
|
|
}
|
|
}
|
|
async function decodeCommitFiles(files, decode) {
|
|
const out = [];
|
|
for (const f of files) {
|
|
const path = await decode(f.filename).catch(() => null);
|
|
if (!path) continue;
|
|
let status = normalizeStatus(f.status);
|
|
let previous;
|
|
if (status === "renamed") {
|
|
previous = f.previous ? await decode(f.previous).catch(() => null) ?? void 0 : void 0;
|
|
if (!previous && f.previous) status = "added";
|
|
}
|
|
out.push(previous ? { path, previous, status } : { path, status });
|
|
}
|
|
return out.sort((a, b) => a.path.localeCompare(b.path));
|
|
}
|
|
function filterFiles(files, query) {
|
|
const q = query.trim().toLowerCase();
|
|
if (!q) return files;
|
|
return files.filter((f) => f.path.toLowerCase().includes(q) || !!f.previous?.toLowerCase().includes(q));
|
|
}
|
|
function parentPathOf(f) {
|
|
return f.previous ?? f.path;
|
|
}
|
|
var MAX_RENAMES = 10;
|
|
function renamedFromMessage(message2, path) {
|
|
for (const line of message2.split("\n")) {
|
|
const m = /^- (.+) → (.+)$/.exec(line.trim());
|
|
if (m && m[2] === path && m[1] !== path) return m[1];
|
|
}
|
|
return null;
|
|
}
|
|
async function followRenames(path, limit, src) {
|
|
const out = [];
|
|
const seen = /* @__PURE__ */ new Set();
|
|
const names = /* @__PURE__ */ new Set([path]);
|
|
let cur = path;
|
|
for (let hop = 0; hop <= MAX_RENAMES && out.length < limit; hop++) {
|
|
const want = limit - out.length + (hop > 0 ? 1 : 0);
|
|
const list2 = await src.list(cur, want);
|
|
for (const c of list2) {
|
|
if (seen.has(c.sha) || out.length >= limit) continue;
|
|
seen.add(c.sha);
|
|
out.push({ ...c, path: cur });
|
|
}
|
|
if (list2.length >= want || !list2.length) break;
|
|
const oldest = list2[list2.length - 1];
|
|
const files = await src.files(oldest.sha).catch(() => []);
|
|
const previous = files.find((f) => f.path === cur && f.status === "renamed")?.previous ?? renamedFromMessage(oldest.message, cur);
|
|
if (!previous || names.has(previous)) break;
|
|
names.add(previous);
|
|
cur = previous;
|
|
}
|
|
return out;
|
|
}
|
|
function replacedCopyPath(path, d = /* @__PURE__ */ new Date(), n = 1) {
|
|
const dir = parentDir(path);
|
|
const file = dir ? path.slice(dir.length + 1) : path;
|
|
const dot = file.lastIndexOf(".");
|
|
const name = dot > 0 ? file.slice(0, dot) : file;
|
|
const ext2 = dot > 0 ? file.slice(dot) : "";
|
|
const out = `${name} (this device ${stamp(d)}${n > 1 ? `-${n}` : ""})${ext2}`;
|
|
return dir ? `${dir}/${out}` : out;
|
|
}
|
|
function sameBytes(a, b) {
|
|
if (a.byteLength !== b.byteLength) return false;
|
|
const x = new Uint8Array(a);
|
|
const y = new Uint8Array(b);
|
|
for (let i = 0; i < x.length; i++) if (x[i] !== y[i]) return false;
|
|
return true;
|
|
}
|
|
async function replaceWithRepositoryVersion(io, path, remote, now = /* @__PURE__ */ new Date()) {
|
|
if (!remote) return { kind: "missing" };
|
|
if (!await io.stat(path)) {
|
|
await io.write(path, remote);
|
|
return { kind: "restored" };
|
|
}
|
|
const local = await io.read(path);
|
|
if (sameBytes(local, remote)) return { kind: "same" };
|
|
let copy2 = replacedCopyPath(path, now);
|
|
for (let n = 2; await io.stat(copy2) && n < 100; n++) copy2 = replacedCopyPath(path, now, n);
|
|
if (await io.stat(copy2)) throw new Error(`${copy2} already exists`);
|
|
await io.write(copy2, local);
|
|
await io.removeRecoverable(copy2);
|
|
await io.write(path, remote);
|
|
return { kind: "replaced", trashedAs: copy2 };
|
|
}
|
|
|
|
// src/history-view.ts
|
|
var HISTORY_VIEW = "vault-sync-history";
|
|
var STATUS = {
|
|
added: { letter: "A", key: "hist.added" },
|
|
modified: { letter: "M", key: "hist.modified" },
|
|
deleted: { letter: "D", key: "hist.deleted" },
|
|
renamed: { letter: "R", key: "hist.renamed" }
|
|
};
|
|
var HistoryView = class extends import_obsidian7.ItemView {
|
|
constructor(leaf, host) {
|
|
super(leaf);
|
|
this.host = host;
|
|
this.commits = [];
|
|
this.page = 0;
|
|
this.hasMore = false;
|
|
this.loading = false;
|
|
this.error = null;
|
|
this.again = false;
|
|
this.askedUnlock = false;
|
|
this.gen = 0;
|
|
this.filter = "";
|
|
/** host.version() of the list on screen, and whether a refresh was skipped while hidden. */
|
|
this.shownVersion = null;
|
|
this.stale = false;
|
|
/** Changed files per commit (commits never change, so this survives refreshes). */
|
|
this.files = /* @__PURE__ */ new Map();
|
|
this.loaded = /* @__PURE__ */ new Map();
|
|
this.expanded = /* @__PURE__ */ new Set();
|
|
this.filterTimer = (0, import_obsidian7.debounce)(() => this.applyFilter(), 350, true);
|
|
this.wake = null;
|
|
}
|
|
getViewType() {
|
|
return HISTORY_VIEW;
|
|
}
|
|
getDisplayText() {
|
|
return t("hist.title");
|
|
}
|
|
getIcon() {
|
|
return "history";
|
|
}
|
|
async onOpen() {
|
|
const el = this.contentEl;
|
|
el.empty();
|
|
el.addClass("vsg-history");
|
|
const bar = el.createDiv({ cls: "vsg-hist-bar" });
|
|
const input = bar.createEl("input", { type: "search", cls: "vsg-hist-filter", attr: { placeholder: t("hist.filter"), "aria-label": t("hist.filter") } });
|
|
input.addEventListener("input", () => {
|
|
this.filter = input.value;
|
|
this.filterTimer();
|
|
});
|
|
const refresh = bar.createEl("button", { cls: "clickable-icon", attr: { "aria-label": t("h.refresh") } });
|
|
(0, import_obsidian7.setIcon)(refresh, "refresh-cw");
|
|
refresh.onClickEvent(() => this.refresh());
|
|
this.listEl = el.createDiv({ cls: "vsg-hist-list" });
|
|
const wake = () => {
|
|
if (this.stale && this.containerEl.isShown()) {
|
|
this.stale = false;
|
|
this.refresh();
|
|
}
|
|
};
|
|
this.registerEvent(this.app.workspace.on("layout-change", wake));
|
|
this.registerEvent(this.app.workspace.on("active-leaf-change", wake));
|
|
this.wake = wake;
|
|
this.refresh();
|
|
}
|
|
onResize() {
|
|
this.wake?.();
|
|
}
|
|
/**
|
|
* After a sync: reload only when the repository moved on since the list on screen was loaded, and
|
|
* only while the sidebar is visible (a hidden one reloads when shown). Saves its API calls otherwise.
|
|
*/
|
|
refreshIfChanged() {
|
|
if (!this.listEl) return;
|
|
if (!this.error && this.shownVersion !== null && this.host.version() === this.shownVersion) return;
|
|
if (!this.containerEl.isShown()) return void (this.stale = true);
|
|
this.refresh();
|
|
}
|
|
async onClose() {
|
|
this.askedUnlock = false;
|
|
this.filterTimer.cancel();
|
|
this.gen++;
|
|
}
|
|
/** Reloads the newest syncs (after a sync, or from the refresh button). */
|
|
refresh() {
|
|
if (!this.listEl) return;
|
|
if (this.loading) return void (this.again = true);
|
|
void this.fetchPage(true);
|
|
}
|
|
async fetchPage(reset) {
|
|
const problem = this.host.problem();
|
|
if (problem) {
|
|
this.commits = [];
|
|
this.error = problem;
|
|
return this.render();
|
|
}
|
|
const ask = !this.askedUnlock;
|
|
this.askedUnlock = true;
|
|
if (reset && await this.host.needsUnlock(ask)) {
|
|
this.error = t("m.unlockToBrowse");
|
|
return this.render();
|
|
}
|
|
const gen = ++this.gen;
|
|
this.loading = true;
|
|
this.error = null;
|
|
this.render();
|
|
const version = this.host.version();
|
|
try {
|
|
const page = reset ? 1 : this.page + 1;
|
|
const list2 = await this.host.listCommits(page);
|
|
if (gen !== this.gen) return;
|
|
if (reset) this.shownVersion = version;
|
|
this.commits = appendPage(reset ? [] : this.commits, list2);
|
|
this.page = page;
|
|
this.hasMore = list2.length >= HISTORY_PAGE;
|
|
} catch (e) {
|
|
if (gen === this.gen) this.error = t("u.failed", { error: this.host.errorText(e) });
|
|
} finally {
|
|
if (gen === this.gen) {
|
|
this.loading = false;
|
|
if (this.again) {
|
|
this.again = false;
|
|
void this.fetchPage(true);
|
|
} else if (this.filter.trim()) this.applyFilter();
|
|
else this.render();
|
|
}
|
|
}
|
|
}
|
|
filesOf(sha) {
|
|
let p = this.files.get(sha);
|
|
if (!p) {
|
|
p = this.host.commitFiles(sha);
|
|
this.files.set(sha, p);
|
|
p.then(
|
|
(r) => this.loaded.set(sha, r),
|
|
(e) => {
|
|
this.files.delete(sha);
|
|
this.loaded.set(sha, { error: this.host.errorText(e) });
|
|
}
|
|
);
|
|
}
|
|
return p;
|
|
}
|
|
/** With a filter, the file lists of all loaded syncs are needed (fetched a few at a time, then cached). */
|
|
applyFilter() {
|
|
if (!this.filter.trim()) return this.render();
|
|
const todo = this.commits.filter((c) => !this.loaded.has(c.sha));
|
|
this.render();
|
|
let next = 0;
|
|
const gen = this.gen;
|
|
const worker = async () => {
|
|
while (next < todo.length && gen === this.gen) {
|
|
const c = todo[next++];
|
|
await this.filesOf(c.sha).catch(() => null);
|
|
this.render();
|
|
}
|
|
};
|
|
void Promise.all([worker(), worker(), worker(), worker()]);
|
|
}
|
|
toggle(c) {
|
|
if (this.expanded.has(c.sha)) this.expanded.delete(c.sha);
|
|
else {
|
|
this.expanded.add(c.sha);
|
|
if (!this.loaded.has(c.sha) || "error" in this.loaded.get(c.sha)) {
|
|
this.loaded.delete(c.sha);
|
|
void this.filesOf(c.sha).catch(() => null).then(() => this.render());
|
|
}
|
|
}
|
|
this.render();
|
|
}
|
|
render() {
|
|
const el = this.listEl;
|
|
if (!el) return;
|
|
const focused = document.activeElement?.closest?.("[data-focus]")?.getAttribute("data-focus") ?? null;
|
|
el.empty();
|
|
if (this.error) el.createDiv({ cls: "vsg-muted vsg-hist-msg", text: this.error });
|
|
const q = this.filter.trim();
|
|
let shown = 0;
|
|
let pending = 0;
|
|
const ul = el.createEl("ul", { cls: "vsg-hist-commits" });
|
|
for (const c of this.commits) {
|
|
const info = this.loaded.get(c.sha);
|
|
let files = info && !("error" in info) ? info.files : null;
|
|
if (q) {
|
|
if (!info) {
|
|
pending++;
|
|
continue;
|
|
}
|
|
files = files ? filterFiles(files, q) : [];
|
|
if (!files.length) continue;
|
|
}
|
|
shown++;
|
|
this.renderCommit(ul, c, q ? files : null, info);
|
|
}
|
|
if (!this.commits.length && !this.loading && !this.error) el.createDiv({ cls: "vsg-muted vsg-hist-msg", text: t("hist.empty") });
|
|
if (q && !shown && !pending && this.commits.length) el.createDiv({ cls: "vsg-muted vsg-hist-msg", text: t("hist.noMatch") });
|
|
if (this.loading || pending) el.createDiv({ cls: "vsg-muted vsg-hist-msg", text: t("u.loadingShort") });
|
|
else if (this.hasMore) {
|
|
const more = el.createEl("button", { text: t("hist.loadMore"), cls: "vsg-hist-more", attr: { "data-focus": "more" } });
|
|
more.onClickEvent(() => void this.fetchPage(false));
|
|
}
|
|
if (focused) el.querySelector(`[data-focus="${CSS.escape(focused)}"]`)?.focus();
|
|
}
|
|
renderCommit(ul, c, matching, info) {
|
|
const open = matching !== null || this.expanded.has(c.sha);
|
|
const li = ul.createEl("li", { cls: "vsg-hist-commit" });
|
|
li.toggleClass("is-open", open);
|
|
const head = li.createDiv({ cls: "vsg-hist-head", attr: { "data-focus": c.sha } });
|
|
const chevron = head.createSpan({ cls: "vsg-hist-chevron" });
|
|
(0, import_obsidian7.setIcon)(chevron, open ? "chevron-down" : "chevron-right");
|
|
const text = head.createDiv({ cls: "vsg-hist-text" });
|
|
text.createDiv({ cls: "vsg-commit-title", text: c.title });
|
|
const mine = c.device && c.device === this.host.deviceName() ? ` ${t("health.thisDevice")}` : "";
|
|
const sub = [new Date(c.date).toLocaleString(), c.device ? c.device + mine : null, c.author && c.author !== c.device ? c.author : null, c.sha.slice(0, 7)].filter(Boolean).join(" \xB7 ");
|
|
text.createDiv({ cls: "vsg-commit-sub", text: sub });
|
|
head.setAttr("aria-expanded", String(open));
|
|
if (matching === null) clickable(head, () => this.toggle(c), `${c.title} \xB7 ${sub}`);
|
|
if (!open) return;
|
|
const body = li.createDiv({ cls: "vsg-hist-body" });
|
|
if (!info) body.createDiv({ cls: "vsg-muted", text: t("u.loadingShort") });
|
|
else if ("error" in info) body.createDiv({ cls: "vsg-muted", text: t("u.failed", { error: info.error }) });
|
|
else {
|
|
const files = matching ?? info.files;
|
|
if (!files.length) body.createDiv({ cls: "vsg-muted", text: t("hist.noFiles") });
|
|
const list2 = body.createEl("ul", { cls: "vsg-hist-files" });
|
|
for (const f of files) {
|
|
const row = list2.createEl("li", { cls: "vsg-hist-file" });
|
|
const s = STATUS[f.status];
|
|
const label = t(s.key);
|
|
const name = row.createDiv({ cls: "vsg-hist-name", attr: { "data-focus": `${c.sha}:${f.path}` } });
|
|
name.createSpan({ cls: `vsg-hist-status is-${f.status}`, text: s.letter, attr: { title: label, "aria-hidden": "true" } });
|
|
const p = name.createSpan({ cls: "vsg-hist-path", text: f.path });
|
|
if (f.previous) p.createSpan({ cls: "vsg-muted", text: ` ${t("hist.renamedFrom", { path: f.previous })}` });
|
|
clickable(name, () => this.host.showDiff(c, info.parent, f), `${label}: ${f.path}`);
|
|
const restore = row.createEl("button", { text: t("hist.restoreFile"), cls: "vsg-hist-restore" });
|
|
restore.setAttr("aria-label", `${t("hist.restoreFile")}: ${f.path}`);
|
|
restore.onClickEvent(() => this.host.restoreFile(c, info.parent, f));
|
|
}
|
|
}
|
|
const acts = body.createDiv({ cls: "vsg-hist-actions" });
|
|
acts.createEl("button", { text: t("u.browseFiles") }).onClickEvent(() => this.host.browse(c));
|
|
acts.createEl("button", { text: t("u.restoreFolder") }).onClickEvent(() => this.host.restoreFolder(c));
|
|
acts.createEl("button", { text: t("u.restoreVault") }).onClickEvent(() => this.host.restoreVault(c));
|
|
}
|
|
};
|
|
|
|
// src/io.ts
|
|
var import_obsidian8 = require("obsidian");
|
|
var SELF_PLUGIN_ID = "vault-sync-git";
|
|
function keepSelfEnabled(path, configDir, data) {
|
|
if (path !== `${configDir}/community-plugins.json`) return null;
|
|
let list2;
|
|
try {
|
|
list2 = JSON.parse(new TextDecoder().decode(data));
|
|
} catch {
|
|
return null;
|
|
}
|
|
if (!Array.isArray(list2) || list2.includes(SELF_PLUGIN_ID)) return null;
|
|
const u = new TextEncoder().encode(JSON.stringify([...list2, SELF_PLUGIN_ID], null, 2));
|
|
return u.buffer.slice(u.byteOffset, u.byteOffset + u.byteLength);
|
|
}
|
|
var VaultIO = class {
|
|
constructor(app) {
|
|
/** Set when a write kept this plugin enabled: the file then differs from the download and must be re-read. */
|
|
this.selfRepaired = false;
|
|
/** Folders whose pruning waits until a batch of parallel writes is done (null = prune right away). */
|
|
this.pruneQueue = null;
|
|
this.app = app;
|
|
}
|
|
get adapter() {
|
|
return this.app.vault.adapter;
|
|
}
|
|
tfile(path) {
|
|
const f = this.app.vault.getAbstractFileByPath(path);
|
|
return f instanceof import_obsidian8.TFile ? f : null;
|
|
}
|
|
/** Indexed vault files in scope. Uses cached stats only, so it is cheap even on mobile. */
|
|
listVault(inScope) {
|
|
const out = [];
|
|
for (const f of this.app.vault.getFiles()) {
|
|
if (inScope(f.path)) out.push({ path: f.path, mtime: f.stat.mtime, size: f.stat.size });
|
|
}
|
|
return out;
|
|
}
|
|
/** Files in the config dir that are in scope. Walks the disk, so callers should not run it on every sync. */
|
|
async listConfig(inScope) {
|
|
const out = [];
|
|
const walk = async (dir) => {
|
|
const listing = await this.adapter.list(dir);
|
|
for (const file of listing.files) {
|
|
if (!inScope(file)) continue;
|
|
const st = await this.adapter.stat(file);
|
|
if (st && st.type === "file") out.push({ path: file, mtime: st.mtime, size: st.size });
|
|
}
|
|
for (const sub of listing.folders) {
|
|
if (inScope(sub)) await walk(sub);
|
|
}
|
|
};
|
|
await walk(this.app.vault.configDir);
|
|
return out;
|
|
}
|
|
/** Hidden files and folders at the top of the vault (not indexed by Obsidian), outside the config dir. */
|
|
async listHidden(inScope) {
|
|
const out = [];
|
|
const cfg = this.app.vault.configDir;
|
|
const root = await this.adapter.list("/");
|
|
const strip2 = (p) => p.replace(/^\/+/, "");
|
|
const addFile = async (file) => {
|
|
if (!inScope(file)) return;
|
|
const st = await this.adapter.stat(file);
|
|
if (st && st.type === "file") out.push({ path: file, mtime: st.mtime, size: st.size });
|
|
};
|
|
const walk = async (dir) => {
|
|
const listing = await this.adapter.list(dir);
|
|
for (const f of listing.files) await addFile(strip2(f));
|
|
for (const sub of listing.folders) if (inScope(strip2(sub))) await walk(strip2(sub));
|
|
};
|
|
for (const f of root.files.map(strip2)) if (f.startsWith(".")) await addFile(f);
|
|
for (const d of root.folders.map(strip2)) if (d.startsWith(".") && d !== cfg && inScope(d)) await walk(d);
|
|
return out;
|
|
}
|
|
/**
|
|
* Hidden entries inside normal vault folders (e.g. Notes/.assets/, Project/.gitignore), which Obsidian
|
|
* doesn't index. Finding them means listing every folder on disk, so that walk is shared and cached
|
|
* (see NestedHiddenIndex): it only runs again after folders were created or renamed, on a full scan
|
|
* (`full`), or every 30 minutes. In between, the known hidden files are re-read (stat) and the known
|
|
* hidden folders re-walked, which is cheap. With `onlyNames`, only files with those names are returned
|
|
* (no hidden folders are walked).
|
|
*/
|
|
async listNestedHidden(inScope, onlyNames, opts = {}) {
|
|
const found = await nestedHiddenIndex(this.app).get(this, opts.full ?? false);
|
|
const out = [];
|
|
const strip2 = (p) => p.replace(/^\/+/, "");
|
|
const name = (p) => p.split("/").pop() ?? p;
|
|
const addFile = async (file) => {
|
|
if (!inScope(file)) return;
|
|
const st = await this.adapter.stat(file);
|
|
if (st && st.type === "file") out.push({ path: file, mtime: st.mtime, size: st.size });
|
|
};
|
|
const walk = async (dir) => {
|
|
const listing = await this.adapter.list(dir);
|
|
for (const f of listing.files) await addFile(strip2(f));
|
|
for (const sub of listing.folders) if (inScope(strip2(sub))) await walk(strip2(sub));
|
|
};
|
|
for (const f of found.files) {
|
|
if (onlyNames && !onlyNames.has(name(f))) continue;
|
|
await addFile(f);
|
|
}
|
|
if (onlyNames) return out;
|
|
for (const d of found.dirs) {
|
|
if (!inScope(d)) continue;
|
|
const st = await this.adapter.stat(d);
|
|
if (st?.type === "folder") await walk(d);
|
|
}
|
|
return out;
|
|
}
|
|
/**
|
|
* One walk of every indexed folder on disk: the hidden files directly inside each, and the hidden
|
|
* folders found there. Scope-free (callers filter), with up to 4 listings at a time.
|
|
*/
|
|
async walkNestedHidden() {
|
|
const strip2 = (p) => p.replace(/^\/+/, "");
|
|
const name = (p) => p.split("/").pop() ?? p;
|
|
const files = [];
|
|
const dirs = [];
|
|
const all = this.app.vault.getAllLoadedFiles?.() ?? [];
|
|
const folders = all.filter((f) => f instanceof import_obsidian8.TFolder && !!f.path && f.path !== "/" && !isHiddenPath(f.path)).map((f) => f.path);
|
|
await pool(folders, 4, async (folder) => {
|
|
const listing = await this.adapter.list(folder);
|
|
for (const f of listing.files.map(strip2)) if (name(f).startsWith(".")) files.push(f);
|
|
for (const d of listing.folders.map(strip2)) if (name(d).startsWith(".")) dirs.push(d);
|
|
});
|
|
return { files: files.sort(), dirs: dirs.sort() };
|
|
}
|
|
/** Empty folders in the vault (indexed by Obsidian), in scope. */
|
|
listEmptyFolders(inScope) {
|
|
const out = [];
|
|
const all = this.app.vault.getAllLoadedFiles?.() ?? [];
|
|
for (const f of all) if (f instanceof import_obsidian8.TFolder && f.path && f.path !== "/" && f.children.length === 0 && !isHiddenPath(f.path) && inScope(f.path)) out.push(f.path);
|
|
return out;
|
|
}
|
|
/** True if a folder exists and holds files or folders. */
|
|
async folderHasChildren(path) {
|
|
try {
|
|
const l = await this.adapter.list(path);
|
|
const visible = (p) => !/^(\.DS_Store|\._.*|Thumbs\.db|desktop\.ini)$/i.test(p.split("/").pop() ?? "");
|
|
return l.files.some(visible) || l.folders.some(visible);
|
|
} catch {
|
|
return true;
|
|
}
|
|
}
|
|
async makeFolder(path) {
|
|
if (await this.adapter.exists(path)) return;
|
|
try {
|
|
await this.app.vault.createFolder(path);
|
|
} catch {
|
|
if (!await this.adapter.exists(path)) await this.adapter.mkdir(path);
|
|
}
|
|
}
|
|
/** Removes a folder only while it is empty (a folder that gained files here is kept). */
|
|
async removeEmptyFolder(path) {
|
|
if (!await this.adapter.exists(path) || await this.folderHasChildren(path)) return;
|
|
const f = this.app.vault.getAbstractFileByPath(path);
|
|
if (f instanceof import_obsidian8.TFolder) await this.app.fileManager.trashFile(f);
|
|
else await this.adapter.rmdir(path, false);
|
|
}
|
|
/** Every file in scope: indexed vault files, plus the config dir when requested. */
|
|
async list(inScope, includeConfigDir) {
|
|
const out = this.listVault(inScope);
|
|
if (includeConfigDir) out.push(...await this.listConfig(inScope));
|
|
return out;
|
|
}
|
|
async read(path) {
|
|
const f = this.tfile(path);
|
|
return f ? this.app.vault.readBinary(f) : this.adapter.readBinary(path);
|
|
}
|
|
async stat(path) {
|
|
const f = this.tfile(path);
|
|
if (f) return { mtime: f.stat.mtime, size: f.stat.size };
|
|
const st = await this.adapter.stat(path);
|
|
return st && st.type === "file" ? { mtime: st.mtime, size: st.size } : null;
|
|
}
|
|
async ensureDir(dir) {
|
|
if (!dir || await this.adapter.exists(dir)) return;
|
|
await this.ensureDir(parentDir(dir));
|
|
if (isHiddenPath(dir)) await this.adapter.mkdir(dir);
|
|
else {
|
|
try {
|
|
await this.app.vault.createFolder(dir);
|
|
} catch {
|
|
if (!await this.adapter.exists(dir)) await this.adapter.mkdir(dir);
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* A hidden file inside a normal folder (Notes/.gitignore, Notes/.assets/a.png) written by a sync
|
|
* raises no folder event, so the cached folder walk wouldn't list it and the next sync would read it
|
|
* as deleted here. Writing one makes the next scan walk the folders again.
|
|
*/
|
|
noteNestedHidden(path) {
|
|
const parts = path.split("/");
|
|
if (parts.slice(1).some((p) => p.startsWith(".")) && parts[0] !== this.app.vault.configDir) nestedHiddenIndex(this.app).foldersChanged();
|
|
}
|
|
async write(path, data) {
|
|
const kept = keepSelfEnabled(path, this.app.vault.configDir, data);
|
|
if (kept) {
|
|
data = kept;
|
|
this.selfRepaired = true;
|
|
}
|
|
await this.ensureDir(parentDir(path));
|
|
this.noteNestedHidden(path);
|
|
const f = this.tfile(path);
|
|
if (f) {
|
|
await this.app.vault.modifyBinary(f, data);
|
|
} else if (isHiddenPath(path)) {
|
|
await this.adapter.writeBinary(path, data);
|
|
} else {
|
|
try {
|
|
await this.app.vault.createBinary(path, data);
|
|
} catch {
|
|
await this.adapter.writeBinary(path, data);
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* Renames a file without touching its content or rewriting links (the other device already synced
|
|
* any link updates). Open tabs and bookmarks follow the file.
|
|
*/
|
|
async rename(from, to) {
|
|
await this.ensureDir(parentDir(to));
|
|
this.noteNestedHidden(to);
|
|
if (from !== to && from.normalize("NFC").toLowerCase() === to.normalize("NFC").toLowerCase()) {
|
|
const name = (f) => f.replace(/^\/+/, "").split("/").pop() ?? "";
|
|
const list2 = async (dir) => new Set(((await this.adapter.list(dir || "/").catch(() => null))?.files ?? []).map(name));
|
|
const target = await list2(parentDir(to));
|
|
if (target.has(name(to))) {
|
|
const source = parentDir(from) === parentDir(to) ? target : await list2(parentDir(from));
|
|
const sameFolder = source.size === target.size && [...source].every((n) => target.has(n));
|
|
if (!(sameFolder && name(from) === name(to))) throw new Error(`${to} already exists`);
|
|
}
|
|
const tmp = `${to}.${Date.now().toString(36)}.renaming`;
|
|
await this.renameFile(from, tmp);
|
|
try {
|
|
await this.renameFile(tmp, to);
|
|
} catch (e) {
|
|
await this.renameFile(tmp, from);
|
|
throw e;
|
|
}
|
|
} else await this.renameFile(from, to);
|
|
await this.pruneLater(parentDir(from));
|
|
}
|
|
/**
|
|
* Renames a folder whose name changes only by letter case (renamed so on another device), through a
|
|
* temporary name so case-insensitive disks (macOS, Windows, iOS) really change it.
|
|
*/
|
|
async renameFolderCase(from, to) {
|
|
const tmp = `${to}.${Date.now().toString(36)}.renaming`;
|
|
const step = async (a, b) => {
|
|
const f = this.app.vault.getAbstractFileByPath(a);
|
|
if (f instanceof import_obsidian8.TFolder) await this.app.vault.rename(f, b);
|
|
else await this.adapter.rename(a, b);
|
|
};
|
|
await step(from, tmp);
|
|
try {
|
|
await step(tmp, to);
|
|
} catch (e) {
|
|
await step(tmp, from);
|
|
throw e;
|
|
}
|
|
nestedHiddenIndex(this.app).foldersChanged();
|
|
}
|
|
async renameFile(from, to) {
|
|
const f = this.tfile(from);
|
|
if (f) await this.app.vault.rename(f, to);
|
|
else await this.adapter.rename(from, to);
|
|
}
|
|
/** Moves to trash (recoverable), then removes now-empty parent folders. */
|
|
async remove(path) {
|
|
const f = this.tfile(path);
|
|
if (f) {
|
|
await this.app.fileManager.trashFile(f);
|
|
} else if (await this.adapter.exists(path)) {
|
|
await this.adapter.trashLocal(path);
|
|
}
|
|
await this.pruneLater(parentDir(path));
|
|
}
|
|
/**
|
|
* Removes local content that exists nowhere else (it is about to be replaced by the repository's
|
|
* version): always to the system trash, else the vault's .trash folder, even when the user's
|
|
* preference is to delete files permanently.
|
|
*/
|
|
async removeRecoverable(path) {
|
|
if (await this.adapter.exists(path)) {
|
|
let trashed = false;
|
|
try {
|
|
trashed = await this.adapter.trashSystem(path);
|
|
} catch {
|
|
trashed = false;
|
|
}
|
|
if (!trashed) await this.adapter.trashLocal(path);
|
|
}
|
|
await this.pruneLater(parentDir(path));
|
|
}
|
|
/**
|
|
* Runs `fn` with empty-folder pruning held back until it finishes, so parallel work inside it (a
|
|
* download pool) can never have a folder trashed just as another task writes a file into it.
|
|
*/
|
|
async deferPruning(fn) {
|
|
if (this.pruneQueue) return fn();
|
|
const queue = /* @__PURE__ */ new Set();
|
|
this.pruneQueue = queue;
|
|
try {
|
|
return await fn();
|
|
} finally {
|
|
this.pruneQueue = null;
|
|
for (const dir of [...queue].sort((a, b) => b.length - a.length)) await this.pruneEmptyDirs(dir);
|
|
}
|
|
}
|
|
async pruneLater(dir) {
|
|
if (this.pruneQueue) this.pruneQueue.add(dir);
|
|
else await this.pruneEmptyDirs(dir);
|
|
}
|
|
async pruneEmptyDirs(dir) {
|
|
while (dir && dir !== this.app.vault.configDir) {
|
|
try {
|
|
const listing = await this.adapter.list(dir);
|
|
if (listing.files.length || listing.folders.length) return;
|
|
const folder = this.app.vault.getAbstractFileByPath(dir);
|
|
if (folder instanceof import_obsidian8.TFolder) await this.app.fileManager.trashFile(folder);
|
|
else await this.adapter.rmdir(dir, false);
|
|
} catch {
|
|
return;
|
|
}
|
|
dir = parentDir(dir);
|
|
}
|
|
}
|
|
};
|
|
var NESTED_WALK_MS = 30 * 6e4;
|
|
var FRESH_MS = 6e4;
|
|
var NestedHiddenIndex = class {
|
|
constructor() {
|
|
this.found = null;
|
|
this.walkedAt = 0;
|
|
this.stale = true;
|
|
this.running = null;
|
|
/** Number of folder walks done (for tests and the debug log). */
|
|
this.walks = 0;
|
|
}
|
|
/** Folders were created, renamed or moved: the next request walks again. */
|
|
foldersChanged() {
|
|
this.stale = true;
|
|
}
|
|
/** True if the next request would walk the folders (`full`: a full scan asks). */
|
|
due(full = false, now = Date.now()) {
|
|
if (!this.found || this.stale) return true;
|
|
if (now - this.walkedAt > NESTED_WALK_MS) return true;
|
|
return full && now - this.walkedAt > FRESH_MS;
|
|
}
|
|
async get(io, full = false) {
|
|
if (this.running) return this.running;
|
|
if (!this.due(full) && this.found) return this.found;
|
|
this.stale = false;
|
|
this.running = io.walkNestedHidden();
|
|
try {
|
|
const found = await this.running;
|
|
this.found = found;
|
|
this.walkedAt = Date.now();
|
|
this.walks++;
|
|
return found;
|
|
} catch (e) {
|
|
this.stale = true;
|
|
throw e;
|
|
} finally {
|
|
this.running = null;
|
|
}
|
|
}
|
|
};
|
|
var indexes = /* @__PURE__ */ new WeakMap();
|
|
function nestedHiddenIndex(app) {
|
|
const key2 = app.vault;
|
|
let idx = indexes.get(key2);
|
|
if (!idx) indexes.set(key2, idx = new NestedHiddenIndex());
|
|
return idx;
|
|
}
|
|
|
|
// src/settings-tab.ts
|
|
var import_obsidian11 = require("obsidian");
|
|
|
|
// src/shared-ui.ts
|
|
var import_obsidian9 = require("obsidian");
|
|
var FolderInputSuggest = class extends import_obsidian9.AbstractInputSuggest {
|
|
constructor(app, input, onPick) {
|
|
super(app, input);
|
|
this.input = input;
|
|
this.onPick = onPick;
|
|
}
|
|
getSuggestions(q) {
|
|
return this.app.vault.getAllLoadedFiles().filter((f) => f instanceof import_obsidian9.TFolder && !f.isRoot() && f.path.toLowerCase().includes(q.toLowerCase())).slice(0, 30);
|
|
}
|
|
renderSuggestion(f, el) {
|
|
el.setText(f.path);
|
|
}
|
|
selectSuggestion(f) {
|
|
this.input.value = f.path;
|
|
this.onPick(f.path);
|
|
this.close();
|
|
}
|
|
};
|
|
var SharedFolderModal = class extends import_obsidian9.Modal {
|
|
constructor(app, plugin, done, folder = "") {
|
|
super(app);
|
|
this.plugin = plugin;
|
|
this.done = done;
|
|
this.token = "";
|
|
this.def = { id: Math.random().toString(36).slice(2, 10), folder, provider: plugin.settings.provider, owner: "", repo: "", branch: "main", enabled: true };
|
|
}
|
|
onOpen() {
|
|
const { contentEl } = this;
|
|
this.titleEl.setText(t("s.sharedAdd"));
|
|
contentEl.createEl("p", {
|
|
cls: "vsg-muted",
|
|
text: t("sh.intro")
|
|
});
|
|
new import_obsidian9.Setting(contentEl).setName(t("sh.folder")).addText((t2) => {
|
|
t2.setPlaceholder(t("sh.folderPlaceholder")).setValue(this.def.folder).onChange((v) => this.def.folder = v.trim().replace(/^\/+|\/+$/g, ""));
|
|
new FolderInputSuggest(this.app, t2.inputEl, (f) => this.def.folder = f);
|
|
});
|
|
new import_obsidian9.Setting(contentEl).setName(t("s.host")).addDropdown((d) => {
|
|
for (const [k, h] of Object.entries(HOSTS)) d.addOption(k, h.label);
|
|
d.setValue(this.def.provider).onChange((v) => this.def.provider = v);
|
|
});
|
|
new import_obsidian9.Setting(contentEl).setName(t("s.owner")).setDesc(t("sh.ownerDesc")).addText((t2) => t2.onChange((v) => this.def.owner = v.trim()));
|
|
new import_obsidian9.Setting(contentEl).setName(t("s.repo")).addText((t2) => t2.onChange((v) => this.def.repo = v.trim()));
|
|
new import_obsidian9.Setting(contentEl).setName(t("s.branch")).addText((t2) => t2.setValue("main").onChange((v) => this.def.branch = v.trim() || "main"));
|
|
new import_obsidian9.Setting(contentEl).setName(t("sh.subdir")).setDesc(t("sh.subdirDesc")).addText((t2) => t2.onChange((v) => this.def.subdir = v.trim().replace(/^\/+|\/+$/g, "") || void 0));
|
|
new import_obsidian9.Setting(contentEl).setName(t("sh.conflicts")).setDesc(t("sh.conflictsDesc")).addDropdown(
|
|
(d) => d.addOptions({ copy: t("sh.conflictsCopy"), pr: t("sh.conflictsPr") }).setValue(this.def.conflicts ?? "copy").onChange((v) => this.def.conflicts = v === "pr" ? "pr" : void 0)
|
|
);
|
|
new import_obsidian9.Setting(contentEl).setName(t("sh.ghFormat")).setDesc(t("sh.ghFormatDesc")).addToggle((t2) => t2.setValue(!!this.def.githubFormat).onChange((v) => this.def.githubFormat = v || void 0));
|
|
new import_obsidian9.Setting(contentEl).setName(t("sh.token")).setDesc(t("sh.tokenDesc")).addText((t2) => {
|
|
t2.inputEl.type = "password";
|
|
t2.onChange((v) => this.token = v.trim());
|
|
});
|
|
contentEl.createEl("p", {
|
|
cls: "vsg-muted",
|
|
text: t("sh.note")
|
|
});
|
|
const msg = contentEl.createDiv({ cls: "vsg-muted" });
|
|
let busy = false;
|
|
new import_obsidian9.Setting(contentEl).addButton(
|
|
(b) => b.setButtonText(t("sh.add")).setCta().onClick(async () => {
|
|
if (busy) return;
|
|
const d = this.def;
|
|
if (!d.folder || !d.owner || !d.repo) return void msg.setText(t("sh.required"));
|
|
if ((this.plugin.settings.sharedFolders ?? []).some((f) => d.folder === f.folder || d.folder.startsWith(f.folder + "/") || f.folder.startsWith(d.folder + "/")))
|
|
return void msg.setText(t("sh.overlap"));
|
|
busy = true;
|
|
b.setDisabled(true);
|
|
msg.setText(t("sh.checking"));
|
|
const own = this.token;
|
|
try {
|
|
const remote = makeRemote(d.provider, () => ({
|
|
...own ? { token: own, bearer: false } : this.plugin.borrowedAuth(d.provider),
|
|
apiBase: this.plugin.getApiBaseFor(d.provider),
|
|
owner: d.owner,
|
|
repo: d.repo
|
|
}));
|
|
if (!await remote.getRepo()) throw new Error(t("sh.notFound"));
|
|
} catch (e) {
|
|
busy = false;
|
|
b.setDisabled(false);
|
|
return void msg.setText(t("sh.noAccess", { repo: `${d.owner}/${d.repo}`, error: localizeError(e) }));
|
|
}
|
|
this.plugin.setSharedToken(d, this.token);
|
|
this.plugin.settings.sharedFolders = [...this.plugin.settings.sharedFolders ?? [], d];
|
|
await this.plugin.saveSettings();
|
|
new import_obsidian9.Notice(t("sh.added", { folder: d.folder, repo: `${d.owner}/${d.repo}` }));
|
|
this.close();
|
|
this.done();
|
|
})
|
|
);
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
|
|
// src/ghapp-ui.ts
|
|
var import_obsidian10 = require("obsidian");
|
|
function message(e, host) {
|
|
const code = e?.code;
|
|
if (code === "expired_token") return t("app.expired");
|
|
if (code === "access_denied") return t("app.denied", { host });
|
|
if (code === "device_flow_disabled") return t("app.disabled");
|
|
return t("app.failed", { error: localizeError(e) });
|
|
}
|
|
var DeviceSignInModal = class extends import_obsidian10.Modal {
|
|
constructor(app, flow, onDone) {
|
|
super(app);
|
|
this.cancelled = false;
|
|
this.finished = false;
|
|
this.flow = flow;
|
|
this.onDone = onDone;
|
|
}
|
|
onOpen() {
|
|
this.modalEl.addClass("vsg-signin");
|
|
this.titleEl.setText(this.flow.title);
|
|
void this.run();
|
|
}
|
|
onClose() {
|
|
this.cancelled = true;
|
|
this.contentEl.empty();
|
|
if (!this.finished) this.onDone(false);
|
|
}
|
|
async run() {
|
|
const status = this.contentEl.createDiv({ cls: "vsg-muted", text: t("app.starting", { host: this.flow.host }) });
|
|
if (!this.flow.available()) return void status.setText(t("app.notAvailable", { host: this.flow.host }));
|
|
let code;
|
|
try {
|
|
code = await this.flow.start();
|
|
} catch (e) {
|
|
const code2 = e?.code;
|
|
return void status.setText(code2 === "access_denied" || code2 === "unauthorized_client" ? t("app.notAvailable", { host: this.flow.host }) : message(e, this.flow.host));
|
|
}
|
|
if (this.cancelled) return;
|
|
status.remove();
|
|
const userCode = code.userCode;
|
|
this.contentEl.createEl("p", { text: t("app.codeBody", { host: this.flow.host }) });
|
|
this.contentEl.createDiv({ cls: "vsg-device-code", text: userCode });
|
|
const copy2 = async () => {
|
|
try {
|
|
await navigator.clipboard.writeText(userCode);
|
|
new import_obsidian10.Notice(t("app.copied"));
|
|
} catch {
|
|
}
|
|
};
|
|
new import_obsidian10.Setting(this.contentEl).addButton((b) => b.setButtonText(t("app.copy")).onClick(() => void copy2())).addButton(
|
|
(b) => b.setButtonText(t("app.open", { host: this.flow.host })).setCta().onClick(() => {
|
|
void copy2();
|
|
window.open(code.verificationUriComplete ?? code.verificationUri);
|
|
})
|
|
);
|
|
const wait = this.contentEl.createDiv({ cls: "vsg-muted", text: t("app.waiting", { host: this.flow.host }) });
|
|
try {
|
|
await this.flow.finish(() => this.cancelled);
|
|
if (this.cancelled) return;
|
|
this.finished = true;
|
|
this.close();
|
|
this.onDone(true);
|
|
} catch (e) {
|
|
if (!this.cancelled) wait.setText(message(e, this.flow.host));
|
|
}
|
|
}
|
|
};
|
|
|
|
// src/gitlabapp.ts
|
|
var GITLAB_APP = { clientId: "4d7a0de58328956caa65bb4ddc9823959c5a5956aa053681a1f8f0535929a94f" };
|
|
var GITLAB_SCOPE = "api";
|
|
var DeviceFlowError = class extends Error {
|
|
constructor(code, message2) {
|
|
super(message2 || code);
|
|
this.code = code;
|
|
}
|
|
};
|
|
function webBaseFromApi(apiBase) {
|
|
return apiBase.trim().replace(/\/+$/, "").replace(/\/api\/v\d+$/i, "").replace(/\/+$/, "");
|
|
}
|
|
async function post(transport, url, params) {
|
|
const res = await transport({
|
|
url,
|
|
method: "POST",
|
|
headers: { Accept: "application/json" },
|
|
body: new URLSearchParams(params).toString(),
|
|
contentType: "application/x-www-form-urlencoded"
|
|
});
|
|
const j = res.json && typeof res.json === "object" ? res.json : {};
|
|
if (res.status >= 300 && typeof j.error !== "string") throw new DeviceFlowError(res.status >= 500 || res.status === 0 || res.status === 429 ? "http" : "http_status", `GitLab sign-in failed (HTTP ${res.status})`);
|
|
return j;
|
|
}
|
|
function fail(j) {
|
|
throw new DeviceFlowError(String(j.error), typeof j.error_description === "string" ? j.error_description : void 0);
|
|
}
|
|
var num = (v) => typeof v === "number" && Number.isFinite(v) ? v : Number(v) || 0;
|
|
function tokensFrom(j, now) {
|
|
if (typeof j.access_token !== "string" || !j.access_token) throw new DeviceFlowError("no_token", "GitLab did not return an access token");
|
|
const exp = num(j.expires_in);
|
|
return {
|
|
access: j.access_token,
|
|
expiresAt: exp ? now + exp * 1e3 : 0,
|
|
refresh: typeof j.refresh_token === "string" ? j.refresh_token : "",
|
|
refreshExpiresAt: 0
|
|
};
|
|
}
|
|
async function startDeviceFlow(web, clientId, transport = obsidianTransport, now = Date.now, scope = GITLAB_SCOPE) {
|
|
const j = await post(transport, `${web}/oauth/authorize_device`, { client_id: clientId, scope });
|
|
if (typeof j.error === "string") fail(j);
|
|
if (typeof j.device_code !== "string" || typeof j.user_code !== "string") throw new DeviceFlowError("http", "GitLab did not return a sign-in code");
|
|
return {
|
|
deviceCode: j.device_code,
|
|
userCode: j.user_code,
|
|
verificationUri: typeof j.verification_uri === "string" ? j.verification_uri : `${web}/oauth/device`,
|
|
...typeof j.verification_uri_complete === "string" ? { verificationUriComplete: j.verification_uri_complete } : {},
|
|
expiresAt: now() + (num(j.expires_in) || 300) * 1e3,
|
|
interval: num(j.interval) || 5
|
|
};
|
|
}
|
|
async function pollDeviceFlow(web, clientId, code, opts = {}) {
|
|
const transport = opts.transport ?? obsidianTransport;
|
|
const wait = opts.wait ?? sleep;
|
|
const now = opts.now ?? Date.now;
|
|
let interval = code.interval;
|
|
for (; ; ) {
|
|
await wait(interval * 1e3);
|
|
if (opts.isCancelled?.()) throw new DeviceFlowError("cancelled");
|
|
if (now() > code.expiresAt) throw new DeviceFlowError("expired_token");
|
|
let j;
|
|
try {
|
|
j = await post(transport, `${web}/oauth/token`, {
|
|
client_id: clientId,
|
|
device_code: code.deviceCode,
|
|
grant_type: "urn:ietf:params:oauth:grant-type:device_code"
|
|
});
|
|
} catch (e) {
|
|
if (e instanceof DeviceFlowError && e.code !== "http") throw e;
|
|
continue;
|
|
}
|
|
if (j.error === "authorization_pending") continue;
|
|
if (j.error === "slow_down") {
|
|
interval = num(j.interval) || interval + 5;
|
|
continue;
|
|
}
|
|
if (typeof j.error === "string") fail(j);
|
|
return tokensFrom(j, now());
|
|
}
|
|
}
|
|
async function refreshAppToken(web, clientId, refresh, transport = obsidianTransport, now = Date.now) {
|
|
const j = await post(transport, `${web}/oauth/token`, { client_id: clientId, grant_type: "refresh_token", refresh_token: refresh });
|
|
if (typeof j.error === "string") fail(j);
|
|
const t2 = tokensFrom(j, now());
|
|
return t2.refresh ? t2 : { ...t2, refresh };
|
|
}
|
|
function needsRefresh(t2, now = Date.now(), marginMs = 10 * 6e4) {
|
|
return t2.expiresAt > 0 && t2.expiresAt - now < marginMs;
|
|
}
|
|
function parseTokens(raw) {
|
|
try {
|
|
const t2 = JSON.parse(raw);
|
|
if (typeof t2.access !== "string" || !t2.access) return null;
|
|
return {
|
|
access: t2.access,
|
|
expiresAt: num(t2.expiresAt),
|
|
refresh: typeof t2.refresh === "string" ? t2.refresh : "",
|
|
refreshExpiresAt: num(t2.refreshExpiresAt),
|
|
...typeof t2.web === "string" ? { web: t2.web } : {},
|
|
...typeof t2.clientId === "string" ? { clientId: t2.clientId } : {}
|
|
};
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// src/codec.ts
|
|
var Codec = class {
|
|
constructor(layers = []) {
|
|
this.layers = layers;
|
|
this.id = layers.map((l) => l.id).filter(Boolean).join("+");
|
|
this.fingerprint = layers.map((l) => l.fingerprint ?? l.id).filter(Boolean).join("+");
|
|
this.transformsContent = layers.some((l) => l.transformsContent);
|
|
this.transformsPaths = layers.some((l) => l.transformsPaths);
|
|
}
|
|
has(prefix) {
|
|
return this.layers.some((l) => l.id.startsWith(prefix));
|
|
}
|
|
async encodePath(path) {
|
|
let p = path;
|
|
for (const l of this.layers) if (l.encodePath) p = await l.encodePath(p);
|
|
return p;
|
|
}
|
|
async decodePath(raw) {
|
|
let p = raw;
|
|
for (const l of [...this.layers].reverse()) {
|
|
if (p === null) return null;
|
|
if (l.decodePath) p = await l.decodePath(p);
|
|
}
|
|
return p;
|
|
}
|
|
async run(path, data, sideEffects) {
|
|
let d = data;
|
|
for (const l of this.layers) {
|
|
if (!l.transformsContent) continue;
|
|
if (!sideEffects && l.storedForm) d = await l.storedForm(path, d);
|
|
else if (l.encode) d = await l.encode(path, d);
|
|
}
|
|
return d;
|
|
}
|
|
/** Git blob sha of the file as it is (or would be) stored in the repository. */
|
|
async storedSha(path, data) {
|
|
return gitBlobSha(this.transformsContent ? await this.run(path, data, false) : data);
|
|
}
|
|
encode(path, data) {
|
|
return this.transformsContent ? this.run(path, data, true) : Promise.resolve(data);
|
|
}
|
|
async decode(path, blob) {
|
|
let d = blob;
|
|
for (const l of [...this.layers].reverse()) if (l.transformsContent && l.decode) d = await l.decode(path, d);
|
|
return d;
|
|
}
|
|
};
|
|
var PLAIN = new Codec();
|
|
function normalizeSubdir(subdir) {
|
|
return (typeof subdir === "string" ? subdir : "").replace(/\\/g, "/").split("/").map((s) => s.trim()).filter((s) => s && s !== "." && s !== "..").join("/");
|
|
}
|
|
function vaultCommitsPath(subdir) {
|
|
return normalizeSubdir(subdir) || void 0;
|
|
}
|
|
var RepoSubdirLayer = class {
|
|
constructor(subdir) {
|
|
this.transformsPaths = true;
|
|
const sub = normalizeSubdir(subdir);
|
|
if (!sub) throw new Error("RepoSubdirLayer needs a folder");
|
|
this.repoSubdir = sub + "/";
|
|
this.id = `subdir:${this.repoSubdir}`;
|
|
}
|
|
async encodePath(p) {
|
|
return this.repoSubdir + p;
|
|
}
|
|
async decodePath(raw) {
|
|
if (!raw.startsWith(this.repoSubdir) || raw.length === this.repoSubdir.length) return null;
|
|
return raw.slice(this.repoSubdir.length);
|
|
}
|
|
};
|
|
var PrefixLayer = class {
|
|
constructor(folder, subdir = "") {
|
|
this.transformsPaths = true;
|
|
this.prefix = folder.replace(/^\/+|\/+$/g, "") + "/";
|
|
const sub = subdir.replace(/^\/+|\/+$/g, "");
|
|
this.sub = sub ? sub + "/" : "";
|
|
this.id = this.sub ? `folder:${this.prefix}=${this.sub}` : `folder:${this.prefix}`;
|
|
}
|
|
/** The vault folder this layer maps (with a trailing slash). */
|
|
get folderPrefix() {
|
|
return this.prefix;
|
|
}
|
|
async encodePath(p) {
|
|
if (!p.startsWith(this.prefix)) throw new Error(`${p} is outside the shared folder ${this.prefix}`);
|
|
return this.sub + p.slice(this.prefix.length);
|
|
}
|
|
/** Repository paths outside the mapped subfolder are not part of this shared folder (null: ignored). */
|
|
async decodePath(raw) {
|
|
if (this.sub && !raw.startsWith(this.sub)) return null;
|
|
return this.prefix + raw.slice(this.sub.length);
|
|
}
|
|
};
|
|
|
|
// src/commit-template.ts
|
|
var DEFAULT_COMMIT_TEMPLATE = "{{device}}: {{summary}}";
|
|
var FILES_IN_MESSAGE = 10;
|
|
function isAutomaticTrigger(trigger) {
|
|
return !!trigger && trigger !== "manual" && trigger !== "close";
|
|
}
|
|
function templateFor(main, auto, trigger) {
|
|
const m = main.trim() || DEFAULT_COMMIT_TEMPLATE;
|
|
return isAutomaticTrigger(trigger) && auto?.trim() ? auto.trim() : m;
|
|
}
|
|
function filesList(files, max = FILES_IN_MESSAGE) {
|
|
if (!files.length) return "";
|
|
const shown = files.slice(0, max).join(", ");
|
|
return files.length > max ? `${shown} and ${files.length - max} more` : shown;
|
|
}
|
|
function formatDate(d, format) {
|
|
const p = (n) => String(n).padStart(2, "0");
|
|
const tokens = {
|
|
YYYY: () => String(d.getFullYear()),
|
|
YY: () => String(d.getFullYear()).slice(-2),
|
|
MM: () => p(d.getMonth() + 1),
|
|
M: () => String(d.getMonth() + 1),
|
|
DD: () => p(d.getDate()),
|
|
D: () => String(d.getDate()),
|
|
HH: () => p(d.getHours()),
|
|
H: () => String(d.getHours()),
|
|
mm: () => p(d.getMinutes()),
|
|
m: () => String(d.getMinutes()),
|
|
ss: () => p(d.getSeconds()),
|
|
s: () => String(d.getSeconds())
|
|
};
|
|
return format.replace(/\[([^\]]*)\]|YYYY|YY|MM|M|DD|D|HH|H|mm|m|ss|s/g, (tok, lit) => lit !== void 0 ? lit : tokens[tok]());
|
|
}
|
|
function momentFromGlobal() {
|
|
const m = typeof window === "undefined" ? void 0 : window.moment;
|
|
return typeof m === "function" ? m : null;
|
|
}
|
|
function renderCommitTemplate(template, v, moment = momentFromGlobal()) {
|
|
const out = template.replace(/\{\{\s*(\w+)(?::([^}]*))?\s*\}\}/g, (all, name, fmt) => {
|
|
switch (name) {
|
|
case "device":
|
|
return v.device;
|
|
case "summary":
|
|
return v.summary;
|
|
case "count":
|
|
return String(v.count);
|
|
case "files":
|
|
return filesList(v.files);
|
|
case "trigger":
|
|
return v.trigger;
|
|
case "date": {
|
|
const f = fmt?.trim();
|
|
if (!f) return v.date.toISOString();
|
|
try {
|
|
if (moment) return moment(v.date).format(f);
|
|
} catch {
|
|
}
|
|
return formatDate(v.date, f);
|
|
}
|
|
default:
|
|
return all;
|
|
}
|
|
});
|
|
return out.replace(/[\r\n]+/g, " ").trim();
|
|
}
|
|
function previewCommitMessage(template, device, trigger = "manual", moment) {
|
|
return renderCommitTemplate(template.trim() || DEFAULT_COMMIT_TEMPLATE, {
|
|
device,
|
|
summary: "1 added, 2 updated",
|
|
count: 3,
|
|
files: ["Notes/Idea.md", "Daily/2026-10-13.md", "Projects/Plan.md"],
|
|
trigger,
|
|
date: /* @__PURE__ */ new Date()
|
|
}, moment === void 0 ? momentFromGlobal() : moment);
|
|
}
|
|
|
|
// src/settings-tab.ts
|
|
function onCommit(c, fn) {
|
|
c.inputEl.addEventListener("change", () => void fn(c.getValue()));
|
|
return c;
|
|
}
|
|
var VaultSyncSettingTab = class extends import_obsidian11.PluginSettingTab {
|
|
constructor(app, plugin) {
|
|
super(app, plugin);
|
|
this.openGroups = /* @__PURE__ */ new Set();
|
|
this.plugin = plugin;
|
|
}
|
|
/** Backup mirror: a second repository every sync also uploads to (push only). */
|
|
mirrorItems() {
|
|
const p = this.plugin;
|
|
const s = p.settings;
|
|
const m = s.mirror ?? { enabled: false, provider: s.provider, owner: "", repo: "", branch: "main" };
|
|
const save = async (patch) => {
|
|
s.mirror = { ...s.mirror ?? m, ...patch };
|
|
await p.saveSettings();
|
|
};
|
|
const def = { id: "mirror", provider: m.provider, folder: "", owner: m.owner, repo: m.repo, branch: m.branch, enabled: m.enabled };
|
|
const text = (get, set) => (st) => st.addText((c) => onCommit(c.setValue(get()), async (v) => save(set(v.trim()))));
|
|
return [
|
|
{ name: "", desc: t("s.mirrorIntro"), render: () => void 0, searchable: false },
|
|
{
|
|
name: t("s.mirrorOn"),
|
|
render: (st) => st.addToggle(
|
|
(c) => c.setValue(m.enabled).onChange(async (v) => {
|
|
await save({ enabled: v });
|
|
this.refresh();
|
|
})
|
|
)
|
|
},
|
|
{
|
|
name: t("s.host"),
|
|
render: (st) => st.addDropdown((d) => {
|
|
for (const [k, h] of Object.entries(HOSTS)) d.addOption(k, h.label);
|
|
d.setValue(m.provider).onChange(async (v) => {
|
|
await save({ provider: v });
|
|
this.refresh();
|
|
});
|
|
})
|
|
},
|
|
{ name: t("s.owner"), render: text(() => m.owner, (v) => ({ owner: v })) },
|
|
{ name: t("s.repo"), render: text(() => m.repo, (v) => ({ repo: v })) },
|
|
{ name: t("s.branch"), render: text(() => m.branch, (v) => ({ branch: v || "main" })) },
|
|
{
|
|
name: t("s.mirrorToken"),
|
|
desc: t("s.mirrorTokenDesc"),
|
|
render: (st) => st.addText((c) => {
|
|
c.inputEl.type = "password";
|
|
onCommit(c.setValue(p.mirrorToken(def)), async (v) => p.setSharedToken(def, v.trim()));
|
|
}).addButton(
|
|
(b) => b.setButtonText(t("s.test")).onClick(async () => {
|
|
try {
|
|
const h = await p.mirror();
|
|
if (!h) return void new import_obsidian11.Notice(t("s.mirrorIncomplete"));
|
|
const repo = await h.gh.getRepo();
|
|
const cur = s.mirror ?? m;
|
|
new import_obsidian11.Notice(repo ? t("s.mirrorOk", { repo: `${cur.owner}/${cur.repo}` }) : t("s.testNotFound", { user: cur.owner, repo: `${cur.owner}/${cur.repo}` }));
|
|
} catch (e) {
|
|
new import_obsidian11.Notice(t("s.testFailed", { error: localizeError(e) }));
|
|
}
|
|
})
|
|
)
|
|
}
|
|
];
|
|
}
|
|
/** Closing settings with a field still focused fires no change event: blur it first so it saves. */
|
|
hide() {
|
|
const active = this.containerEl.ownerDocument.activeElement;
|
|
if (active instanceof HTMLElement && this.containerEl.contains(active)) active.blur();
|
|
super.hide();
|
|
}
|
|
/** Obsidian 1.13+ renders the tab from getSettingDefinitions(): rebuild those. Older versions use display(). */
|
|
refresh() {
|
|
if ((0, import_obsidian11.requireApiVersion)("1.13.0")) this.update();
|
|
else this.display();
|
|
}
|
|
/** Redraws the tab when it is on screen (e.g. after data.json changed on disk); does nothing otherwise. */
|
|
refreshIfOpen() {
|
|
if (this.containerEl.isShown()) this.refresh();
|
|
}
|
|
/**
|
|
* Obsidian 1.13+ keeps the definitions from the last update() and reuses them (e.g. when a search
|
|
* result opens a page), so counts in descriptions go stale. Rebuild them while the tab is closed;
|
|
* an open tab is left alone so nothing jumps while someone types in it.
|
|
*/
|
|
/** Rebuilds the tab after a change made elsewhere (sign-in, the setup wizard), whether or not it is on screen. */
|
|
redraw() {
|
|
if (this.containerEl.isShown()) this.refresh();
|
|
else this.refreshIfHidden();
|
|
}
|
|
refreshIfHidden() {
|
|
if (this.containerEl.isShown()) return;
|
|
if ((0, import_obsidian11.requireApiVersion)("1.13.0")) this.update();
|
|
}
|
|
groups() {
|
|
const p = this.plugin;
|
|
const s = p.settings;
|
|
const save = () => p.saveSettings();
|
|
const host = HOSTS[s.provider];
|
|
const ds = p.deviceScope();
|
|
const lines2 = (v) => v.split("\n").map((x) => x.trim()).filter(Boolean);
|
|
const numberField = (get, set, opts) => (st) => st.addText((c) => {
|
|
c.inputEl.type = "number";
|
|
c.inputEl.inputMode = "decimal";
|
|
onCommit(c.setValue(String(get())), async (v) => {
|
|
let n = v.trim() === "" ? opts.fallback : Number(v);
|
|
if (!Number.isFinite(n)) n = opts.fallback;
|
|
if (opts.integer) n = Math.round(n);
|
|
set(Math.min(opts.max, Math.max(opts.min, n)));
|
|
c.setValue(String(get()));
|
|
await save();
|
|
opts.after?.();
|
|
});
|
|
});
|
|
const maxSizeCap = () => (s.provider ?? "github") === "github" && !(s.lfsThresholdMB > 0) ? 100 : 2e3;
|
|
const toggle = (key2, reschedule = false, redraw = false) => (st) => st.addToggle(
|
|
(c) => c.setValue(s[key2]).onChange(async (v) => {
|
|
s[key2] = v;
|
|
await save();
|
|
if (reschedule) p.rescheduleTriggers();
|
|
if (key2 === "explorerBadges" || key2 === "respectFrontmatter") p.refreshBadges();
|
|
if (key2 === "statusCountdown" || key2 === "statusBranch") p.updateStatusExtras();
|
|
if (redraw) this.refresh();
|
|
})
|
|
);
|
|
const cfgToggle = (key2) => (st) => st.addToggle(
|
|
(c) => c.setValue(s.configSync[key2]).onChange(async (v) => {
|
|
s.configSync = { ...s.configSync, [key2]: v };
|
|
await save();
|
|
})
|
|
);
|
|
const cfgItems = s.syncConfigDir ? [
|
|
{ name: t("s.cfgAppearance"), desc: t("s.cfgAppearanceDesc"), cls: "vsg-indent", render: cfgToggle("appearance") },
|
|
{ name: t("s.cfgSnippets"), cls: "vsg-indent", render: cfgToggle("snippets") },
|
|
{ name: t("s.cfgHotkeys"), cls: "vsg-indent", render: cfgToggle("hotkeys") },
|
|
{ name: t("s.cfgCore"), desc: t("s.cfgCoreDesc"), cls: "vsg-indent", render: cfgToggle("core") },
|
|
{ name: t("s.cfgPluginList"), desc: t("s.cfgPluginListDesc"), cls: "vsg-indent", render: cfgToggle("pluginList") },
|
|
{ name: t("s.cfgPluginCode"), desc: t("s.cfgPluginCodeDesc"), cls: "vsg-indent", render: cfgToggle("pluginCode") },
|
|
{ name: t("s.cfgInstall"), desc: t("s.cfgInstallDesc"), cls: "vsg-indent", render: cfgToggle("installFromReleases") },
|
|
{ name: t("s.cfgPluginSettings"), desc: t("s.cfgPluginSettingsDesc"), cls: "vsg-indent", render: cfgToggle("pluginSettings") },
|
|
{
|
|
name: t("s.cfgPerPlugin"),
|
|
desc: t("s.cfgPerPluginDesc", { n: Object.keys(s.configSync.plugins).length }),
|
|
cls: "vsg-indent",
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("s.cfgPerPluginBtn")).onClick(() => new PluginSyncModal(this.app, p, () => this.refresh()).open()))
|
|
}
|
|
] : [];
|
|
const tokenDesc = () => createFragment((f) => {
|
|
f.appendText(t("s.tokenDesc") + " ");
|
|
const first = host.tokenSteps(p.getApiBase(), this.app.vault.getName())[0];
|
|
f.appendText(first.text + " ");
|
|
if (first.link) f.createEl("a", { text: first.link.label, href: first.link.href });
|
|
});
|
|
const usingApp = p.signedInNow();
|
|
const auth = [];
|
|
const signInKind = s.provider === "github" && p.githubApp() ? "github" : s.provider === "gitlab" && p.gitlabApp() ? "gitlab" : null;
|
|
if (usingApp) {
|
|
auth.push({
|
|
name: s.provider === "gitlab" ? t("app.signedInGitLab") : t("app.signedIn"),
|
|
desc: s.provider === "gitlab" ? t("app.signedInDescGitLab") : t("app.signedInDesc"),
|
|
render: (st) => st.addButton(
|
|
(b) => b.setButtonText(t("app.signOut")).onClick(() => {
|
|
if (s.provider === "gitlab") p.signOutGitLab();
|
|
else p.signOutApp();
|
|
this.refresh();
|
|
})
|
|
)
|
|
});
|
|
} else if (signInKind) {
|
|
auth.push({
|
|
name: signInKind === "gitlab" ? t("app.signInGitLab") : t("app.signIn"),
|
|
desc: signInKind === "gitlab" ? t("app.signInDescGitLab") : t("app.signInDesc"),
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("app.signInBtn")).setCta().onClick(() => new DeviceSignInModal(this.app, p.signInFlow(signInKind), () => this.refresh()).open()))
|
|
});
|
|
}
|
|
if (!usingApp) {
|
|
auth.push({
|
|
name: t("s.token"),
|
|
desc: tokenDesc,
|
|
render: (st) => st.addText((c) => {
|
|
c.inputEl.type = "password";
|
|
onCommit(c.setPlaceholder(t("s.tokenPlaceholder")).setValue(p.getToken()), async (v) => {
|
|
p.setToken(v.trim());
|
|
});
|
|
})
|
|
});
|
|
}
|
|
const enterpriseApp = s.provider === "github" && !/^https:\/\/api\.github\.com\/?$/i.test(p.getApiBase()) ? [
|
|
{
|
|
name: t("app.clientId"),
|
|
desc: t("app.clientIdDesc"),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setValue(p.customGitHubApp().clientId), async (v) => {
|
|
p.setCustomGitHubApp(v.trim(), p.customGitHubApp().slug);
|
|
this.refresh();
|
|
})
|
|
)
|
|
},
|
|
{
|
|
name: t("app.slug"),
|
|
desc: t("app.slugDesc"),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setValue(p.customGitHubApp().slug), async (v) => {
|
|
p.setCustomGitHubApp(p.customGitHubApp().clientId, v.trim());
|
|
})
|
|
)
|
|
}
|
|
] : [];
|
|
if (s.provider === "gitlab" && (!GITLAB_APP.clientId || !/^https:\/\/gitlab\.com\/api\/v4\/?$/i.test(p.getApiBase()))) {
|
|
enterpriseApp.push({
|
|
name: t("app.glClientId"),
|
|
desc: t("app.glClientIdDesc"),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setValue(p.gitlabApp()?.clientId ?? ""), async (v) => {
|
|
p.setCustomGitLabApp(v.trim());
|
|
this.refresh();
|
|
})
|
|
)
|
|
});
|
|
}
|
|
return [
|
|
{
|
|
items: [
|
|
{
|
|
name: t("s.wizard"),
|
|
desc: t("s.wizardDesc"),
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("s.wizardBtn")).setCta().onClick(() => p.openWizard()))
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hConnection"),
|
|
items: [
|
|
{
|
|
name: t("s.host"),
|
|
desc: t("s.hostDesc"),
|
|
render: (st) => st.addDropdown((d) => {
|
|
for (const [k, h] of Object.entries(HOSTS)) d.addOption(k, h.label + (h.beta ? ` (${t("s.beta")})` : ""));
|
|
d.setValue(s.provider).onChange(async (v) => {
|
|
s.provider = v;
|
|
await save();
|
|
this.refresh();
|
|
});
|
|
})
|
|
},
|
|
...auth,
|
|
{
|
|
name: t("s.owner"),
|
|
desc: s.provider === "gitlab" ? t("s.ownerDescGitlab") : s.provider === "bitbucket" ? t("s.ownerDescBitbucket") : t("s.ownerDesc"),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setPlaceholder(t("s.ownerPlaceholder")).setValue(s.owner), async (v) => {
|
|
s.owner = v.trim();
|
|
await save();
|
|
})
|
|
)
|
|
},
|
|
{
|
|
name: t("s.repo"),
|
|
desc: t("s.repoDesc"),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setPlaceholder(t("s.repoPlaceholder")).setValue(s.repo), async (v) => {
|
|
s.repo = v.trim();
|
|
await save();
|
|
})
|
|
).addButton(
|
|
(b) => (
|
|
// Pick from the repositories this account (or the signed-in app) can use.
|
|
b.setButtonText(t("s.branchChoose")).onClick(async () => {
|
|
if (!p.getToken()) return void new import_obsidian11.Notice(t("m.needToken"));
|
|
b.setDisabled(true);
|
|
try {
|
|
const repos = await p.gh.listRepos();
|
|
if (!repos.length) return void new import_obsidian11.Notice(p.usingGitHubApp() ? t("app.noRepos") : t("w.noMatch"));
|
|
new RepoSuggestModal(
|
|
this.app,
|
|
repos,
|
|
(r) => void (async () => {
|
|
if (!r.private && !await confirmPlan(this.app, t("w.publicTitle"), t("w.publicBody", { repo: `${r.owner}/${r.name}` }), [], t("w.useAnyway"), true)) return;
|
|
s.owner = r.owner;
|
|
s.repo = r.name;
|
|
s.branch = r.defaultBranch || "main";
|
|
await save();
|
|
this.refresh();
|
|
})()
|
|
).open();
|
|
} catch (e) {
|
|
new import_obsidian11.Notice(t("w.listFailed", { error: localizeError(e) }), 1e4);
|
|
} finally {
|
|
b.setDisabled(false);
|
|
}
|
|
})
|
|
)
|
|
)
|
|
},
|
|
{
|
|
name: t("s.branch"),
|
|
desc: t("s.branchDesc"),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setValue(s.branch), async (v) => {
|
|
s.branch = v.trim() || "main";
|
|
c.setValue(s.branch);
|
|
await save();
|
|
})
|
|
).addButton(
|
|
(b) => b.setButtonText(t("s.branchChoose")).onClick(() => {
|
|
if (!p.isConfigured()) return void new import_obsidian11.Notice(t("m.needRepo"));
|
|
new BranchModal(this.app, p, async (name) => {
|
|
s.branch = name;
|
|
await save();
|
|
this.refresh();
|
|
}).open();
|
|
})
|
|
)
|
|
},
|
|
{
|
|
name: t("s.repoSubdir"),
|
|
desc: t("s.repoSubdirDesc"),
|
|
render: (st) => st.addText((c) => {
|
|
c.setPlaceholder("Vaults/personal");
|
|
onCommit(c.setValue(s.repoSubdir ?? ""), async (v) => {
|
|
const next = normalizeSubdir(v);
|
|
c.setValue(next);
|
|
if (next === normalizeSubdir(s.repoSubdir)) return;
|
|
if (p.isSyncing()) {
|
|
c.setValue(s.repoSubdir ?? "");
|
|
return void new import_obsidian11.Notice(t("notice.busy"));
|
|
}
|
|
if (p.isConfigured() && p.state.lastSync > 0) {
|
|
const count = await p.repoFolderFileCount(next);
|
|
const where = next || t("s.subdirRoot");
|
|
const intro = [t("s.subdirChangeBody", { folder: where }), count === null ? t("s.subdirMaybeFiles") : count > 0 ? t("s.subdirHasFiles", { count }) : ""].filter(Boolean).join(" ");
|
|
const ok = await confirmPlan(this.app, t("s.subdirChangeTitle"), intro, [], t("s.subdirChangeConfirm"), !!count);
|
|
if (!ok) return void c.setValue(s.repoSubdir ?? "");
|
|
if (p.isSyncing()) {
|
|
c.setValue(s.repoSubdir ?? "");
|
|
return void new import_obsidian11.Notice(t("notice.busy"));
|
|
}
|
|
}
|
|
s.repoSubdir = next;
|
|
await save();
|
|
});
|
|
})
|
|
},
|
|
{
|
|
name: t("s.check"),
|
|
desc: t("s.checkDesc"),
|
|
render: (st) => st.addButton(
|
|
(b) => b.setButtonText(t("s.test")).onClick(async () => {
|
|
try {
|
|
const user = await p.gh.getUser();
|
|
if (!s.owner) {
|
|
s.owner = user.login;
|
|
await save();
|
|
this.refresh();
|
|
}
|
|
const repo = s.repo ? await p.gh.getRepo() : null;
|
|
if (!s.repo) new import_obsidian11.Notice(t("s.testNoRepo", { user: user.login }));
|
|
else if (!repo) new import_obsidian11.Notice(t("s.testNotFound", { user: user.login, repo: `${s.owner}/${s.repo}` }));
|
|
else new import_obsidian11.Notice(t(repo.private ? "s.testOkPrivate" : "s.testOkPublic", { repo: `${s.owner}/${s.repo}` }));
|
|
} catch (e) {
|
|
new import_obsidian11.Notice(t("s.testFailed", { error: localizeError(e) }));
|
|
}
|
|
})
|
|
).addButton(
|
|
(b) => b.setButtonText(t("s.createRepo")).onClick(async () => {
|
|
try {
|
|
const user = await p.gh.getUser();
|
|
if (!s.owner) s.owner = user.login;
|
|
if (!s.repo) s.repo = this.app.vault.getName().replace(/[^A-Za-z0-9._-]+/g, "-");
|
|
await save();
|
|
const repo = await p.gh.createRepo(s.repo, s.owner !== user.login ? s.owner : void 0);
|
|
new import_obsidian11.Notice(t("s.created", { url: repo.html_url }));
|
|
this.refresh();
|
|
} catch (e) {
|
|
new import_obsidian11.Notice(t("s.createFailed", { error: localizeError(e) }));
|
|
}
|
|
})
|
|
)
|
|
},
|
|
{
|
|
name: t("link.addDevice"),
|
|
desc: t("link.addDeviceDesc"),
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("link.createBtn")).onClick(() => p.openSetupLink()))
|
|
},
|
|
{
|
|
name: t("s.apiBase"),
|
|
desc: t("s.apiBaseDesc", { hint: host.apiHint }),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setValue(p.getApiBase()), async (v) => {
|
|
const url = v.trim().replace(/\/+$/, "") || host.defaultApi;
|
|
if (!/^https:\/\/[^\s/?#]+/i.test(url) && !/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?(\/|$)/i.test(url)) {
|
|
new import_obsidian11.Notice(t("s.apiBaseInvalid"));
|
|
c.setValue(p.getApiBase());
|
|
return;
|
|
}
|
|
p.setApiBase(url);
|
|
p.rebindToken();
|
|
this.refresh();
|
|
})
|
|
)
|
|
},
|
|
...enterpriseApp,
|
|
{
|
|
name: t("s.device"),
|
|
desc: t("s.deviceDesc"),
|
|
render: (st) => st.addText(
|
|
(c) => onCommit(c.setValue(p.deviceName()), async (v) => {
|
|
p.setDeviceName(v.trim());
|
|
c.setValue(p.deviceName());
|
|
})
|
|
)
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hBehaviour"),
|
|
items: [
|
|
{
|
|
name: t("s.mode"),
|
|
desc: t("s.modeDesc"),
|
|
render: (st) => st.addDropdown(
|
|
(d) => d.addOptions({ sync: t("s.modeSync"), push: t("s.modePush"), pull: t("s.modePull") }).setValue(s.mode).onChange(async (v) => {
|
|
s.mode = v;
|
|
await save();
|
|
})
|
|
)
|
|
},
|
|
{ name: t("s.onStartup"), desc: t("s.onStartupDesc"), render: toggle("syncOnStartup", true) },
|
|
{ name: t("s.onChange"), desc: t("s.onChangeDesc"), render: toggle("syncOnChange", true) },
|
|
{
|
|
name: t("s.delay"),
|
|
desc: t("s.delayDesc"),
|
|
render: (st) => {
|
|
const showValue = () => {
|
|
if (!(0, import_obsidian11.requireApiVersion)("1.13.0")) st.setDesc(`${t("s.delayDesc")} ${t("s.delayNow", { n: s.changeDebounceSec })}`);
|
|
};
|
|
showValue();
|
|
return st.addSlider(
|
|
(sl) => sl.setLimits(5, 300, 5).setValue(s.changeDebounceSec).onChange(async (v) => {
|
|
s.changeDebounceSec = v;
|
|
showValue();
|
|
await save();
|
|
p.rescheduleTriggers();
|
|
})
|
|
);
|
|
}
|
|
},
|
|
{
|
|
name: t("s.interval"),
|
|
desc: t("s.intervalDesc"),
|
|
render: numberField(() => s.intervalMin, (n) => s.intervalMin = n === 0 ? 0 : Math.max(1, n), { min: 0, max: 1440, fallback: 0, integer: true, after: () => p.rescheduleTriggers() })
|
|
},
|
|
{ name: t("s.onResume"), desc: t("s.onResumeDesc"), render: toggle("syncOnResume", true) },
|
|
{ name: t("s.onBackground"), desc: t("s.onBackgroundDesc"), render: toggle("syncOnBackground", true) },
|
|
{ name: t("s.onOpen"), desc: t("s.onOpenDesc"), render: toggle("syncOnOpen") },
|
|
{ name: t("s.badges"), desc: t("s.badgesDesc"), render: toggle("explorerBadges") },
|
|
{
|
|
name: t("s.changeMarkers"),
|
|
desc: t("s.changeMarkersDesc"),
|
|
render: (st) => st.addToggle(
|
|
(c) => c.setValue(s.changeMarkers).onChange(async (v) => {
|
|
s.changeMarkers = v;
|
|
await save();
|
|
p.changeMarkers?.setEnabled(v);
|
|
})
|
|
)
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hScope"),
|
|
collapsed: true,
|
|
items: [
|
|
{ name: t("s.configDir", { dir: this.app.vault.configDir }), desc: `${t("s.configDirDesc")} ${t("s.configDirWarn")}`, render: toggle("syncConfigDir", false, true) },
|
|
...cfgItems,
|
|
{ name: t("s.hidden"), desc: t("s.hiddenDesc"), render: toggle("syncHidden", false, true) },
|
|
...s.syncHidden ? [{ name: t("s.hiddenNested"), desc: t("s.hiddenNestedDesc"), render: toggle("syncHiddenNested") }] : [],
|
|
{ name: t("s.gitignore"), desc: t("s.gitignoreDesc"), render: toggle("useGitignore") },
|
|
{ name: t("s.emptyFolders"), desc: t("s.emptyFoldersDesc"), render: toggle("keepEmptyFolders") },
|
|
{
|
|
name: t("s.exclude"),
|
|
desc: t("s.excludeDesc"),
|
|
cls: "vsg-stacked",
|
|
render: (st) => st.addTextArea((c) => {
|
|
c.inputEl.rows = 8;
|
|
c.inputEl.addClass("vsg-textarea");
|
|
onCommit(c.setValue(s.excludePatterns), async (v) => {
|
|
s.excludePatterns = v;
|
|
await save();
|
|
});
|
|
})
|
|
},
|
|
{ name: t("s.frontmatter"), desc: t("s.frontmatterDesc"), render: toggle("respectFrontmatter") },
|
|
{
|
|
name: t("s.maxSize"),
|
|
desc: t("s.maxSizeDesc"),
|
|
render: numberField(() => s.maxFileSizeMB, (n) => s.maxFileSizeMB = Math.min(maxSizeCap(), n), { min: 1, max: 2e3, fallback: 50 })
|
|
},
|
|
{
|
|
name: t("s.lfs"),
|
|
desc: t("s.lfsDesc"),
|
|
render: numberField(() => s.lfsThresholdMB, (n) => s.lfsThresholdMB = n, {
|
|
min: 0,
|
|
max: 2e3,
|
|
fallback: 0,
|
|
after: () => {
|
|
s.maxFileSizeMB = Math.min(maxSizeCap(), s.maxFileSizeMB);
|
|
void save();
|
|
if (s.lfsThresholdMB > 0 && s.lfsThresholdMB >= s.maxFileSizeMB) new import_obsidian11.Notice(t("s.lfsAboveMax", { max: s.maxFileSizeMB }), 8e3);
|
|
this.refresh();
|
|
}
|
|
})
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hEncryption"),
|
|
collapsed: true,
|
|
items: p.isEncrypted() ? [
|
|
{
|
|
name: t("s.encOn"),
|
|
desc: p.encryptionUpgradable() ? `${t("s.encOnDesc")} ${t("e.upgradeDesc")}` : t("s.encOnDesc"),
|
|
render: (st) => {
|
|
if (p.encryptionUpgradable()) st.addButton((b) => b.setButtonText(t("e.upgrade")).setCta().onClick(() => void p.upgradeEncryption()));
|
|
return st.addButton((b) => b.setButtonText(t("s.encRemovePlain")).onClick(() => p.removeUnencryptedFiles())).addButton(
|
|
(b) => destructive(b.setButtonText(t("s.encLock"))).onClick(async () => {
|
|
await p.lockEncryption();
|
|
this.refresh();
|
|
})
|
|
);
|
|
}
|
|
}
|
|
] : [
|
|
{
|
|
name: t("s.encOff"),
|
|
desc: t("s.encOffDesc"),
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("s.encTurnOn")).onClick(() => p.openEncryption(() => this.refresh())))
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hShared"),
|
|
collapsed: true,
|
|
items: [
|
|
{ name: "", desc: t("s.sharedIntro"), render: () => void 0, searchable: false },
|
|
...(s.sharedFolders ?? []).map(
|
|
(f) => ({
|
|
name: `${f.folder} \u2194 ${f.owner}/${f.repo}`,
|
|
desc: t("s.sharedRowDesc", { host: HOSTS[f.provider]?.label ?? f.provider, branch: f.branch }) + (f.githubFormat ? ` \xB7 ${t("sh.ghFormat")}` : ""),
|
|
render: (st) => st.addToggle(
|
|
(c) => c.setValue(f.enabled).onChange(async (v) => {
|
|
f.enabled = v;
|
|
await save();
|
|
})
|
|
).addExtraButton(
|
|
(b) => b.setIcon("trash").setTooltip(t("s.sharedRemove")).onClick(async () => {
|
|
s.sharedFolders = s.sharedFolders.filter((x) => x.id !== f.id);
|
|
p.setSharedToken(f, "");
|
|
await save();
|
|
this.refresh();
|
|
})
|
|
)
|
|
})
|
|
),
|
|
{
|
|
name: t("s.sharedAdd"),
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("s.sharedAddBtn")).onClick(() => new SharedFolderModal(this.app, p, () => this.refresh()).open()))
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hMirror"),
|
|
collapsed: true,
|
|
items: this.mirrorItems()
|
|
},
|
|
{
|
|
heading: t("s.hDevice"),
|
|
collapsed: true,
|
|
items: [
|
|
{ name: "", desc: t("s.deviceIntro"), render: () => void 0, searchable: false },
|
|
{
|
|
name: t("s.battery"),
|
|
desc: t("s.batteryDesc"),
|
|
render: (st) => st.addToggle((c) => c.setValue(p.batterySaver()).onChange((v) => p.setBatterySaver(v)))
|
|
},
|
|
{
|
|
name: t("s.pause"),
|
|
desc: !p.isPaused() ? t("s.pauseDesc") : Number.isFinite(p.pausedUntil()) ? t("s.pauseDescUntil", { time: new Date(p.pausedUntil()).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" }) }) : t("s.pauseDescOn"),
|
|
render: (st) => p.isPaused() ? st.addButton(
|
|
(b) => b.setButtonText(t("h.resume")).setCta().onClick(() => {
|
|
p.resumeSync();
|
|
this.refresh();
|
|
})
|
|
) : st.addButton(
|
|
(b) => b.setButtonText(t("h.pause")).onClick(() => {
|
|
p.pauseSync(60);
|
|
this.refresh();
|
|
})
|
|
).addButton(
|
|
(b) => b.setButtonText(t("s.pauseUntilResumed")).onClick(() => {
|
|
p.pauseSync(null);
|
|
this.refresh();
|
|
})
|
|
)
|
|
},
|
|
{
|
|
name: t("s.include"),
|
|
desc: t("s.includeDesc"),
|
|
render: (st) => st.addTextArea((c) => {
|
|
c.inputEl.rows = 3;
|
|
c.setPlaceholder(t("s.includePlaceholder")).setValue(ds.include.join("\n"));
|
|
onCommit(c, async (v) => p.setDeviceScope({ ...p.deviceScope(), include: lines2(v) }));
|
|
})
|
|
},
|
|
{
|
|
name: t("s.deviceExclude"),
|
|
desc: t("s.deviceExcludeDesc"),
|
|
render: (st) => st.addTextArea((c) => {
|
|
c.inputEl.rows = 3;
|
|
c.setValue(ds.exclude.join("\n"));
|
|
onCommit(c, async (v) => p.setDeviceScope({ ...p.deviceScope(), exclude: lines2(v) }));
|
|
})
|
|
},
|
|
{
|
|
name: t("s.maxDownload"),
|
|
desc: t("s.maxDownloadDesc"),
|
|
render: (st) => st.addText((c) => {
|
|
c.inputEl.type = "number";
|
|
onCommit(c.setValue(String(ds.maxDownloadMB)), async (v) => {
|
|
const n = Number(v);
|
|
const value = v.trim() === "" || !Number.isFinite(n) ? import_obsidian11.Platform.isMobile ? 25 : 0 : Math.max(0, n);
|
|
p.setDeviceScope({ ...p.deviceScope(), maxDownloadMB: value });
|
|
c.setValue(String(value));
|
|
});
|
|
})
|
|
},
|
|
{
|
|
name: t("s.onDemand"),
|
|
desc: t("s.onDemandDesc", { n: p.remoteOnlyFiles().length, pinned: p.pinned().length }),
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("s.onDemandBrowse")).onClick(() => p.openRemoteOnly())).addButton(
|
|
(b) => b.setButtonText(t("s.onDemandForget")).onClick(() => {
|
|
p.clearPinned();
|
|
new import_obsidian11.Notice(t("s.onDemandForgotten"));
|
|
this.refresh();
|
|
})
|
|
)
|
|
},
|
|
{
|
|
name: t("s.freeSpace"),
|
|
desc: t("s.freeSpaceDesc"),
|
|
render: (st) => st.addButton((b) => b.setButtonText(t("s.freeSpaceBtn")).onClick(() => p.freeUpSpace()))
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hConflicts"),
|
|
collapsed: true,
|
|
items: [
|
|
{
|
|
name: t("s.strategy"),
|
|
desc: t("s.strategyDesc"),
|
|
render: (st) => st.addDropdown(
|
|
(d) => d.addOptions({
|
|
auto: t("s.strategyAuto"),
|
|
markers: t("s.strategyMarkers"),
|
|
"keep-both": t("s.strategyBoth"),
|
|
ask: t("s.strategyAsk"),
|
|
local: t("s.strategyLocal"),
|
|
remote: t("s.strategyRemote", { host: host.label })
|
|
}).setValue(s.conflictStrategy).onChange(async (v) => {
|
|
s.conflictStrategy = v;
|
|
await save();
|
|
})
|
|
)
|
|
},
|
|
{ name: t("s.review"), desc: t("s.reviewDesc"), render: toggle("reviewBeforeManualSync") },
|
|
{ name: t("s.eol"), desc: t("s.eolDesc"), render: toggle("ignoreLineEndingChanges") },
|
|
{ name: t("s.guard"), desc: t("s.guardDesc"), render: toggle("deleteGuardEnabled") },
|
|
{
|
|
name: t("s.guardThreshold"),
|
|
desc: t("s.guardThresholdDesc"),
|
|
render: (st) => st.addText((c) => {
|
|
c.inputEl.type = "number";
|
|
c.inputEl.setAttr("aria-label", t("s.guardMinLabel"));
|
|
onCommit(c.setValue(String(s.deleteGuardMin)), async (v) => {
|
|
s.deleteGuardMin = Math.max(0, Math.round(Number(v)) || 0);
|
|
c.setValue(String(s.deleteGuardMin));
|
|
await save();
|
|
});
|
|
}).addText((c) => {
|
|
c.inputEl.type = "number";
|
|
c.inputEl.setAttr("aria-label", t("s.guardPercentLabel"));
|
|
onCommit(c.setValue(String(s.deleteGuardPercent)), async (v) => {
|
|
s.deleteGuardPercent = Math.max(0, Math.min(100, Number(v) || 0));
|
|
c.setValue(String(s.deleteGuardPercent));
|
|
await save();
|
|
});
|
|
})
|
|
}
|
|
]
|
|
},
|
|
{
|
|
heading: t("s.hBackup"),
|
|
collapsed: true,
|
|
items: [{ name: t("s.snapshot"), desc: t("s.snapshotDesc"), render: toggle("dailySnapshot") }]
|
|
},
|
|
{
|
|
heading: t("s.hAdvanced"),
|
|
collapsed: true,
|
|
items: [
|
|
{
|
|
name: t("s.commitMsg"),
|
|
desc: t("s.commitMsgDesc"),
|
|
render: (st) => {
|
|
const preview = st.descEl.createDiv({ cls: "vsg-muted" });
|
|
const show = (v) => preview.setText(t("s.commitPreview", { msg: previewCommitMessage(v, p.deviceName()) }));
|
|
show(s.commitTemplate);
|
|
st.addText((c) => {
|
|
c.inputEl.addEventListener("input", () => show(c.getValue()));
|
|
onCommit(c.setValue(s.commitTemplate), async (v) => {
|
|
s.commitTemplate = v.trim() || "{{device}}: {{summary}}";
|
|
c.setValue(s.commitTemplate);
|
|
show(s.commitTemplate);
|
|
await save();
|
|
});
|
|
});
|
|
}
|
|
},
|
|
{
|
|
name: t("s.commitMsgAuto"),
|
|
desc: t("s.commitMsgAutoDesc"),
|
|
render: (st) => {
|
|
const preview = st.descEl.createDiv({ cls: "vsg-muted" });
|
|
const show = (v) => preview.setText(t("s.commitPreview", { msg: previewCommitMessage(v.trim() || s.commitTemplate, p.deviceName(), "interval") }));
|
|
show(s.commitTemplateAuto ?? "");
|
|
st.addText((c) => {
|
|
c.setPlaceholder(s.commitTemplate);
|
|
c.inputEl.addEventListener("input", () => show(c.getValue()));
|
|
onCommit(c.setValue(s.commitTemplateAuto ?? ""), async (v) => {
|
|
s.commitTemplateAuto = v.trim();
|
|
c.setValue(s.commitTemplateAuto);
|
|
show(s.commitTemplateAuto);
|
|
await save();
|
|
});
|
|
});
|
|
}
|
|
},
|
|
{
|
|
name: t("s.author"),
|
|
desc: t("s.authorDesc"),
|
|
render: (st) => st.addText((c) => {
|
|
c.setPlaceholder(t("s.authorName"));
|
|
c.inputEl.setAttr("aria-label", t("s.authorName"));
|
|
onCommit(c.setValue(s.authorName ?? ""), async (v) => {
|
|
s.authorName = v.trim();
|
|
await save();
|
|
});
|
|
}).addText((c) => {
|
|
c.inputEl.type = "email";
|
|
c.setPlaceholder(t("s.authorEmail"));
|
|
c.inputEl.setAttr("aria-label", t("s.authorEmail"));
|
|
onCommit(c.setValue(s.authorEmail ?? ""), async (v) => {
|
|
s.authorEmail = v.trim();
|
|
await save();
|
|
});
|
|
})
|
|
},
|
|
{
|
|
name: t("s.fullScan"),
|
|
desc: t("s.fullScanDesc"),
|
|
render: numberField(() => s.fullScanMinutes, (n) => s.fullScanMinutes = n, { min: 1, max: 1440, fallback: 30, integer: true })
|
|
},
|
|
{
|
|
name: t("s.notices"),
|
|
render: (st) => st.addDropdown(
|
|
(d) => d.addOptions({ auto: t("s.noticesAuto"), all: t("s.noticesAll"), changes: t("s.noticesChanges"), errors: t("s.noticesErrors"), silent: t("s.noticesNone") }).setValue(s.noticeLevel).onChange(async (v) => {
|
|
s.noticeLevel = v;
|
|
await save();
|
|
})
|
|
)
|
|
},
|
|
...import_obsidian11.Platform.isMobile ? [] : [
|
|
{ name: t("s.statusCountdown"), desc: t("s.statusCountdownDesc"), render: toggle("statusCountdown") },
|
|
{ name: t("s.statusBranch"), desc: t("s.statusBranchDesc"), render: toggle("statusBranch") }
|
|
],
|
|
{
|
|
name: t("s.resetState"),
|
|
desc: t("s.resetStateDesc"),
|
|
render: (st) => st.addButton(
|
|
(b) => b.setButtonText(t("s.resetBtn")).onClick(async () => {
|
|
if (p.isSyncing()) return void new import_obsidian11.Notice(t("notice.busy"));
|
|
if (!await confirmPlan(this.app, t("s.resetState"), t("s.resetConfirm"), [], t("s.resetBtn"), true)) return;
|
|
if (await p.resetState()) new import_obsidian11.Notice(t("s.resetDone"));
|
|
})
|
|
)
|
|
}
|
|
]
|
|
}
|
|
];
|
|
}
|
|
display() {
|
|
const { containerEl } = this;
|
|
containerEl.empty();
|
|
for (const g of this.groups()) {
|
|
let parent = containerEl;
|
|
if (g.heading && g.collapsed) {
|
|
const det = containerEl.createEl("details", { cls: "vsg-group" });
|
|
det.open = this.openGroups.has(g.heading);
|
|
det.createEl("summary", { cls: "vsg-group-summary", text: g.heading });
|
|
const heading = g.heading;
|
|
det.addEventListener("toggle", () => det.open ? this.openGroups.add(heading) : this.openGroups.delete(heading));
|
|
parent = det;
|
|
} else if (g.heading) new import_obsidian11.Setting(containerEl).setName(g.heading).setHeading();
|
|
for (const item of g.items) {
|
|
const desc = typeof item.desc === "function" ? item.desc() : item.desc;
|
|
if (!item.name) {
|
|
parent.createEl("p", { cls: "setting-item-description", text: typeof desc === "string" ? desc : desc?.textContent ?? "" });
|
|
continue;
|
|
}
|
|
const st = new import_obsidian11.Setting(parent).setName(item.name);
|
|
if (desc) st.setDesc(desc);
|
|
if (item.cls) st.setClass(item.cls);
|
|
item.render(st);
|
|
wrapButtons(st);
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* Obsidian 1.13+: the tab is rendered from these definitions (and they feed settings search).
|
|
* Folded sections become sub-pages, so the first screen only shows the basics.
|
|
*/
|
|
getSettingDefinitions() {
|
|
const toGroup = (g) => ({
|
|
type: "group",
|
|
heading: g.heading,
|
|
items: g.items.map((item) => ({
|
|
name: item.name,
|
|
desc: typeof item.desc === "function" ? item.desc() : item.desc,
|
|
searchable: item.searchable ?? Boolean(item.name),
|
|
render: (st) => {
|
|
if (item.cls) st.setClass(item.cls);
|
|
item.render(st);
|
|
wrapButtons(st);
|
|
}
|
|
}))
|
|
});
|
|
return this.groups().map(
|
|
(g) => g.collapsed && g.heading ? { type: "page", name: g.heading, items: [toGroup({ ...g, heading: void 0 })] } : toGroup(g)
|
|
);
|
|
}
|
|
};
|
|
var PluginSyncModal = class extends import_obsidian11.Modal {
|
|
constructor(app, plugin, onDone) {
|
|
super(app);
|
|
this.plugin = plugin;
|
|
this.onDone = onDone;
|
|
}
|
|
async onOpen() {
|
|
const { contentEl } = this;
|
|
this.titleEl.setText(t("s.cfgPerPlugin"));
|
|
contentEl.createEl("p", { cls: "vsg-muted", text: t("s.cfgPerPluginIntro") });
|
|
const adapter = this.app.vault.adapter;
|
|
const dir = `${this.app.vault.configDir}/plugins`;
|
|
let folders = [];
|
|
try {
|
|
folders = (await adapter.list(dir)).folders.map((f) => f.split("/").pop() ?? f).sort();
|
|
} catch {
|
|
}
|
|
if (!folders.length) contentEl.createEl("p", { text: t("s.cfgNoPlugins") });
|
|
const s = this.plugin.settings;
|
|
for (const id of folders) {
|
|
let name = id;
|
|
try {
|
|
name = JSON.parse(await adapter.read(`${dir}/${id}/manifest.json`)).name || id;
|
|
} catch {
|
|
}
|
|
new import_obsidian11.Setting(contentEl).setName(name).setDesc(id === this.plugin.manifest.id ? `${id} \xB7 ${t("s.cfgThisPlugin")}` : id).addDropdown(
|
|
(d) => d.addOptions({ default: t("s.cfgFollow"), all: t("s.cfgAll"), code: t("s.cfgCodeOnly"), settings: t("s.cfgSettingsOnly"), none: t("s.cfgNone") }).setValue(s.configSync.plugins[id] ?? "default").onChange(async (v) => {
|
|
const plugins = { ...s.configSync.plugins };
|
|
if (v === "default") delete plugins[id];
|
|
else plugins[id] = v;
|
|
s.configSync = { ...s.configSync, plugins };
|
|
await this.plugin.saveSettings();
|
|
})
|
|
);
|
|
}
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
this.onDone();
|
|
}
|
|
};
|
|
var BranchModal = class extends import_obsidian11.Modal {
|
|
constructor(app, plugin, onPick) {
|
|
super(app);
|
|
this.plugin = plugin;
|
|
this.onPick = onPick;
|
|
}
|
|
async onOpen() {
|
|
const { contentEl } = this;
|
|
const p = this.plugin;
|
|
this.titleEl.setText(t("s.branchPick"));
|
|
contentEl.createEl("p", { cls: "vsg-muted", text: t("s.branchIntro") });
|
|
const status = contentEl.createDiv({ cls: "vsg-muted", text: t("w.loadingRepos") });
|
|
let newName = "";
|
|
new import_obsidian11.Setting(contentEl).setName(t("s.branchNew")).addText((c) => c.onChange((v) => newName = v.trim())).addButton(
|
|
(b) => b.setButtonText(t("w.create")).onClick(async () => {
|
|
if (!/^[\w./-]+$/.test(newName) || newName.includes("..")) return void new import_obsidian11.Notice(t("s.branchInvalid"));
|
|
try {
|
|
const head = await p.gh.getRef(p.settings.branch);
|
|
if (!head) throw new Error(t("s.branchNoHead", { branch: p.settings.branch }));
|
|
await p.gh.createRef(`refs/heads/${newName}`, head);
|
|
await this.onPick(newName);
|
|
this.close();
|
|
} catch (e) {
|
|
new import_obsidian11.Notice(t("w.createFailed", { error: localizeError(e) }), 8e3);
|
|
}
|
|
})
|
|
);
|
|
try {
|
|
const branches = await p.gh.listBranches?.() ?? [];
|
|
status.remove();
|
|
if (!branches.length) contentEl.createEl("p", { text: t("s.branchNone") });
|
|
for (const br of branches.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
new import_obsidian11.Setting(contentEl).setName(br.name).setDesc(br.name === p.settings.branch ? t("s.branchCurrent") : br.sha.slice(0, 7)).addButton(
|
|
(b) => b.setButtonText(t("s.branchUse")).setDisabled(br.name === p.settings.branch).onClick(async () => {
|
|
await this.onPick(br.name);
|
|
this.close();
|
|
})
|
|
);
|
|
}
|
|
} catch (e) {
|
|
status.setText(t("w.listFailed", { error: localizeError(e) }));
|
|
}
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
function wrapButtons(st) {
|
|
if (st.controlEl.querySelectorAll("button").length > 1) st.setClass("vsg-wrap-controls");
|
|
}
|
|
|
|
// src/sync.ts
|
|
var import_obsidian12 = require("obsidian");
|
|
|
|
// src/crypto.ts
|
|
var MARKER_PATH = ".vault-sync/encryption.json";
|
|
function markerPathFor(repoSubdir) {
|
|
const sub = repoSubdir.replace(/^\/+|\/+$/g, "");
|
|
return sub ? `${sub}/${MARKER_PATH}` : MARKER_PATH;
|
|
}
|
|
function pickMarker(entries2, repoSubdir, keyHere) {
|
|
const own = markerPathFor(repoSubdir);
|
|
const sub = repoSubdir.replace(/^\/+|\/+$/g, "");
|
|
let mine = null;
|
|
let root = null;
|
|
let encryptedNames = false;
|
|
for (const e of entries2) {
|
|
if (e.path === own) mine = e.sha;
|
|
else if (sub && e.path === MARKER_PATH) root = e.sha;
|
|
else if (sub && e.path.startsWith(`${sub}/e/`)) encryptedNames = true;
|
|
}
|
|
if (mine || !sub) return { sha: mine, legacy: false };
|
|
if (root && (keyHere || encryptedNames)) return { sha: root, legacy: true };
|
|
return { sha: null, legacy: false };
|
|
}
|
|
var MAGIC = new Uint8Array([86, 83, 71, 49]);
|
|
var MAGIC2 = new Uint8Array([86, 83, 71, 50]);
|
|
var CONTENT_FORMAT = 2;
|
|
var ITERATIONS = 6e5;
|
|
var CHECK_TEXT = "vault-sync-check";
|
|
var SEG = 180;
|
|
var te = new TextEncoder();
|
|
var td = new TextDecoder();
|
|
function keyMatches(local, remote) {
|
|
if (!local) return false;
|
|
if (!remote) return true;
|
|
return local.salt === remote.salt && local.check === remote.check;
|
|
}
|
|
function b64(bytes) {
|
|
let s = "";
|
|
for (const b of bytes) s += String.fromCharCode(b);
|
|
return btoa(s);
|
|
}
|
|
function unb64(s) {
|
|
const bin = atob(s);
|
|
const out = new Uint8Array(bin.length);
|
|
for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i);
|
|
return out;
|
|
}
|
|
var b64url = (b) => b64(b).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
var unb64url = (s) => unb64(s.replace(/-/g, "+").replace(/_/g, "/") + "===".slice((s.length + 3) % 4));
|
|
var ab = (u) => u.buffer.slice(u.byteOffset, u.byteOffset + u.byteLength);
|
|
async function deriveMaster(passphrase, salt, iterations = ITERATIONS) {
|
|
const base = await crypto.subtle.importKey("raw", te.encode(passphrase.normalize("NFC")), "PBKDF2", false, ["deriveBits"]);
|
|
const bits = await crypto.subtle.deriveBits({ name: "PBKDF2", hash: "SHA-256", salt: ab(salt), iterations }, base, 256);
|
|
return new Uint8Array(bits);
|
|
}
|
|
var EncryptionLayer = class _EncryptionLayer {
|
|
constructor(id, format, kContent, kNonce, kName, kNameNonce) {
|
|
this.transformsContent = true;
|
|
this.transformsPaths = true;
|
|
this.format = format;
|
|
this.id = format === 1 ? id : `${id}:v${format}`;
|
|
this.kContent = kContent;
|
|
this.kNonce = kNonce;
|
|
this.kName = kName;
|
|
this.kNameNonce = kNameNonce;
|
|
}
|
|
static async fromMaster(master, format = 1) {
|
|
const base = await crypto.subtle.importKey("raw", ab(master), "HKDF", false, ["deriveBits"]);
|
|
const bits = (info) => crypto.subtle.deriveBits({ name: "HKDF", hash: "SHA-256", salt: new Uint8Array(0), info: te.encode(info) }, base, 256);
|
|
const aes = async (info) => crypto.subtle.importKey("raw", await bits(info), "AES-GCM", false, ["encrypt", "decrypt"]);
|
|
const hmac = async (info) => crypto.subtle.importKey("raw", await bits(info), { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
|
|
const fp = new Uint8Array(await crypto.subtle.digest("SHA-256", await bits("vsg fingerprint"))).slice(0, 4);
|
|
const id = "enc:" + Array.from(fp, (x) => x.toString(16).padStart(2, "0")).join("");
|
|
return new _EncryptionLayer(id, format, await aes("vsg content"), await hmac("vsg content nonce"), await aes("vsg name"), await hmac("vsg name nonce"));
|
|
}
|
|
async nonce(key2, data) {
|
|
return new Uint8Array(await crypto.subtle.sign("HMAC", key2, data)).slice(0, 12);
|
|
}
|
|
/** Format-2 additional data: the vault path the content belongs to. */
|
|
static aad(path) {
|
|
return ab(te.encode(`vsg2\0${path}`));
|
|
}
|
|
async encode(path, data) {
|
|
const bound = this.format === 2;
|
|
const nonceInput = bound ? ab(new Uint8Array([...te.encode(path), 0, ...new Uint8Array(data)])) : data;
|
|
const iv = await this.nonce(this.kNonce, nonceInput);
|
|
const params = bound ? { name: "AES-GCM", iv: ab(iv), additionalData: _EncryptionLayer.aad(path) } : { name: "AES-GCM", iv: ab(iv) };
|
|
const ct = new Uint8Array(await crypto.subtle.encrypt(params, this.kContent, data));
|
|
const out = new Uint8Array(4 + 12 + ct.length);
|
|
out.set(bound ? MAGIC2 : MAGIC, 0);
|
|
out.set(iv, 4);
|
|
out.set(ct, 16);
|
|
return ab(out);
|
|
}
|
|
async decode(path, blob) {
|
|
const u = new Uint8Array(blob);
|
|
const v1 = u.length >= 32 && MAGIC.every((b, i) => u[i] === b);
|
|
const v2 = u.length >= 32 && MAGIC2.every((b, i) => u[i] === b);
|
|
if (!v1 && !v2) throw new SyncError("notEncrypted", { path });
|
|
try {
|
|
const params = v2 ? { name: "AES-GCM", iv: ab(u.slice(4, 16)), additionalData: _EncryptionLayer.aad(path) } : { name: "AES-GCM", iv: ab(u.slice(4, 16)) };
|
|
return await crypto.subtle.decrypt(params, this.kContent, ab(u.slice(16)));
|
|
} catch {
|
|
throw new SyncError("decryptFailed", { path });
|
|
}
|
|
}
|
|
async encodePath(path) {
|
|
const pt2 = te.encode(path);
|
|
const iv = await this.nonce(this.kNameNonce, pt2);
|
|
const ct = new Uint8Array(await crypto.subtle.encrypt({ name: "AES-GCM", iv: ab(iv) }, this.kName, pt2));
|
|
const all = new Uint8Array(12 + ct.length);
|
|
all.set(iv, 0);
|
|
all.set(ct, 12);
|
|
const s = b64url(all);
|
|
const segs = [];
|
|
for (let i = 0; i < s.length; i += SEG) segs.push(s.slice(i, i + SEG));
|
|
return "e/" + segs.join("/");
|
|
}
|
|
async decodePath(raw) {
|
|
if (!raw.startsWith("e/")) return null;
|
|
try {
|
|
const all = unb64url(raw.slice(2).split("/").join(""));
|
|
const pt2 = await crypto.subtle.decrypt({ name: "AES-GCM", iv: ab(all.slice(0, 12)) }, this.kName, ab(all.slice(12)));
|
|
return td.decode(pt2);
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
async checkValue() {
|
|
return b64(new Uint8Array(await this.encode("check", ab(te.encode(CHECK_TEXT)))));
|
|
}
|
|
async verify(meta) {
|
|
try {
|
|
return td.decode(await this.decode("check", ab(unb64(meta.check)))) === CHECK_TEXT;
|
|
} catch {
|
|
return false;
|
|
}
|
|
}
|
|
};
|
|
async function createEncryption(passphrase) {
|
|
const salt = crypto.getRandomValues(new Uint8Array(16));
|
|
const master = await deriveMaster(passphrase, salt);
|
|
const layer = await EncryptionLayer.fromMaster(master, CONTENT_FORMAT);
|
|
const meta = { v: CONTENT_FORMAT, kdf: "PBKDF2-SHA256", iterations: ITERATIONS, salt: b64(salt), check: await layer.checkValue() };
|
|
return { meta, master, layer };
|
|
}
|
|
async function unlockEncryption(passphrase, meta) {
|
|
if (meta.v !== 1 && meta.v !== 2 || meta.kdf !== "PBKDF2-SHA256") throw new SyncError("newerFormat");
|
|
const master = await deriveMaster(passphrase, unb64(meta.salt), meta.iterations);
|
|
const layer = await EncryptionLayer.fromMaster(master, meta.v);
|
|
if (!await layer.verify(meta)) throw new SyncError("wrongPass");
|
|
return { master, layer };
|
|
}
|
|
function passphraseStrength(p) {
|
|
if (p.length < 12) return { ok: false, hint: t("e.passShort") };
|
|
const kinds = [/[a-z]/, /[A-Z]/, /[0-9]/, /[^A-Za-z0-9]/].filter((r) => r.test(p)).length;
|
|
if (p.length < 16 && kinds < 3) return { ok: true, hint: t("e.passOk") };
|
|
return { ok: true, hint: t("e.passStrong") };
|
|
}
|
|
|
|
// src/glob.ts
|
|
function toRegexBody(p) {
|
|
let out = "";
|
|
for (let i = 0; i < p.length; i++) {
|
|
const c = p[i];
|
|
if (c === "*") {
|
|
if (p[i + 1] === "*") {
|
|
if (p[i + 2] === "/") {
|
|
out += "(?:.*/)?";
|
|
i += 2;
|
|
} else {
|
|
out += ".*";
|
|
i += 1;
|
|
}
|
|
} else {
|
|
out += "[^/]*";
|
|
}
|
|
} else if (c === "?") {
|
|
out += "[^/]";
|
|
} else if (c === "\\" && i + 1 < p.length) {
|
|
const next = p[++i];
|
|
out += /[\\^$+.()|{}[\]*?]/.test(next) ? "\\" + next : next;
|
|
} else if ("\\^$+.()|{}[]".includes(c)) {
|
|
out += "\\" + c;
|
|
} else {
|
|
out += c;
|
|
}
|
|
}
|
|
return out;
|
|
}
|
|
function compileGlobs(lines2) {
|
|
const rules = [];
|
|
for (const raw of lines2) {
|
|
let p = raw.trim();
|
|
if (!p || p.startsWith("#")) continue;
|
|
const negate = p.startsWith("!");
|
|
if (negate) p = p.slice(1);
|
|
else if (p.startsWith("\\!") || p.startsWith("\\#")) p = p.slice(1);
|
|
if (p.endsWith("/")) p = p.slice(0, -1);
|
|
const anchored = p.startsWith("/") || p.includes("/");
|
|
if (p.startsWith("/")) p = p.slice(1);
|
|
if (!p) continue;
|
|
const body = toRegexBody(p);
|
|
rules.push({ re: new RegExp(anchored ? `^${body}(?:/.*)?$` : `(?:^|.*/)${body}(?:/.*)?$`), negate });
|
|
}
|
|
if (!rules.some((r) => r.negate)) return (path) => rules.some((r) => r.re.test(path));
|
|
return (path) => {
|
|
let hit = false;
|
|
for (const r of rules) if (r.re.test(path)) hit = !r.negate;
|
|
return hit;
|
|
};
|
|
}
|
|
function scopeGitignore(dir, lines2) {
|
|
const base = dir.replace(/^\/+|\/+$/g, "");
|
|
if (!base) return lines2;
|
|
const out = [];
|
|
for (const raw of lines2) {
|
|
const line = raw.trim();
|
|
if (!line || line.startsWith("#")) continue;
|
|
const neg = line.startsWith("!") ? "!" : "";
|
|
let p = neg ? line.slice(1) : line;
|
|
if (p.startsWith("\\!") || p.startsWith("\\#")) p = p.slice(1);
|
|
const anchored = p.replace(/\/+$/, "").includes("/");
|
|
out.push(anchored ? `${neg}/${base}/${p.replace(/^\/+/, "")}` : `${neg}/${base}/**/${p}`);
|
|
}
|
|
return out;
|
|
}
|
|
|
|
// src/plan.ts
|
|
function decide(base, local, remote, mode, inScope = () => true, opts = {}) {
|
|
const decisions = [];
|
|
const settled = {};
|
|
const paths = /* @__PURE__ */ new Set([...Object.keys(base).filter(inScope), ...local.keys(), ...remote.keys()]);
|
|
const keep = (path, b) => {
|
|
if (b) settled[path] = b;
|
|
};
|
|
for (const path of [...paths].sort()) {
|
|
const b = base[path] ?? null;
|
|
const l = local.get(path) ?? null;
|
|
const r = remote.get(path) ?? null;
|
|
if (l === r) {
|
|
if (l) settled[path] = l;
|
|
continue;
|
|
}
|
|
if (l === b) {
|
|
if (mode === "push") keep(path, b);
|
|
else if (r) decisions.push({ kind: "download", path, sha: r });
|
|
else decisions.push({ kind: "delete-local", path });
|
|
continue;
|
|
}
|
|
if (r === b) {
|
|
if (mode === "pull") keep(path, b);
|
|
else if (l) decisions.push({ kind: "upload", path, sha: l });
|
|
else decisions.push({ kind: "delete-remote", path });
|
|
continue;
|
|
}
|
|
if (mode === "push") {
|
|
if (l) decisions.push(r && opts.pushKeepsRemote ? { kind: "upload", path, sha: l, keepRemote: r } : { kind: "upload", path, sha: l });
|
|
else keep(path, b);
|
|
} else if (!l && r) {
|
|
decisions.push({ kind: "download", path, sha: r });
|
|
} else if (l && !r) {
|
|
if (mode === "pull") keep(path, b);
|
|
else decisions.push({ kind: "upload", path, sha: l });
|
|
} else if (l && r) {
|
|
decisions.push({ kind: "conflict", path, base: b, local: l, remote: r });
|
|
}
|
|
}
|
|
return { decisions, settled };
|
|
}
|
|
function detectRenames(decisions, base, local, remote) {
|
|
const used = /* @__PURE__ */ new Set();
|
|
const out = /* @__PURE__ */ new Map();
|
|
const remoteAdds = /* @__PURE__ */ new Map();
|
|
const localAdds = /* @__PURE__ */ new Map();
|
|
for (const d of decisions) {
|
|
if (d.kind === "download" && !base[d.path] && !local.has(d.path)) push(remoteAdds, d.sha, d.path);
|
|
if (d.kind === "upload" && !base[d.path] && !remote.has(d.path)) push(localAdds, d.sha, d.path);
|
|
}
|
|
const take = (m, sha) => {
|
|
const list2 = m.get(sha);
|
|
while (list2?.length) {
|
|
const p = list2.shift();
|
|
if (!used.has(p)) return p;
|
|
}
|
|
return void 0;
|
|
};
|
|
for (const d of decisions) {
|
|
if (used.has(d.path)) continue;
|
|
const b = base[d.path];
|
|
if (!b) continue;
|
|
const l = local.get(d.path);
|
|
const r = remote.get(d.path);
|
|
if (!r && (d.kind === "delete-local" || d.kind === "upload")) {
|
|
const to = take(remoteAdds, b);
|
|
if (to) {
|
|
used.add(d.path).add(to);
|
|
out.set(to, { kind: "move-local", path: to, from: d.path, sha: b, ...l && l !== b ? { upload: l } : {} });
|
|
continue;
|
|
}
|
|
}
|
|
if (!l && (d.kind === "delete-remote" || d.kind === "download")) {
|
|
const to = take(localAdds, b);
|
|
if (to) {
|
|
used.add(d.path).add(to);
|
|
if (d.kind === "delete-remote") {
|
|
out.set(d.path, { kind: "delete-remote", path: d.path, renamedTo: to });
|
|
out.set(to, { kind: "upload", path: to, sha: b, renamedFrom: d.path });
|
|
} else {
|
|
out.set(to, { kind: "adopt-remote-edit", path: to, from: d.path, sha: r });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const result = [];
|
|
for (const d of decisions) {
|
|
if (!used.has(d.path)) result.push(d);
|
|
else if (out.has(d.path)) result.push(out.get(d.path));
|
|
}
|
|
return result;
|
|
}
|
|
function push(m, k, v) {
|
|
const list2 = m.get(k);
|
|
if (list2) list2.push(v);
|
|
else m.set(k, [v]);
|
|
}
|
|
var ext = (p) => p.includes(".") ? p.slice(p.lastIndexOf(".")).toLowerCase() : "";
|
|
var MIN_SHARED_LINES = 3;
|
|
var NOISE_LINE = /^[\s\-*_=`~#>|.:+[\]]*$/;
|
|
function contentLines(text) {
|
|
const out = /* @__PURE__ */ new Set();
|
|
for (const raw of text.split("\n")) {
|
|
const l = raw.replace(/\s+$/, "");
|
|
if (!NOISE_LINE.test(l)) out.add(l);
|
|
}
|
|
return out;
|
|
}
|
|
function lineSimilarity(a, b) {
|
|
const A = contentLines(a);
|
|
const B = contentLines(b);
|
|
let shared = 0;
|
|
for (const l of A) if (B.has(l)) shared++;
|
|
if (shared < MIN_SHARED_LINES) return 0;
|
|
return shared / (A.size + B.size - shared);
|
|
}
|
|
function templateLines(texts) {
|
|
const counts = /* @__PURE__ */ new Map();
|
|
for (const t2 of texts) for (const l of contentLines(t2)) counts.set(l, (counts.get(l) ?? 0) + 1);
|
|
const need = texts.length < 2 ? 1 : Math.max(2, Math.ceil(texts.length / 3));
|
|
const out = /* @__PURE__ */ new Set();
|
|
for (const [l, n] of counts) if (n >= need) out.add(l);
|
|
return out;
|
|
}
|
|
function coreSimilarity(a, b, template) {
|
|
const A = [...contentLines(a)].filter((l) => !template.has(l));
|
|
const B = new Set([...contentLines(b)].filter((l) => !template.has(l)));
|
|
let shared = 0;
|
|
for (const l of A) if (B.has(l)) shared++;
|
|
const union = A.length + B.size - shared;
|
|
return { shared, score: union ? shared / union : 0 };
|
|
}
|
|
var dirOf = (p) => p.includes("/") ? p.slice(0, p.lastIndexOf("/")) : "";
|
|
var stemOf = (p) => {
|
|
const name = p.slice(p.lastIndexOf("/") + 1);
|
|
return (name.includes(".") ? name.slice(0, name.lastIndexOf(".")) : name).toLowerCase();
|
|
};
|
|
async function detectSimilarRenames(decisions, base, local, remote, io) {
|
|
const threshold = io.threshold ?? 0.4;
|
|
const strict = Math.max(threshold, io.strictThreshold ?? 0.8);
|
|
const similarity = io.similarity ?? lineSimilarity;
|
|
const max = io.maxCandidates ?? 30;
|
|
const remoteOld = decisions.filter((d) => (d.kind === "delete-local" || d.kind === "upload") && base[d.path] && !remote.has(d.path) && !("renamedFrom" in d && d.renamedFrom));
|
|
const remoteNew = decisions.filter((d) => d.kind === "download" && !base[d.path] && !local.has(d.path));
|
|
const localOld = decisions.filter((d) => (d.kind === "delete-remote" || d.kind === "download") && base[d.path] && !local.has(d.path) && !("renamedTo" in d && d.renamedTo));
|
|
const localNew = decisions.filter((d) => d.kind === "upload" && !base[d.path] && !remote.has(d.path) && !d.renamedFrom);
|
|
const replace = /* @__PURE__ */ new Map();
|
|
const candidates = new Set([...remoteOld, ...remoteNew, ...localOld, ...localNew].map((d) => d.path));
|
|
const nearby = /* @__PURE__ */ new Map();
|
|
const siblingTexts = (path) => {
|
|
const key2 = `${dirOf(path)}|${ext(path)}`;
|
|
let p = nearby.get(key2);
|
|
if (!p) nearby.set(key2, p = io.siblings ? io.siblings(path, candidates).catch(() => []) : Promise.resolve([]));
|
|
return p;
|
|
};
|
|
const templateFor2 = async (a, b) => {
|
|
const texts = [...await siblingTexts(a)];
|
|
if (dirOf(a) !== dirOf(b)) texts.push(...await siblingTexts(b));
|
|
return templateLines(texts);
|
|
};
|
|
const pair = async (olds, news, newSide) => {
|
|
if (!olds.length || !news.length || olds.length > max || news.length > max) return;
|
|
const used = /* @__PURE__ */ new Set();
|
|
for (const o of olds) {
|
|
if (!news.some((n) => !used.has(n.path) && ext(n.path) === ext(o.path))) continue;
|
|
const baseText = await io.text("base", o.path, base[o.path]);
|
|
if (baseText === null) continue;
|
|
let best = null;
|
|
for (const n of news) {
|
|
if (used.has(n.path) || ext(n.path) !== ext(o.path)) continue;
|
|
const sha = newSide === "remote" ? remote.get(n.path) : local.get(n.path);
|
|
const t2 = await io.text(newSide, n.path, sha);
|
|
if (t2 === null) continue;
|
|
const score = similarity(baseText, t2);
|
|
if (score < threshold) continue;
|
|
const template = await templateFor2(o.path, n.path);
|
|
let core = null;
|
|
if (template.size) {
|
|
const c = coreSimilarity(baseText, t2, template);
|
|
if (!c.shared) continue;
|
|
core = c.score;
|
|
}
|
|
const rank = score + (dirOf(n.path) === dirOf(o.path) ? 0.02 : 0) + (stemOf(n.path) === stemOf(o.path) ? 0.02 : 0);
|
|
if (!best || rank > best.rank) best = { d: n, score, core, rank };
|
|
}
|
|
if (!best) continue;
|
|
const from = o.path;
|
|
const otherEdited = newSide === "remote" ? local.get(from) !== base[from] : remote.get(from) !== base[from];
|
|
if (otherEdited && (best.score < strict || best.core !== null && best.core < strict)) continue;
|
|
used.add(best.d.path);
|
|
const to = best.d.path;
|
|
if (newSide === "remote") {
|
|
const lOld = local.get(from);
|
|
const rNew = remote.get(to);
|
|
if (lOld === base[from]) {
|
|
replace.set(to, { kind: "move-local", path: to, from, sha: rNew, replace: true });
|
|
} else {
|
|
replace.set(to, { kind: "rename-merge", path: to, from, side: "remote", base: base[from], local: lOld, remote: rNew });
|
|
}
|
|
} else {
|
|
const lNew = local.get(to);
|
|
const rOld = remote.get(from);
|
|
if (rOld === base[from]) {
|
|
replace.set(from, { kind: "delete-remote", path: from, renamedTo: to });
|
|
replace.set(to, { kind: "upload", path: to, sha: lNew, renamedFrom: from });
|
|
continue;
|
|
}
|
|
replace.set(to, { kind: "rename-merge", path: to, from, side: "local", base: base[from], local: lNew, remote: rOld });
|
|
}
|
|
replace.set(from, null);
|
|
}
|
|
};
|
|
await pair(remoteOld, remoteNew, "remote");
|
|
await pair(localOld, localNew, "local");
|
|
if (!replace.size) return decisions;
|
|
const out = [];
|
|
for (const d of decisions) {
|
|
if (!replace.has(d.path)) out.push(d);
|
|
else {
|
|
const r = replace.get(d.path);
|
|
if (r) out.push(r);
|
|
}
|
|
}
|
|
return out;
|
|
}
|
|
|
|
// src/smartmerge.ts
|
|
var isObj = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
function eq(a, b) {
|
|
if (a === b) return true;
|
|
if (typeof a !== typeof b || a === null || b === null || typeof a !== "object") return false;
|
|
if (Array.isArray(a) !== Array.isArray(b)) return false;
|
|
if (Array.isArray(a)) {
|
|
const bb = b;
|
|
return a.length === bb.length && a.every((x, i) => eq(x, bb[i]));
|
|
}
|
|
const ak = Object.keys(a);
|
|
const bk = Object.keys(b);
|
|
return ak.length === bk.length && ak.every((k) => eq(a[k], b[k]));
|
|
}
|
|
var hasIds = (arr) => arr.every((x) => isObj(x) && typeof x.id === "string");
|
|
function mergeValue(b, l, r, ctx) {
|
|
if (eq(l, r)) return l;
|
|
if (eq(b, l)) return r;
|
|
if (eq(b, r)) return l;
|
|
if (l === void 0) return r;
|
|
if (r === void 0) return l;
|
|
if (isObj(l) && isObj(r) && (b === void 0 || isObj(b))) return mergeObject(b ?? {}, l, r, ctx);
|
|
if (Array.isArray(l) && Array.isArray(r) && (b === void 0 || Array.isArray(b)) && hasIds(l) && hasIds(r) && (!b || hasIds(b))) {
|
|
return mergeById(b ?? [], l, r, ctx);
|
|
}
|
|
if (isNameList(l) && isNameList(r) && (b === void 0 || isNameList(b))) return mergeNameLists(b ?? [], l, r);
|
|
if (typeof l === "string" && typeof r === "string" && typeof b === "string") {
|
|
const m = merge3(b, l, r, { local: "local", remote: "remote" });
|
|
if (m?.clean) return m.text;
|
|
}
|
|
ctx.conflicts++;
|
|
return l;
|
|
}
|
|
function mergeObject(b, l, r, ctx) {
|
|
const keys = [...Object.keys(l), ...Object.keys(r).filter((k) => !(k in l)), ...Object.keys(b).filter((k) => !(k in l) && !(k in r))];
|
|
const out = {};
|
|
for (const k of keys) {
|
|
const v = mergeValue(b[k], l[k], r[k], ctx);
|
|
if (v !== void 0) out[k] = v;
|
|
}
|
|
return out;
|
|
}
|
|
function isNameList(v) {
|
|
return Array.isArray(v) && v.every((x) => typeof x === "string") && new Set(v).size === v.length;
|
|
}
|
|
function mergeNameLists(b, l, r) {
|
|
const B = new Set(b);
|
|
const L = new Set(l);
|
|
const R = new Set(r);
|
|
const keep = (x) => L.has(x) && R.has(x) || L.has(x) && !B.has(x) || R.has(x) && !B.has(x);
|
|
return [...l.filter(keep), ...r.filter((x) => !L.has(x) && keep(x))];
|
|
}
|
|
function mergeById(b, l, r, ctx) {
|
|
const map = (a) => new Map(a.map((x) => [x.id, x]));
|
|
const B = map(b);
|
|
const L = map(l);
|
|
const R = map(r);
|
|
const order = [...L.keys(), ...[...R.keys()].filter((k) => !L.has(k)), ...[...B.keys()].filter((k) => !L.has(k) && !R.has(k))];
|
|
const out = [];
|
|
for (const id of order) {
|
|
const v = mergeValue(B.get(id), L.get(id), R.get(id), ctx);
|
|
if (v !== void 0) out.push(v);
|
|
}
|
|
return out;
|
|
}
|
|
function indentOf(text) {
|
|
const m = /\n([ \t]+)\S/.exec(text);
|
|
if (!m) return " ";
|
|
return m[1].startsWith(" ") ? " " : m[1].length;
|
|
}
|
|
function hasLongNumber(text) {
|
|
const bare = text.replace(/"(?:[^"\\]|\\.)*"/g, '""');
|
|
for (const m of bare.matchAll(/-?(\d+)(?:\.(\d+))?(?:[eE][+-]?\d+)?/g)) {
|
|
const digits = (m[1] + (m[2] ?? "").replace(/0+$/, "")).replace(/^0+/, "");
|
|
if (digits.length > 15) return true;
|
|
}
|
|
return false;
|
|
}
|
|
function lossy(v) {
|
|
const walk = (x) => {
|
|
if (Array.isArray(x)) return x.some(walk);
|
|
if (!isObj(x)) return false;
|
|
return Object.keys(x).some((k) => k === "__proto__" || walk(x[k]));
|
|
};
|
|
if (v === void 0) return false;
|
|
if (walk(v)) return true;
|
|
try {
|
|
return !eq(JSON.parse(JSON.stringify(v)), v);
|
|
} catch {
|
|
return true;
|
|
}
|
|
}
|
|
function mergeJson(base, local, remote) {
|
|
let B, L, R;
|
|
try {
|
|
B = base.trim() ? JSON.parse(base) : void 0;
|
|
L = JSON.parse(local);
|
|
R = JSON.parse(remote);
|
|
} catch {
|
|
return null;
|
|
}
|
|
if ([base, local, remote].some(hasLongNumber) || [B, L, R].some(lossy)) return null;
|
|
const ctx = { conflicts: 0 };
|
|
const merged = mergeValue(B, L, R, ctx);
|
|
const text = JSON.stringify(merged, null, indentOf(local)) + (local.endsWith("\n") ? "\n" : "");
|
|
return { clean: ctx.conflicts === 0, conflicts: ctx.conflicts, text };
|
|
}
|
|
function splitFrontmatter(t2) {
|
|
const m = /^---\r?\n([\s\S]*?\r?\n)?---[ \t]*(\r?\n|$)/.exec(t2);
|
|
if (!m) return { fm: null, body: t2 };
|
|
return { fm: m[1] ?? "", body: t2.slice(m[0].length) };
|
|
}
|
|
function entries(fm) {
|
|
const out = [];
|
|
for (const line of fm.match(/[^\n]*\n|[^\n]+$/g) ?? []) {
|
|
if (!line.trim()) {
|
|
if (out.length) out[out.length - 1].text += line;
|
|
continue;
|
|
}
|
|
const top = /^([^\s#-][^:]*):(\s|$)/.exec(line);
|
|
if (top) out.push({ key: top[1].trim(), text: line });
|
|
else if (out.length && (/^\s/.test(line) || line.startsWith("- "))) out[out.length - 1].text += line;
|
|
else if (line.startsWith("#")) out.push({ key: `#${out.length}`, text: line });
|
|
else return null;
|
|
}
|
|
return out;
|
|
}
|
|
function listOf(e) {
|
|
const lines2 = e.text.replace(/\s+$/, "").split(/\r?\n/);
|
|
const head = lines2[0].slice(lines2[0].indexOf(":") + 1).trim();
|
|
if (lines2.length === 1) {
|
|
const inl = /^\[(.*)\]$/.exec(head);
|
|
if (!inl) return null;
|
|
const items2 = inl[1].split(",").map((x) => x.trim()).filter(Boolean);
|
|
return { items: items2, style: "inline", indent: " " };
|
|
}
|
|
if (head) return null;
|
|
const items = [];
|
|
let indent = " ";
|
|
for (const l of lines2.slice(1)) {
|
|
const m = /^(\s*)- (.*)$/.exec(l);
|
|
if (!m) return null;
|
|
indent = m[1];
|
|
items.push(m[2].trim());
|
|
}
|
|
return { items, style: "block", indent };
|
|
}
|
|
function renderList(key2, v, eol) {
|
|
if (v.style === "inline") return `${key2}: [${v.items.join(", ")}]${eol}`;
|
|
return `${key2}:${eol}${v.items.map((i) => `${v.indent}- ${i}${eol}`).join("")}`;
|
|
}
|
|
function mergeSets(b, l, r) {
|
|
const removed = /* @__PURE__ */ new Set([...b.filter((x) => !l.includes(x)), ...b.filter((x) => !r.includes(x))]);
|
|
const out = [];
|
|
for (const x of [...l, ...r]) if (!removed.has(x) && !out.includes(x)) out.push(x);
|
|
return out;
|
|
}
|
|
function mergeFrontmatter(b, l, r) {
|
|
const B = entries(b);
|
|
const L = entries(l);
|
|
const R = entries(r);
|
|
if (!B || !L || !R) return null;
|
|
const eol = l.includes("\r\n") ? "\r\n" : "\n";
|
|
const get = (es2, k) => es2.find((e) => e.key === k);
|
|
const keys = [...L.map((e) => e.key), ...R.map((e) => e.key).filter((k) => !get(L, k)), ...B.map((e) => e.key).filter((k) => !get(L, k) && !get(R, k))];
|
|
let out = "";
|
|
for (const k of keys) {
|
|
const be = get(B, k);
|
|
const le = get(L, k);
|
|
const re = get(R, k);
|
|
const bt = be?.text.replace(/\s+$/, "");
|
|
const lt = le?.text.replace(/\s+$/, "");
|
|
const rt = re?.text.replace(/\s+$/, "");
|
|
let chosen;
|
|
if (lt === rt || bt === rt) chosen = le;
|
|
else if (bt === lt) chosen = re;
|
|
else if (!le) chosen = re;
|
|
else if (!re) chosen = le;
|
|
else {
|
|
const ll = listOf(le);
|
|
const rl = listOf(re);
|
|
const bl = be ? listOf(be) : { items: [], style: ll?.style ?? "block", indent: " " };
|
|
if (!ll || !rl || !bl) return null;
|
|
out += renderList(k, { ...ll, items: mergeSets(bl.items, ll.items, rl.items) }, eol);
|
|
continue;
|
|
}
|
|
if (chosen) out += chosen.text.endsWith("\n") ? chosen.text : chosen.text + eol;
|
|
}
|
|
return out;
|
|
}
|
|
function mergeMarkdown(base, local, remote, labels = { local: "local", remote: "remote" }) {
|
|
const B = splitFrontmatter(base);
|
|
const L = splitFrontmatter(local);
|
|
const R = splitFrontmatter(remote);
|
|
if (L.fm === null && R.fm === null) return null;
|
|
const fm = mergeFrontmatter(B.fm ?? "", L.fm ?? "", R.fm ?? "");
|
|
if (fm === null) return null;
|
|
const body = merge3(B.body, L.body, R.body, labels);
|
|
if (!body) return null;
|
|
const eol = local.includes("\r\n") ? "\r\n" : "\n";
|
|
const text = fm.trim() ? `---${eol}${fm}---${eol}${body.text}` : body.text;
|
|
return { clean: body.clean, conflicts: body.conflicts, text };
|
|
}
|
|
function smartMerge(path, base, local, remote, labels) {
|
|
const ext2 = path.split(".").pop()?.toLowerCase();
|
|
if (ext2 === "json" || ext2 === "canvas") {
|
|
const m = mergeJson(base, local, remote);
|
|
return m ? { ...m, kind: ext2 === "canvas" ? "canvas" : "JSON" } : null;
|
|
}
|
|
if (ext2 === "md" || ext2 === "markdown") {
|
|
const m = mergeMarkdown(base, local, remote, labels);
|
|
return m ? { ...m, kind: "frontmatter" } : null;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
// src/scope-config.ts
|
|
var DEFAULT_CONFIG_SYNC = {
|
|
appearance: true,
|
|
snippets: true,
|
|
hotkeys: true,
|
|
core: true,
|
|
pluginList: true,
|
|
pluginCode: true,
|
|
pluginSettings: true,
|
|
plugins: {},
|
|
installFromReleases: false
|
|
};
|
|
var CODE = ["main.js", "manifest.json", "styles.css"];
|
|
function normalizeConfigSync(c) {
|
|
const out = { ...DEFAULT_CONFIG_SYNC, ...c ?? {}, plugins: {} };
|
|
for (const [id, mode] of Object.entries(c?.plugins ?? {})) {
|
|
if (/^[\w.-]+$/.test(id) && (mode === "all" || mode === "code" || mode === "settings" || mode === "none")) out.plugins[id] = mode;
|
|
}
|
|
return out;
|
|
}
|
|
function configPatterns(input) {
|
|
const c = normalizeConfigSync(input);
|
|
const out = [];
|
|
const cfg = (p) => `/{config}/${p}`;
|
|
if (!c.core) {
|
|
out.push(cfg("*.json"));
|
|
if (c.appearance) out.push("!" + cfg("appearance.json"));
|
|
if (c.hotkeys) out.push("!" + cfg("hotkeys.json"));
|
|
if (c.pluginList) out.push("!" + cfg("community-plugins.json"));
|
|
}
|
|
if (!c.appearance) out.push(cfg("appearance.json"), cfg("themes/"));
|
|
if (!c.snippets) out.push(cfg("snippets/"));
|
|
if (!c.hotkeys) out.push(cfg("hotkeys.json"));
|
|
if (!c.pluginList) out.push(cfg("community-plugins.json"));
|
|
if (!c.pluginCode) out.push(...CODE.map((f) => cfg(`plugins/*/${f}`)));
|
|
else if (c.installFromReleases) out.push(cfg("plugins/*/main.js"), cfg("plugins/*/styles.css"));
|
|
if (!c.pluginSettings) out.push(cfg("plugins/*/data.json"));
|
|
for (const [id, mode] of Object.entries(c.plugins).sort(([a], [b]) => a.localeCompare(b))) {
|
|
const p = (f) => cfg(`plugins/${id}/${f}`);
|
|
if (mode === "none") out.push(cfg(`plugins/${id}/`));
|
|
else {
|
|
const code = mode === "all" || mode === "code";
|
|
const settings = mode === "all" || mode === "settings";
|
|
out.push(...CODE.map((f) => (code ? "!" : "") + p(f)));
|
|
out.push((settings ? "!" : "") + p("data.json"));
|
|
}
|
|
}
|
|
return out;
|
|
}
|
|
|
|
// src/types.ts
|
|
var DEFAULT_SETTINGS = {
|
|
provider: "github",
|
|
owner: "",
|
|
repo: "",
|
|
branch: "main",
|
|
mode: "sync",
|
|
syncOnStartup: true,
|
|
syncOnChange: true,
|
|
changeDebounceSec: 30,
|
|
intervalMin: 10,
|
|
syncOnResume: true,
|
|
syncOnBackground: true,
|
|
syncConfigDir: false,
|
|
configSync: DEFAULT_CONFIG_SYNC,
|
|
syncHidden: false,
|
|
syncHiddenNested: false,
|
|
useGitignore: false,
|
|
excludePatterns: [
|
|
"# One pattern per line, gitignore style",
|
|
".trash/",
|
|
".DS_Store",
|
|
"Thumbs.db",
|
|
"{config}/workspace.json",
|
|
"{config}/workspace-mobile.json",
|
|
"{config}/workspaces.json",
|
|
"{config}/cache",
|
|
"{config}/plugins/*/node_modules/"
|
|
].join("\n"),
|
|
maxFileSizeMB: 50,
|
|
lfsThresholdMB: 0,
|
|
conflictStrategy: "auto",
|
|
reviewBeforeManualSync: false,
|
|
ignoreLineEndingChanges: true,
|
|
fullScanMinutes: 30,
|
|
deleteGuardEnabled: true,
|
|
deleteGuardMin: 10,
|
|
deleteGuardPercent: 20,
|
|
dailySnapshot: false,
|
|
commitTemplate: "{{device}}: {{summary}}",
|
|
commitTemplateAuto: "",
|
|
repoSubdir: "",
|
|
statusCountdown: false,
|
|
statusBranch: false,
|
|
respectFrontmatter: true,
|
|
authorName: "",
|
|
authorEmail: "",
|
|
keepEmptyFolders: true,
|
|
mirror: null,
|
|
noticeLevel: "auto",
|
|
syncOnOpen: false,
|
|
explorerBadges: true,
|
|
changeMarkers: true,
|
|
wizardShown: false,
|
|
sharedFolders: []
|
|
};
|
|
var emptyState = (repoKey = "") => ({
|
|
version: 1,
|
|
repoKey,
|
|
head: null,
|
|
base: {},
|
|
cache: {},
|
|
baseNorm: {},
|
|
lastFullScan: 0,
|
|
lastConfigScan: 0,
|
|
codecFingerprint: "",
|
|
remoteOnly: {},
|
|
lastSync: 0,
|
|
lastSnapshot: 0,
|
|
dirty: false
|
|
});
|
|
|
|
// src/lfs.ts
|
|
var SPEC = "version https://git-lfs.github.com/spec/v1";
|
|
var LEGACY_SPEC = "version https://hawser.github.com/spec/v1";
|
|
var te2 = new TextEncoder();
|
|
var td2 = new TextDecoder();
|
|
var hex = (b) => Array.from(new Uint8Array(b), (x) => x.toString(16).padStart(2, "0")).join("");
|
|
function lfsPatternsFrom(gitattributes) {
|
|
const out = [];
|
|
for (const raw of gitattributes.split(/\r?\n/)) {
|
|
const line = raw.trim();
|
|
if (!line || line.startsWith("#")) continue;
|
|
const [pattern, ...attrs] = line.split(/\s+/);
|
|
if (attrs.includes("filter=lfs") && !pattern.startsWith("!")) out.push(pattern);
|
|
}
|
|
return out;
|
|
}
|
|
function lfsPatternsForSubdir(patterns, subdir) {
|
|
const sub = subdir.replace(/^\/+|\/+$/g, "");
|
|
if (!sub) return patterns;
|
|
const subSegs = sub.split("/");
|
|
const out = [];
|
|
for (const p of patterns) {
|
|
const core = p.replace(/\/+$/, "");
|
|
if (!core.startsWith("/") && !core.includes("/")) {
|
|
out.push(p);
|
|
continue;
|
|
}
|
|
const segs = core.replace(/^\/+/, "").split("/");
|
|
let i = 0;
|
|
let keep = true;
|
|
for (; i < subSegs.length && i < segs.length; i++) {
|
|
if (segs[i] === "**") break;
|
|
if (!compileGlobs(["/" + segs[i]])(subSegs[i])) {
|
|
keep = false;
|
|
break;
|
|
}
|
|
}
|
|
if (!keep) continue;
|
|
const rest = segs.slice(i).join("/");
|
|
if (!rest) out.push("**");
|
|
else out.push(segs[i] === "**" ? rest : "/" + rest);
|
|
}
|
|
return out;
|
|
}
|
|
function pointerFor(oid, size) {
|
|
return `${SPEC}
|
|
oid sha256:${oid}
|
|
size ${size}
|
|
`;
|
|
}
|
|
function parsePointer(blob) {
|
|
if (blob.byteLength > 1024) return null;
|
|
const t2 = td2.decode(blob).replace(/\r\n/g, "\n");
|
|
if (!t2.startsWith(SPEC) && !t2.startsWith(LEGACY_SPEC)) return null;
|
|
const oid = /\noid sha256:([0-9a-f]{64})\n/.exec(t2)?.[1];
|
|
const size = /\nsize (\d+)\n?/.exec(t2)?.[1];
|
|
return oid && size ? { oid, size: Number(size) } : null;
|
|
}
|
|
var LfsLayer = class {
|
|
constructor(remote, thresholdBytes, transport = obsidianTransport, lfsPatterns = []) {
|
|
this.id = "";
|
|
this.transformsContent = true;
|
|
this.remote = remote;
|
|
this.threshold = thresholdBytes;
|
|
this.transport = transport;
|
|
this.patterns = lfsPatterns;
|
|
this.tracked = lfsPatterns.length ? compileGlobs(lfsPatterns) : () => false;
|
|
}
|
|
get fingerprint() {
|
|
const parts = [this.threshold > 0 ? `lfs:${this.threshold}` : "", this.patterns.length ? `attr:${this.patterns.join("|")}` : ""].filter(Boolean);
|
|
return parts.join(";");
|
|
}
|
|
/** The `filter=lfs` patterns this layer was built with (a mirror uses the same ones). */
|
|
get trackedPatterns() {
|
|
return [...this.patterns];
|
|
}
|
|
big(path, data) {
|
|
if (data.byteLength > 0 && this.tracked(path)) return true;
|
|
return this.threshold > 0 && data.byteLength >= this.threshold;
|
|
}
|
|
async storedForm(path, data) {
|
|
if (!this.big(path, data)) return data;
|
|
return encodeText(pointerFor(hex(await crypto.subtle.digest("SHA-256", data)), data.byteLength));
|
|
}
|
|
async encode(path, data) {
|
|
if (!this.big(path, data)) return data;
|
|
const oid = hex(await crypto.subtle.digest("SHA-256", data));
|
|
await this.upload(path, oid, data);
|
|
return encodeText(pointerFor(oid, data.byteLength));
|
|
}
|
|
async decode(path, blob) {
|
|
const ptr = parsePointer(blob);
|
|
if (!ptr) return blob;
|
|
const data = await this.download(path, ptr.oid, ptr.size);
|
|
if (hex(await crypto.subtle.digest("SHA-256", data)) !== ptr.oid) throw new SyncError("lfsCorrupt", { path });
|
|
return data;
|
|
}
|
|
async batch(operation, oid, size) {
|
|
const res = await httpRequest(
|
|
this.transport,
|
|
{
|
|
url: `${this.remote.gitUrl()}/info/lfs/objects/batch`,
|
|
method: "POST",
|
|
headers: { Accept: "application/vnd.git-lfs+json", Authorization: this.remote.authHeader() },
|
|
contentType: "application/vnd.git-lfs+json",
|
|
body: JSON.stringify({ operation, transfers: ["basic"], objects: [{ oid, size }] })
|
|
},
|
|
{ hostLabel: `${this.remote.label} LFS`, idempotent: true }
|
|
);
|
|
const obj = res.json?.objects?.[0];
|
|
if (obj?.error) throw new SyncError("lfsError", { detail: obj.error.message ?? String(obj.error.code) });
|
|
return obj;
|
|
}
|
|
async upload(path, oid, data) {
|
|
const obj = await this.batch("upload", oid, data.byteLength);
|
|
const up = obj?.actions?.upload;
|
|
if (!up) return;
|
|
await httpRequest(this.transport, { url: up.href, method: "PUT", headers: { ...up.header ?? {}, "Content-Type": "application/octet-stream" }, body: data }, { hostLabel: `${this.remote.label} LFS`, idempotent: true });
|
|
const verify = obj?.actions?.verify;
|
|
if (verify) {
|
|
await httpRequest(
|
|
this.transport,
|
|
{ url: verify.href, method: "POST", headers: { ...verify.header ?? {}, Accept: "application/vnd.git-lfs+json" }, contentType: "application/vnd.git-lfs+json", body: JSON.stringify({ oid, size: data.byteLength }) },
|
|
{ hostLabel: `${this.remote.label} LFS`, idempotent: true }
|
|
);
|
|
}
|
|
void path;
|
|
}
|
|
async download(path, oid, size) {
|
|
const obj = await this.batch("download", oid, size);
|
|
const down = obj?.actions?.download;
|
|
if (!down) throw new SyncError("lfsMissing", { path });
|
|
return (await httpRequest(this.transport, { url: down.href, method: "GET", headers: down.header ?? {} }, { hostLabel: `${this.remote.label} LFS`, idempotent: true })).arrayBuffer;
|
|
}
|
|
};
|
|
var LFS_SPEC = te2.encode(SPEC);
|
|
|
|
// src/sync.ts
|
|
var FOLDERS_PATH = ".vault-sync/folders.json";
|
|
var SyncCancelled = class extends SyncError {
|
|
constructor(code = "cancelled", params = {}) {
|
|
super(code, params);
|
|
}
|
|
};
|
|
function hiddenSyncable(p, cfg, nested = false) {
|
|
if (!p.startsWith(".") && !nested) return false;
|
|
return !p.split("/").some((seg) => seg === ".git" || seg === ".trash" || seg === ".vault-sync" || seg === cfg || /^\.obsidian/i.test(seg));
|
|
}
|
|
var StaleRemote = class extends Error {
|
|
};
|
|
var EditedDuringSync = class extends SyncError {
|
|
constructor(path) {
|
|
super("editedDuringSync", { path });
|
|
}
|
|
};
|
|
var CONFIG_SCAN_MS = 5 * 6e4;
|
|
var EOL_MAX = 2 * 1024 * 1024;
|
|
function safePath(p) {
|
|
if (!p || p.startsWith("/") || p.includes("\\") || p.includes("\0")) return false;
|
|
return !p.split("/").some((seg) => seg === "" || seg === "." || seg === "..");
|
|
}
|
|
var SyncEngine = class {
|
|
constructor(host) {
|
|
this.opts = {};
|
|
this.codec = PLAIN;
|
|
this.markerToAdd = null;
|
|
this.assertUnchanged = async () => {
|
|
};
|
|
/** Set after repeated "behind" answers: the branch really was moved back, so treat it like a rewrite. */
|
|
this.acceptRewind = false;
|
|
this.pinnedRemote = null;
|
|
/** Conflicts waiting to be sent as a pull request at the end of this run. */
|
|
this.prConflicts = [];
|
|
/** Repository metadata files (not vault files) and their blob shas at the head last listed. */
|
|
this.metaShas = /* @__PURE__ */ new Map();
|
|
/**
|
|
* Every file entry of the listed repository tree, including ones this vault leaves out (symlinks,
|
|
* other folders): hosts that create-or-update per file (GitLab, Gitea) must update, not create, them.
|
|
*/
|
|
this.treePaths = /* @__PURE__ */ new Map();
|
|
/** The codec a running sync uses: toggling encryption mid-sync must not switch it under that sync. */
|
|
this.pinnedCodec = null;
|
|
// Settings are snapshotted for the duration of a sync, so edits in the settings tab can't switch
|
|
// repository or branch halfway through.
|
|
this.snap = null;
|
|
/** Repository path and commit of each remote blob seen in the last listing (sha → hint). */
|
|
this.blobHints = /* @__PURE__ */ new Map();
|
|
/**
|
|
* Base versions for a retry after a refused push: where the failed attempt merged a repository
|
|
* version into local files (rename + edit, merged conflicts, push copies), the retry compares
|
|
* against that version, so the same edits aren't seen as a conflict again (no duplicate copies).
|
|
*/
|
|
this.retryBase = {};
|
|
this.host = host;
|
|
this.io = new VaultIO(host.app);
|
|
}
|
|
get s() {
|
|
return this.snap ?? this.host.settings;
|
|
}
|
|
get repoKey() {
|
|
return `${this.s.owner}/${this.s.repo}@${this.s.branch}${this.codec.id ? "#" + this.codec.id : ""}`;
|
|
}
|
|
loadCodec() {
|
|
this.codec = this.pinnedCodec ?? this.host.codec?.() ?? PLAIN;
|
|
}
|
|
/** Repository path of a vault path (for history lookups). */
|
|
remotePathOf(path) {
|
|
this.loadCodec();
|
|
return this.codec.encodePath(path);
|
|
}
|
|
/** This vault's folder in the repository ("" = its root), from the codec. */
|
|
get repoSubdir() {
|
|
return this.codec.layers.find((l) => l instanceof RepoSubdirLayer)?.repoSubdir ?? "";
|
|
}
|
|
/** Where this vault's encryption marker lives (inside its repository folder when it has one). */
|
|
get markerPath() {
|
|
return markerPathFor(this.repoSubdir);
|
|
}
|
|
/** Vault path of a repository path, or null if it isn't a file this vault manages. */
|
|
vaultPathOf(raw) {
|
|
this.loadCodec();
|
|
if (raw === MARKER_PATH || raw === this.markerPath) return Promise.resolve(null);
|
|
return this.codec.transformsPaths ? this.codec.decodePath(raw) : Promise.resolve(raw);
|
|
}
|
|
/** File content as stored at `ref`, decoded (decrypted) for display or restore. */
|
|
async readRemoteFile(path, ref) {
|
|
this.loadCodec();
|
|
const data = await this.gh.getFileAt(await this.codec.encodePath(path), ref);
|
|
return data ? this.codec.decode(path, data) : null;
|
|
}
|
|
/** Decoded file list of a commit: vault path → stored entry. */
|
|
async filesAt(commit, scope = this.buildScope(false)) {
|
|
this.loadCodec();
|
|
const out = /* @__PURE__ */ new Map();
|
|
for (const e of await this.gh.listTree(await this.gh.getCommitTree(commit))) {
|
|
if (e.type !== "blob" || e.mode !== "100644" && e.mode !== "100755") continue;
|
|
const p = await this.vaultPathOf(e.path);
|
|
if (p === null || !safePath(p) || !scope(p)) continue;
|
|
out.set(p, { sha: e.sha, mode: e.mode, raw: e.path, size: e.size ?? 0 });
|
|
}
|
|
return out;
|
|
}
|
|
async blob(path, sha) {
|
|
return this.codec.decode(path, await this.verifiedBlob(sha, path));
|
|
}
|
|
/**
|
|
* Downloads a stored blob and checks it against its git object id, so a truncated or empty
|
|
* response (e.g. Gitea's blob size limit, a proxy cutting the body) is never written to the vault.
|
|
*/
|
|
/**
|
|
* Applies folder renames by letter case (see the caller). Returns the file renames still to do:
|
|
* the ones outside such folders, and ones whose file name changes too (with their new old path).
|
|
*/
|
|
async renameCaseFolders(ctx, cacheNext, report) {
|
|
const fold = (p) => p.normalize("NFC").toLowerCase();
|
|
const groups2 = /* @__PURE__ */ new Map();
|
|
const rest = [];
|
|
for (const [from, to] of ctx.caseRenames) {
|
|
const a = from.split("/");
|
|
const b = to.split("/");
|
|
let i = 0;
|
|
while (i < a.length - 1 && a[i] === b[i]) i++;
|
|
if (a.length !== b.length || i >= a.length - 1 || fold(a[i]) !== fold(b[i])) {
|
|
rest.push([from, to]);
|
|
continue;
|
|
}
|
|
const oldDir = a.slice(0, i + 1).join("/");
|
|
const newDir = b.slice(0, i + 1).join("/");
|
|
const g = groups2.get(oldDir) ?? { to: newDir, pairs: [] };
|
|
if (g.to !== newDir) g.to = "";
|
|
g.pairs.push([from, to]);
|
|
groups2.set(oldDir, g);
|
|
}
|
|
for (const [oldDir, g] of groups2) {
|
|
const moving = new Set(g.pairs.map(([from]) => from));
|
|
const inside = [...ctx.localShas.keys()].filter((p) => p.startsWith(oldDir + "/"));
|
|
const unchanged = g.pairs.every(([from]) => !!cacheNext[from]);
|
|
if (!g.to || !unchanged || inside.some((p) => !moving.has(p))) {
|
|
rest.push(...g.pairs);
|
|
continue;
|
|
}
|
|
try {
|
|
for (const [from] of g.pairs) {
|
|
const st = await this.io.stat(from);
|
|
const c = cacheNext[from];
|
|
if (!st || st.mtime !== c.m || st.size !== c.s) throw new EditedDuringSync(from);
|
|
}
|
|
await this.io.renameFolderCase(oldDir, g.to);
|
|
} catch (e) {
|
|
this.host.log(`Folder ${oldDir} was renamed to ${g.to} elsewhere; renaming it here failed (${errMsg(e)}), trying file by file.`);
|
|
rest.push(...g.pairs);
|
|
continue;
|
|
}
|
|
for (const [from, to] of g.pairs) {
|
|
const moved = g.to + from.slice(oldDir.length);
|
|
const c = cacheNext[from];
|
|
const st = await this.io.stat(moved);
|
|
if (st) cacheNext[moved] = { ...c, m: st.mtime, s: st.size };
|
|
delete cacheNext[from];
|
|
this.rekey(ctx, from, moved);
|
|
if (moved === to) report.renamed.push(`${from} \u2192 ${to}`);
|
|
else rest.push([moved, to]);
|
|
}
|
|
this.host.log(`Folder ${oldDir} was renamed to ${g.to} on another device: renamed here too.`);
|
|
}
|
|
return rest;
|
|
}
|
|
/** A conflict-copy name that isn't taken yet (two conflicts in the same minute get "-2", "-3", …). */
|
|
async freeCopyPath(path, device) {
|
|
const now = /* @__PURE__ */ new Date();
|
|
for (let n = 1; ; n++) {
|
|
const p = conflictCopyPath(path, device, now, n);
|
|
if (!await this.io.stat(p)) return p;
|
|
}
|
|
}
|
|
async verifiedBlob(sha, path) {
|
|
const data = await this.gh.getBlob(sha, this.blobHints.get(sha));
|
|
if (/^[0-9a-f]{40}$/i.test(sha) && await gitBlobSha(data) !== sha.toLowerCase()) {
|
|
throw new SyncError("incompleteDownload", { path, host: this.gh.label, bytes: data.byteLength });
|
|
}
|
|
return data;
|
|
}
|
|
/** Which paths this plugin manages. With `device` (default) the device-local scope applies too. */
|
|
buildScope(device = true) {
|
|
this.loadCodec();
|
|
const cfg = this.host.app.vault.configDir;
|
|
const sub = (l) => l.split("{config}").join(cfg);
|
|
const patterns = this.s.excludePatterns.split("\n").map(sub);
|
|
const ds = device ? this.host.deviceScope?.() : void 0;
|
|
const excluded = compileGlobs([
|
|
// Settings-folder parts that stay on each device, then the vault's .gitignore, then the
|
|
// user's own patterns: later patterns win, so the user always has the last word.
|
|
...this.s.syncConfigDir ? configPatterns(this.s.configSync).map(sub) : [],
|
|
...this.s.useGitignore ? this.host.gitignorePatterns?.() ?? [] : [],
|
|
...patterns,
|
|
...(ds?.exclude ?? []).map(sub),
|
|
...this.host.extraExcludes?.() ?? [],
|
|
".git/",
|
|
// Side files of an open SQLite database: syncing them mid-write corrupts the database elsewhere.
|
|
"*-wal",
|
|
"*-shm",
|
|
"*-journal",
|
|
this.host.stateFilePath,
|
|
// Every engine's state files live in the plugin folder.
|
|
this.host.stateFilePath.replace(/[^/]+$/, "sync-state*")
|
|
]);
|
|
const includes = (ds?.include ?? []).map((x) => x.trim()).filter((x) => x && !x.startsWith("#"));
|
|
const prefix = this.codec.layers.find((l) => "folderPrefix" in l)?.folderPrefix;
|
|
const included = includes.length ? compileGlobs(includes.map(sub)) : null;
|
|
const fmOut = device ? this.host.frontmatterScope?.()?.out : void 0;
|
|
return (p) => {
|
|
if (excluded(p)) return false;
|
|
if (fmOut?.has(p)) return false;
|
|
if (prefix && !p.startsWith(prefix)) return false;
|
|
if (included && !included(p) && !p.startsWith(cfg + "/")) return false;
|
|
if (!isHiddenPath(p)) return true;
|
|
if (p.startsWith(cfg + "/")) return this.s.syncConfigDir && !isHiddenPath(p.slice(cfg.length + 1));
|
|
if ((p === ".gitignore" || p.endsWith("/.gitignore")) && this.s.useGitignore && hiddenSyncable(p, cfg, true)) return true;
|
|
return this.s.syncHidden && hiddenSyncable(p, cfg, this.s.syncHiddenNested);
|
|
};
|
|
}
|
|
/** Dry run: what would happen, without touching anything. */
|
|
async preview(mode) {
|
|
this.loadCodec();
|
|
const ctx = await this.gather(false, {}, true, { mode });
|
|
for (const [from, to] of ctx.caseRenames) this.rekey(ctx, from, to);
|
|
const plan = decide(ctx.base, ctx.localShas, ctx.remoteShas, mode, ctx.scope, { pushKeepsRemote: !this.host.backupMirror });
|
|
let decisions = await this.similarRenames(detectRenames(plan.decisions, ctx.base, ctx.localShas, ctx.remoteShas), ctx.base, ctx.localShas, ctx.remoteShas, { cache: ctx.cacheNext, remote: ctx.remote });
|
|
decisions = await this.keepMovedOutOfScope(decisions, ctx.base, ctx, () => {
|
|
});
|
|
return { decisions, skipped: ctx.skipped, skipNotes: ctx.skipNotes, localShas: ctx.localShas, remoteShas: ctx.remoteShas, base: ctx.base };
|
|
}
|
|
/** A local file now known under another name (case-only rename): move its baseline and local hash along. */
|
|
rekey(ctx, from, to) {
|
|
const base = { ...ctx.base };
|
|
if (base[from]) {
|
|
base[to] = base[from];
|
|
delete base[from];
|
|
}
|
|
ctx.base = base;
|
|
const l = ctx.localShas.get(from);
|
|
if (l) {
|
|
ctx.localShas.delete(from);
|
|
ctx.localShas.set(to, l);
|
|
}
|
|
if (ctx.eolSame.delete(from)) ctx.eolSame.add(to);
|
|
}
|
|
/**
|
|
* A file moved out of this device's scope (device include/exclude patterns) looks deleted here, but it
|
|
* still exists: keep it in the repository instead of deleting it for every device. Only runs when
|
|
* there are deletions to check; candidates are found by size first, then confirmed by content.
|
|
*/
|
|
async keepMovedOutOfScope(decisions, base, skipped, keep) {
|
|
const cands = decisions.filter((d) => d.kind === "delete-remote" && !d.renamedTo && base[d.path]);
|
|
const ds = this.host.deviceScope?.();
|
|
const narrowed = !!ds && (ds.include.some((x) => x.trim() && !x.trim().startsWith("#")) || ds.exclude.length > 0);
|
|
if (!cands.length || !narrowed) return decisions;
|
|
const kept = /* @__PURE__ */ new Set();
|
|
const known = this.host.state.keptMoved ?? {};
|
|
for (const d of cands) {
|
|
if (known[d.path] && known[d.path] === base[d.path]) {
|
|
kept.add(d.path);
|
|
keep(d.path);
|
|
}
|
|
}
|
|
const rest = cands.filter((d) => !kept.has(d.path));
|
|
const shared = this.buildScope(false);
|
|
const mine = this.buildScope(true);
|
|
const bySize = /* @__PURE__ */ new Map();
|
|
if (rest.length) {
|
|
for (const f of this.io.listVault((p) => shared(p) && !mine(p))) if (f.size > 0) bySize.set(f.size, [...bySize.get(f.size) ?? [], f.path]);
|
|
}
|
|
for (const d of rest) {
|
|
const size = this.host.state.cache[d.path]?.s;
|
|
if (!size) continue;
|
|
for (const p of bySize.get(size) ?? []) {
|
|
let same = false;
|
|
try {
|
|
same = await this.codec.storedSha(d.path, await this.io.read(p)) === base[d.path];
|
|
} catch {
|
|
same = false;
|
|
}
|
|
if (!same) continue;
|
|
kept.add(d.path);
|
|
keep(d.path);
|
|
addSkip(skipped, d.path, "movedOutOfScope", { to: p });
|
|
break;
|
|
}
|
|
}
|
|
return kept.size ? decisions.filter((d) => !(d.kind === "delete-remote" && kept.has(d.path))) : decisions;
|
|
}
|
|
/**
|
|
* Vault files that look changed since the last sync: new, deleted, or with a different mtime/size
|
|
* than when last hashed. In-memory only (no reads, no network), so it is cheap enough for the UI.
|
|
*/
|
|
quickLocalPending() {
|
|
const state = this.host.state;
|
|
const scope = this.buildScope();
|
|
const cfgPrefix = this.host.app.vault.configDir + "/";
|
|
const seen = /* @__PURE__ */ new Set();
|
|
const out = [];
|
|
for (const f of this.io.listVault(scope)) {
|
|
seen.add(f.path);
|
|
const c = state.cache[f.path];
|
|
const eolOnly = this.s.ignoreLineEndingChanges && !!c?.n && state.baseNorm?.[f.path] === c.n;
|
|
if (!c || c.m !== f.mtime || c.s !== f.size || state.base[f.path] !== c.h && !eolOnly) out.push(f.path);
|
|
}
|
|
for (const p of Object.keys(state.base)) {
|
|
if (!seen.has(p) && !p.startsWith(cfgPrefix) && !isHiddenPath(p) && scope(p)) out.push(p);
|
|
}
|
|
return out;
|
|
}
|
|
scopeSignature() {
|
|
const ds = this.host.deviceScope?.();
|
|
return JSON.stringify([
|
|
this.s.excludePatterns,
|
|
this.s.syncConfigDir,
|
|
this.s.syncConfigDir ? configPatterns(this.s.configSync) : [],
|
|
this.s.syncHidden,
|
|
this.s.syncHiddenNested,
|
|
this.s.useGitignore ? this.host.gitignorePatterns?.() ?? [] : false,
|
|
this.s.maxFileSizeMB,
|
|
ds?.include ?? [],
|
|
ds?.exclude ?? [],
|
|
ds?.maxDownloadMB ?? 0,
|
|
[...ds?.pinned ?? []].sort(),
|
|
this.host.extraExcludes?.() ?? [],
|
|
[...this.host.frontmatterScope?.()?.out ?? []].sort()
|
|
]);
|
|
}
|
|
/**
|
|
* Renamed-and-edited files: pair leftover delete + add decisions by content similarity. Only text
|
|
* files are read, and only when their known size (local scan, remote listing) is small: a deleted
|
|
* video next to a new note must never download the video.
|
|
*/
|
|
async similarRenames(decisions, base, local, remote, sizes) {
|
|
const texts = /* @__PURE__ */ new Map();
|
|
const MAX = 2 * 1024 * 1024;
|
|
const textType = (p) => asText(p, new ArrayBuffer(0)) !== null;
|
|
const known = (path) => {
|
|
const all = [sizes.cache[path]?.s, sizes.remote?.get(path)?.size, this.host.state.cache[path]?.s].filter((x) => typeof x === "number");
|
|
return all.length ? Math.max(...all) : void 0;
|
|
};
|
|
return detectSimilarRenames(decisions, base, local, remote, {
|
|
// A few other notes in the same folder on this device (small text files only), to tell template
|
|
// lines from real content. Only read when a delete + add pair already looks similar.
|
|
siblings: async (path, exclude) => {
|
|
const slash = path.lastIndexOf("/");
|
|
const dir = slash < 0 ? "" : path.slice(0, slash + 1);
|
|
const dot = path.lastIndexOf(".");
|
|
const ext2 = dot > slash ? path.slice(dot).toLowerCase() : "";
|
|
const near = [...local.keys()].filter((p) => p.startsWith(dir) && !p.slice(dir.length).includes("/") && !exclude.has(p) && (p.lastIndexOf(".") > p.lastIndexOf("/") ? p.slice(p.lastIndexOf(".")).toLowerCase() : "") === ext2).filter((p) => (known(p) ?? Infinity) <= 256 * 1024).sort().slice(-6);
|
|
const out = [];
|
|
for (const p of near) {
|
|
try {
|
|
const t2 = asText(p, await this.io.read(p));
|
|
if (t2 !== null) out.push(t2);
|
|
} catch {
|
|
}
|
|
}
|
|
return out;
|
|
},
|
|
text: async (side, path, sha) => {
|
|
const key2 = `${side}:${path}:${sha}`;
|
|
if (texts.has(key2)) return texts.get(key2);
|
|
let t2 = null;
|
|
const size = known(path);
|
|
if (textType(path) && !(size !== void 0 && size > MAX)) {
|
|
try {
|
|
let data;
|
|
if (side === "local") data = await this.io.read(path);
|
|
else {
|
|
const raw = await this.verifiedBlob(sha, path);
|
|
const ptr = parsePointer(raw);
|
|
data = ptr && ptr.size > MAX ? null : await this.codec.decode(path, raw);
|
|
}
|
|
t2 = data && data.byteLength <= MAX ? asText(path, data) : null;
|
|
} catch {
|
|
t2 = null;
|
|
}
|
|
}
|
|
texts.set(key2, t2);
|
|
return t2;
|
|
}
|
|
});
|
|
}
|
|
/** Content of a local file (for diffs). */
|
|
readLocal(path) {
|
|
return this.io.read(path);
|
|
}
|
|
/** Decoded content of a remote blob of `path` (for diffs). */
|
|
readBlob(path, sha) {
|
|
this.loadCodec();
|
|
return this.blob(path, sha);
|
|
}
|
|
async run(mode, opts = {}) {
|
|
const outer = this.snap === null;
|
|
if (outer) {
|
|
this.snap = { ...this.host.settings };
|
|
this.pinnedRemote = this.host.gh;
|
|
this.pinnedCodec = this.host.codec?.() ?? PLAIN;
|
|
}
|
|
try {
|
|
return await this.runWithRetries(mode, opts);
|
|
} finally {
|
|
if (outer) {
|
|
this.snap = null;
|
|
this.pinnedRemote = null;
|
|
this.pinnedCodec = null;
|
|
}
|
|
}
|
|
}
|
|
/** This device's download limit for `path` in bytes (0 = none; pinned files have none). */
|
|
downloadLimit(path) {
|
|
const ds = this.host.deviceScope?.();
|
|
if (!ds?.maxDownloadMB || ds.pinned?.includes(path)) return 0;
|
|
return ds.maxDownloadMB * 1024 * 1024;
|
|
}
|
|
/**
|
|
* Keeps empty folders across devices with a three-way comparison of folder lists (last sync, this
|
|
* device, the repository). Off with encryption or a folder mapping (names would leak / not map).
|
|
* Returns the new list to upload, if it changed, and records the new baseline.
|
|
*/
|
|
async syncEmptyFolders(mode, foldersSha, scope) {
|
|
if (!this.s.keepEmptyFolders || this.codec.transformsPaths || this.opts.only || this.opts.defer?.size) return null;
|
|
const state = this.host.state;
|
|
let remote = [];
|
|
if (foldersSha) {
|
|
try {
|
|
const parsed = JSON.parse(new TextDecoder().decode(await this.verifiedBlob(foldersSha, FOLDERS_PATH)));
|
|
if (Array.isArray(parsed)) remote = parsed.filter((x) => typeof x === "string" && safePath(x));
|
|
} catch {
|
|
remote = [];
|
|
}
|
|
}
|
|
const base = new Set((state.baseFolders ?? []).filter(scope));
|
|
const local = new Set(this.io.listEmptyFolders(scope));
|
|
const R = new Set(remote.filter(scope));
|
|
const next = new Set(remote);
|
|
if (mode !== "pull") {
|
|
for (const f of local) if (!base.has(f)) next.add(f);
|
|
for (const f of base) {
|
|
if (!local.has(f) && R.has(f)) next.delete(f);
|
|
}
|
|
}
|
|
if (mode !== "push") {
|
|
for (const f of R) {
|
|
if (base.has(f) || local.has(f)) continue;
|
|
if (this.host.windows && portableNameProblem(f)) continue;
|
|
try {
|
|
await this.io.makeFolder(f);
|
|
} catch (e) {
|
|
this.host.log(`Couldn't create empty folder ${f}: ${errMsg(e)}`);
|
|
}
|
|
}
|
|
for (const f of base) {
|
|
if (R.has(f) || !local.has(f)) continue;
|
|
try {
|
|
await this.io.removeEmptyFolder(f);
|
|
} catch (e) {
|
|
this.host.log(`Couldn't remove empty folder ${f}: ${errMsg(e)}`);
|
|
}
|
|
}
|
|
}
|
|
const sorted = (x) => [...x].sort();
|
|
const nextList = sorted(next);
|
|
const changed = JSON.stringify(nextList) !== JSON.stringify(sorted(remote));
|
|
const newBase = mode === "pull" ? sorted(R) : mode === "push" ? nextList.filter((f) => local.has(f) || base.has(f)) : nextList;
|
|
const here = (f) => scope(f) && !(this.host.windows && portableNameProblem(f));
|
|
return { upload: mode !== "pull" && changed ? JSON.stringify(nextList, null, 1) + "\n" : null, base: newBase.filter(here) };
|
|
}
|
|
/**
|
|
* Pushes this device's side of each conflict to a new branch and opens a pull request; only then is
|
|
* the note replaced by the repository's version (the edits live on the branch). If anything fails,
|
|
* falls back to a conflict copy, so nothing is ever lost.
|
|
*/
|
|
async sendConflictsAsPullRequest(head, remote, device, next, report, recordWrite) {
|
|
const items = this.prConflicts;
|
|
this.prConflicts = [];
|
|
const gh = this.gh;
|
|
const d = /* @__PURE__ */ new Date();
|
|
const p2 = (n) => String(n).padStart(2, "0");
|
|
const slug2 = device.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "device";
|
|
const branch = `vault-sync/conflict-${slug2}-${d.getFullYear()}${p2(d.getMonth() + 1)}${p2(d.getDate())}-${p2(d.getHours())}${p2(d.getMinutes())}${p2(d.getSeconds())}`;
|
|
let prUrl = null;
|
|
try {
|
|
await gh.createRef(`refs/heads/${branch}`, head);
|
|
const tree = await gh.getCommitTree(head);
|
|
const upserts = [];
|
|
for (const c of items) {
|
|
const raw = remote.get(c.path)?.raw ?? await this.codec.encodePath(c.path);
|
|
upserts.push({ path: raw, mode: remote.get(c.path)?.mode ?? "100644", load: () => this.codec.encode(c.path, c.local) });
|
|
}
|
|
const list2 = this.hidesNames ? `${items.length} encrypted file(s)` : items.map((c) => `- ${c.path}`).join("\n");
|
|
await gh.commit({ author: this.author(), branch, parent: head, parentTree: tree, message: `${device}: conflicting edits (${items.length})
|
|
|
|
${list2}
|
|
|
|
${this.trailer(device)}`, upserts, deletes: [] });
|
|
prUrl = (await gh.createPullRequest(branch, this.s.branch, `Conflicting edits from ${device}`, `${device} and another device changed the same lines. This branch holds ${device}'s version; review and merge what you need.
|
|
|
|
${list2}`)).url;
|
|
} catch (e) {
|
|
this.host.log(`Pull request for conflicts failed (${errMsg(e)}); keeping both versions as copies instead.`);
|
|
}
|
|
for (const c of items) {
|
|
try {
|
|
await this.assertUnchanged(c.path);
|
|
if (!prUrl) {
|
|
const copy2 = await this.freeCopyPath(c.path, device);
|
|
await this.io.write(copy2, c.local);
|
|
report.conflictCopies.push(copy2);
|
|
}
|
|
await this.io.write(c.path, c.remote);
|
|
await recordWrite(c.path, c.remoteSha, c.remote);
|
|
next[c.path] = c.remoteSha;
|
|
} catch (e) {
|
|
addSkip(report, c.path, "conflictKept", { error: localizeError(e, this.gh.label) }, { error: errMsg(e) });
|
|
}
|
|
}
|
|
if (prUrl) {
|
|
(report.pullRequests ?? (report.pullRequests = [])).push(prUrl);
|
|
this.host.log(`Conflicts sent as a pull request: ${prUrl}`);
|
|
}
|
|
}
|
|
/** Commit trailer: the device, and this plugin's version (the status panel warns about mixed versions). */
|
|
trailer(device) {
|
|
return `Device: ${device}` + (this.host.pluginVersion ? `
|
|
Plugin: ${this.host.pluginVersion}` : "");
|
|
}
|
|
/** Commit author from settings, when both name and email are set. */
|
|
author() {
|
|
const name = (this.s.authorName ?? "").trim();
|
|
const email = (this.s.authorEmail ?? "").trim();
|
|
return name && email ? { name, email } : void 0;
|
|
}
|
|
get gh() {
|
|
return this.pinnedRemote ?? this.host.gh;
|
|
}
|
|
/** Stop at a safe point when the plugin was unloaded, so a reloaded copy never syncs alongside this one. */
|
|
checkAlive() {
|
|
if (this.host.isUnloaded?.()) throw new SyncCancelled("unloaded");
|
|
}
|
|
async runWithRetries(mode, opts) {
|
|
this.acceptRewind = false;
|
|
this.retryBase = {};
|
|
try {
|
|
for (let attempt = 0; ; attempt++) {
|
|
try {
|
|
return await this.runOnce(mode, opts);
|
|
} catch (e) {
|
|
if (e instanceof NotFastForward && attempt < 3) {
|
|
this.host.log("Remote moved during sync (another device pushed). Retrying.");
|
|
continue;
|
|
}
|
|
if (e instanceof StaleRemote) {
|
|
if (attempt < 3) {
|
|
this.host.log(`${this.gh.label} returned an older branch state. Waiting and retrying.`);
|
|
await sleep(2e3 * (attempt + 1));
|
|
continue;
|
|
}
|
|
if (!this.acceptRewind) {
|
|
this.host.log(`The ${this.gh.label} branch was moved back to an earlier commit. Comparing from scratch; nothing will be deleted.`);
|
|
this.acceptRewind = true;
|
|
continue;
|
|
}
|
|
}
|
|
throw e;
|
|
}
|
|
}
|
|
} finally {
|
|
this.retryBase = {};
|
|
}
|
|
}
|
|
async normHash(path, data, sha) {
|
|
if (data.byteLength > EOL_MAX) return void 0;
|
|
const text = asText(path, data);
|
|
if (text === null) return void 0;
|
|
if (!text.includes("\r\n")) return sha;
|
|
return this.codec.storedSha(path, encodeText(text.replace(/\r\n/g, "\n")));
|
|
}
|
|
async gather(initIfEmpty, opts = {}, readOnly = false, how = {}) {
|
|
const state = this.host.state;
|
|
if (state.repoKey !== this.repoKey) {
|
|
this.host.log(`Repository changed to ${this.repoKey}. Starting from a fresh baseline (no deletions).`);
|
|
Object.assign(state, emptyState(this.repoKey));
|
|
}
|
|
const baseScope = this.buildScope();
|
|
const maxBytes = this.s.maxFileSizeMB * 1024 * 1024;
|
|
const skipped = [];
|
|
const skipNotes = [];
|
|
const sink = { skipped, skipNotes };
|
|
const skipPaths = /* @__PURE__ */ new Set();
|
|
const skip = (path, why, params = {}) => {
|
|
addSkip(sink, path, why, params);
|
|
skipPaths.add(path);
|
|
};
|
|
const scope = (p) => baseScope(p) && !skipPaths.has(p);
|
|
for (const p of opts.defer ?? []) skip(p, "deferred");
|
|
for (const p of this.host.frontmatterScope?.()?.unknown ?? []) if (baseScope(p)) skip(p, "frontmatterPending");
|
|
const now = Date.now();
|
|
const changes = this.host.localChanges?.() ?? { full: true, paths: /* @__PURE__ */ new Set() };
|
|
const covered = { full: changes.full, paths: new Set(changes.paths) };
|
|
const full = covered.full || !state.lastFullScan || now - state.lastFullScan > this.s.fullScanMinutes * 6e4;
|
|
const walksDisk = this.s.syncConfigDir || this.s.syncHidden || this.s.useGitignore;
|
|
const selfRepaired = this.io.selfRepaired;
|
|
this.io.selfRepaired = false;
|
|
if (selfRepaired) {
|
|
delete state.cache[`${this.host.app.vault.configDir}/community-plugins.json`];
|
|
state.dirty = true;
|
|
}
|
|
const configDue = walksDisk && (full || selfRepaired || now - state.lastConfigScan > CONFIG_SCAN_MS);
|
|
const cfgPrefix = this.host.app.vault.configDir + "/";
|
|
const onDisk = (p) => p.startsWith(cfgPrefix) || isHiddenPath(p);
|
|
this.host.progress?.(t("p.scanning"));
|
|
const cacheValid = (state.codecFingerprint ?? "") === this.codec.fingerprint;
|
|
const files = this.io.listVault(baseScope);
|
|
const walkConfig = walksDisk && (configDue || !cacheValid);
|
|
if (walkConfig) {
|
|
if (this.s.syncConfigDir) files.push(...await this.io.listConfig(baseScope));
|
|
if (this.s.syncHidden || this.s.useGitignore) files.push(...await this.io.listHidden(baseScope));
|
|
if (this.s.syncHidden && this.s.syncHiddenNested) files.push(...await this.io.listNestedHidden(baseScope, void 0, { full }));
|
|
else if (this.s.useGitignore) files.push(...await this.io.listNestedHidden(baseScope, /* @__PURE__ */ new Set([".gitignore"]), { full }));
|
|
}
|
|
const localShas = /* @__PURE__ */ new Map();
|
|
const cacheNext = {};
|
|
let unknownLocal = false;
|
|
let hashed = 0;
|
|
for (const f of files) {
|
|
if (f.size > maxBytes) {
|
|
skip(f.path, "localTooLarge", { mb: this.s.maxFileSizeMB });
|
|
continue;
|
|
}
|
|
const c = cacheValid ? state.cache[f.path] : void 0;
|
|
if (c && c.m === f.mtime && c.s === f.size && !covered.paths.has(f.path)) {
|
|
cacheNext[f.path] = c;
|
|
localShas.set(f.path, c.h);
|
|
continue;
|
|
}
|
|
const data = await this.io.read(f.path);
|
|
const h = await this.codec.storedSha(f.path, data);
|
|
const n = await this.normHash(f.path, data, h);
|
|
cacheNext[f.path] = n ? { m: f.mtime, s: f.size, h, n } : { m: f.mtime, s: f.size, h };
|
|
localShas.set(f.path, h);
|
|
if (++hashed % 25 === 0) await sleep(0);
|
|
}
|
|
if (walksDisk && !walkConfig) {
|
|
for (const [p, c] of Object.entries(state.cache)) {
|
|
if (!onDisk(p) || !baseScope(p) || localShas.has(p)) continue;
|
|
if (c.s > maxBytes) skip(p, "localTooLarge", { mb: this.s.maxFileSizeMB });
|
|
else {
|
|
cacheNext[p] = c;
|
|
localShas.set(p, c.h);
|
|
}
|
|
}
|
|
for (const p of Object.keys(state.base)) {
|
|
if (onDisk(p) && baseScope(p) && !localShas.has(p) && !skipPaths.has(p) && !state.cache[p]) {
|
|
skipPaths.add(p);
|
|
unknownLocal = true;
|
|
}
|
|
}
|
|
}
|
|
if (!readOnly) {
|
|
if (full) state.lastFullScan = now;
|
|
if (configDue) state.lastConfigScan = now;
|
|
}
|
|
this.host.progress?.(t("p.checking", { host: this.gh.label }));
|
|
let head = await this.gh.getRef(this.s.branch);
|
|
if (!head && (state.head || Object.keys(state.base).length)) {
|
|
throw new SyncError("branchMissing", { branch: this.s.branch, repo: `${this.s.owner}/${this.s.repo}` });
|
|
}
|
|
if (!head && initIfEmpty) head = await this.initRemote();
|
|
let base = Object.keys(this.retryBase).length ? { ...state.base, ...this.retryBase } : state.base;
|
|
const eolSame = /* @__PURE__ */ new Set();
|
|
if (this.s.ignoreLineEndingChanges) {
|
|
for (const [p, l] of localShas) {
|
|
const b = base[p];
|
|
const n = cacheNext[p]?.n;
|
|
if (b && l !== b && n && state.baseNorm?.[p] === n) {
|
|
localShas.set(p, b);
|
|
eolSame.add(p);
|
|
}
|
|
}
|
|
}
|
|
if (head && state.head && head !== state.head) {
|
|
const rel = await this.gh.compare(state.head, head);
|
|
if (rel === "behind" && !this.acceptRewind) throw new StaleRemote();
|
|
if (rel === "behind" || rel === "diverged" || rel === "missing") {
|
|
this.host.log("Remote history was rewritten (force-push?). Comparing from scratch; nothing will be deleted.");
|
|
base = {};
|
|
}
|
|
}
|
|
const baseInScope = Object.keys(state.base).filter((p) => scope(p) && !state.keptMoved?.[p]);
|
|
const unchangedLocal = localShas.size === baseInScope.length && [...localShas].every(([p, h]) => state.base[p] === h);
|
|
const scopeSig = this.scopeSignature();
|
|
const foldersSame = !this.s.keepEmptyFolders || this.codec.transformsPaths || how.mode === "pull" || this.s.mode === "pull" || JSON.stringify(this.io.listEmptyFolders(scope).sort()) === JSON.stringify([...state.baseFolders ?? []].filter(scope).sort());
|
|
if (!how.noFastPath && head && head === state.head && unchangedLocal && foldersSame && !state.dirty && state.scopeSig === scopeSig) {
|
|
return { scope, skipPaths, skipped, skipNotes, localShas, cacheNext, head, treeSha: null, remote: null, remoteShas: localShas, upToDate: true, base, eolSame, covered, remoteOnly: state.remoteOnly ?? {}, scopeSig, unknownLocal, caseRenames: [] };
|
|
}
|
|
const remote = /* @__PURE__ */ new Map();
|
|
const remoteShas = /* @__PURE__ */ new Map();
|
|
const remoteOnly = {};
|
|
let treeSha = null;
|
|
let markerSha = null;
|
|
let markerLegacy = false;
|
|
let foldersSha = null;
|
|
const winSkipped = /* @__PURE__ */ new Set();
|
|
const winSkippedSpots = /* @__PURE__ */ new Set();
|
|
const winBad = [];
|
|
const spot = (p) => `${p.slice(0, Math.max(0, p.lastIndexOf("/")))}|${/\.[^./]*$/.exec(p)?.[0] ?? ""}`;
|
|
this.metaShas = /* @__PURE__ */ new Map();
|
|
this.treePaths = /* @__PURE__ */ new Map();
|
|
this.blobHints = /* @__PURE__ */ new Map();
|
|
const caseRenames = [];
|
|
if (head) {
|
|
treeSha = await this.gh.getCommitTree(head);
|
|
const dsc = this.host.deviceScope?.();
|
|
const deviceMax = (dsc?.maxDownloadMB ?? 0) * 1024 * 1024;
|
|
const pinned = new Set(dsc?.pinned ?? []);
|
|
const fold = (p) => p.normalize("NFC").toLowerCase();
|
|
const lowerLocal = new Map([...localShas.keys()].map((p) => [fold(p), p]));
|
|
const seenLower = /* @__PURE__ */ new Map();
|
|
const listed = [];
|
|
const tree = await this.gh.listTree(treeSha);
|
|
const markerFile = this.markerPath;
|
|
const picked = pickMarker(tree, this.repoSubdir, this.codec.has("enc:"));
|
|
markerSha = picked.sha;
|
|
markerLegacy = picked.legacy;
|
|
if (picked.sha && !picked.legacy) this.metaShas.set(markerFile, picked.sha);
|
|
for (const raw of tree) {
|
|
if (raw.type === "blob") this.treePaths.set(raw.path, raw.sha);
|
|
if (raw.path === FOLDERS_PATH) foldersSha = raw.sha;
|
|
if (raw.path === FOLDERS_PATH) this.metaShas.set(raw.path, raw.sha);
|
|
if (raw.path === MARKER_PATH || raw.path === markerFile) continue;
|
|
if (raw.type !== "blob" || raw.mode !== "100644" && raw.mode !== "100755") continue;
|
|
const vp = this.codec.transformsPaths ? await this.codec.decodePath(raw.path) : raw.path;
|
|
if (vp !== null) listed.push({ raw, vp });
|
|
}
|
|
const remotePaths = new Set(listed.map((x) => x.vp));
|
|
for (const { raw, vp } of listed) {
|
|
const e = { ...raw, path: vp };
|
|
if (!baseScope(e.path)) continue;
|
|
if (!safePath(e.path)) {
|
|
addSkip(sink, e.path, "unsafePath");
|
|
continue;
|
|
}
|
|
if (this.host.windows && portableNameProblem(e.path)) {
|
|
skip(e.path, "windowsName");
|
|
winSkipped.add(e.sha);
|
|
winSkippedSpots.add(spot(e.path));
|
|
winBad.push(e.path);
|
|
continue;
|
|
}
|
|
if ((e.size ?? 0) > maxBytes) {
|
|
skip(e.path, "remoteTooLarge", { mb: this.s.maxFileSizeMB });
|
|
continue;
|
|
}
|
|
const lower = fold(e.path);
|
|
const localTwin = lowerLocal.get(lower);
|
|
if (localTwin && localTwin !== e.path && localTwin.normalize("NFC") === e.path.normalize("NFC") && !remotePaths.has(localTwin) && !seenLower.has(lower)) {
|
|
e.path = localTwin;
|
|
}
|
|
const wasHere = !!state.base[e.path] && !state.remoteOnly?.[e.path];
|
|
if (deviceMax && (e.size ?? 0) > deviceMax && !localShas.has(e.path) && !pinned.has(e.path) && !wasHere) {
|
|
skip(e.path, "onDemand");
|
|
remoteOnly[e.path] = { sha: e.sha, size: e.size ?? 0 };
|
|
continue;
|
|
}
|
|
const other = seenLower.get(lower) ?? (localTwin && localTwin !== e.path ? localTwin : void 0);
|
|
if (other && !seenLower.has(lower) && !state.base[e.path] && state.base[other] && !remotePaths.has(other) && !localShas.has(e.path)) {
|
|
if (how.mode === "push") {
|
|
skip(e.path, "caseRenamedFrom", { other });
|
|
skip(other, "caseRenamedTo", { other: e.path });
|
|
continue;
|
|
}
|
|
caseRenames.push([other, e.path]);
|
|
} else if (other && (seenLower.has(lower) || !state.base[e.path])) {
|
|
skip(e.path, other.normalize("NFC") === e.path.normalize("NFC") ? "unicodeClash" : "caseClash", { other });
|
|
continue;
|
|
}
|
|
seenLower.set(lower, e.path);
|
|
remote.set(e.path, { sha: e.sha, mode: e.mode, raw: raw.path, size: e.size });
|
|
if (head) this.blobHints.set(e.sha, { path: raw.path, ref: head });
|
|
remoteShas.set(e.path, e.sha);
|
|
}
|
|
}
|
|
if (this.host.checkEncryption && !readOnly) this.markerToAdd = await this.host.checkEncryption(head ? markerSha : null);
|
|
else if (this.host.checkEncryption) await this.host.checkEncryption(head ? markerSha : null);
|
|
if (markerLegacy && markerSha && !readOnly && !this.markerToAdd && this.codec.has("enc:")) {
|
|
this.markerToAdd = new TextDecoder().decode(await this.gh.getBlob(markerSha));
|
|
}
|
|
const seen = new Set(state.winSeen ?? []);
|
|
const newSpots = new Set(winBad.filter((p) => !seen.has(p)).map(spot));
|
|
const winKept = {};
|
|
if (winSkipped.size) {
|
|
for (const [p, sha] of Object.entries(base)) {
|
|
if (remoteShas.has(p) || skipPaths.has(p)) continue;
|
|
if (winSkipped.has(sha)) skip(p, "winRenamed");
|
|
else if (newSpots.has(spot(p)) || state.winKept?.[p] && winSkippedSpots.has(spot(p))) {
|
|
skip(p, "winMaybeRenamed");
|
|
winKept[p] = spot(p);
|
|
}
|
|
}
|
|
}
|
|
const win = head ? { seen: winBad, kept: winKept } : void 0;
|
|
if (opts.only) {
|
|
for (const p of /* @__PURE__ */ new Set([...localShas.keys(), ...remoteShas.keys(), ...Object.keys(base)])) if (!opts.only.has(p)) skipPaths.add(p);
|
|
}
|
|
for (const p of skipPaths) {
|
|
localShas.delete(p);
|
|
remoteShas.delete(p);
|
|
remote.delete(p);
|
|
}
|
|
return { scope, skipPaths, skipped, skipNotes, localShas, cacheNext, head, treeSha, remote, remoteShas, upToDate: false, base, eolSame, covered, remoteOnly, scopeSig, unknownLocal, caseRenames, foldersSha, win };
|
|
}
|
|
async initRemote() {
|
|
const repo = await this.gh.getRepo();
|
|
if (!repo) throw new SyncError("repoNotFound", { repo: `${this.s.owner}/${this.s.repo}` });
|
|
const otherHead = repo.default_branch !== this.s.branch ? await this.gh.getRef(repo.default_branch) : null;
|
|
if (otherHead) {
|
|
await this.gh.createRef(`refs/heads/${this.s.branch}`, otherHead);
|
|
this.host.log(`Created branch ${this.s.branch} from ${repo.default_branch}.`);
|
|
} else {
|
|
const content = "# Managed by Vault Sync for Git. Keeps git clients from rewriting line endings.\n* -text\n";
|
|
await this.gh.putFile(".gitattributes", "Initialise vault repository", (0, import_obsidian12.arrayBufferToBase64)(encodeText(content)), this.s.branch);
|
|
this.host.log("Initialised empty repository.");
|
|
}
|
|
const head = await this.gh.getRef(this.s.branch);
|
|
if (!head) throw new SyncError("initFailed");
|
|
return head;
|
|
}
|
|
async runOnce(mode, opts) {
|
|
const host = this.host;
|
|
const state = host.state;
|
|
this.prConflicts = [];
|
|
this.opts = opts;
|
|
this.loadCodec();
|
|
this.markerToAdd = null;
|
|
const report = {
|
|
mode,
|
|
upToDate: false,
|
|
downloaded: [],
|
|
deletedLocal: [],
|
|
uploaded: [],
|
|
deletedRemote: [],
|
|
merged: [],
|
|
renamed: [],
|
|
conflictCopies: [],
|
|
skipped: [],
|
|
errors: [],
|
|
commit: null
|
|
};
|
|
const ctx = await this.gather(mode !== "pull", opts, false, { mode });
|
|
this.checkAlive();
|
|
report.skipped = ctx.skipped;
|
|
report.skipNotes = ctx.skipNotes;
|
|
const cacheNext = ctx.cacheNext;
|
|
const maxBytes = this.s.maxFileSizeMB * 1024 * 1024;
|
|
if (ctx.upToDate) {
|
|
report.upToDate = true;
|
|
state.cache = cacheNext;
|
|
state.codecFingerprint = this.codec.fingerprint;
|
|
state.lastSync = Date.now();
|
|
await host.saveState();
|
|
host.markLocalChangesSynced?.(ctx.covered);
|
|
return report;
|
|
}
|
|
const remote = ctx.remote ?? /* @__PURE__ */ new Map();
|
|
let dirtyNext = false;
|
|
let behind = ctx.unknownLocal || !!opts.only || !!opts.defer?.size;
|
|
const caseRenames = await this.renameCaseFolders(ctx, cacheNext, report);
|
|
for (const [from, to] of caseRenames) {
|
|
try {
|
|
const c = cacheNext[from];
|
|
const st = await this.io.stat(from);
|
|
if (!c || !st || st.mtime !== c.m || st.size !== c.s) throw new EditedDuringSync(from);
|
|
await this.io.rename(from, to);
|
|
const moved = await this.io.stat(to);
|
|
if (moved) cacheNext[to] = { ...c, m: moved.mtime, s: moved.size };
|
|
delete cacheNext[from];
|
|
this.rekey(ctx, from, to);
|
|
report.renamed.push(`${from} \u2192 ${to}`);
|
|
} catch (e) {
|
|
for (const p of [from, to]) {
|
|
ctx.skipPaths.add(p);
|
|
ctx.localShas.delete(p);
|
|
ctx.remoteShas.delete(p);
|
|
remote.delete(p);
|
|
}
|
|
addSkip(report, to, "caseRenameFailed", { from, error: localizeError(e, this.gh.label) }, { from, error: errMsg(e) });
|
|
behind = true;
|
|
}
|
|
}
|
|
const plan = decide(ctx.base, ctx.localShas, ctx.remoteShas, mode, ctx.scope, { pushKeepsRemote: !this.host.backupMirror });
|
|
let decisions = await this.similarRenames(detectRenames(plan.decisions, ctx.base, ctx.localShas, ctx.remoteShas), ctx.base, ctx.localShas, ctx.remoteShas, { cache: cacheNext, remote });
|
|
const next = { ...plan.settled };
|
|
const keepBase = (p) => {
|
|
if (ctx.base[p]) next[p] = ctx.base[p];
|
|
else delete next[p];
|
|
};
|
|
for (const p of ctx.skipPaths) if (ctx.base[p]) next[p] = ctx.base[p];
|
|
decisions = await this.keepMovedOutOfScope(decisions, ctx.base, report, (p) => {
|
|
next[p] = ctx.base[p];
|
|
(state.keptMoved ?? (state.keptMoved = {}))[p] = ctx.base[p];
|
|
});
|
|
if ("win" in ctx && ctx.win) {
|
|
state.winSeen = ctx.win.seen.length ? ctx.win.seen : void 0;
|
|
state.winKept = Object.keys(ctx.win.kept).length ? ctx.win.kept : void 0;
|
|
}
|
|
for (const p of Object.keys(state.keptMoved ?? {})) {
|
|
if (ctx.localShas.has(p) || !ctx.base[p] || ctx.remoteShas.get(p) !== state.keptMoved[p]) delete state.keptMoved[p];
|
|
}
|
|
const delLocal = decisions.filter((d) => d.kind === "delete-local").map((d) => d.path);
|
|
const delRemote = decisions.filter((d) => d.kind === "delete-remote" && !d.renamedTo).map((d) => d.path);
|
|
const total = delLocal.length + delRemote.length;
|
|
const baseCount = Object.keys(state.base).length;
|
|
const limit = Math.max(this.s.deleteGuardMin, Math.ceil(baseCount * this.s.deleteGuardPercent / 100));
|
|
if (this.s.deleteGuardEnabled && total > limit) {
|
|
const choice = await host.confirmDeletes(delLocal, delRemote);
|
|
if (choice === "cancel") throw new SyncCancelled("guardCancelled");
|
|
if (choice === "skip") {
|
|
report.guardKept = [...delLocal, ...delRemote];
|
|
for (const d of decisions) {
|
|
if (d.kind === "delete-local" || d.kind === "delete-remote") keepBase(d.path);
|
|
}
|
|
decisions = decisions.filter((d) => d.kind !== "delete-local" && d.kind !== "delete-remote");
|
|
behind = true;
|
|
}
|
|
}
|
|
const scanned = { ...cacheNext };
|
|
let editedDuringSync = false;
|
|
this.assertUnchanged = async (path) => {
|
|
const st = await this.io.stat(path);
|
|
const c = scanned[path];
|
|
const changed = c ? !st || st.mtime !== c.m || st.size !== c.s : st !== null;
|
|
if (changed) throw new EditedDuringSync(path);
|
|
};
|
|
const uploads = [];
|
|
const remoteDeletes = [];
|
|
const renames = [];
|
|
const device = host.deviceName();
|
|
const recordWrite = async (path, sha, data) => {
|
|
const st = await this.io.stat(path);
|
|
if (!st) return;
|
|
const n = data ? await this.normHash(path, data, sha) : void 0;
|
|
cacheNext[path] = n ? { m: st.mtime, s: st.size, h: sha, n } : { m: st.mtime, s: st.size, h: sha };
|
|
};
|
|
const queueUpload = async (path, data, sha) => {
|
|
const hash = sha ?? await this.codec.storedSha(path, data ?? await this.io.read(path));
|
|
uploads.push({ path, data, sha: hash, mode: remote.get(path)?.mode ?? "100644" });
|
|
};
|
|
const fail3 = (path, e) => {
|
|
if (e instanceof EditedDuringSync) {
|
|
editedDuringSync = true;
|
|
addSkip(report, path, "editedDuringSync");
|
|
keepBase(path);
|
|
return;
|
|
}
|
|
report.errors.push(`${path}: ${errMsg(e)}`);
|
|
host.log(`Error on ${path}: ${errMsg(e)}`);
|
|
keepBase(path);
|
|
};
|
|
const simple = decisions.filter((d) => d.kind !== "conflict" && d.kind !== "rename-merge");
|
|
let done = 0;
|
|
const downloads = simple.filter((d) => d.kind === "download" || d.kind === "adopt-remote-edit").length;
|
|
await this.io.deferPruning(() => pool(simple, 4, async (d) => {
|
|
try {
|
|
switch (d.kind) {
|
|
case "move-local": {
|
|
await this.assertUnchanged(d.path);
|
|
if (!await this.io.stat(d.from)) {
|
|
const data = await this.blob(d.path, d.sha);
|
|
await this.io.write(d.path, data);
|
|
await recordWrite(d.path, d.sha, data);
|
|
} else {
|
|
const data = d.replace ? await this.blob(d.path, d.sha) : null;
|
|
await this.assertUnchanged(d.from);
|
|
await this.io.rename(d.from, d.path);
|
|
if (data) {
|
|
await this.io.write(d.path, data);
|
|
await recordWrite(d.path, d.sha, data);
|
|
} else {
|
|
const old = cacheNext[d.from];
|
|
const st = await this.io.stat(d.path);
|
|
if (st) cacheNext[d.path] = { m: st.mtime, s: st.size, h: d.upload ?? d.sha, ...old?.n ? { n: old.n } : {} };
|
|
}
|
|
}
|
|
delete cacheNext[d.from];
|
|
delete next[d.from];
|
|
next[d.path] = d.sha;
|
|
if (d.upload) await queueUpload(d.path, void 0, d.upload);
|
|
report.renamed.push(`${d.from} \u2192 ${d.path}`);
|
|
break;
|
|
}
|
|
case "adopt-remote-edit": {
|
|
const data = await this.blob(d.path, d.sha);
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.write(d.path, data);
|
|
await recordWrite(d.path, d.sha, data);
|
|
await queueUpload(d.path, data, d.sha);
|
|
remoteDeletes.push(d.from);
|
|
renames.push(`${d.from} \u2192 ${d.path}`);
|
|
report.renamed.push(`${d.from} \u2192 ${d.path} (with edits from ${this.gh.label})`);
|
|
host.progress?.(t("p.downloading", { done: ++done, total: downloads }));
|
|
break;
|
|
}
|
|
case "download": {
|
|
const raw = await this.verifiedBlob(d.sha, d.path);
|
|
const ptr = parsePointer(raw);
|
|
if (ptr && maxBytes > 0 && ptr.size > maxBytes) {
|
|
addSkip(report, d.path, "remoteTooLarge", { mb: this.s.maxFileSizeMB });
|
|
ctx.skipPaths.add(d.path);
|
|
keepBase(d.path);
|
|
break;
|
|
}
|
|
const limit2 = this.downloadLimit(d.path);
|
|
if (ptr && limit2 && ptr.size > limit2) {
|
|
addSkip(report, d.path, "onDemand");
|
|
if (!await this.io.stat(d.path)) ctx.remoteOnly[d.path] = { sha: d.sha, size: ptr.size };
|
|
keepBase(d.path);
|
|
break;
|
|
}
|
|
const data = await this.codec.decode(d.path, raw);
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.write(d.path, data);
|
|
await recordWrite(d.path, d.sha, data);
|
|
next[d.path] = d.sha;
|
|
report.downloaded.push(d.path);
|
|
host.progress?.(t("p.downloading", { done: ++done, total: downloads }));
|
|
break;
|
|
}
|
|
case "delete-local":
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.remove(d.path);
|
|
delete next[d.path];
|
|
delete cacheNext[d.path];
|
|
report.deletedLocal.push(d.path);
|
|
break;
|
|
case "upload":
|
|
if (d.keepRemote) await this.keepRemoteCopy(d.path, d.keepRemote, device, remote, report, queueUpload, recordWrite);
|
|
await queueUpload(d.path, void 0, d.sha);
|
|
if (d.renamedFrom) {
|
|
renames.push(`${d.renamedFrom} \u2192 ${d.path}`);
|
|
report.renamed.push(`${d.renamedFrom} \u2192 ${d.path}`);
|
|
}
|
|
break;
|
|
case "delete-remote":
|
|
remoteDeletes.push(d.path);
|
|
break;
|
|
}
|
|
} catch (e) {
|
|
fail3(d.path, e);
|
|
if ((d.kind === "move-local" || d.kind === "adopt-remote-edit") && ctx.base[d.from]) next[d.from] = ctx.base[d.from];
|
|
}
|
|
}));
|
|
for (const d of decisions) {
|
|
if (d.kind !== "conflict" && d.kind !== "rename-merge") continue;
|
|
try {
|
|
if (d.kind === "conflict") await this.resolveConflict(d, mode, device, next, report, queueUpload, recordWrite);
|
|
else await this.renameMerge(d, device, next, cacheNext, report, remoteDeletes, renames, queueUpload, recordWrite);
|
|
} catch (e) {
|
|
fail3(d.path, e);
|
|
if (d.kind === "rename-merge" && ctx.base[d.from]) next[d.from] = ctx.base[d.from];
|
|
}
|
|
}
|
|
const foldersUpdate = await this.syncEmptyFolders(mode, ctx.foldersSha, ctx.scope).catch((e) => {
|
|
host.log(`Empty folders not synced: ${errMsg(e)}`);
|
|
return null;
|
|
});
|
|
for (let i = uploads.length - 1; i >= 0; i--) {
|
|
const u = uploads[i];
|
|
if (remote.get(u.path)?.sha === u.sha) {
|
|
next[u.path] = u.sha;
|
|
uploads.splice(i, 1);
|
|
}
|
|
}
|
|
let newHead = ctx.head;
|
|
const folderUpsert = foldersUpdate?.upload ?? null;
|
|
if (mode !== "pull" && (uploads.length || remoteDeletes.length || folderUpsert !== null) && ctx.head && ctx.treeSha) {
|
|
this.checkAlive();
|
|
const pushed2 = await this.push(ctx.head, ctx.treeSha, uploads, remoteDeletes, remote, device, renames, folderUpsert);
|
|
newHead = pushed2.sha;
|
|
if (!pushed2.fastForward) dirtyNext = true;
|
|
report.commit = newHead;
|
|
const renamedTargets = new Set(renames.map((r) => r.split(" \u2192 ")[1]));
|
|
const renamedSources = new Set(renames.map((r) => r.split(" \u2192 ")[0]));
|
|
for (const u of uploads) {
|
|
next[u.path] = u.sha;
|
|
if (!report.merged.includes(u.path) && !report.conflictCopies.includes(u.path) && !renamedTargets.has(u.path)) report.uploaded.push(u.path);
|
|
}
|
|
for (const p of remoteDeletes) {
|
|
delete next[p];
|
|
if (!renamedSources.has(p)) report.deletedRemote.push(p);
|
|
}
|
|
}
|
|
if (this.prConflicts.length && newHead) await this.sendConflictsAsPullRequest(newHead, remote, device, next, report, recordWrite);
|
|
const pushed = new Set(report.commit ? [...uploads.map((u) => u.path), ...remoteDeletes] : []);
|
|
for (const p of /* @__PURE__ */ new Set([...ctx.remoteShas.keys(), ...Object.keys(next)])) {
|
|
if (behind) break;
|
|
if (ctx.skipPaths.has(p) || ctx.remoteOnly[p] || pushed.has(p)) continue;
|
|
if (next[p] !== ctx.remoteShas.get(p)) behind = true;
|
|
}
|
|
const baseNorm = {};
|
|
for (const [p, sha] of Object.entries(next)) {
|
|
const c = cacheNext[p];
|
|
if (c?.n && (c.h === sha || ctx.eolSame.has(p))) baseNorm[p] = c.n;
|
|
else if (state.baseNorm?.[p] && state.base[p] === sha) baseNorm[p] = state.baseNorm[p];
|
|
}
|
|
state.head = newHead;
|
|
state.base = next;
|
|
if (foldersUpdate) state.baseFolders = foldersUpdate.base;
|
|
state.remoteOnly = ctx.remoteOnly;
|
|
state.scopeSig = ctx.scopeSig;
|
|
state.codecFingerprint = this.codec.fingerprint;
|
|
state.baseNorm = baseNorm;
|
|
state.cache = cacheNext;
|
|
state.lastSync = Date.now();
|
|
state.dirty = dirtyNext || behind || editedDuringSync || report.errors.length > 0;
|
|
await host.saveState();
|
|
host.markLocalChangesSynced?.(ctx.covered);
|
|
return report;
|
|
}
|
|
/**
|
|
* Push mode, both sides changed `path`: saves the repository's version as a conflict copy next to it
|
|
* (uploaded too, so every device sees both), before this device's version replaces it in the
|
|
* repository. The local file itself is left alone. A version too large for this device stays in the
|
|
* repository's history instead.
|
|
*/
|
|
async keepRemoteCopy(path, sha, device, remote, report, queueUpload, recordWrite) {
|
|
const maxBytes = this.s.maxFileSizeMB * 1024 * 1024;
|
|
const limit = this.downloadLimit(path);
|
|
const listed = remote.get(path)?.size ?? 0;
|
|
const raw = limit && listed > limit ? null : await this.verifiedBlob(sha, path);
|
|
const ptr = raw ? parsePointer(raw) : null;
|
|
const size = ptr ? ptr.size : listed;
|
|
if (!raw || maxBytes > 0 && size > maxBytes || limit && size > limit) {
|
|
addSkip(report, path, "pushCopyTooLarge", { host: this.gh.label });
|
|
this.host.log(`Push only: ${path} changed in ${this.gh.label} too; its version is too large to copy here and stays in the repository's history.`);
|
|
return;
|
|
}
|
|
const data = await this.codec.decode(path, raw);
|
|
const copy2 = await this.freeCopyPath(path, this.gh.label);
|
|
await this.io.write(copy2, data);
|
|
const copySha = await this.codec.storedSha(copy2, data);
|
|
await recordWrite(copy2, copySha, data);
|
|
await queueUpload(copy2, data, copySha);
|
|
report.conflictCopies.push(copy2);
|
|
this.retryBase[path] = sha;
|
|
this.host.log(`Push only: ${path} changed here and in ${this.gh.label}; uploaded this device's version (${device}) and kept the ${this.gh.label} version as "${copy2}".`);
|
|
}
|
|
/** One side renamed (and edited) a file that the other side edited: merge both under the new name. */
|
|
async renameMerge(d, device, next, cacheNext, report, remoteDeletes, renames, queueUpload, recordWrite) {
|
|
const localPath = d.side === "remote" ? d.from : d.path;
|
|
await this.assertUnchanged(localPath);
|
|
if (d.side === "remote") await this.assertUnchanged(d.path);
|
|
const baseText = asText(d.from, await this.blob(d.from, d.base));
|
|
const localData = await this.io.read(localPath);
|
|
const remoteData = await this.blob(d.side === "remote" ? d.path : d.from, d.remote);
|
|
const localText = asText(localPath, localData);
|
|
const remoteText = asText(d.path, remoteData);
|
|
const res = baseText !== null && localText !== null && remoteText !== null ? merge3(baseText, localText, remoteText, { local: `this device (${device})`, remote: this.gh.label }) : null;
|
|
if (res?.clean) {
|
|
const merged = encodeText(res.text);
|
|
const sha = await this.codec.storedSha(d.path, merged);
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.write(d.path, merged);
|
|
await recordWrite(d.path, sha, merged);
|
|
if (d.side === "remote") {
|
|
await this.assertUnchanged(d.from);
|
|
await this.io.remove(d.from);
|
|
delete cacheNext[d.from];
|
|
}
|
|
await queueUpload(d.path, merged, sha);
|
|
report.merged.push(d.path);
|
|
} else {
|
|
const copy2 = await this.freeCopyPath(d.path, d.side === "remote" ? device : this.gh.label);
|
|
const keep = d.side === "remote" ? remoteData : localData;
|
|
const other = d.side === "remote" ? localData : remoteData;
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.write(d.path, keep);
|
|
const keepSha = await this.codec.storedSha(d.path, keep);
|
|
await recordWrite(d.path, keepSha, keep);
|
|
await this.io.write(copy2, other);
|
|
const copySha = await this.codec.storedSha(copy2, other);
|
|
await recordWrite(copy2, copySha, other);
|
|
if (d.side === "remote") {
|
|
await this.assertUnchanged(d.from);
|
|
await this.io.remove(d.from);
|
|
delete cacheNext[d.from];
|
|
}
|
|
await queueUpload(d.path, keep, keepSha);
|
|
await queueUpload(copy2, other, copySha);
|
|
report.conflictCopies.push(copy2);
|
|
}
|
|
delete next[d.from];
|
|
this.retryBase[d.side === "remote" ? d.path : d.from] = d.remote;
|
|
if (d.side === "local") remoteDeletes.push(d.from);
|
|
renames.push(`${d.from} \u2192 ${d.path}`);
|
|
report.renamed.push(`${d.from} \u2192 ${d.path} (renamed and edited on both sides, merged)`);
|
|
this.host.log(`${d.from} was renamed to ${d.path} while also edited elsewhere: ${res?.clean ? "merged both edits" : "kept both versions"}.`);
|
|
}
|
|
async resolveConflict(d, mode, device, next, report, queueUpload, recordWrite) {
|
|
const host = this.host;
|
|
await this.assertUnchanged(d.path);
|
|
const localData = await this.io.read(d.path);
|
|
const remoteData = await this.blob(d.path, d.remote);
|
|
const localText = asText(d.path, localData);
|
|
const remoteText = asText(d.path, remoteData);
|
|
const writeRemote = async () => {
|
|
await this.io.write(d.path, remoteData);
|
|
await recordWrite(d.path, d.remote, remoteData);
|
|
next[d.path] = d.remote;
|
|
};
|
|
const keepBoth = async (uploadCopy) => {
|
|
await this.assertUnchanged(d.path);
|
|
if (uploadCopy && this.gh.createPullRequest && this.host.conflictsAsPullRequest?.()) {
|
|
this.prConflicts.push({ path: d.path, local: localData, remote: remoteData, remoteSha: d.remote });
|
|
if (d.base) next[d.path] = d.base;
|
|
return;
|
|
}
|
|
const copy2 = await this.freeCopyPath(d.path, device);
|
|
await this.io.write(copy2, localData);
|
|
const copySha = await this.codec.storedSha(copy2, localData);
|
|
await recordWrite(copy2, copySha, localData);
|
|
await writeRemote();
|
|
if (uploadCopy) await queueUpload(copy2, localData, copySha);
|
|
report.conflictCopies.push(copy2);
|
|
host.log(`Conflict on ${d.path}: kept both, your version saved as "${copy2}".`);
|
|
};
|
|
if (mode === "pull" && d.path === `${this.host.app.vault.configDir}/community-plugins.json`) return writeRemote();
|
|
if (mode === "pull") return keepBoth(false);
|
|
const replaceWithRemote = async () => {
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.removeRecoverable(d.path);
|
|
await writeRemote();
|
|
};
|
|
if (!d.base && this.opts.firstSyncPrefer === "remote") return void await replaceWithRemote();
|
|
if (!d.base && this.opts.firstSyncPrefer === "local") return void await queueUpload(d.path, localData);
|
|
if (d.base && localText !== null && remoteText !== null && this.s.conflictStrategy !== "local" && this.s.conflictStrategy !== "remote") {
|
|
const b = asText(d.path, await this.blob(d.path, d.base));
|
|
const smart = b === null ? null : smartMerge(d.path, b, localText, remoteText, { local: `this device (${device})`, remote: this.gh.label });
|
|
if (smart?.clean) {
|
|
const merged = encodeText(smart.text);
|
|
const sha = await this.codec.storedSha(d.path, merged);
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.write(d.path, merged);
|
|
await recordWrite(d.path, sha, merged);
|
|
await queueUpload(d.path, merged, sha);
|
|
this.retryBase[d.path] = d.remote;
|
|
report.merged.push(d.path);
|
|
host.log(`Merged ${d.path} (${smart.kind}-aware merge).`);
|
|
return;
|
|
}
|
|
}
|
|
let strategy = this.s.conflictStrategy;
|
|
if (strategy === "ask") {
|
|
const choice = await host.askConflict({
|
|
path: d.path,
|
|
remoteLabel: this.gh.label,
|
|
localText,
|
|
remoteText,
|
|
localSize: localData.byteLength,
|
|
remoteSize: remoteData.byteLength
|
|
});
|
|
if (typeof choice === "object") {
|
|
const merged = encodeText(choice.custom);
|
|
const sha = await this.codec.storedSha(d.path, merged);
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.write(d.path, merged);
|
|
await recordWrite(d.path, sha, merged);
|
|
await queueUpload(d.path, merged, sha);
|
|
this.retryBase[d.path] = d.remote;
|
|
report.merged.push(d.path);
|
|
host.log(`Conflict on ${d.path}: resolved change by change.`);
|
|
return;
|
|
}
|
|
strategy = choice;
|
|
}
|
|
switch (strategy) {
|
|
case "local":
|
|
await queueUpload(d.path, localData);
|
|
host.log(`Conflict on ${d.path}: kept this device's version.`);
|
|
return;
|
|
case "remote":
|
|
await replaceWithRemote();
|
|
host.log(`Conflict on ${d.path}: took the ${this.gh.label} version.`);
|
|
return;
|
|
case "keep-both":
|
|
return keepBoth(true);
|
|
case "auto":
|
|
case "markers": {
|
|
if (localText === null || remoteText === null) return keepBoth(true);
|
|
if (!d.base && strategy === "auto") return keepBoth(true);
|
|
let baseText = "";
|
|
if (d.base) {
|
|
const b = asText(d.path, await this.blob(d.path, d.base));
|
|
if (b === null) return keepBoth(true);
|
|
baseText = b;
|
|
}
|
|
const res = merge3(baseText, localText, remoteText, { local: `this device (${device})`, remote: this.gh.label });
|
|
if (!res || !res.clean && strategy === "auto") return keepBoth(true);
|
|
const merged = encodeText(res.text);
|
|
await this.assertUnchanged(d.path);
|
|
await this.io.write(d.path, merged);
|
|
await recordWrite(d.path, await this.codec.storedSha(d.path, merged), merged);
|
|
await queueUpload(d.path, merged);
|
|
this.retryBase[d.path] = d.remote;
|
|
report.merged.push(d.path);
|
|
host.log(
|
|
res.clean ? `Merged changes from both sides in ${d.path}.` : `Merged ${d.path} with ${res.conflicts} conflict marker block(s). Search for "<<<<<<<".`
|
|
);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
async push(head, baseTree, uploads, deletes, remote, device, renames = [], foldersJson = null) {
|
|
const codec = this.codec;
|
|
const upserts = [];
|
|
for (const u of uploads) {
|
|
upserts.push({
|
|
path: remote.get(u.path)?.raw ?? await codec.encodePath(u.path),
|
|
mode: u.mode,
|
|
load: async () => {
|
|
const plain = u.data ?? await this.io.read(u.path);
|
|
u.data = void 0;
|
|
const stored = await codec.encode(u.path, plain);
|
|
u.sha = await gitBlobSha(stored);
|
|
return stored;
|
|
},
|
|
// Inline text is byte-exact whenever the stored bytes are valid UTF-8 (asText checks).
|
|
text: (b) => asText(u.path, b)
|
|
});
|
|
}
|
|
if (this.markerToAdd) {
|
|
const content = this.markerToAdd;
|
|
upserts.push({ path: this.markerPath, mode: "100644", load: async () => encodeText(content), text: () => content });
|
|
}
|
|
if (foldersJson !== null) upserts.push({ path: FOLDERS_PATH, mode: "100644", load: async () => encodeText(foldersJson), text: () => foldersJson });
|
|
const rawDeletes = [];
|
|
for (const p of deletes) rawDeletes.push(remote.get(p)?.raw ?? await codec.encodePath(p));
|
|
const res = await this.gh.commit({
|
|
author: this.author(),
|
|
branch: this.s.branch,
|
|
parent: head,
|
|
parentTree: baseTree,
|
|
message: this.commitMessage(uploads, deletes, device, renames),
|
|
upserts,
|
|
deletes: rawDeletes,
|
|
// Metadata files too: hosts that create-or-update per file (GitLab, Gitea) must update them.
|
|
existing: new Map([...this.treePaths, ...[...remote.values()].map((e) => [e.raw, e.sha]), ...this.metaShas]),
|
|
progress: (done, total) => this.host.progress?.(t("p.uploading", { done, total }))
|
|
});
|
|
this.host.log(`Pushed commit ${res.sha.slice(0, 7)} (${uploads.length} changed, ${deletes.length} deleted).`);
|
|
return res;
|
|
}
|
|
/**
|
|
* After switching an existing repository to encryption, the old unencrypted files are still there
|
|
* (sync ignores them). This deletes them in one commit. Their history keeps old copies.
|
|
*/
|
|
/**
|
|
* Re-encrypts every encrypted file of the repository in the newer content format (bound to its
|
|
* path) and publishes the new marker, in one commit. `next` is this vault's codec with the new
|
|
* encryption layer; names don't change (they use the same key). Files that aren't encrypted are
|
|
* left alone. Returns how many files were re-encrypted.
|
|
*/
|
|
async upgradeEncryption(next, markerJson) {
|
|
this.loadCodec();
|
|
if (!this.codec.has("enc:")) throw new SyncError("encryptionOff");
|
|
const gh = this.gh;
|
|
const head = await gh.getRef(this.s.branch);
|
|
if (!head) return 0;
|
|
const tree = await gh.getCommitTree(head);
|
|
const sub = this.repoSubdir;
|
|
const current = this.codec;
|
|
const upserts = [];
|
|
const entries2 = await gh.listTree(tree);
|
|
for (const e of entries2) {
|
|
if (e.type !== "blob" || e.path === MARKER_PATH || e.path === this.markerPath || e.path === ".gitattributes" || e.path === FOLDERS_PATH) continue;
|
|
if (sub && !e.path.startsWith(sub)) continue;
|
|
const vp = await current.decodePath(e.path);
|
|
if (vp === null) continue;
|
|
upserts.push({
|
|
path: e.path,
|
|
mode: e.mode,
|
|
// Read when sent (bounded memory): decrypt as stored, encrypt bound to its path.
|
|
load: async () => next.encode(vp, await current.decode(vp, await this.verifiedBlob(e.sha, vp)))
|
|
});
|
|
}
|
|
upserts.push({ path: this.markerPath, mode: "100644", load: async () => encodeText(markerJson), text: () => markerJson });
|
|
const device = this.host.deviceName();
|
|
const n = upserts.length - 1;
|
|
await gh.commit({
|
|
author: this.author(),
|
|
branch: this.s.branch,
|
|
parent: head,
|
|
parentTree: tree,
|
|
message: `${device}: upgrade end-to-end encryption (${n} file(s) re-encrypted)
|
|
|
|
${this.trailer(device)}`,
|
|
upserts,
|
|
deletes: [],
|
|
existing: new Map(entries2.filter((x) => x.type === "blob").map((x) => [x.path, x.sha])),
|
|
progress: (done, total) => this.host.progress?.(t("p.uploading", { done, total }))
|
|
});
|
|
this.host.log(`Upgraded end-to-end encryption: ${n} files re-encrypted bound to their paths.`);
|
|
return n;
|
|
}
|
|
async removeUnencryptedFiles(confirm) {
|
|
this.loadCodec();
|
|
if (!this.codec.has("enc:")) throw new SyncError("encryptionOff");
|
|
const gh = this.gh;
|
|
const head = await gh.getRef(this.s.branch);
|
|
if (!head) return [];
|
|
const tree = await gh.getCommitTree(head);
|
|
const foreign = [];
|
|
const sub = this.repoSubdir;
|
|
for (const e of await gh.listTree(tree)) {
|
|
if (e.type !== "blob" || e.path === MARKER_PATH || e.path === this.markerPath || e.path === ".gitattributes") continue;
|
|
if (sub && !e.path.startsWith(sub)) continue;
|
|
if (await this.codec.decodePath(e.path) === null) foreign.push(e.path);
|
|
}
|
|
if (!foreign.length) return [];
|
|
if (!await confirm(foreign)) throw new SyncCancelled();
|
|
const device = this.host.deviceName();
|
|
await gh.commit({
|
|
author: this.author(),
|
|
branch: this.s.branch,
|
|
parent: head,
|
|
parentTree: tree,
|
|
message: `${device}: remove ${foreign.length} unencrypted file(s)
|
|
|
|
${this.trailer(device)}`,
|
|
upserts: [],
|
|
deletes: foreign
|
|
});
|
|
this.host.log(`Removed ${foreign.length} unencrypted files from the repository.`);
|
|
return foreign;
|
|
}
|
|
/**
|
|
* Remove local copies of files this device doesn't need (outside its device scope, or above its
|
|
* download limit) — only when the exact same content is safely on GitHub.
|
|
*/
|
|
async freeUpSpace(confirm) {
|
|
const state = this.host.state;
|
|
const shared = this.buildScope(false);
|
|
const mine = this.buildScope(true);
|
|
const max = (this.host.deviceScope?.().maxDownloadMB ?? 0) * 1024 * 1024;
|
|
const pinned = new Set(this.host.deviceScope?.().pinned ?? []);
|
|
this.loadCodec();
|
|
const head = await this.gh.getRef(this.s.branch);
|
|
if (!head) throw new SyncError("branchEmpty");
|
|
const remote = /* @__PURE__ */ new Map();
|
|
for (const [p, e] of await this.filesAt(head, shared)) remote.set(p, e.sha);
|
|
const plan = { files: [], bytes: 0 };
|
|
const fm = this.host.frontmatterScope?.();
|
|
for (const f of this.io.listVault(shared)) {
|
|
if (fm?.out.has(f.path) || fm?.unknown.has(f.path)) continue;
|
|
if (mine(f.path) && !(max && f.size > max && !pinned.has(f.path))) continue;
|
|
const r = remote.get(f.path);
|
|
if (!r) continue;
|
|
const c = state.cache[f.path];
|
|
const h = c && c.m === f.mtime && c.s === f.size ? c.h : await this.codec.storedSha(f.path, await this.io.read(f.path));
|
|
if (h !== r) continue;
|
|
plan.files.push(f.path);
|
|
plan.bytes += f.size;
|
|
}
|
|
if (!plan.files.length) return plan;
|
|
if (!await confirm(plan)) throw new SyncCancelled();
|
|
for (const p of plan.files) {
|
|
await this.io.remove(p);
|
|
delete state.cache[p];
|
|
delete state.base[p];
|
|
delete state.baseNorm[p];
|
|
}
|
|
state.dirty = true;
|
|
await this.host.saveState();
|
|
this.host.log(`Freed ${(plan.bytes / 1048576).toFixed(1)} MB: removed ${plan.files.length} local copies that are safe in the repository.`);
|
|
return plan;
|
|
}
|
|
/**
|
|
* Make this device match GitHub exactly. Files that would be overwritten or removed are moved
|
|
* to the trash first, so local-only work stays recoverable.
|
|
*/
|
|
async resetToRemote(confirm) {
|
|
const state = this.host.state;
|
|
this.loadCodec();
|
|
const ctx = await this.gather(false, {}, true, { noFastPath: true });
|
|
const head = ctx.head;
|
|
if (!head) throw new SyncError("resetEmpty");
|
|
for (const [from, to] of ctx.caseRenames) {
|
|
this.rekey(ctx, from, to);
|
|
if (ctx.cacheNext[from]) ctx.cacheNext[to] = ctx.cacheNext[from];
|
|
}
|
|
const remoteShas = ctx.remoteShas;
|
|
const plan = { overwrite: [], download: [], remove: [] };
|
|
for (const p of /* @__PURE__ */ new Set([...ctx.localShas.keys(), ...remoteShas.keys()])) {
|
|
const l = ctx.localShas.has(p) ? ctx.cacheNext[p]?.h ?? ctx.localShas.get(p) : void 0;
|
|
const r = remoteShas.get(p);
|
|
if (r && l && l !== r) plan.overwrite.push(p);
|
|
else if (r && !l) plan.download.push(p);
|
|
else if (!r && l) plan.remove.push(p);
|
|
}
|
|
if (!plan.overwrite.length && !plan.download.length && !plan.remove.length) return plan;
|
|
if (!await confirm(plan)) throw new SyncCancelled("resetCancelled");
|
|
const cacheNext = ctx.cacheNext;
|
|
for (const [from, to] of ctx.caseRenames) {
|
|
await this.io.rename(from, to);
|
|
delete cacheNext[from];
|
|
delete cacheNext[to];
|
|
}
|
|
const write = async (p) => {
|
|
const sha = remoteShas.get(p);
|
|
const data = await this.blob(p, sha);
|
|
await this.io.write(p, data);
|
|
const st = await this.io.stat(p);
|
|
const n = await this.normHash(p, data, sha);
|
|
if (st) cacheNext[p] = n ? { m: st.mtime, s: st.size, h: sha, n } : { m: st.mtime, s: st.size, h: sha };
|
|
};
|
|
await this.io.deferPruning(async () => {
|
|
await pool(plan.overwrite, 4, async (p) => {
|
|
await this.io.removeRecoverable(p);
|
|
await write(p);
|
|
});
|
|
await pool(plan.download, 4, write);
|
|
for (const p of plan.remove) {
|
|
await this.io.removeRecoverable(p);
|
|
delete cacheNext[p];
|
|
}
|
|
});
|
|
const base = {};
|
|
for (const [p, sha] of remoteShas) base[p] = sha;
|
|
for (const p of ctx.skipPaths) if (ctx.base[p]) base[p] = ctx.base[p];
|
|
state.head = head;
|
|
state.base = base;
|
|
state.baseNorm = {};
|
|
for (const [p, sha] of Object.entries(base)) if (cacheNext[p]?.h === sha && cacheNext[p].n) state.baseNorm[p] = cacheNext[p].n;
|
|
state.cache = cacheNext;
|
|
state.lastSync = Date.now();
|
|
state.dirty = false;
|
|
await this.host.saveState();
|
|
this.host.log(
|
|
`Reset to ${this.gh.label}: ${plan.overwrite.length} replaced, ${plan.download.length} downloaded, ${plan.remove.length} removed (old versions in trash).`
|
|
);
|
|
return plan;
|
|
}
|
|
/**
|
|
* The opposite of resetToRemote: one new commit that makes the repository equal to this device
|
|
* (within scope). History is kept, nothing is force-pushed. Files only in the repository that this
|
|
* device chose not to download (on demand) or kept after moving them out of scope are left alone.
|
|
*/
|
|
async overwriteRemote(confirm) {
|
|
const state = this.host.state;
|
|
this.loadCodec();
|
|
if (this.s.mode === "pull") throw new SyncError("overwritePullOnly");
|
|
this.markerToAdd = null;
|
|
const ctx = await this.gather(true, {}, false, { noFastPath: true });
|
|
const remote = ctx.remote ?? /* @__PURE__ */ new Map();
|
|
const plan = { upload: [], remove: [] };
|
|
for (const [p, l] of ctx.localShas) if (ctx.remoteShas.get(p) !== (ctx.cacheNext[p]?.h ?? l)) plan.upload.push(p);
|
|
for (const p of ctx.remoteShas.keys()) if (!ctx.localShas.has(p) && !state.keptMoved?.[p]) plan.remove.push(p);
|
|
if (!plan.upload.length && !plan.remove.length) return plan;
|
|
if (!await confirm(plan)) throw new SyncCancelled();
|
|
const uploads = [];
|
|
for (const p of plan.upload) uploads.push({ path: p, sha: ctx.cacheNext[p]?.h ?? ctx.localShas.get(p), mode: remote.get(p)?.mode ?? "100644" });
|
|
const device = this.host.deviceName();
|
|
const head = ctx.head;
|
|
let newHead = head;
|
|
if (head && ctx.treeSha) newHead = (await this.push(head, ctx.treeSha, uploads, plan.remove, remote, device)).sha;
|
|
else throw new SyncError("overwriteEmpty");
|
|
const base = {};
|
|
const removed = new Set(plan.remove);
|
|
for (const [p, sha] of ctx.remoteShas) if (!removed.has(p)) base[p] = sha;
|
|
for (const u of uploads) base[u.path] = u.sha;
|
|
for (const p of ctx.skipPaths) if (ctx.base[p]) base[p] = ctx.base[p];
|
|
state.head = newHead;
|
|
state.base = base;
|
|
state.cache = ctx.cacheNext;
|
|
state.lastSync = Date.now();
|
|
state.dirty = true;
|
|
await this.host.saveState();
|
|
this.host.log(`Repository set to this device: ${plan.upload.length} uploaded, ${plan.remove.length} removed (still in history).`);
|
|
return plan;
|
|
}
|
|
/**
|
|
* Restore the whole vault, or one folder, to how it was at `commit`. Local changes are synced
|
|
* first, then the restore is pushed as a new commit on top (history is never rewritten), then
|
|
* pulled down to this device.
|
|
*/
|
|
async restoreTo(commit, folder, confirm) {
|
|
this.loadCodec();
|
|
if (this.s.mode === "pull") throw new SyncError("restorePullOnly");
|
|
await this.run(this.s.mode);
|
|
const gh = this.gh;
|
|
const head = await gh.getRef(this.s.branch);
|
|
if (!head) throw new SyncError("branchEmpty");
|
|
const scope = this.buildScope(false);
|
|
const prefix = folder.replace(/^\/+|\/+$/g, "");
|
|
const inScope = (p) => scope(p) && (!prefix || p === prefix || p.startsWith(prefix + "/"));
|
|
const headTree = await gh.getCommitTree(head);
|
|
const cur = await this.filesAt(head, inScope);
|
|
const tgt = await this.filesAt(commit, inScope);
|
|
const plan = { changed: [], added: [], removed: [] };
|
|
const upserts = [];
|
|
const deletes = [];
|
|
for (const [p, e] of tgt) {
|
|
const c = cur.get(p);
|
|
if (!c) plan.added.push(p);
|
|
else if (c.sha !== e.sha) plan.changed.push(p);
|
|
else continue;
|
|
upserts.push({ path: c?.raw ?? e.raw, mode: e.mode, sha: e.sha, load: () => this.verifiedBlob(e.sha, p) });
|
|
}
|
|
for (const [p, c] of cur) {
|
|
if (tgt.has(p)) continue;
|
|
plan.removed.push(p);
|
|
deletes.push(c.raw);
|
|
}
|
|
if (!upserts.length && !deletes.length) return plan;
|
|
if (!await confirm(plan)) throw new SyncCancelled("restoreCancelled");
|
|
const what = !prefix ? "vault" : this.hidesNames ? "a folder" : `"${prefix}"`;
|
|
const message2 = `${this.host.deviceName()}: restore ${what} to ${commit.slice(0, 7)}
|
|
|
|
${plan.changed.length} restored, ${plan.added.length} brought back, ${plan.removed.length} removed
|
|
|
|
${this.trailer(this.host.deviceName())}`;
|
|
let newCommit;
|
|
try {
|
|
newCommit = (await gh.commit({ author: this.author(), branch: this.s.branch, parent: head, parentTree: headTree, message: message2, upserts, deletes })).sha;
|
|
} catch (e) {
|
|
if (e instanceof NotFastForward) throw new SyncError("restoreRaced");
|
|
throw e;
|
|
}
|
|
this.host.log(`Restored ${what} to ${commit.slice(0, 7)} as commit ${newCommit.slice(0, 7)}.`);
|
|
await this.run("sync");
|
|
return plan;
|
|
}
|
|
/** With encryption on, commit messages and pull requests must not name files (names would leak). */
|
|
get hidesNames() {
|
|
return this.codec.has("enc:");
|
|
}
|
|
commitMessage(uploads, deletes, device, renames = []) {
|
|
const parts = [];
|
|
const targets = new Set(renames.map((r) => r.split(" \u2192 ")[1]));
|
|
const sources = new Set(renames.map((r) => r.split(" \u2192 ")[0]));
|
|
const added = uploads.filter((u) => !this.host.state.base[u.path] && !targets.has(u.path)).length;
|
|
const changed = uploads.filter((u) => this.host.state.base[u.path]).length;
|
|
const deleted = deletes.filter((p) => !sources.has(p)).length;
|
|
if (added) parts.push(`${added} added`);
|
|
if (changed) parts.push(`${changed} updated`);
|
|
if (renames.length) parts.push(`${renames.length} renamed`);
|
|
if (deleted) parts.push(`${deleted} deleted`);
|
|
const files = [
|
|
...renames,
|
|
...uploads.map((u) => u.path).filter((p) => !targets.has(p)),
|
|
...deletes.filter((p) => !sources.has(p))
|
|
].slice(0, 10);
|
|
const summary = parts.join(", ") || "sync";
|
|
const ctx = this.host.commitContext?.() ?? {};
|
|
const changedPaths = [
|
|
...renames.map((r) => r.split(" \u2192 ")[1]),
|
|
...uploads.map((u) => u.path).filter((p) => !targets.has(p)),
|
|
...deletes.filter((p) => !sources.has(p))
|
|
];
|
|
const custom = ctx.message?.replace(/[\r\n]+/g, " ").trim();
|
|
const subject = custom || renderCommitTemplate(templateFor(this.s.commitTemplate, this.s.commitTemplateAuto, ctx.trigger), {
|
|
device,
|
|
summary,
|
|
count: uploads.length + deletes.length,
|
|
files: this.hidesNames ? [] : changedPaths,
|
|
trigger: ctx.trigger ?? "manual",
|
|
date: /* @__PURE__ */ new Date()
|
|
}) || `${device}: ${summary}`;
|
|
const total = renames.length + uploads.filter((u) => !targets.has(u.path)).length + deleted;
|
|
const more = total - files.length;
|
|
const list2 = `${files.map((f) => `- ${f}`).join("\n")}${more > 0 ? `
|
|
- \u2026and ${more} more` : ""}`;
|
|
if (this.hidesNames) return `${subject}
|
|
|
|
${this.trailer(device)}`;
|
|
return `${subject}
|
|
|
|
${list2}
|
|
|
|
${this.trailer(device)}`;
|
|
}
|
|
};
|
|
|
|
// src/wizard.ts
|
|
var import_obsidian14 = require("obsidian");
|
|
|
|
// src/encryption-ui.ts
|
|
var import_obsidian13 = require("obsidian");
|
|
async function readRemoteMarker(plugin) {
|
|
const head = await plugin.gh.getRef(plugin.settings.branch);
|
|
if (!head) return null;
|
|
const sub = normalizeSubdir(plugin.settings.repoSubdir);
|
|
let data;
|
|
if (!sub) data = await plugin.gh.getFileAt(MARKER_PATH, head);
|
|
else {
|
|
const picked = pickMarker(await plugin.gh.listTree(await plugin.gh.getCommitTree(head)), sub, plugin.isEncrypted());
|
|
data = picked.sha ? await plugin.gh.getBlob(picked.sha) : null;
|
|
}
|
|
return data ? JSON.parse(new TextDecoder().decode(data)) : null;
|
|
}
|
|
var EncryptionModal = class extends import_obsidian13.Modal {
|
|
constructor(app, plugin, done) {
|
|
super(app);
|
|
this.plugin = plugin;
|
|
this.done = done;
|
|
}
|
|
async onOpen() {
|
|
const { contentEl } = this;
|
|
this.titleEl.setText(t("s.hEncryption"));
|
|
const status = contentEl.createEl("p", { text: t("e.checking"), cls: "vsg-muted" });
|
|
let meta = null;
|
|
try {
|
|
meta = await readRemoteMarker(this.plugin);
|
|
} catch (e) {
|
|
status.setText(t("w.readFailed", { error: localizeError(e) }));
|
|
return;
|
|
}
|
|
status.remove();
|
|
if (keyMatches(this.plugin.encryptionRecord()?.meta ?? null, meta)) this.renderOn();
|
|
else if (meta) this.renderUnlock(meta);
|
|
else this.renderEnable();
|
|
}
|
|
/** This device already holds the repository's key (or will publish its marker on the next sync). */
|
|
renderOn() {
|
|
const { contentEl } = this;
|
|
this.titleEl.setText(t("s.hEncryption"));
|
|
contentEl.createEl("p", { text: t("s.encOn") });
|
|
contentEl.createEl("p", { text: t("s.encOnDesc"), cls: "vsg-muted" });
|
|
if (this.plugin.encryptionUpgradable()) {
|
|
new import_obsidian13.Setting(contentEl).setDesc(t("e.upgradeDesc")).addButton(
|
|
(b) => b.setButtonText(t("e.upgrade")).onClick(() => {
|
|
this.close();
|
|
void this.plugin.upgradeEncryption();
|
|
})
|
|
);
|
|
}
|
|
new import_obsidian13.Setting(contentEl).setClass("vsg-wrap-controls").addButton(
|
|
(b) => b.setButtonText(t("s.encRemovePlain")).onClick(() => {
|
|
this.close();
|
|
void this.plugin.removeUnencryptedFiles();
|
|
})
|
|
).addButton(
|
|
(b) => destructive(b.setButtonText(t("s.encLock"))).onClick(async () => {
|
|
await this.plugin.lockEncryption();
|
|
this.close();
|
|
this.done?.();
|
|
})
|
|
).addButton((b) => b.setButtonText(t("u.close")).setCta().onClick(() => this.close()));
|
|
}
|
|
renderUnlock(meta) {
|
|
const { contentEl } = this;
|
|
this.titleEl.setText(t("e.unlockTitle"));
|
|
contentEl.createEl("p", { text: t("e.unlockBody") });
|
|
let pass = "";
|
|
const msg = contentEl.createDiv({ cls: "vsg-muted" });
|
|
new import_obsidian13.Setting(contentEl).setName(t("w.passphrase")).addText((t2) => {
|
|
t2.inputEl.type = "password";
|
|
t2.onChange((v) => pass = v);
|
|
t2.inputEl.addEventListener("keydown", (e) => {
|
|
if (e.key === "Enter") void unlock();
|
|
});
|
|
});
|
|
const unlock = async () => {
|
|
msg.setText(t("e.unlocking"));
|
|
try {
|
|
const { master } = await unlockEncryption(pass, meta);
|
|
await this.plugin.saveEncryption({ meta, master });
|
|
new import_obsidian13.Notice(t("e.unlocked"));
|
|
this.close();
|
|
this.done?.();
|
|
} catch (e) {
|
|
msg.setText(localizeError(e));
|
|
}
|
|
};
|
|
new import_obsidian13.Setting(contentEl).addButton((b) => b.setButtonText(t("e.unlock")).setCta().onClick(unlock));
|
|
}
|
|
renderEnable() {
|
|
const { contentEl } = this;
|
|
this.titleEl.setText(t("e.enableTitle"));
|
|
const ul = contentEl.createEl("ul");
|
|
ul.createEl("li", { text: t("e.point1") });
|
|
ul.createEl("li", { text: t("e.point2") });
|
|
ul.createEl("li", { text: t("e.point3") });
|
|
ul.createEl("li", { text: t("e.point4") });
|
|
let pass = "";
|
|
let again = "";
|
|
let ack = false;
|
|
const hint = contentEl.createDiv({ cls: "vsg-muted" });
|
|
new import_obsidian13.Setting(contentEl).setName(t("w.passphrase")).addText((t2) => {
|
|
t2.inputEl.type = "password";
|
|
t2.onChange((v) => {
|
|
pass = v;
|
|
hint.setText(passphraseStrength(v).hint);
|
|
});
|
|
});
|
|
new import_obsidian13.Setting(contentEl).setName(t("e.repeat")).addText((t2) => {
|
|
t2.inputEl.type = "password";
|
|
t2.onChange((v) => again = v);
|
|
});
|
|
new import_obsidian13.Setting(contentEl).setName(t("e.ack")).addToggle((t2) => t2.onChange((v) => ack = v));
|
|
const msg = contentEl.createDiv({ cls: "vsg-muted" });
|
|
new import_obsidian13.Setting(contentEl).addButton(
|
|
(b) => b.setButtonText(t("e.turnOn")).setCta().onClick(async () => {
|
|
if (!passphraseStrength(pass).ok) return void msg.setText(passphraseStrength(pass).hint);
|
|
if (pass !== again) return void msg.setText(t("e.mismatch"));
|
|
if (!ack) return void msg.setText(t("e.confirmSaved"));
|
|
msg.setText(t("e.settingUp"));
|
|
try {
|
|
const { meta, master } = await createEncryption(pass);
|
|
await this.plugin.saveEncryption({ meta, master });
|
|
new import_obsidian13.Notice(t("e.enabled"));
|
|
this.close();
|
|
this.done?.();
|
|
} catch (e) {
|
|
msg.setText(localizeError(e));
|
|
}
|
|
})
|
|
);
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
|
|
// src/ghapp.ts
|
|
var GITHUB_APP = { clientId: "Iv23liCUx3SAwwfdSnPg", slug: "vault-sync-for-github" };
|
|
var DeviceFlowError2 = class extends Error {
|
|
constructor(code, message2) {
|
|
super(message2 || code);
|
|
this.code = code;
|
|
}
|
|
};
|
|
async function post2(transport, url, params) {
|
|
const res = await transport({
|
|
url,
|
|
method: "POST",
|
|
headers: { Accept: "application/json" },
|
|
body: new URLSearchParams(params).toString(),
|
|
contentType: "application/x-www-form-urlencoded"
|
|
});
|
|
const j = res.json && typeof res.json === "object" ? res.json : {};
|
|
if (res.status >= 300 && typeof j.error !== "string") throw new DeviceFlowError2("http", `GitHub sign-in failed (HTTP ${res.status})`);
|
|
return j;
|
|
}
|
|
function fail2(j) {
|
|
throw new DeviceFlowError2(String(j.error), typeof j.error_description === "string" ? j.error_description : void 0);
|
|
}
|
|
var num2 = (v) => typeof v === "number" && Number.isFinite(v) ? v : Number(v) || 0;
|
|
function tokensFrom2(j, now) {
|
|
if (typeof j.access_token !== "string" || !j.access_token) throw new DeviceFlowError2("no_token", "GitHub did not return an access token");
|
|
const exp = num2(j.expires_in);
|
|
const rexp = num2(j.refresh_token_expires_in);
|
|
return {
|
|
access: j.access_token,
|
|
expiresAt: exp ? now + exp * 1e3 : 0,
|
|
refresh: typeof j.refresh_token === "string" ? j.refresh_token : "",
|
|
refreshExpiresAt: rexp ? now + rexp * 1e3 : 0
|
|
};
|
|
}
|
|
async function startDeviceFlow2(web, clientId, transport = obsidianTransport, now = Date.now) {
|
|
const j = await post2(transport, `${web}/login/device/code`, { client_id: clientId });
|
|
if (typeof j.error === "string") fail2(j);
|
|
if (typeof j.device_code !== "string" || typeof j.user_code !== "string") throw new DeviceFlowError2("http", "GitHub did not return a sign-in code");
|
|
return {
|
|
deviceCode: j.device_code,
|
|
userCode: j.user_code,
|
|
verificationUri: typeof j.verification_uri === "string" ? j.verification_uri : `${web}/login/device`,
|
|
expiresAt: now() + (num2(j.expires_in) || 900) * 1e3,
|
|
interval: num2(j.interval) || 5
|
|
};
|
|
}
|
|
async function pollDeviceFlow2(web, clientId, code, opts = {}) {
|
|
const transport = opts.transport ?? obsidianTransport;
|
|
const wait = opts.wait ?? sleep;
|
|
const now = opts.now ?? Date.now;
|
|
let interval = code.interval;
|
|
for (; ; ) {
|
|
await wait(interval * 1e3);
|
|
if (opts.isCancelled?.()) throw new DeviceFlowError2("cancelled");
|
|
if (now() > code.expiresAt) throw new DeviceFlowError2("expired_token");
|
|
let j;
|
|
try {
|
|
j = await post2(transport, `${web}/login/oauth/access_token`, {
|
|
client_id: clientId,
|
|
device_code: code.deviceCode,
|
|
grant_type: "urn:ietf:params:oauth:grant-type:device_code"
|
|
});
|
|
} catch (e) {
|
|
if (e instanceof DeviceFlowError2 && e.code !== "http") throw e;
|
|
continue;
|
|
}
|
|
if (j.error === "authorization_pending") continue;
|
|
if (j.error === "slow_down") {
|
|
interval = num2(j.interval) || interval + 5;
|
|
continue;
|
|
}
|
|
if (typeof j.error === "string") fail2(j);
|
|
return tokensFrom2(j, now());
|
|
}
|
|
}
|
|
async function refreshAppToken2(web, clientId, refresh, transport = obsidianTransport, now = Date.now) {
|
|
const j = await post2(transport, `${web}/login/oauth/access_token`, { client_id: clientId, grant_type: "refresh_token", refresh_token: refresh });
|
|
if (typeof j.error === "string") fail2(j);
|
|
return tokensFrom2(j, now());
|
|
}
|
|
function needsRefresh2(t2, now = Date.now(), marginMs = 10 * 6e4) {
|
|
return t2.expiresAt > 0 && t2.expiresAt - now < marginMs;
|
|
}
|
|
function parseTokens2(raw) {
|
|
try {
|
|
const t2 = JSON.parse(raw);
|
|
if (typeof t2.access !== "string" || !t2.access) return null;
|
|
return {
|
|
access: t2.access,
|
|
expiresAt: num2(t2.expiresAt),
|
|
refresh: typeof t2.refresh === "string" ? t2.refresh : "",
|
|
refreshExpiresAt: num2(t2.refreshExpiresAt),
|
|
...typeof t2.web === "string" ? { web: t2.web } : {},
|
|
...typeof t2.clientId === "string" ? { clientId: t2.clientId } : {}
|
|
};
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
function installUrl(web, slug2) {
|
|
return `${web}/apps/${encodeURIComponent(slug2)}/installations/new`;
|
|
}
|
|
|
|
// src/wizard.ts
|
|
var SetupWizard = class extends import_obsidian14.Modal {
|
|
constructor(app, plugin, start) {
|
|
super(app);
|
|
this.plugin = plugin;
|
|
this.step = "connect";
|
|
this.login = "";
|
|
this.cancelled = false;
|
|
this.choice = "merge";
|
|
this.resultText = "";
|
|
/** Bumped on every render: async steps check it after awaiting, so a stale step never draws into a newer one. */
|
|
this.generation = 0;
|
|
// ---------- 2. repository ----------
|
|
/** While the user grants repositories on GitHub: reload the list when Obsidian gets focus again, and every few seconds. */
|
|
this.reloadRepos = null;
|
|
this.watchTimer = null;
|
|
this.onFocus = () => void this.reloadRepos?.();
|
|
if (start) this.step = start;
|
|
}
|
|
onOpen() {
|
|
this.plugin.wizardOpen = true;
|
|
this.modalEl.addClass("vsg-wizard");
|
|
this.render();
|
|
}
|
|
onClose() {
|
|
this.plugin.wizardOpen = false;
|
|
this.cancelled = true;
|
|
this.stopRepoWatch();
|
|
this.contentEl.empty();
|
|
this.plugin.onProgress = null;
|
|
this.plugin.redrawSettings();
|
|
}
|
|
go(step) {
|
|
if (step !== "repo") this.stopRepoWatch();
|
|
this.step = step;
|
|
this.render();
|
|
}
|
|
header(n, title, sub) {
|
|
const steps = [t("w.stepConnect"), t("w.stepRepo"), t("w.stepVault"), t("w.stepSync")];
|
|
const bar = this.contentEl.createDiv({ cls: "vsg-wz-steps" });
|
|
steps.forEach((s, i) => bar.createSpan({ text: `${i + 1}. ${s}`, cls: i + 1 === n ? "is-active" : i + 1 < n ? "is-done" : "" }));
|
|
this.titleEl.setText(title);
|
|
this.contentEl.createEl("p", { text: sub, cls: "vsg-muted" });
|
|
}
|
|
render() {
|
|
this.generation++;
|
|
this.contentEl.empty();
|
|
if (this.step === "connect") this.renderConnect();
|
|
else if (this.step === "repo") void this.renderRepo();
|
|
else if (this.step === "vault") void this.renderVault();
|
|
else if (this.step === "syncing") this.renderSyncing();
|
|
else this.renderDone();
|
|
}
|
|
// ---------- 1. connect ----------
|
|
renderConnect() {
|
|
const p = this.plugin;
|
|
this.header(1, t("w.title"), t("w.sub"));
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.where")).addDropdown((d) => {
|
|
for (const [k, h] of Object.entries(HOSTS)) d.addOption(k, h.label + (h.beta ? ` (${t("s.beta")})` : ""));
|
|
d.setValue(p.settings.provider).onChange(async (v) => {
|
|
p.settings.provider = v;
|
|
await p.saveSettings();
|
|
this.render();
|
|
});
|
|
});
|
|
const host = HOSTS[p.settings.provider];
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.apiUrl")).setDesc(host.apiHint).addText((t2) => {
|
|
t2.setValue(p.getApiBase());
|
|
t2.inputEl.addEventListener("change", () => {
|
|
const url = t2.getValue().trim().replace(/\/+$/, "") || host.defaultApi;
|
|
if (!/^https:\/\/[^\s/?#]+/i.test(url) && !/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?(\/|$)/i.test(url)) {
|
|
new import_obsidian14.Notice(t("s.apiBaseInvalid"));
|
|
t2.setValue(p.getApiBase());
|
|
return;
|
|
}
|
|
p.setApiBase(url);
|
|
p.rebindToken();
|
|
this.render();
|
|
});
|
|
});
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.deviceName")).setDesc(t("w.deviceNameDesc")).addText((t2) => {
|
|
t2.setValue(p.deviceName());
|
|
t2.inputEl.addEventListener("change", () => p.setDeviceName(t2.getValue().trim()));
|
|
});
|
|
const others = this.contentEl.createDiv();
|
|
void p.checkOtherSync().then((found) => {
|
|
if (!found.length) return;
|
|
const box = others.createDiv({ cls: "vsg-h-error" });
|
|
box.createDiv({ text: t("os.found", { list: found.map((x) => x === ".git" ? t("os.gitFolder") : x).join(", ") }) });
|
|
box.createDiv({ cls: "vsg-muted", text: t("os.hint") });
|
|
});
|
|
this.contentEl.createEl("p", { cls: "vsg-muted", text: t("link.wizardHint") });
|
|
const status = this.contentEl.createDiv({ cls: "vsg-wz-status" });
|
|
const done = async (token) => {
|
|
if (token !== void 0) p.setToken(token);
|
|
try {
|
|
this.login = (await p.gh.getUser()).login;
|
|
new import_obsidian14.Notice(t("w.signedIn", { user: this.login }));
|
|
this.go("repo");
|
|
} catch (e) {
|
|
status.setText(t("w.tokenFailed", { error: localizeError(e) }));
|
|
}
|
|
};
|
|
if (p.getToken()) {
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.alreadyConnected")).addButton((b) => b.setButtonText(t("w.continue")).setCta().onClick(() => done()));
|
|
}
|
|
const kind = p.settings.provider === "github" && p.githubApp() ? "github" : p.settings.provider === "gitlab" && p.gitlabApp() ? "gitlab" : null;
|
|
const app = kind !== null;
|
|
if (kind) {
|
|
const box = this.contentEl.createDiv({ cls: "vsg-wz-token" });
|
|
box.createEl("h4", { text: kind === "gitlab" ? t("app.signInGitLab") : t("app.signIn") });
|
|
new import_obsidian14.Setting(box).setDesc(kind === "gitlab" ? t("app.signInDescGitLab") : t("app.signInDesc")).addButton(
|
|
(b) => b.setButtonText(t("app.signInBtn")).setCta().onClick(() => new DeviceSignInModal(this.app, p.signInFlow(kind), (ok) => void (ok && done())).open())
|
|
);
|
|
}
|
|
const tokenBox = this.contentEl.createDiv({ cls: "vsg-wz-token" });
|
|
tokenBox.createEl("h4", { text: app ? t("app.orToken") : t("w.connectWith", { host: host.label.split(" ")[0] }) });
|
|
const tips = tokenBox.createEl("ol", { cls: "vsg-muted" });
|
|
for (const step of host.tokenSteps(p.getApiBase(), this.app.vault.getName())) {
|
|
const li = tips.createEl("li");
|
|
li.appendText(step.text + (step.link ? " " : ""));
|
|
if (step.link) li.createEl("a", { text: step.link.label, href: step.link.href });
|
|
}
|
|
tips.createEl("li", { text: t("w.tokenStored") });
|
|
let value = "";
|
|
new import_obsidian14.Setting(tokenBox).setName(t("w.token")).addText((t2) => {
|
|
t2.inputEl.type = "password";
|
|
t2.setPlaceholder(t("s.tokenPlaceholder")).onChange((v) => value = v.trim());
|
|
}).addButton(
|
|
(b) => b.setButtonText(t("w.continue")).onClick(() => {
|
|
if (!value) return void status.setText(t("w.pasteFirst"));
|
|
void done(value);
|
|
})
|
|
);
|
|
}
|
|
startRepoWatch() {
|
|
this.stopRepoWatch();
|
|
window.addEventListener("focus", this.onFocus);
|
|
const until = Date.now() + 3 * 6e4;
|
|
this.watchTimer = window.setInterval(() => {
|
|
if (Date.now() > until) this.stopRepoWatch();
|
|
else void this.reloadRepos?.();
|
|
}, 4e3);
|
|
}
|
|
stopRepoWatch() {
|
|
window.removeEventListener("focus", this.onFocus);
|
|
if (this.watchTimer !== null) window.clearInterval(this.watchTimer);
|
|
this.watchTimer = null;
|
|
}
|
|
async renderRepo() {
|
|
const p = this.plugin;
|
|
const gen = this.generation;
|
|
if (!this.login) {
|
|
try {
|
|
this.login = (await p.gh.getUser()).login;
|
|
} catch {
|
|
this.login = p.settings.owner;
|
|
}
|
|
if (gen !== this.generation) return;
|
|
}
|
|
this.header(2, t("w.repoTitle"), t("w.repoSub", { user: this.login }));
|
|
let subdir = p.settings.repoSubdir ?? "";
|
|
const pick = async (owner, name, branch) => {
|
|
this.stopRepoWatch();
|
|
p.settings.owner = owner;
|
|
p.settings.repo = name;
|
|
p.settings.branch = branch || "main";
|
|
p.settings.repoSubdir = normalizeSubdir(subdir);
|
|
await p.saveSettings();
|
|
this.go("vault");
|
|
};
|
|
const signedInApp = p.usingGitHubApp();
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.subdir")).setDesc(t("w.subdirDesc")).addText((t2) => t2.setPlaceholder("Vaults/personal").setValue(subdir).onChange((v) => subdir = v));
|
|
let newName = this.app.vault.getName().replace(/[^A-Za-z0-9._-]+/g, "-");
|
|
if (!signedInApp)
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.createNew")).addText((t2) => t2.setValue(newName).onChange((v) => newName = v.trim())).addButton(
|
|
(b) => b.setButtonText(t("w.create")).setCta().onClick(async () => {
|
|
if (!this.login) return void new import_obsidian14.Notice(t("w.createFailed", { error: "unknown account" }), 1e4);
|
|
const previousOwner = p.settings.owner;
|
|
try {
|
|
p.settings.owner = this.login;
|
|
await p.gh.createRepo(newName);
|
|
await pick(this.login, newName, "main");
|
|
} catch (e) {
|
|
p.settings.owner = previousOwner;
|
|
new import_obsidian14.Notice(t("w.createFailed", { error: localizeError(e) }), 1e4);
|
|
}
|
|
})
|
|
);
|
|
this.contentEl.createEl("h4", { text: signedInApp ? t("app.reposTitle") : t("w.useExisting") });
|
|
const search = this.contentEl.createEl("input", { type: "search", placeholder: t("w.filter"), cls: "vsg-wz-search" });
|
|
const listEl = this.contentEl.createDiv({ cls: "vsg-wz-repos" });
|
|
listEl.setText(t("w.loadingRepos"));
|
|
let watchNote = null;
|
|
if (signedInApp) {
|
|
const app = p.githubApp();
|
|
const web = p.githubWeb();
|
|
const st = new import_obsidian14.Setting(this.contentEl).setName(t("app.chooseRepos")).setDesc(t("app.chooseReposDesc"));
|
|
const away = (url) => {
|
|
window.open(url);
|
|
this.startRepoWatch();
|
|
watchNote?.setText(t("app.watching"));
|
|
};
|
|
if (app?.slug) st.addButton((b) => b.setButtonText(t("app.addRepos")).onClick(() => away(installUrl(web, app.slug))));
|
|
st.addButton((b) => b.setButtonText(t("app.createOnGitHub")).onClick(() => away(`${web}/new`)));
|
|
st.addButton((b) => b.setButtonText(t("app.refresh")).onClick(() => void this.reloadRepos?.()));
|
|
watchNote = this.contentEl.createDiv({ cls: "vsg-muted" });
|
|
}
|
|
new import_obsidian14.Setting(this.contentEl).addButton(
|
|
(b) => b.setButtonText(t("w.back")).onClick(() => {
|
|
this.stopRepoWatch();
|
|
this.go("connect");
|
|
})
|
|
);
|
|
let repos = [];
|
|
let known = null;
|
|
const fresh = /* @__PURE__ */ new Set();
|
|
const key2 = (r) => `${r.owner}/${r.name}`;
|
|
const draw = () => {
|
|
listEl.empty();
|
|
const q = search.value.toLowerCase();
|
|
const sorted = [...repos].sort((a, b) => Number(fresh.has(key2(b))) - Number(fresh.has(key2(a))));
|
|
const shown = sorted.filter((r) => key2(r).toLowerCase().includes(q)).slice(0, 100);
|
|
if (!shown.length) listEl.createDiv({ cls: "vsg-muted", text: repos.length || q ? t("w.noMatch") : signedInApp ? t("app.noRepos") : t("w.noMatch") });
|
|
for (const r of shown) {
|
|
const row = listEl.createDiv({ cls: "vsg-wz-repo" });
|
|
row.setAttr("role", "button");
|
|
row.setAttr("tabindex", "0");
|
|
row.createSpan({ text: key2(r) });
|
|
if (fresh.has(key2(r))) row.createSpan({ text: t("app.newRepo"), cls: "vsg-badge vsg-badge-new" });
|
|
row.createSpan({ text: r.private ? t("w.private") : t("w.public"), cls: r.private ? "vsg-badge" : "vsg-badge vsg-badge-warn" });
|
|
const choose = async () => {
|
|
if (!r.private && !await confirmPlan(this.app, t("w.publicTitle"), t("w.publicBody", { repo: key2(r) }), [], t("w.useAnyway"), true)) return;
|
|
void pick(r.owner, r.name, r.defaultBranch);
|
|
};
|
|
row.onClickEvent(() => void choose());
|
|
row.addEventListener("keydown", (e) => {
|
|
if (e.key === "Enter" || e.key === " ") {
|
|
e.preventDefault();
|
|
void choose();
|
|
}
|
|
});
|
|
}
|
|
};
|
|
search.oninput = draw;
|
|
let loading = false;
|
|
this.reloadRepos = async () => {
|
|
if (loading || gen !== this.generation || this.cancelled) return;
|
|
loading = true;
|
|
try {
|
|
const list2 = await p.gh.listRepos();
|
|
if (gen !== this.generation) return;
|
|
if (known) {
|
|
for (const r of list2) if (!known.has(key2(r))) fresh.add(key2(r));
|
|
}
|
|
known = new Set(list2.map(key2));
|
|
repos = list2;
|
|
draw();
|
|
if (fresh.size && this.watchTimer !== null) {
|
|
this.stopRepoWatch();
|
|
watchNote?.setText(t("app.newArrived"));
|
|
}
|
|
} catch (e) {
|
|
if (gen === this.generation && !repos.length) listEl.setText(t("w.listFailed", { error: localizeError(e) }));
|
|
} finally {
|
|
loading = false;
|
|
}
|
|
};
|
|
await this.reloadRepos();
|
|
if (gen === this.generation && !import_obsidian14.Platform.isMobile) search.focus();
|
|
}
|
|
// ---------- 3. this vault ----------
|
|
async renderVault() {
|
|
const p = this.plugin;
|
|
const gen = this.generation;
|
|
this.header(3, t("w.vaultTitle"), `${p.settings.owner}/${p.settings.repo} (${p.settings.branch})`);
|
|
const info = this.contentEl.createDiv({ cls: "vsg-wz-status", text: t("w.looking") });
|
|
let remoteCount = 0;
|
|
try {
|
|
remoteCount = await p.gh.countFiles(p.settings.branch);
|
|
} catch (e) {
|
|
if (gen !== this.generation) return;
|
|
info.setText(t("w.readFailed", { error: localizeError(e) }));
|
|
new import_obsidian14.Setting(this.contentEl).addButton((b) => b.setButtonText(t("w.back")).onClick(() => this.go("repo")));
|
|
return;
|
|
}
|
|
if (gen !== this.generation) return;
|
|
const localCount = this.app.vault.getFiles().length;
|
|
info.setText(t("w.counts", { local: localCount, remote: remoteCount }));
|
|
const options = [];
|
|
if (remoteCount <= 1) options.push(["upload", t("w.optUpload"), t("w.optUploadDesc")]);
|
|
else if (localCount <= 3) {
|
|
options.push(["download", t("w.optDownload"), t("w.optDownloadDesc")]);
|
|
options.push(["merge", t("w.optMerge"), t("w.optMergeDesc")]);
|
|
} else {
|
|
options.push(["merge", t("w.optMergeSafe"), t("w.optMergeSafeDesc")]);
|
|
options.push(["download", t("w.optRemoteWins"), t("w.optRemoteWinsDesc")]);
|
|
options.push(["prefer-local", t("w.optLocalWins"), t("w.optLocalWinsDesc")]);
|
|
}
|
|
this.choice = options[0][0];
|
|
const group = this.contentEl.createDiv({ cls: "vsg-wz-options" });
|
|
for (const [key2, title, desc] of options) {
|
|
const label = group.createEl("label", { cls: "vsg-wz-option" });
|
|
const radio = label.createEl("input", { type: "radio" });
|
|
radio.name = "vsg-first";
|
|
radio.checked = key2 === this.choice;
|
|
radio.onchange = () => this.choice = key2;
|
|
const t2 = label.createDiv();
|
|
t2.createDiv({ text: title, cls: "vsg-commit-title" });
|
|
t2.createDiv({ text: desc, cls: "vsg-muted" });
|
|
}
|
|
this.contentEl.createEl("p", { cls: "vsg-muted", text: t("w.neverDeletes") });
|
|
let encPass = "";
|
|
let encWanted = false;
|
|
const marker = await readRemoteMarker(p).catch(() => null);
|
|
if (gen !== this.generation) return;
|
|
if (marker && !p.isEncrypted()) {
|
|
const box = this.contentEl.createDiv({ cls: "vsg-h-error" });
|
|
box.createDiv({ text: t("w.encrypted") });
|
|
new import_obsidian14.Setting(box).addButton((b) => b.setButtonText(t("health.enterPassphrase")).setCta().onClick(() => new EncryptionModal(this.app, p, () => this.render()).open()));
|
|
} else if (!marker && !p.isEncrypted() && remoteCount <= 1) {
|
|
const hint = this.contentEl.createDiv({ cls: "vsg-muted" });
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.encryptOpt")).setDesc(t("w.encryptOptDesc")).addToggle((t2) => t2.onChange((v) => encWanted = v)).addText((t2) => {
|
|
t2.inputEl.type = "password";
|
|
t2.setPlaceholder(t("w.passphrase")).onChange((v) => {
|
|
encPass = v;
|
|
hint.setText(v ? passphraseStrength(v).hint : "");
|
|
});
|
|
});
|
|
} else if (p.isEncrypted()) {
|
|
this.contentEl.createDiv({ cls: "vsg-muted", text: t("w.encOnDevice") });
|
|
}
|
|
new import_obsidian14.Setting(this.contentEl).setName(t("w.alsoConfig", { dir: this.app.vault.configDir })).addToggle(
|
|
(t2) => t2.setValue(p.settings.syncConfigDir).onChange(async (v) => {
|
|
p.settings.syncConfigDir = v;
|
|
await p.saveSettings();
|
|
})
|
|
);
|
|
new import_obsidian14.Setting(this.contentEl).addButton((b) => b.setButtonText(t("w.back")).onClick(() => this.go("repo"))).addButton(
|
|
(b) => b.setButtonText(t("w.start")).setCta().onClick(async () => {
|
|
if (marker && !p.isEncrypted()) return void new import_obsidian14.Notice(t("w.unlockFirst"));
|
|
if (encWanted) {
|
|
if (!passphraseStrength(encPass).ok) return void new import_obsidian14.Notice(passphraseStrength(encPass).hint);
|
|
if (!await confirmPlan(this.app, t("w.saveTitle"), t("w.saveBody"), [], t("w.saved"))) return;
|
|
const { meta, master } = await createEncryption(encPass);
|
|
await p.saveEncryption({ meta, master });
|
|
}
|
|
this.go("syncing");
|
|
})
|
|
);
|
|
}
|
|
// ---------- 4. syncing ----------
|
|
renderSyncing() {
|
|
const p = this.plugin;
|
|
this.header(4, t("w.syncTitle"), t("w.syncSub"));
|
|
const prog = this.contentEl.createDiv({ cls: "vsg-wz-progress", text: t("w.starting") });
|
|
p.onProgress = (t2) => prog.setText(t2);
|
|
const prefer = this.choice === "download" ? "remote" : this.choice === "prefer-local" ? "local" : void 0;
|
|
void p.firstSync(prefer).then((r) => {
|
|
p.onProgress = null;
|
|
if (this.cancelled) return;
|
|
this.resultText = r;
|
|
this.go("done");
|
|
});
|
|
}
|
|
// ---------- done ----------
|
|
renderDone() {
|
|
this.titleEl.setText(t("w.doneTitle"));
|
|
this.contentEl.createEl("p", { text: this.resultText });
|
|
const ul = this.contentEl.createEl("ul", { cls: "vsg-muted" });
|
|
ul.createEl("li", { text: t("w.tip1") });
|
|
ul.createEl("li", { text: t("w.tip2") });
|
|
ul.createEl("li", { text: t("w.tip3") });
|
|
new import_obsidian14.Setting(this.contentEl).addButton((b) => b.setButtonText(t("w.openStatus")).onClick(() => void this.plugin.openHealth().then(() => this.close()))).addButton((b) => b.setButtonText(t("w.done")).setCta().onClick(() => this.close()));
|
|
}
|
|
};
|
|
|
|
// src/statefile.ts
|
|
async function readState(adapter, path, deviceId, log) {
|
|
for (const p of [path, `${path}.tmp`]) {
|
|
try {
|
|
const parsed = JSON.parse(await adapter.read(p));
|
|
if (parsed.version !== 1) continue;
|
|
if (parsed.deviceId && parsed.deviceId !== deviceId) {
|
|
log("The saved sync state belongs to another device (is this vault also synced by another tool?). Starting from a fresh baseline; nothing will be deleted.");
|
|
return { ...emptyState(), deviceId };
|
|
}
|
|
return { ...emptyState(), ...parsed, deviceId };
|
|
} catch {
|
|
}
|
|
}
|
|
return { ...emptyState(), deviceId };
|
|
}
|
|
async function writeState(adapter, path, state, deviceId) {
|
|
state.deviceId = deviceId;
|
|
const tmp = `${path}.tmp`;
|
|
await adapter.write(tmp, JSON.stringify(state));
|
|
if (await adapter.exists(path)) await adapter.remove(path);
|
|
await adapter.rename(tmp, path);
|
|
}
|
|
|
|
// src/shared.ts
|
|
var import_obsidian15 = require("obsidian");
|
|
|
|
// src/ghformat.ts
|
|
var MARK = "<!--vsg";
|
|
var ESC = "<!--vsg-->";
|
|
var te3 = new TextEncoder();
|
|
var td3 = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
var WIKI_SRC = String.raw`(!?)\[\[([^\[\]\r\n]+)\]\]`;
|
|
var HL_INNER = String.raw`[^\s=](?:(?:[^=\r\n]|=(?!=))*?[^\s=])?`;
|
|
var INLINE_SRC = String.raw`(!?)\[\[([^\[\]\r\n]+)\]\]|==(${HL_INNER})==`;
|
|
var WIKI_ONE = new RegExp(`^${WIKI_SRC}$`);
|
|
var HL_ONE = new RegExp(`^==(${HL_INNER})==$`);
|
|
var CALLOUT = /^( {0,3})>[ \t]?\[!([A-Za-z]+)\]([+-]?)(.*)$/;
|
|
var MARKER_AT = /<!--vsg:([A-Za-z0-9+/]{2,})-->/y;
|
|
var ALERTS = {
|
|
note: "NOTE",
|
|
info: "NOTE",
|
|
tip: "TIP",
|
|
hint: "TIP",
|
|
important: "IMPORTANT",
|
|
warning: "WARNING",
|
|
attention: "WARNING",
|
|
caution: "CAUTION",
|
|
danger: "CAUTION",
|
|
error: "CAUTION"
|
|
};
|
|
var IMAGE = /\.(png|jpe?g|gif|svg|webp|bmp|avif|ico)$/i;
|
|
var KNOWN_EXT = /\.(md|markdown|canvas|base|pdf|png|jpe?g|gif|svg|webp|bmp|avif|ico|mp3|mp4|m4a|wav|ogg|webm|mov|mkv|flac|txt|csv|json|html?|xml|ya?ml|zip)$/i;
|
|
function slug(heading) {
|
|
return heading.trim().toLowerCase().replace(/[^\p{L}\p{M}\p{N}\p{Pc}\- ]/gu, "").replace(/ /g, "-");
|
|
}
|
|
function encodeHref(path) {
|
|
return path.split("/").map((s) => encodeURIComponent(s).replace(/[()]/g, (c) => c === "(" ? "%28" : "%29")).join("/");
|
|
}
|
|
function wikiToMarkdown(embed, inner) {
|
|
const bar = inner.indexOf("|");
|
|
const target = (bar < 0 ? inner : inner.slice(0, bar)).replace(/\\$/, "").trim();
|
|
const alias = bar < 0 ? "" : inner.slice(bar + 1).trim();
|
|
if (!target) return null;
|
|
const hash = target.indexOf("#");
|
|
const file = (hash < 0 ? target : target.slice(0, hash)).trim();
|
|
const parts = hash < 0 ? [] : target.slice(hash + 1).split("#").map((s) => s.trim()).filter(Boolean);
|
|
const last = parts[parts.length - 1] ?? "";
|
|
const anchor = last && !last.startsWith("^") ? "#" + encodeURIComponent(slug(last)) : "";
|
|
if (!file && !anchor) return null;
|
|
const href = (file ? encodeHref(KNOWN_EXT.test(file) ? file : file + ".md") : "") + anchor;
|
|
const image = embed && IMAGE.test(file);
|
|
let label;
|
|
if (image) label = alias && !/^\d+(x\d+)?$/.test(alias) ? alias : file;
|
|
else label = alias || [file, ...parts].filter(Boolean).join(" > ");
|
|
return `${image ? "!" : ""}[${label}](${href})`;
|
|
}
|
|
function convertInner(s, highlights) {
|
|
if (s.includes("`") || s.includes("<!--") || s.includes("\\")) return s;
|
|
const re = new RegExp(highlights ? INLINE_SRC : WIKI_SRC, "g");
|
|
return s.replace(re, (m, bang, inner, hl) => {
|
|
if (inner !== void 0) return wikiToMarkdown(bang === "!", inner) ?? m;
|
|
if (hl !== void 0) return `<mark>${convertInner(hl, false)}</mark>`;
|
|
return m;
|
|
});
|
|
}
|
|
function convertConstruct(original, eol) {
|
|
if (original.includes("<!--")) return null;
|
|
let out = null;
|
|
let m = WIKI_ONE.exec(original);
|
|
if (m) out = wikiToMarkdown(m[1] === "!", m[2]);
|
|
else if (m = HL_ONE.exec(original)) out = `<mark>${convertInner(m[1], false)}</mark>`;
|
|
else if (m = CALLOUT.exec(original)) {
|
|
const type = ALERTS[m[2].toLowerCase()];
|
|
if (!type) return null;
|
|
const title = m[4].trim();
|
|
out = `${m[1]}> [!${type}]${eol}${m[1]}>` + (title ? ` **${convertInner(title, true)}**` : "");
|
|
}
|
|
return out === null || out.includes(MARK) ? null : out;
|
|
}
|
|
function toB64(s) {
|
|
const bytes = te3.encode(s);
|
|
let bin = "";
|
|
for (let i = 0; i < bytes.length; i += 32768) bin += String.fromCharCode(...bytes.subarray(i, i + 32768));
|
|
return btoa(bin).replace(/=+$/, "");
|
|
}
|
|
function fromB64(s) {
|
|
try {
|
|
const bin = atob(s);
|
|
const bytes = new Uint8Array(bin.length);
|
|
for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i);
|
|
return td3.decode(bytes);
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
function splitLines2(t2) {
|
|
const out = [];
|
|
let s = 0;
|
|
while (s < t2.length) {
|
|
const nl = t2.indexOf("\n", s);
|
|
if (nl < 0) {
|
|
out.push({ start: s, end: t2.length, next: t2.length, eol: "" });
|
|
break;
|
|
}
|
|
const end = nl > s && t2[nl - 1] === "\r" ? nl - 1 : nl;
|
|
out.push({ start: s, end, next: nl + 1, eol: t2.slice(end, nl + 1) });
|
|
s = nl + 1;
|
|
}
|
|
return out;
|
|
}
|
|
function stripContainers(s) {
|
|
return s.replace(/^(?:[ \t]*(?:>|[-*+](?=[ \t])|\d{1,9}[.)](?=[ \t]))[ \t]?)*[ \t]*/, "");
|
|
}
|
|
function scanInline(t2, s, e, blankStarts, out) {
|
|
let p = s;
|
|
let bi = 0;
|
|
let paraEnd = -1;
|
|
let failed = /* @__PURE__ */ new Set();
|
|
while (p < e) {
|
|
if (p >= paraEnd) {
|
|
while (bi < blankStarts.length && blankStarts[bi] <= p) bi++;
|
|
paraEnd = bi < blankStarts.length ? blankStarts[bi] : e;
|
|
failed = /* @__PURE__ */ new Set();
|
|
}
|
|
const c = t2.charCodeAt(p);
|
|
if (c === 92) {
|
|
p += 2;
|
|
} else if (c === 96) {
|
|
let q = p;
|
|
while (q < e && t2.charCodeAt(q) === 96) q++;
|
|
const n = q - p;
|
|
let close = -1;
|
|
if (!failed.has(n)) {
|
|
let k = q;
|
|
while (k < paraEnd) {
|
|
const b = t2.indexOf("`", k);
|
|
if (b < 0 || b >= paraEnd) break;
|
|
let r = b;
|
|
while (r < e && t2.charCodeAt(r) === 96) r++;
|
|
if (r - b === n) {
|
|
close = b;
|
|
break;
|
|
}
|
|
k = r;
|
|
}
|
|
if (close < 0) failed.add(n);
|
|
}
|
|
if (close >= 0) {
|
|
out.push([p, close + n]);
|
|
p = close + n;
|
|
} else p = q;
|
|
} else if (c === 60 && t2.startsWith("<!--", p)) {
|
|
const k = t2.indexOf("-->", p + 2);
|
|
const end = k < 0 || k + 3 > e ? e : k + 3;
|
|
out.push([p, end]);
|
|
p = end;
|
|
} else p++;
|
|
}
|
|
}
|
|
function merge(ranges) {
|
|
ranges.sort((a, b) => a[0] - b[0]);
|
|
const out = [];
|
|
for (const r of ranges) {
|
|
const last = out[out.length - 1];
|
|
if (last && r[0] <= last[1]) last[1] = Math.max(last[1], r[1]);
|
|
else out.push([r[0], r[1]]);
|
|
}
|
|
return out;
|
|
}
|
|
function overlaps(sorted, s, e) {
|
|
let lo = 0;
|
|
let hi = sorted.length - 1;
|
|
while (lo <= hi) {
|
|
const mid = lo + hi >> 1;
|
|
const r = sorted[mid];
|
|
if (r[1] <= s) lo = mid + 1;
|
|
else if (r[0] >= e) hi = mid - 1;
|
|
else return true;
|
|
}
|
|
return false;
|
|
}
|
|
function escapedAt(t2, at) {
|
|
let n = 0;
|
|
for (let i = at - 1; i >= 0 && t2.charCodeAt(i) === 92; i--) n++;
|
|
return n % 2 === 1;
|
|
}
|
|
function findConstructs(t2) {
|
|
const lines2 = splitLines2(t2);
|
|
const text = (i2) => t2.slice(lines2[i2].start, lines2[i2].end);
|
|
const prose = lines2.map(() => true);
|
|
let i = 0;
|
|
if (lines2.length && /^\uFEFF?---[ \t]*$/.test(text(0))) {
|
|
for (let j = 1; j < lines2.length; j++) {
|
|
if (/^(---|\.\.\.)[ \t]*$/.test(text(j))) {
|
|
for (let k = 0; k <= j; k++) prose[k] = false;
|
|
i = j + 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
for (; i < lines2.length; i++) {
|
|
const m = /^(`{3,}|~{3,})(.*)$/.exec(stripContainers(text(i)));
|
|
if (!m || m[1][0] === "`" && m[2].includes("`")) continue;
|
|
const close = new RegExp(`^${m[1][0] === "`" ? "`" : "~"}{${m[1].length},}[ \\t]*$`);
|
|
prose[i] = false;
|
|
let j = i + 1;
|
|
while (j < lines2.length && !close.test(stripContainers(text(j)))) prose[j++] = false;
|
|
if (j < lines2.length) prose[j] = false;
|
|
i = j;
|
|
}
|
|
const segments2 = [];
|
|
const guarded = [];
|
|
for (let a = 0; a < lines2.length; a++) {
|
|
if (!prose[a]) continue;
|
|
let b = a;
|
|
const blanks = [];
|
|
while (b < lines2.length && prose[b]) {
|
|
if (/^[ \t]*$/.test(text(b))) blanks.push(lines2[b].start);
|
|
b++;
|
|
}
|
|
const seg = [lines2[a].start, lines2[b - 1].next];
|
|
segments2.push(seg);
|
|
scanInline(t2, seg[0], seg[1], blanks, guarded);
|
|
a = b - 1;
|
|
}
|
|
const blocked = merge(guarded.slice());
|
|
const found = [];
|
|
const calloutRanges = [];
|
|
for (let k = 0; k < lines2.length; k++) {
|
|
const ln = lines2[k];
|
|
if (!prose[k]) continue;
|
|
const o = text(k);
|
|
if (!o.includes("[!") || !CALLOUT.test(o)) continue;
|
|
if (k > 0 && prose[k - 1] && /^ {0,3}>/.test(text(k - 1))) continue;
|
|
if (overlaps(blocked, ln.start, ln.end) || escapedAt(t2, ln.start)) continue;
|
|
const eol = ln.eol || (k > 0 ? lines2[k - 1].eol : "") || "\n";
|
|
const c = convertConstruct(o, eol);
|
|
if (c === null) continue;
|
|
found.push({ s: ln.start, e: ln.end, o, c });
|
|
calloutRanges.push([ln.start, ln.end]);
|
|
}
|
|
const skip = merge([...guarded, ...calloutRanges]);
|
|
const re = new RegExp(INLINE_SRC, "g");
|
|
let si = 0;
|
|
for (const [ss, se] of segments2) {
|
|
let p = ss;
|
|
while (p < se) {
|
|
while (si < skip.length && skip[si][1] <= p) si++;
|
|
const gapEnd = si < skip.length && skip[si][0] < se ? Math.max(p, skip[si][0]) : se;
|
|
if (gapEnd > p) {
|
|
const sub = t2.slice(p, gapEnd);
|
|
re.lastIndex = 0;
|
|
let m;
|
|
while (m = re.exec(sub)) {
|
|
const at = p + m.index;
|
|
const c = escapedAt(t2, at) ? null : convertConstruct(m[0], "\n");
|
|
if (c === null) {
|
|
re.lastIndex = m.index + 1;
|
|
continue;
|
|
}
|
|
found.push({ s: at, e: at + m[0].length, o: m[0], c });
|
|
}
|
|
}
|
|
p = si < skip.length && skip[si][0] < se ? Math.max(gapEnd, skip[si][1]) : se;
|
|
}
|
|
}
|
|
return found.sort((a, b) => a.s - b.s);
|
|
}
|
|
var escape = (s) => s.split(MARK).join(ESC);
|
|
function encodeMarkdown(t2) {
|
|
if (!t2.includes("[[") && !t2.includes("==") && !t2.includes("[!") && !t2.includes(MARK)) return t2;
|
|
const parts = [];
|
|
let pos = 0;
|
|
for (const k of findConstructs(t2)) {
|
|
if (k.s < pos) continue;
|
|
parts.push(escape(t2.slice(pos, k.s)), k.c, `${MARK}:${toB64(k.o)}-->`);
|
|
pos = k.e;
|
|
}
|
|
parts.push(escape(t2.slice(pos)));
|
|
return parts.join("");
|
|
}
|
|
function decodeMarkdown(t2) {
|
|
if (!t2.includes(MARK)) return t2;
|
|
const parts = [];
|
|
let pos = 0;
|
|
for (; ; ) {
|
|
const i = t2.indexOf(MARK, pos);
|
|
if (i < 0) break;
|
|
if (t2.startsWith(ESC, i)) {
|
|
parts.push(t2.slice(pos, i), MARK);
|
|
pos = i + ESC.length;
|
|
continue;
|
|
}
|
|
MARKER_AT.lastIndex = i;
|
|
const m = MARKER_AT.exec(t2);
|
|
const original = m ? fromB64(m[1]) : null;
|
|
if (!m || original === null) {
|
|
parts.push(t2.slice(pos, i + MARK.length));
|
|
pos = i + MARK.length;
|
|
continue;
|
|
}
|
|
const seg = t2.slice(pos, i);
|
|
const forms = [convertConstruct(original, "\n"), convertConstruct(original, "\r\n")];
|
|
if (forms[0] === null) {
|
|
parts.push(t2.slice(pos, i + MARK.length));
|
|
pos = i + MARK.length;
|
|
continue;
|
|
}
|
|
const c = forms.find((f) => f !== null && seg.endsWith(f));
|
|
parts.push(c ? seg.slice(0, seg.length - c.length) + original : seg);
|
|
pos = i + m[0].length;
|
|
}
|
|
parts.push(t2.slice(pos));
|
|
return parts.join("");
|
|
}
|
|
function applyText(data, fn) {
|
|
let text;
|
|
try {
|
|
text = td3.decode(data);
|
|
} catch {
|
|
return data;
|
|
}
|
|
let out;
|
|
try {
|
|
out = fn(text);
|
|
} catch {
|
|
return data;
|
|
}
|
|
if (out === text) return data;
|
|
const u = te3.encode(out);
|
|
return u.buffer.slice(u.byteOffset, u.byteOffset + u.byteLength);
|
|
}
|
|
var isMarkdownPath = (path) => /\.md$/i.test(path);
|
|
var GitHubFormatLayer = class {
|
|
constructor() {
|
|
this.id = "ghformat";
|
|
this.fingerprint = "ghformat:1";
|
|
this.transformsContent = true;
|
|
}
|
|
encode(path, data) {
|
|
return Promise.resolve(isMarkdownPath(path) ? applyText(data, encodeMarkdown) : data);
|
|
}
|
|
decode(path, blob) {
|
|
return Promise.resolve(isMarkdownPath(path) ? applyText(blob, decodeMarkdown) : blob);
|
|
}
|
|
};
|
|
|
|
// src/shared.ts
|
|
var sharedFolderPattern = (folder) => "/" + folder.replace(/^\/+|\/+$/g, "") + "/";
|
|
var SharedFolderHost = class {
|
|
constructor(plugin, def) {
|
|
this.state = emptyState();
|
|
this.lastError = null;
|
|
this.lastSync = 0;
|
|
this.plugin = plugin;
|
|
this.def = def;
|
|
this.remote = makeRemote(def.provider, () => {
|
|
const own = plugin.sharedToken(def);
|
|
const auth = own ? { token: own, bearer: false, onUnauthorized: () => Promise.resolve(false) } : plugin.borrowedAuth(def.provider);
|
|
return { ...auth, apiBase: plugin.getApiBaseFor(def.provider), owner: def.owner, repo: def.repo };
|
|
}, plugin.blobCacheStore(`shared-${def.id}`));
|
|
this.engine = new SyncEngine(this);
|
|
}
|
|
get app() {
|
|
return this.plugin.app;
|
|
}
|
|
get gh() {
|
|
return this.remote;
|
|
}
|
|
get settings() {
|
|
const s = this.plugin.settings;
|
|
return { ...s, provider: this.def.provider, owner: this.def.owner, repo: this.def.repo, branch: this.def.branch || "main", syncConfigDir: false, syncHidden: false, dailySnapshot: false };
|
|
}
|
|
/** The vault's .gitignore applies inside shared folders too (vault paths). */
|
|
gitignorePatterns() {
|
|
return this.plugin.gitignorePatterns();
|
|
}
|
|
get stateFilePath() {
|
|
return (0, import_obsidian15.normalizePath)(this.plugin.stateFilePath.replace(/sync-state\.json$/, `sync-state-${this.def.id}.json`));
|
|
}
|
|
/** False when this device's own scope leaves the folder out. */
|
|
activeOnThisDevice() {
|
|
const inc = this.plugin.deviceScope().include;
|
|
if (!inc.length) return true;
|
|
const f = sharedFolderPattern(this.def.folder);
|
|
return inc.some((p) => f.startsWith(p.replace(/^\/+/, "").replace(/\*+$/, "")) || p.replace(/^\/+/, "").startsWith(f));
|
|
}
|
|
deviceName() {
|
|
return this.plugin.deviceName();
|
|
}
|
|
log(msg) {
|
|
this.plugin.log(`[${this.def.folder}] ${msg}`);
|
|
}
|
|
progress(text) {
|
|
this.plugin.progress(`${this.def.folder}: ${text}`);
|
|
}
|
|
async loadState() {
|
|
this.state = await readState(this.app.vault.adapter, this.stateFilePath, this.plugin.deviceId(), (m) => this.log(m));
|
|
}
|
|
async saveState() {
|
|
await writeState(this.app.vault.adapter, this.stateFilePath, this.state, this.plugin.deviceId());
|
|
}
|
|
askConflict(info) {
|
|
return this.plugin.askConflict(info);
|
|
}
|
|
confirmDeletes(local, remote) {
|
|
return this.plugin.confirmDeletes(local, remote);
|
|
}
|
|
deviceScope() {
|
|
const ds = this.plugin.deviceScope();
|
|
return { include: [sharedFolderPattern(this.def.folder)], exclude: ds.exclude, maxDownloadMB: ds.maxDownloadMB, pinned: ds.pinned };
|
|
}
|
|
isUnloaded() {
|
|
return this.plugin.isUnloaded();
|
|
}
|
|
get windows() {
|
|
return this.plugin.windows;
|
|
}
|
|
commitContext() {
|
|
return this.plugin.commitContext();
|
|
}
|
|
/** `sync: false` notes stay on this device inside shared folders too. */
|
|
frontmatterScope() {
|
|
return this.plugin.frontmatterScope();
|
|
}
|
|
conflictsAsPullRequest() {
|
|
return this.def.conflicts === "pr";
|
|
}
|
|
get pluginVersion() {
|
|
return this.plugin.pluginVersion;
|
|
}
|
|
codec() {
|
|
const prefix = new PrefixLayer(this.def.folder, this.def.subdir ?? "");
|
|
const lfs = new LfsLayer(this.remote, (this.plugin.settings.lfsThresholdMB ?? 0) * 1024 * 1024);
|
|
return new Codec(this.def.githubFormat ? [prefix, new GitHubFormatLayer(), lfs] : [prefix, lfs]);
|
|
}
|
|
};
|
|
|
|
// src/encryption.ts
|
|
var EncryptionLocked = class extends SyncError {
|
|
constructor() {
|
|
super("encLocked");
|
|
}
|
|
};
|
|
var EncryptionMismatch = class extends SyncError {
|
|
constructor() {
|
|
super("encMismatch");
|
|
}
|
|
};
|
|
var EncryptionUpgraded = class extends SyncError {
|
|
constructor() {
|
|
super("encUpgraded");
|
|
}
|
|
};
|
|
function encryptionGuard(getRecord, saveRecord, readMarker) {
|
|
return async (markerSha) => {
|
|
const rec = getRecord();
|
|
if (!rec) {
|
|
if (markerSha) throw new EncryptionLocked();
|
|
return null;
|
|
}
|
|
if (!markerSha) return JSON.stringify(rec.meta, null, 2) + "\n";
|
|
if (rec.markerSha === markerSha) return null;
|
|
const meta = await readMarker(markerSha);
|
|
if (meta.salt !== rec.meta.salt) throw new EncryptionMismatch();
|
|
const mine = rec.meta.v ?? 1;
|
|
const theirs = meta.v ?? 1;
|
|
if (theirs === mine) {
|
|
if (meta.check !== rec.meta.check) throw new EncryptionMismatch();
|
|
saveRecord({ ...rec, markerSha });
|
|
return null;
|
|
}
|
|
const opens = async (m) => (theirs === 1 || theirs === 2) && await (await EncryptionLayer.fromMaster(unb64(rec.master), m.v)).verify(m);
|
|
if (theirs < mine) {
|
|
if (!await opens(meta)) throw new EncryptionMismatch();
|
|
return JSON.stringify(rec.meta, null, 2) + "\n";
|
|
}
|
|
if (!await opens(meta)) throw new EncryptionMismatch();
|
|
saveRecord({ meta, master: rec.master, markerSha });
|
|
throw new EncryptionUpgraded();
|
|
};
|
|
}
|
|
|
|
// src/explorer.ts
|
|
var import_obsidian16 = require("obsidian");
|
|
var PENDING = "vsg-x-pending";
|
|
var CONFLICT = "vsg-x-conflict";
|
|
var EXCLUDED = "vsg-x-excluded";
|
|
var ROWS = ".nav-file-title[data-path], .nav-folder-title[data-path]";
|
|
var ExplorerBadges = class {
|
|
constructor(app, pending, enabled, synced, scopeKey) {
|
|
this.observers = /* @__PURE__ */ new Map();
|
|
this.status = /* @__PURE__ */ new Map();
|
|
this.excluded = /* @__PURE__ */ new Set();
|
|
this.excludedKey = null;
|
|
this.app = app;
|
|
this.pending = pending;
|
|
this.enabled = enabled;
|
|
this.synced = synced ?? null;
|
|
this.scopeKey = scopeKey ?? null;
|
|
}
|
|
/** Files that don't sync, and folders with nothing inside that syncs. Recomputed only when the scope key changes. */
|
|
computeExcluded() {
|
|
let key2 = null;
|
|
try {
|
|
key2 = this.scopeKey?.() ?? null;
|
|
} catch {
|
|
key2 = null;
|
|
}
|
|
if (key2 !== null && key2 === this.excludedKey) return;
|
|
this.excludedKey = key2;
|
|
this.excluded.clear();
|
|
if (!this.synced) return;
|
|
let inScope;
|
|
try {
|
|
inScope = this.synced();
|
|
} catch {
|
|
return;
|
|
}
|
|
const syncedFolders = /* @__PURE__ */ new Set();
|
|
const folders = [];
|
|
for (const f of this.app.vault.getAllLoadedFiles()) {
|
|
if (f instanceof import_obsidian16.TFolder) {
|
|
if (f.path && f.path !== "/") folders.push(f.path);
|
|
} else if (f instanceof import_obsidian16.TFile) {
|
|
if (!inScope(f.path)) {
|
|
this.excluded.add(f.path);
|
|
continue;
|
|
}
|
|
for (let i = f.path.lastIndexOf("/"); i > 0; i = f.path.lastIndexOf("/", i - 1)) {
|
|
const dir = f.path.slice(0, i);
|
|
if (syncedFolders.has(dir)) break;
|
|
syncedFolders.add(dir);
|
|
}
|
|
}
|
|
}
|
|
for (const d of folders) if (!syncedFolders.has(d) && !inScope(d)) this.excluded.add(d);
|
|
}
|
|
/** Recompute statuses and re-mark every rendered row. Cheap: runs after syncs and edits (debounced). */
|
|
refresh() {
|
|
this.status.clear();
|
|
if (this.enabled()) {
|
|
for (const p of this.pending()) this.status.set(p, PENDING);
|
|
for (const f of this.app.vault.getFiles()) if (conflictCopyOriginal(f.path)) this.status.set(f.path, CONFLICT);
|
|
this.computeExcluded();
|
|
} else {
|
|
this.excluded.clear();
|
|
this.excludedKey = null;
|
|
}
|
|
this.attach();
|
|
for (const root of this.observers.keys()) this.markAll(root);
|
|
}
|
|
/** Watch every open file explorer (they come and go with the layout). */
|
|
attach() {
|
|
const roots = new Set(this.app.workspace.getLeavesOfType("file-explorer").map((l) => l.view.containerEl));
|
|
for (const [root, obs] of this.observers) {
|
|
if (!roots.has(root) || !this.enabled()) {
|
|
obs.disconnect();
|
|
this.observers.delete(root);
|
|
this.clear(root);
|
|
}
|
|
}
|
|
if (!this.enabled()) return;
|
|
for (const root of roots) {
|
|
if (this.observers.has(root)) continue;
|
|
const obs = new MutationObserver((records) => {
|
|
for (const r of records) for (const n of Array.from(r.addedNodes)) if (n.instanceOf(HTMLElement)) this.markAll(n);
|
|
});
|
|
obs.observe(root, { childList: true, subtree: true });
|
|
this.observers.set(root, obs);
|
|
}
|
|
}
|
|
markAll(root) {
|
|
const rows = root.matches?.(ROWS) ? [root] : Array.from(root.querySelectorAll(ROWS));
|
|
for (const el of rows) {
|
|
const path = el.dataset.path ?? "";
|
|
const cls = this.status.get(path);
|
|
const out = this.excluded.has(path);
|
|
el.toggleClass(PENDING, cls === PENDING && !out);
|
|
el.toggleClass(CONFLICT, cls === CONFLICT);
|
|
el.toggleClass(EXCLUDED, out);
|
|
if (out) {
|
|
el.setAttr("aria-description", t("x.excluded"));
|
|
el.setAttr("title", t("x.excluded"));
|
|
el.dataset.vsgTip = "1";
|
|
} else {
|
|
if (cls) el.setAttr("aria-description", cls === PENDING ? t("x.pending") : t("x.conflict"));
|
|
else el.removeAttribute("aria-description");
|
|
if (el.dataset.vsgTip) {
|
|
el.removeAttribute("title");
|
|
delete el.dataset.vsgTip;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
clear(root) {
|
|
for (const el of Array.from(root.querySelectorAll(`.${PENDING}, .${CONFLICT}, .${EXCLUDED}`))) {
|
|
el.removeClasses([PENDING, CONFLICT, EXCLUDED]);
|
|
el.removeAttribute("aria-description");
|
|
if (el.dataset.vsgTip) {
|
|
el.removeAttribute("title");
|
|
delete el.dataset.vsgTip;
|
|
}
|
|
}
|
|
}
|
|
destroy() {
|
|
for (const [root, obs] of this.observers) {
|
|
obs.disconnect();
|
|
this.clear(root);
|
|
}
|
|
this.observers.clear();
|
|
}
|
|
};
|
|
|
|
// src/sync-extras.ts
|
|
var import_obsidian17 = require("obsidian");
|
|
|
|
// src/scope-edit.ts
|
|
function escapeGlob(path) {
|
|
return path.replace(/[*?\\]/g, (c) => "\\" + c);
|
|
}
|
|
function exactPattern(path, folder) {
|
|
const p = path.replace(/^\/+|\/+$/g, "");
|
|
return "/" + escapeGlob(p) + (folder ? "/" : "");
|
|
}
|
|
var lines = (text) => text.split("\n");
|
|
var withConfig = (text, configDir) => lines(text).map((l) => l.split("{config}").join(configDir));
|
|
function excludedByPatterns(patterns, path, configDir) {
|
|
return compileGlobs(withConfig(patterns, configDir))(path);
|
|
}
|
|
function addExclusion(patterns, path, folder, configDir) {
|
|
if (excludedByPatterns(patterns, path, configDir)) return null;
|
|
const line = exactPattern(path, folder);
|
|
const kept = lines(patterns).filter((l) => l.trim() !== "!" + line);
|
|
const out = `${kept.join("\n").trimEnd()}
|
|
${line}`;
|
|
return excludedByPatterns(out, path, configDir) ? out : null;
|
|
}
|
|
function removeExclusion(patterns, path, folder, configDir) {
|
|
if (!excludedByPatterns(patterns, path, configDir)) return null;
|
|
const own = exactPattern(path, folder);
|
|
const nested = path.replace(/^\/+|\/+$/g, "").includes("/");
|
|
const variants = /* @__PURE__ */ new Set([own, folder ? own.slice(0, -1) : own, nested ? own.slice(1) : own, nested && folder ? own.slice(1, -1) : own]);
|
|
const removed = lines(patterns).filter((l) => !variants.has(l.trim()));
|
|
let out = removed.join("\n");
|
|
if (excludedByPatterns(out, path, configDir)) out = `${out.trimEnd()}
|
|
!${own}`;
|
|
return excludedByPatterns(out, path, configDir) ? null : out;
|
|
}
|
|
|
|
// src/sync-extras.ts
|
|
var SYNC_START_EVENT = "vault-sync-git:sync-start";
|
|
var SYNC_DONE_EVENT = "vault-sync-git:sync-done";
|
|
function emitSyncEvent(app, name, data) {
|
|
try {
|
|
app.workspace.trigger(name, data);
|
|
} catch (e) {
|
|
console.error(`Vault Sync for Git: a ${name} listener failed`, e);
|
|
}
|
|
}
|
|
var OFF = /^(false|no|off)$/i;
|
|
function frontmatterScope(app) {
|
|
const out = /* @__PURE__ */ new Set();
|
|
const unknown = /* @__PURE__ */ new Set();
|
|
for (const f of app.vault.getMarkdownFiles()) {
|
|
const cache = app.metadataCache.getFileCache(f);
|
|
if (!cache) {
|
|
unknown.add(f.path);
|
|
continue;
|
|
}
|
|
const v = cache.frontmatter?.sync;
|
|
if (v === false || typeof v === "string" && OFF.test(v.trim())) out.add(f.path);
|
|
}
|
|
return { out, unknown };
|
|
}
|
|
var CommitMessageModal = class extends import_obsidian17.Modal {
|
|
constructor(app, done) {
|
|
super(app);
|
|
this.text = "";
|
|
this.sent = false;
|
|
this.done = done;
|
|
}
|
|
onOpen() {
|
|
this.titleEl.setText(t("msg.title"));
|
|
const input = this.contentEl.createEl("textarea", { cls: "vsg-textarea vsg-commit-input", attr: { rows: "3", placeholder: t("msg.placeholder"), "aria-label": t("msg.title") } });
|
|
input.addEventListener("input", () => this.text = input.value);
|
|
input.addEventListener("keydown", (e) => {
|
|
if (e.key === "Enter" && (e.metaKey || e.ctrlKey)) {
|
|
e.preventDefault();
|
|
this.submit();
|
|
}
|
|
});
|
|
new import_obsidian17.Setting(this.contentEl).addButton((b) => b.setButtonText(t("u.cancel")).onClick(() => this.close())).addButton((b) => b.setButtonText(t("msg.sync")).setCta().onClick(() => this.submit()));
|
|
window.setTimeout(() => input.focus(), 0);
|
|
}
|
|
submit() {
|
|
const msg = this.text.replace(/\s+/g, " ").trim();
|
|
if (!msg) return void new import_obsidian17.Notice(t("msg.empty"));
|
|
this.sent = true;
|
|
this.close();
|
|
this.done(msg);
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
if (!this.sent) this.done(null);
|
|
}
|
|
};
|
|
async function waitIdle(plugin, maxMs) {
|
|
const until = Date.now() + maxMs;
|
|
while (plugin.isSyncing()) {
|
|
if (Date.now() > until) return false;
|
|
await new Promise((r) => window.setTimeout(r, 300));
|
|
}
|
|
return true;
|
|
}
|
|
function isFolder(file) {
|
|
return file instanceof import_obsidian17.TFolder;
|
|
}
|
|
async function excludePath(plugin, file) {
|
|
const cfg = plugin.app.vault.configDir;
|
|
const next = addExclusion(plugin.settings.excludePatterns, file.path, isFolder(file), cfg);
|
|
if (next === null) return void new import_obsidian17.Notice(t("m.alreadyExcluded", { folder: file.path }));
|
|
if (!await confirmPlan(plugin.app, t("menu.excludeFile"), t("m.excludeFileBody", { path: file.path }), [], t("menu.excludeFile"))) return;
|
|
plugin.settings.excludePatterns = next;
|
|
await plugin.saveSettings();
|
|
plugin.refreshBadges();
|
|
new import_obsidian17.Notice(t("m.excludedFile", { path: file.path }));
|
|
}
|
|
async function includePath(plugin, file) {
|
|
const cfg = plugin.app.vault.configDir;
|
|
const next = removeExclusion(plugin.settings.excludePatterns, file.path, isFolder(file), cfg);
|
|
if (next === null) return void new import_obsidian17.Notice(t("m.includeImpossible", { path: file.path }));
|
|
plugin.settings.excludePatterns = next;
|
|
await plugin.saveSettings();
|
|
plugin.refreshBadges();
|
|
new import_obsidian17.Notice(t("m.included", { path: file.path }));
|
|
}
|
|
function addScopeMenuItems(plugin, menu, file) {
|
|
if (!file.path || file.path === "/") return;
|
|
const ours = (item) => t("menu.prefixed", { item });
|
|
const byPatterns = excludedByPatterns(plugin.settings.excludePatterns, file.path, plugin.app.vault.configDir);
|
|
if (byPatterns) {
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.include"))).setIcon("eye").onClick(() => void includePath(plugin, file)));
|
|
} else if (file instanceof import_obsidian17.TFile && plugin.isPathSynced(file.path)) {
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.excludeFile"))).setIcon("eye-off").onClick(() => void excludePath(plugin, file)));
|
|
}
|
|
}
|
|
var ExcludePatternsModal = class extends import_obsidian17.Modal {
|
|
constructor(plugin) {
|
|
super(plugin.app);
|
|
this.plugin = plugin;
|
|
}
|
|
onOpen() {
|
|
this.titleEl.setText(t("s.exclude"));
|
|
this.contentEl.createEl("p", { cls: "vsg-muted", text: t("s.excludeDesc") });
|
|
const area = this.contentEl.createEl("textarea", { cls: "vsg-textarea vsg-exclude-editor", attr: { rows: "14", "aria-label": t("s.exclude"), spellcheck: "false" } });
|
|
area.value = this.plugin.settings.excludePatterns;
|
|
new import_obsidian17.Setting(this.contentEl).addButton((b) => b.setButtonText(t("u.cancel")).onClick(() => this.close())).addButton(
|
|
(b) => b.setButtonText(t("ex.save")).setCta().onClick(async () => {
|
|
this.plugin.settings.excludePatterns = area.value;
|
|
await this.plugin.saveSettings();
|
|
this.plugin.refreshBadges();
|
|
new import_obsidian17.Notice(t("ex.saved"));
|
|
this.close();
|
|
})
|
|
);
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
var StatusExtras = class {
|
|
constructor(plugin, el) {
|
|
this.plugin = plugin;
|
|
this.el = el;
|
|
el.addClass("vsg-status-extra");
|
|
}
|
|
update() {
|
|
const p = this.plugin;
|
|
const s = p.settings;
|
|
this.el.empty();
|
|
const parts = [];
|
|
if (s.statusBranch && p.isConfigured()) parts.push({ icon: "git-branch", text: s.branch, tip: t("sb.branchTip", { branch: s.branch }) });
|
|
const next = p.nextScheduledSync();
|
|
if (s.statusCountdown && next > 0 && p.isConfigured() && !p.isPaused()) {
|
|
const min = Math.ceil((next - Date.now()) / 6e4);
|
|
parts.push({ icon: "timer", text: min <= 1 ? t("sb.soon") : t("sb.next", { n: min }), tip: t("sb.nextTip") });
|
|
}
|
|
this.el.toggle(parts.length > 0);
|
|
for (const part of parts) {
|
|
const span = this.el.createSpan({ cls: "vsg-status-part", attr: { "aria-label": part.tip } });
|
|
(0, import_obsidian17.setIcon)(span.createSpan({ cls: "vsg-status-icon" }), part.icon);
|
|
span.createSpan({ text: part.text });
|
|
}
|
|
}
|
|
};
|
|
function installSyncExtras(plugin) {
|
|
plugin.addCommand({
|
|
id: "sync-with-message",
|
|
name: t("cmd.syncMessage"),
|
|
callback: () => {
|
|
if (plugin.isSyncing()) return void new import_obsidian17.Notice(t("notice.busy"));
|
|
new CommitMessageModal(plugin.app, (msg) => {
|
|
if (!msg) return;
|
|
plugin.setCustomCommitMessage(msg);
|
|
void plugin.sync("manual");
|
|
}).open();
|
|
}
|
|
});
|
|
plugin.addCommand({
|
|
id: "edit-exclude-patterns",
|
|
name: t("cmd.editExcludes"),
|
|
callback: () => new ExcludePatternsModal(plugin).open()
|
|
});
|
|
let status = null;
|
|
if (!import_obsidian17.Platform.isMobile) {
|
|
plugin.addCommand({ id: "sync-and-close", name: t("cmd.syncClose"), callback: () => void syncAndClose(plugin) });
|
|
status = new StatusExtras(plugin, plugin.addStatusBarItem());
|
|
status.update();
|
|
plugin.registerInterval(window.setInterval(() => status?.update(), 3e4));
|
|
plugin.registerDomEvent(window, "beforeunload", () => {
|
|
if (!plugin.settings.syncOnBackground || plugin.isSyncing() || !plugin.isConfigured()) return;
|
|
try {
|
|
if (plugin.pendingLocalPaths().size) void plugin.sync("background");
|
|
} catch {
|
|
}
|
|
});
|
|
}
|
|
return { updateStatus: () => status?.update() };
|
|
}
|
|
async function syncAndClose(plugin) {
|
|
const notice = new import_obsidian17.Notice(t("m.closeSyncing"), 0);
|
|
try {
|
|
if (!await waitIdle(plugin, 5 * 6e4)) return void new import_obsidian17.Notice(t("m.closeNotSynced"), 8e3);
|
|
const before = plugin.syncOutcome?.seq ?? 0;
|
|
await plugin.sync("close");
|
|
await waitIdle(plugin, 5 * 6e4);
|
|
const verdict = closeVerdict(before, plugin.syncOutcome, plugin.lastError);
|
|
if (!verdict.quit) return void new import_obsidian17.Notice(verdict.message, 15e3);
|
|
} catch (e) {
|
|
return void new import_obsidian17.Notice(t("m.closeFailed", { error: errMsg(e) }), 1e4);
|
|
} finally {
|
|
notice.hide();
|
|
}
|
|
const commands = plugin.app.commands;
|
|
if (commands?.commands?.["app:quit"] && commands.executeCommandById) commands.executeCommandById("app:quit");
|
|
else window.close();
|
|
}
|
|
|
|
// src/removed-hosts.ts
|
|
var PROVIDERS = ["github", "gitlab", "gitea", "bitbucket"];
|
|
function isKnownProvider(p) {
|
|
return typeof p === "string" && PROVIDERS.includes(p);
|
|
}
|
|
function dropRemovedHosts(s) {
|
|
const out = { main: null, mirror: null, shared: [] };
|
|
if (!isKnownProvider(s.provider)) {
|
|
out.main = { provider: String(s.provider), owner: s.owner ?? "", repo: s.repo ?? "", branch: s.branch ?? "" };
|
|
s.removedHost = out.main;
|
|
s.provider = "github";
|
|
s.owner = "";
|
|
s.repo = "";
|
|
}
|
|
const m = s.mirror;
|
|
if (m && !isKnownProvider(m.provider)) {
|
|
out.mirror = { provider: String(m.provider), owner: m.owner ?? "", repo: m.repo ?? "", branch: m.branch ?? "" };
|
|
const off = { ...m, enabled: false, provider: "github", owner: "", repo: "" };
|
|
s.mirror = off;
|
|
}
|
|
for (const f of s.sharedFolders ?? []) if (!isKnownProvider(f.provider)) out.shared.push(f.folder);
|
|
return out;
|
|
}
|
|
function removedHostPending(s) {
|
|
return !!s.removedHost && (!s.owner || !s.repo);
|
|
}
|
|
function mainSyncBlocked(s) {
|
|
return removedHostPending(s) || !isKnownProvider(s.provider);
|
|
}
|
|
function syncableMirror(m) {
|
|
return m?.enabled && m.owner && m.repo && isKnownProvider(m.provider) ? m : null;
|
|
}
|
|
function syncableSharedFolders(list2) {
|
|
return (list2 ?? []).filter((f) => f.enabled && f.folder && f.owner && f.repo && isKnownProvider(f.provider));
|
|
}
|
|
function removedHostNotice(r, s) {
|
|
if (r.main || removedHostPending(s)) return "main";
|
|
return r.mirror || r.shared.length ? "other" : null;
|
|
}
|
|
|
|
// src/setuplink.ts
|
|
var SETUP_ACTION = "vault-sync-git";
|
|
var te4 = new TextEncoder();
|
|
var td4 = new TextDecoder();
|
|
var ab2 = (u) => u.buffer.slice(u.byteOffset, u.byteOffset + u.byteLength);
|
|
var toUrl = (s) => s.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
var fromUrl = (s) => s.replace(/-/g, "+").replace(/_/g, "/") + "===".slice((s.length + 3) % 4);
|
|
function newSetupCode() {
|
|
const alphabet = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
|
|
const bytes = crypto.getRandomValues(new Uint8Array(12));
|
|
const chars = Array.from(bytes, (b) => alphabet[b % alphabet.length]).join("");
|
|
return `${chars.slice(0, 4)}-${chars.slice(4, 8)}-${chars.slice(8, 12)}`;
|
|
}
|
|
var normCode = (code) => code.toUpperCase().replace(/[^A-Z0-9]/g, "");
|
|
async function key(code, salt) {
|
|
const raw = await deriveMaster(normCode(code), salt);
|
|
return crypto.subtle.importKey("raw", ab2(raw), "AES-GCM", false, ["encrypt", "decrypt"]);
|
|
}
|
|
async function encryptToken(token, code) {
|
|
const salt = crypto.getRandomValues(new Uint8Array(16));
|
|
const iv = crypto.getRandomValues(new Uint8Array(12));
|
|
const ct = new Uint8Array(await crypto.subtle.encrypt({ name: "AES-GCM", iv: ab2(iv) }, await key(code, salt), ab2(te4.encode(token))));
|
|
return { salt: b64(salt), iv: b64(iv), ct: b64(ct) };
|
|
}
|
|
async function decryptToken(t2, code) {
|
|
const pt2 = await crypto.subtle.decrypt({ name: "AES-GCM", iv: ab2(unb64(t2.iv)) }, await key(code, unb64(t2.salt)), ab2(unb64(t2.ct)));
|
|
return td4.decode(pt2);
|
|
}
|
|
function buildSetupLink(p) {
|
|
return `obsidian://${SETUP_ACTION}?s=${toUrl(b64(te4.encode(JSON.stringify(p))))}`;
|
|
}
|
|
var str = (v, max = 200) => typeof v === "string" && v.length <= max ? v : null;
|
|
function parseSetupPayload(s) {
|
|
if (!s || s.length > 2e4) return null;
|
|
let raw;
|
|
try {
|
|
raw = JSON.parse(td4.decode(unb64(fromUrl(s))));
|
|
} catch {
|
|
return null;
|
|
}
|
|
if (raw.v !== 1 || !PROVIDERS.includes(raw.provider)) return null;
|
|
const owner = str(raw.owner);
|
|
const repo = str(raw.repo);
|
|
const branch = str(raw.branch);
|
|
if (!owner || !repo || !branch || /[\s?#]/.test(owner + repo)) return null;
|
|
if ([...owner.split("/"), ...repo.split("/")].some((seg) => seg === "" || seg === "." || seg === "..")) return null;
|
|
const out = { v: 1, provider: raw.provider, owner, repo, branch };
|
|
const api = str(raw.api, 500);
|
|
if (api) {
|
|
if (!/^https:\/\/[^\s/?#]+(\/[^\s?#]*)?$/i.test(api) && !/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?(\/[^\s?#]*)?$/i.test(api)) return null;
|
|
out.api = api;
|
|
}
|
|
if (typeof raw.syncConfigDir === "boolean") out.syncConfigDir = raw.syncConfigDir;
|
|
if (typeof raw.syncHidden === "boolean") out.syncHidden = raw.syncHidden;
|
|
if (typeof raw.useGitignore === "boolean") out.useGitignore = raw.useGitignore;
|
|
if (raw.configSync && typeof raw.configSync === "object") out.configSync = normalizeConfigSync(raw.configSync);
|
|
const exclude = str(raw.exclude, 1e4);
|
|
if (exclude !== null) out.exclude = exclude;
|
|
const subdir = str(raw.subdir, 500);
|
|
if (subdir) out.subdir = subdir;
|
|
const t2 = raw.token;
|
|
if (t2 && str(t2.salt) && str(t2.iv) && str(t2.ct, 4e3)) out.token = { salt: t2.salt, iv: t2.iv, ct: t2.ct };
|
|
return out;
|
|
}
|
|
|
|
// src/setuplink-ui.ts
|
|
var import_obsidian18 = require("obsidian");
|
|
|
|
// node_modules/qrcode-generator/dist/qrcode.mjs
|
|
var qrcode = function(typeNumber, errorCorrectionLevel) {
|
|
const PAD0 = 236;
|
|
const PAD1 = 17;
|
|
let _typeNumber = typeNumber;
|
|
const _errorCorrectionLevel = QRErrorCorrectionLevel[errorCorrectionLevel];
|
|
let _modules = null;
|
|
let _moduleCount = 0;
|
|
let _dataCache = null;
|
|
const _dataList = [];
|
|
const _this = {};
|
|
const makeImpl = function(test, maskPattern) {
|
|
_moduleCount = _typeNumber * 4 + 17;
|
|
_modules = (function(moduleCount) {
|
|
const modules = new Array(moduleCount);
|
|
for (let row = 0; row < moduleCount; row += 1) {
|
|
modules[row] = new Array(moduleCount);
|
|
for (let col = 0; col < moduleCount; col += 1) {
|
|
modules[row][col] = null;
|
|
}
|
|
}
|
|
return modules;
|
|
})(_moduleCount);
|
|
setupPositionProbePattern(0, 0);
|
|
setupPositionProbePattern(_moduleCount - 7, 0);
|
|
setupPositionProbePattern(0, _moduleCount - 7);
|
|
setupPositionAdjustPattern();
|
|
setupTimingPattern();
|
|
setupTypeInfo(test, maskPattern);
|
|
if (_typeNumber >= 7) {
|
|
setupTypeNumber(test);
|
|
}
|
|
if (_dataCache == null) {
|
|
_dataCache = createData(_typeNumber, _errorCorrectionLevel, _dataList);
|
|
}
|
|
mapData(_dataCache, maskPattern);
|
|
};
|
|
const setupPositionProbePattern = function(row, col) {
|
|
for (let r = -1; r <= 7; r += 1) {
|
|
if (row + r <= -1 || _moduleCount <= row + r) continue;
|
|
for (let c = -1; c <= 7; c += 1) {
|
|
if (col + c <= -1 || _moduleCount <= col + c) continue;
|
|
if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) {
|
|
_modules[row + r][col + c] = true;
|
|
} else {
|
|
_modules[row + r][col + c] = false;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
const getBestMaskPattern = function() {
|
|
let minLostPoint = 0;
|
|
let pattern = 0;
|
|
for (let i = 0; i < 8; i += 1) {
|
|
makeImpl(true, i);
|
|
const lostPoint = QRUtil.getLostPoint(_this);
|
|
if (i == 0 || minLostPoint > lostPoint) {
|
|
minLostPoint = lostPoint;
|
|
pattern = i;
|
|
}
|
|
}
|
|
return pattern;
|
|
};
|
|
const setupTimingPattern = function() {
|
|
for (let r = 8; r < _moduleCount - 8; r += 1) {
|
|
if (_modules[r][6] != null) {
|
|
continue;
|
|
}
|
|
_modules[r][6] = r % 2 == 0;
|
|
}
|
|
for (let c = 8; c < _moduleCount - 8; c += 1) {
|
|
if (_modules[6][c] != null) {
|
|
continue;
|
|
}
|
|
_modules[6][c] = c % 2 == 0;
|
|
}
|
|
};
|
|
const setupPositionAdjustPattern = function() {
|
|
const pos = QRUtil.getPatternPosition(_typeNumber);
|
|
for (let i = 0; i < pos.length; i += 1) {
|
|
for (let j = 0; j < pos.length; j += 1) {
|
|
const row = pos[i];
|
|
const col = pos[j];
|
|
if (_modules[row][col] != null) {
|
|
continue;
|
|
}
|
|
for (let r = -2; r <= 2; r += 1) {
|
|
for (let c = -2; c <= 2; c += 1) {
|
|
if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) {
|
|
_modules[row + r][col + c] = true;
|
|
} else {
|
|
_modules[row + r][col + c] = false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
const setupTypeNumber = function(test) {
|
|
const bits = QRUtil.getBCHTypeNumber(_typeNumber);
|
|
for (let i = 0; i < 18; i += 1) {
|
|
const mod = !test && (bits >> i & 1) == 1;
|
|
_modules[Math.floor(i / 3)][i % 3 + _moduleCount - 8 - 3] = mod;
|
|
}
|
|
for (let i = 0; i < 18; i += 1) {
|
|
const mod = !test && (bits >> i & 1) == 1;
|
|
_modules[i % 3 + _moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
|
|
}
|
|
};
|
|
const setupTypeInfo = function(test, maskPattern) {
|
|
const data = _errorCorrectionLevel << 3 | maskPattern;
|
|
const bits = QRUtil.getBCHTypeInfo(data);
|
|
for (let i = 0; i < 15; i += 1) {
|
|
const mod = !test && (bits >> i & 1) == 1;
|
|
if (i < 6) {
|
|
_modules[i][8] = mod;
|
|
} else if (i < 8) {
|
|
_modules[i + 1][8] = mod;
|
|
} else {
|
|
_modules[_moduleCount - 15 + i][8] = mod;
|
|
}
|
|
}
|
|
for (let i = 0; i < 15; i += 1) {
|
|
const mod = !test && (bits >> i & 1) == 1;
|
|
if (i < 8) {
|
|
_modules[8][_moduleCount - i - 1] = mod;
|
|
} else if (i < 9) {
|
|
_modules[8][15 - i - 1 + 1] = mod;
|
|
} else {
|
|
_modules[8][15 - i - 1] = mod;
|
|
}
|
|
}
|
|
_modules[_moduleCount - 8][8] = !test;
|
|
};
|
|
const mapData = function(data, maskPattern) {
|
|
let inc = -1;
|
|
let row = _moduleCount - 1;
|
|
let bitIndex = 7;
|
|
let byteIndex = 0;
|
|
const maskFunc = QRUtil.getMaskFunction(maskPattern);
|
|
for (let col = _moduleCount - 1; col > 0; col -= 2) {
|
|
if (col == 6) col -= 1;
|
|
while (true) {
|
|
for (let c = 0; c < 2; c += 1) {
|
|
if (_modules[row][col - c] == null) {
|
|
let dark = false;
|
|
if (byteIndex < data.length) {
|
|
dark = (data[byteIndex] >>> bitIndex & 1) == 1;
|
|
}
|
|
const mask = maskFunc(row, col - c);
|
|
if (mask) {
|
|
dark = !dark;
|
|
}
|
|
_modules[row][col - c] = dark;
|
|
bitIndex -= 1;
|
|
if (bitIndex == -1) {
|
|
byteIndex += 1;
|
|
bitIndex = 7;
|
|
}
|
|
}
|
|
}
|
|
row += inc;
|
|
if (row < 0 || _moduleCount <= row) {
|
|
row -= inc;
|
|
inc = -inc;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
const createBytes = function(buffer, rsBlocks) {
|
|
let offset = 0;
|
|
let maxDcCount = 0;
|
|
let maxEcCount = 0;
|
|
const dcdata = new Array(rsBlocks.length);
|
|
const ecdata = new Array(rsBlocks.length);
|
|
for (let r = 0; r < rsBlocks.length; r += 1) {
|
|
const dcCount = rsBlocks[r].dataCount;
|
|
const ecCount = rsBlocks[r].totalCount - dcCount;
|
|
maxDcCount = Math.max(maxDcCount, dcCount);
|
|
maxEcCount = Math.max(maxEcCount, ecCount);
|
|
dcdata[r] = new Array(dcCount);
|
|
for (let i = 0; i < dcdata[r].length; i += 1) {
|
|
dcdata[r][i] = 255 & buffer.getBuffer()[i + offset];
|
|
}
|
|
offset += dcCount;
|
|
const rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount);
|
|
const rawPoly = qrPolynomial(dcdata[r], rsPoly.getLength() - 1);
|
|
const modPoly = rawPoly.mod(rsPoly);
|
|
ecdata[r] = new Array(rsPoly.getLength() - 1);
|
|
for (let i = 0; i < ecdata[r].length; i += 1) {
|
|
const modIndex = i + modPoly.getLength() - ecdata[r].length;
|
|
ecdata[r][i] = modIndex >= 0 ? modPoly.getAt(modIndex) : 0;
|
|
}
|
|
}
|
|
let totalCodeCount = 0;
|
|
for (let i = 0; i < rsBlocks.length; i += 1) {
|
|
totalCodeCount += rsBlocks[i].totalCount;
|
|
}
|
|
const data = new Array(totalCodeCount);
|
|
let index = 0;
|
|
for (let i = 0; i < maxDcCount; i += 1) {
|
|
for (let r = 0; r < rsBlocks.length; r += 1) {
|
|
if (i < dcdata[r].length) {
|
|
data[index] = dcdata[r][i];
|
|
index += 1;
|
|
}
|
|
}
|
|
}
|
|
for (let i = 0; i < maxEcCount; i += 1) {
|
|
for (let r = 0; r < rsBlocks.length; r += 1) {
|
|
if (i < ecdata[r].length) {
|
|
data[index] = ecdata[r][i];
|
|
index += 1;
|
|
}
|
|
}
|
|
}
|
|
return data;
|
|
};
|
|
const createData = function(typeNumber2, errorCorrectionLevel2, dataList) {
|
|
const rsBlocks = QRRSBlock.getRSBlocks(typeNumber2, errorCorrectionLevel2);
|
|
const buffer = qrBitBuffer();
|
|
for (let i = 0; i < dataList.length; i += 1) {
|
|
const data = dataList[i];
|
|
buffer.put(data.getMode(), 4);
|
|
buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber2));
|
|
data.write(buffer);
|
|
}
|
|
let totalDataCount = 0;
|
|
for (let i = 0; i < rsBlocks.length; i += 1) {
|
|
totalDataCount += rsBlocks[i].dataCount;
|
|
}
|
|
if (buffer.getLengthInBits() > totalDataCount * 8) {
|
|
throw "code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")";
|
|
}
|
|
if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
|
|
buffer.put(0, 4);
|
|
}
|
|
while (buffer.getLengthInBits() % 8 != 0) {
|
|
buffer.putBit(false);
|
|
}
|
|
while (true) {
|
|
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
break;
|
|
}
|
|
buffer.put(PAD0, 8);
|
|
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
break;
|
|
}
|
|
buffer.put(PAD1, 8);
|
|
}
|
|
return createBytes(buffer, rsBlocks);
|
|
};
|
|
_this.addData = function(data, mode) {
|
|
mode = mode || "Byte";
|
|
let newData = null;
|
|
switch (mode) {
|
|
case "Numeric":
|
|
newData = qrNumber(data);
|
|
break;
|
|
case "Alphanumeric":
|
|
newData = qrAlphaNum(data);
|
|
break;
|
|
case "Byte":
|
|
newData = qr8BitByte(data);
|
|
break;
|
|
case "Kanji":
|
|
newData = qrKanji(data);
|
|
break;
|
|
default:
|
|
throw "mode:" + mode;
|
|
}
|
|
_dataList.push(newData);
|
|
_dataCache = null;
|
|
};
|
|
_this.isDark = function(row, col) {
|
|
if (row < 0 || _moduleCount <= row || col < 0 || _moduleCount <= col) {
|
|
throw row + "," + col;
|
|
}
|
|
return _modules[row][col];
|
|
};
|
|
_this.getModuleCount = function() {
|
|
return _moduleCount;
|
|
};
|
|
_this.make = function() {
|
|
if (_typeNumber < 1) {
|
|
let typeNumber2 = 1;
|
|
for (; typeNumber2 < 40; typeNumber2++) {
|
|
const rsBlocks = QRRSBlock.getRSBlocks(typeNumber2, _errorCorrectionLevel);
|
|
const buffer = qrBitBuffer();
|
|
for (let i = 0; i < _dataList.length; i++) {
|
|
const data = _dataList[i];
|
|
buffer.put(data.getMode(), 4);
|
|
buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber2));
|
|
data.write(buffer);
|
|
}
|
|
let totalDataCount = 0;
|
|
for (let i = 0; i < rsBlocks.length; i++) {
|
|
totalDataCount += rsBlocks[i].dataCount;
|
|
}
|
|
if (buffer.getLengthInBits() <= totalDataCount * 8) {
|
|
break;
|
|
}
|
|
}
|
|
_typeNumber = typeNumber2;
|
|
}
|
|
makeImpl(false, getBestMaskPattern());
|
|
};
|
|
_this.createTableTag = function(cellSize, margin) {
|
|
cellSize = cellSize || 2;
|
|
margin = typeof margin == "undefined" ? cellSize * 4 : margin;
|
|
let qrHtml = "";
|
|
qrHtml += '<table style="';
|
|
qrHtml += " border-width: 0px; border-style: none;";
|
|
qrHtml += " border-collapse: collapse;";
|
|
qrHtml += " padding: 0px; margin: " + margin + "px;";
|
|
qrHtml += '">';
|
|
qrHtml += "<tbody>";
|
|
for (let r = 0; r < _this.getModuleCount(); r += 1) {
|
|
qrHtml += "<tr>";
|
|
for (let c = 0; c < _this.getModuleCount(); c += 1) {
|
|
qrHtml += '<td style="';
|
|
qrHtml += " border-width: 0px; border-style: none;";
|
|
qrHtml += " border-collapse: collapse;";
|
|
qrHtml += " padding: 0px; margin: 0px;";
|
|
qrHtml += " width: " + cellSize + "px;";
|
|
qrHtml += " height: " + cellSize + "px;";
|
|
qrHtml += " background-color: ";
|
|
qrHtml += _this.isDark(r, c) ? "#000000" : "#ffffff";
|
|
qrHtml += ";";
|
|
qrHtml += '"/>';
|
|
}
|
|
qrHtml += "</tr>";
|
|
}
|
|
qrHtml += "</tbody>";
|
|
qrHtml += "</table>";
|
|
return qrHtml;
|
|
};
|
|
_this.createSvgTag = function(cellSize, margin, alt, title) {
|
|
let opts = {};
|
|
if (typeof arguments[0] == "object") {
|
|
opts = arguments[0];
|
|
cellSize = opts.cellSize;
|
|
margin = opts.margin;
|
|
alt = opts.alt;
|
|
title = opts.title;
|
|
}
|
|
cellSize = cellSize || 2;
|
|
margin = typeof margin == "undefined" ? cellSize * 4 : margin;
|
|
alt = typeof alt === "string" ? { text: alt } : alt || {};
|
|
alt.text = alt.text || null;
|
|
alt.id = alt.text ? alt.id || "qrcode-description" : null;
|
|
title = typeof title === "string" ? { text: title } : title || {};
|
|
title.text = title.text || null;
|
|
title.id = title.text ? title.id || "qrcode-title" : null;
|
|
const size = _this.getModuleCount() * cellSize + margin * 2;
|
|
let c, mc, r, mr, qrSvg = "", rect;
|
|
rect = "l" + cellSize + ",0 0," + cellSize + " -" + cellSize + ",0 0,-" + cellSize + "z ";
|
|
qrSvg += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"';
|
|
qrSvg += !opts.scalable ? ' width="' + size + 'px" height="' + size + 'px"' : "";
|
|
qrSvg += ' viewBox="0 0 ' + size + " " + size + '" ';
|
|
qrSvg += ' preserveAspectRatio="xMinYMin meet"';
|
|
qrSvg += title.text || alt.text ? ' role="img" aria-labelledby="' + escapeXml([title.id, alt.id].join(" ").trim()) + '"' : "";
|
|
qrSvg += ">";
|
|
qrSvg += title.text ? '<title id="' + escapeXml(title.id) + '">' + escapeXml(title.text) + "</title>" : "";
|
|
qrSvg += alt.text ? '<description id="' + escapeXml(alt.id) + '">' + escapeXml(alt.text) + "</description>" : "";
|
|
qrSvg += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>';
|
|
qrSvg += '<path d="';
|
|
for (r = 0; r < _this.getModuleCount(); r += 1) {
|
|
mr = r * cellSize + margin;
|
|
for (c = 0; c < _this.getModuleCount(); c += 1) {
|
|
if (_this.isDark(r, c)) {
|
|
mc = c * cellSize + margin;
|
|
qrSvg += "M" + mc + "," + mr + rect;
|
|
}
|
|
}
|
|
}
|
|
qrSvg += '" stroke="transparent" fill="black"/>';
|
|
qrSvg += "</svg>";
|
|
return qrSvg;
|
|
};
|
|
_this.createDataURL = function(cellSize, margin) {
|
|
cellSize = cellSize || 2;
|
|
margin = typeof margin == "undefined" ? cellSize * 4 : margin;
|
|
const size = _this.getModuleCount() * cellSize + margin * 2;
|
|
const min = margin;
|
|
const max = size - margin;
|
|
return createDataURL(size, size, function(x, y) {
|
|
if (min <= x && x < max && min <= y && y < max) {
|
|
const c = Math.floor((x - min) / cellSize);
|
|
const r = Math.floor((y - min) / cellSize);
|
|
return _this.isDark(r, c) ? 0 : 1;
|
|
} else {
|
|
return 1;
|
|
}
|
|
});
|
|
};
|
|
_this.createImgTag = function(cellSize, margin, alt) {
|
|
cellSize = cellSize || 2;
|
|
margin = typeof margin == "undefined" ? cellSize * 4 : margin;
|
|
const size = _this.getModuleCount() * cellSize + margin * 2;
|
|
let img = "";
|
|
img += "<img";
|
|
img += ' src="';
|
|
img += _this.createDataURL(cellSize, margin);
|
|
img += '"';
|
|
img += ' width="';
|
|
img += size;
|
|
img += '"';
|
|
img += ' height="';
|
|
img += size;
|
|
img += '"';
|
|
if (alt) {
|
|
img += ' alt="';
|
|
img += escapeXml(alt);
|
|
img += '"';
|
|
}
|
|
img += "/>";
|
|
return img;
|
|
};
|
|
const escapeXml = function(s) {
|
|
let escaped = "";
|
|
for (let i = 0; i < s.length; i += 1) {
|
|
const c = s.charAt(i);
|
|
switch (c) {
|
|
case "<":
|
|
escaped += "<";
|
|
break;
|
|
case ">":
|
|
escaped += ">";
|
|
break;
|
|
case "&":
|
|
escaped += "&";
|
|
break;
|
|
case '"':
|
|
escaped += """;
|
|
break;
|
|
default:
|
|
escaped += c;
|
|
break;
|
|
}
|
|
}
|
|
return escaped;
|
|
};
|
|
const _createHalfASCII = function(margin) {
|
|
const cellSize = 1;
|
|
margin = typeof margin == "undefined" ? cellSize * 2 : margin;
|
|
const size = _this.getModuleCount() * cellSize + margin * 2;
|
|
const min = margin;
|
|
const max = size - margin;
|
|
let y, x, r1, r2, p;
|
|
const blocks = {
|
|
"\u2588\u2588": "\u2588",
|
|
"\u2588 ": "\u2580",
|
|
" \u2588": "\u2584",
|
|
" ": " "
|
|
};
|
|
const blocksLastLineNoMargin = {
|
|
"\u2588\u2588": "\u2580",
|
|
"\u2588 ": "\u2580",
|
|
" \u2588": " ",
|
|
" ": " "
|
|
};
|
|
let ascii = "";
|
|
for (y = 0; y < size; y += 2) {
|
|
r1 = Math.floor((y - min) / cellSize);
|
|
r2 = Math.floor((y + 1 - min) / cellSize);
|
|
for (x = 0; x < size; x += 1) {
|
|
p = "\u2588";
|
|
if (min <= x && x < max && min <= y && y < max && _this.isDark(r1, Math.floor((x - min) / cellSize))) {
|
|
p = " ";
|
|
}
|
|
if (min <= x && x < max && min <= y + 1 && y + 1 < max && _this.isDark(r2, Math.floor((x - min) / cellSize))) {
|
|
p += " ";
|
|
} else {
|
|
p += "\u2588";
|
|
}
|
|
ascii += margin < 1 && y + 1 >= max ? blocksLastLineNoMargin[p] : blocks[p];
|
|
}
|
|
ascii += "\n";
|
|
}
|
|
if (size % 2 && margin > 0) {
|
|
return ascii.substring(0, ascii.length - size - 1) + Array(size + 1).join("\u2580");
|
|
}
|
|
return ascii.substring(0, ascii.length - 1);
|
|
};
|
|
_this.createASCII = function(cellSize, margin) {
|
|
cellSize = cellSize || 1;
|
|
if (cellSize < 2) {
|
|
return _createHalfASCII(margin);
|
|
}
|
|
cellSize -= 1;
|
|
margin = typeof margin == "undefined" ? cellSize * 2 : margin;
|
|
const size = _this.getModuleCount() * cellSize + margin * 2;
|
|
const min = margin;
|
|
const max = size - margin;
|
|
let y, x, r, p;
|
|
const white = Array(cellSize + 1).join("\u2588\u2588");
|
|
const black = Array(cellSize + 1).join(" ");
|
|
let ascii = "";
|
|
let line = "";
|
|
for (y = 0; y < size; y += 1) {
|
|
r = Math.floor((y - min) / cellSize);
|
|
line = "";
|
|
for (x = 0; x < size; x += 1) {
|
|
p = 1;
|
|
if (min <= x && x < max && min <= y && y < max && _this.isDark(r, Math.floor((x - min) / cellSize))) {
|
|
p = 0;
|
|
}
|
|
line += p ? white : black;
|
|
}
|
|
for (r = 0; r < cellSize; r += 1) {
|
|
ascii += line + "\n";
|
|
}
|
|
}
|
|
return ascii.substring(0, ascii.length - 1);
|
|
};
|
|
_this.renderTo2dContext = function(context, cellSize) {
|
|
cellSize = cellSize || 2;
|
|
const length = _this.getModuleCount();
|
|
for (let row = 0; row < length; row++) {
|
|
for (let col = 0; col < length; col++) {
|
|
context.fillStyle = _this.isDark(row, col) ? "black" : "white";
|
|
context.fillRect(col * cellSize, row * cellSize, cellSize, cellSize);
|
|
}
|
|
}
|
|
};
|
|
return _this;
|
|
};
|
|
qrcode.stringToBytes = function(s) {
|
|
const bytes = [];
|
|
for (let i = 0; i < s.length; i += 1) {
|
|
const c = s.charCodeAt(i);
|
|
bytes.push(c & 255);
|
|
}
|
|
return bytes;
|
|
};
|
|
qrcode.createStringToBytes = function(unicodeData, numChars) {
|
|
const unicodeMap = (function() {
|
|
const bin = base64DecodeInputStream(unicodeData);
|
|
const read = function() {
|
|
const b = bin.read();
|
|
if (b == -1) throw "eof";
|
|
return b;
|
|
};
|
|
let count = 0;
|
|
const unicodeMap2 = {};
|
|
while (true) {
|
|
const b0 = bin.read();
|
|
if (b0 == -1) break;
|
|
const b1 = read();
|
|
const b2 = read();
|
|
const b3 = read();
|
|
const k = String.fromCharCode(b0 << 8 | b1);
|
|
const v = b2 << 8 | b3;
|
|
unicodeMap2[k] = v;
|
|
count += 1;
|
|
}
|
|
if (count != numChars) {
|
|
throw count + " != " + numChars;
|
|
}
|
|
return unicodeMap2;
|
|
})();
|
|
const unknownChar = "?".charCodeAt(0);
|
|
return function(s) {
|
|
const bytes = [];
|
|
for (let i = 0; i < s.length; i += 1) {
|
|
const c = s.charCodeAt(i);
|
|
if (c < 128) {
|
|
bytes.push(c);
|
|
} else {
|
|
const b = unicodeMap[s.charAt(i)];
|
|
if (typeof b == "number") {
|
|
if ((b & 255) == b) {
|
|
bytes.push(b);
|
|
} else {
|
|
bytes.push(b >>> 8);
|
|
bytes.push(b & 255);
|
|
}
|
|
} else {
|
|
bytes.push(unknownChar);
|
|
}
|
|
}
|
|
}
|
|
return bytes;
|
|
};
|
|
};
|
|
var QRMode = {
|
|
MODE_NUMBER: 1 << 0,
|
|
MODE_ALPHA_NUM: 1 << 1,
|
|
MODE_8BIT_BYTE: 1 << 2,
|
|
MODE_KANJI: 1 << 3
|
|
};
|
|
var QRErrorCorrectionLevel = {
|
|
L: 1,
|
|
M: 0,
|
|
Q: 3,
|
|
H: 2
|
|
};
|
|
var QRMaskPattern = {
|
|
PATTERN000: 0,
|
|
PATTERN001: 1,
|
|
PATTERN010: 2,
|
|
PATTERN011: 3,
|
|
PATTERN100: 4,
|
|
PATTERN101: 5,
|
|
PATTERN110: 6,
|
|
PATTERN111: 7
|
|
};
|
|
var QRUtil = (function() {
|
|
const PATTERN_POSITION_TABLE = [
|
|
[],
|
|
[6, 18],
|
|
[6, 22],
|
|
[6, 26],
|
|
[6, 30],
|
|
[6, 34],
|
|
[6, 22, 38],
|
|
[6, 24, 42],
|
|
[6, 26, 46],
|
|
[6, 28, 50],
|
|
[6, 30, 54],
|
|
[6, 32, 58],
|
|
[6, 34, 62],
|
|
[6, 26, 46, 66],
|
|
[6, 26, 48, 70],
|
|
[6, 26, 50, 74],
|
|
[6, 30, 54, 78],
|
|
[6, 30, 56, 82],
|
|
[6, 30, 58, 86],
|
|
[6, 34, 62, 90],
|
|
[6, 28, 50, 72, 94],
|
|
[6, 26, 50, 74, 98],
|
|
[6, 30, 54, 78, 102],
|
|
[6, 28, 54, 80, 106],
|
|
[6, 32, 58, 84, 110],
|
|
[6, 30, 58, 86, 114],
|
|
[6, 34, 62, 90, 118],
|
|
[6, 26, 50, 74, 98, 122],
|
|
[6, 30, 54, 78, 102, 126],
|
|
[6, 26, 52, 78, 104, 130],
|
|
[6, 30, 56, 82, 108, 134],
|
|
[6, 34, 60, 86, 112, 138],
|
|
[6, 30, 58, 86, 114, 142],
|
|
[6, 34, 62, 90, 118, 146],
|
|
[6, 30, 54, 78, 102, 126, 150],
|
|
[6, 24, 50, 76, 102, 128, 154],
|
|
[6, 28, 54, 80, 106, 132, 158],
|
|
[6, 32, 58, 84, 110, 136, 162],
|
|
[6, 26, 54, 82, 110, 138, 166],
|
|
[6, 30, 58, 86, 114, 142, 170]
|
|
];
|
|
const G15 = 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0;
|
|
const G18 = 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0;
|
|
const G15_MASK = 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1;
|
|
const _this = {};
|
|
const getBCHDigit = function(data) {
|
|
let digit = 0;
|
|
while (data != 0) {
|
|
digit += 1;
|
|
data >>>= 1;
|
|
}
|
|
return digit;
|
|
};
|
|
_this.getBCHTypeInfo = function(data) {
|
|
let d = data << 10;
|
|
while (getBCHDigit(d) - getBCHDigit(G15) >= 0) {
|
|
d ^= G15 << getBCHDigit(d) - getBCHDigit(G15);
|
|
}
|
|
return (data << 10 | d) ^ G15_MASK;
|
|
};
|
|
_this.getBCHTypeNumber = function(data) {
|
|
let d = data << 12;
|
|
while (getBCHDigit(d) - getBCHDigit(G18) >= 0) {
|
|
d ^= G18 << getBCHDigit(d) - getBCHDigit(G18);
|
|
}
|
|
return data << 12 | d;
|
|
};
|
|
_this.getPatternPosition = function(typeNumber) {
|
|
return PATTERN_POSITION_TABLE[typeNumber - 1];
|
|
};
|
|
_this.getMaskFunction = function(maskPattern) {
|
|
switch (maskPattern) {
|
|
case QRMaskPattern.PATTERN000:
|
|
return function(i, j) {
|
|
return (i + j) % 2 == 0;
|
|
};
|
|
case QRMaskPattern.PATTERN001:
|
|
return function(i, j) {
|
|
return i % 2 == 0;
|
|
};
|
|
case QRMaskPattern.PATTERN010:
|
|
return function(i, j) {
|
|
return j % 3 == 0;
|
|
};
|
|
case QRMaskPattern.PATTERN011:
|
|
return function(i, j) {
|
|
return (i + j) % 3 == 0;
|
|
};
|
|
case QRMaskPattern.PATTERN100:
|
|
return function(i, j) {
|
|
return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0;
|
|
};
|
|
case QRMaskPattern.PATTERN101:
|
|
return function(i, j) {
|
|
return i * j % 2 + i * j % 3 == 0;
|
|
};
|
|
case QRMaskPattern.PATTERN110:
|
|
return function(i, j) {
|
|
return (i * j % 2 + i * j % 3) % 2 == 0;
|
|
};
|
|
case QRMaskPattern.PATTERN111:
|
|
return function(i, j) {
|
|
return (i * j % 3 + (i + j) % 2) % 2 == 0;
|
|
};
|
|
default:
|
|
throw "bad maskPattern:" + maskPattern;
|
|
}
|
|
};
|
|
_this.getErrorCorrectPolynomial = function(errorCorrectLength) {
|
|
let a = qrPolynomial([1], 0);
|
|
for (let i = 0; i < errorCorrectLength; i += 1) {
|
|
a = a.multiply(qrPolynomial([1, QRMath.gexp(i)], 0));
|
|
}
|
|
return a;
|
|
};
|
|
_this.getLengthInBits = function(mode, type) {
|
|
if (1 <= type && type < 10) {
|
|
switch (mode) {
|
|
case QRMode.MODE_NUMBER:
|
|
return 10;
|
|
case QRMode.MODE_ALPHA_NUM:
|
|
return 9;
|
|
case QRMode.MODE_8BIT_BYTE:
|
|
return 8;
|
|
case QRMode.MODE_KANJI:
|
|
return 8;
|
|
default:
|
|
throw "mode:" + mode;
|
|
}
|
|
} else if (type < 27) {
|
|
switch (mode) {
|
|
case QRMode.MODE_NUMBER:
|
|
return 12;
|
|
case QRMode.MODE_ALPHA_NUM:
|
|
return 11;
|
|
case QRMode.MODE_8BIT_BYTE:
|
|
return 16;
|
|
case QRMode.MODE_KANJI:
|
|
return 10;
|
|
default:
|
|
throw "mode:" + mode;
|
|
}
|
|
} else if (type < 41) {
|
|
switch (mode) {
|
|
case QRMode.MODE_NUMBER:
|
|
return 14;
|
|
case QRMode.MODE_ALPHA_NUM:
|
|
return 13;
|
|
case QRMode.MODE_8BIT_BYTE:
|
|
return 16;
|
|
case QRMode.MODE_KANJI:
|
|
return 12;
|
|
default:
|
|
throw "mode:" + mode;
|
|
}
|
|
} else {
|
|
throw "type:" + type;
|
|
}
|
|
};
|
|
_this.getLostPoint = function(qrcode2) {
|
|
const moduleCount = qrcode2.getModuleCount();
|
|
let lostPoint = 0;
|
|
for (let row = 0; row < moduleCount; row += 1) {
|
|
for (let col = 0; col < moduleCount; col += 1) {
|
|
let sameCount = 0;
|
|
const dark = qrcode2.isDark(row, col);
|
|
for (let r = -1; r <= 1; r += 1) {
|
|
if (row + r < 0 || moduleCount <= row + r) {
|
|
continue;
|
|
}
|
|
for (let c = -1; c <= 1; c += 1) {
|
|
if (col + c < 0 || moduleCount <= col + c) {
|
|
continue;
|
|
}
|
|
if (r == 0 && c == 0) {
|
|
continue;
|
|
}
|
|
if (dark == qrcode2.isDark(row + r, col + c)) {
|
|
sameCount += 1;
|
|
}
|
|
}
|
|
}
|
|
if (sameCount > 5) {
|
|
lostPoint += 3 + sameCount - 5;
|
|
}
|
|
}
|
|
}
|
|
;
|
|
for (let row = 0; row < moduleCount - 1; row += 1) {
|
|
for (let col = 0; col < moduleCount - 1; col += 1) {
|
|
let count = 0;
|
|
if (qrcode2.isDark(row, col)) count += 1;
|
|
if (qrcode2.isDark(row + 1, col)) count += 1;
|
|
if (qrcode2.isDark(row, col + 1)) count += 1;
|
|
if (qrcode2.isDark(row + 1, col + 1)) count += 1;
|
|
if (count == 0 || count == 4) {
|
|
lostPoint += 3;
|
|
}
|
|
}
|
|
}
|
|
for (let row = 0; row < moduleCount; row += 1) {
|
|
for (let col = 0; col < moduleCount - 6; col += 1) {
|
|
if (qrcode2.isDark(row, col) && !qrcode2.isDark(row, col + 1) && qrcode2.isDark(row, col + 2) && qrcode2.isDark(row, col + 3) && qrcode2.isDark(row, col + 4) && !qrcode2.isDark(row, col + 5) && qrcode2.isDark(row, col + 6)) {
|
|
lostPoint += 40;
|
|
}
|
|
}
|
|
}
|
|
for (let col = 0; col < moduleCount; col += 1) {
|
|
for (let row = 0; row < moduleCount - 6; row += 1) {
|
|
if (qrcode2.isDark(row, col) && !qrcode2.isDark(row + 1, col) && qrcode2.isDark(row + 2, col) && qrcode2.isDark(row + 3, col) && qrcode2.isDark(row + 4, col) && !qrcode2.isDark(row + 5, col) && qrcode2.isDark(row + 6, col)) {
|
|
lostPoint += 40;
|
|
}
|
|
}
|
|
}
|
|
let darkCount = 0;
|
|
for (let col = 0; col < moduleCount; col += 1) {
|
|
for (let row = 0; row < moduleCount; row += 1) {
|
|
if (qrcode2.isDark(row, col)) {
|
|
darkCount += 1;
|
|
}
|
|
}
|
|
}
|
|
const ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
|
|
lostPoint += ratio * 10;
|
|
return lostPoint;
|
|
};
|
|
return _this;
|
|
})();
|
|
var QRMath = (function() {
|
|
const EXP_TABLE = new Array(256);
|
|
const LOG_TABLE = new Array(256);
|
|
for (let i = 0; i < 8; i += 1) {
|
|
EXP_TABLE[i] = 1 << i;
|
|
}
|
|
for (let i = 8; i < 256; i += 1) {
|
|
EXP_TABLE[i] = EXP_TABLE[i - 4] ^ EXP_TABLE[i - 5] ^ EXP_TABLE[i - 6] ^ EXP_TABLE[i - 8];
|
|
}
|
|
for (let i = 0; i < 255; i += 1) {
|
|
LOG_TABLE[EXP_TABLE[i]] = i;
|
|
}
|
|
const _this = {};
|
|
_this.glog = function(n) {
|
|
if (n < 1) {
|
|
throw "glog(" + n + ")";
|
|
}
|
|
return LOG_TABLE[n];
|
|
};
|
|
_this.gexp = function(n) {
|
|
while (n < 0) {
|
|
n += 255;
|
|
}
|
|
while (n >= 256) {
|
|
n -= 255;
|
|
}
|
|
return EXP_TABLE[n];
|
|
};
|
|
return _this;
|
|
})();
|
|
var qrPolynomial = function(num3, shift) {
|
|
if (typeof num3.length == "undefined") {
|
|
throw num3.length + "/" + shift;
|
|
}
|
|
const _num = (function() {
|
|
let offset = 0;
|
|
while (offset < num3.length && num3[offset] == 0) {
|
|
offset += 1;
|
|
}
|
|
const _num2 = new Array(num3.length - offset + shift);
|
|
for (let i = 0; i < num3.length - offset; i += 1) {
|
|
_num2[i] = num3[i + offset];
|
|
}
|
|
return _num2;
|
|
})();
|
|
const _this = {};
|
|
_this.getAt = function(index) {
|
|
return _num[index];
|
|
};
|
|
_this.getLength = function() {
|
|
return _num.length;
|
|
};
|
|
_this.multiply = function(e) {
|
|
const num4 = new Array(_this.getLength() + e.getLength() - 1);
|
|
for (let i = 0; i < _this.getLength(); i += 1) {
|
|
for (let j = 0; j < e.getLength(); j += 1) {
|
|
num4[i + j] ^= QRMath.gexp(QRMath.glog(_this.getAt(i)) + QRMath.glog(e.getAt(j)));
|
|
}
|
|
}
|
|
return qrPolynomial(num4, 0);
|
|
};
|
|
_this.mod = function(e) {
|
|
if (_this.getLength() - e.getLength() < 0) {
|
|
return _this;
|
|
}
|
|
const ratio = QRMath.glog(_this.getAt(0)) - QRMath.glog(e.getAt(0));
|
|
const num4 = new Array(_this.getLength());
|
|
for (let i = 0; i < _this.getLength(); i += 1) {
|
|
num4[i] = _this.getAt(i);
|
|
}
|
|
for (let i = 0; i < e.getLength(); i += 1) {
|
|
num4[i] ^= QRMath.gexp(QRMath.glog(e.getAt(i)) + ratio);
|
|
}
|
|
return qrPolynomial(num4, 0).mod(e);
|
|
};
|
|
return _this;
|
|
};
|
|
var QRRSBlock = (function() {
|
|
const RS_BLOCK_TABLE = [
|
|
// L
|
|
// M
|
|
// Q
|
|
// H
|
|
// 1
|
|
[1, 26, 19],
|
|
[1, 26, 16],
|
|
[1, 26, 13],
|
|
[1, 26, 9],
|
|
// 2
|
|
[1, 44, 34],
|
|
[1, 44, 28],
|
|
[1, 44, 22],
|
|
[1, 44, 16],
|
|
// 3
|
|
[1, 70, 55],
|
|
[1, 70, 44],
|
|
[2, 35, 17],
|
|
[2, 35, 13],
|
|
// 4
|
|
[1, 100, 80],
|
|
[2, 50, 32],
|
|
[2, 50, 24],
|
|
[4, 25, 9],
|
|
// 5
|
|
[1, 134, 108],
|
|
[2, 67, 43],
|
|
[2, 33, 15, 2, 34, 16],
|
|
[2, 33, 11, 2, 34, 12],
|
|
// 6
|
|
[2, 86, 68],
|
|
[4, 43, 27],
|
|
[4, 43, 19],
|
|
[4, 43, 15],
|
|
// 7
|
|
[2, 98, 78],
|
|
[4, 49, 31],
|
|
[2, 32, 14, 4, 33, 15],
|
|
[4, 39, 13, 1, 40, 14],
|
|
// 8
|
|
[2, 121, 97],
|
|
[2, 60, 38, 2, 61, 39],
|
|
[4, 40, 18, 2, 41, 19],
|
|
[4, 40, 14, 2, 41, 15],
|
|
// 9
|
|
[2, 146, 116],
|
|
[3, 58, 36, 2, 59, 37],
|
|
[4, 36, 16, 4, 37, 17],
|
|
[4, 36, 12, 4, 37, 13],
|
|
// 10
|
|
[2, 86, 68, 2, 87, 69],
|
|
[4, 69, 43, 1, 70, 44],
|
|
[6, 43, 19, 2, 44, 20],
|
|
[6, 43, 15, 2, 44, 16],
|
|
// 11
|
|
[4, 101, 81],
|
|
[1, 80, 50, 4, 81, 51],
|
|
[4, 50, 22, 4, 51, 23],
|
|
[3, 36, 12, 8, 37, 13],
|
|
// 12
|
|
[2, 116, 92, 2, 117, 93],
|
|
[6, 58, 36, 2, 59, 37],
|
|
[4, 46, 20, 6, 47, 21],
|
|
[7, 42, 14, 4, 43, 15],
|
|
// 13
|
|
[4, 133, 107],
|
|
[8, 59, 37, 1, 60, 38],
|
|
[8, 44, 20, 4, 45, 21],
|
|
[12, 33, 11, 4, 34, 12],
|
|
// 14
|
|
[3, 145, 115, 1, 146, 116],
|
|
[4, 64, 40, 5, 65, 41],
|
|
[11, 36, 16, 5, 37, 17],
|
|
[11, 36, 12, 5, 37, 13],
|
|
// 15
|
|
[5, 109, 87, 1, 110, 88],
|
|
[5, 65, 41, 5, 66, 42],
|
|
[5, 54, 24, 7, 55, 25],
|
|
[11, 36, 12, 7, 37, 13],
|
|
// 16
|
|
[5, 122, 98, 1, 123, 99],
|
|
[7, 73, 45, 3, 74, 46],
|
|
[15, 43, 19, 2, 44, 20],
|
|
[3, 45, 15, 13, 46, 16],
|
|
// 17
|
|
[1, 135, 107, 5, 136, 108],
|
|
[10, 74, 46, 1, 75, 47],
|
|
[1, 50, 22, 15, 51, 23],
|
|
[2, 42, 14, 17, 43, 15],
|
|
// 18
|
|
[5, 150, 120, 1, 151, 121],
|
|
[9, 69, 43, 4, 70, 44],
|
|
[17, 50, 22, 1, 51, 23],
|
|
[2, 42, 14, 19, 43, 15],
|
|
// 19
|
|
[3, 141, 113, 4, 142, 114],
|
|
[3, 70, 44, 11, 71, 45],
|
|
[17, 47, 21, 4, 48, 22],
|
|
[9, 39, 13, 16, 40, 14],
|
|
// 20
|
|
[3, 135, 107, 5, 136, 108],
|
|
[3, 67, 41, 13, 68, 42],
|
|
[15, 54, 24, 5, 55, 25],
|
|
[15, 43, 15, 10, 44, 16],
|
|
// 21
|
|
[4, 144, 116, 4, 145, 117],
|
|
[17, 68, 42],
|
|
[17, 50, 22, 6, 51, 23],
|
|
[19, 46, 16, 6, 47, 17],
|
|
// 22
|
|
[2, 139, 111, 7, 140, 112],
|
|
[17, 74, 46],
|
|
[7, 54, 24, 16, 55, 25],
|
|
[34, 37, 13],
|
|
// 23
|
|
[4, 151, 121, 5, 152, 122],
|
|
[4, 75, 47, 14, 76, 48],
|
|
[11, 54, 24, 14, 55, 25],
|
|
[16, 45, 15, 14, 46, 16],
|
|
// 24
|
|
[6, 147, 117, 4, 148, 118],
|
|
[6, 73, 45, 14, 74, 46],
|
|
[11, 54, 24, 16, 55, 25],
|
|
[30, 46, 16, 2, 47, 17],
|
|
// 25
|
|
[8, 132, 106, 4, 133, 107],
|
|
[8, 75, 47, 13, 76, 48],
|
|
[7, 54, 24, 22, 55, 25],
|
|
[22, 45, 15, 13, 46, 16],
|
|
// 26
|
|
[10, 142, 114, 2, 143, 115],
|
|
[19, 74, 46, 4, 75, 47],
|
|
[28, 50, 22, 6, 51, 23],
|
|
[33, 46, 16, 4, 47, 17],
|
|
// 27
|
|
[8, 152, 122, 4, 153, 123],
|
|
[22, 73, 45, 3, 74, 46],
|
|
[8, 53, 23, 26, 54, 24],
|
|
[12, 45, 15, 28, 46, 16],
|
|
// 28
|
|
[3, 147, 117, 10, 148, 118],
|
|
[3, 73, 45, 23, 74, 46],
|
|
[4, 54, 24, 31, 55, 25],
|
|
[11, 45, 15, 31, 46, 16],
|
|
// 29
|
|
[7, 146, 116, 7, 147, 117],
|
|
[21, 73, 45, 7, 74, 46],
|
|
[1, 53, 23, 37, 54, 24],
|
|
[19, 45, 15, 26, 46, 16],
|
|
// 30
|
|
[5, 145, 115, 10, 146, 116],
|
|
[19, 75, 47, 10, 76, 48],
|
|
[15, 54, 24, 25, 55, 25],
|
|
[23, 45, 15, 25, 46, 16],
|
|
// 31
|
|
[13, 145, 115, 3, 146, 116],
|
|
[2, 74, 46, 29, 75, 47],
|
|
[42, 54, 24, 1, 55, 25],
|
|
[23, 45, 15, 28, 46, 16],
|
|
// 32
|
|
[17, 145, 115],
|
|
[10, 74, 46, 23, 75, 47],
|
|
[10, 54, 24, 35, 55, 25],
|
|
[19, 45, 15, 35, 46, 16],
|
|
// 33
|
|
[17, 145, 115, 1, 146, 116],
|
|
[14, 74, 46, 21, 75, 47],
|
|
[29, 54, 24, 19, 55, 25],
|
|
[11, 45, 15, 46, 46, 16],
|
|
// 34
|
|
[13, 145, 115, 6, 146, 116],
|
|
[14, 74, 46, 23, 75, 47],
|
|
[44, 54, 24, 7, 55, 25],
|
|
[59, 46, 16, 1, 47, 17],
|
|
// 35
|
|
[12, 151, 121, 7, 152, 122],
|
|
[12, 75, 47, 26, 76, 48],
|
|
[39, 54, 24, 14, 55, 25],
|
|
[22, 45, 15, 41, 46, 16],
|
|
// 36
|
|
[6, 151, 121, 14, 152, 122],
|
|
[6, 75, 47, 34, 76, 48],
|
|
[46, 54, 24, 10, 55, 25],
|
|
[2, 45, 15, 64, 46, 16],
|
|
// 37
|
|
[17, 152, 122, 4, 153, 123],
|
|
[29, 74, 46, 14, 75, 47],
|
|
[49, 54, 24, 10, 55, 25],
|
|
[24, 45, 15, 46, 46, 16],
|
|
// 38
|
|
[4, 152, 122, 18, 153, 123],
|
|
[13, 74, 46, 32, 75, 47],
|
|
[48, 54, 24, 14, 55, 25],
|
|
[42, 45, 15, 32, 46, 16],
|
|
// 39
|
|
[20, 147, 117, 4, 148, 118],
|
|
[40, 75, 47, 7, 76, 48],
|
|
[43, 54, 24, 22, 55, 25],
|
|
[10, 45, 15, 67, 46, 16],
|
|
// 40
|
|
[19, 148, 118, 6, 149, 119],
|
|
[18, 75, 47, 31, 76, 48],
|
|
[34, 54, 24, 34, 55, 25],
|
|
[20, 45, 15, 61, 46, 16]
|
|
];
|
|
const qrRSBlock = function(totalCount, dataCount) {
|
|
const _this2 = {};
|
|
_this2.totalCount = totalCount;
|
|
_this2.dataCount = dataCount;
|
|
return _this2;
|
|
};
|
|
const _this = {};
|
|
const getRsBlockTable = function(typeNumber, errorCorrectionLevel) {
|
|
switch (errorCorrectionLevel) {
|
|
case QRErrorCorrectionLevel.L:
|
|
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
|
|
case QRErrorCorrectionLevel.M:
|
|
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
|
|
case QRErrorCorrectionLevel.Q:
|
|
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
|
|
case QRErrorCorrectionLevel.H:
|
|
return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
|
|
default:
|
|
return void 0;
|
|
}
|
|
};
|
|
_this.getRSBlocks = function(typeNumber, errorCorrectionLevel) {
|
|
const rsBlock = getRsBlockTable(typeNumber, errorCorrectionLevel);
|
|
if (typeof rsBlock == "undefined") {
|
|
throw "bad rs block @ typeNumber:" + typeNumber + "/errorCorrectionLevel:" + errorCorrectionLevel;
|
|
}
|
|
const length = rsBlock.length / 3;
|
|
const list2 = [];
|
|
for (let i = 0; i < length; i += 1) {
|
|
const count = rsBlock[i * 3 + 0];
|
|
const totalCount = rsBlock[i * 3 + 1];
|
|
const dataCount = rsBlock[i * 3 + 2];
|
|
for (let j = 0; j < count; j += 1) {
|
|
list2.push(qrRSBlock(totalCount, dataCount));
|
|
}
|
|
}
|
|
return list2;
|
|
};
|
|
return _this;
|
|
})();
|
|
var qrBitBuffer = function() {
|
|
const _buffer = [];
|
|
let _length = 0;
|
|
const _this = {};
|
|
_this.getBuffer = function() {
|
|
return _buffer;
|
|
};
|
|
_this.getAt = function(index) {
|
|
const bufIndex = Math.floor(index / 8);
|
|
return (_buffer[bufIndex] >>> 7 - index % 8 & 1) == 1;
|
|
};
|
|
_this.put = function(num3, length) {
|
|
for (let i = 0; i < length; i += 1) {
|
|
_this.putBit((num3 >>> length - i - 1 & 1) == 1);
|
|
}
|
|
};
|
|
_this.getLengthInBits = function() {
|
|
return _length;
|
|
};
|
|
_this.putBit = function(bit) {
|
|
const bufIndex = Math.floor(_length / 8);
|
|
if (_buffer.length <= bufIndex) {
|
|
_buffer.push(0);
|
|
}
|
|
if (bit) {
|
|
_buffer[bufIndex] |= 128 >>> _length % 8;
|
|
}
|
|
_length += 1;
|
|
};
|
|
return _this;
|
|
};
|
|
var qrNumber = function(data) {
|
|
const _mode = QRMode.MODE_NUMBER;
|
|
const _data = data;
|
|
const _this = {};
|
|
_this.getMode = function() {
|
|
return _mode;
|
|
};
|
|
_this.getLength = function(buffer) {
|
|
return _data.length;
|
|
};
|
|
_this.write = function(buffer) {
|
|
const data2 = _data;
|
|
let i = 0;
|
|
while (i + 2 < data2.length) {
|
|
buffer.put(strToNum(data2.substring(i, i + 3)), 10);
|
|
i += 3;
|
|
}
|
|
if (i < data2.length) {
|
|
if (data2.length - i == 1) {
|
|
buffer.put(strToNum(data2.substring(i, i + 1)), 4);
|
|
} else if (data2.length - i == 2) {
|
|
buffer.put(strToNum(data2.substring(i, i + 2)), 7);
|
|
}
|
|
}
|
|
};
|
|
const strToNum = function(s) {
|
|
let num3 = 0;
|
|
for (let i = 0; i < s.length; i += 1) {
|
|
num3 = num3 * 10 + chatToNum(s.charAt(i));
|
|
}
|
|
return num3;
|
|
};
|
|
const chatToNum = function(c) {
|
|
if ("0" <= c && c <= "9") {
|
|
return c.charCodeAt(0) - "0".charCodeAt(0);
|
|
}
|
|
throw "illegal char :" + c;
|
|
};
|
|
return _this;
|
|
};
|
|
var qrAlphaNum = function(data) {
|
|
const _mode = QRMode.MODE_ALPHA_NUM;
|
|
const _data = data;
|
|
const _this = {};
|
|
_this.getMode = function() {
|
|
return _mode;
|
|
};
|
|
_this.getLength = function(buffer) {
|
|
return _data.length;
|
|
};
|
|
_this.write = function(buffer) {
|
|
const s = _data;
|
|
let i = 0;
|
|
while (i + 1 < s.length) {
|
|
buffer.put(
|
|
getCode(s.charAt(i)) * 45 + getCode(s.charAt(i + 1)),
|
|
11
|
|
);
|
|
i += 2;
|
|
}
|
|
if (i < s.length) {
|
|
buffer.put(getCode(s.charAt(i)), 6);
|
|
}
|
|
};
|
|
const getCode = function(c) {
|
|
if ("0" <= c && c <= "9") {
|
|
return c.charCodeAt(0) - "0".charCodeAt(0);
|
|
} else if ("A" <= c && c <= "Z") {
|
|
return c.charCodeAt(0) - "A".charCodeAt(0) + 10;
|
|
} else {
|
|
switch (c) {
|
|
case " ":
|
|
return 36;
|
|
case "$":
|
|
return 37;
|
|
case "%":
|
|
return 38;
|
|
case "*":
|
|
return 39;
|
|
case "+":
|
|
return 40;
|
|
case "-":
|
|
return 41;
|
|
case ".":
|
|
return 42;
|
|
case "/":
|
|
return 43;
|
|
case ":":
|
|
return 44;
|
|
default:
|
|
throw "illegal char :" + c;
|
|
}
|
|
}
|
|
};
|
|
return _this;
|
|
};
|
|
var qr8BitByte = function(data) {
|
|
const _mode = QRMode.MODE_8BIT_BYTE;
|
|
const _data = data;
|
|
const _bytes = qrcode.stringToBytes(data);
|
|
const _this = {};
|
|
_this.getMode = function() {
|
|
return _mode;
|
|
};
|
|
_this.getLength = function(buffer) {
|
|
return _bytes.length;
|
|
};
|
|
_this.write = function(buffer) {
|
|
for (let i = 0; i < _bytes.length; i += 1) {
|
|
buffer.put(_bytes[i], 8);
|
|
}
|
|
};
|
|
return _this;
|
|
};
|
|
var qrKanji = function(data) {
|
|
const _mode = QRMode.MODE_KANJI;
|
|
const _data = data;
|
|
const stringToBytes2 = qrcode.stringToBytes;
|
|
!(function(c, code) {
|
|
const test = stringToBytes2(c);
|
|
if (test.length != 2 || (test[0] << 8 | test[1]) != code) {
|
|
throw "sjis not supported.";
|
|
}
|
|
})("\u53CB", 38726);
|
|
const _bytes = stringToBytes2(data);
|
|
const _this = {};
|
|
_this.getMode = function() {
|
|
return _mode;
|
|
};
|
|
_this.getLength = function(buffer) {
|
|
return ~~(_bytes.length / 2);
|
|
};
|
|
_this.write = function(buffer) {
|
|
const data2 = _bytes;
|
|
let i = 0;
|
|
while (i + 1 < data2.length) {
|
|
let c = (255 & data2[i]) << 8 | 255 & data2[i + 1];
|
|
if (33088 <= c && c <= 40956) {
|
|
c -= 33088;
|
|
} else if (57408 <= c && c <= 60351) {
|
|
c -= 49472;
|
|
} else {
|
|
throw "illegal char at " + (i + 1) + "/" + c;
|
|
}
|
|
c = (c >>> 8 & 255) * 192 + (c & 255);
|
|
buffer.put(c, 13);
|
|
i += 2;
|
|
}
|
|
if (i < data2.length) {
|
|
throw "illegal char at " + (i + 1);
|
|
}
|
|
};
|
|
return _this;
|
|
};
|
|
var byteArrayOutputStream = function() {
|
|
const _bytes = [];
|
|
const _this = {};
|
|
_this.writeByte = function(b) {
|
|
_bytes.push(b & 255);
|
|
};
|
|
_this.writeShort = function(i) {
|
|
_this.writeByte(i);
|
|
_this.writeByte(i >>> 8);
|
|
};
|
|
_this.writeBytes = function(b, off, len) {
|
|
off = off || 0;
|
|
len = len || b.length;
|
|
for (let i = 0; i < len; i += 1) {
|
|
_this.writeByte(b[i + off]);
|
|
}
|
|
};
|
|
_this.writeString = function(s) {
|
|
for (let i = 0; i < s.length; i += 1) {
|
|
_this.writeByte(s.charCodeAt(i));
|
|
}
|
|
};
|
|
_this.toByteArray = function() {
|
|
return _bytes;
|
|
};
|
|
_this.toString = function() {
|
|
let s = "";
|
|
s += "[";
|
|
for (let i = 0; i < _bytes.length; i += 1) {
|
|
if (i > 0) {
|
|
s += ",";
|
|
}
|
|
s += _bytes[i];
|
|
}
|
|
s += "]";
|
|
return s;
|
|
};
|
|
return _this;
|
|
};
|
|
var base64EncodeOutputStream = function() {
|
|
let _buffer = 0;
|
|
let _buflen = 0;
|
|
let _length = 0;
|
|
let _base64 = "";
|
|
const _this = {};
|
|
const writeEncoded = function(b) {
|
|
_base64 += String.fromCharCode(encode(b & 63));
|
|
};
|
|
const encode = function(n) {
|
|
if (n < 0) {
|
|
throw "n:" + n;
|
|
} else if (n < 26) {
|
|
return 65 + n;
|
|
} else if (n < 52) {
|
|
return 97 + (n - 26);
|
|
} else if (n < 62) {
|
|
return 48 + (n - 52);
|
|
} else if (n == 62) {
|
|
return 43;
|
|
} else if (n == 63) {
|
|
return 47;
|
|
} else {
|
|
throw "n:" + n;
|
|
}
|
|
};
|
|
_this.writeByte = function(n) {
|
|
_buffer = _buffer << 8 | n & 255;
|
|
_buflen += 8;
|
|
_length += 1;
|
|
while (_buflen >= 6) {
|
|
writeEncoded(_buffer >>> _buflen - 6);
|
|
_buflen -= 6;
|
|
}
|
|
};
|
|
_this.flush = function() {
|
|
if (_buflen > 0) {
|
|
writeEncoded(_buffer << 6 - _buflen);
|
|
_buffer = 0;
|
|
_buflen = 0;
|
|
}
|
|
if (_length % 3 != 0) {
|
|
const padlen = 3 - _length % 3;
|
|
for (let i = 0; i < padlen; i += 1) {
|
|
_base64 += "=";
|
|
}
|
|
}
|
|
};
|
|
_this.toString = function() {
|
|
return _base64;
|
|
};
|
|
return _this;
|
|
};
|
|
var base64DecodeInputStream = function(str2) {
|
|
const _str = str2;
|
|
let _pos = 0;
|
|
let _buffer = 0;
|
|
let _buflen = 0;
|
|
const _this = {};
|
|
_this.read = function() {
|
|
while (_buflen < 8) {
|
|
if (_pos >= _str.length) {
|
|
if (_buflen == 0) {
|
|
return -1;
|
|
}
|
|
throw "unexpected end of file./" + _buflen;
|
|
}
|
|
const c = _str.charAt(_pos);
|
|
_pos += 1;
|
|
if (c == "=") {
|
|
_buflen = 0;
|
|
return -1;
|
|
} else if (c.match(/^\s$/)) {
|
|
continue;
|
|
}
|
|
_buffer = _buffer << 6 | decode(c.charCodeAt(0));
|
|
_buflen += 6;
|
|
}
|
|
const n = _buffer >>> _buflen - 8 & 255;
|
|
_buflen -= 8;
|
|
return n;
|
|
};
|
|
const decode = function(c) {
|
|
if (65 <= c && c <= 90) {
|
|
return c - 65;
|
|
} else if (97 <= c && c <= 122) {
|
|
return c - 97 + 26;
|
|
} else if (48 <= c && c <= 57) {
|
|
return c - 48 + 52;
|
|
} else if (c == 43) {
|
|
return 62;
|
|
} else if (c == 47) {
|
|
return 63;
|
|
} else {
|
|
throw "c:" + c;
|
|
}
|
|
};
|
|
return _this;
|
|
};
|
|
var gifImage = function(width, height) {
|
|
const _width = width;
|
|
const _height = height;
|
|
const _data = new Array(width * height);
|
|
const _this = {};
|
|
_this.setPixel = function(x, y, pixel) {
|
|
_data[y * _width + x] = pixel;
|
|
};
|
|
_this.write = function(out) {
|
|
out.writeString("GIF87a");
|
|
out.writeShort(_width);
|
|
out.writeShort(_height);
|
|
out.writeByte(128);
|
|
out.writeByte(0);
|
|
out.writeByte(0);
|
|
out.writeByte(0);
|
|
out.writeByte(0);
|
|
out.writeByte(0);
|
|
out.writeByte(255);
|
|
out.writeByte(255);
|
|
out.writeByte(255);
|
|
out.writeString(",");
|
|
out.writeShort(0);
|
|
out.writeShort(0);
|
|
out.writeShort(_width);
|
|
out.writeShort(_height);
|
|
out.writeByte(0);
|
|
const lzwMinCodeSize = 2;
|
|
const raster = getLZWRaster(lzwMinCodeSize);
|
|
out.writeByte(lzwMinCodeSize);
|
|
let offset = 0;
|
|
while (raster.length - offset > 255) {
|
|
out.writeByte(255);
|
|
out.writeBytes(raster, offset, 255);
|
|
offset += 255;
|
|
}
|
|
out.writeByte(raster.length - offset);
|
|
out.writeBytes(raster, offset, raster.length - offset);
|
|
out.writeByte(0);
|
|
out.writeString(";");
|
|
};
|
|
const bitOutputStream = function(out) {
|
|
const _out = out;
|
|
let _bitLength = 0;
|
|
let _bitBuffer = 0;
|
|
const _this2 = {};
|
|
_this2.write = function(data, length) {
|
|
if (data >>> length != 0) {
|
|
throw "length over";
|
|
}
|
|
while (_bitLength + length >= 8) {
|
|
_out.writeByte(255 & (data << _bitLength | _bitBuffer));
|
|
length -= 8 - _bitLength;
|
|
data >>>= 8 - _bitLength;
|
|
_bitBuffer = 0;
|
|
_bitLength = 0;
|
|
}
|
|
_bitBuffer = data << _bitLength | _bitBuffer;
|
|
_bitLength = _bitLength + length;
|
|
};
|
|
_this2.flush = function() {
|
|
if (_bitLength > 0) {
|
|
_out.writeByte(_bitBuffer);
|
|
}
|
|
};
|
|
return _this2;
|
|
};
|
|
const getLZWRaster = function(lzwMinCodeSize) {
|
|
const clearCode = 1 << lzwMinCodeSize;
|
|
const endCode = (1 << lzwMinCodeSize) + 1;
|
|
let bitLength = lzwMinCodeSize + 1;
|
|
const table = lzwTable();
|
|
for (let i = 0; i < clearCode; i += 1) {
|
|
table.add(String.fromCharCode(i));
|
|
}
|
|
table.add(String.fromCharCode(clearCode));
|
|
table.add(String.fromCharCode(endCode));
|
|
const byteOut = byteArrayOutputStream();
|
|
const bitOut = bitOutputStream(byteOut);
|
|
bitOut.write(clearCode, bitLength);
|
|
let dataIndex = 0;
|
|
let s = String.fromCharCode(_data[dataIndex]);
|
|
dataIndex += 1;
|
|
while (dataIndex < _data.length) {
|
|
const c = String.fromCharCode(_data[dataIndex]);
|
|
dataIndex += 1;
|
|
if (table.contains(s + c)) {
|
|
s = s + c;
|
|
} else {
|
|
bitOut.write(table.indexOf(s), bitLength);
|
|
if (table.size() < 4095) {
|
|
if (table.size() == 1 << bitLength) {
|
|
bitLength += 1;
|
|
}
|
|
table.add(s + c);
|
|
}
|
|
s = c;
|
|
}
|
|
}
|
|
bitOut.write(table.indexOf(s), bitLength);
|
|
bitOut.write(endCode, bitLength);
|
|
bitOut.flush();
|
|
return byteOut.toByteArray();
|
|
};
|
|
const lzwTable = function() {
|
|
const _map = {};
|
|
let _size = 0;
|
|
const _this2 = {};
|
|
_this2.add = function(key2) {
|
|
if (_this2.contains(key2)) {
|
|
throw "dup key:" + key2;
|
|
}
|
|
_map[key2] = _size;
|
|
_size += 1;
|
|
};
|
|
_this2.size = function() {
|
|
return _size;
|
|
};
|
|
_this2.indexOf = function(key2) {
|
|
return _map[key2];
|
|
};
|
|
_this2.contains = function(key2) {
|
|
return typeof _map[key2] != "undefined";
|
|
};
|
|
return _this2;
|
|
};
|
|
return _this;
|
|
};
|
|
var createDataURL = function(width, height, getPixel) {
|
|
const gif = gifImage(width, height);
|
|
for (let y = 0; y < height; y += 1) {
|
|
for (let x = 0; x < width; x += 1) {
|
|
gif.setPixel(x, y, getPixel(x, y));
|
|
}
|
|
}
|
|
const b = byteArrayOutputStream();
|
|
gif.write(b);
|
|
const base64 = base64EncodeOutputStream();
|
|
const bytes = b.toByteArray();
|
|
for (let i = 0; i < bytes.length; i += 1) {
|
|
base64.writeByte(bytes[i]);
|
|
}
|
|
base64.flush();
|
|
return "data:image/gif;base64," + base64;
|
|
};
|
|
var qrcode_default = qrcode;
|
|
var stringToBytes = qrcode.stringToBytes;
|
|
|
|
// src/setuplink-ui.ts
|
|
var SVG = "http://www.w3.org/2000/svg";
|
|
function renderQr(parent, text) {
|
|
const qr = qrcode_default(0, "M");
|
|
qr.addData(text, "Byte");
|
|
qr.make();
|
|
const n = qr.getModuleCount();
|
|
const quiet = 4;
|
|
let d = "";
|
|
for (let r = 0; r < n; r++) for (let c = 0; c < n; c++) if (qr.isDark(r, c)) d += `M${c + quiet},${r + quiet}h1v1h-1z`;
|
|
const svg = document.createElementNS(SVG, "svg");
|
|
svg.setAttribute("viewBox", `0 0 ${n + quiet * 2} ${n + quiet * 2}`);
|
|
svg.setAttribute("class", "vsg-qr");
|
|
svg.setAttribute("role", "img");
|
|
svg.setAttribute("aria-label", t("link.qrLabel"));
|
|
const bg = document.createElementNS(SVG, "rect");
|
|
bg.setAttribute("width", "100%");
|
|
bg.setAttribute("height", "100%");
|
|
bg.setAttribute("fill", "#fff");
|
|
const path = document.createElementNS(SVG, "path");
|
|
path.setAttribute("d", d);
|
|
path.setAttribute("fill", "#000");
|
|
svg.append(bg, path);
|
|
parent.appendChild(svg);
|
|
}
|
|
async function copy(text) {
|
|
try {
|
|
await navigator.clipboard.writeText(text);
|
|
new import_obsidian18.Notice(t("link.copied"));
|
|
} catch {
|
|
}
|
|
}
|
|
var CreateSetupLinkModal = class extends import_obsidian18.Modal {
|
|
constructor(app, plugin) {
|
|
super(app);
|
|
this.includeToken = false;
|
|
this.plugin = plugin;
|
|
}
|
|
onOpen() {
|
|
this.titleEl.setText(t("link.createTitle"));
|
|
this.modalEl.addClass("vsg-setup-link");
|
|
this.render();
|
|
}
|
|
payload() {
|
|
const p = this.plugin;
|
|
const s = p.settings;
|
|
const api = p.getApiBase();
|
|
return {
|
|
v: 1,
|
|
provider: s.provider,
|
|
...api !== HOSTS[s.provider].defaultApi ? { api } : {},
|
|
owner: s.owner,
|
|
repo: s.repo,
|
|
branch: s.branch,
|
|
syncConfigDir: s.syncConfigDir,
|
|
configSync: s.configSync,
|
|
syncHidden: s.syncHidden,
|
|
useGitignore: s.useGitignore,
|
|
...s.excludePatterns !== DEFAULT_SETTINGS.excludePatterns ? { exclude: s.excludePatterns } : {},
|
|
...s.repoSubdir ? { subdir: s.repoSubdir } : {}
|
|
};
|
|
}
|
|
render() {
|
|
const { contentEl } = this;
|
|
contentEl.empty();
|
|
const p = this.plugin;
|
|
contentEl.createEl("p", { cls: "vsg-muted", text: t("link.createIntro") });
|
|
const canIncludeToken = !p.usingSignIn() && !!p.getToken();
|
|
if (canIncludeToken) {
|
|
new import_obsidian18.Setting(contentEl).setName(t("link.includeToken")).setDesc(t("link.includeTokenDesc")).addToggle(
|
|
(tg) => tg.setValue(this.includeToken).onChange((v) => {
|
|
this.includeToken = v;
|
|
this.render();
|
|
})
|
|
);
|
|
} else if (p.usingSignIn()) {
|
|
contentEl.createEl("p", { cls: "vsg-muted", text: t("link.signInNote", { host: p.hostLabel() }) });
|
|
}
|
|
const out = contentEl.createDiv({ cls: "vsg-link-out", text: this.includeToken ? t("link.encrypting") : "" });
|
|
this.build(out).catch((e) => out.setText(localizeError(e)));
|
|
}
|
|
async build(out) {
|
|
const payload = this.payload();
|
|
let code = "";
|
|
if (this.includeToken && !this.plugin.usingSignIn()) {
|
|
code = newSetupCode();
|
|
payload.token = await encryptToken(this.plugin.getToken(), code);
|
|
}
|
|
const link = buildSetupLink(payload);
|
|
out.empty();
|
|
if (!import_obsidian18.Platform.isMobile) {
|
|
const box = out.createDiv({ cls: "vsg-qr-box" });
|
|
try {
|
|
renderQr(box, link);
|
|
} catch {
|
|
box.remove();
|
|
out.createEl("p", { cls: "vsg-muted", text: t("link.tooLongForQr") });
|
|
}
|
|
}
|
|
new import_obsidian18.Setting(out).setName(t("link.link")).setDesc(t("link.linkDesc")).addButton((b) => b.setButtonText(t("link.copyLink")).setCta().onClick(() => void copy(link)));
|
|
if (code) {
|
|
const box = out.createDiv({ cls: "vsg-link-code" });
|
|
box.createDiv({ cls: "vsg-muted", text: t("link.codeIntro") });
|
|
box.createDiv({ cls: "vsg-device-code", text: code });
|
|
}
|
|
out.createEl("p", { cls: "vsg-muted", text: code ? t("link.keepApart") : t("link.noSecrets") });
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
var ApplySetupLinkModal = class extends import_obsidian18.Modal {
|
|
constructor(app, plugin, payload) {
|
|
super(app);
|
|
this.plugin = plugin;
|
|
this.payload = payload;
|
|
}
|
|
onOpen() {
|
|
const { contentEl, payload: s, plugin: p } = this;
|
|
this.titleEl.setText(t("link.applyTitle"));
|
|
contentEl.createEl("p", { text: t("link.applyIntro", { vault: this.app.vault.getName() }) });
|
|
const ul = contentEl.createEl("ul");
|
|
ul.createEl("li", { text: `${HOSTS[s.provider].label}: ${s.owner}/${s.repo} (${s.branch})` });
|
|
if (s.api) ul.createEl("li", { text: t("link.server", { url: s.api }) });
|
|
if (s.syncConfigDir) ul.createEl("li", { text: t("link.withSettings") });
|
|
if (s.syncHidden) ul.createEl("li", { text: t("link.withHidden") });
|
|
if (s.useGitignore) ul.createEl("li", { text: t("link.withGitignore") });
|
|
if (s.exclude !== void 0) ul.createEl("li", { text: t("link.withExclude") });
|
|
if (s.token) ul.createEl("li", { text: t("link.withToken") });
|
|
const sub = normalizeSubdir(s.subdir);
|
|
ul.createEl("li", { text: t("link.subdir", { folder: sub || t("s.subdirRoot") }) });
|
|
const warn = contentEl.createDiv({ cls: "vsg-h-error" });
|
|
warn.setText(t("link.onlyYours"));
|
|
if (p.isConfigured()) contentEl.createEl("p", { cls: "vsg-h-accent", text: t("link.replaces", { repo: `${p.settings.owner}/${p.settings.repo}` }) });
|
|
if (p.isConfigured() && p.state.lastSync > 0 && sub !== normalizeSubdir(p.settings.repoSubdir)) {
|
|
contentEl.createEl("p", { cls: "vsg-h-accent", text: t("s.subdirChangeBody", { folder: sub || t("s.subdirRoot") }) });
|
|
}
|
|
let code = "";
|
|
if (s.token) {
|
|
new import_obsidian18.Setting(contentEl).setName(t("link.code")).setDesc(t("link.codeDesc")).addText((tx) => tx.onChange((v) => code = v));
|
|
}
|
|
const status = contentEl.createDiv({ cls: "vsg-muted" });
|
|
let busy = false;
|
|
new import_obsidian18.Setting(contentEl).addButton((b) => b.setButtonText(t("u.cancel")).onClick(() => this.close())).addButton(
|
|
(b) => b.setButtonText(t("link.apply")).setCta().onClick(async () => {
|
|
if (busy) return;
|
|
busy = true;
|
|
b.setDisabled(true);
|
|
const release = () => {
|
|
busy = false;
|
|
b.setDisabled(false);
|
|
};
|
|
let token = "";
|
|
if (s.token) {
|
|
if (!code.trim()) {
|
|
release();
|
|
return void status.setText(t("link.needCode"));
|
|
}
|
|
try {
|
|
status.setText(t("link.decrypting"));
|
|
token = await decryptToken(s.token, code);
|
|
} catch {
|
|
release();
|
|
return void status.setText(t("link.wrongCode"));
|
|
}
|
|
}
|
|
try {
|
|
this.close();
|
|
await p.applySetupPayload(s, token);
|
|
} catch (e) {
|
|
new import_obsidian18.Notice(localizeError(e), 8e3);
|
|
}
|
|
})
|
|
);
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
|
|
// src/othersync.ts
|
|
var SYNC_PLUGINS = {
|
|
"obsidian-git": "Obsidian Git",
|
|
"remotely-save": "Remotely Save",
|
|
"obsidian-livesync": "Self-hosted LiveSync",
|
|
fit: "Fit",
|
|
"github-gitless-sync": "GitHub Gitless Sync",
|
|
"obsidian-github-sync": "GitHub Sync",
|
|
"git-obsi-sync": "Git Obsi Sync",
|
|
"syncthing-integration": "Syncthing Integration"
|
|
};
|
|
var CLOUD_FOLDERS = [
|
|
[/Mobile Documents|iCloud|CloudDocs/i, "iCloud Drive"],
|
|
[/Dropbox/i, "Dropbox"],
|
|
[/OneDrive/i, "OneDrive"],
|
|
[/Google ?Drive|GoogleDrive|My Drive/i, "Google Drive"],
|
|
[/pCloud/i, "pCloud"],
|
|
[/Nextcloud|ownCloud/i, "Nextcloud"],
|
|
[/Syncthing/i, "Syncthing"]
|
|
];
|
|
async function readJson(app, path) {
|
|
try {
|
|
const a = app.vault.adapter;
|
|
return await a.exists(path) ? JSON.parse(await a.read(path)) : null;
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
function obsidianSyncConnected(app) {
|
|
try {
|
|
const sync = app.internalPlugins?.plugins?.sync;
|
|
return !!sync?.enabled && typeof sync.instance?.vaultId === "string" && sync.instance.vaultId.length > 0;
|
|
} catch {
|
|
return false;
|
|
}
|
|
}
|
|
async function detectOtherSync(app) {
|
|
const found = [];
|
|
const cfg = app.vault.configDir;
|
|
if (obsidianSyncConnected(app)) found.push("Obsidian Sync");
|
|
const community = await readJson(app, `${cfg}/community-plugins.json`);
|
|
if (Array.isArray(community)) {
|
|
for (const id of community) if (typeof id === "string" && SYNC_PLUGINS[id]) found.push(SYNC_PLUGINS[id]);
|
|
}
|
|
try {
|
|
if (await app.vault.adapter.exists(".git")) found.push(".git");
|
|
} catch {
|
|
}
|
|
const base = app.vault.adapter.getBasePath?.();
|
|
if (typeof base === "string") {
|
|
for (const [re, name] of CLOUD_FOLDERS) {
|
|
if (re.test(base)) {
|
|
found.push(name);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return found;
|
|
}
|
|
|
|
// src/conflict-editor.ts
|
|
var import_state = require("@codemirror/state");
|
|
var import_view = require("@codemirror/view");
|
|
var OPEN = "<<<<<<<";
|
|
function splitLines3(text) {
|
|
const lines2 = [];
|
|
let start = 0;
|
|
while (start < text.length) {
|
|
const nl = text.indexOf("\n", start);
|
|
const end = nl < 0 ? text.length : nl + 1;
|
|
let content = text.slice(start, nl < 0 ? text.length : nl);
|
|
if (content.endsWith("\r")) content = content.slice(0, -1);
|
|
lines2.push({ start, end, text: content });
|
|
start = end;
|
|
}
|
|
return lines2;
|
|
}
|
|
function markerLabel(line, marker) {
|
|
if (!line.startsWith(marker)) return null;
|
|
const rest = line.slice(marker.length);
|
|
if (rest === "") return "";
|
|
if (rest[0] !== " " && rest[0] !== " ") return null;
|
|
return rest.trim();
|
|
}
|
|
var FENCE_RE = /^ {0,3}(`{3,}|~{3,})/;
|
|
function findConflictBlocks(text) {
|
|
if (!text.includes(OPEN)) return [];
|
|
const lines2 = splitLines3(text);
|
|
const blocks = [];
|
|
let fence = null;
|
|
let i = 0;
|
|
while (i < lines2.length) {
|
|
const line = lines2[i].text;
|
|
const fm = FENCE_RE.exec(line);
|
|
if (fence !== null) {
|
|
if (fm && fm[1][0] === fence[0] && fm[1].length >= fence.length && line.trim() === fm[1]) fence = null;
|
|
i++;
|
|
continue;
|
|
}
|
|
if (fm) {
|
|
if (fm[1][0] !== "`" || !line.slice(line.indexOf(fm[1]) + fm[1].length).includes("`")) fence = fm[1];
|
|
i++;
|
|
continue;
|
|
}
|
|
const oursLabel = markerLabel(line, OPEN);
|
|
if (oursLabel === null) {
|
|
i++;
|
|
continue;
|
|
}
|
|
const parsed = parseBlock(text, lines2, i, oursLabel);
|
|
if (parsed.block) {
|
|
blocks.push(parsed.block);
|
|
}
|
|
i = parsed.next;
|
|
}
|
|
return blocks;
|
|
}
|
|
function parseBlock(text, lines2, openIdx, oursLabel) {
|
|
let baseIdx = -1;
|
|
let sepIdx = -1;
|
|
let ambiguous = false;
|
|
for (let j = openIdx + 1; j < lines2.length; j++) {
|
|
const l = lines2[j].text;
|
|
if (markerLabel(l, OPEN) !== null) return { block: null, next: j };
|
|
if (sepIdx < 0 && baseIdx < 0 && markerLabel(l, "|||||||") !== null) {
|
|
baseIdx = j;
|
|
continue;
|
|
}
|
|
if (l === "=======") {
|
|
if (sepIdx < 0) sepIdx = j;
|
|
else ambiguous = true;
|
|
continue;
|
|
}
|
|
const theirsLabel = markerLabel(l, ">>>>>>>");
|
|
if (theirsLabel !== null) {
|
|
if (sepIdx < 0 || ambiguous) return { block: null, next: j + 1 };
|
|
const slice = (a, b) => a >= b ? "" : text.slice(lines2[a].start, lines2[b - 1].end);
|
|
const oursEnd = baseIdx >= 0 ? baseIdx : sepIdx;
|
|
const block = {
|
|
from: lines2[openIdx].start,
|
|
to: lines2[j].end,
|
|
oursLabel,
|
|
theirsLabel,
|
|
ours: slice(openIdx + 1, oursEnd),
|
|
theirs: slice(sepIdx + 1, j)
|
|
};
|
|
if (baseIdx >= 0) block.base = slice(baseIdx + 1, sepIdx);
|
|
return { block, next: j + 1 };
|
|
}
|
|
}
|
|
return { block: null, next: lines2.length };
|
|
}
|
|
function resolveBlock(block, choice) {
|
|
if (choice === "ours") return block.ours;
|
|
if (choice === "theirs") return block.theirs;
|
|
if (block.ours === "" || block.theirs === "") return block.ours + block.theirs;
|
|
const eol = block.ours.endsWith("\n") ? "" : block.theirs.includes("\r\n") ? "\r\n" : "\n";
|
|
return block.ours + eol + block.theirs;
|
|
}
|
|
function resolveAt(view, pos, choice) {
|
|
const blocks = findConflictBlocks(view.state.doc.toString());
|
|
const block = blocks.find((b) => b.from === pos) ?? blocks.find((b) => b.from <= pos && pos < b.to);
|
|
if (!block) return false;
|
|
view.dispatch({
|
|
changes: { from: block.from, to: block.to, insert: resolveBlock(block, choice) },
|
|
userEvent: "input.conflict-resolve",
|
|
scrollIntoView: true
|
|
});
|
|
view.focus();
|
|
return true;
|
|
}
|
|
var ConflictBarWidget = class extends import_view.WidgetType {
|
|
constructor(labels, oursLabel, theirsLabel) {
|
|
super();
|
|
this.labels = labels;
|
|
this.oursLabel = oursLabel;
|
|
this.theirsLabel = theirsLabel;
|
|
}
|
|
eq(other) {
|
|
return other.labels === this.labels && other.oursLabel === this.oursLabel && other.theirsLabel === this.theirsLabel;
|
|
}
|
|
toDOM(view) {
|
|
const bar = createDiv({ cls: "vsg-conflict-bar" });
|
|
bar.setAttribute("role", "toolbar");
|
|
if (this.labels.hint) {
|
|
bar.setAttribute("aria-label", this.labels.hint);
|
|
bar.createSpan({ cls: "vsg-conflict-hint", text: this.labels.hint });
|
|
}
|
|
const make = (choice, text, detail) => {
|
|
const btn = bar.createEl("button", { cls: `vsg-conflict-btn vsg-conflict-btn-${choice}`, text });
|
|
btn.type = "button";
|
|
btn.setAttribute("aria-label", detail ? `${text} (${detail})` : text);
|
|
btn.addEventListener("mousedown", (e) => e.preventDefault());
|
|
btn.addEventListener("click", (e) => {
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
resolveAt(view, view.posAtDOM(bar), choice);
|
|
});
|
|
};
|
|
make("ours", this.labels.ours, this.oursLabel);
|
|
make("theirs", this.labels.theirs, this.theirsLabel);
|
|
make("both", this.labels.both, "");
|
|
return bar;
|
|
}
|
|
ignoreEvent() {
|
|
return true;
|
|
}
|
|
};
|
|
var MarkerWidget = class extends import_view.WidgetType {
|
|
constructor(kind, label) {
|
|
super();
|
|
this.kind = kind;
|
|
this.label = label;
|
|
}
|
|
eq(other) {
|
|
return other.kind === this.kind && other.label === this.label;
|
|
}
|
|
toDOM() {
|
|
return createSpan({ cls: `vsg-cm-marker-label vsg-cm-marker-${this.kind}`, text: this.label });
|
|
}
|
|
};
|
|
function buildDecorations(state, labels) {
|
|
const blocks = findConflictBlocks(state.doc.toString());
|
|
if (blocks.length === 0) return import_view.Decoration.none;
|
|
const ranges = [];
|
|
const doc = state.doc;
|
|
for (const b of blocks) {
|
|
ranges.push(import_view.Decoration.widget({ widget: new ConflictBarWidget(labels, b.oursLabel, b.theirsLabel), block: true, side: -1 }).range(b.from));
|
|
let section = "ours";
|
|
const last = doc.lineAt(Math.max(b.from, b.to - 1)).number;
|
|
for (let n = doc.lineAt(b.from).number; n <= last; n++) {
|
|
const line = doc.line(n);
|
|
let kind = null;
|
|
let label = "";
|
|
if (line.from === b.from) [kind, label] = ["open", b.oursLabel];
|
|
else if (n === last) [kind, label] = ["close", b.theirsLabel];
|
|
else if (section === "ours" && b.base !== void 0 && markerLabel(line.text, "|||||||") !== null) [kind, label, section] = ["base", markerLabel(line.text, "|||||||") ?? "", "base"];
|
|
else if (section !== "theirs" && line.text === "=======") [kind, section] = ["sep", "theirs"];
|
|
if (kind) {
|
|
ranges.push(import_view.Decoration.line({ class: `vsg-cm-marker vsg-cm-marker-line-${kind}` }).range(line.from));
|
|
if (line.length > 0) ranges.push(import_view.Decoration.replace({ widget: new MarkerWidget(kind, label) }).range(line.from, line.to));
|
|
} else ranges.push(import_view.Decoration.line({ class: `vsg-cm-side vsg-cm-${section}` }).range(line.from));
|
|
}
|
|
}
|
|
return import_view.Decoration.set(ranges, true);
|
|
}
|
|
function touchesMarker(tr) {
|
|
let hit = false;
|
|
const marker = (t2) => t2.includes("<<<<<<<") || t2.includes("=======") || t2.includes(">>>>>>>");
|
|
tr.changes.iterChangedRanges((fromA, toA, from, to) => {
|
|
if (hit) return;
|
|
const doc = tr.state.doc;
|
|
const removed = tr.startState.doc.sliceString(fromA, toA);
|
|
hit = marker(doc.sliceString(doc.lineAt(from).from, doc.lineAt(to).to)) || marker(removed) || removed.includes("```") || removed.includes("~~~");
|
|
});
|
|
return hit;
|
|
}
|
|
function conflictResolver(labels) {
|
|
const field = import_state.StateField.define({
|
|
create: (state) => buildDecorations(state, labels),
|
|
update: (deco, tr) => {
|
|
if (!tr.docChanged) return deco;
|
|
if (deco.size === 0 && !touchesMarker(tr)) return deco;
|
|
return buildDecorations(tr.state, labels);
|
|
},
|
|
// Highest precedence: the marker labels must win over Markdown's own decorations on those lines.
|
|
provide: (f) => import_state.Prec.highest(import_view.EditorView.decorations.from(f))
|
|
});
|
|
return field;
|
|
}
|
|
|
|
// src/change-markers.ts
|
|
var import_obsidian19 = require("obsidian");
|
|
var import_state2 = require("@codemirror/state");
|
|
var import_view2 = require("@codemirror/view");
|
|
|
|
// src/change-diff.ts
|
|
function editorLines(text) {
|
|
return text.replace(/\r\n/g, "\n").split("\n");
|
|
}
|
|
function match(a, b) {
|
|
return lcsMatch(a, b) ?? new Int32Array(a.length).fill(-1);
|
|
}
|
|
function computeHunks(base, current) {
|
|
if (base === current) return [];
|
|
const A = editorLines(base);
|
|
const B = editorLines(current);
|
|
const m = match(A, B);
|
|
const hunks = [];
|
|
let i = 0;
|
|
let j = 0;
|
|
const flush = (i0, i1, j0, j1) => {
|
|
if (i1 === i0 && j1 === j0) return;
|
|
const oldLines = A.slice(i0, i1);
|
|
const kind = i1 === i0 ? "add" : j1 === j0 ? "delete" : "change";
|
|
hunks.push({ kind, from: j0, to: j1, oldFrom: i0, oldLines });
|
|
};
|
|
while (i < A.length || j < B.length) {
|
|
const i0 = i;
|
|
const j0 = j;
|
|
while (i < A.length && m[i] < 0) i++;
|
|
const nextJ = i < A.length ? m[i] : B.length;
|
|
j = Math.max(j, nextJ);
|
|
flush(i0, i, j0, j);
|
|
if (i < A.length) {
|
|
i++;
|
|
j++;
|
|
}
|
|
}
|
|
return hunks;
|
|
}
|
|
function hunkAt(hunks, line, lineCount) {
|
|
for (const h of hunks) {
|
|
if (h.to > h.from ? line >= h.from && line < h.to : line === Math.min(h.from, lineCount - 1)) return h;
|
|
}
|
|
return null;
|
|
}
|
|
function nextHunk(hunks, line, dir) {
|
|
if (!hunks.length) return null;
|
|
if (dir === 1) return hunks.find((h) => h.from > line) ?? hunks[0];
|
|
for (let k = hunks.length - 1; k >= 0; k--) if (hunks[k].from < line) return hunks[k];
|
|
return hunks[hunks.length - 1];
|
|
}
|
|
function revertEdit(text, h) {
|
|
const starts = [0];
|
|
for (let k = 0; k < text.length; k++) if (text.charCodeAt(k) === 10) starts.push(k + 1);
|
|
const n = starts.length;
|
|
const lineEnd = (l) => l + 1 < n ? starts[l + 1] - 1 : text.length;
|
|
const old = h.oldLines.join("\n");
|
|
if (h.to > h.from) {
|
|
if (h.oldLines.length) return { from: starts[h.from], to: lineEnd(h.to - 1), insert: old };
|
|
if (h.to < n) return { from: starts[h.from], to: starts[h.to], insert: "" };
|
|
if (h.from > 0) return { from: lineEnd(h.from - 1), to: text.length, insert: "" };
|
|
return { from: 0, to: text.length, insert: "" };
|
|
}
|
|
if (h.from < n) return { from: starts[h.from], to: starts[h.from], insert: old + "\n" };
|
|
return { from: text.length, to: text.length, insert: "\n" + old };
|
|
}
|
|
async function traceLine(current, line, count, load, complete) {
|
|
if (count === 0) return { kind: "none" };
|
|
let text = editorLines(current);
|
|
let pos = line;
|
|
const newest = await load(0);
|
|
if (newest === null) return { kind: "local" };
|
|
let prev = editorLines(newest);
|
|
const back = match(prev, text);
|
|
pos = indexOf(back, pos);
|
|
if (pos < 0) return { kind: "local" };
|
|
text = prev;
|
|
for (let k = 0; k + 1 < count; k++) {
|
|
const older = await load(k + 1);
|
|
if (older === null) return { kind: "commit", index: k, atLeast: false };
|
|
prev = editorLines(older);
|
|
const p = indexOf(match(prev, text), pos);
|
|
if (p < 0) return { kind: "commit", index: k, atLeast: false };
|
|
pos = p;
|
|
text = prev;
|
|
}
|
|
return { kind: "commit", index: count - 1, atLeast: !complete };
|
|
}
|
|
function indexOf(olderToNewer, pos) {
|
|
for (let k = 0; k < olderToNewer.length; k++) if (olderToNewer[k] === pos) return k;
|
|
return -1;
|
|
}
|
|
function commitDevice(message2) {
|
|
return /^Device: (.+)$/m.exec(message2)?.[1]?.trim() || null;
|
|
}
|
|
|
|
// src/change-markers.ts
|
|
var MAX_BYTES = 1024 * 1024;
|
|
var HISTORY_LIMIT = 30;
|
|
var RECOMPUTE_MS = 400;
|
|
var RETRY_MS = 6e4;
|
|
var COMMITS_TTL_MS = 5 * 6e4;
|
|
var Lru = class {
|
|
constructor(max) {
|
|
this.max = max;
|
|
this.map = /* @__PURE__ */ new Map();
|
|
}
|
|
has(k) {
|
|
return this.map.has(k);
|
|
}
|
|
get(k) {
|
|
if (!this.map.has(k)) return void 0;
|
|
const v = this.map.get(k);
|
|
this.map.delete(k);
|
|
this.map.set(k, v);
|
|
return v;
|
|
}
|
|
set(k, v) {
|
|
this.map.delete(k);
|
|
this.map.set(k, v);
|
|
while (this.map.size > this.max) {
|
|
const first = this.map.keys().next();
|
|
if (first.done) break;
|
|
this.map.delete(first.value);
|
|
}
|
|
}
|
|
clear() {
|
|
this.map.clear();
|
|
}
|
|
};
|
|
var ChangeMark = class _ChangeMark extends import_view2.GutterMarker {
|
|
constructor(kind) {
|
|
super();
|
|
this.kind = kind;
|
|
}
|
|
eq(other) {
|
|
return other instanceof _ChangeMark && other.kind === this.kind;
|
|
}
|
|
toDOM() {
|
|
return createDiv({ cls: `vsg-change-mark vsg-change-${this.kind}` });
|
|
}
|
|
};
|
|
var MARKS = {
|
|
add: new ChangeMark("add"),
|
|
change: new ChangeMark("change"),
|
|
delete: new ChangeMark("delete"),
|
|
"delete-below": new ChangeMark("delete-below")
|
|
};
|
|
function buildMarks(doc, hunks) {
|
|
const b = new import_state2.RangeSetBuilder();
|
|
let last = -1;
|
|
for (const h of hunks) {
|
|
if (h.to > h.from) {
|
|
for (let l = Math.max(h.from, last + 1); l < h.to && l < doc.lines; l++) {
|
|
b.add(doc.line(l + 1).from, doc.line(l + 1).from, MARKS[h.kind]);
|
|
last = l;
|
|
}
|
|
} else {
|
|
const l = Math.min(h.from, doc.lines - 1);
|
|
if (l <= last) continue;
|
|
const p = doc.line(l + 1).from;
|
|
b.add(p, p, MARKS[h.from >= doc.lines ? "delete-below" : "delete"]);
|
|
last = l;
|
|
}
|
|
}
|
|
return b.finish();
|
|
}
|
|
var setHunks = import_state2.StateEffect.define();
|
|
var hunksField = import_state2.StateField.define({
|
|
create: () => import_state2.RangeSet.empty,
|
|
update(marks, tr) {
|
|
for (const e of tr.effects) if (e.is(setHunks)) return buildMarks(tr.state.doc, e.value);
|
|
return tr.docChanged ? marks.map(tr.changes) : marks;
|
|
}
|
|
});
|
|
function cmOf(editor) {
|
|
const cm = editor.cm;
|
|
return cm instanceof import_view2.EditorView ? cm : null;
|
|
}
|
|
var ChangeMarkers = class {
|
|
constructor(src) {
|
|
this.src = src;
|
|
/** Registered with registerEditorExtension; emptied while the setting is off. */
|
|
this.extensions = [];
|
|
this.bases = new Lru(16);
|
|
this.failed = /* @__PURE__ */ new Map();
|
|
this.inflight = /* @__PURE__ */ new Map();
|
|
this.versions = new Lru(40);
|
|
this.commits = /* @__PURE__ */ new Map();
|
|
this.views = /* @__PURE__ */ new Set();
|
|
this.popover = null;
|
|
this.plugin = import_view2.ViewPlugin.define((view) => new MarkerView(view, this));
|
|
this.ext = [
|
|
hunksField,
|
|
this.plugin,
|
|
(0, import_view2.gutter)({
|
|
class: "vsg-change-gutter",
|
|
markers: (v) => v.state.field(hunksField),
|
|
initialSpacer: () => MARKS.change,
|
|
domEventHandlers: {
|
|
click: (view, block) => this.openPopover(view, view.state.doc.lineAt(block.from).number - 1)
|
|
}
|
|
})
|
|
];
|
|
if (src.enabled()) this.extensions.push(this.ext);
|
|
}
|
|
/** Applies the setting: adds or removes the gutter in every open editor. */
|
|
setEnabled(on) {
|
|
this.closePopover();
|
|
this.extensions.length = 0;
|
|
if (on) this.extensions.push(this.ext);
|
|
this.src.app.workspace.updateOptions();
|
|
}
|
|
/** After a sync (new base versions): reload the base of every open editor. */
|
|
refresh() {
|
|
this.commits.clear();
|
|
for (const v of this.views) v.reload();
|
|
}
|
|
destroy() {
|
|
this.closePopover();
|
|
}
|
|
/**
|
|
* The file's text as of the last sync. null = no markers (new file, binary, too big, or
|
|
* unavailable offline). Fetched once per base version; failures are retried after a minute.
|
|
*/
|
|
async baseFor(path) {
|
|
const host = this.src.hostFor(path);
|
|
const sha = host?.state.base[path];
|
|
if (!host || !sha || host.state.remoteOnly?.[path]) return null;
|
|
if (asText(path, new ArrayBuffer(0)) === null) return null;
|
|
const f = this.src.app.vault.getAbstractFileByPath(path);
|
|
if (f instanceof import_obsidian19.TFile && f.stat.size > MAX_BYTES) return null;
|
|
const key2 = `${path}\0${sha}`;
|
|
if (this.bases.has(key2)) return this.bases.get(key2) ?? null;
|
|
const failedAt = this.failed.get(key2);
|
|
if (failedAt && Date.now() - failedAt < RETRY_MS) return null;
|
|
const running = this.inflight.get(key2);
|
|
if (running) return running;
|
|
const p = this.localBase(host, path, sha, f instanceof import_obsidian19.TFile ? f : null).catch(() => null).then((local) => local !== null ? local : this.fetchBase(host, path, sha)).then((text) => {
|
|
this.bases.set(key2, text);
|
|
this.failed.delete(key2);
|
|
return text;
|
|
}).catch((e) => {
|
|
this.failed.set(key2, Date.now());
|
|
this.src.log(`Change markers: couldn't read the last-synced version of ${path}: ${errMsg(e)}`);
|
|
return null;
|
|
}).finally(() => this.inflight.delete(key2));
|
|
this.inflight.set(key2, p);
|
|
return p;
|
|
}
|
|
/**
|
|
* Right after a sync the file on disk usually is the last-synced version: when its stored sha (the
|
|
* sync's cached hash for this exact size and time, or computed for plain files) equals the base sha,
|
|
* the local text is the base and nothing is downloaded. null = not provably the same: fetch it.
|
|
*/
|
|
async localBase(host, path, sha, f) {
|
|
if (!f) return null;
|
|
const c = host.state.cache[path];
|
|
const cachedSame = !!c && c.m === f.stat.mtime && c.s === f.stat.size && c.h === sha;
|
|
const codec = host.codec?.();
|
|
if (!cachedSame && codec?.transformsContent) return null;
|
|
const data = await this.src.app.vault.adapter.readBinary(path);
|
|
if (!cachedSame && await gitBlobSha(data) !== sha.toLowerCase()) return null;
|
|
if (data.byteLength > MAX_BYTES) return null;
|
|
return asText(path, data)?.replace(/\r\n/g, "\n") ?? null;
|
|
}
|
|
async fetchBase(host, path, sha) {
|
|
const codec = host.codec?.();
|
|
const head = host.state.head;
|
|
const hint = head ? { path: codec ? await codec.encodePath(path) : path, ref: head } : void 0;
|
|
const raw = await host.gh.getBlob(sha, hint);
|
|
if (/^[0-9a-f]{40}$/i.test(sha) && await gitBlobSha(raw) !== sha.toLowerCase()) throw new Error("incomplete download");
|
|
if (raw.byteLength > 2 * MAX_BYTES) return null;
|
|
const ptr = parsePointer(raw);
|
|
if (ptr && ptr.size > MAX_BYTES) return null;
|
|
const data = codec ? await codec.decode(path, raw) : raw;
|
|
if (data.byteLength > MAX_BYTES) return null;
|
|
return asText(path, data)?.replace(/\r\n/g, "\n") ?? null;
|
|
}
|
|
viewState(view) {
|
|
const mv = view.plugin(this.plugin);
|
|
if (!mv || mv.base === null || !this.src.enabled()) return null;
|
|
return { mv, base: mv.base, hunks: computeHunks(mv.base, view.state.doc.toString()) };
|
|
}
|
|
cursorLine(view) {
|
|
return view.state.doc.lineAt(view.state.selection.main.head).number - 1;
|
|
}
|
|
/** Puts the change at `line` (0-based) back to its last-synced text. */
|
|
revertAt(view, line, checking = false) {
|
|
const s = this.viewState(view);
|
|
const h = s && hunkAt(s.hunks, line, view.state.doc.lines);
|
|
if (!h) return false;
|
|
if (checking) return true;
|
|
const e = revertEdit(view.state.doc.toString(), h);
|
|
view.dispatch({ changes: e, selection: { anchor: e.from }, userEvent: "input" });
|
|
view.focus();
|
|
return true;
|
|
}
|
|
/** Moves the cursor to the next (or previous) change. */
|
|
goTo(view, dir, checking = false) {
|
|
const s = this.viewState(view);
|
|
const h = s && nextHunk(s.hunks, this.cursorLine(view), dir);
|
|
if (!h) return false;
|
|
if (checking) return true;
|
|
const pos = view.state.doc.line(Math.min(h.from, view.state.doc.lines - 1) + 1).from;
|
|
view.dispatch({ selection: { anchor: pos }, effects: import_view2.EditorView.scrollIntoView(pos, { y: "center" }) });
|
|
view.focus();
|
|
return true;
|
|
}
|
|
addCommands(plugin) {
|
|
const onEditor = (id, name, run) => plugin.addCommand({
|
|
id,
|
|
name,
|
|
editorCheckCallback: (checking, editor) => {
|
|
const view = cmOf(editor);
|
|
return !!view && run(view, checking);
|
|
}
|
|
});
|
|
onEditor("revert-change", t("cmd.revertChange"), (v, c) => this.revertAt(v, this.cursorLine(v), c));
|
|
onEditor("next-change", t("cmd.nextChange"), (v, c) => this.goTo(v, 1, c));
|
|
onEditor("previous-change", t("cmd.prevChange"), (v, c) => this.goTo(v, -1, c));
|
|
plugin.addCommand({
|
|
id: "who-changed-line",
|
|
name: t("cmd.whoChanged"),
|
|
editorCheckCallback: (checking, editor, ctx) => {
|
|
const path = ctx.file?.path;
|
|
if (!path || asText(path, new ArrayBuffer(0)) === null || !this.src.hasHistory(path)) return false;
|
|
if (!checking) void this.whoChanged(path, editor.getValue(), editor.getCursor().line);
|
|
return true;
|
|
}
|
|
});
|
|
}
|
|
// ---- popover ----
|
|
closePopover() {
|
|
this.popover?.close();
|
|
this.popover = null;
|
|
}
|
|
/** Shows the last-synced text of the change at `line`, with Revert (tap or click on a marker). */
|
|
openPopover(view, line) {
|
|
const s = this.viewState(view);
|
|
const h = s && hunkAt(s.hunks, line, view.state.doc.lines);
|
|
if (!s || !h) return false;
|
|
this.closePopover();
|
|
const path = view.state.field(import_obsidian19.editorInfoField, false)?.file?.path ?? null;
|
|
const doc = view.dom.ownerDocument;
|
|
const el = doc.body.createDiv({ cls: "vsg-change-popover", attr: { role: "dialog" } });
|
|
el.createDiv({ cls: "vsg-change-popover-title", text: t(h.kind === "add" ? "cm.added" : h.kind === "delete" ? "cm.deleted" : "cm.changed") });
|
|
if (h.oldLines.length) {
|
|
el.createDiv({ cls: "vsg-change-popover-label", text: t("cm.lastSynced") });
|
|
el.createEl("pre", { cls: "vsg-change-old", text: h.oldLines.join("\n") });
|
|
} else el.createEl("p", { cls: "vsg-change-popover-label", text: t("cm.newLines") });
|
|
const row = el.createDiv({ cls: "vsg-change-popover-buttons" });
|
|
const revert = row.createEl("button", { text: t("cm.revert"), cls: "mod-warning" });
|
|
revert.addEventListener("click", () => {
|
|
this.closePopover();
|
|
this.revertAt(view, line);
|
|
});
|
|
if (path && h.oldLines.length && this.src.hasHistory(path)) {
|
|
const who = row.createEl("button", { text: t("cm.who") });
|
|
who.addEventListener("click", () => {
|
|
this.closePopover();
|
|
void this.whoChanged(path, s.base, h.oldFrom, this.src.hostFor(path)?.state.head ?? null);
|
|
});
|
|
}
|
|
const at = view.coordsAtPos(view.state.doc.line(Math.min(h.from, view.state.doc.lines - 1) + 1).from);
|
|
const box = view.dom.getBoundingClientRect();
|
|
const win = doc.defaultView ?? activeWindow;
|
|
const w = el.getBoundingClientRect().width;
|
|
const left = Math.max(8, Math.min(box.left + 8, win.innerWidth - w - 8));
|
|
const below = (at?.bottom ?? box.top) + 4;
|
|
const hgt = el.getBoundingClientRect().height;
|
|
const top = below + hgt > win.innerHeight - 8 ? Math.max(8, (at?.top ?? below) - hgt - 4) : below;
|
|
el.setCssProps({ "--vsg-pop-left": `${left}px`, "--vsg-pop-top": `${top}px` });
|
|
const onDown = (e) => {
|
|
if (!el.contains(e.target)) this.closePopover();
|
|
};
|
|
const onKey = (e) => {
|
|
if (e.key === "Escape") this.closePopover();
|
|
};
|
|
const onScroll = () => this.closePopover();
|
|
doc.addEventListener("pointerdown", onDown, true);
|
|
doc.addEventListener("keydown", onKey, true);
|
|
view.scrollDOM.addEventListener("scroll", onScroll);
|
|
this.popover = {
|
|
el,
|
|
close: () => {
|
|
doc.removeEventListener("pointerdown", onDown, true);
|
|
doc.removeEventListener("keydown", onKey, true);
|
|
view.scrollDOM.removeEventListener("scroll", onScroll);
|
|
el.remove();
|
|
}
|
|
};
|
|
return true;
|
|
}
|
|
// ---- line authoring ----
|
|
async commitsFor(path) {
|
|
const c = this.commits.get(path);
|
|
if (c && Date.now() - c.at < COMMITS_TTL_MS) return c.list;
|
|
const list2 = await this.src.listCommits(path, HISTORY_LIMIT);
|
|
this.commits.set(path, { at: Date.now(), list: list2 });
|
|
return list2;
|
|
}
|
|
async versionText(path, sha) {
|
|
const key2 = `${path}\0${sha}`;
|
|
if (this.versions.has(key2)) return this.versions.get(key2) ?? null;
|
|
const data = await this.src.readVersion(path, sha);
|
|
const text = data && data.byteLength <= MAX_BYTES ? asText(path, data) : null;
|
|
this.versions.set(key2, text);
|
|
return text;
|
|
}
|
|
/**
|
|
* The commits to trace `base` (the text at the last sync, commit `head`) through: from that commit on,
|
|
* not from newer remote commits made since. When `head` didn't change this file, from the newest
|
|
* version whose text is `base`. Unchanged when neither is found.
|
|
*/
|
|
async fromLastSync(path, commits, head, base) {
|
|
const at = commits.findIndex((c) => c.sha === head);
|
|
if (at >= 0) return commits.slice(at);
|
|
const want = base.replace(/\r\n/g, "\n");
|
|
for (let k = 0; k < Math.min(commits.length, 10); k++) {
|
|
const v = await this.versionText(commits[k].path ?? path, commits[k].sha);
|
|
if (v !== null && v.replace(/\r\n/g, "\n") === want) return commits.slice(k);
|
|
}
|
|
return commits;
|
|
}
|
|
/**
|
|
* Finds and shows the most recent commit that changed line `line` (0-based) of `text`. `fromHead`:
|
|
* `text` is the version of the last sync (that commit), so newer remote commits are skipped.
|
|
*/
|
|
async whoChanged(path, text, line, fromHead = null) {
|
|
if (text.length > MAX_BYTES) return void new import_obsidian19.Notice(t("la.tooBig"));
|
|
if (!await this.src.canBrowse(path)) return;
|
|
const busy = new import_obsidian19.Notice(t("la.looking"), 0);
|
|
try {
|
|
let commits = (await this.commitsFor(path)).slice(0, HISTORY_LIMIT);
|
|
const complete = commits.length < HISTORY_LIMIT;
|
|
if (fromHead) commits = await this.fromLastSync(path, commits, fromHead, text);
|
|
const r = await traceLine(text, line, commits.length, (k) => this.versionText(commits[k].path ?? path, commits[k].sha), complete);
|
|
busy.hide();
|
|
new LineAuthorModal(this.src.app, path, r, commits, (c) => this.src.openVersion(path, c)).open();
|
|
} catch (e) {
|
|
busy.hide();
|
|
new import_obsidian19.Notice(t("la.failed", { error: errMsg(e) }));
|
|
}
|
|
}
|
|
};
|
|
var MarkerView = class {
|
|
constructor(view, ctl) {
|
|
this.view = view;
|
|
this.ctl = ctl;
|
|
this.path = null;
|
|
/** Text at the last sync; null = none known (no markers). */
|
|
this.base = null;
|
|
this.token = 0;
|
|
this.timer = null;
|
|
this.dead = false;
|
|
ctl.views.add(this);
|
|
window.setTimeout(() => this.reload(), 0);
|
|
}
|
|
filePath() {
|
|
return this.view.state.field(import_obsidian19.editorInfoField, false)?.file?.path ?? null;
|
|
}
|
|
update(u) {
|
|
if (this.filePath() !== this.path) window.setTimeout(() => this.reload(), 0);
|
|
else if (u.docChanged) this.schedule();
|
|
}
|
|
reload() {
|
|
if (this.dead) return;
|
|
const token = ++this.token;
|
|
this.path = this.filePath();
|
|
this.base = null;
|
|
const path = this.path;
|
|
if (!path || !this.ctl.src.enabled()) return this.push([]);
|
|
void this.ctl.baseFor(path).then((base) => {
|
|
if (token !== this.token || this.dead) return;
|
|
this.base = base;
|
|
this.recompute();
|
|
});
|
|
}
|
|
schedule() {
|
|
if (this.timer !== null) window.clearTimeout(this.timer);
|
|
this.timer = window.setTimeout(() => {
|
|
this.timer = null;
|
|
this.recompute();
|
|
}, RECOMPUTE_MS);
|
|
}
|
|
recompute() {
|
|
if (this.dead) return;
|
|
const doc = this.view.state.doc;
|
|
this.push(this.base === null || doc.length > MAX_BYTES ? [] : computeHunks(this.base, doc.toString()));
|
|
}
|
|
push(hunks) {
|
|
if (this.dead) return;
|
|
this.view.dispatch({ effects: setHunks.of(hunks) });
|
|
}
|
|
destroy() {
|
|
this.dead = true;
|
|
this.ctl.views.delete(this);
|
|
if (this.timer !== null) window.clearTimeout(this.timer);
|
|
}
|
|
};
|
|
var LineAuthorModal = class extends import_obsidian19.Modal {
|
|
constructor(app, path, r, commits, open_) {
|
|
super(app);
|
|
this.path = path;
|
|
this.r = r;
|
|
this.commits = commits;
|
|
this.open_ = open_;
|
|
}
|
|
onOpen() {
|
|
this.titleEl.setText(t("la.title"));
|
|
this.contentEl.createEl("p", { text: this.path, cls: "vsg-commit-sub" });
|
|
const r = this.r;
|
|
if (r.kind !== "commit") {
|
|
this.contentEl.createEl("p", { text: t(r.kind === "local" ? "la.local" : "la.none") });
|
|
return;
|
|
}
|
|
const c = this.commits[r.index];
|
|
const vars = { date: new Date(c.date).toLocaleString(), device: commitDevice(c.message) ?? c.author, sha: c.sha.slice(0, 7), n: this.commits.length };
|
|
this.contentEl.createEl("p", { text: t(r.atLeast ? "la.resultOlder" : "la.result", vars) });
|
|
this.contentEl.createEl("p", { text: c.message.split("\n")[0], cls: "vsg-commit-sub" });
|
|
new import_obsidian19.Setting(this.contentEl).addButton(
|
|
(b) => b.setButtonText(t("la.open")).setCta().onClick(() => {
|
|
this.close();
|
|
this.open_(c);
|
|
})
|
|
);
|
|
}
|
|
onClose() {
|
|
this.contentEl.empty();
|
|
}
|
|
};
|
|
|
|
// src/mirror.ts
|
|
var import_obsidian20 = require("obsidian");
|
|
var MirrorHost = class {
|
|
constructor(plugin, target, remote) {
|
|
this.state = emptyState();
|
|
this.lastError = null;
|
|
this.lastSync = 0;
|
|
/** Push only, and edits made in the mirror repository are never copied into the vault. */
|
|
this.backupMirror = true;
|
|
this.checkEncryption = (markerSha) => encryptionGuard(
|
|
() => this.plugin.encryptionRecord(),
|
|
() => void 0,
|
|
// the mirror never changes this device's key
|
|
async (sha) => JSON.parse(new TextDecoder().decode(await this.remote.getBlob(sha)))
|
|
)(markerSha);
|
|
this.plugin = plugin;
|
|
this.target = target;
|
|
const def = { id: "mirror", provider: target.provider };
|
|
this.remote = remote ?? makeRemote(
|
|
target.provider,
|
|
// Its own token, else the main one, but only for the same host.
|
|
() => {
|
|
const own = plugin.mirrorToken(def);
|
|
const auth = own ? { token: own, bearer: false, onUnauthorized: () => Promise.resolve(false) } : plugin.borrowedAuth(target.provider);
|
|
return { ...auth, apiBase: plugin.getApiBaseFor(target.provider), owner: target.owner, repo: target.repo };
|
|
},
|
|
plugin.blobCacheStore(`mirror-${target.owner}-${target.repo}`)
|
|
);
|
|
this.engine = new SyncEngine(this);
|
|
}
|
|
get app() {
|
|
return this.plugin.app;
|
|
}
|
|
get gh() {
|
|
return this.remote;
|
|
}
|
|
get settings() {
|
|
const t2 = this.target;
|
|
return { ...this.plugin.settings, provider: t2.provider, owner: t2.owner, repo: t2.repo, branch: t2.branch || "main", mode: "push", dailySnapshot: false, keepEmptyFolders: false, deleteGuardEnabled: false };
|
|
}
|
|
get stateFilePath() {
|
|
return (0, import_obsidian20.normalizePath)(this.plugin.stateFilePath.replace(/sync-state\.json$/, "sync-state-mirror.json"));
|
|
}
|
|
get pluginVersion() {
|
|
return this.plugin.pluginVersion;
|
|
}
|
|
deviceName() {
|
|
return this.plugin.deviceName();
|
|
}
|
|
log(msg) {
|
|
this.plugin.log(`[mirror] ${msg}`);
|
|
}
|
|
progress(text) {
|
|
this.plugin.progress(`${this.target.repo}: ${text}`);
|
|
}
|
|
async loadState() {
|
|
this.state = await readState(this.app.vault.adapter, this.stateFilePath, this.plugin.deviceId(), (m) => this.log(m));
|
|
}
|
|
async saveState() {
|
|
await writeState(this.app.vault.adapter, this.stateFilePath, this.state, this.plugin.deviceId());
|
|
}
|
|
askConflict(_info) {
|
|
return Promise.resolve("local");
|
|
}
|
|
confirmDeletes() {
|
|
return Promise.resolve("proceed");
|
|
}
|
|
deviceScope() {
|
|
return this.plugin.deviceScope();
|
|
}
|
|
extraExcludes() {
|
|
return this.plugin.extraExcludes();
|
|
}
|
|
gitignorePatterns() {
|
|
return this.plugin.gitignorePatterns();
|
|
}
|
|
isUnloaded() {
|
|
return this.plugin.isUnloaded();
|
|
}
|
|
/** The trigger and typed message of the sync that started this mirror run (commit messages). */
|
|
commitContext() {
|
|
return this.plugin.commitContext();
|
|
}
|
|
/** `sync: false` notes stay on this device: never uploaded to the backup mirror either. */
|
|
frontmatterScope() {
|
|
return this.plugin.frontmatterScope();
|
|
}
|
|
codec() {
|
|
const enc = this.plugin.encryptionLayer();
|
|
const patterns = this.plugin.codec().layers.find((l) => l instanceof LfsLayer)?.trackedPatterns ?? [];
|
|
const lfs = new LfsLayer(this.remote, (this.plugin.settings.lfsThresholdMB ?? 0) * 1024 * 1024, void 0, patterns);
|
|
return new Codec(enc ? [enc, lfs] : [lfs]);
|
|
}
|
|
};
|
|
|
|
// src/pluginsync.ts
|
|
var import_obsidian21 = require("obsidian");
|
|
var REGISTRY_URL = "https://raw.githubusercontent.com/obsidianmd/obsidian-releases/HEAD/community-plugins.json";
|
|
var SELF_ID = "vault-sync-git";
|
|
var MARKER_FILE = ".vsg-installed";
|
|
var ID_RE = /^[a-z0-9-]+$/;
|
|
var REPO_RE = /^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/;
|
|
var VERSION_RE = /^[0-9A-Za-z.+-]+$/;
|
|
function isValidId(id) {
|
|
return typeof id === "string" && id.length <= 128 && ID_RE.test(id);
|
|
}
|
|
function isValidRepo(repo) {
|
|
if (typeof repo !== "string" || repo.length > 200 || !REPO_RE.test(repo)) return false;
|
|
return repo.split("/").every((seg) => seg !== "." && seg !== "..");
|
|
}
|
|
function isValidVersion(v) {
|
|
return typeof v === "string" && v.length <= 64 && VERSION_RE.test(v) && v !== "." && v !== ".." && /[0-9A-Za-z]/.test(v);
|
|
}
|
|
function pluginDir(configDir, id) {
|
|
return `${configDir}/plugins/${id}`;
|
|
}
|
|
function parseJson(text) {
|
|
try {
|
|
return JSON.parse(text);
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
function asRecord(v) {
|
|
return v && typeof v === "object" && !Array.isArray(v) ? v : null;
|
|
}
|
|
function parseRegistry(text) {
|
|
const data = parseJson(text);
|
|
if (!Array.isArray(data)) throw new Error("Plugin registry is not a list");
|
|
const out = [];
|
|
for (const item of data) {
|
|
const r = asRecord(item);
|
|
if (!r || !isValidId(r.id) || !isValidRepo(r.repo)) continue;
|
|
out.push({ id: r.id, repo: r.repo, name: typeof r.name === "string" ? r.name : void 0 });
|
|
}
|
|
return out;
|
|
}
|
|
async function fetchRegistry(transport = obsidianFetch) {
|
|
const res = await transport(REGISTRY_URL);
|
|
if (res.status !== 200) throw new Error(`Could not load the plugin registry (HTTP ${res.status})`);
|
|
return parseRegistry(res.text);
|
|
}
|
|
async function findPluginNeeds(io, configDir, fetchRegistryFn, updatedElsewhere = /* @__PURE__ */ new Set()) {
|
|
const listPath = `${configDir}/community-plugins.json`;
|
|
if (!await io.exists(listPath)) return { needs: [], unknown: [] };
|
|
const list2 = parseJson(await io.read(listPath));
|
|
if (!Array.isArray(list2)) return { needs: [], unknown: [] };
|
|
const candidates = [];
|
|
const unknown = [];
|
|
const seen = /* @__PURE__ */ new Set();
|
|
for (const raw of list2) {
|
|
if (typeof raw !== "string" || seen.has(raw)) continue;
|
|
seen.add(raw);
|
|
if (raw === SELF_ID) continue;
|
|
if (!isValidId(raw)) {
|
|
unknown.push(raw);
|
|
continue;
|
|
}
|
|
const dir = pluginDir(configDir, raw);
|
|
const manifestPath = `${dir}/manifest.json`;
|
|
if (!await io.exists(manifestPath)) continue;
|
|
const manifest = asRecord(parseJson(await io.read(manifestPath)));
|
|
if (!manifest || !isValidVersion(manifest.version)) continue;
|
|
const version = manifest.version;
|
|
const name = typeof manifest.name === "string" ? manifest.name : raw;
|
|
let reason = null;
|
|
if (!await io.exists(`${dir}/main.js`)) reason = "missing";
|
|
else if (await io.exists(`${dir}/${MARKER_FILE}`)) {
|
|
const marker = asRecord(parseJson(await io.read(`${dir}/${MARKER_FILE}`)));
|
|
if (!marker || marker.version !== version) reason = "outdated";
|
|
} else if (updatedElsewhere.has(raw)) reason = "outdated";
|
|
if (reason) candidates.push({ id: raw, version, name, reason });
|
|
}
|
|
if (candidates.length === 0) return { needs: [], unknown };
|
|
const registry = /* @__PURE__ */ new Map();
|
|
for (const e of await fetchRegistryFn()) if (isValidId(e.id) && isValidRepo(e.repo)) registry.set(e.id, e);
|
|
const needs = [];
|
|
for (const c of candidates) {
|
|
const entry = registry.get(c.id);
|
|
if (!entry) {
|
|
unknown.push(c.id);
|
|
continue;
|
|
}
|
|
needs.push({ id: c.id, name: entry.name ?? c.name, version: c.version, repo: entry.repo, reason: c.reason });
|
|
}
|
|
return { needs, unknown };
|
|
}
|
|
function releaseUrl(repo, version, file) {
|
|
return `https://github.com/${repo}/releases/download/${version}/${file}`;
|
|
}
|
|
async function installPlugin(need, deps, configDir) {
|
|
if (need.id === SELF_ID) throw new Error("Refusing to install Vault Sync for Git over itself");
|
|
if (!isValidId(need.id)) throw new Error(`Invalid plugin id: ${String(need.id)}`);
|
|
if (!isValidRepo(need.repo)) throw new Error(`Invalid repository for ${need.id}: ${String(need.repo)}`);
|
|
if (!isValidVersion(need.version)) throw new Error(`Invalid version for ${need.id}: ${String(need.version)}`);
|
|
const fetchFile = async (file, optional) => {
|
|
const res = await deps.transport(releaseUrl(need.repo, need.version, file));
|
|
if (res.status === 200) return res;
|
|
if (optional && res.status === 404) return null;
|
|
throw new Error(`Download of ${file} for ${need.id} ${need.version} failed (HTTP ${res.status})`);
|
|
};
|
|
const required = async (file) => {
|
|
const res = await fetchFile(file, false);
|
|
if (!res) throw new Error(`Download of ${file} for ${need.id} failed`);
|
|
return res;
|
|
};
|
|
const manifestRes = await required("manifest.json");
|
|
const manifest = asRecord(parseJson(manifestRes.text));
|
|
if (!manifest) throw new Error(`Release manifest of ${need.id} is not valid JSON`);
|
|
if (manifest.id !== need.id) throw new Error(`Release manifest id "${String(manifest.id)}" does not match ${need.id}`);
|
|
if (manifest.version !== need.version) throw new Error(`Release manifest version "${String(manifest.version)}" does not match ${need.version} for ${need.id}`);
|
|
const mainRes = await required("main.js");
|
|
if (mainRes.arrayBuffer.byteLength === 0) throw new Error(`main.js of ${need.id} is empty`);
|
|
const stylesRes = await fetchFile("styles.css", true);
|
|
const dir = pluginDir(configDir, need.id);
|
|
if (deps.mkdir) await deps.mkdir(dir);
|
|
await deps.write(`${dir}/main.js`, mainRes.arrayBuffer);
|
|
await deps.write(`${dir}/manifest.json`, manifestRes.arrayBuffer);
|
|
if (stylesRes) await deps.write(`${dir}/styles.css`, stylesRes.arrayBuffer);
|
|
await deps.write(`${dir}/${MARKER_FILE}`, new TextEncoder().encode(JSON.stringify({ version: need.version })).buffer);
|
|
}
|
|
var obsidianFetch = async (url) => {
|
|
const res = await (0, import_obsidian21.requestUrl)({ url, method: "GET", throw: false });
|
|
const arrayBuffer = res.arrayBuffer;
|
|
return { status: res.status, arrayBuffer, text: new TextDecoder().decode(arrayBuffer) };
|
|
};
|
|
|
|
// src/main.ts
|
|
var VaultSyncPlugin = class extends import_obsidian22.Plugin {
|
|
constructor() {
|
|
super(...arguments);
|
|
this.remoteCache = null;
|
|
this.refreshing = null;
|
|
this.unloaded = false;
|
|
this.expiredNoticeShown = false;
|
|
this.lastOpenSync = 0;
|
|
this.badges = null;
|
|
/** Editor marks for lines changed since the last sync. */
|
|
this.changeMarkers = null;
|
|
this.refreshBadges = () => {
|
|
};
|
|
this.lastReport = null;
|
|
this.encLayer = null;
|
|
this.shared = null;
|
|
/** Set by the setup wizard to show live progress. */
|
|
this.onProgress = null;
|
|
/** English message of the last failure (log and diagnostics); see lastErrorCause for display. */
|
|
this.lastError = null;
|
|
/** How the last finished sync ended as a whole (main repository, shared folders, mirror, files). */
|
|
this.syncOutcome = null;
|
|
this.syncOutcomeSeq = 0;
|
|
/** The error behind lastError, for translated display (status panel). */
|
|
this.lastErrorCause = null;
|
|
this.lastErrorAt = 0;
|
|
this.statusEl = null;
|
|
this.ribbonEl = null;
|
|
this.syncing = false;
|
|
this.changedDuringSync = false;
|
|
this.lastFailed = false;
|
|
this.queued = null;
|
|
this.logLines = [];
|
|
this.onChangeDebounced = null;
|
|
this.intervalId = null;
|
|
this.nextIntervalAt = 0;
|
|
// Edited paths since the last sync, with a sequence number so edits made during a sync survive it.
|
|
this.dirty = /* @__PURE__ */ new Map();
|
|
this.dirtySeq = 0;
|
|
this.fullScanNeeded = true;
|
|
this.dirtySnapshot = /* @__PURE__ */ new Map();
|
|
// Paths touched while a sync runs, and paths the sync itself wrote (their vault events can arrive late).
|
|
this.touchedDuringSync = /* @__PURE__ */ new Set();
|
|
this.writtenBySync = /* @__PURE__ */ new Map();
|
|
this.settingTab = null;
|
|
// Last status set (before the paused overlay), so the status bar can be redrawn on its own.
|
|
this.baseStatus = "idle";
|
|
this.baseDetail = "";
|
|
this.pauseTimer = null;
|
|
this.pendingTimer = null;
|
|
/** True when the last check found commits on the host that this device hasn't synced yet. */
|
|
this.remoteAhead = false;
|
|
/** Other sync tools found in this vault (checked on load and when the status panel opens). */
|
|
this.otherSync = [];
|
|
this.gitignoreLines = [];
|
|
/** `filter=lfs` patterns from .gitattributes (this vault's, else the repository's). */
|
|
this.lfsPatterns = [];
|
|
this.gitattributesHead = null;
|
|
this.badgeTimer = null;
|
|
this.nestedGitignorePaths = [];
|
|
/** Bumped on sign-out and when a token is pasted: a refresh or sign-in finishing later is dropped. */
|
|
this.authGen = 0;
|
|
/**
|
|
* Settings-folder sync with "install plugins from official releases": plugins turned on (or updated)
|
|
* on another device are installed here from the community registry, after asking. A declined
|
|
* version isn't offered again.
|
|
*/
|
|
this.offeringPlugins = false;
|
|
this.mirrorHost = null;
|
|
this.checkEncryption = (markerSha) => encryptionGuard(
|
|
() => this.encryptionRecord(),
|
|
(r) => {
|
|
const format = this.encryptionRecord()?.meta.v ?? 1;
|
|
this.setSecret("encryption", JSON.stringify(r));
|
|
if ((r.meta.v ?? 1) !== format) {
|
|
void this.loadEncryption();
|
|
this.fullScanNeeded = true;
|
|
}
|
|
},
|
|
async (sha) => JSON.parse(new TextDecoder().decode(await this.gh.getBlob(sha)))
|
|
)(markerSha);
|
|
// ---------------- commit context, frontmatter scope, explorer scope ----------------
|
|
/** Redraws the status bar countdown and branch (desktop). */
|
|
this.updateStatusExtras = () => {
|
|
};
|
|
this.customCommitMessage = null;
|
|
this.syncContext = { trigger: "manual", message: null };
|
|
this.fmCache = null;
|
|
/** Counts files created, deleted or renamed (the explorer's greyed-out rows are cached against it). */
|
|
this.vaultShapeGen = 0;
|
|
/** True while the setup wizard is open: its choices (encryption, first-sync side) aren't applied yet. */
|
|
this.wizardOpen = false;
|
|
/** Whether the repository has an encryption marker for this vault, checked once per synced commit. */
|
|
this.unlockCache = null;
|
|
}
|
|
/** Redraws the plugin's settings page (after the setup wizard or a sign-in changed something). */
|
|
redrawSettings() {
|
|
this.settingTab?.redraw();
|
|
}
|
|
get stateFilePath() {
|
|
const dir = this.manifest.dir ?? `${this.app.vault.configDir}/plugins/${this.manifest.id}`;
|
|
return (0, import_obsidian22.normalizePath)(`${dir}/sync-state.json`);
|
|
}
|
|
async onload() {
|
|
await this.loadSettings();
|
|
await this.loadState();
|
|
this.engine = new SyncEngine(this);
|
|
this.io = new VaultIO(this.app);
|
|
await this.loadEncryption();
|
|
this.registerView(HEALTH_VIEW, (leaf) => new HealthView(leaf, this));
|
|
this.registerView(HISTORY_VIEW, (leaf) => new HistoryView(leaf, this.historyHost()));
|
|
this.registerMarkdownPostProcessor((el, ctx) => {
|
|
if (!Object.keys(this.state.remoteOnly ?? {}).length) return;
|
|
el.querySelectorAll(".internal-embed").forEach((embed) => {
|
|
const src = embed.getAttribute("src");
|
|
if (!src || this.app.metadataCache.getFirstLinkpathDest(src.split("#")[0], ctx.sourcePath)) return;
|
|
const f = this.remoteOnlyFor(src);
|
|
if (!f || embed.nextElementSibling?.hasClass("vsg-ondemand")) return;
|
|
const box = createDiv({ cls: "vsg-ondemand" });
|
|
box.createSpan({ text: t("m.embedMissing", { path: f.path, mb: (f.size / 1048576).toFixed(1) }) + " " });
|
|
const btn = box.createEl("button", { text: t("m.download") });
|
|
btn.onClickEvent(async () => {
|
|
btn.disabled = true;
|
|
const ref = this.app.vault.on("create", (file) => {
|
|
if (file.path !== f.path) return;
|
|
box.remove();
|
|
this.app.vault.offref(ref);
|
|
});
|
|
this.registerEvent(ref);
|
|
await this.downloadOnDemand([f.path]);
|
|
if (this.app.vault.getAbstractFileByPath(f.path)) {
|
|
box.remove();
|
|
this.app.vault.offref(ref);
|
|
} else if (!this.syncing) {
|
|
btn.disabled = false;
|
|
this.app.vault.offref(ref);
|
|
}
|
|
});
|
|
embed.after(box);
|
|
});
|
|
});
|
|
this.ribbonEl = this.addRibbonIcon("refresh-cw", t("ribbon.sync"), () => this.sync("manual"));
|
|
this.addRibbonIcon("activity", t("ribbon.status"), () => this.openHealth());
|
|
this.addRibbonIcon("history", t("ribbon.history"), () => void this.openHistory());
|
|
if (!import_obsidian22.Platform.isMobile) {
|
|
this.statusEl = this.addStatusBarItem();
|
|
this.statusEl.addClass("vsg-status");
|
|
this.statusEl.onClickEvent(() => this.openHealth());
|
|
}
|
|
this.setStatus("idle");
|
|
this.settingTab = new VaultSyncSettingTab(this.app, this);
|
|
this.addSettingTab(this.settingTab);
|
|
this.register(() => this.clearPauseTimer());
|
|
this.registerCommands();
|
|
this.updateStatusExtras = installSyncExtras(this).updateStatus;
|
|
this.registerEditorExtension(conflictResolver({ ours: t("ce.ours"), theirs: t("ce.theirs"), both: t("ce.both"), hint: t("ce.hint") }));
|
|
this.changeMarkers = this.createChangeMarkers();
|
|
this.registerEditorExtension(this.changeMarkers.extensions);
|
|
this.changeMarkers.addCommands(this);
|
|
this.registerObsidianProtocolHandler(SETUP_ACTION, (params) => {
|
|
const payload = parseSetupPayload(params.s);
|
|
if (!payload) return void new import_obsidian22.Notice(t("link.invalid"));
|
|
new ApplySetupLinkModal(this.app, this, payload).open();
|
|
});
|
|
this.badges = new ExplorerBadges(this.app, () => this.pendingLocalPaths(), () => this.settings.explorerBadges && this.isConfigured(), () => this.syncedPathTest(), () => this.explorerScopeKey());
|
|
this.badgeTimer = (0, import_obsidian22.debounce)(() => {
|
|
if (!this.unloaded) this.badges?.refresh();
|
|
}, 1500, true);
|
|
this.refreshBadges = () => this.badgeTimer?.();
|
|
this.pendingTimer = (0, import_obsidian22.debounce)(() => {
|
|
if (!this.unloaded) this.renderStatus();
|
|
}, 1500, true);
|
|
this.registerEvent(this.app.workspace.on("layout-change", () => this.refreshBadges()));
|
|
this.app.workspace.onLayoutReady(() => {
|
|
this.refreshBadges();
|
|
void this.checkOtherSync();
|
|
const touch = (path) => {
|
|
if (/\.[0-9a-z]+\.renaming(\/|$)/.test(path)) return;
|
|
if (this.syncing) return void this.touchedDuringSync.add(path);
|
|
const w = this.writtenBySync.get(path);
|
|
if (w && Date.now() - w < 5e3) return;
|
|
this.dirty.set(path, ++this.dirtySeq);
|
|
};
|
|
const onVaultChange = (file, oldPath) => {
|
|
if (file instanceof import_obsidian22.TFile) {
|
|
touch(file.path);
|
|
if (oldPath) touch(oldPath);
|
|
}
|
|
this.refreshBadges();
|
|
this.pendingTimer?.();
|
|
if (!this.settings.syncOnChange) return;
|
|
if (this.syncing) this.changedDuringSync = true;
|
|
else this.onChangeDebounced?.();
|
|
};
|
|
this.registerEvent(this.app.vault.on("modify", (f) => onVaultChange(f)));
|
|
this.registerEvent(this.app.vault.on("create", (f) => onVaultChange(f)));
|
|
this.registerEvent(this.app.vault.on("delete", (f) => onVaultChange(f)));
|
|
this.registerEvent(this.app.vault.on("rename", (f, old) => onVaultChange(f, old)));
|
|
const onFolder = (f) => {
|
|
if (f instanceof import_obsidian22.TFolder) nestedHiddenIndex(this.app).foldersChanged();
|
|
};
|
|
this.registerEvent(this.app.vault.on("create", onFolder));
|
|
this.registerEvent(this.app.vault.on("rename", onFolder));
|
|
const shapeChanged = () => void this.vaultShapeGen++;
|
|
this.registerEvent(this.app.vault.on("create", shapeChanged));
|
|
this.registerEvent(this.app.vault.on("delete", shapeChanged));
|
|
this.registerEvent(this.app.vault.on("rename", shapeChanged));
|
|
this.rescheduleTriggers();
|
|
if (!this.isConfigured() && !this.settings.wizardShown) {
|
|
this.settings.wizardShown = true;
|
|
void this.saveSettings();
|
|
window.setTimeout(() => !this.unloaded && this.openWizard(), 1e3);
|
|
} else if (this.settings.syncOnStartup) window.setTimeout(() => void this.sync("startup"), 2500);
|
|
});
|
|
this.registerEvent(
|
|
this.app.workspace.on("file-open", (file) => {
|
|
if (!file || !this.settings.syncOnOpen || !this.isConfigured() || this.syncing) return;
|
|
if (Date.now() - this.lastOpenSync < 3e4) return;
|
|
this.lastOpenSync = Date.now();
|
|
void this.sync("open");
|
|
})
|
|
);
|
|
this.registerInterval(window.setInterval(() => void this.checkRemoteAhead(), 5 * 6e4));
|
|
this.registerDomEvent(document, "visibilitychange", () => {
|
|
if (document.visibilityState === "visible" && this.settings.syncOnResume) {
|
|
if (Date.now() - this.state.lastSync > 6e4) void this.sync("resume");
|
|
} else if (document.visibilityState === "hidden" && this.settings.syncOnBackground) {
|
|
void this.sync("background");
|
|
}
|
|
});
|
|
}
|
|
onunload() {
|
|
this.unloaded = true;
|
|
this.badgeTimer?.cancel();
|
|
this.pendingTimer?.cancel();
|
|
this.badges?.destroy();
|
|
this.badges = null;
|
|
this.changeMarkers?.destroy();
|
|
this.onChangeDebounced?.cancel();
|
|
}
|
|
/**
|
|
* Obsidian may not have rewritten community-plugins.json yet when this plugin starts (for example
|
|
* right after it was turned back on), so the file can say it is off while it runs. Fix the file
|
|
* before syncing, so that stale list is never uploaded and never turns sync off on other devices.
|
|
*/
|
|
async repairSelfEnabled() {
|
|
if (!this.settings.syncConfigDir) return;
|
|
const path = `${this.app.vault.configDir}/community-plugins.json`;
|
|
try {
|
|
const a = this.app.vault.adapter;
|
|
if (!await a.exists(path)) return;
|
|
const fixed = keepSelfEnabled(path, this.app.vault.configDir, new TextEncoder().encode(await a.read(path)).buffer);
|
|
if (fixed) {
|
|
await a.writeBinary(path, fixed);
|
|
this.log("community-plugins.json didn't list this plugin while it runs; added it back before syncing.");
|
|
}
|
|
} catch (e) {
|
|
this.log(`Couldn't check community-plugins.json: ${errMsg(e)}`);
|
|
}
|
|
}
|
|
isUnloaded() {
|
|
return this.unloaded;
|
|
}
|
|
get pluginVersion() {
|
|
return this.manifest.version;
|
|
}
|
|
get windows() {
|
|
return import_obsidian22.Platform.isWin;
|
|
}
|
|
/** Vault files whose names Windows (and often Android) can't store: they won't sync to such devices. */
|
|
unportableNames() {
|
|
const out = [];
|
|
for (const f of this.app.vault.getFiles()) if (portableNameProblem(f.path)) out.push(f.path);
|
|
return out;
|
|
}
|
|
async checkRemoteAhead() {
|
|
if (document.visibilityState !== "visible" || this.syncing || !this.isConfigured() || !navigator.onLine) return;
|
|
const timerSyncs = this.settings.intervalMin > 0 && this.settings.intervalMin <= 5 && !this.batterySaver() && !this.isPaused();
|
|
if (timerSyncs) return;
|
|
try {
|
|
const head = await this.gh.getRef(this.settings.branch);
|
|
const ahead = !!head && head !== this.state.head;
|
|
if (ahead !== this.remoteAhead) {
|
|
this.remoteAhead = ahead;
|
|
this.ribbonEl?.toggleClass("vsg-remote-ahead", ahead);
|
|
this.statusEl?.toggleClass("vsg-remote-ahead", ahead);
|
|
this.refreshHealth();
|
|
}
|
|
} catch {
|
|
}
|
|
}
|
|
// ---------------- pause, battery saver (this device only) ----------------
|
|
/** Automatic syncs are paused until this time (epoch ms; Infinity = until resumed). Manual syncs still run. */
|
|
pausedUntil() {
|
|
const v = this.localGet("pausedUntil");
|
|
if (!v) return 0;
|
|
const n = v === "forever" ? Infinity : Number(v);
|
|
return n > Date.now() ? n : 0;
|
|
}
|
|
isPaused() {
|
|
return this.pausedUntil() > 0;
|
|
}
|
|
pauseSync(minutes) {
|
|
this.localSet("pausedUntil", minutes === null ? "forever" : String(Date.now() + minutes * 6e4));
|
|
this.setStatus("paused", t("m.pausedStatus"));
|
|
new import_obsidian22.Notice(minutes === null ? t("m.paused") : t("m.pausedFor", { n: minutes }));
|
|
}
|
|
resumeSync() {
|
|
this.localSet("pausedUntil", null);
|
|
this.renderStatus();
|
|
new import_obsidian22.Notice(t("m.resumed"));
|
|
void this.sync("resume");
|
|
}
|
|
/** Battery saver: no timer and no sync after each edit; startup, returning to the app and manual syncs only. */
|
|
batterySaver() {
|
|
return this.localGet("batterySaver") === "1";
|
|
}
|
|
setBatterySaver(on) {
|
|
this.localSet("batterySaver", on ? "1" : null);
|
|
this.rescheduleTriggers();
|
|
}
|
|
async checkOtherSync() {
|
|
this.otherSync = await detectOtherSync(this.app).catch(() => []);
|
|
return this.otherSync;
|
|
}
|
|
/** Reads .gitattributes so files tracked with `git lfs track` go to LFS whatever their size. */
|
|
async loadGitattributes() {
|
|
try {
|
|
const a = this.app.vault.adapter;
|
|
let text = await a.exists(".gitattributes") ? await a.read(".gitattributes") : null;
|
|
if (text === null && this.isConfigured() && !this.isEncrypted()) {
|
|
const head = this.state.head;
|
|
const sub = normalizeSubdir(this.settings.repoSubdir);
|
|
const key2 = head ? `${sub}#${head}` : null;
|
|
if (key2 && this.gitattributesHead === key2) return;
|
|
const read = async (p) => {
|
|
const data = head ? await this.gh.getFileAt(p, head) : null;
|
|
return data ? new TextDecoder().decode(data) : "";
|
|
};
|
|
const patterns = lfsPatternsForSubdir(lfsPatternsFrom(await read(".gitattributes")), sub);
|
|
if (sub) patterns.push(...lfsPatternsFrom(await read(`${sub}/.gitattributes`)));
|
|
this.gitattributesHead = key2;
|
|
this.lfsPatterns = patterns;
|
|
return;
|
|
}
|
|
this.lfsPatterns = lfsPatternsFrom(text ?? "");
|
|
} catch {
|
|
}
|
|
}
|
|
gitignorePatterns() {
|
|
return this.gitignoreLines;
|
|
}
|
|
/** Reads the vault's .gitignore files (Obsidian doesn't index them, so they are read from disk before each sync). */
|
|
async loadGitignore() {
|
|
if (!this.settings.useGitignore) return void (this.gitignoreLines = []);
|
|
const a = this.app.vault.adapter;
|
|
try {
|
|
const st = this.state;
|
|
const full = this.fullScanNeeded || !st.lastFullScan || Date.now() - st.lastFullScan > this.settings.fullScanMinutes * 6e4;
|
|
const found = await this.io.listNestedHidden(() => true, /* @__PURE__ */ new Set([".gitignore"]), { full });
|
|
this.nestedGitignorePaths = found.map((f) => f.path).sort((x, y) => x.localeCompare(y));
|
|
const root = await a.exists(".gitignore") ? (await a.read(".gitignore")).split(/\r?\n/) : [];
|
|
const nested = [];
|
|
for (const path of this.nestedGitignorePaths) {
|
|
if (!await a.exists(path)) continue;
|
|
nested.push(...scopeGitignore(path.slice(0, -"/.gitignore".length), (await a.read(path)).split(/\r?\n/)));
|
|
}
|
|
this.gitignoreLines = [...root, ...nested];
|
|
} catch (e) {
|
|
this.log(`Could not read .gitignore files (keeping the previous rules): ${errMsg(e)}`);
|
|
}
|
|
}
|
|
// Called by Obsidian when data.json changes on disk (e.g. synced from another device).
|
|
async onExternalSettingsChange() {
|
|
await this.loadSettings();
|
|
this.fullScanNeeded = true;
|
|
this.rescheduleTriggers();
|
|
this.settingTab?.refreshIfOpen();
|
|
this.refreshHealth();
|
|
if (this.changeMarkers && this.changeMarkers.extensions.length > 0 !== this.settings.changeMarkers) this.changeMarkers.setEnabled(this.settings.changeMarkers);
|
|
}
|
|
// ---------------- device-local secrets ----------------
|
|
localKey(name) {
|
|
const id = this.app.appId ?? this.app.vault.getName();
|
|
return `vault-sync-git:${id}:${name}`;
|
|
}
|
|
/** Device-local, vault-scoped values (Obsidian's local storage API; never synced). */
|
|
localGet(name) {
|
|
const v = this.app.loadLocalStorage(`vault-sync-git:${name}`);
|
|
return typeof v === "string" ? v : null;
|
|
}
|
|
localSet(name, value) {
|
|
this.app.saveLocalStorage(`vault-sync-git:${name}`, value);
|
|
}
|
|
// Secrets go to Obsidian's SecretStorage (1.11.4+, encrypted by the OS keychain where available),
|
|
// falling back to the vault-scoped local storage on older versions.
|
|
secretId(name) {
|
|
return this.localKey(name).toLowerCase().replace(/[^a-z0-9-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
}
|
|
secrets() {
|
|
return this.app.secretStorage ?? null;
|
|
}
|
|
getSecret(name) {
|
|
const store = this.secrets();
|
|
if (store) {
|
|
try {
|
|
const v = store.getSecret(this.secretId(name));
|
|
if (v) return v;
|
|
const old = this.localGet(`secret:${name}`);
|
|
if (old) {
|
|
store.setSecret(this.secretId(name), old);
|
|
this.localSet(`secret:${name}`, null);
|
|
}
|
|
return old ?? "";
|
|
} catch {
|
|
}
|
|
}
|
|
return this.localGet(`secret:${name}`) ?? "";
|
|
}
|
|
setSecret(name, value) {
|
|
const store = this.secrets();
|
|
if (store) {
|
|
try {
|
|
store.setSecret(this.secretId(name), value);
|
|
this.localSet(`secret:${name}`, null);
|
|
return;
|
|
} catch {
|
|
}
|
|
}
|
|
this.localSet(`secret:${name}`, value || null);
|
|
}
|
|
getToken() {
|
|
if (this.usingGitHubApp()) return this.appTokens()?.access ?? "";
|
|
if (this.usingGitLabApp()) return this.gitlabTokens()?.access ?? "";
|
|
const token = this.getSecret("token");
|
|
if (!token) return "";
|
|
const bound = this.localGet("token:for");
|
|
if (bound === null) {
|
|
if (!tokenLooksLike(this.settings.provider ?? "github", token)) return "";
|
|
this.localSet("token:for", this.tokenTarget());
|
|
} else if (bound !== this.tokenTarget()) return "";
|
|
return token;
|
|
}
|
|
tokenTarget() {
|
|
return `${this.settings.provider ?? "github"}|${this.getApiBase().replace(/\/+$/, "")}`;
|
|
}
|
|
/** After the user changes the API URL in settings themselves, the token follows it. */
|
|
rebindToken() {
|
|
const bound = this.localGet("token:for");
|
|
const provider = this.settings.provider ?? "github";
|
|
if (!this.getSecret("token") || bound === null || !bound.startsWith(`${provider}|`)) return;
|
|
const oldHost = urlHost(bound.slice(provider.length + 1));
|
|
if (oldHost !== null && oldHost === urlHost(this.getApiBase())) this.localSet("token:for", this.tokenTarget());
|
|
}
|
|
/** A shared folder's own token, only for the host and API URL it was entered for (empty otherwise). */
|
|
sharedToken(def) {
|
|
const token = this.getSecret(`token-shared-${def.id}`);
|
|
if (!token) return "";
|
|
const target = `${def.provider}|${this.getApiBaseFor(def.provider).replace(/\/+$/, "")}`;
|
|
const bound = this.localGet(`token-shared-for:${def.id}`);
|
|
if (bound === null) this.localSet(`token-shared-for:${def.id}`, target);
|
|
else if (bound !== target) return "";
|
|
return token;
|
|
}
|
|
/** The backup mirror's own token, bound to its host and API URL like the others. */
|
|
mirrorToken(def) {
|
|
return this.sharedToken(def);
|
|
}
|
|
setSharedToken(def, token) {
|
|
this.setSecret(`token-shared-${def.id}`, token);
|
|
this.localSet(`token-shared-for:${def.id}`, token ? `${def.provider}|${this.getApiBaseFor(def.provider).replace(/\/+$/, "")}` : null);
|
|
}
|
|
setToken(token) {
|
|
if (token) this.authGen++;
|
|
this.setSecret("token", token);
|
|
this.localSet("token:for", token ? this.tokenTarget() : null);
|
|
if (token && this.usingGitHubApp()) this.localSet("auth:github", null);
|
|
if (token && this.usingGitLabApp()) this.localSet("auth:gitlab", null);
|
|
}
|
|
// ---------------- Sign in with GitHub (GitHub App device flow) ----------------
|
|
/** Days until the pasted token expires, when the host reports it (GitHub); null = unknown. */
|
|
tokenExpiryDays() {
|
|
if (this.usingSignIn()) return null;
|
|
const at = this.gh.tokenExpiresAt?.() ?? null;
|
|
return at === null ? null : Math.floor((at - Date.now()) / 864e5);
|
|
}
|
|
/** Opens the host's token page (prefilled on GitHub). */
|
|
openTokenPage() {
|
|
const first = HOSTS[this.settings.provider ?? "github"].tokenSteps(this.getApiBase(), this.app.vault.getName()).find((s) => s.link);
|
|
if (first?.link) window.open(first.link.href);
|
|
else this.openSettings();
|
|
}
|
|
/** Once a day, warn when the pasted token expires within a week. */
|
|
warnTokenExpiry() {
|
|
const days = this.tokenExpiryDays();
|
|
if (days === null || days > 7) return;
|
|
const today = (/* @__PURE__ */ new Date()).toDateString();
|
|
if (this.localGet("tokenWarned") === today) return;
|
|
this.localSet("tokenWarned", today);
|
|
new import_obsidian22.Notice(days <= 0 ? t("h.tokenExpiresToday") : t("h.tokenExpires", { days }), 15e3);
|
|
}
|
|
/** The GitHub App to sign in with on this device: a custom one (Enterprise), else the built-in one on github.com. */
|
|
githubApp() {
|
|
const clientId = this.localGet("ghapp:clientId") ?? "";
|
|
if (clientId) return { clientId, slug: this.localGet("ghapp:slug") ?? "" };
|
|
const api = this.getApiBaseFor("github").replace(/\/+$/, "");
|
|
return GITHUB_APP.clientId && /^https:\/\/api\.github\.com$/i.test(api) ? GITHUB_APP : null;
|
|
}
|
|
setCustomGitHubApp(clientId, slug2) {
|
|
this.localSet("ghapp:clientId", clientId || null);
|
|
this.localSet("ghapp:slug", slug2 || null);
|
|
}
|
|
customGitHubApp() {
|
|
return { clientId: this.localGet("ghapp:clientId") ?? "", slug: this.localGet("ghapp:slug") ?? "" };
|
|
}
|
|
githubWeb() {
|
|
return webBase(this.getApiBaseFor("github"));
|
|
}
|
|
usingGitHubApp() {
|
|
return (this.settings.provider ?? "github") === "github" && this.localGet("auth:github") === "app";
|
|
}
|
|
/** The sign-in tokens, but only for the server and app that issued them (never sent anywhere else). */
|
|
appTokens() {
|
|
const tokens = parseTokens2(this.getSecret("ghapp"));
|
|
if (!tokens) return null;
|
|
const app = this.githubApp();
|
|
if (!tokens.web || tokens.web !== this.githubWeb() || tokens.clientId && tokens.clientId !== app?.clientId) return null;
|
|
return tokens;
|
|
}
|
|
signedInWithApp(tokens, web = this.githubWeb(), clientId = this.githubApp()?.clientId) {
|
|
this.authGen++;
|
|
this.setSecret("ghapp", JSON.stringify({ ...tokens, web, clientId }));
|
|
this.localSet("auth:github", "app");
|
|
this.expiredNoticeShown = false;
|
|
}
|
|
signOutApp() {
|
|
this.authGen++;
|
|
this.setSecret("ghapp", "");
|
|
this.localSet("auth:github", null);
|
|
}
|
|
// ---------------- Sign in with GitLab (OAuth device flow) ----------------
|
|
/** The GitLab application to sign in with: a custom one (self-managed), else the built-in one on gitlab.com. */
|
|
gitlabApp() {
|
|
const clientId = this.localGet("glapp:clientId") ?? "";
|
|
if (clientId) return { clientId };
|
|
const api = this.getApiBaseFor("gitlab").replace(/\/+$/, "");
|
|
return GITLAB_APP.clientId && /^https:\/\/gitlab\.com\/api\/v4$/i.test(api) ? GITLAB_APP : null;
|
|
}
|
|
setCustomGitLabApp(clientId) {
|
|
this.localSet("glapp:clientId", clientId || null);
|
|
}
|
|
gitlabWeb() {
|
|
return webBaseFromApi(this.getApiBaseFor("gitlab"));
|
|
}
|
|
usingGitLabApp() {
|
|
return this.settings.provider === "gitlab" && this.localGet("auth:gitlab") === "app";
|
|
}
|
|
/** Signed in through a host app (GitHub or GitLab) rather than a pasted token. */
|
|
usingSignIn() {
|
|
return this.usingGitHubApp() || this.usingGitLabApp();
|
|
}
|
|
/** GitLab sign-in tokens, only for the server and application that issued them. */
|
|
gitlabTokens() {
|
|
const tokens = parseTokens(this.getSecret("glapp"));
|
|
if (!tokens) return null;
|
|
const web = tokens.web;
|
|
const clientId = tokens.clientId;
|
|
if (!web || web !== this.gitlabWeb() || clientId && clientId !== this.gitlabApp()?.clientId) return null;
|
|
return tokens;
|
|
}
|
|
signedInWithGitLab(tokens, web = this.gitlabWeb(), clientId = this.gitlabApp()?.clientId) {
|
|
this.authGen++;
|
|
this.setSecret("glapp", JSON.stringify({ ...tokens, web, clientId }));
|
|
this.localSet("auth:gitlab", "app");
|
|
this.expiredNoticeShown = false;
|
|
}
|
|
signOutGitLab() {
|
|
this.authGen++;
|
|
this.setSecret("glapp", "");
|
|
this.localSet("auth:gitlab", null);
|
|
}
|
|
/** Main-host credentials for a shared folder or mirror on the same host (never sent to another host). */
|
|
borrowedAuth(provider) {
|
|
const same = provider === this.settings.provider;
|
|
return {
|
|
token: same ? this.getToken() : "",
|
|
bearer: same && provider === "gitlab" && this.usingGitLabApp(),
|
|
onUnauthorized: (failed) => same ? this.ensureFreshToken(true, failed) : Promise.resolve(false)
|
|
};
|
|
}
|
|
/** True when signed in through a host app and its tokens are present and valid for this server. */
|
|
signedInNow() {
|
|
return this.usingGitLabApp() ? !!this.gitlabTokens() : this.usingGitHubApp() ? !!this.appTokens() : false;
|
|
}
|
|
/** The device-flow steps for the sign-in dialog. */
|
|
signInFlow(kind) {
|
|
if (kind === "gitlab") {
|
|
let code2 = null;
|
|
return {
|
|
title: t("app.signInGitLab"),
|
|
host: "GitLab",
|
|
available: () => !!this.gitlabApp(),
|
|
start: async () => code2 = await startDeviceFlow(this.gitlabWeb(), this.gitlabApp().clientId),
|
|
finish: async (isCancelled) => {
|
|
const web2 = this.gitlabWeb();
|
|
const clientId2 = this.gitlabApp().clientId;
|
|
const tokens = await pollDeviceFlow(web2, clientId2, code2, { isCancelled });
|
|
if (isCancelled()) return;
|
|
this.signedInWithGitLab(tokens, web2, clientId2);
|
|
this.settingTab?.redraw();
|
|
}
|
|
};
|
|
}
|
|
let code = null;
|
|
let web = "";
|
|
let clientId = "";
|
|
return {
|
|
title: t("app.signIn"),
|
|
host: "GitHub",
|
|
available: () => !!this.githubApp(),
|
|
start: async () => {
|
|
web = this.githubWeb();
|
|
clientId = this.githubApp().clientId;
|
|
return code = await startDeviceFlow2(web, clientId);
|
|
},
|
|
finish: async (isCancelled) => {
|
|
const tokens = await pollDeviceFlow2(web, clientId, code, { isCancelled });
|
|
if (isCancelled()) return;
|
|
this.signedInWithApp(tokens, web, clientId);
|
|
this.settingTab?.redraw();
|
|
}
|
|
};
|
|
}
|
|
/**
|
|
* Make sure the sign-in token is valid, refreshing it shortly before it expires (or right away
|
|
* when `force`, after a 401). Only one refresh runs at a time: GitHub and GitLab rotate refresh
|
|
* tokens, so two concurrent refreshes would sign the device out. Returns true when a usable token exists.
|
|
*/
|
|
ensureFreshToken(force = false, failedToken) {
|
|
if (!this.usingSignIn()) return Promise.resolve(!force && !!this.getToken());
|
|
if (this.refreshing) return this.refreshing;
|
|
const gitlab = this.usingGitLabApp();
|
|
const before = gitlab ? this.gitlabTokens() : this.appTokens();
|
|
if (!before) {
|
|
if (!this.expiredNoticeShown) {
|
|
this.expiredNoticeShown = true;
|
|
new import_obsidian22.Notice(t("app.expiredSession", { host: gitlab ? "GitLab" : "GitHub" }), 1e4);
|
|
}
|
|
return Promise.resolve(false);
|
|
}
|
|
if (failedToken && before.access !== failedToken) return Promise.resolve(true);
|
|
if (!force && !(gitlab ? needsRefresh(before) : needsRefresh2(before))) return Promise.resolve(true);
|
|
const gen = this.authGen;
|
|
let run;
|
|
run = (async () => {
|
|
await Promise.resolve();
|
|
try {
|
|
if (gitlab) {
|
|
const app2 = this.gitlabApp();
|
|
if (!app2 || !before.refresh) throw new DeviceFlowError2("bad_refresh_token");
|
|
const web = this.gitlabWeb();
|
|
const fresh2 = await refreshAppToken(web, app2.clientId, before.refresh);
|
|
if (gen !== this.authGen) return false;
|
|
this.signedInWithGitLab(fresh2, web, app2.clientId);
|
|
return true;
|
|
}
|
|
const app = this.githubApp();
|
|
if (!app || !before.refresh) throw new DeviceFlowError2("bad_refresh_token");
|
|
const fresh = await refreshAppToken2(this.githubWeb(), app.clientId, before.refresh);
|
|
if (gen !== this.authGen) return false;
|
|
this.signedInWithApp(fresh);
|
|
return true;
|
|
} catch (e) {
|
|
this.log(`Sign-in refresh failed: ${errMsg(e)}`);
|
|
if ((e instanceof DeviceFlowError2 || e instanceof DeviceFlowError) && e.code !== "http" && !this.expiredNoticeShown) {
|
|
this.expiredNoticeShown = true;
|
|
new import_obsidian22.Notice(t("app.expiredSession", { host: gitlab ? "GitLab" : "GitHub" }), 1e4);
|
|
}
|
|
return false;
|
|
} finally {
|
|
if (this.refreshing === run) this.refreshing = null;
|
|
}
|
|
})();
|
|
this.refreshing = run;
|
|
return run;
|
|
}
|
|
/** The git host client for the configured provider (rebuilt when the provider changes). */
|
|
get gh() {
|
|
const kind = this.settings.provider ?? "github";
|
|
const { owner, repo } = this.settings;
|
|
const key2 = `${kind}|${owner}|${repo}`;
|
|
if (!this.remoteCache || this.remoteCache.kind !== key2) {
|
|
this.remoteCache = {
|
|
kind: key2,
|
|
remote: makeRemote(
|
|
kind,
|
|
() => ({ token: this.getToken(), apiBase: this.getApiBaseFor(kind), owner, repo, onUnauthorized: (failed) => this.ensureFreshToken(true, failed), bearer: kind === "gitlab" && this.usingGitLabApp() }),
|
|
this.blobCacheStore(`${this.settings.owner}-${this.settings.repo}`)
|
|
)
|
|
};
|
|
}
|
|
return this.remoteCache.remote;
|
|
}
|
|
/** Per-repository hash cache for hosts without blob hashes (Bitbucket). Never synced. */
|
|
blobCacheStore(key2) {
|
|
const path = (0, import_obsidian22.normalizePath)(this.stateFilePath.replace(/sync-state\.json$/, `sync-state-cache-${key2.replace(/[^A-Za-z0-9._-]+/g, "_")}.json`));
|
|
const adapter = this.app.vault.adapter;
|
|
return {
|
|
load: async () => await adapter.exists(path) ? JSON.parse(await adapter.read(path)) : null,
|
|
save: async (c) => adapter.write(path, JSON.stringify(c))
|
|
};
|
|
}
|
|
/** An error as shown to the user: translated, with this repository's host as the default host name. */
|
|
errorText(e) {
|
|
return localizeError(e, this.hostLabel());
|
|
}
|
|
hostLabel() {
|
|
return HOSTS[this.settings.provider ?? "github"].label;
|
|
}
|
|
// The API URL is per device and per provider (a synced data.json must never redirect the token).
|
|
getApiBase() {
|
|
return this.getApiBaseFor(this.settings.provider ?? "github");
|
|
}
|
|
getApiBaseFor(kind) {
|
|
try {
|
|
return this.localGet(`apiBase:${kind}`) || HOSTS[kind].defaultApi;
|
|
} catch {
|
|
return HOSTS[kind].defaultApi;
|
|
}
|
|
}
|
|
setApiBase(url) {
|
|
this.localSet(`apiBase:${this.settings.provider ?? "github"}`, url);
|
|
}
|
|
deviceName() {
|
|
let name = "";
|
|
try {
|
|
name = this.localGet("device") ?? "";
|
|
} catch {
|
|
}
|
|
if (name) return name;
|
|
if (import_obsidian22.Platform.isIosApp) return "iPhone/iPad";
|
|
if (import_obsidian22.Platform.isAndroidApp) return "Android";
|
|
if (import_obsidian22.Platform.isMacOS) return "Mac";
|
|
if (import_obsidian22.Platform.isWin) return "Windows";
|
|
if (import_obsidian22.Platform.isLinux) return "Linux";
|
|
return "Device";
|
|
}
|
|
setDeviceName(name) {
|
|
this.localSet("device", name);
|
|
}
|
|
/** Device-local scope: never synced, so each device can choose its own folders and limits. */
|
|
deviceScope() {
|
|
try {
|
|
const raw = JSON.parse(this.localGet("scope") ?? "{}");
|
|
return {
|
|
include: Array.isArray(raw.include) ? raw.include.map(String) : [],
|
|
exclude: Array.isArray(raw.exclude) ? raw.exclude.map(String) : [],
|
|
// Phones default to a 25 MB download limit (big files are memory-heavy on mobile); 0 = no limit.
|
|
maxDownloadMB: raw.maxDownloadMB === void 0 ? import_obsidian22.Platform.isMobile ? 25 : 0 : Number(raw.maxDownloadMB) || 0,
|
|
pinned: this.pinned()
|
|
};
|
|
} catch {
|
|
return { include: [], exclude: [], maxDownloadMB: 0 };
|
|
}
|
|
}
|
|
/** Files this device downloaded on demand (kept in sync despite the size limit). */
|
|
pinned() {
|
|
try {
|
|
const v = JSON.parse(this.localGet("pinned") ?? "[]");
|
|
return Array.isArray(v) ? v.map(String) : [];
|
|
} catch {
|
|
return [];
|
|
}
|
|
}
|
|
setPinned(paths) {
|
|
this.localSet("pinned", JSON.stringify([...new Set(paths)]));
|
|
this.settingTab?.refreshIfHidden();
|
|
}
|
|
/** Remote files not downloaded to this device, largest first. */
|
|
remoteOnlyFiles() {
|
|
return Object.entries(this.state.remoteOnly ?? {}).map(([path, e]) => ({ path, size: e.size })).sort((a, b) => b.size - a.size);
|
|
}
|
|
/** Download remote-only files now and keep them synced on this device. */
|
|
async downloadOnDemand(paths) {
|
|
if (!paths.length) return;
|
|
this.setPinned([...this.pinned(), ...paths]);
|
|
new import_obsidian22.Notice(paths.length === 1 ? t("m.downloadingOne", { path: paths[0] }) : t("m.downloadingMany", { n: paths.length }));
|
|
await this.sync("manual", this.settings.mode, { firstSyncPrefer: void 0 });
|
|
}
|
|
clearPinned() {
|
|
this.setPinned([]);
|
|
}
|
|
openRemoteOnly() {
|
|
const files = this.remoteOnlyFiles();
|
|
if (!files.length) return void new import_obsidian22.Notice(t("m.allLocal"));
|
|
new RemoteOnlyModal(this.app, files, (f) => void this.downloadOnDemand([f.path])).open();
|
|
}
|
|
/** Finds the remote-only file an embed or link points to. */
|
|
remoteOnlyFor(linkpath) {
|
|
const clean = linkpath.split("#")[0].split("|")[0];
|
|
const all = this.remoteOnlyFiles();
|
|
const exact = all.find((f) => f.path === clean);
|
|
if (exact) return exact;
|
|
const base = clean.split("/").pop();
|
|
const candidates = all.filter((f) => f.path.endsWith("/" + clean) || f.path.split("/").pop() === base);
|
|
return candidates.sort((a, b) => a.path.length - b.path.length)[0] ?? null;
|
|
}
|
|
setDeviceScope(scope) {
|
|
this.localSet("scope", JSON.stringify(scope));
|
|
this.fullScanNeeded = true;
|
|
}
|
|
// ---------------- encryption ----------------
|
|
/** The encryption layer while the key is on this device (used by the mirror too). */
|
|
encryptionLayer() {
|
|
return this.encLayer;
|
|
}
|
|
encryptionRecord() {
|
|
const raw = this.getSecret("encryption");
|
|
if (!raw) return null;
|
|
try {
|
|
return JSON.parse(raw);
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
async loadEncryption() {
|
|
const rec = this.encryptionRecord();
|
|
this.encLayer = rec ? await EncryptionLayer.fromMaster(unb64(rec.master), rec.meta.v === 2 ? 2 : 1) : null;
|
|
}
|
|
isEncrypted() {
|
|
return this.encLayer !== null;
|
|
}
|
|
async saveEncryption(r) {
|
|
this.setSecret("encryption", JSON.stringify({ meta: r.meta, master: b64(r.master) }));
|
|
await this.loadEncryption();
|
|
this.fullScanNeeded = true;
|
|
this.log("End-to-end encryption unlocked on this device.");
|
|
this.refreshHealth(true);
|
|
}
|
|
async lockEncryption() {
|
|
if (this.syncing) return void new import_obsidian22.Notice(t("notice.busy"));
|
|
this.setSecret("encryption", "");
|
|
this.encLayer = null;
|
|
this.fullScanNeeded = true;
|
|
this.log("Encryption key removed from this device.");
|
|
this.refreshHealth(true);
|
|
}
|
|
openEncryption(done) {
|
|
if (this.syncing) return void new import_obsidian22.Notice(t("notice.busy"));
|
|
new EncryptionModal(this.app, this, done).open();
|
|
}
|
|
/** An encrypted repository viewed without the key would show scrambled names: ask to unlock first. */
|
|
async needsUnlock() {
|
|
if (this.isEncrypted()) return false;
|
|
const marker = await readRemoteMarker(this).catch(() => null);
|
|
if (!marker) return false;
|
|
new import_obsidian22.Notice(t("m.unlockToBrowse"));
|
|
this.openEncryption();
|
|
return true;
|
|
}
|
|
/** True when this device's key is for a repository still on the older content format (not bound to paths). */
|
|
encryptionUpgradable() {
|
|
const rec = this.encryptionRecord();
|
|
return !!rec && (rec.meta.v ?? 1) === 1;
|
|
}
|
|
/**
|
|
* Upgrades the repository's encryption to the content format bound to paths: syncs first, then
|
|
* re-encrypts every file in one commit with the same passphrase. Other devices switch on their next sync.
|
|
*/
|
|
async upgradeEncryption() {
|
|
const rec = this.encryptionRecord();
|
|
if (!rec || (rec.meta.v ?? 1) !== 1) return;
|
|
if (!await confirmPlan(this.app, t("e.upgradeTitle"), t("e.upgradeBody"), [], t("e.upgradeConfirm"))) return;
|
|
this.lastError = null;
|
|
await this.sync("manual", this.settings.mode, { firstSyncPrefer: void 0 });
|
|
if (this.lastError) return void new import_obsidian22.Notice(t("e.upgradeFailed", { error: this.errorText(this.lastErrorCause ?? this.lastError) }));
|
|
if (!this.beginExclusive()) return;
|
|
let upgraded = false;
|
|
try {
|
|
const layer = await EncryptionLayer.fromMaster(unb64(rec.master), 2);
|
|
const meta = { ...rec.meta, v: 2, check: await layer.checkValue() };
|
|
const n = await this.engine.upgradeEncryption(this.codec(layer), JSON.stringify(meta, null, 2) + "\n");
|
|
this.setSecret("encryption", JSON.stringify({ meta, master: rec.master }));
|
|
await this.loadEncryption();
|
|
this.fullScanNeeded = true;
|
|
upgraded = true;
|
|
new import_obsidian22.Notice(t("e.upgraded", { n }));
|
|
} catch (e) {
|
|
new import_obsidian22.Notice(t("e.upgradeFailed", { error: this.errorText(e) }), 1e4);
|
|
} finally {
|
|
this.endExclusive();
|
|
this.refreshHealth(true);
|
|
}
|
|
if (upgraded) void this.sync("manual");
|
|
}
|
|
async removeUnencryptedFiles() {
|
|
if (!this.beginExclusive()) return;
|
|
try {
|
|
const removed = await this.engine.removeUnencryptedFiles(
|
|
(files) => confirmPlan(this.app, t("m.plainTitle"), t("m.plainBody"), [{ title: t("m.deleteFrom", { host: this.hostLabel() }), items: files }], t("m.remove"), true)
|
|
);
|
|
new import_obsidian22.Notice(removed.length ? t("m.plainRemoved", { n: removed.length }) : t("m.plainNone"));
|
|
} catch (e) {
|
|
if (!(e instanceof SyncCancelled)) new import_obsidian22.Notice(t("m.removeFailed", { error: this.errorText(e) }));
|
|
} finally {
|
|
this.endExclusive();
|
|
}
|
|
}
|
|
/** Shared folders belong to their own repositories; the main vault repo never touches them. */
|
|
extraExcludes() {
|
|
return (this.settings.sharedFolders ?? []).filter((f) => f.enabled && f.folder).map((f) => sharedFolderPattern(f.folder));
|
|
}
|
|
/**
|
|
* The shared folders' hosts, matching the current settings (rebuilt when they change, so a folder
|
|
* just added is known before any sync). Their sync state may still be loading: sharedHosts() waits.
|
|
*/
|
|
sharedHostsCached() {
|
|
const defs = syncableSharedFolders(this.settings.sharedFolders);
|
|
const sig = JSON.stringify(defs);
|
|
if (!this.shared || this.shared.sig !== sig) {
|
|
const hosts = defs.map((d) => new SharedFolderHost(this, d));
|
|
const loaded = Promise.all(hosts.map((h) => h.loadState())).then(() => void 0);
|
|
this.shared = { sig, hosts, loaded };
|
|
}
|
|
return this.shared.hosts;
|
|
}
|
|
async sharedHosts() {
|
|
const hosts = this.sharedHostsCached();
|
|
await this.shared?.loaded;
|
|
return hosts;
|
|
}
|
|
async offerPluginInstalls() {
|
|
if (this.offeringPlugins) return;
|
|
this.offeringPlugins = true;
|
|
try {
|
|
await this.offerPluginInstallsNow();
|
|
} finally {
|
|
this.offeringPlugins = false;
|
|
}
|
|
}
|
|
async offerPluginInstallsNow() {
|
|
const cs = this.settings.configSync;
|
|
if (!this.settings.syncConfigDir || !cs.installFromReleases || !cs.pluginCode || !cs.pluginList) return;
|
|
const a = this.app.vault.adapter;
|
|
const cfg = this.app.vault.configDir;
|
|
const declined = new Set((this.localGet("declinedInstalls") ?? "").split("\n").filter(Boolean));
|
|
const { needs } = await findPluginNeeds(
|
|
{
|
|
exists: (p) => a.exists(p),
|
|
read: async (p) => {
|
|
const text = await a.read(p);
|
|
if (!p.endsWith("/manifest.json")) return text;
|
|
try {
|
|
const m = JSON.parse(text);
|
|
if (declined.has(`${m.id}@${m.version}`)) throw new Error("declined");
|
|
} catch (e) {
|
|
if (e instanceof Error && e.message === "declined") return "{}";
|
|
}
|
|
return text;
|
|
}
|
|
},
|
|
cfg,
|
|
() => fetchRegistry(),
|
|
new Set((this.localGet("pluginUpdatesPending") ?? "").split("\n").filter(Boolean))
|
|
);
|
|
const offer = needs.filter((n) => !declined.has(`${n.id}@${n.version}`));
|
|
if (!offer.length) return;
|
|
const items = offer.map((n) => `${n.name} ${n.version} (${n.repo})`);
|
|
const ok = await confirmPlan(this.app, t("pi.title"), t("pi.body"), [{ title: t("pi.list"), items }], t("pi.install"));
|
|
if (!ok) {
|
|
for (const n of offer) declined.add(`${n.id}@${n.version}`);
|
|
this.localSet("declinedInstalls", [...declined].join("\n"));
|
|
return;
|
|
}
|
|
const done = [];
|
|
for (const n of offer) {
|
|
try {
|
|
await installPlugin(n, { transport: obsidianFetch, write: (p, d) => a.writeBinary(p, d), mkdir: async (p) => {
|
|
if (!await a.exists(p)) await a.mkdir(p);
|
|
} }, cfg);
|
|
done.push(n.name);
|
|
} catch (e) {
|
|
this.log(`Installing ${n.id} ${n.version} failed: ${errMsg(e)}`);
|
|
new import_obsidian22.Notice(t("pi.failed", { name: n.name, error: this.errorText(e) }), 8e3);
|
|
}
|
|
}
|
|
if (done.length) new import_obsidian22.Notice(t("pi.done", { list: done.join(", ") }), 12e3);
|
|
const pending = (this.localGet("pluginUpdatesPending") ?? "").split("\n").filter((id) => id && !offer.some((n) => n.id === id && done.includes(n.name)));
|
|
this.localSet("pluginUpdatesPending", pending.join("\n") || null);
|
|
}
|
|
/** The backup mirror for the current settings (rebuilt when its target changes). */
|
|
async mirror() {
|
|
const m = syncableMirror(this.settings.mirror);
|
|
if (!m) return null;
|
|
const sig = JSON.stringify(m);
|
|
if (!this.mirrorHost || this.mirrorHost.sig !== sig) {
|
|
const host = new MirrorHost(this, m);
|
|
await host.loadState();
|
|
this.mirrorHost = { sig, host };
|
|
}
|
|
return this.mirrorHost.host;
|
|
}
|
|
/** The mirror's last result, for the status panel (null when no mirror ran yet). */
|
|
mirrorStatus() {
|
|
const m = this.settings.mirror;
|
|
const h = this.mirrorHost?.host;
|
|
if (!m?.enabled || !isKnownProvider(m.provider)) return null;
|
|
return { label: `${HOSTS[m.provider].label} ${m.owner}/${m.repo}`, lastSync: h?.lastSync ?? 0, lastError: h?.lastError ?? null };
|
|
}
|
|
/** Uploads this vault to the backup mirror (push only). Returns an error message, or null. */
|
|
async syncMirror(guardKept = []) {
|
|
const h = await this.mirror();
|
|
if (!h || this.settings.mode === "pull") return null;
|
|
try {
|
|
const r = await h.engine.run("push", guardKept.length ? { defer: new Set(guardKept) } : {});
|
|
const fp = this.encLayer?.id ?? "";
|
|
const key2 = `mirrorPlainGone:${h.target.provider}:${h.target.owner}/${h.target.repo}`;
|
|
if (fp && this.localGet(key2) !== fp) {
|
|
await h.engine.removeUnencryptedFiles(async () => true);
|
|
this.localSet(key2, fp);
|
|
}
|
|
h.lastError = null;
|
|
h.lastSync = Date.now();
|
|
if (!r.upToDate) h.log(`Mirrored: \u2191${r.uploaded.length} \u2715${r.deletedRemote.length}`);
|
|
return null;
|
|
} catch (e) {
|
|
if (e instanceof SyncCancelled) return null;
|
|
h.lastError = localizeError(e);
|
|
h.log(`Mirror failed: ${errMsg(e)}`);
|
|
return localizeError(e);
|
|
}
|
|
}
|
|
async syncShared(mode) {
|
|
const errors = [];
|
|
for (const h of await this.sharedHosts()) {
|
|
if (!h.activeOnThisDevice()) continue;
|
|
try {
|
|
const r = await h.engine.run(mode);
|
|
h.lastError = null;
|
|
h.lastSync = Date.now();
|
|
if (!r.upToDate) h.log(`Synced: \u2193${r.downloaded.length} \u2191${r.uploaded.length} merged ${r.merged.length}`);
|
|
for (const url of r.pullRequests ?? []) this.notify(t("m.prOpened", { folder: h.def.folder, url }), true);
|
|
} catch (e) {
|
|
if (e instanceof SyncCancelled) continue;
|
|
h.lastError = localizeError(e);
|
|
h.log(`Sync failed: ${errMsg(e)}`);
|
|
errors.push(`${h.def.folder}: ${localizeError(e)}`);
|
|
}
|
|
}
|
|
return errors;
|
|
}
|
|
codec(enc = this.encLayer) {
|
|
const lfs = new LfsLayer(this.gh, (this.settings.lfsThresholdMB ?? 0) * 1024 * 1024, void 0, this.lfsPatterns);
|
|
const layers = enc ? [enc, lfs] : [lfs];
|
|
const sub = normalizeSubdir(this.settings.repoSubdir);
|
|
if (sub) layers.push(new RepoSubdirLayer(sub));
|
|
return new Codec(layers);
|
|
}
|
|
/**
|
|
* Number of files already in the repository at `subdir` ("" = the whole repository), for the warning
|
|
* shown before changing "Folder in the repository". null when the repository can't be read.
|
|
*/
|
|
async repoFolderFileCount(subdir) {
|
|
try {
|
|
const head = await this.gh.getRef(this.settings.branch);
|
|
if (!head) return 0;
|
|
const sub = normalizeSubdir(subdir);
|
|
const prefix = sub ? sub + "/" : "";
|
|
let n = 0;
|
|
for (const e of await this.gh.listTree(await this.gh.getCommitTree(head))) {
|
|
if (e.type !== "blob" || !e.path.startsWith(prefix)) continue;
|
|
const rel = e.path.slice(prefix.length);
|
|
if (rel === ".gitattributes" || rel.startsWith(".vault-sync/")) continue;
|
|
n++;
|
|
}
|
|
return n;
|
|
} catch {
|
|
return null;
|
|
}
|
|
}
|
|
progress(text) {
|
|
this.onProgress?.(text);
|
|
this.statusEl?.setAttr("aria-label", text);
|
|
this.ribbonEl?.setAttr("aria-label", `${t("ribbon.sync")}: ${text}`);
|
|
}
|
|
openWizard(start) {
|
|
new SetupWizard(this.app, this, start).open();
|
|
}
|
|
// ---------------- add a device (setup link) ----------------
|
|
openSetupLink() {
|
|
if (!this.isConfigured()) return void new import_obsidian22.Notice(this.configProblem() ?? t("m.needRepo"));
|
|
new CreateSetupLinkModal(this.app, this).open();
|
|
}
|
|
/** Applies a confirmed setup link to this vault, then continues in the setup wizard. */
|
|
async applySetupPayload(s, token) {
|
|
this.settings.provider = s.provider;
|
|
this.setApiBase(s.api ?? HOSTS[s.provider].defaultApi);
|
|
this.settings.owner = s.owner;
|
|
this.settings.repo = s.repo;
|
|
this.settings.branch = s.branch;
|
|
if (s.syncConfigDir !== void 0) this.settings.syncConfigDir = s.syncConfigDir;
|
|
if (s.configSync) this.settings.configSync = normalizeConfigSync(s.configSync);
|
|
if (s.syncHidden !== void 0) this.settings.syncHidden = s.syncHidden;
|
|
if (s.useGitignore !== void 0) this.settings.useGitignore = s.useGitignore;
|
|
if (s.exclude !== void 0) this.settings.excludePatterns = s.exclude;
|
|
this.settings.repoSubdir = normalizeSubdir(s.subdir);
|
|
this.settings.wizardShown = true;
|
|
if (token) this.setToken(token);
|
|
await this.saveSettings();
|
|
this.log(`Setup link applied: ${s.provider} ${s.owner}/${s.repo} (${s.branch}).`);
|
|
this.openWizard(this.getToken() ? "vault" : void 0);
|
|
}
|
|
/** First sync from the setup wizard. Returns a one-line summary. */
|
|
async firstSync(prefer) {
|
|
for (let i = 0; this.syncing && i < 600; i++) await sleep(500);
|
|
this.lastError = null;
|
|
this.lastErrorCause = null;
|
|
this.lastReport = null;
|
|
await this.sync("manual", this.settings.mode, prefer ? { firstSyncPrefer: prefer } : { firstSyncPrefer: void 0 });
|
|
const err = this.lastError;
|
|
if (err) return t("m.firstFailed", { error: this.errorText(this.lastErrorCause ?? err) });
|
|
const r = this.lastReport;
|
|
if (!r) return t("m.syncFinished");
|
|
if (r.upToDate) return t("m.alreadyInSync");
|
|
const parts = [
|
|
r.downloaded.length && t("m.nDownloaded", { n: r.downloaded.length }),
|
|
r.uploaded.length && t("m.nUploaded", { n: r.uploaded.length }),
|
|
r.conflictCopies.length && t("m.nBoth", { n: r.conflictCopies.length }),
|
|
r.skipped.length && t("m.nSkipped", { n: r.skipped.length })
|
|
].filter(Boolean);
|
|
return t("m.firstDone", { summary: parts.join(", ") || t("m.noChanges") });
|
|
}
|
|
async freeUpSpace() {
|
|
if (!this.isConfigured()) return void new import_obsidian22.Notice(this.configProblem());
|
|
if (!this.beginExclusive()) return;
|
|
try {
|
|
await this.freeUpSpaceInner();
|
|
} finally {
|
|
this.endExclusive();
|
|
}
|
|
}
|
|
async freeUpSpaceInner() {
|
|
try {
|
|
await this.loadGitignore();
|
|
const plan = await this.engine.freeUpSpace(
|
|
(p) => confirmPlan(
|
|
this.app,
|
|
t("cmd.freeSpace"),
|
|
t("m.freeBody", { n: p.files.length, mb: (p.bytes / 1048576).toFixed(1) }),
|
|
[{ title: t("m.removeHere"), items: p.files }],
|
|
t("s.freeSpace")
|
|
)
|
|
);
|
|
if (!plan.files.length) new import_obsidian22.Notice(t("m.freeNothing"));
|
|
else new import_obsidian22.Notice(t("m.freed", { mb: (plan.bytes / 1048576).toFixed(1) }));
|
|
} catch (e) {
|
|
if (!(e instanceof SyncCancelled)) new import_obsidian22.Notice(t("m.freeFailed", { error: this.errorText(e) }));
|
|
}
|
|
this.refreshHealth();
|
|
}
|
|
// ---------------- persistence ----------------
|
|
async loadSettings() {
|
|
const saved = await this.loadData();
|
|
const next = Object.assign({}, DEFAULT_SETTINGS, saved);
|
|
next.configSync = normalizeConfigSync(saved?.configSync);
|
|
if (this.settings) {
|
|
const cur = this.settings;
|
|
for (const k of Object.keys(cur)) if (!(k in next)) delete cur[k];
|
|
Object.assign(this.settings, next);
|
|
} else this.settings = next;
|
|
this.handleRemovedHosts();
|
|
}
|
|
/**
|
|
* Gitee and Azure DevOps were removed in 1.4.0. Settings that still use them pause instead of switching
|
|
* host (which could push the vault to another repository); files are never touched. One notice per device.
|
|
*/
|
|
handleRemovedHosts() {
|
|
const r = dropRemovedHosts(this.settings);
|
|
if (r.main) this.log(`Host "${r.main.provider}" is no longer supported (${r.main.owner}/${r.main.repo}): sync paused until another host is set up.`);
|
|
if (r.mirror) this.log(`Backup mirror host "${r.mirror.provider}" is no longer supported (${r.mirror.owner}/${r.mirror.repo}): mirror turned off.`);
|
|
for (const f of r.shared) this.log(`Shared folder ${f}: its host is no longer supported; it is skipped.`);
|
|
const kind = removedHostNotice(r, this.settings);
|
|
if (!kind) return;
|
|
try {
|
|
if (this.localGet(`removedHostNotice:${kind}`)) return;
|
|
this.localSet(`removedHostNotice:${kind}`, "1");
|
|
} catch {
|
|
}
|
|
new import_obsidian22.Notice(t(kind === "main" ? "m.hostRemoved" : "m.hostRemovedOther"), 0);
|
|
}
|
|
async saveSettings() {
|
|
if (this.settings.removedHost && this.settings.owner && this.settings.repo) delete this.settings.removedHost;
|
|
await this.saveData(this.settings);
|
|
this.fullScanNeeded = true;
|
|
}
|
|
/** Random id for this device and vault, kept in device-local storage. */
|
|
deviceId() {
|
|
let id = this.localGet("deviceId");
|
|
if (!id) {
|
|
id = Array.from(crypto.getRandomValues(new Uint8Array(8)), (b) => b.toString(16).padStart(2, "0")).join("");
|
|
this.localSet("deviceId", id);
|
|
}
|
|
return id;
|
|
}
|
|
async loadState() {
|
|
this.state = await readState(this.app.vault.adapter, this.stateFilePath, this.deviceId(), (m) => this.log(m));
|
|
}
|
|
async saveState() {
|
|
await writeState(this.app.vault.adapter, this.stateFilePath, this.state, this.deviceId());
|
|
}
|
|
/** Forgets what was last synced on this device. Returns false (with a notice) while a sync runs. */
|
|
async resetState() {
|
|
if (this.syncing) {
|
|
new import_obsidian22.Notice(t("notice.busy"));
|
|
return false;
|
|
}
|
|
this.state = { ...emptyState(), deviceId: this.deviceId() };
|
|
this.fullScanNeeded = true;
|
|
await this.saveState();
|
|
this.log("Sync state reset by user.");
|
|
return true;
|
|
}
|
|
// ---------------- change tracking (SyncHost) ----------------
|
|
localChanges() {
|
|
this.dirtySnapshot = new Map(this.dirty);
|
|
return { full: this.fullScanNeeded, paths: new Set(this.dirty.keys()) };
|
|
}
|
|
markLocalChangesSynced(covered) {
|
|
if (covered.full) this.fullScanNeeded = false;
|
|
for (const [p, seq] of this.dirtySnapshot) {
|
|
if (covered.paths.has(p) && this.dirty.get(p) === seq) this.dirty.delete(p);
|
|
}
|
|
}
|
|
/** Files changed on this device since the last sync (stat comparison plus vault-event flags). */
|
|
pendingLocalCount() {
|
|
return this.pendingLocalPaths().size;
|
|
}
|
|
/** Files edited on this device since the last sync (cheap: cached stats and vault events). */
|
|
pendingLocalPaths() {
|
|
const pending = new Set(this.engine.quickLocalPending());
|
|
for (const p of this.dirty.keys()) pending.add(p);
|
|
return pending;
|
|
}
|
|
// ---------------- triggers ----------------
|
|
rescheduleTriggers() {
|
|
this.onChangeDebounced?.cancel();
|
|
this.onChangeDebounced = (0, import_obsidian22.debounce)(() => this.sync("change"), this.settings.changeDebounceSec * 1e3, true);
|
|
if (this.intervalId !== null) window.clearInterval(this.intervalId);
|
|
this.intervalId = null;
|
|
this.nextIntervalAt = 0;
|
|
if (this.settings.intervalMin > 0 && !this.batterySaver()) {
|
|
const ms = this.settings.intervalMin * 6e4;
|
|
this.nextIntervalAt = Date.now() + ms;
|
|
this.intervalId = window.setInterval(() => {
|
|
this.nextIntervalAt = Date.now() + ms;
|
|
void this.sync("interval");
|
|
}, ms);
|
|
this.registerInterval(this.intervalId);
|
|
}
|
|
}
|
|
nextScheduledSync() {
|
|
return this.nextIntervalAt;
|
|
}
|
|
/** The next manual sync uses this as its commit message ("Sync with a custom message…"). */
|
|
setCustomCommitMessage(text) {
|
|
this.customCommitMessage = { text, at: Date.now() };
|
|
}
|
|
commitContext() {
|
|
return this.syncContext;
|
|
}
|
|
/** Notes marked `sync: false` (see sync-extras.ts); recomputed at most every 2 seconds. */
|
|
frontmatterScope() {
|
|
if (!this.settings.respectFrontmatter) return null;
|
|
if (!this.fmCache || Date.now() - this.fmCache.at > 2e3) this.fmCache = { at: Date.now(), value: frontmatterScope(this.app) };
|
|
return this.fmCache.value;
|
|
}
|
|
/** Whether a vault path syncs on this device (the main repository or a shared folder). */
|
|
syncedPathTest() {
|
|
const main = this.engine.buildScope();
|
|
const shared = (this.settings.sharedFolders ?? []).filter((f) => f.enabled && f.folder).map((f) => f.folder.replace(/^\/+|\/+$/g, "") + "/");
|
|
if (!shared.length) return main;
|
|
const userExcluded = compileGlobs(this.settings.excludePatterns.split("\n").map((l) => l.split("{config}").join(this.app.vault.configDir)));
|
|
return (p) => main(p) || shared.some((f) => p.startsWith(f)) && !userExcluded(p);
|
|
}
|
|
/** Everything the explorer's greyed-out rows depend on; they are recomputed only when this changes. */
|
|
explorerScopeKey() {
|
|
const fm = this.frontmatterScope();
|
|
return [
|
|
this.vaultShapeGen,
|
|
JSON.stringify(this.settings),
|
|
JSON.stringify(this.deviceScope()),
|
|
this.gitignorePatterns().join("\n"),
|
|
fm ? `${[...fm.out].sort().join("\n")}${[...fm.unknown].sort().join("\n")}` : ""
|
|
].join("\0");
|
|
}
|
|
isPathSynced(path) {
|
|
return this.syncedPathTest()(path);
|
|
}
|
|
// ---------------- logging / UI ----------------
|
|
log(msg) {
|
|
const line = `${stamp()} ${msg}`;
|
|
this.logLines.push(line);
|
|
if (this.logLines.length > 300) this.logLines.shift();
|
|
}
|
|
notify(msg, important = false, changedFiles = false) {
|
|
let lvl = this.settings.noticeLevel;
|
|
if (lvl === "auto") lvl = import_obsidian22.Platform.isMobile ? "changes" : "errors";
|
|
const show = lvl === "all" || important && lvl !== "silent" || lvl === "changes" && changedFiles;
|
|
if (show) new import_obsidian22.Notice(msg, important ? 8e3 : 4e3);
|
|
}
|
|
setStatus(status, detail = "") {
|
|
this.refreshBadges();
|
|
this.baseStatus = status;
|
|
this.baseDetail = detail;
|
|
this.renderStatus();
|
|
this.refreshHealth();
|
|
}
|
|
/** Draws the status bar and ribbon from the last status, the pause state and the pending edits. */
|
|
renderStatus() {
|
|
let status = this.baseStatus;
|
|
let detail = this.baseDetail;
|
|
if (this.isPaused() && status !== "syncing" && status !== "error") {
|
|
if (status !== "paused") detail = detail ? `${t("m.pausedStatus")} \xB7 ${detail}` : t("m.pausedStatus");
|
|
status = "paused";
|
|
} else if (status === "paused") {
|
|
status = "idle";
|
|
detail = "";
|
|
}
|
|
this.schedulePauseEnd();
|
|
const icons = {
|
|
idle: "cloud",
|
|
syncing: "refresh-cw",
|
|
ok: "cloud",
|
|
error: "cloud-off",
|
|
offline: "wifi-off",
|
|
conflict: "alert-triangle",
|
|
paused: "pause-circle"
|
|
};
|
|
const last = this.state?.lastSync ? t("h.lastSync", { ago: new Date(this.state.lastSync).toLocaleTimeString() }) : t("health.notSynced");
|
|
const title = detail || (status === "syncing" ? t("health.syncing") : last);
|
|
if (this.statusEl) {
|
|
this.statusEl.empty();
|
|
const icon = this.statusEl.createSpan({ cls: `vsg-icon vsg-${status}` });
|
|
(0, import_obsidian22.setIcon)(icon, icons[status]);
|
|
const pending = status === "syncing" || !this.engine ? 0 : this.pendingLocalCount();
|
|
if (pending) this.statusEl.createSpan({ cls: "vsg-pending", text: String(pending) });
|
|
this.statusEl.setAttr("aria-label", t("m.statusTip", { title }));
|
|
this.statusEl.setAttr("data-tooltip-position", "top");
|
|
}
|
|
this.ribbonEl?.toggleClass("vsg-spinning", status === "syncing");
|
|
this.ribbonEl?.setAttr("aria-label", `${t("ribbon.sync")}: ${title}`);
|
|
}
|
|
clearPauseTimer() {
|
|
if (this.pauseTimer !== null) window.clearTimeout(this.pauseTimer);
|
|
this.pauseTimer = null;
|
|
}
|
|
/** Redraws the status when a timed pause ends, so the paused icon doesn't linger. */
|
|
schedulePauseEnd() {
|
|
this.clearPauseTimer();
|
|
const until = this.pausedUntil();
|
|
if (!until || until === Infinity || this.unloaded) return;
|
|
this.pauseTimer = window.setTimeout(
|
|
() => {
|
|
this.pauseTimer = null;
|
|
if (!this.unloaded) this.renderStatus();
|
|
},
|
|
Math.min(until - Date.now() + 500, 2e9)
|
|
);
|
|
}
|
|
/**
|
|
* Restore, reset, overwrite, free up space and similar run with sync blocked. Edits made meanwhile are
|
|
* parked like during a sync; endExclusive() puts them back into change tracking and syncs if needed.
|
|
*/
|
|
beginExclusive() {
|
|
if (this.syncing) {
|
|
new import_obsidian22.Notice(t("notice.busy"));
|
|
return false;
|
|
}
|
|
this.syncing = true;
|
|
this.changedDuringSync = false;
|
|
this.touchedDuringSync.clear();
|
|
this.onChangeDebounced?.cancel();
|
|
return true;
|
|
}
|
|
endExclusive() {
|
|
this.syncing = false;
|
|
for (const p of this.touchedDuringSync) this.dirty.set(p, ++this.dirtySeq);
|
|
this.touchedDuringSync.clear();
|
|
const q = this.queued;
|
|
this.queued = null;
|
|
if (q) window.setTimeout(() => void this.sync(q.manual ? "manual" : "change", q.mode, q.opts), 500);
|
|
else if (this.changedDuringSync) this.onChangeDebounced?.();
|
|
this.changedDuringSync = false;
|
|
this.refreshBadges();
|
|
this.pendingTimer?.();
|
|
}
|
|
refreshHealth(withRemote = false) {
|
|
this.settingTab?.refreshIfHidden();
|
|
for (const leaf of this.app.workspace.getLeavesOfType(HEALTH_VIEW)) {
|
|
const v = leaf.view;
|
|
if (v instanceof HealthView) v.refresh(withRemote);
|
|
}
|
|
if (withRemote) {
|
|
for (const leaf of this.app.workspace.getLeavesOfType(HISTORY_VIEW)) {
|
|
const v = leaf.view;
|
|
if (v instanceof HistoryView) v.refreshIfChanged();
|
|
}
|
|
}
|
|
}
|
|
askConflict(info) {
|
|
return new Promise((resolve) => new ConflictModal(this.app, info, resolve).open());
|
|
}
|
|
confirmDeletes(local, remote) {
|
|
return new Promise((resolve) => new DeleteGuardModal(this.app, local, remote, resolve).open());
|
|
}
|
|
isConfigured() {
|
|
return !this.configProblem();
|
|
}
|
|
isSyncing() {
|
|
return this.syncing;
|
|
}
|
|
openSettings() {
|
|
const setting = this.app.setting;
|
|
setting?.open();
|
|
setting?.openTabById(this.manifest.id);
|
|
}
|
|
openLog() {
|
|
new LogModal(this.app, this.logLines).open();
|
|
}
|
|
async openHealth() {
|
|
const existing = this.app.workspace.getLeavesOfType(HEALTH_VIEW)[0];
|
|
const leaf = existing ?? this.app.workspace.getRightLeaf(false);
|
|
if (!leaf) return;
|
|
if (!existing) await leaf.setViewState({ type: HEALTH_VIEW, active: true });
|
|
await this.app.workspace.revealLeaf(leaf);
|
|
}
|
|
// ---------------- sync ----------------
|
|
configProblem() {
|
|
if (mainSyncBlocked(this.settings)) return t("m.hostRemoved");
|
|
if (!this.getToken()) return t("m.needToken");
|
|
if (!this.settings.owner || !this.settings.repo) return t("m.needRepo");
|
|
return null;
|
|
}
|
|
async sync(trigger, mode = this.settings.mode, opts = {}) {
|
|
if (this.unloaded) return;
|
|
if (this.wizardOpen && !("firstSyncPrefer" in opts)) return;
|
|
if (trigger !== "manual" && trigger !== "close" && this.isPaused()) return void this.setStatus("paused", t("m.pausedStatus"));
|
|
if (this.batterySaver() && (trigger === "change" || trigger === "interval" || trigger === "open" || trigger === "background")) return;
|
|
if (this.usingSignIn() && navigator.onLine) await this.ensureFreshToken();
|
|
await this.repairSelfEnabled();
|
|
const problem = this.configProblem();
|
|
if (problem) {
|
|
if (trigger === "manual" || trigger === "close") new import_obsidian22.Notice(problem);
|
|
return;
|
|
}
|
|
if (trigger === "manual" && this.settings.reviewBeforeManualSync && !Object.keys(opts).length && mode === this.settings.mode) {
|
|
return this.openReview();
|
|
}
|
|
if (trigger !== "manual" && !navigator.onLine) {
|
|
this.setStatus("offline", t("m.offline"));
|
|
return;
|
|
}
|
|
if (this.syncing) {
|
|
const q = this.queued;
|
|
const qHasChoices = !!q && Object.keys(q.opts).length > 0;
|
|
if (!q || !qHasChoices && (trigger === "manual" || !q.manual)) this.queued = { mode, opts, manual: trigger === "manual" };
|
|
if (trigger === "manual") new import_obsidian22.Notice(t("m.queued"));
|
|
return;
|
|
}
|
|
this.syncing = true;
|
|
await this.loadGitignore();
|
|
await this.loadGitattributes();
|
|
this.changedDuringSync = false;
|
|
this.touchedDuringSync.clear();
|
|
this.onChangeDebounced?.cancel();
|
|
this.setStatus("syncing");
|
|
const started = Date.now();
|
|
let written = /* @__PURE__ */ new Set();
|
|
const typed = this.customCommitMessage;
|
|
this.customCommitMessage = null;
|
|
this.syncContext = { trigger, message: typed && trigger === "manual" && Date.now() - typed.at < 10 * 6e4 ? typed.text : null };
|
|
const event = { trigger, mode, upToDate: false, uploaded: 0, downloaded: 0, deleted: 0, conflicts: 0 };
|
|
emitSyncEvent(this.app, SYNC_START_EVENT, { trigger, mode });
|
|
try {
|
|
const r = await this.engine.run(mode, opts);
|
|
Object.assign(event, { upToDate: r.upToDate, uploaded: r.uploaded.length, downloaded: r.downloaded.length, deleted: r.deletedLocal.length + r.deletedRemote.length, conflicts: r.conflictCopies.length });
|
|
if (r.errors.length) event.error = redactSecrets(r.errors[0] ?? "");
|
|
const sharedErrors = opts.defer || opts.only || opts.firstSyncPrefer ? [] : await this.syncShared(mode);
|
|
if (sharedErrors.length) this.notify(`${t("m.sharedFailed")}
|
|
${sharedErrors.join("\n")}`, true);
|
|
const mirrorError = opts.defer || opts.only || opts.firstSyncPrefer ? null : await this.syncMirror(r.guardKept ?? []);
|
|
if (mirrorError) this.notify(t("m.mirrorFailed", { error: mirrorError }), true);
|
|
const problems = syncProblems({ errors: r.errors, sharedErrors, mirrorError });
|
|
this.syncOutcome = { seq: ++this.syncOutcomeSeq, ok: !problems.length, problems };
|
|
const cfgDir = this.app.vault.configDir;
|
|
const updated = r.downloaded.map((p) => new RegExp(`^${cfgDir.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}/plugins/([^/]+)/manifest\\.json$`).exec(p)?.[1]).filter((x) => !!x);
|
|
if (updated.length) {
|
|
const pend = new Set((this.localGet("pluginUpdatesPending") ?? "").split("\n").filter(Boolean));
|
|
for (const id of updated) pend.add(id);
|
|
this.localSet("pluginUpdatesPending", [...pend].join("\n"));
|
|
}
|
|
if (r.downloaded.length || trigger === "startup" || trigger === "manual") void this.offerPluginInstalls().catch((e) => this.log(`Plugin check failed: ${errMsg(e)}`));
|
|
written = /* @__PURE__ */ new Set([...r.downloaded, ...r.merged, ...r.conflictCopies, ...r.deletedLocal]);
|
|
for (const line of r.renamed) {
|
|
const m = /^(.+?) → (.+?)(?: \(.*\))?$/.exec(line);
|
|
if (m) for (const p of [m[1], m[2]]) written.add(p);
|
|
}
|
|
const now = Date.now();
|
|
for (const p of written) this.writtenBySync.set(p, now);
|
|
this.lastReport = r;
|
|
this.lastError = null;
|
|
this.lastErrorCause = null;
|
|
this.afterSync(r, trigger, Date.now() - started);
|
|
this.lastFailed = false;
|
|
await this.maybeDailySnapshot();
|
|
} catch (e) {
|
|
event.error = redactSecrets(errMsg(e));
|
|
this.syncOutcome = { seq: ++this.syncOutcomeSeq, ok: false, problems: [this.errorText(e)] };
|
|
if (e instanceof SyncCancelled) {
|
|
this.log(e.message);
|
|
this.setStatus("idle", this.errorText(e));
|
|
} else if (e instanceof EncryptionUpgraded) {
|
|
this.log(this.errorText(e));
|
|
new import_obsidian22.Notice(this.errorText(e), 8e3);
|
|
this.setStatus("idle");
|
|
window.setTimeout(() => void this.sync(trigger), 1e3);
|
|
} else {
|
|
this.lastError = errMsg(e);
|
|
this.lastErrorCause = e;
|
|
this.lastErrorAt = Date.now();
|
|
this.log(`Sync failed: ${errMsg(e)}`);
|
|
this.setStatus("error", t("notice.failed", { error: this.errorText(e) }));
|
|
if (trigger === "manual") new import_obsidian22.Notice(t("notice.failed", { error: this.errorText(e) }), 8e3);
|
|
else if (!this.lastFailed) this.notify(t("notice.failed", { error: this.errorText(e) }), true);
|
|
this.lastFailed = true;
|
|
}
|
|
} finally {
|
|
this.syncing = false;
|
|
this.syncContext = { trigger: "manual", message: null };
|
|
emitSyncEvent(this.app, SYNC_DONE_EVENT, event);
|
|
this.updateStatusExtras();
|
|
this.changeMarkers?.refresh();
|
|
this.settingTab?.refreshIfHidden();
|
|
for (const p of this.touchedDuringSync) if (!written.has(p)) this.dirty.set(p, ++this.dirtySeq);
|
|
this.touchedDuringSync.clear();
|
|
for (const [p, t2] of this.writtenBySync) if (Date.now() - t2 > 6e4) this.writtenBySync.delete(p);
|
|
const q = this.queued;
|
|
this.queued = null;
|
|
if (q) window.setTimeout(() => void this.sync(q.manual ? "manual" : "change", q.mode, q.opts), 500);
|
|
else if (this.changedDuringSync) this.onChangeDebounced?.();
|
|
this.changedDuringSync = false;
|
|
this.refreshHealth(true);
|
|
}
|
|
}
|
|
afterSync(r, trigger, ms) {
|
|
this.warnTokenExpiry();
|
|
this.remoteAhead = false;
|
|
this.ribbonEl?.removeClass("vsg-remote-ahead");
|
|
this.statusEl?.removeClass("vsg-remote-ahead");
|
|
if (r.upToDate) {
|
|
this.log(`Up to date (${trigger}).`);
|
|
this.setStatus(this.conflictCopies().length ? "conflict" : "ok");
|
|
if (trigger === "manual") this.notify(t("notice.upToDate"));
|
|
return;
|
|
}
|
|
const parts = [];
|
|
if (r.downloaded.length) parts.push(`\u2193${r.downloaded.length}`);
|
|
if (r.uploaded.length) parts.push(`\u2191${r.uploaded.length}`);
|
|
if (r.deletedLocal.length + r.deletedRemote.length) parts.push(`\u2715${r.deletedLocal.length + r.deletedRemote.length}`);
|
|
if (r.merged.length) parts.push(t("m.mergedN", { n: r.merged.length }));
|
|
const summary = parts.join(" ") || t("m.noChanges");
|
|
this.log(`Sync done (${trigger}, ${r.mode}, ${ms} ms): ${summary}`);
|
|
for (const s of r.skipped) this.log(`Skipped ${s}`);
|
|
for (const url of r.pullRequests ?? []) this.notify(t("m.prOpened", { folder: this.app.vault.getName(), url }), true);
|
|
if (r.errors.length) {
|
|
this.setStatus("error", t("m.filesFailed", { n: r.errors.length }));
|
|
this.notify(t("notice.errors", { n: r.errors.length }), true);
|
|
} else if (r.conflictCopies.length) {
|
|
this.setStatus("conflict", t("m.copiesCreated", { n: r.conflictCopies.length }));
|
|
this.notify(t("notice.conflicts", { n: r.conflictCopies.length }), true);
|
|
} else {
|
|
this.setStatus("ok");
|
|
this.notify(t("notice.synced", { summary }), false, parts.length > 0);
|
|
}
|
|
}
|
|
async maybeDailySnapshot() {
|
|
if (!this.settings.dailySnapshot || this.settings.mode === "pull") return;
|
|
if (Date.now() - this.state.lastSnapshot < 24 * 36e5) return;
|
|
await this.snapshot(false);
|
|
}
|
|
async snapshot(manual) {
|
|
try {
|
|
const head = this.state.head ?? await this.gh.getRef(this.settings.branch);
|
|
if (!head) throw new Error(t("m.nothingToSnapshot"));
|
|
const d = /* @__PURE__ */ new Date();
|
|
const p = (n) => String(n).padStart(2, "0");
|
|
const tag = `snapshot-${d.getFullYear()}${p(d.getMonth() + 1)}${p(d.getDate())}-${p(d.getHours())}${p(d.getMinutes())}${p(d.getSeconds())}`;
|
|
await this.gh.createRef(`refs/tags/${tag}`, head);
|
|
this.state.lastSnapshot = Date.now();
|
|
await this.saveState();
|
|
this.log(`Created snapshot tag ${tag} at ${head.slice(0, 7)}.`);
|
|
if (manual) new import_obsidian22.Notice(t("m.snapshotOk", { tag }));
|
|
} catch (e) {
|
|
this.log(`Snapshot failed: ${errMsg(e)}`);
|
|
if (manual) new import_obsidian22.Notice(t("m.snapshotFailed", { error: this.errorText(e) }));
|
|
}
|
|
}
|
|
// ---------------- review / diff ----------------
|
|
async textOf(path, data) {
|
|
if (!data) return { text: "", size: 0 };
|
|
return { text: asText(path, data), size: data.byteLength };
|
|
}
|
|
async openReview(previewOnly = false) {
|
|
const problem = this.configProblem();
|
|
if (problem) return void new import_obsidian22.Notice(problem);
|
|
if (this.syncing) return void new import_obsidian22.Notice(t("notice.busy"));
|
|
try {
|
|
await this.loadGitignore();
|
|
const pv = await this.engine.preview(this.settings.mode);
|
|
const blobOf = (path, sha) => sha ? this.engine.readBlob(path, sha) : Promise.resolve(null);
|
|
const local = async (p) => await this.app.vault.adapter.exists(p) ? this.engine.readLocal(p) : null;
|
|
const loadDiff = async (d) => {
|
|
const remoteSha = pv.remoteShas.get(d.path);
|
|
let oldData;
|
|
let newData;
|
|
const H = this.hostLabel();
|
|
let oldLabel = H;
|
|
let newLabel = t("u.thisDevice");
|
|
if (d.kind === "move-local") {
|
|
oldData = await local(d.from);
|
|
newData = await blobOf(d.path, remoteSha);
|
|
oldLabel = `${t("u.thisDevice")} (${d.from})`;
|
|
newLabel = `${H} (${d.path})`;
|
|
} else if (d.kind === "adopt-remote-edit") {
|
|
oldData = await local(d.path);
|
|
newData = await blobOf(d.path, d.sha);
|
|
oldLabel = `${t("u.thisDevice")} (${d.path})`;
|
|
newLabel = `${H} (${d.from})`;
|
|
} else if (d.kind === "download" || d.kind === "delete-local") {
|
|
oldData = await local(d.path);
|
|
newData = await blobOf(d.path, remoteSha);
|
|
oldLabel = t("u.thisDevice");
|
|
newLabel = H;
|
|
} else {
|
|
oldData = await blobOf(d.path, remoteSha);
|
|
newData = await local(d.path);
|
|
}
|
|
const o = await this.textOf(d.path, oldData);
|
|
const n = await this.textOf(d.path, newData);
|
|
return { oldLabel, newLabel, oldText: o.text, newText: n.text, oldSize: o.size, newSize: n.size };
|
|
};
|
|
new ReviewModal(this.app, pv.decisions, skippedLines(pv.skipped, pv.skipNotes), loadDiff, previewOnly ? null : (deferred) => void this.sync("manual", this.settings.mode, { defer: deferred })).open();
|
|
} catch (e) {
|
|
new import_obsidian22.Notice(t("m.reviewFailed", { error: this.errorText(e) }));
|
|
}
|
|
}
|
|
async compareWithGitHub(file) {
|
|
let differs = false;
|
|
new DiffModal(
|
|
this.app,
|
|
`${file.path}: ${this.hostLabel()} \u2192 ${t("u.thisDevice")}`,
|
|
async () => {
|
|
const shared = (await this.sharedHosts()).find((h2) => file.path.startsWith(h2.def.folder.replace(/\/+$/, "") + "/"));
|
|
const h = shared ?? { gh: this.gh, settings: this.settings, engine: this.engine };
|
|
const head = await h.gh.getRef(h.settings.branch);
|
|
const remote = head ? await h.engine.readRemoteFile(file.path, head) : null;
|
|
const localData = await this.app.vault.readBinary(file);
|
|
const [a, b] = [new Uint8Array(remote ?? new ArrayBuffer(0)), new Uint8Array(localData)];
|
|
differs = !!remote && (a.length !== b.length || !a.every((x, i) => x === b[i]));
|
|
const o = await this.textOf(file.path, remote);
|
|
const n = await this.textOf(file.path, localData);
|
|
return { oldLabel: remote ? this.hostLabel() : t("m.notThere", { host: this.hostLabel() }), newLabel: t("u.thisDevice"), oldText: o.text, newText: n.text, oldSize: o.size, newSize: n.size };
|
|
},
|
|
() => differs ? [{ label: t("repo.use"), warning: true, run: () => void this.useRepositoryVersion(file.path) }] : []
|
|
).open();
|
|
}
|
|
/**
|
|
* Replaces one local file with the repository's latest version, after a confirmation. The local
|
|
* version goes to the recoverable trash first; the next sync then finds the file equal to the
|
|
* repository and uploads nothing. Refused while a sync (or restore, reset…) runs.
|
|
*/
|
|
async useRepositoryVersion(path) {
|
|
const problem = this.configProblem();
|
|
if (problem) return void new import_obsidian22.Notice(problem);
|
|
if (this.syncing) return void new import_obsidian22.Notice(t("notice.busy"));
|
|
const shared = (await this.sharedHosts()).find((h) => path.startsWith(h.def.folder.replace(/\/+$/, "") + "/"));
|
|
if (!shared && await this.needsUnlock()) return;
|
|
const host = shared ? shared.gh.label : this.hostLabel();
|
|
if (!await confirmPlan(this.app, t("repo.use"), t("repo.useBody", { path, host }), [], t("repo.use"), true)) return;
|
|
if (!this.beginExclusive()) return;
|
|
try {
|
|
const engine = shared ? shared.engine : this.engine;
|
|
const head = shared ? await shared.gh.getRef(shared.def.branch || "main") : await this.gh.getRef(this.settings.branch);
|
|
const remote = head ? await engine.readRemoteFile(path, head) : null;
|
|
const r = await replaceWithRepositoryVersion(this.io, path, remote);
|
|
if (r.kind === "replaced") this.forgetTempCopy(r.trashedAs);
|
|
if (r.kind === "replaced") this.log(`Used the repository version of ${path}; the local version is in the trash as ${r.trashedAs}`);
|
|
new import_obsidian22.Notice(
|
|
r.kind === "replaced" ? t("repo.used", { path, host, copy: r.trashedAs.split("/").pop() ?? r.trashedAs }) : r.kind === "restored" ? t("repo.restored", { path, host }) : r.kind === "same" ? t("repo.same", { path, host }) : t("repo.missing", { path, host }),
|
|
8e3
|
|
);
|
|
} catch (e) {
|
|
new import_obsidian22.Notice(t("repo.failed", { error: this.errorText(e) }), 8e3);
|
|
} finally {
|
|
this.endExclusive();
|
|
this.refreshHealth();
|
|
}
|
|
}
|
|
/**
|
|
* The dated copy "Use repository version" writes and moves to the trash at once was never a real
|
|
* edit: it must not stay behind as a pending change (its create and delete events arrive meanwhile).
|
|
*/
|
|
forgetTempCopy(path) {
|
|
this.touchedDuringSync.delete(path);
|
|
this.dirty.delete(path);
|
|
this.writtenBySync.set(path, Date.now());
|
|
this.refreshBadges();
|
|
}
|
|
// ---------------- history sidebar ----------------
|
|
async openHistory() {
|
|
const existing = this.app.workspace.getLeavesOfType(HISTORY_VIEW)[0];
|
|
const leaf = existing ?? this.app.workspace.getRightLeaf(false);
|
|
if (!leaf) return;
|
|
if (!existing) await leaf.setViewState({ type: HISTORY_VIEW, active: true });
|
|
await this.app.workspace.revealLeaf(leaf);
|
|
}
|
|
/** Repository, branch, folder and last-synced commit: what the history sidebar's list depends on. */
|
|
historyVersion() {
|
|
const s = this.settings;
|
|
return `${s.provider}:${s.owner}/${s.repo}@${s.branch}/${normalizeSubdir(s.repoSubdir)}#${this.state.head ?? ""}`;
|
|
}
|
|
async remoteEncryptedCached() {
|
|
const key2 = this.historyVersion();
|
|
if (this.unlockCache?.key === key2) return this.unlockCache.value;
|
|
try {
|
|
const value = !!await readRemoteMarker(this);
|
|
this.unlockCache = { key: key2, value };
|
|
return value;
|
|
} catch {
|
|
return false;
|
|
}
|
|
}
|
|
historyHost() {
|
|
const entry = (c) => ({ sha: c.sha, message: c.title, date: c.date, author: c.author, tags: [] });
|
|
return {
|
|
problem: () => this.configProblem(),
|
|
needsUnlock: async (ask) => ask ? this.needsUnlock() : !this.isEncrypted() && await this.remoteEncryptedCached(),
|
|
version: () => this.historyVersion(),
|
|
listCommits: (page) => this.gh.listCommits(this.settings.branch, vaultCommitsPath(this.settings.repoSubdir), HISTORY_PAGE, page),
|
|
commitFiles: async (sha) => {
|
|
const d = await this.gh.getCommitFiles(sha);
|
|
return { parent: d.parent, files: await decodeCommitFiles(d.files, (raw) => this.engine.vaultPathOf(raw)) };
|
|
},
|
|
showDiff: (c, parent, f) => new DiffModal(this.app, `${f.path} @ ${c.sha.slice(0, 7)}`, async () => {
|
|
const [before, after] = await Promise.all([
|
|
parent && f.status !== "added" ? this.engine.readRemoteFile(parentPathOf(f), parent) : Promise.resolve(null),
|
|
f.status !== "deleted" ? this.engine.readRemoteFile(f.path, c.sha) : Promise.resolve(null)
|
|
]);
|
|
const o = await this.textOf(f.path, before);
|
|
const n = await this.textOf(f.path, after);
|
|
return {
|
|
oldLabel: before ? t("hist.before", { sha: (parent ?? "").slice(0, 7) }) : t("hist.none"),
|
|
newLabel: after ? t("hist.after", { sha: c.sha.slice(0, 7) }) : t("hist.none"),
|
|
oldText: o.text,
|
|
newText: n.text,
|
|
oldSize: o.size,
|
|
newSize: n.size
|
|
};
|
|
}).open(),
|
|
// A deleted file is restored as it was just before this sync deleted it.
|
|
restoreFile: (c, parent, f) => f.status === "deleted" ? parent ? void this.openVersion(parentPathOf(f), { sha: parent, message: t("m.beforeCommit", { sha: c.sha.slice(0, 7) }), date: c.date }) : void 0 : void this.openVersion(f.path, { sha: c.sha, message: c.title, date: c.date }),
|
|
browse: (c) => void this.browseAt(entry(c)),
|
|
restoreFolder: (c) => new FolderSuggestModal(this.app, (f) => void this.restore(entry(c), f.path)).open(),
|
|
restoreVault: (c) => void this.restore(entry(c), ""),
|
|
deviceName: () => this.deviceName(),
|
|
errorText: (e) => this.errorText(e)
|
|
};
|
|
}
|
|
compareFiles(a, b) {
|
|
new DiffModal(this.app, `${a.name} \u2194 ${b.name}`, async () => {
|
|
const [x, y] = await Promise.all([this.app.vault.readBinary(a), this.app.vault.readBinary(b)]);
|
|
return { oldLabel: a.path, newLabel: b.path, oldText: asText(a.path, x), newText: asText(b.path, y), oldSize: x.byteLength, newSize: y.byteLength };
|
|
}).open();
|
|
}
|
|
conflictCopies() {
|
|
const out = [];
|
|
for (const f of this.app.vault.getFiles()) {
|
|
const orig = conflictCopyOriginal(f.path);
|
|
if (!orig) continue;
|
|
const o = this.app.vault.getAbstractFileByPath(orig);
|
|
out.push({ copy: f, original: o instanceof import_obsidian22.TFile ? o : null });
|
|
}
|
|
return out;
|
|
}
|
|
async trashFile(f) {
|
|
await this.io.remove(f.path);
|
|
}
|
|
/**
|
|
* Resolve a conflict copy in place: pick change by change (or a whole side), write the result to
|
|
* the original note and move the copy to the trash. Closing the dialog changes nothing.
|
|
*/
|
|
async resolveConflictCopy(original, copy2) {
|
|
const [a, b] = await Promise.all([this.app.vault.readBinary(original), this.app.vault.readBinary(copy2)]);
|
|
const localText = asText(original.path, a);
|
|
const remoteText = asText(copy2.path, b);
|
|
const choice = await new Promise(
|
|
(resolve) => new ConflictModal(
|
|
this.app,
|
|
{
|
|
path: original.path,
|
|
title: t("h.resolveTitle", { path: original.path }),
|
|
localLabel: t("h.currentNote"),
|
|
remoteLabel: t("h.conflictCopy"),
|
|
markers: false,
|
|
localText,
|
|
remoteText,
|
|
localSize: a.byteLength,
|
|
remoteSize: b.byteLength
|
|
},
|
|
resolve
|
|
).open()
|
|
);
|
|
if (choice === "keep-both" || choice === "markers") return false;
|
|
if (choice === "remote") await this.app.vault.modifyBinary(original, b);
|
|
else if (typeof choice === "object") await this.app.vault.modify(original, choice.custom);
|
|
await this.trashFile(copy2);
|
|
return true;
|
|
}
|
|
// ---------------- timeline / restore / reset ----------------
|
|
async timelineEntries() {
|
|
const [commits, tags] = await Promise.all([
|
|
this.gh.listCommits(this.settings.branch, vaultCommitsPath(this.settings.repoSubdir), 60),
|
|
this.gh.listTags().catch(() => [])
|
|
]);
|
|
const bySha = /* @__PURE__ */ new Map();
|
|
for (const t2 of tags) bySha.set(t2.sha, [...bySha.get(t2.sha) ?? [], t2.name]);
|
|
return commits.map((c) => ({ ...c, tags: bySha.get(c.sha) ?? [] }));
|
|
}
|
|
openTimeline() {
|
|
new TimelineModal(this.app, () => this.timelineEntries(), {
|
|
browse: (e) => void this.browseAt(e),
|
|
restoreVault: (e) => void this.restore(e, ""),
|
|
restoreFolder: (e) => new FolderSuggestModal(this.app, (f) => void this.restore(e, f.path)).open()
|
|
}).open();
|
|
}
|
|
async browseAt(e) {
|
|
if (await this.needsUnlock()) return;
|
|
new CommitListModal(this.app, t("m.filesAt", { sha: e.sha.slice(0, 7), date: new Date(e.date).toLocaleString() }), async () => {
|
|
const files = await this.engine.filesAt(e.sha);
|
|
return [...files].sort(([a], [b]) => a.localeCompare(b)).map(([p, f]) => ({ label: p, sub: t("m.bytes", { n: f.size }), run: () => void this.openVersion(p, e) }));
|
|
}).open();
|
|
}
|
|
async restore(e, folder) {
|
|
const what = folder ? t("m.whatFolder", { folder }) : t("m.whatVault");
|
|
if (!this.beginExclusive()) return;
|
|
this.setStatus("syncing", t("m.restoring", { what }));
|
|
try {
|
|
await this.loadGitignore();
|
|
const plan = await this.engine.restoreTo(
|
|
e.sha,
|
|
folder,
|
|
(p) => confirmPlan(
|
|
this.app,
|
|
t("m.restoreTitle", { what }),
|
|
t("m.restoreBody", { what, date: new Date(e.date).toLocaleString(), sha: e.sha.slice(0, 7) }),
|
|
[
|
|
{ title: t("m.restoredOlder"), items: p.changed },
|
|
{ title: t("m.broughtBack"), items: p.added },
|
|
{ title: t("m.removedSince"), items: p.removed }
|
|
],
|
|
t("m.restore"),
|
|
true
|
|
)
|
|
);
|
|
const n = plan.changed.length + plan.added.length + plan.removed.length;
|
|
new import_obsidian22.Notice(n ? t("m.restored", { what, n }) : t("m.restoreSame", { what }));
|
|
this.lastError = null;
|
|
this.lastErrorCause = null;
|
|
} catch (err) {
|
|
if (!(err instanceof SyncCancelled)) {
|
|
this.lastError = errMsg(err);
|
|
this.lastErrorCause = err;
|
|
this.lastErrorAt = Date.now();
|
|
new import_obsidian22.Notice(t("m.restoreFailed", { error: this.errorText(err) }), 8e3);
|
|
}
|
|
this.log(errMsg(err));
|
|
} finally {
|
|
this.endExclusive();
|
|
this.setStatus(this.lastError ? "error" : "ok");
|
|
this.refreshHealth(true);
|
|
}
|
|
}
|
|
/** One forward commit that makes the repository equal to this device (the opposite of reset). */
|
|
async overwriteRemote() {
|
|
if (!this.isConfigured()) return void new import_obsidian22.Notice(this.configProblem());
|
|
if (!this.beginExclusive()) return;
|
|
this.setStatus("syncing", t("m.comparing"));
|
|
try {
|
|
await this.loadGitignore();
|
|
const plan = await this.engine.overwriteRemote(
|
|
(p) => confirmPlan(
|
|
this.app,
|
|
t("ow.title"),
|
|
t("ow.body", { host: this.hostLabel() }),
|
|
[
|
|
{ title: t("ow.upload"), items: p.upload },
|
|
{ title: t("m.deleteFrom", { host: this.hostLabel() }), items: p.remove }
|
|
],
|
|
t("ow.confirm"),
|
|
true
|
|
)
|
|
);
|
|
const n = plan.upload.length + plan.remove.length;
|
|
new import_obsidian22.Notice(n ? t("ow.done", { n }) : t("m.alreadyMatches"));
|
|
this.fullScanNeeded = true;
|
|
this.dirty.clear();
|
|
this.endExclusive();
|
|
this.setStatus("ok");
|
|
} catch (err) {
|
|
this.endExclusive();
|
|
if (err instanceof SyncCancelled) this.setStatus("idle");
|
|
else {
|
|
new import_obsidian22.Notice(t("ow.failed", { error: this.errorText(err) }), 8e3);
|
|
this.lastError = errMsg(err);
|
|
this.lastErrorCause = err;
|
|
this.lastErrorAt = Date.now();
|
|
this.setStatus("error", this.errorText(err));
|
|
}
|
|
} finally {
|
|
this.refreshHealth(true);
|
|
}
|
|
}
|
|
async resetToGitHub() {
|
|
if (!this.isConfigured()) return void new import_obsidian22.Notice(this.configProblem());
|
|
if (!this.beginExclusive()) return;
|
|
this.setStatus("syncing", t("m.comparing"));
|
|
try {
|
|
await this.loadGitignore();
|
|
const plan = await this.engine.resetToRemote(
|
|
(p) => confirmPlan(
|
|
this.app,
|
|
t("health.reset"),
|
|
t("m.resetBody"),
|
|
[
|
|
{ title: t("m.replacedWith", { host: this.hostLabel() }), items: p.overwrite },
|
|
{ title: t("m.downloaded"), items: p.download },
|
|
{ title: t("m.removedNotInRepo"), items: p.remove }
|
|
],
|
|
t("m.matchRepo"),
|
|
true
|
|
)
|
|
);
|
|
const n = plan.overwrite.length + plan.download.length + plan.remove.length;
|
|
new import_obsidian22.Notice(n ? t("m.matched", { n }) : t("m.alreadyMatches"));
|
|
this.fullScanNeeded = true;
|
|
this.dirty.clear();
|
|
this.endExclusive();
|
|
this.setStatus("ok");
|
|
} catch (err) {
|
|
this.endExclusive();
|
|
if (err instanceof SyncCancelled) this.setStatus("idle");
|
|
else {
|
|
new import_obsidian22.Notice(t("m.resetFailed", { error: this.errorText(err) }), 8e3);
|
|
this.lastError = errMsg(err);
|
|
this.lastErrorCause = err;
|
|
this.lastErrorAt = Date.now();
|
|
this.setStatus("error", this.errorText(err));
|
|
}
|
|
this.log(errMsg(err));
|
|
} finally {
|
|
this.refreshHealth(true);
|
|
}
|
|
}
|
|
// ---------------- commands ----------------
|
|
registerCommands() {
|
|
this.addCommand({ id: "sync-now", name: t("cmd.sync"), callback: () => this.sync("manual") });
|
|
this.addCommand({ id: "review", name: t("cmd.review"), callback: () => this.openReview() });
|
|
this.addCommand({ id: "open-status", name: t("cmd.status"), callback: () => this.openHealth() });
|
|
this.addCommand({ id: "pull-now", name: t("cmd.pull"), callback: () => this.sync("manual", "pull") });
|
|
this.addCommand({ id: "push-now", name: t("cmd.push"), callback: () => this.sync("manual", "push") });
|
|
this.addCommand({ id: "preview", name: t("cmd.preview"), callback: () => this.openReview(true) });
|
|
this.addCommand({ id: "timeline", name: t("cmd.timeline"), callback: () => this.openTimeline() });
|
|
this.addCommand({ id: "reset-to-github", name: t("cmd.reset"), callback: () => this.resetToGitHub() });
|
|
this.addCommand({ id: "snapshot", name: t("cmd.snapshot"), callback: () => this.snapshot(true) });
|
|
this.addCommand({ id: "setup-wizard", name: t("cmd.wizard"), callback: () => this.openWizard() });
|
|
this.addCommand({ id: "encryption", name: t("cmd.encryption"), callback: () => this.openEncryption() });
|
|
this.addCommand({ id: "free-up-space", name: t("cmd.freeSpace"), callback: () => this.freeUpSpace() });
|
|
this.addCommand({ id: "download-on-demand", name: t("cmd.onDemand"), callback: () => this.openRemoteOnly() });
|
|
this.addCommand({ id: "show-log", name: t("cmd.log"), callback: () => this.openLog() });
|
|
this.addCommand({
|
|
id: "file-history",
|
|
name: t("cmd.history"),
|
|
checkCallback: (checking) => {
|
|
const file = this.app.workspace.getActiveFile();
|
|
if (!file) return false;
|
|
if (!checking) void this.showFileHistory(file);
|
|
return true;
|
|
}
|
|
});
|
|
this.addCommand({
|
|
id: "compare-with-github",
|
|
name: t("cmd.compare"),
|
|
checkCallback: (checking) => {
|
|
const file = this.app.workspace.getActiveFile();
|
|
if (!file) return false;
|
|
if (!checking) void this.compareWithGitHub(file);
|
|
return true;
|
|
}
|
|
});
|
|
this.addCommand({ id: "open-history", name: t("cmd.openHistory"), callback: () => void this.openHistory() });
|
|
this.addCommand({
|
|
id: "use-repository-version",
|
|
name: t("cmd.useRepo"),
|
|
checkCallback: (checking) => {
|
|
const file = this.app.workspace.getActiveFile();
|
|
if (!file || !this.isConfigured()) return false;
|
|
if (!checking) void this.useRepositoryVersion(file.path);
|
|
return true;
|
|
}
|
|
});
|
|
this.addCommand({
|
|
id: "sync-current-file",
|
|
name: t("cmd.syncFile"),
|
|
checkCallback: (checking) => {
|
|
const file = this.app.workspace.getActiveFile();
|
|
if (!file) return false;
|
|
if (!checking) void this.sync("manual", this.settings.mode, { only: /* @__PURE__ */ new Set([file.path]) });
|
|
return true;
|
|
}
|
|
});
|
|
this.addCommand({ id: "setup-link", name: t("cmd.setupLink"), callback: () => this.openSetupLink() });
|
|
this.addCommand({ id: "overwrite-remote", name: t("cmd.overwrite"), callback: () => void this.overwriteRemote() });
|
|
this.addCommand({ id: "pause", name: t("cmd.pause"), callback: () => this.isPaused() ? this.resumeSync() : this.pauseSync(null) });
|
|
this.addCommand({ id: "pause-hour", name: t("cmd.pauseHour"), callback: () => this.pauseSync(60) });
|
|
this.addCommand({ id: "copy-diagnostics", name: t("cmd.diagnostics"), callback: () => void this.copyDiagnostics() });
|
|
const onHost = (id, name, run) => this.addCommand({
|
|
id,
|
|
name,
|
|
checkCallback: (checking) => {
|
|
const file = this.app.workspace.getActiveFile();
|
|
if (!file || !this.isConfigured()) return false;
|
|
if (!checking) run(file);
|
|
return true;
|
|
}
|
|
});
|
|
onHost("open-on-host", t("cmd.openOnHost"), (f) => void this.openOnHost(f, "file"));
|
|
onHost("history-on-host", t("cmd.historyOnHost"), (f) => void this.openOnHost(f, "history"));
|
|
onHost("copy-host-link", t("cmd.copyHostLink"), (f) => void this.openOnHost(f, "copy"));
|
|
this.addCommand({ id: "recover-deleted", name: t("cmd.recover"), callback: () => void this.showDeletedFiles() });
|
|
this.addCommand({
|
|
id: "open-repo",
|
|
name: t("cmd.openRepo"),
|
|
callback: async () => {
|
|
const repo = await this.gh.getRepo().catch(() => null);
|
|
if (repo?.html_url) window.open(repo.html_url);
|
|
else new import_obsidian22.Notice(t("m.repoNotFound"));
|
|
}
|
|
});
|
|
this.registerEvent(
|
|
this.app.workspace.on("file-menu", (menu, file) => {
|
|
const ours = (item) => t("menu.prefixed", { item });
|
|
addScopeMenuItems(this, menu, file);
|
|
if (file instanceof import_obsidian22.TFolder && file.path && file.path !== "/") {
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.shareFolder"))).setIcon("folder-sync").onClick(() => new SharedFolderModal(this.app, this, () => this.refreshHealth(), file.path).open()));
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.excludeFolder"))).setIcon("eye-off").onClick(() => void this.excludeFolder(file.path)));
|
|
return;
|
|
}
|
|
if (!(file instanceof import_obsidian22.TFile)) return;
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.history"))).setIcon("history").onClick(() => void this.showFileHistory(file)));
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.compare"))).setIcon("file-diff").onClick(() => this.compareWithGitHub(file)));
|
|
if (this.isConfigured()) menu.addItem((i) => i.setTitle(ours(t("menu.useRepo"))).setIcon("download").onClick(() => void this.useRepositoryVersion(file.path)));
|
|
if (this.isConfigured()) {
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.openOnHost", { host: this.hostLabel() }))).setIcon("external-link").onClick(() => void this.openOnHost(file, "file")));
|
|
menu.addItem((i) => i.setTitle(ours(t("menu.copyHostLink", { host: this.hostLabel() }))).setIcon("link").onClick(() => void this.openOnHost(file, "copy")));
|
|
}
|
|
})
|
|
);
|
|
}
|
|
/** Opens a file's page (or history) on the host, or copies a link to it at the last synced commit. */
|
|
async openOnHost(file, what) {
|
|
const shared = (await this.sharedHosts()).find((h) => file.path.startsWith(h.def.folder.replace(/\/+$/, "") + "/"));
|
|
if (!shared && this.isEncrypted()) return void new import_obsidian22.Notice(t("m.hostLinkEncrypted"));
|
|
const remote = shared ? shared.gh : this.gh;
|
|
const path = shared ? await shared.engine.remotePathOf(file.path) : await this.engine.remotePathOf(file.path);
|
|
const branch = shared ? shared.def.branch || "main" : this.settings.branch;
|
|
const head = shared ? shared.state.head : this.state.head;
|
|
const ref = what === "history" ? branch : head ?? branch;
|
|
const url = remote.webUrl?.(what === "history" ? "history" : "file", path, ref) ?? null;
|
|
if (!url) return void new import_obsidian22.Notice(t("m.hostLinkUnsupported", { host: shared ? remote.label : this.hostLabel() }));
|
|
if (what === "copy") {
|
|
try {
|
|
await navigator.clipboard.writeText(url);
|
|
new import_obsidian22.Notice(t("link.copied"));
|
|
} catch (e) {
|
|
new import_obsidian22.Notice(t("m.clipboardFailed", { error: this.errorText(e) }));
|
|
}
|
|
} else window.open(url);
|
|
}
|
|
async excludeFolder(folder) {
|
|
const line = `/${folder}/`;
|
|
if (this.settings.excludePatterns.split("\n").some((l) => l.trim() === line)) return void new import_obsidian22.Notice(t("m.alreadyExcluded", { folder }));
|
|
if (!await confirmPlan(this.app, t("menu.excludeFolder"), t("m.excludeBody", { folder }), [], t("menu.excludeFolder"))) return;
|
|
this.settings.excludePatterns = `${this.settings.excludePatterns.trimEnd()}
|
|
${line}`;
|
|
await this.saveSettings();
|
|
new import_obsidian22.Notice(t("m.excluded", { folder }));
|
|
}
|
|
/** Copies a bug-report summary: versions, settings (no secrets), state and recent log, with tokens hidden. */
|
|
async copyDiagnostics() {
|
|
const s = this.settings;
|
|
const api = this.getApiBase();
|
|
const lines2 = [
|
|
`Vault Sync for Git ${this.manifest.version} \xB7 Obsidian ${import_obsidian22.apiVersion} \xB7 ${import_obsidian22.Platform.isMobile ? "mobile" : "desktop"}${import_obsidian22.Platform.isIosApp ? " iOS" : import_obsidian22.Platform.isAndroidApp ? " Android" : import_obsidian22.Platform.isMacOS ? " macOS" : import_obsidian22.Platform.isWin ? " Windows" : import_obsidian22.Platform.isLinux ? " Linux" : ""}`,
|
|
`Host: ${s.provider} (${/^https?:\/\/([^/]+)/.exec(api)?.[1] ?? "?"}) \xB7 sign-in: ${this.usingGitHubApp() ? "GitHub App" : this.usingGitLabApp() ? "GitLab app" : this.getToken() ? "token" : "none"}`,
|
|
`Mode: ${s.mode} \xB7 conflicts: ${s.conflictStrategy} \xB7 settings folder: ${s.syncConfigDir} \xB7 hidden: ${s.syncHidden}${s.syncHiddenNested ? " (nested)" : ""} \xB7 .gitignore: ${s.useGitignore} \xB7 LFS: ${s.lfsThresholdMB} MB \xB7 encrypted: ${this.isEncrypted()}`,
|
|
`Triggers: startup ${s.syncOnStartup}, edits ${s.syncOnChange} (${s.changeDebounceSec}s), every ${s.intervalMin} min, resume ${s.syncOnResume}, background ${s.syncOnBackground}, open ${s.syncOnOpen} \xB7 paused: ${this.isPaused()} \xB7 battery saver: ${this.batterySaver()}`,
|
|
`Shared folders: ${s.sharedFolders.length} \xB7 mirror: ${s.mirror?.enabled ? s.mirror.provider : "off"}`,
|
|
`State: head ${this.state.head?.slice(0, 7) ?? "none"} \xB7 ${Object.keys(this.state.base).length} files \xB7 last sync ${this.state.lastSync ? new Date(this.state.lastSync).toISOString() : "never"} \xB7 on demand ${Object.keys(this.state.remoteOnly ?? {}).length}`,
|
|
`Last error: ${this.lastError ?? "none"}`,
|
|
"",
|
|
"Recent log:",
|
|
...this.logLines.slice(-60)
|
|
];
|
|
try {
|
|
await navigator.clipboard.writeText(redactSecrets(lines2.join("\n")));
|
|
new import_obsidian22.Notice(t("m.diagnosticsCopied"));
|
|
} catch (e) {
|
|
new import_obsidian22.Notice(t("m.clipboardFailed", { error: this.errorText(e) }));
|
|
}
|
|
}
|
|
/** Change markers and line history. A file in a shared folder takes its base from that folder's sync. */
|
|
createChangeMarkers() {
|
|
const sharedOf = (path) => this.sharedHostOf(path);
|
|
return new ChangeMarkers({
|
|
app: this.app,
|
|
// Without a repository there is no last-synced version, so nothing is marked.
|
|
enabled: () => this.settings.changeMarkers,
|
|
hostFor: (path) => sharedOf(path) ?? this,
|
|
// Line history reads the repository the file syncs with: a shared folder's, else the vault's.
|
|
hasHistory: (path) => !!sharedOf(path) || this.isConfigured(),
|
|
listCommits: (path, limit) => this.fileCommits(path, limit),
|
|
readVersion: (path, sha) => (sharedOf(path)?.engine ?? this.engine).readRemoteFile(path, sha),
|
|
openVersion: (path, commit) => void this.openVersion(path, commit, { path: commit.path, engine: sharedOf(path)?.engine }),
|
|
canBrowse: async (path) => !!sharedOf(path) || !await this.needsUnlock(),
|
|
log: (m) => this.log(m)
|
|
});
|
|
}
|
|
/**
|
|
* A file's newest `limit` commits in the repository it syncs with (a shared folder's, else the
|
|
* vault's), followed back through renames; each carries the file's name at that commit.
|
|
*/
|
|
async fileCommits(path, limit) {
|
|
const shared = this.sharedHostOf(path);
|
|
const h = shared ?? { gh: this.gh, settings: this.settings, engine: this.engine };
|
|
return followRenames(path, limit, {
|
|
list: async (p, n) => h.gh.listCommits(h.settings.branch, await h.engine.remotePathOf(p), Math.min(n, 100)),
|
|
files: async (sha) => decodeCommitFiles((await h.gh.getCommitFiles(sha)).files, (raw) => h.engine.vaultPathOf(raw))
|
|
});
|
|
}
|
|
/** The shared folder a vault path belongs to, if any. */
|
|
sharedHostOf(path) {
|
|
return this.sharedHostsCached().find((h) => path.startsWith(h.def.folder.replace(/\/+$/, "") + "/")) ?? null;
|
|
}
|
|
async showFileHistory(file) {
|
|
if (!this.sharedHostOf(file.path) && await this.needsUnlock()) return;
|
|
new CommitListModal(this.app, t("m.history", { path: file.path }), async () => {
|
|
const commits = await this.fileCommits(file.path, 50);
|
|
return commits.map((c) => ({
|
|
label: c.message.split("\n")[0],
|
|
// Versions from before a rename say which name the file had then.
|
|
sub: `${new Date(c.date).toLocaleString()} \xB7 ${c.author} \xB7 ${c.sha.slice(0, 7)}${c.path !== file.path ? ` \xB7 ${c.path}` : ""}`,
|
|
run: () => void this.openVersion(file.path, c, { path: c.path, engine: this.sharedHostOf(file.path)?.engine })
|
|
}));
|
|
}).open();
|
|
}
|
|
/**
|
|
* Shows a file's version at `commit`; restoring writes it to `path`. `from` reads it elsewhere: under
|
|
* the file's older name (history across a rename) and/or from a shared folder's repository.
|
|
*/
|
|
async openVersion(path, commit, from = {}) {
|
|
try {
|
|
const data = await (from.engine ?? this.engine).readRemoteFile(from.path ?? path, commit.sha);
|
|
if (!data) return void new import_obsidian22.Notice(t("m.notInVersion"));
|
|
let current;
|
|
if (await this.app.vault.adapter.exists(path)) current = asText(path, await this.io.read(path));
|
|
new FileVersionModal(this.app, path, commit, asText(path, data), data.byteLength, current, async (asCopy) => {
|
|
const target = asCopy ? restoredCopyPath(path, commit.sha) : path;
|
|
if (!asCopy && await this.app.vault.adapter.exists(path)) {
|
|
const now = await this.io.read(path).catch(() => null);
|
|
const a = now ? new Uint8Array(now) : null;
|
|
const b = new Uint8Array(data);
|
|
const same = !!a && a.length === b.length && a.every((x, i) => x === b[i]);
|
|
if (!same && !await confirmPlan(this.app, t("u.restoreThis"), t("m.restoreOverBody", { path, date: new Date(commit.date).toLocaleString() }), [], t("u.restoreThis"), true)) return;
|
|
}
|
|
try {
|
|
if (asCopy) await this.io.write(target, data);
|
|
else {
|
|
const r = await replaceWithRepositoryVersion(this.io, target, data);
|
|
if (r.kind === "replaced") this.forgetTempCopy(r.trashedAs);
|
|
}
|
|
} catch (e) {
|
|
return void new import_obsidian22.Notice(t("m.restoreFailed", { error: this.errorText(e) }));
|
|
}
|
|
new import_obsidian22.Notice(t("m.restoredFile", { path: target }));
|
|
const nf = this.app.vault.getAbstractFileByPath(target);
|
|
if (asCopy && nf instanceof import_obsidian22.TFile) await this.app.workspace.getLeaf(true).openFile(nf);
|
|
}).open();
|
|
} catch (e) {
|
|
new import_obsidian22.Notice(t("m.versionFailed", { error: this.errorText(e) }));
|
|
}
|
|
}
|
|
async showDeletedFiles() {
|
|
if (await this.needsUnlock()) return;
|
|
new CommitListModal(this.app, t("m.recentlyDeleted"), async () => {
|
|
const commits = await this.gh.listCommits(this.settings.branch, vaultCommitsPath(this.settings.repoSubdir), 25);
|
|
const rows = [];
|
|
const seen = /* @__PURE__ */ new Set();
|
|
for (const c of commits) {
|
|
const detail = await this.gh.getCommitFiles(c.sha);
|
|
if (!detail.parent) continue;
|
|
for (const f of detail.files) {
|
|
if (f.status !== "removed") continue;
|
|
const name = await this.engine.vaultPathOf(f.filename);
|
|
if (!name || seen.has(name)) continue;
|
|
if (this.app.vault.getAbstractFileByPath(name)) continue;
|
|
seen.add(name);
|
|
const parent = detail.parent;
|
|
rows.push({
|
|
label: name,
|
|
sub: t("m.deletedOn", { date: new Date(c.date).toLocaleString(), msg: c.message.split("\n")[0] }),
|
|
run: () => void this.openVersion(name, { sha: parent, message: t("m.beforeCommit", { sha: c.sha.slice(0, 7) }), date: c.date })
|
|
});
|
|
}
|
|
}
|
|
return rows;
|
|
}).open();
|
|
}
|
|
};
|
|
|
|
/* nosourcemap */ |