|
|
@ -1,6 +1,6 @@
|
|
|
|
import {generatePrivateKey, getEventHash, getPublicKey, nip19, signEvent} from 'nostr-tools';
|
|
|
|
import {generatePrivateKey, getEventHash, getPublicKey, nip19, signEvent} from 'nostr-tools';
|
|
|
|
import {zeroLeadingBitsCount} from './utils/crypto';
|
|
|
|
import {zeroLeadingBitsCount} from './utils/crypto';
|
|
|
|
import {elem, elemCanvas, elemShrink, parseTextContent} from './utils/dom';
|
|
|
|
import {elem, elemCanvas, elemShrink, lockScroll, parseTextContent, unlockScroll} from './utils/dom';
|
|
|
|
import {bounce, dateTime, formatTime} from './utils/time';
|
|
|
|
import {bounce, dateTime, formatTime} from './utils/time';
|
|
|
|
import {getHost, getNoxyUrl, isWssUrl} from './utils/url';
|
|
|
|
import {getHost, getNoxyUrl, isWssUrl} from './utils/url';
|
|
|
|
import {sub24hFeed, subNote, subProfile} from './subscriptions'
|
|
|
|
import {sub24hFeed, subNote, subProfile} from './subscriptions'
|
|
|
@ -463,9 +463,6 @@ function appendReplyForm(el) {
|
|
|
|
requestAnimationFrame(() => writeInput.focus());
|
|
|
|
requestAnimationFrame(() => writeInput.focus());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const lockScroll = () => document.body.style.overflow = 'hidden';
|
|
|
|
|
|
|
|
const unlockScroll = () => document.body.style.removeProperty('overflow');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let fitlerDifficulty = JSON.parse(localStorage.getItem('filter_difficulty')) ?? 0;
|
|
|
|
let fitlerDifficulty = JSON.parse(localStorage.getItem('filter_difficulty')) ?? 0;
|
|
|
|
const filterDifficultyInput = document.querySelector('#filterDifficulty');
|
|
|
|
const filterDifficultyInput = document.querySelector('#filterDifficulty');
|
|
|
|
const filterDifficultyDisplay = document.querySelector('[data-display="filter_difficulty"]');
|
|
|
|
const filterDifficultyDisplay = document.querySelector('[data-display="filter_difficulty"]');
|
|
|
|