Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Dec 11, 2023
1 parent 43cb454 commit beea315
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/app/pages/archives/page.tsx → src/app/archives/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { headers } from 'next/headers'

import Renderer from './render';
import { getArchives } from '../../../api/archives';
import { Archive, ArchiveResponse } from '../../../models/archive';
import { getRequestContext } from '../../../utils/requestContext';
import { getArchives } from '../../api/archives';
import { Archive, ArchiveResponse } from '../../models/archive';
import { getRequestContext } from '../../utils/requestContext';

export default async function Page() {
const { props } = await get();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import HeadMetaComponent from '../../../components/headmeta';
import CoverWithNavigationComponent from '../../../components/cover/withNavigation';
import ArchivesComponent from '../../../components/archives';
import { Archive } from '../../../models/archive';
import { defaultRobotsMeta } from '../../../../config';
import PlanePage from '../../../components/planePage';
import HeadMetaComponent from '../../components/headmeta';
import CoverWithNavigationComponent from '../../components/cover/withNavigation';
import ArchivesComponent from '../../components/archives';
import { Archive } from '../../models/archive';
import { defaultRobotsMeta } from '../../../config';
import PlanePage from '../../components/planePage';

const Renderer: React.FunctionComponent<{ statusCode: number, archives: Array<Archive> }> = ({ statusCode, archives }) => {
if (statusCode !== 200) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/components/headmeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import HeaderScriptSrcsComponent from './headerScriptSrcs';
import { ScriptSrc } from '../models/script';
import { getScriptTags } from '../utils/scriptTags';
import { Content } from '../models/content';
import { usePathname } from "next/navigation";
// import { usePathname } from "next/navigation";
import { convertUnixTimeToISODateSrting } from '../utils/time';

const HeadMetaComponent: React.FunctionComponent<{
Expand All @@ -27,7 +27,7 @@ const HeadMetaComponent: React.FunctionComponent<{
externalResources,
content
}) => {
const currentUrl = new URL(usePathname(), url).href
const currentUrl = new URL('TODO', url).href

if (!robotsMeta) {
robotsMeta = defaultRobotsMeta;
Expand Down

0 comments on commit beea315

Please sign in to comment.