forked from cory/tildefriends
Compare commits
3 Commits
24c720c79a
...
907479df84
Author | SHA1 | Date | |
---|---|---|---|
907479df84 | |||
9887a78e98 | |||
f669371349 |
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🐌",
|
"emoji": "🐌",
|
||||||
"previous": "&raSj7ozmSDNGmB6TtjDk7oOiTc33ZN+RrBMASJ2F4cA=.sha256"
|
"previous": "&cN1BLgsD5fU8QzkNbtKR/Ie1fO3miBq8FVSpgNqFbrc=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -345,13 +345,15 @@ class TfElement extends LitElement {
|
|||||||
([k, v]) => html`
|
([k, v]) => html`
|
||||||
<button
|
<button
|
||||||
title=${v}
|
title=${v}
|
||||||
class="w3-bar-item w3-padding-large w3-hover-theme tab ${self.tab ==
|
class="w3-bar-item w3-padding w3-hover-theme tab ${self.tab == v
|
||||||
v
|
|
||||||
? 'w3-theme-l2'
|
? 'w3-theme-l2'
|
||||||
: 'w3-theme-l1'}"
|
: 'w3-theme-l1'}"
|
||||||
@click=${() => self.set_tab(v)}
|
@click=${() => self.set_tab(v)}
|
||||||
>
|
>
|
||||||
${k}
|
${k}
|
||||||
|
<span class=${self.tab == v ? '' : 'w3-hide-small'}
|
||||||
|
>${v.charAt(0).toUpperCase() + v.substring(1)}</span
|
||||||
|
>
|
||||||
</button>
|
</button>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
|
@ -193,12 +193,16 @@ class TfTabConnectionsElement extends LitElement {
|
|||||||
${this.identities.map(
|
${this.identities.map(
|
||||||
(x) =>
|
(x) =>
|
||||||
html`<li class="w3-bar">
|
html`<li class="w3-bar">
|
||||||
${x == this.server_identity ?
|
${x == this.server_identity
|
||||||
html`<span class="w3-tag w3-medium w3-round w3-theme-l1">🖥 local server</span>` :
|
? html`<span class="w3-tag w3-medium w3-round w3-theme-l1"
|
||||||
undefined}
|
>🖥 local server</span
|
||||||
${this.my_identities.indexOf(x) != -1 ?
|
>`
|
||||||
html`<span class="w3-tag w3-medium w3-round w3-theme-d1">😎 you</span>` :
|
: undefined}
|
||||||
undefined}
|
${this.my_identities.indexOf(x) != -1
|
||||||
|
? html`<span class="w3-tag w3-medium w3-round w3-theme-d1"
|
||||||
|
>😎 you</span
|
||||||
|
>`
|
||||||
|
: undefined}
|
||||||
<tf-user id=${x} .users=${this.users}></tf-user>
|
<tf-user id=${x} .users=${this.users}></tf-user>
|
||||||
</li>`
|
</li>`
|
||||||
)}
|
)}
|
||||||
|
@ -115,13 +115,17 @@ class TfTabNewsElement extends LitElement {
|
|||||||
></tf-profile>`
|
></tf-profile>`
|
||||||
: undefined;
|
: undefined;
|
||||||
let edit_profile;
|
let edit_profile;
|
||||||
if (!this.loading &&
|
if (
|
||||||
|
!this.loading &&
|
||||||
this.users[this.whoami]?.name === undefined &&
|
this.users[this.whoami]?.name === undefined &&
|
||||||
this.hash.substring(1) != this.whoami) {
|
this.hash.substring(1) != this.whoami
|
||||||
edit_profile = html`
|
) {
|
||||||
<div class="w3-panel w3-padding w3-round w3-card-4 w3-theme-l3">
|
edit_profile = html` <div
|
||||||
ℹ️ Follow your identity link ☝️ above to edit your profile and set your name.
|
class="w3-panel w3-padding w3-round w3-card-4 w3-theme-l3"
|
||||||
</div>`;
|
>
|
||||||
|
ℹ️ Follow your identity link ☝️ above to edit your profile and set your
|
||||||
|
name.
|
||||||
|
</div>`;
|
||||||
}
|
}
|
||||||
return html`
|
return html`
|
||||||
<p class="w3-bar">
|
<p class="w3-bar">
|
||||||
|
Loading…
Reference in New Issue
Block a user