Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
holmofy committed Sep 21, 2024
1 parent 712f552 commit 4bf08fe
Show file tree
Hide file tree
Showing 13 changed files with 570 additions and 397 deletions.
38 changes: 38 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ lazy_static = "1.4"
tracing = "0.1"
rand = "0.8"
askama = "0.12"
itertools = "0.13"
itertools = "0.13"
derive_more = { version = "1.0", features = ["full"] }
2 changes: 1 addition & 1 deletion packages/admin/src/services/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import request from '../utils/request.js';

export async function getCommentList({ page = 1, filter }) {
return request({
url: `comment?type=list&owner=${filter.owner}&status=${filter.status}&keyword=${filter.keyword}&page=${page}`,
url: `comment?type=admin&owner=${filter.owner}&status=${filter.status}&keyword=${filter.keyword}&page=${page}`,
method: 'GET',
});
}
Expand Down
2 changes: 2 additions & 0 deletions packages/admin/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export default defineConfig({
'/token': 'http://localhost:8080',
// eslint-disable-next-line @typescript-eslint/naming-convention
'/user': 'http://localhost:8080',
// eslint-disable-next-line @typescript-eslint/naming-convention
'/comment': 'http://localhost:8080',
},
},
});
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@raline/api",
"version": "0.0.1",
"version": "0.0.2",
"description": "Client API for raline comment system",
"keywords": [
"api",
Expand Down
Loading

0 comments on commit 4bf08fe

Please sign in to comment.