Skip to content
Open

Nuux #30

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
1c6a355
Merge pull request #3 from nuuxcode/nest-migration
nuuxcode Mar 23, 2024
e691f70
refactor(schema): refactor prisma schema for better data organization…
nuuxcode Mar 23, 2024
3736135
chore(database): delete redundant database files and unused schema copy
nuuxcode Mar 23, 2024
2c57b1c
Merge pull request #4 from nuuxcode/backend
nuuxcode Mar 23, 2024
298fd92
feat: initial boilerplate from other branch and setup auth with clerk
ayequill Mar 23, 2024
b7d89d7
feat: update user and auth modules, adjust post controller
nuuxcode Mar 24, 2024
e9220e1
feat: add seeding script
nuuxcode Mar 25, 2024
a4f16e9
chore: implement Svix webhook handling to sync data from clerk with d…
nuuxcode Mar 25, 2024
c2393bc
feat: add crud endpoints on nested comments
viictoo Mar 25, 2024
2557a45
Merge pull request #5 from nuuxcode/backend
nuuxcode Mar 25, 2024
99bbfea
feat: update production start script and add dotenv dependency
nuuxcode Mar 25, 2024
fbae93e
feat(forums): add Forum module, service, and controller
nuuxcode Mar 25, 2024
8263d00
feat: update Prisma schema, modify seed scripts, and add dotenv depen…
nuuxcode Mar 25, 2024
bdd489d
feat: enhance post seeding and forum service
nuuxcode Mar 26, 2024
0574cd0
feat(seeds): update post seeder with corresponding titles and contents
nuuxcode Mar 26, 2024
e59ce26
feat(seeds): update user seeder to use unique avatar URLs
nuuxcode Mar 26, 2024
93cc352
feat(forum): include user in getPostsForForum response
nuuxcode Mar 26, 2024
0a5c372
feat(post): enable post controller methods and update field names
nuuxcode Mar 26, 2024
1098cda
feat(post): update createDraft method to include slug and forumId
nuuxcode Mar 26, 2024
2b53e88
fix: soft delete comments and test comments with attachemnts
viictoo Mar 26, 2024
b2f809f
Merge branch 'feat/comment' into feat/comment-seed
viictoo Mar 26, 2024
9e58645
fix: add comment module
viictoo Mar 26, 2024
d808207
feat(post.service): add full-text search and include user and attachm…
nuuxcode Mar 27, 2024
84bb9d4
feat(post.controller): add handler for full-text search requests
nuuxcode Mar 27, 2024
f64cbaa
chore(schema.prisma): enable fullTextSearch preview feature
nuuxcode Mar 27, 2024
1d168d2
feat: add pagination to forum and post services and controllers
nuuxcode Mar 27, 2024
b52606d
feat: add monitoring yaml
viictoo Mar 27, 2024
828df75
feat: add prometheus yaml
viictoo Mar 27, 2024
ee561f1
feat: add prom middlewares
viictoo Mar 27, 2024
c3263a3
fix: update to jwt auth guards on create, update and delete
viictoo Mar 28, 2024
d59c215
Merge feat/comment and backend: Add Comment entity and related DTOs a…
viictoo Mar 28, 2024
4663796
feat(schema): add ownedForumsCount field to User model
nuuxcode Mar 29, 2024
7d1f6bb
refactor(seeder): update image URLs generation logic
nuuxcode Mar 29, 2024
437d0b2
feat(prisma): update schema and seeders to include votesCount, upvote…
nuuxcode Mar 29, 2024
db399d1
feat(post): update controller and service to handle pagination and in…
nuuxcode Mar 29, 2024
b4eaee1
feat(user): update service to use postorderbywithaggregationinput for…
nuuxcode Mar 29, 2024
356dcdd
feat: add forum and user types
ayequill Mar 29, 2024
07653ea
feat: disabled image optimization and added some deps
ayequill Mar 29, 2024
1ce3076
feat: add fetcher hook and axios configuration
ayequill Mar 29, 2024
5ceb619
feat: add dark mode toggle and theme provider components
ayequill Mar 29, 2024
2f3efec
feat: add new logo files
ayequill Mar 29, 2024
845a7ad
feat: refactor page and add new component for posts
ayequill Mar 29, 2024
7c0c8e4
feat: refactor header component and update styles to fit darkmode
ayequill Mar 29, 2024
28ded1a
Merge pull request #6 from nuuxcode/feat/all-posts
nuuxcode Mar 30, 2024
4f15957
feat: add votes, hide and general refactor comments to follow post …
viictoo Mar 30, 2024
d386305
feat: add post comment controller
viictoo Mar 30, 2024
46990b7
feat: add CreateNewCommentDto to handle creating new comments
viictoo Mar 30, 2024
63ffba1
feat: update comment dto for updates on child comments
viictoo Mar 30, 2024
8b7fec6
fix: bug in login functionality
viictoo Mar 30, 2024
c7da17e
feat(forum): update forum-related controllers and services
nuuxcode Mar 30, 2024
7925cfe
feat(post): update post-related controllers and services
nuuxcode Mar 30, 2024
4d2ee2d
feat(user): update user-related controllers and services
nuuxcode Mar 30, 2024
7b12b35
chore(prisma): update Prisma configuration and services
nuuxcode Mar 30, 2024
747fc77
chore(auth): update Auth module configuration
nuuxcode Mar 30, 2024
c3a2918
feat(forum): update Forum DTO
nuuxcode Mar 30, 2024
e63a042
feat(database): add migration for unique slug constraint
nuuxcode Mar 30, 2024
7f09468
feat(vote): add functionality for voting
nuuxcode Mar 30, 2024
89e03c3
feat(moderator): add moderator controller and service
nuuxcode Mar 30, 2024
c1a2559
feat(roles): add roles decorator and guard
nuuxcode Mar 30, 2024
101d2ec
feat(forum): add slug validator
nuuxcode Mar 30, 2024
750d1cb
Merge pull request #7 from nuuxcode/backend
omazoz Mar 30, 2024
43871c4
fix(merge): resolved conflict in comments
nuuxcode Mar 31, 2024
62dbc6a
chore(server): update database schema
nuuxcode Mar 31, 2024
740fbf3
feat(server): implement forum module changes
nuuxcode Mar 31, 2024
379b214
feat(server): implement moderator module changes
nuuxcode Mar 31, 2024
73e7639
feat(server): implement post module changes
nuuxcode Mar 31, 2024
1871d07
feat(server): implement user module changes
nuuxcode Mar 31, 2024
0ba89ab
feat(server): implement vote module changes
nuuxcode Mar 31, 2024
d89de28
feat(server): add migration files to remove status from comments
nuuxcode Mar 31, 2024
8d47bec
feat(prisma): add migration files to add deletedAt fields
nuuxcode Mar 31, 2024
cca5cdc
Merge branch 'main' into feat/backend_comments
viictoo Mar 31, 2024
785cdcc
Merge pull request #8 from nuuxcode/feat/backend_comments
viictoo Mar 31, 2024
32ae3f1
Merge branch 'main' into backend
nuuxcode Mar 31, 2024
d7c2edc
Merge pull request #9 from nuuxcode/backend
viictoo Mar 31, 2024
936bb11
feat(forum): allow getting posts by forum ID or slug
nuuxcode Mar 31, 2024
d6e0f47
refactor(forum): optimize getForumByIdOrSlug method
nuuxcode Mar 31, 2024
9321df5
feat: added forum id to post and forum services
nuuxcode Mar 31, 2024
1bd0a5b
feat: enhance attachment structure in post, comment and forum services
nuuxcode Apr 1, 2024
93fc87b
refactor: simplify attachment structure in post and forum services
nuuxcode Apr 1, 2024
5edc50c
feat: added type
ayequill Apr 1, 2024
cd96e29
feat: refactor layout component and add dark mode support to clerk
ayequill Apr 1, 2024
5b8b303
feat: added a loader
ayequill Apr 1, 2024
d096e3b
refactor: refactor side-bar component and add forum list
ayequill Apr 1, 2024
0b5f789
feat: component to display recent posts with user avatars and forum i…
ayequill Apr 1, 2024
e970dae
fix: fix bug in login functionality
ayequill Apr 1, 2024
e295c54
feat: refactor page and posts components
ayequill Apr 1, 2024
bd69385
feat: add forum page component and fetcher functions
ayequill Apr 1, 2024
f85fd45
feat: add new dependencies for clerk and radix UI
ayequill Apr 1, 2024
82d8670
Merge pull request #10 from nuuxcode/feat/forum-page
nuuxcode Apr 1, 2024
404adce
feat: add report module and endpoints
nuuxcode Apr 1, 2024
2739cb5
feat: enhance forum retrieval with owner details
nuuxcode Apr 1, 2024
e176834
feat: implement follow/unfollow user functionality
nuuxcode Apr 2, 2024
3d7e04b
feat: refactor components and added editor component
ayequill Apr 2, 2024
4b4ddb1
build: add new dependencies for form validation and rich text editing
ayequill Apr 2, 2024
c75e4ab
feat: implement ClerkRequiredGuard in modules
nuuxcode Apr 2, 2024
5733d09
Merge pull request #11 from nuuxcode/feat/create-post
viictoo Apr 2, 2024
392cf34
Merge pull request #12 from nuuxcode/backend
viictoo Apr 2, 2024
e8d295b
feat(post): enhance Swagger documentation and update post service
nuuxcode Apr 2, 2024
ad88365
feat: include user info in comments
nuuxcode Apr 2, 2024
27d0f9b
fix: update package.json dependencies and pnpm lock file
nuuxcode Apr 3, 2024
7b000f7
refactor: improve ui components in header, recent posts, and side bar
nuuxcode Apr 3, 2024
5c00f63
feat: add functionality and improve code readability in page, post, a…
nuuxcode Apr 3, 2024
00a152f
feat: add commenttype interface and update forumpost interface to inc…
nuuxcode Apr 3, 2024
2f20533
feat: add page component for displaying a single post with comments
nuuxcode Apr 3, 2024
1d16139
feat: add comment component for displaying comments and replying func…
nuuxcode Apr 3, 2024
7c0538c
feat: add fullpost component for displaying a complete forum post wit…
nuuxcode Apr 3, 2024
73ed684
feat(server): update comment module to handle parent comment and retu…
nuuxcode Apr 3, 2024
508c22b
feat(server): include user data in post responses in forum service
nuuxcode Apr 3, 2024
2eb32c4
feat(server): add endpoint and method to fetch comments by post id
nuuxcode Apr 3, 2024
9c654a1
feat(server): update roles guard to fetch user roles from the database
nuuxcode Apr 3, 2024
51f40f1
Merge pull request #13 from nuuxcode/frontend
viictoo Apr 3, 2024
b0a2ea4
Merge pull request #14 from nuuxcode/backend
viictoo Apr 3, 2024
b00590a
feat: integrate dash with api
viictoo Apr 3, 2024
66dd9dd
feat(post.dto): add optional imageUrl to CreatePostDTO
nuuxcode Apr 4, 2024
6c26c18
feat(post.service): handle imageUrl in post creation
nuuxcode Apr 4, 2024
47f0123
fix(side-bar): update image src to prevent caching
nuuxcode Apr 4, 2024
bcac607
feat(forum.dto): add optional logo and banner to CreateForumDTO
nuuxcode Apr 4, 2024
6d0481c
feat(forum.service): handle logo and banner in forum creation
nuuxcode Apr 4, 2024
f1baf53
feat(post.service): modify findAll to fetch all posts by default
nuuxcode Apr 4, 2024
ab8a4e4
feat: add toaster component for displaying toast notifications
ayequill Apr 4, 2024
295e959
feat(post.controller): add order query parameter to getAllPosts method
nuuxcode Apr 4, 2024
4a6a37d
feat: refactor form and add image attachment functionality
ayequill Apr 4, 2024
d24e2b5
feat: update post sorting in recentPosts and posts components
ayequill Apr 4, 2024
8ad9162
feat(post): add CommentInput component to post page
nuuxcode Apr 4, 2024
5fde9cb
feat(fetcher): add getUser function and update postComment function
nuuxcode Apr 4, 2024
377ee04
refactor(comment-service): update comment creation logic
nuuxcode Apr 4, 2024
890a6e4
feat(post-controller): add order query parameter to getCommentsByPost…
nuuxcode Apr 4, 2024
5f1a8f0
feat(post-service): add order parameter to findCommentsByPostId function
nuuxcode Apr 4, 2024
0ac9d57
feat(comment-input): add new CommentInput component
nuuxcode Apr 4, 2024
1b34e8f
feat: update application metadata
nuuxcode Apr 4, 2024
fb48fe1
feat: add search functionality
nuuxcode Apr 4, 2024
66c28e3
feat: enable post search on server side
nuuxcode Apr 4, 2024
7a33de3
feat: remove HighlightedPost component
nuuxcode Apr 4, 2024
5dedd5c
refactor: refactor useswr hook in posts component
ayequill Apr 4, 2024
56601a7
feat: refactor form and toast imports and remove unused code
ayequill Apr 4, 2024
2f0303c
cleanup: remove unused dependencies
viictoo Apr 4, 2024
780c738
clean: Delete unused component
viictoo Apr 4, 2024
3dbb24f
clean: Remove unused imports and update routes in App.tsx
viictoo Apr 4, 2024
0b00a54
deat: Update App configs in authProvider.ts
viictoo Apr 4, 2024
881b04b
feat: Remove unused code and fix formatting in header component
viictoo Apr 4, 2024
1aa3f55
feat: import Create and useAutocomplete form
viictoo Apr 4, 2024
705daae
Fix: bug in login functionality
viictoo Apr 4, 2024
ed4019a
feat: Refactor comment list table headers
viictoo Apr 4, 2024
810af7d
feat: Refactor CommentShow component to use @refinedev/core and @refi…
viictoo Apr 4, 2024
6d897c8
feat: reorganize comments page layout
viictoo Apr 4, 2024
9b71e00
fix: Update BarChart component
viictoo Apr 4, 2024
ca6b91e
f eat:Update dashboard layout and charts
viictoo Apr 4, 2024
9d61c84
fix: Refactor imports and remove unused code in posts.tsx
viictoo Apr 4, 2024
18cac67
feat: Refactor forum creation page
viictoo Apr 4, 2024
dc7ce9a
feat: Update form layout and labels in ForumEdit component
viictoo Apr 4, 2024
9edd69a
fieat: Refactor forum, post, and user list components
viictoo Apr 4, 2024
c8306ef
feat: Refactor ForumShow component using custom hooks
viictoo Apr 4, 2024
bf66efb
feat: Add ThemedTitleV2 component to Login page
viictoo Apr 4, 2024
ab78811
fix: Update labels in PostCreate component
viictoo Apr 4, 2024
b7abbc9
feat: add show post page
viictoo Apr 4, 2024
03cb057
fix: Update register in AuthPage component
viictoo Apr 4, 2024
0452c5a
fix: Refactor create headers to improve readability
viictoo Apr 4, 2024
67d8910
feat: restructure show user page layout
viictoo Apr 4, 2024
9d4ab2f
fix(fetcher): add getUser and getMe functions
nuuxcode Apr 5, 2024
730e2d0
style(search): add styling changes to SearchBox component
nuuxcode Apr 5, 2024
75b8d77
feat(user): implement user-related functions in UserController and Us…
nuuxcode Apr 5, 2024
cec1041
feat(forum): implement forum subscription-related functions in ForumC…
nuuxcode Apr 5, 2024
217f835
feat(vote): implement votePost function in VoteController and VoteSer…
nuuxcode Apr 5, 2024
393cec1
fix(commentInput): fix typo in useFetcher function name
nuuxcode Apr 5, 2024
e28821b
feat(profile): add new directory for user profile
nuuxcode Apr 5, 2024
4616036
Merge pull request #15 from nuuxcode/create-post
nuuxcode Apr 5, 2024
0756b12
Merge pull request #16 from nuuxcode/nuux
ayequill Apr 5, 2024
6ebb72a
fix: fix type errors
ayequill Apr 5, 2024
3d38639
feat: added ui component
ayequill Apr 5, 2024
fed21ea
feat: add title validation and create post modal
ayequill Apr 5, 2024
acf02f0
chore(package): update package dependencies
nuuxcode Apr 5, 2024
08c9110
refactor(profile): refactor button color and follow/unfollow function…
nuuxcode Apr 5, 2024
8573ed8
chore(favicon): update favicon icon
nuuxcode Apr 5, 2024
66584d1
fix(layout): fix linting errors in layout component
nuuxcode Apr 5, 2024
f915d82
refactor(fetcher): refactor follow/unfollow user functionality in fet…
nuuxcode Apr 5, 2024
39c5cca
feat(forum): update button text from 'Follow' to 'Subscribe'
nuuxcode Apr 5, 2024
b2c8fb1
Merge pull request #18 from nuuxcode/create-post-modal
nuuxcode Apr 5, 2024
7497536
Merge branch 'main' into nuux
nuuxcode Apr 5, 2024
a2085c1
Merge pull request #19 from nuuxcode/nuux
nuuxcode Apr 5, 2024
b1ef3ca
fix(user-profile): handle null or undefined currentUsername in follow…
nuuxcode Apr 5, 2024
447305b
chore: update pnpm-lock.yaml
nuuxcode Apr 5, 2024
d67445b
refactor: comment unused var
nuuxcode Apr 5, 2024
4f8946a
Merge pull request #20 from nuuxcode/Admin_Dash_API
nuuxcode Apr 5, 2024
25b4877
Merge branch 'main' into nuux
nuuxcode Apr 5, 2024
0abf5d9
fix: client: fix line length in [username]/page.tsx and page.tsx, com…
nuuxcode Apr 5, 2024
09165d6
feat: update cors settings
nuuxcode Apr 5, 2024
51a9f6f
feat: add vercel config
nuuxcode Apr 5, 2024
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
23 changes: 23 additions & 0 deletions Admin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
2 changes: 2 additions & 0 deletions Admin/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
legacy-peer-deps=true
strict-peer-dependencies=false
42 changes: 42 additions & 0 deletions Admin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<div align="center" style="margin: 30px;">
<a href="https://refine.dev/">
<img alt="refine logo" src="https://refine.ams3.cdn.digitaloceanspaces.com/readme/refine-readme-banner.png">
</a>
<br />
<br />

