Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit d039dd4

Browse files
feat: deprecate website prod build
1 parent fd9c0c7 commit d039dd4

File tree

22 files changed

+3
-1152
lines changed

22 files changed

+3
-1152
lines changed

site/decks.sample.json

Lines changed: 1 addition & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,3 @@
11
[
2-
{
3-
"id": "ZXMB7oWOHGtDaju3jt39",
4-
"data": {
5-
"title": "Write like a wizard",
6-
"url": "https://beta.deckdeckgo.io/contact3329/write-like-a-wizard/",
7-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/vQulkNeE9lhg3RSKhyjwnyOnr723%2Fpresentations%2Fwrite-like-a-wizard%2Fdeckdeckgo.png?alt=media",
8-
"published_at": "2020-12-18T13:48:51.411Z",
9-
"description": "Use the magic of modern technology for your writing: tech stacks and workflows",
10-
"author": {"name": "Martin Maga", "photo_url": "https://avatars0.githubusercontent.com/u/24781788?v=4"}
11-
}
12-
},
13-
{
14-
"id": "o0OFGSDqCa2MdYQJOux0",
15-
"data": {
16-
"title": "Les licenses artistiques libres",
17-
"url": "https://beta.deckdeckgo.io/vincianechatel/les-licendes-artistiques-libres/",
18-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/LzTddg8FUAhOEH0fv7hrd0UvvXU2%2Fpresentations%2Fles-licendes-artistiques-libres%2Fdeckdeckgo.png?alt=media",
19-
"published_at": "2020-12-11T13:00:47.158Z",
20-
"description": "Pourquoi ? Comment ?",
21-
"author": {
22-
"photo_url": "https://lh3.googleusercontent.com/a-/AOh14GhGAuqdrZXIqRG7qoERGSbSfkDnFJ8jmlZqC0uI=s96-c",
23-
"name": "Vinciane Chatel"
24-
}
25-
}
26-
},
27-
{
28-
"id": "se1jz4ETohc4Uff9vG9K",
29-
"data": {
30-
"title": "lab6-uml",
31-
"url": "https://beta.deckdeckgo.io/Br1ght0ne/lab6-uml/",
32-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/twuPLsSMNeh27oE15hIUZqyqd7G2%2Fpresentations%2Flab6-uml%2Fdeckdeckgo.png?alt=media",
33-
"published_at": "2020-12-02T15:51:50.322Z",
34-
"description": "Oleksii Filonenko, PP-42",
35-
"author": {
36-
"photo_url": "https://avatars1.githubusercontent.com/u/12615679?v=4",
37-
"social": {"dev": "brightone", "custom": "https://blog.brightone.cloud", "github": "Br1ght0ne", "twitter": "Br1ght0ne"},
38-
"name": "Oleksii Filonenko"
39-
}
40-
}
41-
},
42-
{
43-
"id": "QLAekYrxR4XanlrJTZ86",
44-
"data": {
45-
"title": "mfw div spamming",
46-
"url": "https://beta.deckdeckgo.io/yuri/mfw-div-spamming/",
47-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/v97OWXYklAa5AxeW6EhjcPInh3x1%2Fpresentations%2Fmfw-div-spamming%2Fdeckdeckgo.png?alt=media",
48-
"published_at": "2020-12-01T15:27:17.881Z",
49-
"description": "Semantic HTML Elements und Accessibility",
50-
"author": {
51-
"photo_url": "https://lh3.googleusercontent.com/a-/AOh14GiK0HLHhhS2batB0sGodtVolhNoo0y_hotToF7PGA",
52-
"name": "Yuri Becker",
53-
"social": {"github": "yuri-becker", "custom": "https://yuri.li", "medium": "yuri.li"}
54-
}
55-
}
56-
},
57-
{
58-
"id": "hHk4kzHODvKrdCs5nWXv",
59-
"data": {
60-
"title": "Hannukah",
61-
"url": "https://beta.deckdeckgo.io/pavel/hannukah/",
62-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/GMRcBdNhpmVS8uoFH8sEPeU7Rr93%2Fpresentations%2Fhannukah%2Fdeckdeckgo.png?alt=media",
63-
"published_at": "2020-12-01T10:25:05.353Z",
64-
"description": "The Festival of Lights",
65-
"author": {
66-
"photo_url": "https://lh6.googleusercontent.com/-i2udm531yTs/AAAAAAAAAAI/AAAAAAAAAAA/AMZuuclKIAzxnlen89tLFFQ4X_w_bK-WGw/s96-c/photo.jpg",
67-
"name": "Pavel Kats"
68-
}
69-
}
70-
},
71-
{
72-
"id": "z32Ahbsh7TVdPaxkSfIh",
73-
"data": {
74-
"title": "Course Conversion From MOODLE to Canvas",
75-
"url": "https://beta.deckdeckgo.io/aschaeffer19/course-conversion-from-moodle-to-canvas/",
76-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/y0O5mQQK7Cfg1epMxKfOXe37wzf2%2Fpresentations%2Fcourse-conversion-from-moodle-to-canvas%2Fdeckdeckgo.png?alt=media",
77-
"published_at": "2020-11-30T07:13:34.000Z",
78-
"description": "Slide show made using DeckDeckGo for CSE 617 Open Source Tools Final Project\n\n.gifs made with Kapture https://getkap.co/\n\nSlideshow made with DeckDeckGo https://deckdeckgo.com/\n\nThis is the final project for my fall term 2020 CSE 617 Open Source Tools class at Western Oregon University! The objective was to make an informative document using all open source tools. Feel free to use or edit any of the content for your own purposes!\n\nBest,\n\nAdam",
79-
"tags": ["MOODLE", "Canvas"],
80-
"author": {
81-
"photo_url": "https://lh3.googleusercontent.com/a-/AOh14Gjp0JpA1sXAuK215NBomSHv3PrPvrqfN2YT4JmN=s96-c",
82-
"name": "Adam Schaeffer"
83-
}
84-
}
85-
},
86-
{
87-
"id": "Y3g6MlcvTz0OJ23zHAas",
88-
"data": {
89-
"title": "Who.....👍",
90-
"url": "https://beta.deckdeckgo.io/banyaplara/who/",
91-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/SlGFQLDQMNNmYEFxv3sOHT6hOFx1%2Fpresentations%2Fwho%2Fdeckdeckgo.png?alt=media",
92-
"published_at": "2020-11-29T05:02:45.707Z",
93-
"description": "Its simple testing the tool",
94-
"author": {
95-
"photo_url": "https://lh3.googleusercontent.com/a-/AOh14GgNiqSgkWL5K4N0OW7W_XjK2yFhB3sWnz4ULKlUtaA=s96-c",
96-
"name": "Rakesh Gunderi"
97-
}
98-
}
99-
},
100-
{
101-
"id": "pwju29cfMnQN2PbGpqgF",
102-
"data": {
103-
"title": "lab7-patterns",
104-
"url": "https://beta.deckdeckgo.io/Br1ght0ne/lab7-patterns/",
105-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/twuPLsSMNeh27oE15hIUZqyqd7G2%2Fpresentations%2Flab7-patterns%2Fdeckdeckgo.png?alt=media",
106-
"published_at": "2020-11-27T07:28:21.000Z",
107-
"description": "Oleksii Filonenko, PP-42",
108-
"author": {
109-
"name": "Oleksii Filonenko",
110-
"photo_url": "https://avatars1.githubusercontent.com/u/12615679?v=4",
111-
"social": {"dev": "brightone", "twitter": "Br1ght0ne", "github": "Br1ght0ne", "custom": "https://blog.brightone.cloud"}
112-
}
113-
}
114-
},
115-
{
116-
"id": "fSml57zceeSycUBCvQRw",
117-
"data": {
118-
"title": "lab2-srs",
119-
"url": "https://beta.deckdeckgo.io/Br1ght0ne/lab2-srs/",
120-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/twuPLsSMNeh27oE15hIUZqyqd7G2%2Fpresentations%2Flab2-srs%2Fdeckdeckgo.png?alt=media",
121-
"published_at": "2020-11-27T07:24:46.000Z",
122-
"description": "Oleksii Filonenko, PP-42\n",
123-
"author": {
124-
"photo_url": "https://avatars1.githubusercontent.com/u/12615679?v=4",
125-
"social": {"dev": "brightone", "custom": "https://blog.brightone.cloud", "twitter": "Br1ght0ne", "github": "Br1ght0ne"},
126-
"name": "Oleksii Filonenko"
127-
}
128-
}
129-
},
130-
{
131-
"id": "VupDECYJJeLttbaWKocg",
132-
"data": {
133-
"title": "Buying a Car",
134-
"url": "https://beta.deckdeckgo.io/tytnemt/buying-a-car/",
135-
"screenshot": "https://firebasestorage.googleapis.com/v0/b/deckdeckgo-studio-prod.appspot.com/o/2fKKoMs2DcgcKC0A8pKnM4gA97r2%2Fpresentations%2Fbuying-a-car%2Fdeckdeckgo.png?alt=media",
136-
"published_at": "2020-11-26T13:31:06.452Z",
137-
"description": "Tyler HensonSnow CollegeFacets of Food11/22/2020",
138-
"author": {"name": "Tyler Henson", "photo_url": "https://avatars3.githubusercontent.com/u/75002243?v=4"}
139-
}
140-
}
2+
1413
]

