diff --git a/apps/socialmon/.env.local.example b/apps/redditmon/.env.local.example similarity index 100% rename from apps/socialmon/.env.local.example rename to apps/redditmon/.env.local.example diff --git a/apps/socialmon/.gitignore b/apps/redditmon/.gitignore similarity index 100% rename from apps/socialmon/.gitignore rename to apps/redditmon/.gitignore diff --git a/apps/socialmon/.prettierignore b/apps/redditmon/.prettierignore similarity index 100% rename from apps/socialmon/.prettierignore rename to apps/redditmon/.prettierignore diff --git a/apps/socialmon/.vscode/settings.json b/apps/redditmon/.vscode/settings.json similarity index 100% rename from apps/socialmon/.vscode/settings.json rename to apps/redditmon/.vscode/settings.json diff --git a/apps/socialmon/README.md b/apps/redditmon/README.md similarity index 100% rename from apps/socialmon/README.md rename to apps/redditmon/README.md diff --git a/apps/socialmon/eslint.config.js b/apps/redditmon/eslint.config.js similarity index 100% rename from apps/socialmon/eslint.config.js rename to apps/redditmon/eslint.config.js diff --git a/apps/socialmon/next-env.d.ts b/apps/redditmon/next-env.d.ts similarity index 100% rename from apps/socialmon/next-env.d.ts rename to apps/redditmon/next-env.d.ts diff --git a/apps/socialmon/next.config.mjs b/apps/redditmon/next.config.mjs similarity index 100% rename from apps/socialmon/next.config.mjs rename to apps/redditmon/next.config.mjs diff --git a/apps/socialmon/package.json b/apps/redditmon/package.json similarity index 98% rename from apps/socialmon/package.json rename to apps/redditmon/package.json index bd25bd821..441ce5b7c 100644 --- a/apps/socialmon/package.json +++ b/apps/redditmon/package.json @@ -1,5 +1,5 @@ { - "name": "@gfe/socialmon", + "name": "@gfe/redditmon", "version": "0.0.1", "type": "module", "scripts": { diff --git a/apps/socialmon/postcss.config.cjs b/apps/redditmon/postcss.config.cjs similarity index 100% rename from apps/socialmon/postcss.config.cjs rename to apps/redditmon/postcss.config.cjs index 12a703d90..4df9d3ba3 100644 --- a/apps/socialmon/postcss.config.cjs +++ b/apps/redditmon/postcss.config.cjs @@ -1,6 +1,6 @@ module.exports = { plugins: { - tailwindcss: {}, autoprefixer: {}, + tailwindcss: {}, }, }; diff --git a/apps/socialmon/prisma/migrations/20231207042257_reddit_posts/migration.sql b/apps/redditmon/prisma/migrations/20231207042257_reddit_posts/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20231207042257_reddit_posts/migration.sql rename to apps/redditmon/prisma/migrations/20231207042257_reddit_posts/migration.sql diff --git a/apps/socialmon/prisma/migrations/20231207043858_reddit_posts/migration.sql b/apps/redditmon/prisma/migrations/20231207043858_reddit_posts/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20231207043858_reddit_posts/migration.sql rename to apps/redditmon/prisma/migrations/20231207043858_reddit_posts/migration.sql diff --git a/apps/socialmon/prisma/migrations/20231211013249_reddit_posts/migration.sql b/apps/redditmon/prisma/migrations/20231211013249_reddit_posts/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20231211013249_reddit_posts/migration.sql rename to apps/redditmon/prisma/migrations/20231211013249_reddit_posts/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240626062035_add_subreddit/migration.sql b/apps/redditmon/prisma/migrations/20240626062035_add_subreddit/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240626062035_add_subreddit/migration.sql rename to apps/redditmon/prisma/migrations/20240626062035_add_subreddit/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240722031834_add_keywords_and_created_at_field/migration.sql b/apps/redditmon/prisma/migrations/20240722031834_add_keywords_and_created_at_field/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240722031834_add_keywords_and_created_at_field/migration.sql rename to apps/redditmon/prisma/migrations/20240722031834_add_keywords_and_created_at_field/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240722052444_add_reddit_accounts_model/migration.sql b/apps/redditmon/prisma/migrations/20240722052444_add_reddit_accounts_model/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240722052444_add_reddit_accounts_model/migration.sql rename to apps/redditmon/prisma/migrations/20240722052444_add_reddit_accounts_model/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240723022707_drop_client_id_and_clientsecret/migration.sql b/apps/redditmon/prisma/migrations/20240723022707_drop_client_id_and_clientsecret/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240723022707_drop_client_id_and_clientsecret/migration.sql rename to apps/redditmon/prisma/migrations/20240723022707_drop_client_id_and_clientsecret/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240723022946_change_model_name_to_reddit_user/migration.sql b/apps/redditmon/prisma/migrations/20240723022946_change_model_name_to_reddit_user/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240723022946_change_model_name_to_reddit_user/migration.sql rename to apps/redditmon/prisma/migrations/20240723022946_change_model_name_to_reddit_user/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240731085759_add_user_model_for_socialmon/migration.sql b/apps/redditmon/prisma/migrations/20240731085759_add_user_model_for_socialmon/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240731085759_add_user_model_for_socialmon/migration.sql rename to apps/redditmon/prisma/migrations/20240731085759_add_user_model_for_socialmon/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240802023534_enable_uuid_ossp/migration.sql b/apps/redditmon/prisma/migrations/20240802023534_enable_uuid_ossp/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240802023534_enable_uuid_ossp/migration.sql rename to apps/redditmon/prisma/migrations/20240802023534_enable_uuid_ossp/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240802041606_add_reply_and_user_relation/migration.sql b/apps/redditmon/prisma/migrations/20240802041606_add_reply_and_user_relation/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240802041606_add_reply_and_user_relation/migration.sql rename to apps/redditmon/prisma/migrations/20240802041606_add_reply_and_user_relation/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240830033338_socialmon_schema_changes/migration.sql b/apps/redditmon/prisma/migrations/20240830033338_socialmon_schema_changes/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240830033338_socialmon_schema_changes/migration.sql rename to apps/redditmon/prisma/migrations/20240830033338_socialmon_schema_changes/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240919035846_add_indexes/migration.sql b/apps/redditmon/prisma/migrations/20240919035846_add_indexes/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240919035846_add_indexes/migration.sql rename to apps/redditmon/prisma/migrations/20240919035846_add_indexes/migration.sql diff --git a/apps/socialmon/prisma/migrations/20240919121000_add_posts_last_fetched_timestamp_in_project_model/migration.sql b/apps/redditmon/prisma/migrations/20240919121000_add_posts_last_fetched_timestamp_in_project_model/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20240919121000_add_posts_last_fetched_timestamp_in_project_model/migration.sql rename to apps/redditmon/prisma/migrations/20240919121000_add_posts_last_fetched_timestamp_in_project_model/migration.sql diff --git a/apps/socialmon/prisma/migrations/20250527110417_add_project_subreddit_keywords_model/migration.sql b/apps/redditmon/prisma/migrations/20250527110417_add_project_subreddit_keywords_model/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20250527110417_add_project_subreddit_keywords_model/migration.sql rename to apps/redditmon/prisma/migrations/20250527110417_add_project_subreddit_keywords_model/migration.sql diff --git a/apps/socialmon/prisma/migrations/20250702130452_add_replied_status_to_posts/migration.sql b/apps/redditmon/prisma/migrations/20250702130452_add_replied_status_to_posts/migration.sql similarity index 100% rename from apps/socialmon/prisma/migrations/20250702130452_add_replied_status_to_posts/migration.sql rename to apps/redditmon/prisma/migrations/20250702130452_add_replied_status_to_posts/migration.sql diff --git a/apps/socialmon/prisma/migrations/migration_lock.toml b/apps/redditmon/prisma/migrations/migration_lock.toml similarity index 100% rename from apps/socialmon/prisma/migrations/migration_lock.toml rename to apps/redditmon/prisma/migrations/migration_lock.toml diff --git a/apps/socialmon/prisma/schema.prisma b/apps/redditmon/prisma/schema.prisma similarity index 100% rename from apps/socialmon/prisma/schema.prisma rename to apps/redditmon/prisma/schema.prisma diff --git a/apps/socialmon/public/favicon.ico b/apps/redditmon/public/favicon.ico similarity index 100% rename from apps/socialmon/public/favicon.ico rename to apps/redditmon/public/favicon.ico diff --git a/apps/socialmon/src/app/(auth)/layout.tsx b/apps/redditmon/src/app/(auth)/layout.tsx similarity index 100% rename from apps/socialmon/src/app/(auth)/layout.tsx rename to apps/redditmon/src/app/(auth)/layout.tsx diff --git a/apps/socialmon/src/app/(auth)/login/page.tsx b/apps/redditmon/src/app/(auth)/login/page.tsx similarity index 100% rename from apps/socialmon/src/app/(auth)/login/page.tsx rename to apps/redditmon/src/app/(auth)/login/page.tsx diff --git a/apps/socialmon/src/app/(auth)/unauthorized/page.tsx b/apps/redditmon/src/app/(auth)/unauthorized/page.tsx similarity index 100% rename from apps/socialmon/src/app/(auth)/unauthorized/page.tsx rename to apps/redditmon/src/app/(auth)/unauthorized/page.tsx diff --git a/apps/socialmon/src/app/(projects)/layout.tsx b/apps/redditmon/src/app/(projects)/layout.tsx similarity index 100% rename from apps/socialmon/src/app/(projects)/layout.tsx rename to apps/redditmon/src/app/(projects)/layout.tsx diff --git a/apps/socialmon/src/app/(projects)/page.tsx b/apps/redditmon/src/app/(projects)/page.tsx similarity index 94% rename from apps/socialmon/src/app/(projects)/page.tsx rename to apps/redditmon/src/app/(projects)/page.tsx index ffb910c47..46e367321 100644 --- a/apps/socialmon/src/app/(projects)/page.tsx +++ b/apps/redditmon/src/app/(projects)/page.tsx @@ -7,7 +7,7 @@ import { getUser } from '~/app/lib/auth'; export const metadata: Metadata = { description: 'Social moderator', - title: 'Socialmon | Projects', + title: 'Redditmon | Projects', }; export default async function Page() { diff --git a/apps/socialmon/src/app/(projects)/projects/create/page.tsx b/apps/redditmon/src/app/(projects)/projects/create/page.tsx similarity index 91% rename from apps/socialmon/src/app/(projects)/projects/create/page.tsx rename to apps/redditmon/src/app/(projects)/projects/create/page.tsx index 7688a2c39..c9330a327 100644 --- a/apps/socialmon/src/app/(projects)/projects/create/page.tsx +++ b/apps/redditmon/src/app/(projects)/projects/create/page.tsx @@ -7,7 +7,7 @@ import { getUser } from '~/app/lib/auth'; export const metadata: Metadata = { description: 'Social moderator', - title: 'Socialmon | Create project', + title: 'Redditmon | Create project', }; export default async function Page() { diff --git a/apps/socialmon/src/app/RootLayout.tsx b/apps/redditmon/src/app/RootLayout.tsx similarity index 100% rename from apps/socialmon/src/app/RootLayout.tsx rename to apps/redditmon/src/app/RootLayout.tsx diff --git a/apps/socialmon/src/app/api/auth/[...nextauth]/route.ts b/apps/redditmon/src/app/api/auth/[...nextauth]/route.ts similarity index 100% rename from apps/socialmon/src/app/api/auth/[...nextauth]/route.ts rename to apps/redditmon/src/app/api/auth/[...nextauth]/route.ts diff --git a/apps/socialmon/src/app/api/reddit/crawl/route.ts b/apps/redditmon/src/app/api/reddit/crawl/route.ts similarity index 100% rename from apps/socialmon/src/app/api/reddit/crawl/route.ts rename to apps/redditmon/src/app/api/reddit/crawl/route.ts diff --git a/apps/socialmon/src/app/layout.tsx b/apps/redditmon/src/app/layout.tsx similarity index 95% rename from apps/socialmon/src/app/layout.tsx rename to apps/redditmon/src/app/layout.tsx index a16749a7f..0ee7703dd 100644 --- a/apps/socialmon/src/app/layout.tsx +++ b/apps/redditmon/src/app/layout.tsx @@ -11,7 +11,7 @@ type Props = Readonly<{ export const metadata: Metadata = { description: 'Social moderator', - title: 'Socialmon', + title: 'Redditmon', }; export default function Layout({ children }: Props) { diff --git a/apps/socialmon/src/app/lib/auth.ts b/apps/redditmon/src/app/lib/auth.ts similarity index 100% rename from apps/socialmon/src/app/lib/auth.ts rename to apps/redditmon/src/app/lib/auth.ts diff --git a/apps/socialmon/src/app/lib/prompt.ts b/apps/redditmon/src/app/lib/prompt.ts similarity index 100% rename from apps/socialmon/src/app/lib/prompt.ts rename to apps/redditmon/src/app/lib/prompt.ts diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(default)/activity/page.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(default)/activity/page.tsx similarity index 100% rename from apps/socialmon/src/app/projects/[projectSlug]/(default)/activity/page.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(default)/activity/page.tsx diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(default)/detail/page.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(default)/detail/page.tsx similarity index 98% rename from apps/socialmon/src/app/projects/[projectSlug]/(default)/detail/page.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(default)/detail/page.tsx index 7faf5dfad..8418a7d4b 100644 --- a/apps/socialmon/src/app/projects/[projectSlug]/(default)/detail/page.tsx +++ b/apps/redditmon/src/app/projects/[projectSlug]/(default)/detail/page.tsx @@ -15,7 +15,7 @@ type Props = Readonly<{ export const metadata: Metadata = { description: 'Social moderator', - title: 'Socialmon | Project detail', + title: 'Redditmon | Project detail', }; export default async function Page({ params }: Props) { diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(default)/edit/ProjectEditPage.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(default)/edit/ProjectEditPage.tsx similarity index 100% rename from apps/socialmon/src/app/projects/[projectSlug]/(default)/edit/ProjectEditPage.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(default)/edit/ProjectEditPage.tsx diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(default)/edit/page.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(default)/edit/page.tsx similarity index 95% rename from apps/socialmon/src/app/projects/[projectSlug]/(default)/edit/page.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(default)/edit/page.tsx index d1a864987..1ea06113b 100644 --- a/apps/socialmon/src/app/projects/[projectSlug]/(default)/edit/page.tsx +++ b/apps/redditmon/src/app/projects/[projectSlug]/(default)/edit/page.tsx @@ -15,7 +15,7 @@ type Props = Readonly<{ export const metadata: Metadata = { description: 'Social moderator', - title: 'Socialmon | Edit project', + title: 'Redditmon | Edit project', }; export default async function Page({ params }: Props) { diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(default)/layout.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(default)/layout.tsx similarity index 100% rename from apps/socialmon/src/app/projects/[projectSlug]/(default)/layout.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(default)/layout.tsx diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(default)/posts/[id]/page.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(default)/posts/[id]/page.tsx similarity index 100% rename from apps/socialmon/src/app/projects/[projectSlug]/(default)/posts/[id]/page.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(default)/posts/[id]/page.tsx diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(default)/users/page.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(default)/users/page.tsx similarity index 92% rename from apps/socialmon/src/app/projects/[projectSlug]/(default)/users/page.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(default)/users/page.tsx index eed3fdb30..f2b21bcd3 100644 --- a/apps/socialmon/src/app/projects/[projectSlug]/(default)/users/page.tsx +++ b/apps/redditmon/src/app/projects/[projectSlug]/(default)/users/page.tsx @@ -5,7 +5,7 @@ import UsersList from '~/components/users/UsersList'; export const metadata: Metadata = { description: 'Social moderator', - title: 'Socialmon | Users', + title: 'Redditmon | Users', }; export default async function Page() { diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/@detail/(.)posts/[id]/page.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/@detail/(.)posts/[id]/page.tsx similarity index 100% rename from apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/@detail/(.)posts/[id]/page.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/@detail/(.)posts/[id]/page.tsx diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/@detail/default.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/@detail/default.tsx similarity index 100% rename from apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/@detail/default.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/@detail/default.tsx diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/layout.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/layout.tsx similarity index 100% rename from apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/layout.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/layout.tsx diff --git a/apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/page.tsx b/apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/page.tsx similarity index 89% rename from apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/page.tsx rename to apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/page.tsx index 042d11234..eca2e329f 100644 --- a/apps/socialmon/src/app/projects/[projectSlug]/(split-layout)/page.tsx +++ b/apps/redditmon/src/app/projects/[projectSlug]/(split-layout)/page.tsx @@ -4,7 +4,7 @@ import PostList from '~/components/posts/PostList/PostList'; export const metadata: Metadata = { description: 'Social moderator', - title: 'Socialmon | Posts', + title: 'Redditmon | Posts', }; export default function Page() { diff --git a/apps/socialmon/src/components/activity/ActivityItem.tsx b/apps/redditmon/src/components/activity/ActivityItem.tsx similarity index 100% rename from apps/socialmon/src/components/activity/ActivityItem.tsx rename to apps/redditmon/src/components/activity/ActivityItem.tsx diff --git a/apps/socialmon/src/components/activity/ActivityLogList.tsx b/apps/redditmon/src/components/activity/ActivityLogList.tsx similarity index 100% rename from apps/socialmon/src/components/activity/ActivityLogList.tsx rename to apps/redditmon/src/components/activity/ActivityLogList.tsx diff --git a/apps/socialmon/src/components/auth/LoginForm.tsx b/apps/redditmon/src/components/auth/LoginForm.tsx similarity index 97% rename from apps/socialmon/src/components/auth/LoginForm.tsx rename to apps/redditmon/src/components/auth/LoginForm.tsx index 869ff9c47..aa6c1c9e9 100644 --- a/apps/socialmon/src/components/auth/LoginForm.tsx +++ b/apps/redditmon/src/components/auth/LoginForm.tsx @@ -15,7 +15,7 @@ export default function LoginForm() { return (
- Socialmon + Redditmon / diff --git a/apps/socialmon/src/components/auth/redirectToLoginPageIfNotLoggedIn.ts b/apps/redditmon/src/components/auth/redirectToLoginPageIfNotLoggedIn.ts similarity index 100% rename from apps/socialmon/src/components/auth/redirectToLoginPageIfNotLoggedIn.ts rename to apps/redditmon/src/components/auth/redirectToLoginPageIfNotLoggedIn.ts diff --git a/apps/socialmon/src/components/common/KeyboardChar.tsx b/apps/redditmon/src/components/common/KeyboardChar.tsx similarity index 100% rename from apps/socialmon/src/components/common/KeyboardChar.tsx rename to apps/redditmon/src/components/common/KeyboardChar.tsx diff --git a/apps/socialmon/src/components/common/ParseMarkdown.ts b/apps/redditmon/src/components/common/ParseMarkdown.ts similarity index 100% rename from apps/socialmon/src/components/common/ParseMarkdown.ts rename to apps/redditmon/src/components/common/ParseMarkdown.ts diff --git a/apps/socialmon/src/components/common/ProjectsNavbar/ProjectsNavbar.tsx b/apps/redditmon/src/components/common/ProjectsNavbar/ProjectsNavbar.tsx similarity index 100% rename from apps/socialmon/src/components/common/ProjectsNavbar/ProjectsNavbar.tsx rename to apps/redditmon/src/components/common/ProjectsNavbar/ProjectsNavbar.tsx diff --git a/apps/socialmon/src/components/common/ProjectsNavbar/index.ts b/apps/redditmon/src/components/common/ProjectsNavbar/index.ts similarity index 100% rename from apps/socialmon/src/components/common/ProjectsNavbar/index.ts rename to apps/redditmon/src/components/common/ProjectsNavbar/index.ts diff --git a/apps/socialmon/src/components/common/ShortcutDisplay.tsx b/apps/redditmon/src/components/common/ShortcutDisplay.tsx similarity index 100% rename from apps/socialmon/src/components/common/ShortcutDisplay.tsx rename to apps/redditmon/src/components/common/ShortcutDisplay.tsx diff --git a/apps/socialmon/src/components/common/datetime/RelativeTimestamp.tsx b/apps/redditmon/src/components/common/datetime/RelativeTimestamp.tsx similarity index 100% rename from apps/socialmon/src/components/common/datetime/RelativeTimestamp.tsx rename to apps/redditmon/src/components/common/datetime/RelativeTimestamp.tsx diff --git a/apps/socialmon/src/components/common/datetime/relativeTimestampValues.ts b/apps/redditmon/src/components/common/datetime/relativeTimestampValues.ts similarity index 100% rename from apps/socialmon/src/components/common/datetime/relativeTimestampValues.ts rename to apps/redditmon/src/components/common/datetime/relativeTimestampValues.ts diff --git a/apps/socialmon/src/components/global/GlobalProviders.tsx b/apps/redditmon/src/components/global/GlobalProviders.tsx similarity index 100% rename from apps/socialmon/src/components/global/GlobalProviders.tsx rename to apps/redditmon/src/components/global/GlobalProviders.tsx diff --git a/apps/socialmon/src/components/global/TrpcClientProvider.tsx b/apps/redditmon/src/components/global/TrpcClientProvider.tsx similarity index 100% rename from apps/socialmon/src/components/global/TrpcClientProvider.tsx rename to apps/redditmon/src/components/global/TrpcClientProvider.tsx diff --git a/apps/socialmon/src/components/posts/InterceptedPostDetailClient.tsx b/apps/redditmon/src/components/posts/InterceptedPostDetailClient.tsx similarity index 100% rename from apps/socialmon/src/components/posts/InterceptedPostDetailClient.tsx rename to apps/redditmon/src/components/posts/InterceptedPostDetailClient.tsx diff --git a/apps/socialmon/src/components/posts/PostDetailPage.tsx b/apps/redditmon/src/components/posts/PostDetailPage.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostDetailPage.tsx rename to apps/redditmon/src/components/posts/PostDetailPage.tsx diff --git a/apps/socialmon/src/components/posts/PostList/FetchPostButton.tsx b/apps/redditmon/src/components/posts/PostList/FetchPostButton.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostList/FetchPostButton.tsx rename to apps/redditmon/src/components/posts/PostList/FetchPostButton.tsx diff --git a/apps/socialmon/src/components/posts/PostList/PostDetail.tsx b/apps/redditmon/src/components/posts/PostList/PostDetail.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostList/PostDetail.tsx rename to apps/redditmon/src/components/posts/PostList/PostDetail.tsx diff --git a/apps/socialmon/src/components/posts/PostList/PostItem.tsx b/apps/redditmon/src/components/posts/PostList/PostItem.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostList/PostItem.tsx rename to apps/redditmon/src/components/posts/PostList/PostItem.tsx diff --git a/apps/socialmon/src/components/posts/PostList/PostList.tsx b/apps/redditmon/src/components/posts/PostList/PostList.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostList/PostList.tsx rename to apps/redditmon/src/components/posts/PostList/PostList.tsx diff --git a/apps/socialmon/src/components/posts/PostList/PostMetadata.tsx b/apps/redditmon/src/components/posts/PostList/PostMetadata.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostList/PostMetadata.tsx rename to apps/redditmon/src/components/posts/PostList/PostMetadata.tsx diff --git a/apps/socialmon/src/components/posts/PostList/PostResponse.tsx b/apps/redditmon/src/components/posts/PostList/PostResponse.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostList/PostResponse.tsx rename to apps/redditmon/src/components/posts/PostList/PostResponse.tsx diff --git a/apps/socialmon/src/components/posts/PostList/PostStats.tsx b/apps/redditmon/src/components/posts/PostList/PostStats.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostList/PostStats.tsx rename to apps/redditmon/src/components/posts/PostList/PostStats.tsx diff --git a/apps/socialmon/src/components/posts/PostRelevanceActionButton.tsx b/apps/redditmon/src/components/posts/PostRelevanceActionButton.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostRelevanceActionButton.tsx rename to apps/redditmon/src/components/posts/PostRelevanceActionButton.tsx diff --git a/apps/socialmon/src/components/posts/PostReplyStatusActionButton.tsx b/apps/redditmon/src/components/posts/PostReplyStatusActionButton.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostReplyStatusActionButton.tsx rename to apps/redditmon/src/components/posts/PostReplyStatusActionButton.tsx diff --git a/apps/socialmon/src/components/posts/PostsContext.tsx b/apps/redditmon/src/components/posts/PostsContext.tsx similarity index 100% rename from apps/socialmon/src/components/posts/PostsContext.tsx rename to apps/redditmon/src/components/posts/PostsContext.tsx diff --git a/apps/socialmon/src/components/posts/comments/CommentRepliesThreadLines.tsx b/apps/redditmon/src/components/posts/comments/CommentRepliesThreadLines.tsx similarity index 100% rename from apps/socialmon/src/components/posts/comments/CommentRepliesThreadLines.tsx rename to apps/redditmon/src/components/posts/comments/CommentRepliesThreadLines.tsx diff --git a/apps/socialmon/src/components/posts/comments/PostComment.tsx b/apps/redditmon/src/components/posts/comments/PostComment.tsx similarity index 100% rename from apps/socialmon/src/components/posts/comments/PostComment.tsx rename to apps/redditmon/src/components/posts/comments/PostComment.tsx diff --git a/apps/socialmon/src/components/posts/comments/PostCommentReplies.tsx b/apps/redditmon/src/components/posts/comments/PostCommentReplies.tsx similarity index 100% rename from apps/socialmon/src/components/posts/comments/PostCommentReplies.tsx rename to apps/redditmon/src/components/posts/comments/PostCommentReplies.tsx diff --git a/apps/socialmon/src/components/posts/comments/PostCommentsList.tsx b/apps/redditmon/src/components/posts/comments/PostCommentsList.tsx similarity index 100% rename from apps/socialmon/src/components/posts/comments/PostCommentsList.tsx rename to apps/redditmon/src/components/posts/comments/PostCommentsList.tsx diff --git a/apps/socialmon/src/components/posts/hooks/usePostDetailShortcuts.ts b/apps/redditmon/src/components/posts/hooks/usePostDetailShortcuts.ts similarity index 100% rename from apps/socialmon/src/components/posts/hooks/usePostDetailShortcuts.ts rename to apps/redditmon/src/components/posts/hooks/usePostDetailShortcuts.ts diff --git a/apps/socialmon/src/components/posts/hooks/usePostTabShortcuts.ts b/apps/redditmon/src/components/posts/hooks/usePostTabShortcuts.ts similarity index 100% rename from apps/socialmon/src/components/posts/hooks/usePostTabShortcuts.ts rename to apps/redditmon/src/components/posts/hooks/usePostTabShortcuts.ts diff --git a/apps/socialmon/src/components/posts/utils.ts b/apps/redditmon/src/components/posts/utils.ts similarity index 100% rename from apps/socialmon/src/components/posts/utils.ts rename to apps/redditmon/src/components/posts/utils.ts diff --git a/apps/socialmon/src/components/project/ProjectCreatePage.tsx b/apps/redditmon/src/components/project/ProjectCreatePage.tsx similarity index 100% rename from apps/socialmon/src/components/project/ProjectCreatePage.tsx rename to apps/redditmon/src/components/project/ProjectCreatePage.tsx diff --git a/apps/socialmon/src/components/project/ProjectForm.tsx b/apps/redditmon/src/components/project/ProjectForm.tsx similarity index 100% rename from apps/socialmon/src/components/project/ProjectForm.tsx rename to apps/redditmon/src/components/project/ProjectForm.tsx diff --git a/apps/socialmon/src/components/project/ProjectProductToAdvertiseInput.tsx b/apps/redditmon/src/components/project/ProjectProductToAdvertiseInput.tsx similarity index 100% rename from apps/socialmon/src/components/project/ProjectProductToAdvertiseInput.tsx rename to apps/redditmon/src/components/project/ProjectProductToAdvertiseInput.tsx diff --git a/apps/socialmon/src/components/project/ProjectsPage.tsx b/apps/redditmon/src/components/project/ProjectsPage.tsx similarity index 100% rename from apps/socialmon/src/components/project/ProjectsPage.tsx rename to apps/redditmon/src/components/project/ProjectsPage.tsx diff --git a/apps/socialmon/src/components/project/SelectProductDropdown.tsx b/apps/redditmon/src/components/project/SelectProductDropdown.tsx similarity index 100% rename from apps/socialmon/src/components/project/SelectProductDropdown.tsx rename to apps/redditmon/src/components/project/SelectProductDropdown.tsx diff --git a/apps/socialmon/src/components/ui/Container/Container.tsx b/apps/redditmon/src/components/ui/Container/Container.tsx similarity index 100% rename from apps/socialmon/src/components/ui/Container/Container.tsx rename to apps/redditmon/src/components/ui/Container/Container.tsx diff --git a/apps/socialmon/src/components/ui/Container/index.ts b/apps/redditmon/src/components/ui/Container/index.ts similarity index 100% rename from apps/socialmon/src/components/ui/Container/index.ts rename to apps/redditmon/src/components/ui/Container/index.ts diff --git a/apps/socialmon/src/components/ui/CustomToaster/CustomToaster.tsx b/apps/redditmon/src/components/ui/CustomToaster/CustomToaster.tsx similarity index 100% rename from apps/socialmon/src/components/ui/CustomToaster/CustomToaster.tsx rename to apps/redditmon/src/components/ui/CustomToaster/CustomToaster.tsx diff --git a/apps/socialmon/src/components/ui/CustomToaster/index.ts b/apps/redditmon/src/components/ui/CustomToaster/index.ts similarity index 100% rename from apps/socialmon/src/components/ui/CustomToaster/index.ts rename to apps/redditmon/src/components/ui/CustomToaster/index.ts diff --git a/apps/socialmon/src/components/ui/MobilePostModal.tsx b/apps/redditmon/src/components/ui/MobilePostModal.tsx similarity index 100% rename from apps/socialmon/src/components/ui/MobilePostModal.tsx rename to apps/redditmon/src/components/ui/MobilePostModal.tsx diff --git a/apps/socialmon/src/components/ui/Navbar/Navbar.tsx b/apps/redditmon/src/components/ui/Navbar/Navbar.tsx similarity index 97% rename from apps/socialmon/src/components/ui/Navbar/Navbar.tsx rename to apps/redditmon/src/components/ui/Navbar/Navbar.tsx index 1f471c498..1a245016a 100644 --- a/apps/socialmon/src/components/ui/Navbar/Navbar.tsx +++ b/apps/redditmon/src/components/ui/Navbar/Navbar.tsx @@ -36,7 +36,7 @@ export default function Navbar({ navItems, navUser }: Props) { lts={1} size="md" tt="uppercase"> - Socialmon + Redditmon {navItems} diff --git a/apps/socialmon/src/components/ui/Navbar/NavbarUserAvatar.tsx b/apps/redditmon/src/components/ui/Navbar/NavbarUserAvatar.tsx similarity index 100% rename from apps/socialmon/src/components/ui/Navbar/NavbarUserAvatar.tsx rename to apps/redditmon/src/components/ui/Navbar/NavbarUserAvatar.tsx diff --git a/apps/socialmon/src/components/ui/Navbar/index.ts b/apps/redditmon/src/components/ui/Navbar/index.ts similarity index 100% rename from apps/socialmon/src/components/ui/Navbar/index.ts rename to apps/redditmon/src/components/ui/Navbar/index.ts diff --git a/apps/socialmon/src/components/users/AddUserModal.tsx b/apps/redditmon/src/components/users/AddUserModal.tsx similarity index 100% rename from apps/socialmon/src/components/users/AddUserModal.tsx rename to apps/redditmon/src/components/users/AddUserModal.tsx diff --git a/apps/socialmon/src/components/users/UserCard.tsx b/apps/redditmon/src/components/users/UserCard.tsx similarity index 100% rename from apps/socialmon/src/components/users/UserCard.tsx rename to apps/redditmon/src/components/users/UserCard.tsx diff --git a/apps/socialmon/src/components/users/UsersList.tsx b/apps/redditmon/src/components/users/UsersList.tsx similarity index 100% rename from apps/socialmon/src/components/users/UsersList.tsx rename to apps/redditmon/src/components/users/UsersList.tsx diff --git a/apps/socialmon/src/config/shortcuts.ts b/apps/redditmon/src/config/shortcuts.ts similarity index 100% rename from apps/socialmon/src/config/shortcuts.ts rename to apps/redditmon/src/config/shortcuts.ts diff --git a/apps/redditmon/src/constants.ts b/apps/redditmon/src/constants.ts new file mode 100644 index 000000000..17bd67123 --- /dev/null +++ b/apps/redditmon/src/constants.ts @@ -0,0 +1,3 @@ +export const NAVBAR_HEIGHT = 52; + +export const BASE_URL = 'https://redditmon.vercel.app'; diff --git a/apps/socialmon/src/db/RedditUtils.ts b/apps/redditmon/src/db/RedditUtils.ts similarity index 98% rename from apps/socialmon/src/db/RedditUtils.ts rename to apps/redditmon/src/db/RedditUtils.ts index 114872607..fa51cbc40 100644 --- a/apps/socialmon/src/db/RedditUtils.ts +++ b/apps/redditmon/src/db/RedditUtils.ts @@ -137,7 +137,7 @@ export async function replyToRedditPost({ const { password, username } = user; const snoowrap = await initializeRedditClient(username, password); - // TODO(socialmon): Figure out how to add type here. + // TODO(redditmon): Figure out how to add type here. // eslint-disable-next-line @typescript-eslint/no-explicit-any let finalResponse: any = null; diff --git a/apps/socialmon/src/db/utils.ts b/apps/redditmon/src/db/utils.ts similarity index 100% rename from apps/socialmon/src/db/utils.ts rename to apps/redditmon/src/db/utils.ts diff --git a/apps/socialmon/src/hooks/trpc.ts b/apps/redditmon/src/hooks/trpc.ts similarity index 100% rename from apps/socialmon/src/hooks/trpc.ts rename to apps/redditmon/src/hooks/trpc.ts diff --git a/apps/socialmon/src/hooks/useCurrentProjectSlug.ts b/apps/redditmon/src/hooks/useCurrentProjectSlug.ts similarity index 100% rename from apps/socialmon/src/hooks/useCurrentProjectSlug.ts rename to apps/redditmon/src/hooks/useCurrentProjectSlug.ts diff --git a/apps/socialmon/src/pages/api/trpc/[trpc].ts b/apps/redditmon/src/pages/api/trpc/[trpc].ts similarity index 100% rename from apps/socialmon/src/pages/api/trpc/[trpc].ts rename to apps/redditmon/src/pages/api/trpc/[trpc].ts diff --git a/apps/socialmon/src/providers/AIProvider.ts b/apps/redditmon/src/providers/AIProvider.ts similarity index 100% rename from apps/socialmon/src/providers/AIProvider.ts rename to apps/redditmon/src/providers/AIProvider.ts diff --git a/apps/socialmon/src/schema.ts b/apps/redditmon/src/schema.ts similarity index 100% rename from apps/socialmon/src/schema.ts rename to apps/redditmon/src/schema.ts diff --git a/apps/socialmon/src/scripts/seed-data.ts b/apps/redditmon/src/scripts/seed-data.ts similarity index 100% rename from apps/socialmon/src/scripts/seed-data.ts rename to apps/redditmon/src/scripts/seed-data.ts diff --git a/apps/socialmon/src/server/context.ts b/apps/redditmon/src/server/context.ts similarity index 100% rename from apps/socialmon/src/server/context.ts rename to apps/redditmon/src/server/context.ts diff --git a/apps/socialmon/src/server/prisma.ts b/apps/redditmon/src/server/prisma.ts similarity index 100% rename from apps/socialmon/src/server/prisma.ts rename to apps/redditmon/src/server/prisma.ts diff --git a/apps/socialmon/src/server/routers/_app.ts b/apps/redditmon/src/server/routers/_app.ts similarity index 100% rename from apps/socialmon/src/server/routers/_app.ts rename to apps/redditmon/src/server/routers/_app.ts diff --git a/apps/socialmon/src/server/routers/activity.ts b/apps/redditmon/src/server/routers/activity.ts similarity index 100% rename from apps/socialmon/src/server/routers/activity.ts rename to apps/redditmon/src/server/routers/activity.ts diff --git a/apps/socialmon/src/server/routers/project.ts b/apps/redditmon/src/server/routers/project.ts similarity index 98% rename from apps/socialmon/src/server/routers/project.ts rename to apps/redditmon/src/server/routers/project.ts index a45dc881a..554ac7a37 100644 --- a/apps/socialmon/src/server/routers/project.ts +++ b/apps/redditmon/src/server/routers/project.ts @@ -118,7 +118,7 @@ export const projectRouter = router({ const response = await fetch(url, { headers: { Authorization: `Bearer ${accessToken}`, - 'User-Agent': process.env.REDDIT_USER_AGENT ?? 'socialmon-gfe/0.1.0', + 'User-Agent': process.env.REDDIT_USER_AGENT ?? 'redditmon-gfe/0.1.0', }, method: 'GET', }); diff --git a/apps/socialmon/src/server/routers/social-posts.ts b/apps/redditmon/src/server/routers/social-posts.ts similarity index 99% rename from apps/socialmon/src/server/routers/social-posts.ts rename to apps/redditmon/src/server/routers/social-posts.ts index 866413bd1..27ef5ab52 100644 --- a/apps/socialmon/src/server/routers/social-posts.ts +++ b/apps/redditmon/src/server/routers/social-posts.ts @@ -88,7 +88,7 @@ export const socialPostsRouter = router({ const response = await fetch(`${apiUrl.replace(/\/$/, '')}.json`, { headers: { Authorization: `Bearer ${accessToken}`, - 'User-Agent': process.env.REDDIT_USER_AGENT ?? 'socialmon-gfe/0.1.0', + 'User-Agent': process.env.REDDIT_USER_AGENT ?? 'redditmon-gfe/0.1.0', }, method: 'GET', }); diff --git a/apps/socialmon/src/server/routers/social-users.ts b/apps/redditmon/src/server/routers/social-users.ts similarity index 100% rename from apps/socialmon/src/server/routers/social-users.ts rename to apps/redditmon/src/server/routers/social-users.ts diff --git a/apps/socialmon/src/server/services/getPostsFromPlatform.ts b/apps/redditmon/src/server/services/getPostsFromPlatform.ts similarity index 99% rename from apps/socialmon/src/server/services/getPostsFromPlatform.ts rename to apps/redditmon/src/server/services/getPostsFromPlatform.ts index 784c7b99b..189c30b93 100644 --- a/apps/socialmon/src/server/services/getPostsFromPlatform.ts +++ b/apps/redditmon/src/server/services/getPostsFromPlatform.ts @@ -127,7 +127,7 @@ export async function fetchPostsFromPlatform(projectSlug: string) { ? extractTriggeringSnippet(post.title, post.content, triggeringKeyword) : 'N/A'; - const postLink = `<${BASE_URL}/projects/${projectSlug}/posts/${post.id}|Socialmon>`; + const postLink = `<${BASE_URL}/projects/${projectSlug}/posts/${post.id}|Redditmon>`; const redditLink = ``; return `${idx + 1}. ${post.title} diff --git a/apps/socialmon/src/server/trpc.ts b/apps/redditmon/src/server/trpc.ts similarity index 100% rename from apps/socialmon/src/server/trpc.ts rename to apps/redditmon/src/server/trpc.ts diff --git a/apps/socialmon/src/server/utils/googleChat.ts b/apps/redditmon/src/server/utils/googleChat.ts similarity index 100% rename from apps/socialmon/src/server/utils/googleChat.ts rename to apps/redditmon/src/server/utils/googleChat.ts diff --git a/apps/socialmon/src/styles/globals.css b/apps/redditmon/src/styles/globals.css similarity index 100% rename from apps/socialmon/src/styles/globals.css rename to apps/redditmon/src/styles/globals.css diff --git a/apps/socialmon/src/types.ts b/apps/redditmon/src/types.ts similarity index 100% rename from apps/socialmon/src/types.ts rename to apps/redditmon/src/types.ts diff --git a/apps/socialmon/tailwind.config.cjs b/apps/redditmon/tailwind.config.cjs similarity index 100% rename from apps/socialmon/tailwind.config.cjs rename to apps/redditmon/tailwind.config.cjs diff --git a/apps/socialmon/tsconfig.json b/apps/redditmon/tsconfig.json similarity index 100% rename from apps/socialmon/tsconfig.json rename to apps/redditmon/tsconfig.json diff --git a/apps/socialmon/types.d.ts b/apps/redditmon/types.d.ts similarity index 100% rename from apps/socialmon/types.d.ts rename to apps/redditmon/types.d.ts diff --git a/apps/socialmon/vercel.json b/apps/redditmon/vercel.json similarity index 100% rename from apps/socialmon/vercel.json rename to apps/redditmon/vercel.json diff --git a/apps/socialmon/src/constants.ts b/apps/socialmon/src/constants.ts deleted file mode 100644 index 3cfc7f519..000000000 --- a/apps/socialmon/src/constants.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const NAVBAR_HEIGHT = 52; - -export const BASE_URL = 'https://socialmon.vercel.app'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a6c4d3310..9db2a1cc8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -158,7 +158,7 @@ importers: specifier: workspace:^ version: link:../../packages/langnostic - apps/socialmon: + apps/redditmon: dependencies: '@ai-sdk/google': specifier: ^1.2.3 @@ -9612,11 +9612,6 @@ packages: engines: {node: '>=14.0.0'} hasBin: true - swr@2.3.3: - resolution: {integrity: sha512-dshNvs3ExOqtZ6kJBaAsabhPdHyeY4P2cKwRCniDVifBMoG/SVI7tfLWqPXriVspf2Rg4tPzXJTnwaihIeFw2A==} - peerDependencies: - react: ^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - swr@2.3.4: resolution: {integrity: sha512-bYd2lrhc+VarcpkgWclcUi92wYCpOgMws9Sd1hG1ntAu0NEy+14CbotuFjshBU2kt9rYj9TSmDcybpxpeTU1fg==} peerDependencies: @@ -10589,7 +10584,7 @@ snapshots: '@ai-sdk/provider-utils': 2.2.8(zod@3.24.4) '@ai-sdk/ui-utils': 1.2.11(zod@3.24.4) react: 18.3.1 - swr: 2.3.3(react@18.3.1) + swr: 2.3.4(react@18.3.1) throttleit: 2.1.0 optionalDependencies: zod: 3.24.4 @@ -10599,7 +10594,7 @@ snapshots: '@ai-sdk/provider-utils': 2.2.8(zod@3.24.4) '@ai-sdk/ui-utils': 1.2.11(zod@3.24.4) react: 19.1.0 - swr: 2.3.3(react@19.1.0) + swr: 2.3.4(react@19.1.0) throttleit: 2.1.0 optionalDependencies: zod: 3.24.4 @@ -21151,24 +21146,18 @@ snapshots: csso: 5.0.5 picocolors: 1.1.1 - swr@2.3.3(react@18.3.1): - dependencies: - dequal: 2.0.3 - react: 18.3.1 - use-sync-external-store: 1.5.0(react@18.3.1) - - swr@2.3.3(react@19.1.0): - dependencies: - dequal: 2.0.3 - react: 19.1.0 - use-sync-external-store: 1.5.0(react@19.1.0) - swr@2.3.4(react@18.3.1): dependencies: dequal: 2.0.3 react: 18.3.1 use-sync-external-store: 1.5.0(react@18.3.1) + swr@2.3.4(react@19.1.0): + dependencies: + dequal: 2.0.3 + react: 19.1.0 + use-sync-external-store: 1.5.0(react@19.1.0) + symbol-tree@3.2.4: {} tabbable@6.2.0: {}