Skip to content

Commit 0d18cfa

Browse files
committed
Update
1 parent ab6471e commit 0d18cfa

File tree

134 files changed

+6775
-5120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+6775
-5120
lines changed

.env.sample

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FIREBASE_CONFIG_PRIVATE_KEY=

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "fir-32d38"
4+
}
5+
}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ yarn-error.log
6767
.pnp.js
6868
# Yarn Integrity file
6969
.yarn-integrity
70+
71+
#Sample File
72+
!.env.sample

.prettierignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.cache
2-
package-lock.json
32
public

.prettierrc

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"endOfLine": "lf",
3-
"semi": false,
4-
"singleQuote": false,
5-
"tabWidth": 2,
6-
"trailingComma": "es5"
2+
"arrowParens": "avoid",
3+
"semi": false
74
}

Dockerfile

-24
This file was deleted.

LICENSE

-22
This file was deleted.

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</a>
66
</p>
77
<h1 align="center">
8-
Gatsby's default starter
8+
Himadu's Website with Gatsby
99
</h1>
1010

1111
Kick off your project with this default boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
@@ -28,7 +28,7 @@ _Have another more specific idea? You may want to check out our vibrant collecti
2828
Navigate into your new site’s directory and start it up.
2929

3030
```shell
31-
cd my-default-starter/
31+
cd Website/
3232
gatsby develop
3333
```
3434

@@ -38,7 +38,7 @@ _Have another more specific idea? You may want to check out our vibrant collecti
3838