site/gatsby-node.js

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,8 @@ exports.onCreateNode = async ({node, actions: {createNode}, createNodeId, getCac
2424
};
2525

2626
exports.sourceNodes = async ({actions, createNodeId, createContentDigest}) => {
27-
const activeEnv = process.env.GATSBY_ACTIVE_ENV || process.env.NODE_ENV || 'development';
28-
29-
if (activeEnv !== 'production' || !process.env.FIREBASE_FUNCTIONS_URL || !process.env.FIREBASE_FEED_TOKEN) {
30-
const feed = JSON.parse(fs.readFileSync('./decks.sample.json'));
31-
createNodes(actions, createNodeId, createContentDigest, feed);
32-
33-
return;
34-
}
35-
36-
try {
37-
const rawResponse = await fetch(`${process.env.FIREBASE_FUNCTIONS_URL}/feed`, {
38-
method: 'POST',
39-
headers: {
40-
Accept: 'application/json',
41-
'Content-Type': 'application/json',
42-
Authorization: `Bearer ${process.env.FIREBASE_FEED_TOKEN}`
43-
}
44-
});
45-
46-
if (!rawResponse || !rawResponse.ok) {
47-
console.error('Cannot fetch feed data.');
48-
return;
49-
}
50-
51-
const feed = await rawResponse.json();
52-
createNodes(actions, createNodeId, createContentDigest, feed);
53-
} catch (err) {
54-
console.error(err);
55-
}
27+
const feed = JSON.parse(fs.readFileSync('./decks.sample.json'));
28+
createNodes(actions, createNodeId, createContentDigest, feed);
5629
};
5730

5831
// https://www.gatsbyjs.com/docs/how-to/plugins-and-themes/creating-a-source-plugin/

site/src/components/discover/card/card.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

site/src/components/discover/card/card.module.scss

Lines changed: 0 additions & 18 deletions
This file was deleted.

site/src/components/discover/feed/feed.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

site/src/components/discover/feed/feed.module.scss

Lines changed: 0 additions & 19 deletions
This file was deleted.

site/src/components/enterprise/contact/contact.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

site/src/components/enterprise/contact/contact.module.scss

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)