core: Default to loading into the ssb app. No more messing around.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 26m3s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 26m3s
This commit is contained in:
parent
d1b7681efc
commit
23db09f9b7
@ -593,14 +593,17 @@ class TfElement extends LitElement {
|
||||
)}
|
||||
</div>
|
||||
`;
|
||||
let contents =
|
||||
this.guest ?
|
||||
html`<div
|
||||
let contents = this.guest
|
||||
? html`<div
|
||||
class="w3-display-middle w3-panel w3-theme-l5 w3-card-4 w3-padding-large w3-round-xlarge w3-xlarge w3-container"
|
||||
>
|
||||
<p>⚠️🦀 Must be logged in to Tilde Friends to scuttle here. 🦀⚠️</p>
|
||||
<footer class="w3-center">
|
||||
<a class="w3-button w3-theme-d1" href=${`/login?return=${encodeURIComponent(this.url)}`}>Login</a>
|
||||
<a
|
||||
class="w3-button w3-theme-d1"
|
||||
href=${`/login?return=${encodeURIComponent(this.url)}`}
|
||||
>Login</a
|
||||
>
|
||||
</footer>
|
||||
</div>`
|
||||
: !this.loaded || this.loading
|
||||
|
@ -253,7 +253,10 @@ class TfMessageElement extends LitElement {
|
||||
render_mentions() {
|
||||
let mentions = this.message?.content?.mentions || [];
|
||||
mentions = mentions.filter(
|
||||
(x) => this.message?.content?.text?.indexOf(typeof(x) === 'string' ? x : x.link) === -1
|
||||
(x) =>
|
||||
this.message?.content?.text?.indexOf(
|
||||
typeof x === 'string' ? x : x.link
|
||||
) === -1
|
||||
);
|
||||
if (mentions.length) {
|
||||
let self = this;
|
||||
|
@ -339,7 +339,7 @@ static JSValue _util_defaultGlobalSettings(JSContext* context, JSValueConst this
|
||||
.default_value = _is_mobile() ? JS_NewInt32(context, (int)(1.0f * 365 * 24 * 60 * 60)) : JS_UNDEFINED },
|
||||
{ .name = "fetch_hosts", .type = "string", .description = "Comma-separated list of host names to which HTTP fetch requests are allowed. None if empty." },
|
||||
{ .name = "http_redirect", .type = "string", .description = "If connecting by HTTP and HTTPS is configured, Location header prefix (ie, \"http://example.com\")" },
|
||||
{ .name = "index", .type = "string", .description = "Default path.", .default_value = JS_NewString(context, "/~core/apps") },
|
||||
{ .name = "index", .type = "string", .description = "Default path.", .default_value = JS_NewString(context, "/~core/ssb/") },
|
||||
{ .name = "index_map", .type = "textarea", .description = "Mappings from hostname to redirect path, one per line, as in: \"www.tildefriends.net=/~core/index/\"" },
|
||||
{ .name = "peer_exchange",
|
||||
.type = "boolean",
|
||||
|
@ -71,7 +71,7 @@ try:
|
||||
driver = webdriver.Firefox(options = options, service = service)
|
||||
wait = WebDriverWait(driver, 10)
|
||||
|
||||
driver.get('http://localhost:8888')
|
||||
driver.get('http://localhost:8888/~core/apps/')
|
||||
select(driver, ['tf-navigation', 'shadow_root', '=login'], ('click',))
|
||||
select(driver, ['tf-auth', 'shadow_root', '#register_label'], ('click',))
|
||||
select(driver, ['tf-auth', 'shadow_root', '#name'], ('send_keys', 'adminuser'))
|
||||
@ -89,7 +89,7 @@ try:
|
||||
select(driver, ['tf-navigation', 'shadow_root', '#identity'], ('click',))
|
||||
select(driver, ['tf-navigation', 'shadow_root', '#logout'], ('click',))
|
||||
|
||||
driver.get('http://localhost:8888')
|
||||
driver.get('http://localhost:8888/~core/apps/')
|
||||
select(driver, ['tf-navigation', 'shadow_root', '=login'], ('click',))
|
||||
select(driver, ['tf-auth', 'shadow_root', '#register_label'], ('click',))
|
||||
select(driver, ['tf-auth', 'shadow_root', '#name'], ('send_keys', 'testuser'))
|
||||
@ -140,7 +140,7 @@ try:
|
||||
select(driver, ['tf-navigation', 'shadow_root', '#close_error'], ('click',))
|
||||
select(driver, ['tf-navigation', 'shadow_root', '=edit'], ('click',))
|
||||
|
||||
driver.get('http://localhost:8888')
|
||||
driver.get('http://localhost:8888/~core/apps/')
|
||||
|
||||
select(driver, ['#document', 'frame', '=identity'])
|
||||
|
||||
@ -170,7 +170,7 @@ try:
|
||||
id1 = select(driver, ['#document', 'frame', 'li']).text.split(' ')[-1]
|
||||
assert id0 == id1
|
||||
|
||||
driver.get('http://localhost:8888')
|
||||
driver.get('http://localhost:8888/~core/apps/')
|
||||
select(driver, ['#document', 'frame', '=ssb'], ('click',))
|
||||
select(driver, ['#document', 'frame', 'tf-app', 'shadow_root', '#tf-tab-news', 'shadow_root', '#tf-compose', 'shadow_root', '#edit'], ('send_keys', 'Hello, world!'))
|
||||
select(driver, ['#document', 'frame', 'tf-app', 'shadow_root', '#tf-tab-news', 'shadow_root', '#tf-compose', 'shadow_root', '#submit'], ('click',))
|
||||
|
Loading…
Reference in New Issue
Block a user