Compare commits
3 Commits
8f359fdff0
...
81bea9275e
| Author | SHA1 | Date | |
|---|---|---|---|
|
81bea9275e
|
|||
|
2bcd04cd82
|
|||
|
1b676508db
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,6 +8,7 @@ dist
|
|||||||
|
|
||||||
# Node dependencies
|
# Node dependencies
|
||||||
node_modules
|
node_modules
|
||||||
|
bun.lock
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
|
|||||||
22
app/components/Post/PostQuickReply.vue
Normal file
22
app/components/Post/PostQuickReply.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<v-card
|
||||||
|
title="Post your reply"
|
||||||
|
prepend-icon="mdi-post-lamp"
|
||||||
|
flat
|
||||||
|
border
|
||||||
|
density="comfortable"
|
||||||
|
>
|
||||||
|
<v-card-text>
|
||||||
|
<v-textarea
|
||||||
|
placeholder="Talk about this post for a bit."
|
||||||
|
disabled
|
||||||
|
max-rows="5"
|
||||||
|
auto-grow
|
||||||
|
:hide-details="true"
|
||||||
|
></v-textarea>
|
||||||
|
<div class="flex justify-end mt-4">
|
||||||
|
<v-btn append-icon="mdi-send">Send</v-btn>
|
||||||
|
</div>
|
||||||
|
</v-card-text>
|
||||||
|
</v-card>
|
||||||
|
</template>
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="replies-list">
|
<div class="replies-list">
|
||||||
|
<post-quick-reply v-if="!props.hideQuickReply" class="mb-4" />
|
||||||
|
|
||||||
<!-- Error State -->
|
<!-- Error State -->
|
||||||
<v-alert
|
<v-alert
|
||||||
v-if="hasError"
|
v-if="hasError"
|
||||||
@@ -60,6 +62,7 @@ const router = useRouter()
|
|||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
params: RepliesListParams
|
params: RepliesListParams
|
||||||
|
hideQuickReply: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
defineEmits<{
|
defineEmits<{
|
||||||
@@ -72,7 +75,7 @@ const { replies, hasError, error, loadMore, refresh } = useRepliesList(
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.replies-list .v-infinite-scroll:first-child .v-infinite-scroll__side {
|
.replies-list .v-infinite-scroll .v-infinite-scroll__side:first-child {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
import {
|
import { createMarkdownExit, type PluginWithParams } from "markdown-exit"
|
||||||
createMarkdownExit,
|
import hljs from "highlight.js"
|
||||||
type PluginWithParams
|
import hljsMarkdown from "markdown-it-highlightjs"
|
||||||
} from "markdown-exit"
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import texmath from "markdown-it-texmath"
|
import texmath from "markdown-it-texmath"
|
||||||
import katex from "katex"
|
import katex from "katex"
|
||||||
|
|
||||||
|
import "highlight.js/styles/a11y-dark.min.css"
|
||||||
|
|
||||||
export function useMarkdownProcessor() {
|
export function useMarkdownProcessor() {
|
||||||
const serverUrl = useSolarNetworkUrl()
|
const serverUrl = useSolarNetworkUrl()
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ export function useMarkdownProcessor() {
|
|||||||
delimiters: "dollars",
|
delimiters: "dollars",
|
||||||
katexOptions: { macros: { "\\RR": "\\mathbb{R}" } }
|
katexOptions: { macros: { "\\RR": "\\mathbb{R}" } }
|
||||||
})
|
})
|
||||||
|
.use(hljsMarkdown, { hljs })
|
||||||
.use(imgSolarNetworkPlugin, { serverUrl: serverUrl })
|
.use(imgSolarNetworkPlugin, { serverUrl: serverUrl })
|
||||||
|
|
||||||
// Keep the empty lines
|
// Keep the empty lines
|
||||||
|
|||||||
@@ -25,9 +25,11 @@
|
|||||||
"blurhash": "^2.0.5",
|
"blurhash": "^2.0.5",
|
||||||
"cfturnstile-vue3": "^2.0.0",
|
"cfturnstile-vue3": "^2.0.0",
|
||||||
"eslint": "^9.39.1",
|
"eslint": "^9.39.1",
|
||||||
|
"highlightjs": "^9.16.2",
|
||||||
"katex": "^0.16.25",
|
"katex": "^0.16.25",
|
||||||
"luxon": "^3.7.2",
|
"luxon": "^3.7.2",
|
||||||
"markdown-exit": "^1.0.0-beta.6",
|
"markdown-exit": "^1.0.0-beta.6",
|
||||||
|
"markdown-it-highlightjs": "^4.2.0",
|
||||||
"markdown-it-texmath": "^1.0.0",
|
"markdown-it-texmath": "^1.0.0",
|
||||||
"nuxt": "^4.2.0",
|
"nuxt": "^4.2.0",
|
||||||
"nuxt-og-image": "^5.1.12",
|
"nuxt-og-image": "^5.1.12",
|
||||||
|
|||||||
Reference in New Issue
Block a user