Compare commits
No commits in common. "9c8b9220690596f5f5f675e510b0b39a42011ed8" and "58e9646fa6969f4b3f47286a4b8ce698f34439e5" have entirely different histories.
9c8b922069
...
58e9646fa6
@ -208,12 +208,11 @@ $(ANDROID_TARGETS): CFLAGS += \
|
|||||||
-Wno-unknown-warning-option
|
-Wno-unknown-warning-option
|
||||||
$(ANDROID_TARGETS): LDFLAGS += --sysroot $(ANDROID_NDK)/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC
|
$(ANDROID_TARGETS): LDFLAGS += --sysroot $(ANDROID_NDK)/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC
|
||||||
$(DEBUG_TARGETS): CFLAGS += -DDEBUG -Og
|
$(DEBUG_TARGETS): CFLAGS += -DDEBUG -Og
|
||||||
$(DEBUG_TARGETS): LDFLAGS += -Og
|
|
||||||
$(RELEASE_TARGETS): CFLAGS += \
|
$(RELEASE_TARGETS): CFLAGS += \
|
||||||
-DNDEBUG \
|
-DNDEBUG \
|
||||||
-flto \
|
-flto
|
||||||
-Oz
|
$(NONANDROID_RELEASE_TARGETS): CFLAGS += -O3
|
||||||
$(RELEASE_TARGETS): LDFLAGS += -Oz
|
$(ANDROID_RELEASE_TARGETS): CFLAGS += -Oz
|
||||||
$(WINDOWS_TARGETS): CC = x86_64-w64-mingw32-gcc-win32
|
$(WINDOWS_TARGETS): CC = x86_64-w64-mingw32-gcc-win32
|
||||||
$(WINDOWS_TARGETS): AS = $(CC)
|
$(WINDOWS_TARGETS): AS = $(CC)
|
||||||
$(WINDOWS_TARGETS): CFLAGS += \
|
$(WINDOWS_TARGETS): CFLAGS += \
|
||||||
|
@ -121,7 +121,7 @@ class TfElement extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
next_channel(delta) {
|
next_channel(delta) {
|
||||||
let channel_names = ['', '@', '🔐', ...this.channels.map((x) => '#' + x)];
|
let channel_names = ['', '@', '🔐', ...this.channels.map(x => '#' + x)];
|
||||||
let index = channel_names.indexOf(this.hash.substring(1));
|
let index = channel_names.indexOf(this.hash.substring(1));
|
||||||
index = index != -1 ? index + delta : 0;
|
index = index != -1 ? index + delta : 0;
|
||||||
tfrpc.rpc.setHash(
|
tfrpc.rpc.setHash(
|
||||||
@ -543,13 +543,11 @@ class TfElement extends LitElement {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
let contents =
|
let contents = !this.loaded || this.loading
|
||||||
!this.loaded || this.loading
|
|
||||||
? html`<div
|
? html`<div
|
||||||
class="w3-display-middle w3-panel w3-theme-l5 w3-card-4 w3-padding-large w3-round-xlarge w3-xlarge"
|
class="w3-display-middle w3-panel w3-theme-l5 w3-card-4 w3-padding-large w3-round-xlarge w3-xlarge"
|
||||||
>
|
>
|
||||||
<span class="w3-spin" style="display: inline-block">🦀</span>
|
<span class="w3-spin" style="display: inline-block">🦀</span> Loading...
|
||||||
Loading...
|
|
||||||
</div>`
|
</div>`
|
||||||
: this.render_tab();
|
: this.render_tab();
|
||||||
return html`
|
return html`
|
||||||
|
@ -202,20 +202,18 @@ class TfComposeElement extends LitElement {
|
|||||||
channel: this.channel,
|
channel: this.channel,
|
||||||
};
|
};
|
||||||
if (this.root || this.branch) {
|
if (this.root || this.branch) {
|
||||||
message.root = this.new_thread ? (this.branch ?? this.root) : this.root;
|
message.root = this.new_thread ? this.branch ?? this.root : this.root;
|
||||||
message.branch = this.branch;
|
message.branch = this.branch;
|
||||||
}
|
}
|
||||||
let reply = Object.fromEntries(
|
let reply = Object.fromEntries((await tfrpc.rpc.query(
|
||||||
(
|
|
||||||
await tfrpc.rpc.query(
|
|
||||||
`
|
`
|
||||||
SELECT messages.id, messages.author FROM messages
|
SELECT messages.id, messages.author FROM messages
|
||||||
JOIN json_each(?) AS refs ON messages.id = refs.value
|
JOIN json_each(?) AS refs ON messages.id = refs.value
|
||||||
`,
|
`,
|
||||||
[JSON.stringify([this.root, this.branch])]
|
[JSON.stringify([this.root, this.branch])])).map(row => [
|
||||||
)
|
row.id,
|
||||||
).map((row) => [row.id, row.author])
|
row.author,
|
||||||
);
|
]));
|
||||||
if (Object.keys(reply).length) {
|
if (Object.keys(reply).length) {
|
||||||
message.reply = reply;
|
message.reply = reply;
|
||||||
}
|
}
|
||||||
@ -487,13 +485,9 @@ class TfComposeElement extends LitElement {
|
|||||||
|
|
||||||
render_new_thread() {
|
render_new_thread() {
|
||||||
let self = this;
|
let self = this;
|
||||||
if (
|
if (this.root !== undefined && this.branch !== undefined && this.root != this.branch) {
|
||||||
this.root !== undefined &&
|
|
||||||
this.branch !== undefined &&
|
|
||||||
this.root != this.branch
|
|
||||||
) {
|
|
||||||
return html`
|
return html`
|
||||||
<input type="checkbox" class="w3-check w3-theme-d1" id="new_thread" @change=${() => (self.new_thread = !self.new_thread)} ?checked=${self.new_thread}></input>
|
<input type="checkbox" class="w3-check w3-theme-d1" id="new_thread" @change=${() => self.new_thread = !self.new_thread} ?checked=${self.new_thread}></input>
|
||||||
<label for="new_thread">New Thread</label>
|
<label for="new_thread">New Thread</label>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
@ -592,7 +586,8 @@ class TfComposeElement extends LitElement {
|
|||||||
${Object.values(draft.mentions || {}).map((x) =>
|
${Object.values(draft.mentions || {}).map((x) =>
|
||||||
self.render_mention(x)
|
self.render_mention(x)
|
||||||
)}
|
)}
|
||||||
${this.render_attach_app()} ${this.render_content_warning()}
|
${this.render_attach_app()}
|
||||||
|
${this.render_content_warning()}
|
||||||
${this.render_new_thread()}
|
${this.render_new_thread()}
|
||||||
<button class="w3-button w3-theme-d1" id="submit" @click=${this.submit}>
|
<button class="w3-button w3-theme-d1" id="submit" @click=${this.submit}>
|
||||||
Submit
|
Submit
|
||||||
|
@ -216,18 +216,13 @@ class TfTabNewsElement extends LitElement {
|
|||||||
style=${this.hash == '#🔐' ? 'font-weight: bold' : undefined}
|
style=${this.hash == '#🔐' ? 'font-weight: bold' : undefined}
|
||||||
>🔐private ${this.unread_status('🔐')}</a
|
>🔐private ${this.unread_status('🔐')}</a
|
||||||
>
|
>
|
||||||
${Object.keys(this.drafts)
|
${Object.keys(this.drafts).sort().map(x => html`
|
||||||
.sort()
|
|
||||||
.map(
|
|
||||||
(x) => html`
|
|
||||||
<a
|
<a
|
||||||
href=${'#' + encodeURIComponent(x)}
|
href=${'#' + encodeURIComponent(x)}
|
||||||
class="w3-bar-item w3-button"
|
class="w3-bar-item w3-button"
|
||||||
style="text-wrap: nowrap; text-overflow: ellipsis"
|
style="text-wrap: nowrap; text-overflow: ellipsis">📝 ${this.drafts[x]?.text ?? x}</a
|
||||||
>📝 ${this.drafts[x]?.text ?? x}</a
|
|
||||||
>
|
>
|
||||||
`
|
`)}
|
||||||
)}
|
|
||||||
${this.channels.map(
|
${this.channels.map(
|
||||||
(x) => html`
|
(x) => html`
|
||||||
<a
|
<a
|
||||||
|
@ -73,10 +73,8 @@ build_the_thing() {
|
|||||||
no-whirlpool
|
no-whirlpool
|
||||||
no-weak-ssl-ciphers
|
no-weak-ssl-ciphers
|
||||||
no-zlib
|
no-zlib
|
||||||
-Oz
|
-Os
|
||||||
-DOPENSSL_SMALL_FOOTPRINT
|
-DOPENSSL_SMALL_FOOTPRINT
|
||||||
-ffunction-sections
|
|
||||||
-fdata-sections
|
|
||||||
-flto"
|
-flto"
|
||||||
pwd
|
pwd
|
||||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
||||||
|
@ -29,14 +29,14 @@ do
|
|||||||
case $build_target in
|
case $build_target in
|
||||||
ios64-xcrun)
|
ios64-xcrun)
|
||||||
TRIBLE="arm64-darwin-ios"
|
TRIBLE="arm64-darwin-ios"
|
||||||
OPTIONS="--static -static -Oz -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined -miphoneos-version-min=9.0"
|
OPTIONS="--static -static -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined -miphoneos-version-min=9.0"
|
||||||
DESTDIR="/tmp/$BUILD_DIR/arm64-ios"
|
DESTDIR="/tmp/$BUILD_DIR/arm64-ios"
|
||||||
SSL_TARGET="ios64-xcrun"
|
SSL_TARGET="ios64-xcrun"
|
||||||
CC=clang
|
CC=clang
|
||||||
;;
|
;;
|
||||||
iossimulator-xcrun)
|
iossimulator-xcrun)
|
||||||
TRIBLE="x86_64-darwin-ios"
|
TRIBLE="x86_64-darwin-ios"
|
||||||
OPTIONS="--static -static -Oz -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined"
|
OPTIONS="--static -static -ffunction-sections -fdata-sections -fPIC -Wno-macro-redefined"
|
||||||
DESTDIR="/tmp/$BUILD_DIR/x86_64-iossim"
|
DESTDIR="/tmp/$BUILD_DIR/x86_64-iossim"
|
||||||
SSL_TARGET="iossimulator-xcrun"
|
SSL_TARGET="iossimulator-xcrun"
|
||||||
CC=clang
|
CC=clang
|
||||||
|
@ -69,10 +69,8 @@ no-uplink
|
|||||||
no-whirlpool
|
no-whirlpool
|
||||||
no-weak-ssl-ciphers
|
no-weak-ssl-ciphers
|
||||||
no-zlib
|
no-zlib
|
||||||
-Oz
|
-Os
|
||||||
-DOPENSSL_SMALL_FOOTPRINT
|
-DOPENSSL_SMALL_FOOTPRINT
|
||||||
-ffunction-sections
|
|
||||||
-fdata-sections
|
|
||||||
-flto"
|
-flto"
|
||||||
pwd
|
pwd
|
||||||
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
echo "./Configure $SSL_TARGET $OPTIONS $GLOBAL_OPTIONS" && \
|
||||||
|
@ -56,7 +56,7 @@ build_the_thing() {
|
|||||||
no-uplink
|
no-uplink
|
||||||
no-weak-ssl-ciphers
|
no-weak-ssl-ciphers
|
||||||
no-zlib
|
no-zlib
|
||||||
-Oz
|
-Os
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-fdata-sections
|
-fdata-sections
|
||||||
-flto
|
-flto
|
||||||
|
Loading…
x
Reference in New Issue
Block a user