Compare commits

..

No commits in common. "a9cb913a4716f75cf7bd48f2fd6fb1b7ace8511c" and "d528bc808e6b7dbdfc23fcd85adef13f2468d349" have entirely different histories.

8 changed files with 46 additions and 71 deletions

View File

@ -3,9 +3,9 @@
MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules MAKEFLAGS += --no-builtin-rules
VERSION_CODE := 19 VERSION_CODE := 18
VERSION_NUMBER := 0.0.19-wip VERSION_NUMBER := 0.0.18-wip
VERSION_NAME := Don't let your loyalty become a burden. VERSION_NAME := Celebrating totality for upwards of 3m1.4s.
SQLITE_URL := https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip SQLITE_URL := https://www.sqlite.org/2024/sqlite-amalgamation-3450300.zip
LIBUV_URL := https://dist.libuv.org/dist/v1.48.0/libuv-v1.48.0.tar.gz LIBUV_URL := https://dist.libuv.org/dist/v1.48.0/libuv-v1.48.0.tar.gz

View File

@ -236,13 +236,7 @@ class TfElement extends LitElement {
console.log(by_count.sort((x, y) => y.count - x.count).slice(0, 20)); console.log(by_count.sort((x, y) => y.count - x.count).slice(0, 20));
let start_time = new Date(); let start_time = new Date();
users = await this.fetch_about(Object.keys(following).sort(), users); users = await this.fetch_about(Object.keys(following).sort(), users);
console.log( console.log('about took', (new Date() - start_time) / 1000.0, 'seconds for', Object.keys(users).length, 'users');
'about took',
(new Date() - start_time) / 1000.0,
'seconds for',
Object.keys(users).length,
'users'
);
this.following = Object.keys(following); this.following = Object.keys(following);
this.users = users; this.users = users;
await tags; await tags;

View File

@ -542,16 +542,15 @@ class TfComposeElement extends LitElement {
${this.render_encrypt()} ${this.render_encrypt()}
<div class="w3-container w3-padding-small"> <div class="w3-container w3-padding-small">
<div class="w3-half"> <div class="w3-half">
<span <span
class="w3-input w3-theme-d1 w3-border" class="w3-input w3-theme-d1 w3-border"
style="resize: vertical; width: 100%; overflow: hidden; white-space: pre-wrap" style="resize: vertical; width: 100%; overflow: hidden; white-space: pre-wrap"
placeholder="Write a post here." placeholder="Write a post here."
id="edit" id="edit"
@input=${this.input} @input=${this.input}
@paste=${this.paste} @paste=${this.paste}
contenteditable contenteditable
>${draft.text}</span >${draft.text}</span>
>
</div> </div>
<div class="w3-half w3-padding"> <div class="w3-half w3-padding">
${content_warning} ${content_warning}

View File

@ -72,7 +72,10 @@ class TfMessageElement extends LitElement {
return expression; return expression;
} }
} }
return html`<div class="w3-button" @click=${this.show_reactions}> return html`<div
class="w3-button"
@click=${this.show_reactions}
>
${(this.message.votes || []).map( ${(this.message.votes || []).map(
(vote) => html` (vote) => html`
<span <span

View File

@ -23,45 +23,29 @@ class TfReactionsModalElement extends LitElement {
render() { render() {
let self = this; let self = this;
return this.votes?.length return this.votes?.length ? html`
? html` <div <div class="w3-modal w3-animate-opacity" style="display: block; box-sizing: border-box">
class="w3-modal w3-animate-opacity" <div class="w3-modal-content w3-card-4 w3-theme-d1">
style="display: block; box-sizing: border-box" <div class="w3-container w3-padding">
> <header class="w3-container">
<div class="w3-modal-content w3-card-4 w3-theme-d1"> <h2>Reactions</h2>
<div class="w3-container w3-padding"> <span class="w3-button w3-display-topright" @click=${this.clear}>&times;</span>
<header class="w3-container"> </header>
<h2>Reactions</h2> <ul class="w3-theme-dark w3-container w3-ul">
<span class="w3-button w3-display-topright" @click=${this.clear} ${this.votes.map(x => html`
>&times;</span <li class="w3-bar">
> <span class="w3-bar-item">${x?.content?.vote?.expression}</span>
</header> <tf-user class="w3-bar-item" id=${x.author} .users=${this.users}></tf-user>
<ul class="w3-theme-dark w3-container w3-ul"> <span class="w3-bar-item w3-right">${new Date(x?.timestamp).toLocaleString()}</span>
${this.votes.map( </li>
(x) => html` `)}
<li class="w3-bar"> </ul>
<span class="w3-bar-item" <footer class="w3-container w3-padding">
>${x?.content?.vote?.expression}</span <button class="w3-button" @click=${this.clear}>Close</button>
> </footer>
<tf-user </div>
class="w3-bar-item" </div>
id=${x.author} </div>` : undefined;
.users=${this.users}
></tf-user>
<span class="w3-bar-item w3-right"
>${new Date(x?.timestamp).toLocaleString()}</span
>
</li>
`
)}
</ul>
<footer class="w3-container w3-padding">
<button class="w3-button" @click=${this.clear}>Close</button>
</footer>
</div>
</div>
</div>`
: undefined;
} }
} }

View File

@ -346,13 +346,8 @@ class TfNavigationElement extends LitElement {
${this.render_permissions()} ${this.render_permissions()}
${this.status?.message && !this.status.is_error ${this.status?.message && !this.status.is_error
? html` ? html`
<link type="text/css" rel="stylesheet" href="/static/w3.css" /> <link type="text/css" rel="stylesheet" href="/static/w3.css" />
<div <div class="w3-bar-item" style="color: ${this.status.color ?? kStatusColor}">${this.status.message}</div>
class="w3-bar-item"
style="color: ${this.status.color ?? kStatusColor}"
>
${this.status.message}
</div>
` `
: undefined} : undefined}
${Object.keys(this.spark_lines) ${Object.keys(this.spark_lines)

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unprompted.tildefriends" package="com.unprompted.tildefriends"
android:versionCode="19" android:versionCode="18"
android:versionName="0.0.19-wip"> android:versionName="0.0.18-wip">
<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="34"/> <uses-sdk android:minSdkVersion="24" android:targetSdkVersion="34"/>
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<application <application

View File

@ -1,2 +1,2 @@
#define VERSION_NUMBER "0.0.19-wip" #define VERSION_NUMBER "0.0.18-wip"
#define VERSION_NAME "Don't let your loyalty become a burden." #define VERSION_NAME "Celebrating totality for upwards of 3m1.4s."