File tree Expand file tree Collapse file tree 2 files changed +21
-22
lines changed
Expand file tree Collapse file tree 2 files changed +21
-22
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,4 @@ MEDIAWIKI_OAUTH_CLIENT_ID=your_client_id_here
77MEDIAWIKI_OAUTH_CLIENT_SECRET = your_client_secret_here
88
99# API Configuration
10- API_BASE_URL = http://localhost:8000
11-
12- # Wikidata contributions page (optional, shown on stats page)
13- NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL =
10+ API_BASE_URL = http://localhost:8000
Original file line number Diff line number Diff line change 11import { Button } from './Button'
22
3+ const WIKIDATA_CONTRIBUTIONS_URL =
4+ process . env . NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL ||
5+ 'https://www.wikidata.org/w/index.php?hidebots=1&hidecategorization=1&tagfilter=OAuth+CID%3A+14283&limit=500&days=30&title=Special%3ARecentChanges&urlversion=2'
6+
37export function Footer ( ) {
48 return (
59 < div className = "flex justify-center gap-3 py-8" >
610 < Button href = "https://www.opensanctions.org/impressum/" variant = "secondary" size = "small" >
711 Impressum
812 </ Button >
9- { process . env . NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL && (
10- < Button
11- href = { process . env . NEXT_PUBLIC_WIKIDATA_CONTRIBUTIONS_URL }
12- variant = "secondary"
13- size = "small"
14- className = "text-indigo-600 hover:text-indigo-700"
15- >
16- View Wikidata contributions
17- < svg className = "w-4 h-4 ml-1" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
18- < path
19- strokeLinecap = "round"
20- strokeLinejoin = "round"
21- strokeWidth = { 2 }
22- d = "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
23- />
24- </ svg >
25- </ Button >
26- ) }
13+ < Button
14+ href = { WIKIDATA_CONTRIBUTIONS_URL }
15+ variant = "secondary"
16+ size = "small"
17+ className = "text-indigo-600 hover:text-indigo-700"
18+ >
19+ View Wikidata contributions
20+ < svg className = "w-4 h-4 ml-1" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
21+ < path
22+ strokeLinecap = "round"
23+ strokeLinejoin = "round"
24+ strokeWidth = { 2 }
25+ d = "M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
26+ />
27+ </ svg >
28+ </ Button >
2729 </ div >
2830 )
2931}
You can’t perform that action at this time.
0 commit comments