Remove all pages. Keep link to VSCode extension

This commit is contained in:
visortelle 2023-02-07 07:53:09 +01:00
parent 7a80955349
commit 98ed0b6c99
No known key found for this signature in database
GPG Key ID: 97026AE67052C507
7 changed files with 4 additions and 225 deletions

View File

@ -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 communitys home page</title>
<meta name="description" content="HaskellSpot: The Haskell communitys 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>
</>
)
}

View File

@ -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 communitys 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;

View File

@ -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 communitys 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;

View File

@ -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 communitys 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;

View File

@ -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 communitys 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;

View File

@ -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 communitys 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;

View File

@ -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 communitys 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;