Comments (9)
Hi,
I tried to add the comment function myself.
- People and post comment and edit after posting:
- The comments have a simple tree structure to collect the sub-comments which responds another comment. User can choose to fold or unfold it:
- Comment needs user to login to post comment or thumb-up/revoke thumb-up. Post author had a 'Author' tab in pill shape:
I haven't raise the PR yet, because I haven't communicated with the repo owner about the solution, yet.
from blogifier.
Solution:
- New table 'Comments' to store comments and user id who posted them, foreign key to 'Posts' table;
- New table 'CommentsLikes' to store thumb-ups and user id, foreign key to 'Comments' table;
- Embed a Blazor Server to 'Blogifier' project, hosting and embeding 'Comments.razor' into each post.cshtml;
- 'CommentCard.razor' show the contents, and 'CommentEditor.razor' show the easyMDE editor to edit or post new comment, are also embeded into 'Comments.razor';
Flaws:
- Blazor Server embeded into existing MVC can not share httpcontext, so the Login function may need changes to avoid user login again for comment;
- As for myself, I changed the Auth funciton to SSO using IdentityServer4, so I haven't study how the original Blogifier project should handle it.
from blogifier.
@LinQiaoPorco
hello
Whether you submit your implemented comment feature to a pr
I'm looking forward to implementing comments
This project is being upgraded, please push it to the dev branch if possible
from blogifier.
Hi, I haven't looked into the project for quite a long time. I will try to PR from latest branch to see if it works.
My previous repo was revised to use OpenID connect, so it is not proper to PR the original one.
I found that dev branch is in .NET 7 already, while I did not plan to hasve .NET 7 SDK. Can I just pr to main branch?
from blogifier.
It can be in the mian-bak branch, the mian branch was wrongly submitted by me and I am asking the warehouse manager to fix it, [mian-bak] is the original warehouse code
But the .net7 update in the dev branch will be updated to the mian branch soon. If you submit to the mian branch, the request will probably not be merged.
from blogifier.
You can try to push to the dev branch and we can solve the problem together
from blogifier.
OK. That will be a messy though. BTW, did you read description on my solution? Would that be OK to progress?
from blogifier.
Yes, there may be a big difference in the login plan
My idea is to use the code that can be used as much as possible to realize the comment function, structure table, logic, etc... even css..
from blogifier.
I remember that the changes target comments function added since this commit.
from blogifier.
Related Issues (20)
- Localizer does not give correct results
- What tools were used to compile static files in Blogifier? HOT 2
- Custom cover images not showing in pages. HOT 2
- I made a step by step installation using Ubuntu
- Stored XSS via filename parameter in '/api/storage/upload/PostImage' HOT 1
- Stored XSS on upload files. HOT 1
- Translate Tool HOT 1
- I can"Resource.zh-CN.resx"
- there is something with "Resource.zh-CN.resx" that I can't understand? HOT 2
- 该项目是否仍在维护? HOT 3
- Changing DB to SQL Server in VS does not work as described in 02-Database.md HOT 2
- Newsletter feature
- I think it's time to upgrade to .NET 7 :) HOT 2
- error: Sorry I did something wrong with the main branch HOT 3
- Successfully ran on MacOS HOT 2
- Build fails HOT 1
- There is a runtime error on https://blogifier.net HOT 1
- Make a Azure Static Web compatible template with coded blog posts HOT 1
- Unable to resolve the .NET SDK version as specified in the global.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blogifier.