Compare commits
4 Commits
afc1524874
...
ef5ce1d6e1
Author | SHA1 | Date | |
---|---|---|---|
ef5ce1d6e1 | |||
0ea1213139 | |||
51fe372f60 | |||
eb8f9f8936 |
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🐌",
|
"emoji": "🐌",
|
||||||
"previous": "&tL1A9Kt6d8wGwBFPAq5V5GtMqOatVCzuLIG6wwJhdyI=.sha256"
|
"previous": "&FhsefvQQwZ9T4+HoInU3di3T+7B7CVC3xyjpLtGqyr8=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -15,3 +15,10 @@ import * as tf_tab_search from './tf-tab-search.js';
|
|||||||
import * as tf_tab_connections from './tf-tab-connections.js';
|
import * as tf_tab_connections from './tf-tab-connections.js';
|
||||||
import * as tf_tab_query from './tf-tab-query.js';
|
import * as tf_tab_query from './tf-tab-query.js';
|
||||||
import * as tf_tag from './tf-tag.js';
|
import * as tf_tag from './tf-tag.js';
|
||||||
|
import * as tf_styles from './tf-styles.js';
|
||||||
|
|
||||||
|
window.addEventListener('load', function() {
|
||||||
|
let style = document.createElement('style');
|
||||||
|
style.innerText = tf_styles.styles;
|
||||||
|
document.body.appendChild(style);
|
||||||
|
});
|
@ -211,7 +211,7 @@ class TfTabConnectionsElement extends LitElement {
|
|||||||
class="w3-button w3-theme-l3 w3-circle w3-ripple w3-large"
|
class="w3-button w3-theme-l3 w3-circle w3-ripple w3-large"
|
||||||
@click=${this.refresh}
|
@click=${this.refresh}
|
||||||
>
|
>
|
||||||
🔃
|
↻
|
||||||
</button>
|
</button>
|
||||||
<h2>New Connection</h2>
|
<h2>New Connection</h2>
|
||||||
<textarea class="w3-input w3-theme-d1" id="code"></textarea>
|
<textarea class="w3-input w3-theme-d1" id="code"></textarea>
|
||||||
|
@ -56,7 +56,7 @@ class TfNavigationElement extends LitElement {
|
|||||||
status: {type: Object},
|
status: {type: Object},
|
||||||
spark_lines: {type: Object},
|
spark_lines: {type: Object},
|
||||||
version: {type: Object},
|
version: {type: Object},
|
||||||
show_version: {type: Boolean},
|
show_expanded: {type: Boolean},
|
||||||
identity: {type: String},
|
identity: {type: String},
|
||||||
identities: {type: Array},
|
identities: {type: Array},
|
||||||
names: {type: Object},
|
names: {type: Object},
|
||||||
@ -105,7 +105,6 @@ class TfNavigationElement extends LitElement {
|
|||||||
let spark_line = document.createElement('tf-sparkline');
|
let spark_line = document.createElement('tf-sparkline');
|
||||||
spark_line.title = key;
|
spark_line.title = key;
|
||||||
spark_line.classList.add('w3-bar-item');
|
spark_line.classList.add('w3-bar-item');
|
||||||
spark_line.classList.add('w3-hide-small');
|
|
||||||
spark_line.style.paddingRight = '0';
|
spark_line.style.paddingRight = '0';
|
||||||
if (options) {
|
if (options) {
|
||||||
if (options.max) {
|
if (options.max) {
|
||||||
@ -315,13 +314,13 @@ class TfNavigationElement extends LitElement {
|
|||||||
<span
|
<span
|
||||||
class="w3-bar-item"
|
class="w3-bar-item"
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
@click=${() => (this.show_version = !this.show_version)}
|
@click=${() => (this.show_expanded = !this.show_expanded)}
|
||||||
>😎</span
|
>😎</span
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="w3-bar-item"
|
class="w3-bar-item"
|
||||||
style=${'white-space: nowrap' +
|
style=${'white-space: nowrap' +
|
||||||
(this.show_version ? '' : '; display: none')}
|
(this.show_expanded ? '' : '; display: none')}
|
||||||
title=${this.version?.name +
|
title=${this.version?.name +
|
||||||
' ' +
|
' ' +
|
||||||
Object.entries(this.version || {})
|
Object.entries(this.version || {})
|
||||||
@ -376,9 +375,11 @@ class TfNavigationElement extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: undefined}
|
: undefined}
|
||||||
${Object.keys(this.spark_lines)
|
<span class=${this.show_expanded ? '' : 'w3-hide-small'}>
|
||||||
.sort()
|
${Object.keys(this.spark_lines)
|
||||||
.map((x) => this.spark_lines[x])}
|
.sort()
|
||||||
|
.map((x) => this.spark_lines[x])}
|
||||||
|
</span>
|
||||||
${this.render_identity()}
|
${this.render_identity()}
|
||||||
</div>
|
</div>
|
||||||
${this.status?.is_error
|
${this.status?.is_error
|
||||||
|
@ -6,6 +6,14 @@
|
|||||||
<link type="text/css" rel="stylesheet" href="/static/w3.css" />
|
<link type="text/css" rel="stylesheet" href="/static/w3.css" />
|
||||||
<link type="image/svg+xml" rel="icon" href="/static/tildefriends.svg" />
|
<link type="image/svg+xml" rel="icon" href="/static/tildefriends.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta name="title" content="Tilde Friends - Make friends and apps from your web browser." />
|
||||||
|
<meta name="description" content="Tilde Friends is a Secure Scuttlebutt client and a platform for building, running, and sharing web applications. " />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:url" content="https://metatags.io/" />
|
||||||
|
<meta property="og:title" content="Tilde Friends - Make friends and apps from your web browser." />
|
||||||
|
<meta property="og:description" content="Tilde Friends is a Secure Scuttlebutt client and a platform for building, running, and sharing web applications. " />
|
||||||
|
<meta property="og:image" content="/static/tildefriends.svg" />
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function set_access_key_title(event) {
|
function set_access_key_title(event) {
|
||||||
if (!event.srcElement.title) {
|
if (!event.srcElement.title) {
|
||||||
|
Loading…
Reference in New Issue
Block a user