20
20
}
21
21
.test-articles-list span {
22
22
display : inline-block;
23
- width : 8em ;
24
23
line-height : 2em ;
24
+ margin-right : 2em ;
25
25
}
26
- .test-article-header span {
27
- font-weight : bold;
28
- }
29
- .test-article > span : nth-child (1 ),
30
- .test-article-header > span : nth-child (1 ) {
26
+ .test-article > span : nth-child (1 ) {
31
27
width : 14em !important ;
32
28
}
33
29
</ style >
34
30
</ head >
35
31
< body >
36
- < h2 > Default Endpoints</ h2 >
37
-
38
- < form name ="url-form ">
39
- < input
40
- type ="url "
41
- name ="url-input "
42
- size ="100 "
43
- required
44
- placeholder ="https://www.theguardian.com/money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software "
45
- />
46
- < input type ="submit " value ="Add " />
47
- </ form >
32
+ < h2 > Pages</ h2 >
48
33
49
34
< ul id ="default-endpoints ">
50
35
< li >
51
36
< a
52
- href ="/Article/https://www.theguardian.com/money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software "
53
- > Article</ a
54
- >
55
- </ li >
56
- < li >
57
- < a
58
- href ="/AMPArticle/https://amp.theguardian.com/world/2013/jun/09/edward-snowden-nsa-whistleblower-surveillance "
59
- > ⚡️Article</ a
37
+ href ="/Article/https://www.theguardian.com/travel/2024/apr/03/walking-londons-unsung-river-nature-culture-and-moments-of-wonder-along-the-river-lea "
38
+ > 🌍 Article</ a
60
39
>
61
40
</ li >
62
41
< li >
63
42
< a
64
- href ="/Interactive /https://www.theguardian.com/global-development/ng-interactive/2022/jun/09/the-black-sea-blockade-mapping-the-impact- of-war-in-ukraine-on- the-worlds-food-supply-interactive "
65
- > Interactive </ a
43
+ href ="/AppsArticle /https://www.theguardian.com/travel/2024/apr/03/walking-londons-unsung-river-nature-culture-and-moments- of-wonder-along- the-river-lea "
44
+ > 📱 Apps Article </ a
66
45
>
67
46
</ li >
68
47
< li >
69
- < a
70
- href ="/AMPInteractive/https://www.theguardian.com/world/2021/mar/24/how-a-container-ship-blocked-the-suez-canal-visual-guide "
71
- > ⚡️Interactive</ a
48
+ < a href ="/Front/https://www.theguardian.com/international "
49
+ > 🖼️ Front</ a
72
50
>
73
51
</ li >
74
52
< li >
75
53
< a
76
- href ="/AppsInteractive/https://www.theguardian.com/global-development/ng-interactive/2022/jun/09/the-black-sea-blockade-mapping-the-impact-of-war-in-ukraine-on-the-worlds-food-supply-interactive "
77
- > Apps Interactive</ a
78
- >
79
- </ li >
80
- < li >
81
- < a href ="/Front/https://www.theguardian.com/international "
82
- > International Front</ a
54
+ href ="/TagPage/https://www.theguardian.com/tone/minutebyminute "
55
+ > 🏷️ Tag Page</ a
83
56
>
84
- (< a href ="/FrontJSON/https://www.theguardian.com/international "
85
- > Enhanced JSON</ a
86
- > )
87
57
</ li >
88
58
< li >
89
59
< a
90
- href ="/TagPage /https://www.theguardian.com/tone/minutebyminute "
91
- > Tag Page </ a
60
+ href ="/Interactive /https://www.theguardian.com/global-development/ng-interactive/2022/jun/09/the-black-sea-blockade-mapping-the-impact-of-war-in-ukraine-on-the-worlds-food-supply-interactive "
61
+ > ✨ Interactive </ a
92
62
>
93
- (< a
94
- href ="/FrontJSON/https://www.theguardian.com/tone/minutebyminute "
95
- > Enhanced JSON</ a
96
- > )
97
63
</ li >
98
64
< li >
99
65
< a
100
- href ="/AppsArticle /https://www.theguardian.com/money/2017/mar/10/ministers-to-criminalise-use- of-ticket-tout-harvesting-software "
101
- > 📱 Apps Article </ a
66
+ href ="/AppsInteractive /https://www.theguardian.com/global-development/ng-interactive/2022/jun/09/the-black-sea-blockade-mapping-the-impact- of-war-in-ukraine-on-the-worlds-food-supply-interactive "
67
+ > 💫 Apps Interactive </ a
102
68
>
103
69
</ li >
104
70
< li >
105
71
< a
106
72
href ="/EmailNewsletters/https://api.nextgen.guardianapps.co.uk/email-newsletters "
107
- > 📧 All Newsletters page </ a
73
+ > 📧 Email Newsletters</ a
108
74
>
109
75
</ li >
110
76
</ ul >
77
+ < form name ="url-form ">
78
+ < input
79
+ type ="url "
80
+ name ="url-input "
81
+ size ="100 "
82
+ required
83
+ placeholder ="https://www.theguardian.com/money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software "
84
+ />
85
+ < input type ="submit " value ="Add " />
86
+ </ form >
111
87
112
88
< section >
113
89
< h2 > Article Examples</ h2 >
@@ -307,12 +283,9 @@ <h2>Article Examples</h2>
307
283
< table >
308
284
< thead >
309
285
< tr >
310
- < th rowspan ="2 "> Headline</ th >
311
- < th rowspan ="2 "> Description</ th >
312
- < th rowspan ="2 "> Format</ th >
313
- < th colspan ="3 "> Links</ th >
314
- </ tr >
315
- < tr >
286
+ < th > Headline</ th >
287
+ < th > Description</ th >
288
+ < th > Format</ th >
316
289
< th > DEV</ th >
317
290
< th > CODE</ th >
318
291
< th > PROD</ th >
@@ -341,23 +314,20 @@ <h2>Article Examples</h2>
341
314
< td class ="links ">
342
315
< article-link product ="dotcom " env ="DEV "> </ article-link >
343
316
< article-link product ="apps " env ="DEV "> </ article-link >
344
- < article-link product ="amp " env ="DEV "> </ article-link >
345
317
</ td >
346
318
< td class ="links ">
347
319
< article-link
348
320
product ="dotcom "
349
321
env ="CODE "
350
322
> </ article-link >
351
323
< article-link product ="apps " env ="CODE "> </ article-link >
352
- < article-link product ="amp " env ="CODE "> </ article-link >
353
324
</ td >
354
325
< td class ="links ">
355
326
< article-link
356
327
product ="dotcom "
357
328
env ="PROD "
358
329
> </ article-link >
359
330
< article-link product ="apps " env ="PROD "> </ article-link >
360
- < article-link product ="amp " env ="PROD "> </ article-link >
361
331
</ td >
362
332
</ tr >
363
333
</ template >
@@ -401,27 +371,11 @@ <h2>Article Examples</h2>
401
371
402
372
< h2 > Test Articles By Element</ h2 >
403
373
404
- < div id ="test-articles-by-element " class ="test-articles-list ">
405
- < div class ="test-article-header ">
406
- < span > type</ span >
407
- < span > local</ span >
408
- < span > local-amp</ span >
409
- < span > production</ span >
410
- < span > production-amp</ span >
411
- </ div >
412
- </ div >
374
+ < div id ="test-articles-by-element " class ="test-articles-list "> </ div >
413
375
414
376
< h2 > Test Articles By Atom Type</ h2 >
415
377
416
- < div id ="test-articles-by-atom-type " class ="test-articles-list ">
417
- < div class ="test-article-header ">
418
- < span > type</ span >
419
- < span > local</ span >
420
- < span > local-amp</ span >
421
- < span > production</ span >
422
- < span > production-amp</ span >
423
- </ div >
424
- </ div >
378
+ < div id ="test-articles-by-atom-type " class ="test-articles-list "> </ div >
425
379
426
380
< h2 > Test Articles By Element (Missing)</ h2 >
427
381
< ul >
@@ -733,10 +687,9 @@ <h2>Test Articles By Element (Missing)</h2>
733
687
const makeTestArticle = ( a ) => `
734
688
<div class="test-article">
735
689
<span>${ a . name } </span>
736
- <span><a href="/Article/https://www.theguardian.com${ a . article } ">🔗</a> <a href="/Article/http://localhost:9000${ a . article } ">🔗(local FE)</a></span>
737
- <span><a href="/AMPArticle/https://www.theguardian.com${ a . article } ">🔗</a> <a href="/AMPArticle/http://localhost:9000${ a . article } ">🔗(local FE)</a></span>
738
- <span><a href="https://www.theguardian.com${ a . article } ">example</a></span>
739
- <span><a href="https://amp.theguardian.com${ a . article } ">example</a></span>
690
+ <span><a href="/Article/https://www.theguardian.com${ a . article } ">local</a></span>
691
+ <span><a href="/Article/http://localhost:9000${ a . article } ">local FE</a></span>
692
+ <span><a href="https://www.theguardian.com${ a . article } ">prod</a></span>
740
693
</div>
741
694
` ;
742
695
@@ -916,7 +869,7 @@ <h2>${title}</h2>
916
869
917
870
class ArticleLink extends HTMLElement {
918
871
/**
919
- * @typedef {'dotcom' | 'apps' | 'amp' } Product
872
+ * @typedef {'dotcom' | 'apps' } Product
920
873
* @typedef {'PROD' | 'CODE' | 'DEV' } Env
921
874
*/
922
875
@@ -938,8 +891,6 @@ <h2>${title}</h2>
938
891
case 'dotcom' :
939
892
case 'apps' :
940
893
return 'https://www.theguardian.com' ;
941
- case 'amp' :
942
- return 'https://amp.theguardian.com' ;
943
894
}
944
895
}
945
896
@@ -952,8 +903,6 @@ <h2>${title}</h2>
952
903
case 'dotcom' :
953
904
case 'apps' :
954
905
return 'https://m.code.dev-theguardian.com' ;
955
- case 'amp' :
956
- return 'https://amp.code.dev-theguardian.com' ;
957
906
}
958
907
}
959
908
@@ -977,8 +926,6 @@ <h2>${title}</h2>
977
926
return '/Article' ;
978
927
case 'apps' :
979
928
return '/AppsArticle' ;
980
- case 'amp' :
981
- return '/AMPArticle' ;
982
929
}
983
930
}
984
931
@@ -1027,8 +974,6 @@ <h2>${title}</h2>
1027
974
return '🌍 Dotcom' ;
1028
975
case 'apps' :
1029
976
return '📱 Apps' ;
1030
- case 'amp' :
1031
- return '⚡️ AMP' ;
1032
977
}
1033
978
}
1034
979
@@ -1081,13 +1026,9 @@ <h2>${title}</h2>
1081
1026
const env = this . getAttribute ( 'env' ) ;
1082
1027
const href = this . getAttribute ( 'href' ) ;
1083
1028
1084
- if (
1085
- product !== 'dotcom' &&
1086
- product !== 'apps' &&
1087
- product !== 'amp'
1088
- ) {
1029
+ if ( product !== 'dotcom' && product !== 'apps' ) {
1089
1030
this . textContent =
1090
- "article-link error: 'product' must be one of: 'dotcom', 'apps' or 'amp '" ;
1031
+ "article-link error: 'product' must be one of: 'dotcom' or 'apps '" ;
1091
1032
return ;
1092
1033
}
1093
1034
0 commit comments