Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
},
"scripts": {
"start": "vite",
"preview": "vite preview",
"build:web": "VITE_BUILD_TARGET=web ./script/build.sh",
"build:ext": "VITE_BUILD_TARGET=extension ./script/build.sh",
"build:firefox": "VITE_BUILD_PLATFORM=firefox ./script/build-firefox.sh",
Expand Down
2 changes: 1 addition & 1 deletion public/base.manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Hackertab.dev - developer news",
"description": "All developer news in one tab",
"version": "1.18.5",
"version": "1.20.1",
"chrome_url_overrides": {
"newtab": "index.html"
},
Expand Down
Binary file added public/screenshots/screenshot_desktop_1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/screenshots/screenshot_mobile_1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions public/web_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@
"sizes": "512x512"
}
],
"screenshots": [
{
"src": "/screenshots/screenshot_mobile_1.webp",
"sizes": "485x1024",
"type": "image/webp",
"form_factor": "narrow",
"label": "Hackertab is available on Desktop and Mobile."
},
{
"src": "/screenshots/screenshot_desktop_1.webp",
"sizes": "1280x720",
"type": "image/webp",
"form_factor": "wide",
"label": "Hackertab is available on Desktop and Mobile."
}
],
"start_url": "/?source=pwa",
"background_color": "#000000",
"display": "standalone",
Expand Down
2 changes: 1 addition & 1 deletion script/build-chrome.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ yarn build:ext

# Zip the distribution folder
echo 'Zip the extension'
cd dist/ && zip -r ../chrome_extension.zip * -x "*.DS_Store" && cd ..
cd dist/ && zip -r ../chrome_extension.zip * -x "*.DS_Store" "web_manifest.json" "screenshots/*" "images/*" "favicon.ico" "robots.txt" "base.manifest.json" "chrome.manifest.json" "firefox.manifest.json" && cd ..
2 changes: 1 addition & 1 deletion script/build-firefox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ yarn build:ext

# Zip the distribution folder
echo 'Zip the extension'
cd dist/ && zip -r ../firefox_extension.zip * -x "*.DS_Store" && cd ..
cd dist/ && zip -r ../firefox_extension.zip * -x "*.DS_Store" "web_manifest.json" "screenshots/*" "images/*" "favicon.ico" "robots.txt" "base.manifest.json" "chrome.manifest.json" "firefox.manifest.json" && cd ..

#
echo 'Zip the source code'
Expand Down
16 changes: 0 additions & 16 deletions script/build-web.sh

This file was deleted.

4 changes: 4 additions & 0 deletions src/assets/kagi_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Elements/Panel/panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

.dark .panel.information {
background-color: #3b424b;
background-color: #1f242a;
color: white;
}
.light .panel.information {
Expand Down
2 changes: 0 additions & 2 deletions src/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ export const Header = () => {
setDNDDuration('never')
}

console.log('location', location)

return (
<>
<header className="AppHeader">
Expand Down
6 changes: 6 additions & 0 deletions src/config/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ReactComponent as PhindLogo } from 'src/assets/phind_logo.svg'
import { ReactComponent as StartPageLogo } from 'src/assets/startpage_logo.svg'
import { ReactComponent as YahooLogo } from 'src/assets/yahoo_logo.svg'
import { ReactComponent as YandexLogo } from 'src/assets/yandex_logo.svg'
import { ReactComponent as KagiLogo} from 'src/assets/kagi_logo.svg'

// Keys
export const ANALYTICS_ENDPOINT = import.meta.env.VITE_AMPLITUDE_URL as string
Expand Down Expand Up @@ -70,6 +71,11 @@ export const SUPPORTED_SEARCH_ENGINES = [
logo: PhindLogo,
className: 'themeAdaptiveFillColor',
},
{
label: 'Kagi',
url: 'https://kagi.com/search?q=',
logo: KagiLogo,
},
]

export const LS_PREFERENCES_KEY = 'hackerTabPrefs'
Expand Down
7 changes: 7 additions & 0 deletions src/features/cards/components/aiCard/ArticleItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ const ArticleItem = (props: BaseItemPropsType<Article>) => {
<span className="subTitle">{item.title}</span>
</CardLink>
</p>
{listingMode === 'compact' && (
<div className="rowDetails">
<span className="rowItem capitalize">
<GoDotFill className="rowItemIcon" /> {item.source}
</span>
</div>
)}
{listingMode === 'normal' && (
<div className="rowDetails">
<span className="rowItem capitalize">
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default defineConfig(({ mode }) => {
rollupOptions: {
output: {
entryFileNames: `assets/[name].js`,
chunkFileNames: `assets/[name].js`,
assetFileNames: `assets/[name].[ext]`,
chunkFileNames: `assets/[name]-[hash].js`,
assetFileNames: `assets/[name]-[hash].[ext]`,
manualChunks: {
core: [
'react',
Expand Down