Skip to content

feat: add homepage link #43

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

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
45 changes: 0 additions & 45 deletions .github/workflows/azure-static-web-apps-kind-pond-00161ce0f.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/dispatch.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Flat Viewer
# Flat

👉🏽 👉🏽 👉🏽 **Full writeup**: [Flat Data Project](https://octo.github.com/projects/flat-data) 👈🏽 👈🏽 👈🏽

Expand Down
6 changes: 4 additions & 2 deletions src/components/repo-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ export function RepoDetail(props: RepoDetailProps) {
<div className="p-4 bg-indigo-600">
<header className="flex justify-between items-center">
<div className="text-indigo-100 font-light text-sm">
<strong className="font-bold">Flat Viewer</strong> a simple tool for
exploring flat data files in GitHub repositories.
<a className="font-bold" href="/">
Flat Viewer
</a>{" "}
a simple tool for exploring flat data files in GitHub repositories.
</div>
<Disclosure
{...disclosure}
Expand Down
14 changes: 10 additions & 4 deletions src/components/repo-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import cc from "classcat";
import { Repo } from "../types";

const initialValues: Repo = {
owner: "",
name: "",
owner: "exposir",
name: "liwenliang",
};

const validationSchema = object().shape({
Expand Down Expand Up @@ -93,7 +93,13 @@ function RepoFormComponent(props: FormikProps<Repo>) {
</div>
</div>
<div className="mt-3 text-center text-gray-500 text-sm">
or read <a href="https://next.github.com/projects/flat-data" className="underline">the writeup</a>
or read{" "}
<a
href="https://next.github.com/projects/flat-data"
className="underline"
>
the writeup
</a>
</div>
</div>
);
Expand All @@ -109,7 +115,7 @@ export function RepoForm() {
validateOnBlur={false}
validateOnChange={false}
onSubmit={(values) => {
history.push(`/${values.owner}/` + (values.name || ''))
history.push(`/${values.owner}/` + (values.name || ""));
}}
/>
);
Expand Down