<div align="center">
<a href="https://refine.dev">Home Page</a> |
<a href="https://discord.gg/refine">Discord</a> |
<a href="https://refine.dev/examples/">Examples</a> |
<a href="https://refine.dev/blog/">Blog</a> |
<a href="https://refine.dev/docs/">Documentation</a>

</div>
</div>

<br />

<div align="center"><strong>Build your <a href="https://reactjs.org/">React</a>-based CRUD applications, without constraints.</strong><br>An open source, headless web application framework developed with flexibility in mind.

<br />
<br />

[![Discord](https://img.shields.io/discord/837692625737613362.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/refine)
[![Twitter Follow](https://img.shields.io/twitter/follow/refine_dev?style=social)](https://twitter.com/refine_dev)

<a href="https://www.producthunt.com/posts/refine-3?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-refine&#0045;3" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=362220&theme=light&period=daily" alt="refine - 100&#0037;&#0032;open&#0032;source&#0032;React&#0032;framework&#0032;to&#0032;build&#0032;web&#0032;apps&#0032;3x&#0032;faster | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

</div>

## Try this example on your local

```bash
npm create refine-app@latest -- --example inferencer-material-ui
```

## Try this example on CodeSandbox

<br/>

[![Open inferencer-material-ui example from refine](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/embed/github/refinedev/refine/tree/master/examples/inferencer-material-ui?view=preview&theme=dark&codemirror=1)
15 changes: 15 additions & 0 deletions Admin/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { defineConfig } from "cypress";

export default defineConfig({
projectId: "sq5j3e",
retries: 5,
e2e: {
fixturesFolder: "../../cypress/fixtures",
supportFile: "../../cypress/support/e2e.ts",
},
chromeWebSecurity: false,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 1,
viewportWidth: 1920,
viewportHeight: 1080,
});
Loading