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
9 changes: 0 additions & 9 deletions .github/workflows/multi-platform-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ jobs:
pip install -r requirements.txt
pip install pyinstaller

- name: 创建logo文件
run: |
if [ "${{ matrix.os }}" == "windows-latest" ]; then
cp logo.png logo.ico || true
elif [ "${{ matrix.os }}" == "macos-latest" ]; then
cp logo.png logo.icns || true
fi
shell: bash

- name: 创建虚拟环境 (Windows)
if: matrix.os == 'windows-latest'
run: |
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<p align="center">
<img src="./logo.png" width="160" height="160" alt="HistoryHub Logo" />
</p>

# HistoryHub

个人历史记录中心。获取 B 站观看历史,通过 Chrome 扩展同步网页访问记录,在本地或自托管服务中保存、搜索和查看。
Expand Down
3 changes: 3 additions & 0 deletions app.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- mode: python ; coding: utf-8 -*-

import sys

a = Analysis(
['app_launcher.py'],
pathex=[],
Expand Down Expand Up @@ -34,6 +36,7 @@ exe = EXE(
[],
exclude_binaries=True,
name='HistoryHubBackend',
icon='logo.ico' if sys.platform == 'win32' else None,
debug=False,
bootloader_ignore_signals=False,
strip=False,
Expand Down
2 changes: 2 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def build(build_type):
'--paths', venv_site_packages,
'app_launcher.py'
]
if os.name == 'nt':
makespec_cmd.insert(-1, '--icon=logo.ico')
print(f"\n运行命令: {' '.join(makespec_cmd)}")

result = subprocess.run(makespec_cmd, capture_output=True, text=True)
Expand Down
Binary file added extension/icons/128.png
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 extension/icons/16.png
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 extension/icons/32.png
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 extension/icons/48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,23 @@
"name": "HistoryHub",
"version": "1.0.0",
"description": "将 Chrome 当前保留的浏览历史同步到自己的 HistoryHub 后端。",
"icons": {
"16": "icons/16.png",
"32": "icons/32.png",
"48": "icons/48.png",
"128": "icons/128.png"
},
"permissions": ["history", "storage", "alarms"],
"optional_host_permissions": ["http://*/*", "https://*/*"],
"background": { "service_worker": "background.js" },
"options_page": "options.html",
"action": { "default_title": "HistoryHub 同步设置" }
"action": {
"default_title": "HistoryHub 同步设置",
"default_icon": {
"16": "icons/16.png",
"32": "icons/32.png",
"48": "icons/48.png",
"128": "icons/128.png"
}
}
}
3 changes: 2 additions & 1 deletion extension/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HistoryHub 同步设置</title>
<link rel="icon" type="image/png" sizes="32x32" href="icons/32.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main>
<h1>HistoryHub</h1>
<h1><img src="icons/128.png" width="40" height="40" alt="">HistoryHub</h1>
<p>将 Chrome 浏览历史同步到自己的后端。首次开启会导入浏览器当前仍保留的 HTTP / HTTPS 访问,之后自动同步新增访问。</p>
<form id="settings-form" novalidate>
<label for="backend-url">后端地址</label>
Expand Down
2 changes: 1 addition & 1 deletion extension/styles.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:root { color-scheme: light dark; font-family: system-ui, "Microsoft YaHei", sans-serif; color: #1f2937; background: #f3f5f8; }
body { margin: 0; }
main { box-sizing: border-box; max-width: 660px; margin: 48px auto; padding: 32px; border: 1px solid #dbe1e8; border-radius: 12px; background: #fff; }
h1 { margin: 0 0 12px; font-size: 28px; }
h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 28px; }
p { line-height: 1.7; }
form { margin-top: 24px; }
label { display: block; margin: 18px 0 8px; font-weight: 600; }
Expand Down
4 changes: 4 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<p align="center">
<img src="./public/logo.png" width="128" height="128" alt="HistoryHub Logo" />
</p>

# HistoryHub 前端

基于 Vue 3 的 B站与网页历史记录界面,提供历史同步、搜索和原链接访问。列表使用后端分页,滚动加载后续记录。
Expand Down
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="referrer" content="no-referrer" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon.png" />
<title>HistoryHub</title>
</head>
<body>
Expand Down
Binary file added frontend/public/favicon.png
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 frontend/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18,286 changes: 0 additions & 18,286 deletions frontend/public/logo.svg

This file was deleted.

Binary file modified frontend/src-tauri/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/src-tauri/icons/128x128@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/src-tauri/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/src-tauri/icons/icon.icns
Binary file not shown.
Binary file modified frontend/src-tauri/icons/icon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/src/components/tailwind/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="flex h-[100dvh] flex-col bg-gray-50 dark:bg-gray-900 sm:flex-row">
<aside class="shrink-0 border-b border-gray-200 bg-white px-4 py-3 dark:border-gray-700 dark:bg-gray-800 sm:w-48 sm:border-b-0 sm:border-r sm:py-6">
<router-link to="/" class="flex items-center gap-2 text-lg font-bold text-gray-900 dark:text-gray-100">
<img src="/logo.svg" alt="" class="h-7 w-7" />
<img src="/logo.png" alt="" class="h-7 w-7" />
HistoryHub
</router-link>
<nav aria-label="主要导航" class="mt-3 flex gap-2 text-sm sm:mt-6 sm:flex-col">
Expand Down
Binary file added logo.ico
Binary file not shown.
Binary file modified logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading