Skip to content

Commit

Permalink
Merge pull request #103 from Chaphasilor/dev
Browse files Browse the repository at this point in the history
Update from dev
  • Loading branch information
Chaphasilor authored Jan 26, 2023
2 parents a476dcc + 6e2f943 commit 1fb9aa4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion public/netlify-functions/checkLinkAlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function checkLink(urlData) {

let contentLength = res.headers.get('Content-Length');
// use libcurl fallback, supports getting Content-Length for 'chunked' encoding
if (contentLength === null) {
if (res.ok && contentLength === null) {
console.info(`retrying with libcurl...`);
try {
console.log(`urlData.url:`, urlData.url)
Expand Down Expand Up @@ -112,6 +112,7 @@ function checkLink(urlData) {

return resolve({
statusCode: 504, // gateway timeout
isAlive: false,
body: err.message,
url: urlData.originalUrl,
});
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
class="w-full max-w-3xl mx-auto mt-2 mb-4 md:my-4"
v-model="searchQuery"
:focus="true"
:placeholder="`Search ${stats.totalIndexed || `millions of`} links${isLandscape ? ` in ${stats.aliveODs} open directories` : ``}...`"
:placeholder="`Search ${stats.totalIndexed || `millions of`} links${isLandscape ? ` in ${stats.aliveODs || ``} open directories` : ``}...`"
@search="
searchQuery.length > 0 ?
$router.push({
Expand Down
2 changes: 1 addition & 1 deletion src/views/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
v-model="searchQuery"
v-observe-visibility="handleVisibilityChanged"
:focus="false"
:placeholder="`Search ${stats.totalIndexed} links...`"
:placeholder="`Search ${stats.totalIndexed || `millions of`} links...`"
@search="search(searchQuery)"
/>

Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module.exports = {
},
extend: {
fontFamily: {
'quicksand': ['Quicksand', 'serif', 'system-ui'],
'quicksand-bold': ['QuicksandBold', 'serif', 'system-ui'],
'quicksand': ['Quicksand', 'sans-serif', 'system-ui'],
'quicksand-bold': ['QuicksandBold', 'sans-serif', 'system-ui'],
},
borderWidth: {
'3': '3px',
Expand Down

0 comments on commit 1fb9aa4

Please sign in to comment.