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
import Router from "next/router" | |
import Nprogress from "nprogress" | |
Nprogress.configure({ showSpinner: false, minimum: 0.01, easing: "linear" }) | |
let timeout | |
let timer | |
function startProgress() { | |
// Only start the progress if the site takes too long to load |
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 COUNTRY_DIALING_CODE = "84" | |
const NETWORKS_PREFIX = [ | |
// Viettel | |
"32", | |
"33", | |
"34", | |
"35", | |
"36", | |
"37", |
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 ACCENT_MAP = { | |
ó: 'o', | |
ò: 'o', | |
ỏ: 'o', | |
õ: 'o', | |
ọ: 'o', | |
ơ: 'o', | |
ớ: 'o', | |
ờ: 'o', | |
ở: 'o', |
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
{"version":1,"resource":"file:///Users/hai/Code/github.com/ng-hai/justwrite.day/app/head.tsx","entries":[{"id":"5siX.tsx","timestamp":1667624224958},{"id":"zbYc.tsx","timestamp":1668322748963}]} |