From 2ad0232041df23472e42e4ffa18740f82c94d876 Mon Sep 17 00:00:00 2001 From: Infvyr Date: Mon, 29 May 2023 20:06:31 +0300 Subject: [PATCH] fix build errors and run format script --- .eslintrc.json | 1 - README.md | 10 +- app/sections/project/index.jsx | 4 +- app/sections/technologies/index.jsx | 2 +- components/AppMetadata.jsx | 5 +- components/ConnectMedia.jsx | 8 +- components/Logo.jsx | 10 +- components/Menu.jsx | 14 +- constants/index.js | 10 +- constants/menu.js | 2 +- constants/routes.js | 2 +- constants/social_media.js | 2 +- constants/strings.js | 2 +- jsconfig.json | 2 +- postcss.config.js | 10 +- sanity/config/@sanity/data-aspects.json | 2 +- sanity/config/@sanity/default-layout.json | 8 +- sanity/config/@sanity/default-login.json | 12 +- sanity/config/@sanity/form-builder.json | 6 +- sanity/config/@sanity/vision.json | 2 +- sanity/package-lock.json | 36908 ++++++++++---------- sanity/package.json | 56 +- sanity/sanity.json | 52 +- sanity/schemas/category.js | 18 +- sanity/schemas/project.js | 82 +- sanity/schemas/schema.js | 16 +- sanity/schemas/stack.js | 18 +- sanity/tsconfig.json | 8 +- styles/base.css | 8 +- styles/components.css | 50 +- styles/gallery.css | 64 +- styles/globals.css | 8 +- styles/utilities.css | 22 +- 33 files changed, 18712 insertions(+), 18712 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 1930264..8db7ba1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,6 @@ "extends": [ "eslint:recommended", "next", -// "next/babel", "next/core-web-vitals", "prettier" ], diff --git a/README.md b/README.md index 23e3827..08dbc6e 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ ## Getting Started First, install dependencies: + ```bash npm install # or yarn ``` + Then run the development server: + ```bash npm run dev # or @@ -16,6 +19,7 @@ yarn dev ### Settings Create a file `.env.local` and put inside: + 1. NEXT_PUBLIC_SANITY_URL="https://f2g1h82s.api.sanity.io/v2021-10-21/data/query/production", where **f2g1h82s** is your sanity project ID 2. NEXT_PUBLIC_SANITY_LATEST_PROJECTS="?query=...", your query to get latest projects 3. NEXT_PUBLIC_SANITY_ALL_PROJECTS="?query=...", your query to get all projects @@ -23,10 +27,12 @@ Create a file `.env.local` and put inside: Run Sanity (localhost:3333) - #### **`!!! Make sure to have installed Sanity globally`** + Then: + ```bash cd sanity && sanity start ``` -It runs local server at localhost:3333 \ No newline at end of file + +It runs local server at localhost:3333 diff --git a/app/sections/project/index.jsx b/app/sections/project/index.jsx index 88a5991..8301dcb 100644 --- a/app/sections/project/index.jsx +++ b/app/sections/project/index.jsx @@ -4,10 +4,10 @@ import Link from "next/link"; import useSWR from "swr"; import { HeadingDivider, Loader } from "components"; import { fetcher } from "utils/fetcher"; -import { SiteRoutes } from "constants"; import Error from "../../error"; import { ErrorBoundary } from "react-error-boundary"; import { Projects } from "../../projects/components/Projects"; +import { SITE_ROUTES } from "../../../constants"; const url = `${process.env.NEXT_PUBLIC_SANITY_URL}${process.env.NEXT_PUBLIC_SANITY_LATEST_PROJECTS}`; @@ -42,7 +42,7 @@ export function ProjectsSection() {