forked from cory/tildefriends
ssb+issues+core: prettier
This commit is contained in:
parent
20701d9cf1
commit
3d8b02a7f3
@ -2,7 +2,7 @@ import * as linkify from './commonmark-linkify.js';
|
|||||||
|
|
||||||
var reUnsafeProtocol = /^javascript:|vbscript:|file:|data:/i;
|
var reUnsafeProtocol = /^javascript:|vbscript:|file:|data:/i;
|
||||||
var reSafeDataProtocol = /^data:image\/(?:png|gif|jpeg|webp)/i;
|
var reSafeDataProtocol = /^data:image\/(?:png|gif|jpeg|webp)/i;
|
||||||
var potentiallyUnsafe = function(url) {
|
var potentiallyUnsafe = function (url) {
|
||||||
return reUnsafeProtocol.test(url) && !reSafeDataProtocol.test(url);
|
return reUnsafeProtocol.test(url) && !reSafeDataProtocol.test(url);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ class TfTabConnectionsElement extends LitElement {
|
|||||||
this.connect_attempt != connection}
|
this.connect_attempt != connection}
|
||||||
style="cursor: pointer"
|
style="cursor: pointer"
|
||||||
class=${'w3-panel ' + (this.connect_success ? 'w3-green' : 'w3-red')}
|
class=${'w3-panel ' + (this.connect_success ? 'w3-green' : 'w3-red')}
|
||||||
@click=${() => this.connect_attempt = undefined}
|
@click=${() => (this.connect_attempt = undefined)}
|
||||||
>
|
>
|
||||||
<p>${this.connect_message}</p>
|
<p>${this.connect_message}</p>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
@ -4,7 +4,7 @@ const k_code_classes = 'w3-theme-l4 w3-theme-border w3-round';
|
|||||||
|
|
||||||
var reUnsafeProtocol = /^javascript:|vbscript:|file:|data:/i;
|
var reUnsafeProtocol = /^javascript:|vbscript:|file:|data:/i;
|
||||||
var reSafeDataProtocol = /^data:image\/(?:png|gif|jpeg|webp)/i;
|
var reSafeDataProtocol = /^data:image\/(?:png|gif|jpeg|webp)/i;
|
||||||
var potentiallyUnsafe = function(url) {
|
var potentiallyUnsafe = function (url) {
|
||||||
return reUnsafeProtocol.test(url) && !reSafeDataProtocol.test(url);
|
return reUnsafeProtocol.test(url) && !reSafeDataProtocol.test(url);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -162,7 +162,10 @@ class TfNavigationElement extends LitElement {
|
|||||||
class="w3-dropdown-content w3-bar-block w3-card-4"
|
class="w3-dropdown-content w3-bar-block w3-card-4"
|
||||||
style="max-width: 100%; right: 0"
|
style="max-width: 100%; right: 0"
|
||||||
>
|
>
|
||||||
<div style="position: fixed; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.25); z-index: -100" @click=${self.toggle_id_dropdown}></div>
|
<div
|
||||||
|
style="position: fixed; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.25); z-index: -100"
|
||||||
|
@click=${self.toggle_id_dropdown}
|
||||||
|
></div>
|
||||||
<button
|
<button
|
||||||
class="w3-bar-item w3-button w3-border"
|
class="w3-bar-item w3-button w3-border"
|
||||||
@click=${() => (window.location.href = '/~core/identity')}
|
@click=${() => (window.location.href = '/~core/identity')}
|
||||||
|
Loading…
Reference in New Issue
Block a user