clavarium 0.2.129-beta.1 → 0.2.130-beta.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 +6 -1
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.130-beta.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.130-beta.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
|
@@ -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">
|