Skip to content

Commit

Permalink
rename oage.ts to pages.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Sep 27, 2024
1 parent 96f7a3c commit 57a2495
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/app/(main)/[slug]/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
MORE_POST_PREVIEW,
POST_SLUG_QUERY,
SEO_POST_SLUG_QUERY,
} from "studio/lib/queries/page";
} from "studio/lib/queries/pages";

type Props = {
params: {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(main)/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
POSTS_QUERY,
SEO_SLUG_QUERY,
SLUG_QUERY,
} from "studio/lib/queries/page";
} from "studio/lib/queries/pages";
import {
COMPENSATIONS_PAGE_QUERY,
CUSTOMER_CASES_PAGE_QUERY,
Expand Down
2 changes: 1 addition & 1 deletion src/app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SectionRenderer from "src/utils/renderSection";
import { fetchSeoData, generateMetadataFromSeo } from "src/utils/seo";
import { LinkType } from "studio/lib/interfaces/navigation";
import { PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY, SEO_PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY, SEO_PAGE_QUERY } from "studio/lib/queries/pages";
import { LANDING_PAGE_REF_QUERY } from "studio/lib/queries/siteSettings";
import { loadStudioQuery } from "studio/lib/store";

Expand Down
2 changes: 1 addition & 1 deletion src/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { MetadataRoute } from "next";
import { client } from "studio/lib/client";
import { DocumentWithSlug } from "studio/lib/interfaces/global";
import { PageBuilder } from "studio/lib/interfaces/pages";
import { DOCUMENTS_WITH_SLUG_QUERY } from "studio/lib/queries/document";
import { DOCUMENTS_WITH_SLUG_QUERY } from "studio/lib/queries/siteMap";
import { LANDING_PAGE_QUERY } from "studio/lib/queries/siteSettings";
import { token } from "studio/lib/token";

Expand Down
2 changes: 1 addition & 1 deletion src/blog/BlogPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { QueryResponseInitial, useQuery } from "@sanity/react-loader";
import { Suspense } from "react";

import { BlogPage, Post } from "studio/lib/interfaces/pages";
import { BLOG_PAGE_QUERY } from "studio/lib/queries/page";
import { BLOG_PAGE_QUERY } from "studio/lib/queries/pages";

import { Blog } from "./Blog";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/article/ArticlePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { ArticleSection, PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import Article from "./Article";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { CallToActionSection, PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import CallToAction from "./CallToAction";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/callout/CalloutPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { CalloutSection, PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import Callout from "./Callout";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/grid/GridPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { GridSection, PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import Grid from "./Grid";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/hero/HeroPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { HeroSection, PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import { Hero } from "./Hero";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { ImageSection, PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import ImageSectionComponent from "./ImageSectionComponent";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/logoSalad/LogoSaladPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { LogoSaladSection, PageBuilder } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import { LogoSalad } from "./LogoSalad";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Suspense } from "react";

import { PreviewProps } from "src/types/preview";
import { PageBuilder, TestimonialsSection } from "studio/lib/interfaces/pages";
import { PAGE_QUERY } from "studio/lib/queries/page";
import { PAGE_QUERY } from "studio/lib/queries/pages";

import { Testimonials } from "./Testimonials";

Expand Down
2 changes: 1 addition & 1 deletion src/post/PostPagePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { QueryResponseInitial, useQuery } from "@sanity/react-loader";
import { Suspense } from "react";

import { BlogPage, Post } from "studio/lib/interfaces/pages";
import { POST_SLUG_QUERY } from "studio/lib/queries/page";
import { POST_SLUG_QUERY } from "studio/lib/queries/pages";

import PostPage from "./PostPage";

Expand Down
2 changes: 1 addition & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Post } from "studio/lib/interfaces/pages";
import {
CATEGORIZED_POSTS_QUERY,
COUNT_POSTS_QUERY,
} from "studio/lib/queries/page";
} from "studio/lib/queries/pages";

interface FetchResult {
data: Post[];
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { groq } from "next-sanity";

//Site Map
export const DOCUMENTS_WITH_SLUG_QUERY = groq`
*[defined(slug)]
`;
8 changes: 5 additions & 3 deletions studio/lib/queries/specialPages.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { groq } from "next-sanity";

export const CUSTOMER_CASES_PAGE_QUERY = groq`
*[_type == "customerCasesPage" && slug.current == $slug][0]`;

//Compensations
export const COMPENSATIONS_PAGE_QUERY = groq`
*[_type == "compensations" && slug.current == $slug][0]
`;

//Customer Cases
export const CUSTOMER_CASES_PAGE_QUERY = groq`
*[_type == "customerCasesPage" && slug.current == $slug][0]`;

0 comments on commit 57a2495

Please sign in to comment.