mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-11 10:43:07 +02:00
noogle, update search
This commit is contained in:
@@ -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: {
|
||||||
|
@@ -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";
|
||||||
|
Reference in New Issue
Block a user