mirror of
https://github.com/visortelle/haskell-spotlight.git
synced 2024-11-22 06:34:27 +03:00
Remove all pages. Keep link to VSCode extension
This commit is contained in:
parent
7a80955349
commit
98ed0b6c99
@ -1,17 +1,16 @@
|
||||
import { NextPage, GetStaticPropsResult } from 'next';
|
||||
import Head from 'next/head';
|
||||
import React from 'react';
|
||||
import HomePage from '../components/pages/resources/HomePage';
|
||||
|
||||
const Page: NextPage = () => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>HaskellSpot: The Haskell community’s home page</title>
|
||||
<meta name="description" content="HaskellSpot: The Haskell community’s home page"></meta>
|
||||
<title>VSCode Extension</title>
|
||||
</Head>
|
||||
|
||||
<HomePage />
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100vh' }}>
|
||||
<a style={{ fontSize: '24rem'}} href="https://marketplace.visualstudio.com/items?itemName=visortelle.haskell-spotlight">Haskell Spotlight VSCode extension</a>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
@ -1,42 +0,0 @@
|
||||
import { NextPage, GetStaticPropsResult, GetStaticPropsContext } from 'next';
|
||||
import Head from 'next/head';
|
||||
import OverviewPage from '../../components/pages/package/OverviewPage';
|
||||
import { PackageProps } from '../../components/pages/package/common';
|
||||
import * as pkgFetch from '../../fetch/package';
|
||||
|
||||
const Page: NextPage<PackageProps> = (props) => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{props.id} - HaskellSpot: The Haskell community’s home page</title>
|
||||
<meta name="description" content={props.shortDescription || props.name}></meta>
|
||||
</Head>
|
||||
|
||||
<OverviewPage {...props} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getStaticProps(props: GetStaticPropsContext): Promise<GetStaticPropsResult<PackageProps>> {
|
||||
const packageId = props.params!.packageId as string;
|
||||
const pkg = await pkgFetch.getPackage(packageId);
|
||||
|
||||
if (pkg === null) {
|
||||
return {
|
||||
notFound: true,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
props: pkg,
|
||||
}
|
||||
}
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return {
|
||||
paths: [],
|
||||
fallback: 'blocking'
|
||||
};
|
||||
}
|
||||
|
||||
export default Page;
|
@ -1,43 +0,0 @@
|
||||
import { NextPage, GetStaticPropsResult, GetStaticPropsContext } from 'next';
|
||||
import Head from 'next/head';
|
||||
import DependenciesPage, { DependenciesPageProps } from '../../../components/pages/package/DependenciesPage';
|
||||
import * as pkgFetch from '../../../fetch/package';
|
||||
|
||||
const Page: NextPage<DependenciesPageProps> = (props) => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{props.package.name} - HaskellSpot: The Haskell community’s home page</title>
|
||||
<meta name="description" content={props.package.shortDescription || props.package.name}></meta>
|
||||
</Head>
|
||||
|
||||
<DependenciesPage {...props} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getStaticProps(props: GetStaticPropsContext): Promise<GetStaticPropsResult<DependenciesPageProps>> {
|
||||
const packageId = props.params!.packageId as string;
|
||||
const pkg = await pkgFetch.getPackage(packageId);
|
||||
|
||||
if (pkg === null) {
|
||||
return {
|
||||
notFound: true,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
package: pkg,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return {
|
||||
paths: [],
|
||||
fallback: 'blocking'
|
||||
};
|
||||
}
|
||||
|
||||
export default Page;
|
@ -1,43 +0,0 @@
|
||||
import { NextPage, GetStaticPropsResult, GetStaticPropsContext } from 'next';
|
||||
import Head from 'next/head';
|
||||
import DependentsPage, { DependentsPageProps } from '../../../components/pages/package/DependentsPage';
|
||||
import * as pkgFetch from '../../../fetch/package';
|
||||
|
||||
const Page: NextPage<DependentsPageProps> = (props) => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{props.package.name} - HaskellSpot: The Haskell community’s home page</title>
|
||||
<meta name="description" content={props.package.shortDescription || props.package.name}></meta>
|
||||
</Head>
|
||||
|
||||
<DependentsPage {...props} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getStaticProps(props: GetStaticPropsContext): Promise<GetStaticPropsResult<DependentsPageProps>> {
|
||||
const packageId = props.params!.packageId as string;
|
||||
const pkg = await pkgFetch.getPackage(packageId);
|
||||
|
||||
if (pkg === null) {
|
||||
return {
|
||||
notFound: true,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
package: pkg,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return {
|
||||
paths: [],
|
||||
fallback: 'blocking'
|
||||
};
|
||||
}
|
||||
|
||||
export default Page;
|
@ -1,43 +0,0 @@
|
||||
import { NextPage, GetStaticPropsResult, GetStaticPropsContext } from 'next';
|
||||
import Head from 'next/head';
|
||||
import VersionsPage, { VersionsPageProps } from '../../../components/pages/package/VersionsPage';
|
||||
import * as pkgFetch from '../../../fetch/package';
|
||||
|
||||
const Page: NextPage<VersionsPageProps> = (props) => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>{props.package.name} - HaskellSpot: The Haskell community’s home page</title>
|
||||
<meta name="description" content={props.package.shortDescription || props.package.name}></meta>
|
||||
</Head>
|
||||
|
||||
<VersionsPage {...props} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getStaticProps(props: GetStaticPropsContext): Promise<GetStaticPropsResult<VersionsPageProps>> {
|
||||
const packageId = props.params!.packageId as string;
|
||||
const pkg = await pkgFetch.getPackage(packageId);
|
||||
|
||||
if (pkg === null) {
|
||||
return {
|
||||
notFound: true,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
package: pkg,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return {
|
||||
paths: [],
|
||||
fallback: 'blocking'
|
||||
};
|
||||
}
|
||||
|
||||
export default Page;
|
@ -1,24 +0,0 @@
|
||||
import { NextPage, GetStaticPropsResult, GetStaticPropsContext } from 'next';
|
||||
import Head from 'next/head';
|
||||
import ResourcesPage, { ResourcesPageProps } from '../components/pages/resources/ResourcesPage';
|
||||
|
||||
const Page: NextPage<ResourcesPageProps> = () => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>HaskellSpot: The Haskell community’s home page</title>
|
||||
<meta name="description" content="Haskell - available resources"></meta>
|
||||
</Head>
|
||||
|
||||
<ResourcesPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getStaticProps(props: GetStaticPropsContext): Promise<GetStaticPropsResult<ResourcesPageProps>> {
|
||||
return {
|
||||
props: {},
|
||||
}
|
||||
}
|
||||
|
||||
export default Page;
|
@ -1,25 +0,0 @@
|
||||
import { NextPage, GetStaticPropsResult, GetStaticPropsContext } from 'next';
|
||||
import Head from 'next/head';
|
||||
import DevelopmentEnvironmentPage, { DevelopmentEnvironmentPageProps } from '../../components/pages/resources/DeveloperToolsPage';
|
||||
|
||||
const Page: NextPage<DevelopmentEnvironmentPageProps> = () => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>HaskellSpot: The Haskell community’s home page</title>
|
||||
<meta name="description" content="Haskell - available resources"></meta>
|
||||
</Head>
|
||||
|
||||
<DevelopmentEnvironmentPage />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getStaticProps(props: GetStaticPropsContext): Promise<GetStaticPropsResult<DevelopmentEnvironmentPageProps>> {
|
||||
return {
|
||||
props: {},
|
||||
}
|
||||
}
|
||||
|
||||
export default Page;
|
||||
|
Loading…
Reference in New Issue
Block a user