Skip to content

Commit 89c2f07

Browse files
committed
feat!: implemented webmention receiving and cron-scheduled ci runs
1 parent 0f711e6 commit 89c2f07

10 files changed

+504
-12
lines changed

.circleci/config.yml

+51-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs: # a collection of steps
3535
- store_artifacts:
3636
path: ~/tmp/reports/eslint
3737

38-
build_without_version: # build the project - requires dependencies to have been installed
38+
build_dev: # build the project - requires dependencies to have been installed
3939
executor: node-project
4040
steps:
4141
- checkout
@@ -57,7 +57,32 @@ jobs: # a collection of steps
5757
- ~/tmp/firebase.json
5858
- ~/tmp/package-lock.json
5959

60-
build_and_version:
60+
build_prod_no_version:
61+
executor: node-project
62+
steps:
63+
- checkout
64+
- restore_cache:
65+
key: dependency-cache-{{ .Environment.CIRCLE_WORKFLOW_ID }}
66+
- run:
67+
name: Add Git User details
68+
command: |
69+
git config --global user.email "ripixel+ci@gmail.com"
70+
git config --global user.name "CircleCi"
71+
- run: # run build
72+
name: Build
73+
command: npm run build
74+
- store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
75+
path: public
76+
prefix: public
77+
- save_cache: # special step to save the public cache and deploy files
78+
key: deploy-cache-{{ .Environment.CIRCLE_WORKFLOW_ID }}
79+
paths:
80+
- ~/tmp/public
81+
- ~/tmp/.firebaserc
82+
- ~/tmp/firebase.json
83+
- ~/tmp/package-lock.json
84+
85+
build_prod_with_version:
6186
executor: node-project
6287
steps:
6388
- checkout
@@ -115,13 +140,13 @@ workflows:
115140
- lint:
116141
requires:
117142
- install_deps
118-
- build_without_version:
143+
- build_dev:
119144
filters:
120145
branches:
121146
ignore: master
122147
requires:
123148
- install_deps
124-
- build_and_version:
149+
- build_prod_with_version:
125150
filters:
126151
branches:
127152
only: master
@@ -133,11 +158,31 @@ workflows:
133158
only: master
134159
requires:
135160
- lint
136-
- build_and_version
161+
- build_prod_with_version
137162
- deploy_to_firebase_stg:
138163
filters:
139164
branches:
140165
only: staging
141166
requires:
142167
- lint
143-
- build_without_version
168+
- build_dev
169+
hourly:
170+
triggers:
171+
- schedule:
172+
cron: '55 * * * *'
173+
filters:
174+
branches:
175+
only:
176+
- master
177+
jobs:
178+
- install_deps
179+
- lint:
180+
requires:
181+
- install_deps
182+
- build_prod_no_version:
183+
requires:
184+
- install_deps
185+
- deploy_to_firebase_prod:
186+
requires:
187+
- lint
188+
- build_prod_no_version

assets/images/default_avatar.png

428 Bytes
Loading

assets/images/default_avatar.png:Zone.Identifier

Whitespace-only changes.

assets/styles/styles.css

+117
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,119 @@ main.area {
207207
min-height: 30vh;
208208
}
209209

210+
.mentions {
211+
display: flex;
212+
justify-content: flex-start;
213+
flex-direction: column;
214+
flex-wrap: wrap;
215+
padding: 40px 120px 20px;
216+
max-width: 100%;
217+
font-size: 1em;
218+
}
219+
220+
.mentions .item {
221+
background: rgba(0, 0, 0, 0.2);
222+
margin-right: 10px;
223+
margin-bottom: 10px;
224+
text-transform: uppercase;
225+
font-family: 'Lato', sans-serif;
226+
}
227+
228+
.mentions .item span {
229+
padding: 10px;
230+
}
231+
232+
.mentions h4 {
233+
padding-bottom: 10px;
234+
}
235+
236+
.mentions > div {
237+
max-width: 100%;
238+
padding-bottom: 20px;
239+
}
240+
241+
.mention-links a {
242+
display: inline-block;
243+
}
244+
245+
.mention-links img {
246+
background-color: #999;
247+
max-width: 30px;
248+
vertical-align: middle;
249+
border-left: 2px solid #fff;
250+
}
251+
252+
.comments {
253+
max-width: 100%;
254+
}
255+
256+
.comments .mention-links {
257+
display: flex;
258+
flex-direction: column;
259+
}
260+
261+
.mention-links .comment {
262+
background: #025a44;
263+
margin-bottom: 20px;
264+
position: relative;
265+
}
266+
267+
.mention-links .comment:last-child {
268+
margin-bottom: 0;
269+
}
270+
271+
.mention-links .comment .comment-link {
272+
padding: 5px;
273+
float: right;
274+
margin-right: 0;
275+
margin-bottom: 0;
276+
font-size: 0.8em;
277+
}
278+
279+
.mention-links .comment .comment-link:hover {
280+
transform: none;
281+
}
282+
283+
.mention-links .comment p {
284+
padding: 0 10px 10px;
285+
}
286+
287+
@media only screen and (max-width: 600px) {
288+
.mentions {
289+
flex-wrap: nowrap;
290+
overflow-x: auto;
291+
padding: 20px 40px 10px;
292+
}
293+
294+
.mention-links {
295+
white-space: nowrap;
296+
overflow-x: auto;
297+
overflow-y: hidden;
298+
}
299+
300+
.comments .mention-links {
301+
white-space: normal;
302+
}
303+
304+
.mention-links .comment {
305+
max-width: 100%;
306+
}
307+
308+
.mention-links .comment p {
309+
padding: 10px;
310+
}
311+
312+
.mentions .item {
313+
margin-bottom: 0;
314+
}
315+
}
316+
317+
@media only screen and (max-width: 420px) {
318+
.mentions {
319+
padding: 20px 30px 10px;
320+
}
321+
}
322+
210323
.details {
211324
display: flex;
212325
justify-content: flex-start;
@@ -332,6 +445,10 @@ main.thoughts.details {
332445
background: rgb(1, 65, 49);
333446
}
334447

448+
main.thoughts.mentions {
449+
background: rgb(0, 112, 84);
450+
}
451+
335452
main.profile {
336453
min-height: 0;
337454
background: rgb(17, 50, 143);

package-lock.json

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"homepage": "https://github.com/ripixel/ripixel-website#readme",
2525
"devDependencies": {
2626
"@types/node": "^13.13.5",
27+
"@types/node-fetch": "^2.5.8",
2728
"@types/prettier": "^2.0.1",
2829
"@types/showdown": "^1.9.3",
2930
"@typescript-eslint/eslint-plugin": "^3.2.0",

0 commit comments

Comments
 (0)