Changeset b62cefc
- Timestamp:
- 03/19/26 23:26:14 (4 months ago)
- Branches:
- main
- Children:
- acf690c
- Parents:
- e294f7d
- Files:
-
- 70 added
- 6 edited
-
ChapterX.API/Program.cs (modified) (2 diffs)
-
ChapterX.Application/AISuggestion/Commands/AddHandler.cs (modified) (1 diff)
-
ChapterX.Application/AISuggestion/Commands/UpdateHandler.cs (modified) (1 diff)
-
ChapterX.Application/AISuggestion/Commands/UpdateRequest.cs (modified) (1 diff)
-
ChapterX.Domain/Entities/AISuggestion.cs (modified) (1 diff)
-
ChapterX.Infrastructure/Migrations/ApplicationDbContextModelSnapshot.cs (modified) (18 diffs)
-
chapterx-frontend/.gitignore (added)
-
chapterx-frontend/README.md (added)
-
chapterx-frontend/eslint.config.js (added)
-
chapterx-frontend/index.html (added)
-
chapterx-frontend/package-lock.json (added)
-
chapterx-frontend/package.json (added)
-
chapterx-frontend/postcss.config.js (added)
-
chapterx-frontend/public/favicon.svg (added)
-
chapterx-frontend/public/icons.svg (added)
-
chapterx-frontend/src/App.css (added)
-
chapterx-frontend/src/App.tsx (added)
-
chapterx-frontend/src/assets/chapterX-removebg-preview.png (added)
-
chapterx-frontend/src/assets/hero.png (added)
-
chapterx-frontend/src/assets/react.svg (added)
-
chapterx-frontend/src/assets/vite.svg (added)
-
chapterx-frontend/src/components/DevSwitcher.tsx (added)
-
chapterx-frontend/src/components/admin/ContentModerationTable.tsx (added)
-
chapterx-frontend/src/components/admin/PlatformStats.tsx (added)
-
chapterx-frontend/src/components/admin/UserTable.tsx (added)
-
chapterx-frontend/src/components/layout/Footer.tsx (added)
-
chapterx-frontend/src/components/layout/Navbar.tsx (added)
-
chapterx-frontend/src/components/notifications/NotificationDropdown.tsx (added)
-
chapterx-frontend/src/components/story/ChapterList.tsx (added)
-
chapterx-frontend/src/components/story/CommentSection.tsx (added)
-
chapterx-frontend/src/components/story/GenreBadge.tsx (added)
-
chapterx-frontend/src/components/story/LikeButton.tsx (added)
-
chapterx-frontend/src/components/story/StoryGrid.tsx (added)
-
chapterx-frontend/src/components/ui/Avatar.tsx (added)
-
chapterx-frontend/src/components/ui/Badge.tsx (added)
-
chapterx-frontend/src/components/ui/Button.tsx (added)
-
chapterx-frontend/src/components/ui/Modal.tsx (added)
-
chapterx-frontend/src/components/ui/Spinner.tsx (added)
-
chapterx-frontend/src/components/ui/StoryCard.tsx (added)
-
chapterx-frontend/src/components/ui/Toast.tsx (added)
-
chapterx-frontend/src/components/writer/AISuggestionPanel.tsx (added)
-
chapterx-frontend/src/components/writer/CollaboratorManager.tsx (added)
-
chapterx-frontend/src/components/writer/StoryAnalytics.tsx (added)
-
chapterx-frontend/src/data/mockData.ts (added)
-
chapterx-frontend/src/index.css (added)
-
chapterx-frontend/src/main.tsx (added)
-
chapterx-frontend/src/pages/LandingPage.tsx (added)
-
chapterx-frontend/src/pages/NotificationsPage.tsx (added)
-
chapterx-frontend/src/pages/admin/AdminContentPage.tsx (added)
-
chapterx-frontend/src/pages/admin/AdminDashboard.tsx (added)
-
chapterx-frontend/src/pages/admin/AdminGenresPage.tsx (added)
-
chapterx-frontend/src/pages/admin/AdminUsersPage.tsx (added)
-
chapterx-frontend/src/pages/auth/LoginPage.tsx (added)
-
chapterx-frontend/src/pages/auth/RegisterPage.tsx (added)
-
chapterx-frontend/src/pages/browse/BrowsePage.tsx (added)
-
chapterx-frontend/src/pages/browse/GenrePage.tsx (added)
-
chapterx-frontend/src/pages/profile/ProfilePage.tsx (added)
-
chapterx-frontend/src/pages/reading-list/CommunityListsPage.tsx (added)
-
chapterx-frontend/src/pages/reading-list/ReadingListPage.tsx (added)
-
chapterx-frontend/src/pages/story/ChapterReadPage.tsx (added)
-
chapterx-frontend/src/pages/story/StoryDetailPage.tsx (added)
-
chapterx-frontend/src/pages/writer/CreateChapterPage.tsx (added)
-
chapterx-frontend/src/pages/writer/CreateStoryPage.tsx (added)
-
chapterx-frontend/src/pages/writer/EditChapterPage.tsx (added)
-
chapterx-frontend/src/pages/writer/EditStoryPage.tsx (added)
-
chapterx-frontend/src/pages/writer/WriterDashboard.tsx (added)
-
chapterx-frontend/src/store/authStore.ts (added)
-
chapterx-frontend/src/store/notificationStore.ts (added)
-
chapterx-frontend/src/store/storyStore.ts (added)
-
chapterx-frontend/src/store/uiStore.ts (added)
-
chapterx-frontend/src/types/index.ts (added)
-
chapterx-frontend/tailwind.config.js (added)
-
chapterx-frontend/tsconfig.app.json (added)
-
chapterx-frontend/tsconfig.json (added)
-
chapterx-frontend/tsconfig.node.json (added)
-
chapterx-frontend/vite.config.ts (added)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.API/Program.cs
re294f7d rb62cefc 7 7 8 8 var builder = WebApplication.CreateBuilder(args); 9 10 builder.Services.AddCors(options => 11 { 12 options.AddPolicy("Frontend", policy => 13 policy.WithOrigins("http://localhost:5173", "https://localhost:5173") 14 .AllowAnyHeader() 15 .AllowAnyMethod()); 16 }); 9 17 10 18 builder.Services.AddControllers(); … … 67 75 68 76 app.UseHttpsRedirection(); 77 app.UseCors("Frontend"); 69 78 app.UseAuthentication(); 70 79 app.UseAuthorization(); -
ChapterX.Application/AISuggestion/Commands/AddHandler.cs
re294f7d rb62cefc 23 23 SuggestedText = request.SuggestedText, 24 24 StoryId = request.StoryId, 25 Accepted = false,25 Accepted = null, 26 26 CreatedAt = DateTime.UtcNow 27 27 }; -
ChapterX.Application/AISuggestion/Commands/UpdateHandler.cs
re294f7d rb62cefc 25 25 suggestion.SuggestedText = request.SuggestedText; 26 26 suggestion.Accepted = request.Accepted; 27 if (request.Accepted )27 if (request.Accepted == true) 28 28 suggestion.AppliedAt = DateTime.UtcNow; 29 29 -
ChapterX.Application/AISuggestion/Commands/UpdateRequest.cs
re294f7d rb62cefc 7 7 string OriginalText, 8 8 string SuggestedText, 9 bool Accepted9 bool? Accepted 10 10 ) : IRequest<UpdateResponse>; 11 11 } -
ChapterX.Domain/Entities/AISuggestion.cs
re294f7d rb62cefc 13 13 public string OriginalText { get; set; } = string.Empty; 14 14 public string SuggestedText { get; set; } = string.Empty; 15 public bool Accepted { get; set; }15 public bool? Accepted { get; set; } 16 16 public DateTime CreatedAt { get; set; } 17 17 public DateTime? AppliedAt { get; set; } -
ChapterX.Infrastructure/Migrations/ApplicationDbContextModelSnapshot.cs
re294f7d rb62cefc 31 31 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id")); 32 32 33 b.Property<bool >("Accepted")33 b.Property<bool?>("Accepted") 34 34 .HasColumnType("boolean"); 35 35 … … 59 59 b.HasIndex("StoryId"); 60 60 61 b.ToTable("AISuggestions" );61 b.ToTable("AISuggestions", (string)null); 62 62 }); 63 63 … … 78 78 .IsUnique(); 79 79 80 b.ToTable("Admins" );80 b.ToTable("Admins", (string)null); 81 81 }); 82 82 … … 129 129 b.HasIndex("StoryId"); 130 130 131 b.ToTable("Chapters" );131 b.ToTable("Chapters", (string)null); 132 132 }); 133 133 … … 159 159 b.HasIndex("UserId"); 160 160 161 b.ToTable("Collaborations" );161 b.ToTable("Collaborations", (string)null); 162 162 }); 163 163 … … 192 192 b.HasIndex("UserId"); 193 193 194 b.ToTable("Comments" );194 b.ToTable("Comments", (string)null); 195 195 }); 196 196 … … 209 209 b.HasKey("Id"); 210 210 211 b.ToTable("Genres" );211 b.ToTable("Genres", (string)null); 212 212 }); 213 213 … … 232 232 b.HasIndex("StoryId"); 233 233 234 b.ToTable("HasGenres" );234 b.ToTable("HasGenres", (string)null); 235 235 }); 236 236 … … 263 263 b.HasIndex("UserId"); 264 264 265 b.ToTable("Likes" );265 b.ToTable("Likes", (string)null); 266 266 }); 267 267 … … 302 302 b.HasIndex("StoryId"); 303 303 304 b.ToTable("NeedApprovals" );304 b.ToTable("NeedApprovals", (string)null); 305 305 }); 306 306 … … 329 329 b.HasKey("Id"); 330 330 331 b.ToTable("Notifications" );331 b.ToTable("Notifications", (string)null); 332 332 }); 333 333 … … 360 360 b.HasIndex("UserId"); 361 361 362 b.ToTable("Notifies" );362 b.ToTable("Notifies", (string)null); 363 363 }); 364 364 … … 394 394 b.HasIndex("UserId"); 395 395 396 b.ToTable("ReadingLists" );396 b.ToTable("ReadingLists", (string)null); 397 397 }); 398 398 … … 420 420 b.HasIndex("StoryId"); 421 421 422 b.ToTable("ReadingListItems" );422 b.ToTable("ReadingListItems", (string)null); 423 423 }); 424 424 … … 439 439 .IsUnique(); 440 440 441 b.ToTable("RegularUsers" );441 b.ToTable("RegularUsers", (string)null); 442 442 }); 443 443 … … 484 484 b.HasIndex("WriterId"); 485 485 486 b.ToTable("Stories" );486 b.ToTable("Stories", (string)null); 487 487 }); 488 488 … … 523 523 b.HasKey("Id"); 524 524 525 b.ToTable("Users" );525 b.ToTable("Users", (string)null); 526 526 }); 527 527 … … 546 546 .IsUnique(); 547 547 548 b.ToTable("Writers" );548 b.ToTable("Writers", (string)null); 549 549 }); 550 550
Note:
See TracChangeset
for help on using the changeset viewer.
