Skip to content

Commit

Permalink
remove footer version
Browse files Browse the repository at this point in the history
  • Loading branch information
uyu423 committed Jul 21, 2024
1 parent 0d1f0b3 commit 94cb09c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
3 changes: 0 additions & 3 deletions component/footer/IFooter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@ export declare namespace IFooter {
export interface Payload {
github: string;
version: string;
nextVersion: string;
reactVersion: string;
bootstrapVersion: string;
}
}
15 changes: 2 additions & 13 deletions component/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Col, Row } from 'reactstrap';
import { PropsWithChildren } from 'react';
import { EmptyRowCol, HrefTargetBlank } from '../common';

import { IFooter } from './IFooter';
import { PropsWithChildren } from 'react';
import { Style } from '../common/Style';

export const Footer = {
Expand All @@ -13,7 +13,7 @@ function Component({ payload }: PropsWithChildren<{ payload: IFooter.Payload }>)
return (
<Row>
<Col style={Style.footerCover}>
<div style={Style.footer} className="text-center mt-2">
<div style={Style.footer} className="text-center mt-4">
<EmptyRowCol>
<small>
v.{`${payload.version} / `}
Expand All @@ -23,17 +23,6 @@ function Component({ payload }: PropsWithChildren<{ payload: IFooter.Payload }>)
Thanks for <HrefTargetBlank url="https://blog.outsider.ne.kr/1234" text="Outsider" />
</small>
</EmptyRowCol>
<EmptyRowCol>
<small>
<HrefTargetBlank url="https://nextjs.org/" text="Next.js" /> v{payload.nextVersion}
{' / '}
<HrefTargetBlank url="https://reactjs.org/" text="React.js" /> v{payload.reactVersion}
{' / '}
<HrefTargetBlank url="https://getbootstrap.com" text="Bootstrap" /> v
{payload.bootstrapVersion}
</small>
</EmptyRowCol>
<br />
</div>
</Col>
</Row>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "cross-env DEBUG=yosume:* next",
"dev": "cross-env DEBUG=yosume:* NODE_OPTIONS=--openssl-legacy-provider next",
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider next build",
"prebuild": "npm install && npm run lint",
"start": "next start",
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider next start",
"export:with-typedoc": "npm run export && npm run typedoc",
"export": "cross-env NODE_ENV=production next export --outdir docs/",
"preexport": "npm run clean && npm run build",
Expand Down
4 changes: 0 additions & 4 deletions payload/footer.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { homepage, version } from '../package.json';

import { IFooter } from '../component/footer/IFooter';
import { packages } from '../package-lock.json';

const footer: IFooter.Payload = {
version,
github: homepage,
nextVersion: packages[''].dependencies.next,
reactVersion: packages[''].dependencies.react,
bootstrapVersion: packages[''].dependencies.bootstrap,
};

export default footer;

0 comments on commit 94cb09c

Please sign in to comment.