Skip to content

Commit

Permalink
Rename folders
Browse files Browse the repository at this point in the history
  • Loading branch information
usulpro committed Aug 2, 2024
1 parent 1317530 commit f5fccca
Show file tree
Hide file tree
Showing 140 changed files with 82 additions and 82 deletions.
4 changes: 2 additions & 2 deletions src/app/(front)/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { toPlainText } from 'next-sanity'

import { generateStaticSlugs } from '@/sanity/loader/generateStaticSlugs'
import { loadLanding, loadPage } from '@/sanity/loader/loadQuery'
import Page from '@/components/here_reusable_components_lets_decide_the_folders_name/pages/landing/Page'
import Page from '@/components/cms-kit-components-set/pages/landing/Page'
const PagePreview = dynamic(
() => import('@/components/here_reusable_components_lets_decide_the_folders_name/cms/pages/landing/PagePreview'),
() => import('@/components/cms-kit-components-set/content-blocks/sanity/pages/landing/PagePreview'),
)

type Props = {
Expand Down
4 changes: 2 additions & 2 deletions src/app/(front)/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { toPlainText } from 'next-sanity'
import { urlForOpenGraphImage } from '@/sanity/lib/utils'
import { generateStaticSlugs } from '@/sanity/loader/generateStaticSlugs'
import { loadBlogPost } from '@/sanity/loader/loadQuery'
import BlogPost from '@/components/here_reusable_components_lets_decide_the_folders_name/pages/blog/BlogPost'
import BlogPost from '@/components/cms-kit-components-set/pages/blog/BlogPost'
const BlogPostPreview = dynamic(
() => import('@/components/here_reusable_components_lets_decide_the_folders_name/cms/pages/blog/BlogPostPreview'),
() => import('@/components/cms-kit-components-set/content-blocks/sanity/pages/blog/BlogPostPreview'),
)

type Props = {
Expand Down
4 changes: 2 additions & 2 deletions src/app/(front)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import Link from 'next/link'

import { studioUrl } from '@/sanity/lib/api'
import { loadHomePage } from '@/sanity/loader/loadQuery'
import Page from '@/components/here_reusable_components_lets_decide_the_folders_name/pages/landing/Page'
import Page from '@/components/cms-kit-components-set/pages/landing/Page'
const PagePreview = dynamic(
() => import('@/components/here_reusable_components_lets_decide_the_folders_name/cms/pages/landing/PagePreview'),
() => import('@/components/cms-kit-components-set/content-blocks/sanity/pages/landing/PagePreview'),
)

export default async function IndexRoute() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(preview)/single-template/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { sets } from '@/components/here_reusable_components_lets_decide_the_folders_name/config';
import { sets } from '@/components/cms-kit-components-set/config';
import { renderSanityComponent } from '@focus-reactive/cms-kit-sanity/sanity-next';

export default function SingleTemplatePage({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { imageWithMetadata } from '@focus-reactive/cms-kit-sanity/sanity';
import { defineUtilityType } from '../../../sa-config';
import { defineUtilityType } from '../../../../sa-config';
import {
backgroundColors,
backgroundPatterns,
layoutSecondaryOptions,
layoutSecondarySize,
} from './common-schemas';
import { styledRichText } from '../../SubBlocks/StyledRichText/sa-schema';
import { styledRichText } from '../../sub-blocks/StyledRichText/sa-schema';

export const backgroundOptions = defineUtilityType(({ df }) => ({
name: 'backgroundOptions',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponentType } from '../../../sa-config';
import { defineComponentType } from '../../../../sa-config';

export const smartImage = defineComponentType(() => ({
name: 'smartImage',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { postBySlugQuery } from '@/sanity/lib/queries'
import { useQuery } from '@/sanity/loader/useQuery'
import { BlogPostPayload } from '@/types'

import BlogPost from '../../../pages/blog/BlogPost'
import BlogPost from '../../../../pages/blog/BlogPost'

type Props = {
params: { slug: string }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { type QueryResponseInitial } from '@sanity/react-loader/rsc'

import { useQuery } from '@/sanity/loader/useQuery'
import { PagePayload } from '../../../pages/landing/types'
import Page from '../../../pages/landing/Page'
import { PagePayload } from '../../../../pages/landing/types'
import Page from '../../../../pages/landing/Page'
import { landingPageQuery } from './sa/landingPageQuery'
import { LandingPayload } from '@/types'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineField, defineType } from 'sanity';
import { author } from '@/sanity/schemas/author';
import { seo } from './seo';
import { heroFields } from '../../../ContentComponents/SimpleHero/sa-schemas';
import { heroFields } from '../../../functional-blocks/SimpleHero/sa-schemas';
import { defineBlocksField } from '@/sanity/plugins/content-blocks/define-blocks-field';
import { contentBlocksSchemas } from '../../../ContentBlocks/sa-schemas';
import { contentBlocksSchemas } from '../../../root-blocks/sa-schemas';
import { renderItemView } from '@/sanity/plugins/blocks-preview/render-item-view';
import { contentBlockPresets } from '@/components/here_reusable_components_lets_decide_the_folders_name/cms/ContentBlocks/sa-templates';
import { contentBlockPresets } from '@/components/cms-kit-components-set/content-blocks/sanity/root-blocks/sa-templates';

const ofTypes = contentBlocksSchemas
.filter((t) => t.type !== 'array')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
defineComponentType,
defineUtilityType,
} from '../../../sa-config';
} from '../../../../sa-config';

import {
customRichText,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import blogJSON from './templates/sa-mock-blog-section.json';
import screenshot from './templates/sa-mock-blog-section.png';
import threeColumnWithImages from './templates/three-column-with-images.json';
import threeColumnWithImagesScreenshot from './templates/three-column-with-images.png';
import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';

const templateBlogSection: SanityTemplate = {
name: 'blogSection',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponentType, defineUtilityType } from '../../../sa-config';
import { defineComponentType, defineUtilityType } from '../../../../sa-config';
import {
customRichText,
imageWithMetadata,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { SanityTemplate } from '@focus-reactive/cms-kit-sanity/sanity';

import { grid } from './sa-schema';
import categoryPreviewJSON from './templates/sa-mock-category-preview.json';
import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';

const templateCategoryPreview: SanityTemplate = {
name: 'grid',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { BlockPreview } from '@focus-reactive/cms-kit-sanity/sanity';

import { blogSection } from '../BlogSection/sa-schema';
import { logoCloudGrid } from '../../SubBlocks/LogoCloud/sa-schema';
import { logoCloudGrid } from '../../sub-blocks/LogoCloud/sa-schema';
import { grid } from '../Grid/sa-schema';
import { styledImage } from '../../SubBlocks/StyledImage/sa-schema';
import { featurePoints } from '../../SubBlocks/FeaturePoints/sa-schema';
import { styledRichText } from '../../SubBlocks/StyledRichText/sa-schema';
import { buttons } from '../../SubBlocks/Buttons/sa-schema';
import { badges } from '../../SubBlocks/Badges/sa-schema';
import { defineBlockType } from '../../../sa-config';
import { blockOptions } from '../../../ui/Section';
import { styledImage } from '../../sub-blocks/StyledImage/sa-schema';
import { featurePoints } from '../../sub-blocks/FeaturePoints/sa-schema';
import { styledRichText } from '../../sub-blocks/StyledRichText/sa-schema';
import { buttons } from '../../sub-blocks/Buttons/sa-schema';
import { badges } from '../../sub-blocks/Badges/sa-schema';
import { defineBlockType } from '../../../../sa-config';
import { blockOptions } from '../../../../ui-layer/Section';
import { defineBlocksField } from '@/sanity/plugins/content-blocks/define-blocks-field';
import { subBlockPresets } from '../../SubBlocks/sa-templates';
import { subBlockPresets } from '../../sub-blocks/sa-templates';
import { renderItemView } from '@/sanity/plugins/blocks-preview/render-item-view';

export const pageBlock = defineBlockType(({ df }) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import logoCloud from './templates/sa-mock-logo-cloud.json';
import logoCloudScreenshot from './templates/sa-mock-logo-cloud.png';
import featureSimple from './templates/sa-mock-feature-simple.json';
import featureSimpleScreenshot from './templates/sa-mock-feature-simple.png';
import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';
import templateCategoryScreenshot from './templates/sa-mock-category-preview.png';
import templateFeatureWithImageScreenshot from './templates/sa-mock-feature-with-image-right.png';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import type { BlocksMap } from '@focus-reactive/cms-kit-sanity/sanity';
import { findBlockRoot } from '@focus-reactive/cms-kit-sanity/sanity-schema-type-utils';

import { PageBlock } from '../../ui/PageBlock';
import { PageBlock } from '../../../ui-layer/PageBlock';
import pageBlock from './PageBlock/sa-schema';
// HYGEN-IMPORTS-END

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineComponentType } from '../../../sa-config';
import { defineComponentType } from '../../../../sa-config';

import { badgesSecondaryOptions } from '../../ContentComponents/Section/common-schemas';
import { badgesSecondaryOptions } from '../../functional-blocks/Section/common-schemas';
import {
ComponentPreview,
smartLink,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';

import { TemplateArea, TemplateCategory } from '@focus-reactive/cms-kit-sanity';
import type { SanityTemplate } from '@focus-reactive/cms-kit-sanity/sanity';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineComponentType } from '../../../sa-config';
import { buttonsSecondaryOptions } from '../../ContentComponents/Section/common-schemas';
import { defineComponentType } from '../../../../sa-config';
import { buttonsSecondaryOptions } from '../../functional-blocks/Section/common-schemas';
import {
ComponentPreview,
smartLink,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { SanityTemplate } from '@focus-reactive/cms-kit-sanity/sanity';

import { buttons } from './sa-schema';
import twoButtons from './templates/sa-mock-two-buttons.json';
import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';
import preview from './templates/preview.png';

export const templateTwoButtons: SanityTemplate = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineComponentType, defineUtilityType } from '../../../sa-config';
import { defineComponentType, defineUtilityType } from '../../../../sa-config';
import {
featurePointStyles,
} from '../../ContentComponents/Section/common-schemas';
} from '../../functional-blocks/Section/common-schemas';
import {
ComponentPreview,
smartLink,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { SanityTemplate } from '@focus-reactive/cms-kit-sanity/sanity';

import { featurePoints } from './sa-schema';
import json from './templates/sa-mock-feature-points.json';
import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';
import preview from './templates/preview.png';

const featurePointsPreview: SanityTemplate = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponentType, defineUtilityType } from '../../../sa-config';
import { defineComponentType, defineUtilityType } from '../../../../sa-config';

import {
imageWithMetadata,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TemplateArea, TemplateCategory } from '@focus-reactive/cms-kit-sanity';
import type { SanityTemplate } from '@focus-reactive/cms-kit-sanity/sanity';

import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';
import { logoCloudGrid } from './sa-schema';
import logoCloudGridJSON from './templates/sa-mock-logo-cloud.json';
import preview from './templates/preview.png';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineComponentType } from '../../../sa-config';
import { defineComponentType } from '../../../../sa-config';

import { imageWithMetadata } from '@focus-reactive/cms-kit-sanity/sanity';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineComponentType } from '../../../sa-config';
import { defineComponentType } from '../../../../sa-config';

import { customRichText, ComponentPreview } from '@focus-reactive/cms-kit-sanity/sanity';

import { componentAlignment } from '../../ContentComponents/Section/common-schemas';
import { componentAlignment } from '../../functional-blocks/Section/common-schemas';


export const styledRichText = defineComponentType(({ df }) => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TemplateArea, TemplateCategory } from '@focus-reactive/cms-kit-sanity';
import type { SanityTemplate } from '@focus-reactive/cms-kit-sanity/sanity';

import { namespace } from '../../../namespace.config';
import { namespace } from '../../../../namespace.config';
import { styledRichText } from './sa-schema';
import json from './templates/sa-mock.json';
import preview from './templates/preview.png';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { findComponentRoot } from '@focus-reactive/cms-kit-sanity/sanity';
import type { BlocksMap } from '@focus-reactive/cms-kit-sanity/sanity';

import blogSection from '../ContentBlocks/BlogSection/sa-schema';
import { BlogSection } from '../../ui/BlogSection';
import grid from '../ContentBlocks/Grid/sa-schema';
import { Grid } from '../../ui/Grid';
import { StyledImage } from '../../ui/StyledImage';
import blogSection from '../root-blocks/BlogSection/sa-schema';
import { BlogSection } from '../../../ui-layer/BlogSection';
import grid from '../root-blocks/Grid/sa-schema';
import { Grid } from '../../../ui-layer/Grid';
import { StyledImage } from '../../../ui-layer/StyledImage';
import styledImage from './StyledImage/sa-schema';
import { StyledRichText } from '../../ui/StyledRichText';
import { StyledRichText } from '../../../ui-layer/StyledRichText';
import styledRichText from './StyledRichText/sa-schema';
import { FeaturePoints } from '../../ui/FeaturePoints';
import { FeaturePoints } from '../../../ui-layer/FeaturePoints';
import featurePoints from './FeaturePoints/sa-schema';
import { LogoCloudGrid } from '../../ui/LogoCloud';
import { LogoCloudGrid } from '../../../ui-layer/LogoCloud';
import logoCloudGrid from './LogoCloud/sa-schema';
import { Buttons } from '../../ui/Buttons';
import { Buttons } from '../../../ui-layer/Buttons';
import buttons from './Buttons/sa-schema';
import { Badges } from '../../ui/Badges';
import { Badges } from '../../../ui-layer/Badges';
import badges from './Badges/sa-schema';

export const subBlocksMap: BlocksMap = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import templateBlogSection from '../ContentBlocks/BlogSection/sa-templates';
import gridSaTemplates from '../ContentBlocks/Grid/sa-templates';
import templateBlogSection from '../root-blocks/BlogSection/sa-templates';
import gridSaTemplates from '../root-blocks/Grid/sa-templates';
import logoCloudSaTemplates from './LogoCloud/sa-templates';
import featurePointsTemplates from './FeaturePoints/sa-templates';
import styledRichTextTemplates from './StyledRichText/sa-templates';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { PagePayload } from './types';

import { renderSanityComponent } from '@focus-reactive/cms-kit-sanity/sanity-next';
import { sets } from '../../config';
import { SimpleHero } from '../../ui/SimpleHero';
import { SimpleHero } from '../../ui-layer/SimpleHero';
import SimpleFooter from '@/components/global/SimpleFooter';

export interface PageProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { Kit } from '@focus-reactive/cms-kit-sanity/sanity';

import { namespace } from './namespace.config';
import { contentBlocksSchemas } from './cms/ContentBlocks/sa-schemas';
import { subBlocksSchemas } from './cms/SubBlocks/sa-schemas';
import { contentComponentsSchemas } from './cms/ContentComponents/sa-schemas';
import { contentBlocksMap } from './cms/ContentBlocks/sa-components';
import { contentBlockPresets } from './cms/ContentBlocks/sa-templates';
import { subBlocksMap } from './cms/SubBlocks/sa-components';
import { subBlockTemplates } from './cms/SubBlocks/sa-templates';
import { contentBlocksSchemas } from './content-blocks/sanity/root-blocks/sa-schemas';
import { subBlocksSchemas } from './content-blocks/sanity/sub-blocks/sa-schemas';
import { contentComponentsSchemas } from './content-blocks/sanity/functional-blocks/sa-schemas';
import { contentBlocksMap } from './content-blocks/sanity/root-blocks/sa-components';
import { contentBlockPresets } from './content-blocks/sanity/root-blocks/sa-templates';
import { subBlocksMap } from './content-blocks/sanity/sub-blocks/sa-components';
import { subBlockTemplates } from './content-blocks/sanity/sub-blocks/sa-templates';
import { Preset } from '@/sanity/plugins/content-blocks';

export const blockTypes = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { getCmsKey } from '@focus-reactive/cms-kit-sanity';
import type { SmartLinkProps } from '@focus-reactive/cms-kit-sanity/sanity';
import { classnames } from '@focus-reactive/cms-kit-sanity/common';
import { featurePointStyles } from '../../cms/ContentComponents/Section/common-schemas';
import { featurePointStyles } from '../../content-blocks/sanity/functional-blocks/Section/common-schemas';
import { SmartImage } from '../SmartImage';

const iconStyle = featurePointStyles.map((style) => style.value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SmartImage } from '../SmartImage';
import { getCmsKey } from '@focus-reactive/cms-kit-sanity';
import { GenericRichText } from '@focus-reactive/cms-kit-sanity/common';

import type { gridCard } from '../../cms/ContentBlocks/Grid/sa-schema';
import type { gridCard } from '../../content-blocks/sanity/root-blocks/Grid/sa-schema';

type GridCard = {
customRichText: [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
SmartLinkProps,
} from '@focus-reactive/cms-kit-sanity/sanity';
import { SmartImage } from '../SmartImage';
import { logoItem } from '../../cms/SubBlocks/LogoCloud/sa-schema';
import { logoItem } from '../../content-blocks/sanity/sub-blocks/LogoCloud/sa-schema';

type LogoItem = {
_key: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { vercelStegaSplit } from '@vercel/stega';

import { SmartImage } from '../SmartImage';
import type { grid } from '../../cms/ContentBlocks/Grid/sa-schema';
import type { grid } from '../../content-blocks/sanity/root-blocks/Grid/sa-schema';
import type { GridElement } from '../Grid/Component';
import { StyledRichText } from '../StyledRichText';

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './Section';
export * from '../../content-blocks/sanity/functional-blocks/Section/sa-schema';
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from 'react';

import { withCMS } from '@focus-reactive/cms-kit-sanity';
import Image from 'next/image';
import { sa } from '../../cms/ContentComponents/SmartImage/sa-adapter';
import { SmartImageProps } from '../../cms/ContentComponents/SmartImage/types';
import { sa } from '../../content-blocks/sanity/functional-blocks/SmartImage/sa-adapter';
import { SmartImageProps } from '../../content-blocks/sanity/functional-blocks/SmartImage/types';

function SmartImage({
imageWithMetadata,
Expand Down

This file was deleted.

Loading

0 comments on commit f5fccca

Please sign in to comment.