feat: Initial clean release of CHM
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
这个提交包含在:
@@ -0,0 +1,74 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
|
||||
<link rel="icon" href="./icons/icon-vector-large.svg"/>
|
||||
<meta name="robots" content="noindex"/>
|
||||
|
||||
<title>Error - Joplin</title>
|
||||
<script src="./serviceWorker.bundle.js"></script>
|
||||
<link rel="stylesheet" href="./info-page.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<main class="-loading">
|
||||
<div id="only-one-copy-message">
|
||||
<h1>⚠️ Error: Only one copy of Joplin can be open at a time ⚠️</h1>
|
||||
<p>
|
||||
At present, the Joplin web client only supports one open copy at a time in the same browser. This restriction is present to keep your data safe.
|
||||
</p>
|
||||
<p>
|
||||
To use Joplin in this tab, please <button id="close-all-other-web-clients">close all other Joplin web client tabs</button>,
|
||||
then <button id="refresh-this-page">refresh</button> this page.
|
||||
</p>
|
||||
</div>
|
||||
<div id="loading-message">
|
||||
<p>Loading...</p>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
<script>
|
||||
function setUpButtons() {
|
||||
for (const refreshLink of document.querySelectorAll('#refresh-this-page')) {
|
||||
refreshLink.onclick = () => location.reload();
|
||||
}
|
||||
|
||||
for (const closeLink of document.querySelectorAll('#close-all-other-web-clients')) {
|
||||
if (navigator.serviceWorker) {
|
||||
closeLink.onclick = () => {
|
||||
window.navigator.serviceWorker.controller.postMessage({ type: 'closeAllJoplinWebTabs' });
|
||||
};
|
||||
} else {
|
||||
closeLink.replaceWith(document.createTextNode(closeLink.textContent));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleRetry() {
|
||||
const main = document.querySelector('main');
|
||||
const url = new URL(location.href);
|
||||
if (!url.searchParams.has('no-retry')) {
|
||||
main.classList.add('-loading');
|
||||
|
||||
// In some browsers (e.g. Firefox, Safari), the service worker incorrectly
|
||||
// detects reloading the web app (or the first load) as a new browser tab accessing Joplin,
|
||||
// where a previous tab already has access.
|
||||
// Retry once to work around this issue:
|
||||
setTimeout(() => {
|
||||
try {
|
||||
url.searchParams.set('no-retry', '1');
|
||||
location.replace(url);
|
||||
} catch (error) {
|
||||
main.classList.remove('-loading');
|
||||
throw error;
|
||||
}
|
||||
}, 150);
|
||||
} else {
|
||||
main.classList.remove('-loading');
|
||||
}
|
||||
}
|
||||
|
||||
setUpButtons();
|
||||
handleRetry();
|
||||
</script>
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户