This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const finalData = [ | |
] | |
;(async () => { | |
const res = await fetch('https://restcountries.com/v3.1/all?fields=name,cca2,independent,idd') | |
const data = await res.json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[{ | |
"include": "~/.config/hypr/waybar/modules", | |
"layer": "bottom", | |
//"mode": "dock", | |
"exclusive": true, | |
"passthrough": false, | |
"position": "top", | |
"spacing": 5, | |
"fixed-center": true, | |
"ipc": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"browser": true, | |
"es2021": true | |
}, | |
"extends": [ | |
"plugin:react/recommended", | |
"airbnb", | |
"prettier", | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const getServerSideProps = async () => { | |
// check if the user is logged in | |
const ifAuthenticated = false | |
if (ifAuthenticated) { | |
return { redirect: { destination: '/login', permanent: false } } | |
} | |
return { props: {} } | |
} |