3939
_Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._
4040
41-
Open the `my-default-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!
41+
Open the `Website` directory in your code editor of choice and edit `src/pages/index.tsx`. Save your changes and the browser will update in real time!
4242
4343
## 🧐 What's inside?
4444

@@ -74,7 +74,7 @@ A quick look at the top-level files and directories you'll see in a Gatsby proje
7474
7575
8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
7676
77-
9. **`LICENSE`**: Gatsby is licensed under the MIT license.
77+
9. **`LICENSE`**: This Gatsby starter is licensed under the Unlicense. This means that you can see this file as a placeholder and replace it with your own license.
7878
7979
10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
8080
@@ -94,6 +94,6 @@ Looking for more guidance? Full documentation for Gatsby lives [on the website](
9494
9595
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-default)
9696
97-
[![Deploy with ZEIT Now](https://zeit.co/button)](https://zeit.co/import/project?template=https://github.com/gatsbyjs/gatsby-starter-default)
97+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/gatsbyjs/gatsby-starter-default)
9898
9999
<!-- AUTO-GENERATED-CONTENT:END -->

fir-32d38-firebase-adminsdk-a1ck8-a74c36d9aa.json

-12
This file was deleted.

firebase.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"hosting": {
3+
"public": "public",
4+
"rewrites": [
5+
{
6+
"source": "**",
7+
"destination": "/index.html"
8+
}
9+
],
10+
"headers": [
11+
{
12+
"source": "**/static/**",
13+
"headers": [
14+
{
15+
"key": "Cache-Control",
16+
"value": "max-age=31536000"
17+
}
18+
]
19+
},
20+
{
21+
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp)",
22+
"headers": [
23+
{
24+
"key": "Cache-Control",
25+
"value": "max-age=31536000"
26+
}
27+
]
28+
}
29+
]
30+
}
31+
}

gatsby-browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
// mdbreact
1010
import "@fortawesome/fontawesome-free/css/all.min.css"
1111
import "bootstrap-css-only/css/bootstrap.min.css"
12-
import "mdbreact/dist/css/mdb.css"
12+
import "mdbreact/dist/css/mdb.css"

gatsby-config.js

+17-27
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
if (!process.env.GITHUB_ACTION) {
22
require("dotenv").config()
33
}
4-
const parseNewLines = function(key) {
4+
const parseNewLines = key => {
55
return typeof key === "string" ? key.replace(/\\n/g, "\n") : key
66
}
77
const privateKey = parseNewLines(process.env.FIREBASE_CONFIG_PRIVATE_KEY)
88
module.exports = {
99
siteMetadata: {
10-
title: `Himadu Sirimanna`,
11-
description: `Himadu Sirimanna's Website.`,
10+
title: `Himadu's Website`,
11+
description: `Himadu Sirimannna personal website.`,
1212
author: `@himadu`,
1313
siteUrl: `https://www.himadu.me`,
1414
},
@@ -26,8 +26,8 @@ module.exports = {
2626
{
2727
resolve: `gatsby-plugin-manifest`,
2828
options: {
29-
name: `Himadu Sirimanna`,
30-
short_name: `Himadu`,
29+
name: `Himadu's Website`,
30+
short_name: `himadu`,
3131
start_url: `/`,
3232
background_color: `#663399`,
3333
theme_color: `#663399`,
@@ -54,46 +54,36 @@ module.exports = {
5454
showSpinner: true,
5555
},
5656
},
57-
// typescript
58-
{
59-
resolve: `gatsby-plugin-typescript`,
60-
options: {
61-
isTSX: true, // defaults to false
62-
jsxPragma: `React`, // was jsx defaults to "React"
63-
allExtensions: true, // defaults to false
64-
},
65-
},
6657
// firebase theme
6758
{
6859
resolve: "gatsby-theme-firebase",
6960
options: {
7061
credentials: {
71-
apiKey: "AIzaSyAgkfWxahbDS8goMk1dnvpeCEpFqUrZvoo",
72-
authDomain: "ansi-68e9a.firebaseapp.com",
73-
databaseURL: "https://ansi-68e9a.firebaseio.com",
74-
projectId: "ansi-68e9a",
75-
storageBucket: "ansi-68e9a.appspot.com",
76-
messagingSenderId: "597113660855",
77-
appId: "1:597113660855:web:52ff5ab6391e13e2717432",
78-
measurementId: "G-H9B39JD4S2",
62+
apiKey: "AIzaSyDrQEupm_MrUm1eXRHVL6SJ6fHyS89Yxak",
63+
authDomain: "fir-32d38.firebaseapp.com",
64+
databaseURL: "https://fir-32d38.firebaseio.com",
65+
projectId: "fir-32d38",
66+
storageBucket: "fir-32d38.appspot.com",
67+
messagingSenderId: "785847414044",
68+
appId: "1:785847414044:web:1a7589d76c9ae57f969ed9",
69+
measurementId: "G-XVZXW5QXM6",
7970
},
8071
loginPath: "/user/login",
8172
loginRedirectPath: "/contact",
8273
socialLogins: ["google"],
8374
},
8475
},
85-
8676
// flamelink
8777
{
8878
resolve: "gatsby-source-flamelink",
8979
options: {
9080
firebaseConfig: {
91-
projectId: "ansi-68e9a",
81+
projectId: "fir-32d38",
9282
clientEmail:
93-
"firebase-adminsdk-eeooa@ansi-68e9a.iam.gserviceaccount.com",
83+
"firebase-adminsdk-a1ck8@fir-32d38.iam.gserviceaccount.com",
9484
privateKey: privateKey,
95-
databaseURL: "https://ansi-68e9a.firebaseio.com",
96-
storageBucket: "ansi-68e9a.appspot.com",
85+
databaseURL: "https://fir-32d38.firebaseio.com",
86+
storageBucket: "fir-32d38.appspot.com",
9787
},
9888
dbType: "cf",
9989
environment: "production",

package.json

+35-40
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,57 @@
11
{
2-
"name": "ansi-global",
3-
"private": false,
4-
"description": "ANSI Global Website",
2+
"name": "my-website",
3+
"private": true,
4+
"description": "This is my website.",
55
"version": "0.1.0",
6-
"author": "Himadu Sirimanna <[email protected]>",
6+
"author": "Himadu Sirimanna",
77
"dependencies": {
8-
"gatsby": "^2.21.5",
9-
"gatsby-image": "^2.4.2",
10-
"gatsby-plugin-manifest": "^2.2.48",
11-
"gatsby-plugin-nprogress": "^2.2.1",
12-
"gatsby-plugin-offline": "^3.1.2",
13-
"gatsby-plugin-react-helmet": "^3.1.24",
14-
"gatsby-plugin-robots-txt": "^1.5.0",
15-
"gatsby-plugin-sass": "^2.3.0",
16-
"gatsby-plugin-sharp": "^2.6.0",
17-
"gatsby-plugin-sitemap": "^2.4.0",
18-
"gatsby-plugin-typescript": "^2.4.0",
19-
"gatsby-source-filesystem": "^2.1.56",
20-
"gatsby-source-flamelink": "^3.0.0-alpha.3",
21-
"gatsby-theme-firebase": "^1.0.8",
22-
"gatsby-transformer-sharp": "^2.5.0",
23-
"mdbreact": "^4.26.0",
24-
"node-sass": "^4.14.0",
8+
"gatsby": "^2.23.12",
9+
"gatsby-image": "^2.4.9",
10+
"gatsby-plugin-manifest": "^2.4.14",
11+
"gatsby-plugin-nprogress": "^2.3.8",
12+
"gatsby-plugin-offline": "^3.2.15",
13+
"gatsby-plugin-react-helmet": "^3.3.6",
14+
"gatsby-plugin-robots-txt": "^1.5.1",
15+
"gatsby-plugin-sass": "^2.3.9",
16+
"gatsby-plugin-sharp": "^2.6.14",
17+
"gatsby-plugin-sitemap": "^2.4.9",
18+
"gatsby-source-filesystem": "^2.3.14",
19+
"gatsby-source-flamelink": "^3.0.0-alpha.5",
20+
"gatsby-theme-firebase": "^1.0.10",
21+
"gatsby-transformer-sharp": "^2.5.7",
22+
"mdbreact": "^4.27.0",
23+
"node-sass": "^4.14.1",
2524
"prop-types": "^15.7.2",
26-
"react": "^16.13.1",
27-
"react-dom": "^16.13.0",
28-
"react-helmet": "^5.2.1"
25+
"react": "^16.12.0",
26+
"react-dom": "^16.12.0",
27+
"react-helmet": "^6.1.0"
2928
},
3029
"devDependencies": {
3130
"cross-env": "^7.0.2",
3231
"dotenv": "^8.2.0",
33-
"firebase-tools": "^7.16.2",
34-
"prettier": "^1.19.1"
32+
"prettier": "2.0.5"
3533
},
3634
"keywords": [
37-
"ANSIGlobal"
35+
"gatsby",
36+
"himadu",
37+
"sirimanna"
3838
],
39-
"license": "GPL-3.0-or-later",
40-
"homepage": "/",
39+
"license": "Unlicense",
4140
"scripts": {
4241
"build": "gatsby build",
4342
"develop": "gatsby develop",
44-
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
43+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
4544
"start": "npm run develop",
4645
"serve": "gatsby serve",
4746
"clean": "gatsby clean",
48-
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
47+
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1",
48+
"deploy": "gatsby clean && gatsby build && firebase deploy && gatsby clean"
4949
},
5050
"repository": {
51-
"directory": "ANSI",
52-
"type": "typescript",
53-
"url": "https://github.com/Himadu2000/ANSI"
51+
"type": "git",
52+
"url": "https://github.com/Himadu2000/Website"
5453
},
5554
"bugs": {
56-
"email": "[email protected]",
57-
"url": "https://github.com/Himadu2000/ANSI"
58-
},
59-
"maintainers": [
60-
"Himadu Sirimanna"
61-
]
55+
"url": "https://github.com/Himadu2000/Website/issues"
56+
}
6257
}

0 commit comments

Comments
 (0)