diff --git a/apps/admin/script.js b/apps/admin/script.js index b75f178b..74466acb 100644 --- a/apps/admin/script.js +++ b/apps/admin/script.js @@ -42,10 +42,27 @@ window.addEventListener('load', function () { } else if (description.type === 'textarea') { return html`
  • - +
    ${description.description}
    - - + +
  • `; } else { @@ -61,13 +78,17 @@ window.addEventListener('load', function () { } const user_template = (user, permissions) => html`
  • - + ${user}: ${permissions.map((x) => permission_template(x))}
  • `; const users_template = (users) => - html` -

    Users

    + html`

    Users

    `; diff --git a/apps/identity/app.js b/apps/identity/app.js index aa577b73..6ed964af 100644 --- a/apps/identity/app.js +++ b/apps/identity/app.js @@ -116,16 +116,18 @@ async function main() {

    Identities

    + ) + .join('\n') + + `
    ` ); diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js index 89f054d0..b32b6241 100644 --- a/apps/ssb/tf-app.js +++ b/apps/ssb/tf-app.js @@ -345,14 +345,15 @@ class TfElement extends LitElement { ([k, v]) => html` ` )} @@ -360,10 +361,12 @@ class TfElement extends LitElement { `; let contents = !this.loaded ? this.loading - ? html`
    - Loading... -
    - ${this.render_tab()}` + ? html`
    + Loading... +
    + ${this.render_tab()}` : html`
    Select or create an identity.
    ` : this.render_tab(); return html` diff --git a/apps/ssb/tf-compose.js b/apps/ssb/tf-compose.js index 3cdbbdfe..77da43ef 100644 --- a/apps/ssb/tf-compose.js +++ b/apps/ssb/tf-compose.js @@ -295,14 +295,18 @@ class TfComposeElement extends LitElement { { values: values, selectTemplate: function (item) { - return item ? `[@${item.original.key}](${item.original.value})` : undefined; + return item + ? `[@${item.original.key}](${item.original.value})` + : undefined; }, }, { trigger: '&', values: this.autocomplete, selectTemplate: function (item) { - return item ? `![${item.original.key}](${item.original.value})` : undefined; + return item + ? `![${item.original.key}](${item.original.value})` + : undefined; }, }, ], @@ -544,7 +548,7 @@ class TfComposeElement extends LitElement { @paste=${this.paste} contenteditable .innerText=${live(draft.text ?? '')} - > + >
    ${content_warning} diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 731f0430..ffbab1cf 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -247,9 +247,7 @@ ${JSON.stringify(mention, null, 2)} +
    Mentions ${mentions.map((x) => self.render_mention(x))}
    diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index 4b23dad6..05f9841c 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -116,9 +116,15 @@ class TfTabConnectionsElement extends LitElement { ${connection.tunnel !== undefined ? '🚇' : html`(${connection.host}:${connection.port})`} -
    ${connection.requests.map(x => html` - ${x.request_number > 0 ? '🟩' : 'đŸŸĨ'} ${x.name} - `)}
    +
    + ${connection.requests.map( + (x) => html` + ${x.request_number > 0 ? '🟩' : 'đŸŸĨ'} ${x.name} + ` + )} +