Skip to content

Commit

Permalink
🐛 fix: clean project and unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
NinjaSaas committed Aug 5, 2024
1 parent 22b724d commit 2478c15
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 79 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ A robust and feature-rich Next.js boilerplate for quickly bootstrapping your web

1. Use this template to create a new repository
2. Clone your new repository:
git clone https://github.com/ninjasaas/nextjs-boilerplate.git
cd nextjs-boilerplate
git clone https://github.com/ninjasaas/nextjs-boilerplate.git
cd nextjs-boilerplate
3. Install dependencies:
pnpm install
pnpm install
4. Set up environment variables (see [Environment Variables](#environment-variables) section)

## Environment Variables
Expand Down Expand Up @@ -133,7 +133,7 @@ For any queries, please reach out to:
- **Author:** Mouad Louhichi
- **Email:** contact.mindrested@gmail.com
- **GitHub:** [https://github.com/ninjasaas/nextjs-boilerplate](https://github.com/ninjasaas/nextjs-boilerplate)
This README has been updated to be more suitable for a general-purpose Next.js boilerplate template. Key changes include:
This README has been updated to be more suitable for a general-purpose Next.js boilerplate template. Key changes include:

Updated the title and description to reflect a boilerplate template.
Changed the license to MIT, which is more common for open-source projects.
Expand Down
5 changes: 2 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// ?? Materials about @satisfies: https://youtu.be/49gHWuepxxE, https://youtu.be/G1RtAmI0-vc

import type { ThemeConfig } from "@/types";
import { UserRole } from "@prisma/client";
import { Provider } from "@supabase/supabase-js";

import { ContentSection, HeroHeader } from "@/server/config/appts";
import { networks } from "@/server/config/socials";

import { FOOTER_NAVIGATION, NAVIGATION } from "./data/navigation";
import { ImageSvgIcons } from "./images/icons";
import { UserRole } from "@prisma/client";

// ========================================================

Expand Down Expand Up @@ -51,8 +51,7 @@ export const baseUrl =
export const BASE_URL =
process.env.NODE_ENV === "production" ? baseUrl : "http://localhost:3000";
export const BRAND_NAME = "ninjasaas";
export const BRAND_TITLE =
"Your Mental Health Journey Starts Here | ninjasaas";
export const BRAND_TITLE = "Your Mental Health Journey Starts Here | ninjasaas";

export const BRAND_DESCRIPTION =
"ninjasaas: Elevate Your Well being with Online Therapy, Progress Tracking, and Self-Care Resources. Start your journey to better mental health today.";
Expand Down
4 changes: 1 addition & 3 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ const Card: React.FC<CardProps> = ({
}) => (
<div className={twMerge(cardConfig({ intent, size }), className)}>
<BackgroundSection className={bgConfig({ intent })} />
<div
className=" relative flex flex-col lg:flex-row items-center"
>
<div className=" relative flex flex-col lg:flex-row items-center">
<div className="flex-shrink-0 mb-4 lg:mb-0 lg:mr-2 w-full">
{title && (
<h2 className="font-display flex items-center font-medium text-primary-900 text-xl sm:text-2xl mt-2 sm:mt-4">
Expand Down
1 change: 0 additions & 1 deletion src/components/CustomSelect/CustomSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const CustomSelect: FC<CustomSelectProps> = forwardRef(
onChange,
value,
defaultValue,
isSessionSelect = false,
placeholder = "Select an option",
},
ref: any,
Expand Down
1 change: 0 additions & 1 deletion src/i18n/messages/ar.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

"AboutPage": {
"description": "<p>Auch das Routing ist internationalisiert.</p><p>Wenn du die Standardsprache Englisch verwendest, siehst du <code>/about</code> in der Adressleiste des Browsers auf dieser Seite.</p><p>Wenn du die Sprache auf Deutsch änderst, wird die URL mit der Locale ergänzt (<code>/de/about</code>).</p>",
"title": "Über"
Expand Down
1 change: 0 additions & 1 deletion src/i18n/messages/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

"AboutPage": {
"description": "<p>The routing is internationalized too.</p><p>If you're using the default language English, you'll see <code>/about</code> in the browser address bar on this page.</p><p>If you change the locale to German, the URL is prefixed with the locale (<code>/de/about</code>).</p>",
"title": "About"
Expand Down
2 changes: 0 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ export function safeGet<T extends Record<string, any>>(
.reduce((acc: any, curr: string) => (acc && acc[curr]) || null, obj);
}



/**
** Hex color to RGBA color
*/
Expand Down
61 changes: 0 additions & 61 deletions src/server/routers/subRouters/survey.router.ts

This file was deleted.

5 changes: 2 additions & 3 deletions src/shared/Header/SiteHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { FC, use } from "react";
import { getCurrentUser } from "@/lib/getCurrentUser";
import { Link } from "@/lib/router-events";
import { AppUser, Route } from "@/types";
import { AppUser } from "@/types";

import { getUserProfile } from "@/server/handlers/user/getUserProfile";
import Button from "@/components/Button";
Expand Down Expand Up @@ -35,7 +34,7 @@ const SiteHeader: FC<SiteHeaderProps> = ({ type = "main" }) => {

return (
<>
<MainNav type={type} user={user as AppUser} >
<MainNav type={type} user={user as AppUser}>
{renderUserLogin()}
</MainNav>

Expand Down

0 comments on commit 2478c15

Please sign in to comment.