mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
chore: cleanup dev message
This commit is contained in:
@@ -22,14 +22,13 @@ const WebmentionCount = ({ target }) => {
|
||||
}
|
||||
const [counts, setCounts] = useState(initialCounts)
|
||||
const fetchCounts = async (target) => {
|
||||
const responseData = await fetch(`https://webmention.io/api/count.json?target=${target}`)
|
||||
console.log('!!!', responseData)
|
||||
const responseData = await fetch(`https://webmention.io/api/count.json?target=${encodeURIComponent(target)}`)
|
||||
return (responseData.json) ? await responseData.json() : responseData
|
||||
}
|
||||
useEffect(() => {
|
||||
async function getCounts() {
|
||||
const responseCounts = await fetchCounts(target)
|
||||
console.log('rere', responseCounts)
|
||||
console.log(responseCounts)
|
||||
setCounts(responseCounts)
|
||||
}
|
||||
getCounts()
|
||||
|
||||
@@ -249,6 +249,11 @@ nav {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.webmention-counts {
|
||||
padding: 16px 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.webmention-counts .count {
|
||||
font-weight: bold;
|
||||
margin-right: .2rem;
|
||||
|
||||
Reference in New Issue
Block a user