This repository was archived by the owner on Dec 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +38
-106
lines changed
Expand file tree Collapse file tree 4 files changed +38
-106
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ export const EUROPE_TIMEZONES = [
2+ 'Europe/Vienna' ,
3+ 'Europe/Brussels' ,
4+ 'Europe/Sofia' ,
5+ 'Europe/Zagreb' ,
6+ 'Asia/Famagusta' ,
7+ 'Asia/Nicosia' ,
8+ 'Europe/Prague' ,
9+ 'Europe/Copenhagen' ,
10+ 'Europe/Tallinn' ,
11+ 'Europe/Helsinki' ,
12+ 'Europe/Paris' ,
13+ 'Europe/Berlin' ,
14+ 'Europe/Busingen' ,
15+ 'Europe/Athens' ,
16+ 'Europe/Budapest' ,
17+ 'Europe/Dublin' ,
18+ 'Europe/Rome' ,
19+ 'Europe/Riga' ,
20+ 'Europe/Vilnius' ,
21+ 'Europe/Luxembourg' ,
22+ 'Europe/Malta' ,
23+ 'Europe/Amsterdam' ,
24+ 'Europe/Warsaw' ,
25+ 'Atlantic/Azores' ,
26+ 'Atlantic/Madeira' ,
27+ 'Europe/Lisbon' ,
28+ 'Europe/Bucharest' ,
29+ 'Europe/Bratislava' ,
30+ 'Europe/Ljubljana' ,
31+ 'Africa/Ceuta' ,
32+ 'Atlantic/Canary' ,
33+ 'Europe/Madrid' ,
34+ 'Europe/Stockholm'
35+ ] ;
Original file line number Diff line number Diff line change @@ -14,42 +14,7 @@ import * as actions from '../actions';
1414
1515import CodeContainer from './CodeContainer' ;
1616import OptionsContainer from './OptionsContainer' ;
17-
18- const EU_TIMEZONES = [
19- 'Europe/Vienna' ,
20- 'Europe/Brussels' ,
21- 'Europe/Sofia' ,
22- 'Europe/Zagreb' ,
23- 'Asia/Famagusta' ,
24- 'Asia/Nicosia' ,
25- 'Europe/Prague' ,
26- 'Europe/Copenhagen' ,
27- 'Europe/Tallinn' ,
28- 'Europe/Helsinki' ,
29- 'Europe/Paris' ,
30- 'Europe/Berlin' ,
31- 'Europe/Busingen' ,
32- 'Europe/Athens' ,
33- 'Europe/Budapest' ,
34- 'Europe/Dublin' ,
35- 'Europe/Rome' ,
36- 'Europe/Riga' ,
37- 'Europe/Vilnius' ,
38- 'Europe/Luxembourg' ,
39- 'Europe/Malta' ,
40- 'Europe/Amsterdam' ,
41- 'Europe/Warsaw' ,
42- 'Atlantic/Azores' ,
43- 'Atlantic/Madeira' ,
44- 'Europe/Lisbon' ,
45- 'Europe/Bucharest' ,
46- 'Europe/Bratislava' ,
47- 'Europe/Ljubljana' ,
48- 'Africa/Ceuta' ,
49- 'Atlantic/Canary' ,
50- 'Europe/Madrid' ,
51- 'Europe/Stockholm'
52- ] ;
17+ import { EUROPE_TIMEZONES } from '../constants/EuropeTimezones' ;
5318
5419class App extends Component {
5520
@@ -112,7 +77,7 @@ class App extends Component {
11277 isConsentRequired ( ) {
11378 dayjs . extend ( timezone ) ;
11479
115- return EU_TIMEZONES . includes ( dayjs . tz . guess ( ) ) ;
80+ return EUROPE_TIMEZONES . includes ( dayjs . tz . guess ( ) ) ;
11681 }
11782
11883 enableCookies ( ) {
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ import {getEmojiSupportRenderer} from '../util/get-emoji-support-renderer';
1313
1414import * as types from '../constants/ActionTypes' ;
1515import * as actions from '../actions' ;
16- import { ads } from "../constants/Ads" ;
17- import { Adsense } from "@ctrl/react-adsense" ;
1816
1917export const OPTIONS_PRESET_DEFAULT = 'default' ;
2018export const OPTIONS_PRESET_LOW_OBFUSCATION = 'low-obfuscation' ;
@@ -562,23 +560,7 @@ const Options = ({dispatch, options}) => {
562560 < ReactMarkdown
563561 source = { getOptionsMarkdown ( ) }
564562 renderers = { {
565- heading : ( props ) => {
566- const showAd = shouldShowAd ( props . level , headingCounter . current )
567-
568- let ad = null
569-
570- if ( showAd ) {
571- ad = ads [ readmeAdCounter . current ]
572- readmeAdCounter . current ++
573- }
574-
575- headingCounter . current ++
576-
577- return getHeadingRenderer ( {
578- ...props ,
579- adData : showAd ? ad : null
580- } )
581- } ,
563+ heading : getHeadingRenderer ,
582564 text : getEmojiSupportRenderer
583565 } }
584566 />
You can’t perform that action at this time.
0 commit comments