Skip to content

Commit

Permalink
Rename to Git History
Browse files Browse the repository at this point in the history
  • Loading branch information
pomber committed Feb 8, 2019
1 parent e0e4efa commit 6a0fa5f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "github-history",
"name": "githistory",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Github History</title>
<title>Git History</title>
<style>
html {
height: 100%;
Expand Down Expand Up @@ -61,8 +61,8 @@
<body>
<div id="root"></div>
<footer>
<a href="https://github.com/pomber/github-history">GitHub History</a
><br />by <a href="https://twitter.com/pomber">@pomber</a>
<a href="https://github.com/pomber/git-history">Git History</a><br />by
<a href="https://twitter.com/pomber">@pomber</a>
</footer>
<!--
This HTML file is a template.
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "Github History",
"name": "Github History",
"short_name": "Git History",
"name": "Git History",
"icons": [
{
"src": "favicon.ico",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# [GitHub History](https://github-history.netlify.com)
# [Git History](https://githistory.xyz)

Browse the history of any file from GitHub with style

<div align="center">
<a href="https://github-history.netlify.com/babel/babel/blob/master/packages/babel-core/test/browserify.js">
<a href="https://github.githistory.xyz/babel/babel/blob/master/packages/babel-core/test/browserify.js">
<img alt="demo" src="https://user-images.githubusercontent.com/1911623/52311598-4581c600-2986-11e9-8c39-f1dfb7c13937.gif" />
</a>
</div>
Expand Down
21 changes: 11 additions & 10 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ export default function AppWrapper(props) {
if (props.repo) {
return <App {...props} />;
} else {
return (
<Center>
<Landing />
</Center>
);
return <Landing />;
}
}

Expand All @@ -31,17 +27,22 @@ function Center({ children }) {
}

function Landing() {
const url = `${window.location.protocol}//${
window.location.host
}/babel/babel/blob/master/packages/babel-core/test/browserify.js`;
return (
<p>
URL should be something like
https://github-history.netlify.com/user/repo/commits/master/path/to/file.js
</p>
<Center>
<p>Try something like: </p>
<a style={{ color: "rgb(173, 219, 103)" }} href={url}>
{url}
</a>
</Center>
);
}

function App({ repo, sha, path, lang }) {
const fileName = path.split("/").pop();
useDocumentTitle(`GitHub History - ${fileName}`);
useDocumentTitle(`Git History - ${fileName}`);

const { commits, loading, error } = useCommitsFetcher({
repo,
Expand Down

0 comments on commit 6a0fa5f

Please sign in to comment.