clavarium 0.2.232-next.1 → 0.2.235-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/web/app.js +8 -6
- package/web/index.html +7 -2
- package/web/style.css +4 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.235-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.235-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -7064,13 +7064,15 @@
|
|
|
7064
7064
|
/* Which kinds each provider can be connected for (from the server). */
|
|
7065
7065
|
let accountSupported = { google: ['mail', 'calendar', 'contacts'], microsoft: ['mail'], classic: ['mail', 'calendar', 'contacts'] };
|
|
7066
7066
|
/* From New mailbox: the account form, on the host's kind ("Other") with what was typed here, unless it is Gmail or Microsoft. */
|
|
7067
|
-
|
|
7068
|
-
|
|
7067
|
+
/* The kind of mailbox, in plain sight (02-11): Google or Microsoft sign in (the account form, on that
|
|
7068
|
+
provider); any other is the IMAP + SMTP form right here. */
|
|
7069
|
+
for (const b of $('mailbox-provider').querySelectorAll('button')) b.addEventListener('click', async () => {
|
|
7070
|
+
const provider = b.dataset.provider;
|
|
7071
|
+
if (provider === 'classic') return;
|
|
7072
|
+
const user = $('mailbox-user').value.trim();
|
|
7069
7073
|
assetsAdding = 'connexion'; await paintAssets();
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
if (user.includes('@')) { $('connexion-email').value = user; $('connexion-email').dispatchEvent(new Event('change')); }
|
|
7073
|
-
if (host && !big && !$('connexion-imap').value.trim()) $('connexion-imap').value = host;
|
|
7074
|
+
setConnexionProvider(provider);
|
|
7075
|
+
if (user.includes('@')) $('connexion-email').value = user;
|
|
7074
7076
|
});
|
|
7075
7077
|
/* CONNECT AN ACCOUNT (Connexions): a live link through Tether. The person signs
|
|
7076
7078
|
in in their own browser; the token is kept on the server, never in a machine.
|
package/web/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<link rel="stylesheet" href="/vendor/diff2html.css">
|
|
15
15
|
<div id="app" data-place="conversations">
|
|
16
16
|
<aside id="list" hidden>
|
|
17
|
-
<div class="top"><b id="list-title" title="Conversations">Clavarium</b><span class="top-acts"><button type="button" id="list-pin" class="icon-btn" aria-pressed="false" aria-label="Keep the list open" title="Keep the list open: it no longer folds when a conversation is opened"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg></button><button type="button" id="search-open" class="icon-btn" aria-label="Search conversations" title="Search (/ or Ctrl+K)" aria-expanded="false" aria-controls="search"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></button><button type="button" id="new" class="
|
|
17
|
+
<div class="top"><b id="list-title" title="Conversations">Clavarium</b><span class="top-acts"><button type="button" id="list-pin" class="icon-btn" aria-pressed="false" aria-label="Keep the list open" title="Keep the list open: it no longer folds when a conversation is opened"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg></button><button type="button" id="search-open" class="icon-btn" aria-label="Search conversations" title="Search (/ or Ctrl+K)" aria-expanded="false" aria-controls="search"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></button><button type="button" id="new" class="icon-btn new-btn" aria-label="New conversation" title="New conversation"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14"/><path d="M5 12h14"/></svg></button></span></div>
|
|
18
18
|
<!-- SEARCH, discreet: opened by the magnifier, "/" or Ctrl+K; filters as it is typed. -->
|
|
19
19
|
<div id="search" role="search" hidden><input id="search-field" type="search" placeholder="Search" aria-label="Search conversations: name, folder, identifier, tool" autocomplete="off" spellcheck="false" maxlength="60" aria-controls="items"></div>
|
|
20
20
|
<!-- Needs you and Recent: copies of rows of the list below, by when they were last used (app.js, paint). -->
|
|
@@ -541,7 +541,12 @@
|
|
|
541
541
|
<p id="git-keys-empty" class="hint">No key yet: "New key" in Add a repository makes one.</p>
|
|
542
542
|
</div>
|
|
543
543
|
<div id="mailbox-box" class="as-form" data-kind="mailbox"><h3>New mailbox</h3>
|
|
544
|
-
<div
|
|
544
|
+
<div id="mailbox-provider" class="choices" role="group" aria-label="Kind of mailbox">
|
|
545
|
+
<button type="button" data-provider="google">Gmail / Google</button>
|
|
546
|
+
<button type="button" data-provider="microsoft">Microsoft / Outlook</button>
|
|
547
|
+
<button type="button" data-provider="classic" aria-pressed="true">Other: IMAP / SMTP (OVH, Infomaniak…)</button>
|
|
548
|
+
</div>
|
|
549
|
+
<p class="hint">Its IMAP and SMTP settings, like any mail app. What a conversation may do with it is chosen when you give it to one.</p>
|
|
545
550
|
<form id="mailbox-new" autocomplete="off" data-provider="imap" data-how="live">
|
|
546
551
|
<label for="mailbox-user">Email address</label>
|
|
547
552
|
<input id="mailbox-user" inputmode="email" spellcheck="false" autocapitalize="off" autocomplete="off" placeholder="you@example.com">
|
package/web/style.css
CHANGED
|
@@ -2110,3 +2110,7 @@ body.as-dragging #assets-rows .as-row { touch-action: none; }
|
|
|
2110
2110
|
.as-live-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: 28rem; }
|
|
2111
2111
|
.as-live-form > button { justify-self: start; margin-top: 4px; }
|
|
2112
2112
|
|
|
2113
|
+
|
|
2114
|
+
/* New conversation: a + like its neighbours, in the brass of an action (02-11: the words were loud). */
|
|
2115
|
+
#new.new-btn { color: var(--brass); }
|
|
2116
|
+
#new.new-btn:hover { border-color: var(--brass); }
|