Skip to content

Commit

Permalink
feat(client): add reply user (#2385)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming authored Apr 25, 2024
1 parent 7a28128 commit ac3d082
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions example/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
},
"builds": [
{
"src": "index.js",
"src": "index.cjs",
"use": "@vercel/node"
}
],
"rewrites": [
{
"source": "/(.*)",
"destination": "index.js"
"destination": "index.cjs"
}
]
}
14 changes: 9 additions & 5 deletions packages/client/src/components/CommentCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,15 @@
</template>
</div>
<!-- eslint-disable vue/no-v-html -->
<div
v-if="!isEditingCurrent"
class="wl-content"
v-html="comment.comment"
/>
<div v-if="!isEditingCurrent" class="wl-content">
<p v-if="comment.reply_user">
<a :href="'#' + comment.pid">@{{ comment.reply_user.nick }}</a>

<span>: </span>
</p>

<div v-html="comment.comment" />
</div>
<!-- eslint-enable vue/no-v-html -->

<div v-if="isAdmin && !isEditingCurrent" class="wl-admin-actions">
Expand Down
8 changes: 8 additions & 0 deletions packages/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@ export default defineConfig({
plugins: [vue()],
envDir: resolve(__dirname),
envPrefix: ['VITE_', 'SERVERURL'],
server: {
proxy: {
'/api': {

Check warning on line 19 in packages/client/vite.config.ts

View workflow job for this annotation

GitHub Actions / test (18, ubuntu-latest)

Object Literal Property name `/api` must match one of the following formats: camelCase, PascalCase, UPPER_CASE

Check warning on line 19 in packages/client/vite.config.ts

View workflow job for this annotation

GitHub Actions / test (20, ubuntu-latest)

Object Literal Property name `/api` must match one of the following formats: camelCase, PascalCase, UPPER_CASE
target: 'http://localhost:9090',
changeOrigin: true,
},
},
},
});

0 comments on commit ac3d082

Please sign in to comment.