noogle, update search

This commit is contained in:
Believethehype
2024-12-05 11:43:51 +01:00
parent c9a97891fb
commit ee25e33b38
2 changed files with 5 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ import VueNotifications from "vue-notifications";
import {onMounted, ref} from "vue"; import {onMounted, ref} from "vue";
import VueDatePicker from '@vuepic/vue-datepicker'; import VueDatePicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css' import '@vuepic/vue-datepicker/dist/main.css'
import {get_user_infos, getEvents, nextInput, sleep} from "../components/helper/Helper.vue" import {get_user_infos, getEvents, nextInput, sleep, parseandreplacenpubsName} from "../components/helper/Helper.vue"
import StringUtil from "@/components/helper/string.ts"; import StringUtil from "@/components/helper/string.ts";
@@ -452,7 +452,7 @@ async function listen() {
if (items.find(e => e.id.toHex() === evt.id.toHex()) === undefined) { if (items.find(e => e.id.toHex() === evt.id.toHex()) === undefined) {
items.push({ items.push({
id: evt.id, id: evt.id,
content: evt.content, content: await parseandreplacenpubsName(evt.content),
author: name, author: name,
authorurl: "https://njump.me/" + evt.author.toBech32(), authorurl: "https://njump.me/" + evt.author.toBech32(),
links: { links: {

View File

@@ -18,7 +18,8 @@
</div> </div>
</div> </div>
<p>{{ content.substr(0, 320) + "\u2026" }}</p> <!-- <p>{{ content.substr(0, 320) + "\u2026" }}</p>-->
<p v-html="StringUtil.parseImages(content).substr(0, 640) + '\u2026'"></p>
<div style="padding: 2px; text-align: left;"> <div style="padding: 2px; text-align: left;">
<a :href="links.uri" class="menusmall" target="_blank">Nostr Client</a> <a :href="links.uri" class="menusmall" target="_blank">Nostr Client</a>
<a :href="links.njump" class="menusmall" target="_blank">NJump</a> <a :href="links.njump" class="menusmall" target="_blank">NJump</a>
@@ -37,6 +38,7 @@
import type {Header, SortType} from "vue3-easy-data-table"; import type {Header, SortType} from "vue3-easy-data-table";
import store from '../store'; import store from '../store';
import StringUtil from "@/components/helper/string";
const sortBy = "indicator.time"; const sortBy = "indicator.time";
const sortType: SortType = "desc"; const sortType: SortType = "desc";