Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] add reply user display || [feat] add reply user display #2385

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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

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

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,
},
},
},
});
Loading