Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Local Config Repository Structure #197

Merged
merged 4 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/app/content-metadata.json/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { getPageBySlug } from 'data/get_page';
import { getAllPageSlugs } from 'data/get_pages';
import { NextResponse } from 'next/server';

import { navigation } from '../../src/config/navigation';
import { navigation } from '../../local/config/navigation';

const { protocol } = navigation;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { configureLanguages } from '@/content/prose/code/types/language';
import { configureLanguages } from '#/content/prose/code/types/language';

export const LanguagePresets = configureLanguages({
typescript: {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useAccount } from 'wagmi';

import { ClientOnly } from '@/ClientOnly';
import { Button } from '@/components/Button';
import { ProfileAvatar } from '@/content/prose/profile/ProfileAvatar';
import { ProfileAvatar } from '#/content/prose/profile/ProfileAvatar';

import { OwnerField } from '../ethregistry/inputs/OwnerField';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { FiCheck, FiLoader, FiX } from 'react-icons/fi';
import { mainnet, sepolia } from 'viem/chains';
import { useAccount, useReadContract } from 'wagmi';

import { ALink } from '@/content/prose/link/ALink';
import { ALink } from '#/content/prose/link/ALink';

import { EthCall } from '../call/EthCall';

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
isSectionData,
routeElement,
routeGroup,
} from '@/config/navigation';
import { navigation } from '@/config/navigation/protocol';
} from '#/config/navigation';
import { navigation } from '#/config/navigation/protocol';

const getPageAndGroup = (
routes: routeGroup[] | undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FC, PropsWithChildren } from 'react';
import {
CodePanel,
CodePanelProperties,
} from '@/content/prose/code/snippet/CodeSnippet';
} from '#/content/prose/code/snippet/CodeSnippet';

import { CodeGroup } from './group/CodeGroup';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Children, cloneElement, FC, PropsWithChildren } from 'react';
import {
CodePanel,
CodeSnippetProperties,
} from '@/content/prose/code/snippet/CodeSnippet';
} from '#/content/prose/code/snippet/CodeSnippet';

import { getLanguage } from '../languageSorter';
import { CodeGroupHeader } from './CodeGroupHeader';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LanguagePresets } from '@/config/languages';
import { LanguagePresets } from '#/config/languages';

import { LanguageSettings } from './types/language';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/local/data/deployments.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable sonarjs/no-duplicate-string */
import { goerli, holesky, mainnet, sepolia } from 'viem/chains';

import { DeploymentData } from '@/content/extras/deployments/deployment';
import { DeploymentData } from '#/content/extras/deployments/deployment';

type Deployment = {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion app/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { MDXComponents } from 'mdx/types';

import { contentComponents } from '@/content';
import { contentComponents } from '#/content';

/**
* This file needs to be named `mdx-components.ts` and needs to stay in this directory.
Expand Down
4 changes: 2 additions & 2 deletions app/src/layout/PageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { Article, WithContext } from 'schema-dts';

import { Prose } from '@/components/mdx/Prose';
import { SectionProvider } from '@/components/SectionProvider';
import { Breadcrumbs } from '@/content/prose/breadcrumbs/Breadcrumbs';
import { MdxPageProps } from '@/lib/mdxPageProps';
import { Breadcrumbs } from '#/content/prose/breadcrumbs/Breadcrumbs';

import { PageDetails } from './details/PageDetails';
import { ProposalData } from './details/variations/SnapshotDetails';
Expand Down Expand Up @@ -69,7 +69,7 @@ export const Layout: FC<{
style={{ left: 'calc(50vw + 26rem)' }}
>
<div className="m-4 p-4">
<div className="text-sm text-ens-light-text-secondary dark:text-ens-dark-text-secondary">
<div className="text-ens-light-text-secondary dark:text-ens-dark-text-secondary text-sm">
On this page
</div>
<ul className="text-sm">
Expand Down
2 changes: 1 addition & 1 deletion app/src/layout/header/subheader/SubHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import clsx from 'clsx';
import Link from 'next/link';
import { usePathname } from 'next/navigation';

import { navigation } from '@/config/navigation';
import { navigation } from '#/config/navigation';

export const SubHeader = () => {
const pathname = usePathname();
Expand Down
2 changes: 1 addition & 1 deletion app/src/layout/sidebar/_legacy/MobileNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
navigation,
routeElement,
routeGroup,
} from '@/config/navigation';
} from '#/config/navigation';
import { Header } from '@/layout/header/Header';
import {
IsInsideMobileNavigationContext,
Expand Down
2 changes: 1 addition & 1 deletion app/src/layout/sidebar/_legacy/sidenav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { usePathname } from 'next/navigation';

import { navigation } from '@/config/navigation';
import { navigation } from '#/config/navigation';
import { useIsInsideMobileNavigation } from '@/lib/mobile';

import { NavigationGroup } from './navgroup';
Expand Down
32 changes: 0 additions & 32 deletions app/src/wallet/ConnectModal/ProfileInfo.tsx

This file was deleted.

160 changes: 0 additions & 160 deletions app/src/wallet/ConnectModal/index.tsx

This file was deleted.

51 changes: 0 additions & 51 deletions app/src/wallet/ConnectModal/modal.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./{pages,app,src,mdx}/**/*.{js,mjs,jsx,mdx,tsx}',
'./{pages,app,src,mdx,local}/**/*.{js,mjs,jsx,mdx,tsx}',
'../docs/**/*.{mdx,ts}',
],
darkMode: 'class',
Expand Down
2 changes: 1 addition & 1 deletion docs/wrapper/states.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{/*import { Mermaid } from '@/content/prose/mermaid';*/}
{/*import { Mermaid } from '#/content/prose/mermaid';*/}

{/** @type {import('@/lib/mdxPageProps').MdxMetaProps} */}
export const meta = {
Expand Down
Loading