Skip to content

Commit 9de7da3

Browse files
authored
Merge pull request #249 from yihong0618/revert-242-master
Revert "style:fix/deprecation warning with dart sass"
2 parents 9090281 + 849b7f1 commit 9de7da3

6 files changed

Lines changed: 5296 additions & 2630 deletions

File tree

gatsby-config.js

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ module.exports = {
3636
rootFolder: './',
3737
},
3838
},
39+
'gatsby-plugin-react-helmet',
40+
{
41+
resolve: 'gatsby-transformer-remark',
42+
options: {
43+
plugins: [
44+
'gatsby-remark-responsive-iframe',
45+
'gatsby-remark-smartypants',
46+
'gatsby-remark-widows',
47+
'gatsby-remark-external-links',
48+
{
49+
resolve: 'gatsby-remark-autolink-headers',
50+
options: {
51+
className: 'header-link',
52+
},
53+
},
54+
],
55+
},
56+
},
3957
{
4058
resolve: 'gatsby-plugin-sass',
4159
options: {
@@ -61,11 +79,20 @@ module.exports = {
6179
name: 'gatsby-starter-default',
6280
short_name: 'starter',
6381
start_url: '/',
64-
background_color: '#1A1A1A',
65-
theme_color: '#1A1A1A',
82+
background_color: '#e1e1e1',
83+
theme_color: '#e1e1e1',
6684
display: 'minimal-ui',
6785
icon: 'src/images/favicon.png', // This path is relative to the root of the site.
6886
},
6987
},
88+
'gatsby-transformer-sharp',
89+
'gatsby-plugin-sharp',
90+
'gatsby-plugin-sitemap',
91+
{
92+
resolve: 'gatsby-plugin-robots-txt',
93+
options: {
94+
policy: [{ userAgent: '*', allow: '/' }],
95+
},
96+
},
7097
],
71-
}
98+
};

package.json

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,50 @@
44
"version": "1.0.0",
55
"author": "Yi Hong <zouzou0208@gmail.com>",
66
"dependencies": {
7-
"@mapbox/mapbox-gl-language": "^1.0.0",
7+
"@mapbox/mapbox-gl-language": "^0.10.1",
88
"@mapbox/polyline": "^1.1.1",
9-
"classnames": "^2.3.1",
10-
"date-fns": "^2.28.0",
11-
"gatsby": "^4.16.0",
9+
"classnames": "^2.2.6",
10+
"date-fns": "^2.14.0",
11+
"gatsby": "^4.6.2",
1212
"gatsby-alias-imports": "^1.0.6",
13-
"gatsby-plugin-manifest": "^4.16.0",
14-
"gatsby-plugin-react-svg": "^3.1.0",
15-
"gatsby-plugin-sass": "^5.16.0",
16-
"gatsby-source-filesystem": "^4.16.0",
17-
"gatsby-transformer-json": "^4.16.0",
13+
"gatsby-image": "^3.0.0",
14+
"gatsby-plugin-feed": "^4.6.0",
15+
"gatsby-plugin-manifest": "^4.6.0",
16+
"gatsby-plugin-meta-redirect": "^1.1.1",
17+
"gatsby-plugin-offline": "^5.6.0",
18+
"gatsby-plugin-react-helmet": "^5.6.0",
19+
"gatsby-plugin-react-svg": "^3.0.0",
20+
"gatsby-plugin-robots-txt": "^1.5.1",
21+
"gatsby-plugin-sass": "^5.6.0",
22+
"gatsby-plugin-sharp": "^4.6.0",
23+
"gatsby-plugin-sitemap": "^5.6.0",
24+
"gatsby-redirect-from": "^0.4.3",
25+
"gatsby-remark-autolink-headers": "^5.6.0",
26+
"gatsby-remark-classes": "^1.0.0",
27+
"gatsby-remark-external-links": "^0.0.4",
28+
"gatsby-remark-images": "^6.6.0",
29+
"gatsby-remark-responsive-iframe": "^5.6.0",
30+
"gatsby-remark-smartypants": "^5.6.0",
31+
"gatsby-remark-widows": "^1.0.0",
32+
"gatsby-source-filesystem": "^4.6.0",
33+
"gatsby-transformer-json": "^4.6.0",
34+
"gatsby-transformer-remark": "^5.6.0",
35+
"gatsby-transformer-sharp": "^4.6.0",
36+
"gatsby-transformer-yaml": "^4.6.0",
1837
"gcoord": "^0.3.2",
19-
"mapbox-gl": "^2.8.2",
20-
"prop-types": "^15.8.1",
21-
"react": "^18.1.0",
22-
"react-dom": "^18.1.0",
38+
"pngquant-bin": "^6.0.0",
39+
"prettier": "^2.2.1",
40+
"prop-types": "^15.7.2",
41+
"react": "^17.0.1",
42+
"react-dom": "^17.0.1",
2343
"react-helmet": "^6.1.0",
24-
"react-map-gl": "^6.1.16",
25-
"sass": "^1.52.3",
26-
"sass-mq": "^6.0.0",
27-
"styled-components": "^5.3.5",
44+
"react-map-gl": "^5.2.11",
45+
"sass": "^1.50.0",
46+
"sass-mq": "^5.0.1",
47+
"styled-components": "^4.4.1",
2848
"tachyons": "^4.12.0",
29-
"tachyons-sass": "https://github.com/tachyons-css/tachyons-sass.git",
30-
"viewport-mercator-project": "^7.0.4",
31-
"webpack": "^5.73.0"
49+
"tachyons-sass": "^4.9.5",
50+
"webpack": "^5.11.0"
3251
},
3352
"license": "MIT",
3453
"private": true,

src/components/Header/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Header = () => {
2121
<div className="dib w-75 v-mid tr">
2222
{navLinks.map((n, i) => (
2323
<a
24-
key={i}
24+
key={i.name}
2525
href={n.url}
2626
className="light-gray link dim f6 f5-l mr3 mr4-l"
2727
>

src/styles/index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@import "~tachyons/css/tachyons.css";
2+
23
@import "~tachyons-sass/tachyons.scss";
4+
35
@import "./variables";
46
@import "./themes";
57

src/styles/themes.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import "~tachyons-sass/tachyons.scss";
12
@import "./variables.scss";
23

34
$avenir: "avenir next", avenir, sans-serif;

0 commit comments

Comments
 (0)