mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-10 14:53:02 +02:00
noogle: fixes
This commit is contained in:
11
ui/noogle/public/opensearch.xml
Normal file
11
ui/noogle/public/opensearch.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
|
||||||
|
<ShortName>Noogle</ShortName>
|
||||||
|
<Description>Search the Nostr</Description>
|
||||||
|
<Url type="text/html" method="get" template="https://noogle.lol?search={searchTerms}"/>
|
||||||
|
<Image height="16" width="16" type="image/vnd.microsoft.icon">
|
||||||
|
https://noogle.lol/favicon.ico
|
||||||
|
</Image>
|
||||||
|
<moz:SearchForm>http://my-site/search</moz:SearchForm>
|
||||||
|
<Url type="application/opensearchdescription+xml" rel="self" template="https://noogle.lol/opensearch.xml"/>
|
||||||
|
</OpenSearchDescription>
|
||||||
|
|
@@ -6,6 +6,7 @@ import Nip07 from "@/components/Nip07.vue";
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Noogle Search" />
|
||||||
|
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
@@ -13,6 +13,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
||||||
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<br>
|
<br>
|
||||||
<Search/>
|
<Search/>
|
||||||
|
@@ -29,8 +29,8 @@ const message = ref("");
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
let urlParams = new URLSearchParams(window.location.search);
|
let urlParams = new URLSearchParams(window.location.search);
|
||||||
if (urlParams.has('search')) {
|
if (urlParams.has('q')) {
|
||||||
message.value = urlParams.get('search')
|
message.value = urlParams.get('q')
|
||||||
await sleep(1000)
|
await sleep(1000)
|
||||||
await send_search_request(message.value)
|
await send_search_request(message.value)
|
||||||
}
|
}
|
||||||
@@ -348,6 +348,7 @@ defineProps({
|
|||||||
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div class="greetings">
|
<div class="greetings">
|
||||||
<img alt="Nostr logo" class="logo" src="../assets/nostr-purple.svg" />
|
<img alt="Nostr logo" class="logo" src="../assets/nostr-purple.svg" />
|
||||||
<br>
|
<br>
|
||||||
@@ -356,7 +357,7 @@ defineProps({
|
|||||||
Search the Nostr with Data Vending Machines</h2>
|
Search the Nostr with Data Vending Machines</h2>
|
||||||
<h3>
|
<h3>
|
||||||
<br>
|
<br>
|
||||||
<input class="c-Input" type="search" autofocus placeholder="Search..." v-model="message" @keyup.enter="send_search_request(message)" @keydown.enter="nextInput">
|
<input class="c-Input" type="search" name="s" autofocus placeholder="Search..." v-model="message" @keyup.enter="send_search_request(message)" @keydown.enter="nextInput">
|
||||||
<button class="v-Button" @click="send_search_request(message)">Search the Nostr</button>
|
<button class="v-Button" @click="send_search_request(message)">Search the Nostr</button>
|
||||||
</h3>
|
</h3>
|
||||||
<!-- <div class="collapse bg-base-200">
|
<!-- <div class="collapse bg-base-200">
|
||||||
|
@@ -21,7 +21,7 @@ const store = createStore({
|
|||||||
"wss://nos.lol",
|
"wss://nos.lol",
|
||||||
"wss://pablof7z.nostr1.com",
|
"wss://pablof7z.nostr1.com",
|
||||||
"wss://relay.nostr.net",
|
"wss://relay.nostr.net",
|
||||||
"wss://relay.nostr.band",
|
//"wss://relay.nostr.band",
|
||||||
//"wss://nostr-pub.wellorder.net",
|
//"wss://nostr-pub.wellorder.net",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user