mirror of
https://github.com/smolgrrr/TAO.git
synced 2024-09-20 01:11:25 +00:00
misc changes
This commit is contained in:
parent
33da9990f8
commit
4e48aadc84
@ -3,16 +3,12 @@
|
||||
"version": "0.1.0",
|
||||
"private": false,
|
||||
"dependencies": {
|
||||
"@emoji-mart/data": "^1.1.2",
|
||||
"@emoji-mart/react": "^1.1.1",
|
||||
"@headlessui/react": "1.7",
|
||||
"@heroicons/react": "^2.0.18",
|
||||
"@types/jest": "^27.5.2",
|
||||
"@types/node": "^17.0.45",
|
||||
"@types/react": "^18.2.21",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
"emoji-mart": "^5.5.2",
|
||||
"emoji-picker-react": "^4.5.15",
|
||||
"link-preview-js": "^3.0.5",
|
||||
"nostr-tools": "2.5.1",
|
||||
"react": "^18.2.0",
|
||||
|
@ -15,9 +15,9 @@ export default function Header() {
|
||||
<header className="mx-auto px-4 sm:px-6 lg:px-8 py-2">
|
||||
<div className="flex justify-between items-center">
|
||||
<a href="/">
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center gap-2 max-w-60 w-full sm:max-w-none sm:w-auto">
|
||||
<img src="/icon.png" className="h-12" alt="logo" />
|
||||
<span className="font-semibold text-white">
|
||||
<span className="font-semibold text-white truncate">
|
||||
{`~/WIRED${lastPathPart}>`}
|
||||
</span>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
|
||||
export const DefaultHashtags = ['asknostr', 'politics', 'technology', 'bitcoin', 'wired'];
|
||||
export const DefaultHashtags = ['asknostr', 'politics', 'technology', 'proofofwork','bitcoin', 'wired'];
|
||||
|
||||
const Hashtags = () => {
|
||||
const [addedHashtags, setAddedHashtags] = useState<string[]>(JSON.parse(localStorage.getItem('hashtags') as string) || []);
|
||||
|
@ -184,11 +184,11 @@ const Settings = () => {
|
||||
<div className="settings-page py-10">
|
||||
<h1 className="text-lg font-semibold mb-4">About</h1>
|
||||
<div className="flex flex-col">
|
||||
<p>The Anon Operation (TAO) is an anonymous-first agora, built upon the <a className="underline" href="https://nostr.com/">NOSTR protocol</a>.</p>
|
||||
<p>The Wired is an anon agora, built upon the <a className="underline" href="https://nostr.com/">NOSTR protocol</a>.</p>
|
||||
<br />
|
||||
<p>TAO is built to facilitate unstoppable free speech on the internet.</p>
|
||||
<p>The Wired is built to facilitate unstoppable free speech on the internet.</p>
|
||||
<p>-PWA to be widely accessible with distribution via URLS, and to side-step App Store gatekeeping</p>
|
||||
<p>-Uses NOSTR as a censorship-resistant global "social" network</p>
|
||||
<p>-Uses NOSTR as a censorship-resistant "social" network</p>
|
||||
<p>-Employs Proof-of-Work (PoW) as a spam prevention mechanism, as opposed to Captcha, moderation or other verification methods</p>
|
||||
<br />
|
||||
<a href="https://github.com/smolgrrr/TAO">
|
||||
|
@ -298,6 +298,23 @@ export const subHashtagFeed = (
|
||||
onEvent(evt, relay);
|
||||
},
|
||||
filter: {
|
||||
"#t": [hashtag],
|
||||
kinds: [1, 6],
|
||||
since: Math.floor((Date.now() * 0.001) - (age * 60 * 60)),
|
||||
limit: 25,
|
||||
},
|
||||
unsub: true
|
||||
});
|
||||
|
||||
const prefix = Math.floor(16 / 4); // 4 bits in each '0' character
|
||||
sub({ // get past events
|
||||
cb: (evt, relay) => {
|
||||
pubkeys.add(evt.pubkey);
|
||||
notes.add(evt.id);
|
||||
onEvent(evt, relay);
|
||||
},
|
||||
filter: {
|
||||
...(prefix && { ids: ['0'.repeat(prefix)] }),
|
||||
"#t": [hashtag],
|
||||
kinds: [1, 6],
|
||||
since: Math.floor((Date.now() * 0.001) - (age * 60 * 60)),
|
||||
@ -318,16 +335,6 @@ export const subHashtagFeed = (
|
||||
unsub: true,
|
||||
});
|
||||
pubkeys.clear();
|
||||
|
||||
sub({
|
||||
cb: onEvent,
|
||||
filter: {
|
||||
'#e': Array.from(notes),
|
||||
kinds: [1],
|
||||
},
|
||||
unsub: true,
|
||||
});
|
||||
|
||||
notes.clear();
|
||||
}, 2000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user