mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-07-11 23:41:41 +08:00
build:完成打包功能
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||||
"productName": "BiliNote",
|
"productName": "BiliNote",
|
||||||
"version": "0.1.0",
|
"version": "1.8.0",
|
||||||
"identifier": "com.jefferyhuang.bilinote",
|
"identifier": "com.jefferyhuang.bilinote",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../dist",
|
"frontendDist": "../dist",
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"title": "BiliNote",
|
"title": "BiliNote",
|
||||||
"width": 1400,
|
"width": 1600,
|
||||||
"height": 900,
|
"height": 1000,
|
||||||
"resizable": true,
|
"resizable": true,
|
||||||
"fullscreen": false,
|
"fullscreen": false,
|
||||||
"devtools": true
|
"devtools": true
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ const MarkdownViewer: FC<MarkdownViewerProps> = ({ status }) => {
|
|||||||
const [modelName, setModelName] = useState<string>('')
|
const [modelName, setModelName] = useState<string>('')
|
||||||
const [style, setStyle] = useState<string>('')
|
const [style, setStyle] = useState<string>('')
|
||||||
const [createTime, setCreateTime] = useState<string>('')
|
const [createTime, setCreateTime] = useState<string>('')
|
||||||
|
const baseURL = String(import.meta.env.VITE_API_BASE_URL).replace('/api','') || ''
|
||||||
const getCurrentTask = useTaskStore.getState().getCurrentTask
|
const getCurrentTask = useTaskStore.getState().getCurrentTask
|
||||||
const currentTask = useTaskStore(state => state.getCurrentTask())
|
const currentTask = useTaskStore(state => state.getCurrentTask())
|
||||||
const taskStatus = currentTask?.status || 'PENDING'
|
const taskStatus = currentTask?.status || 'PENDING'
|
||||||
@@ -306,8 +306,16 @@ const MarkdownViewer: FC<MarkdownViewerProps> = ({ status }) => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Enhanced image with zoom capability
|
// Enhanced image with zoom capability
|
||||||
img: ({ node, ...props }) => (
|
img: ({ node, ...props }) =>{
|
||||||
<div className="my-8 flex justify-center">
|
|
||||||
|
let src = baseURL +props.src
|
||||||
|
props.src = src
|
||||||
|
|
||||||
|
|
||||||
|
return(
|
||||||
|
|
||||||
|
|
||||||
|
<div className="my-8 flex justify-center">
|
||||||
<Zoom>
|
<Zoom>
|
||||||
<img
|
<img
|
||||||
{...props}
|
{...props}
|
||||||
@@ -316,7 +324,7 @@ const MarkdownViewer: FC<MarkdownViewerProps> = ({ status }) => {
|
|||||||
/>
|
/>
|
||||||
</Zoom>
|
</Zoom>
|
||||||
</div>
|
</div>
|
||||||
),
|
)},
|
||||||
|
|
||||||
// Better strong/bold text
|
// Better strong/bold text
|
||||||
strong: ({ children, ...props }) => (
|
strong: ({ children, ...props }) => (
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ interface NoteHistoryProps {
|
|||||||
const NoteHistory: FC<NoteHistoryProps> = ({ onSelect, selectedId }) => {
|
const NoteHistory: FC<NoteHistoryProps> = ({ onSelect, selectedId }) => {
|
||||||
const tasks = useTaskStore(state => state.tasks)
|
const tasks = useTaskStore(state => state.tasks)
|
||||||
const removeTask = useTaskStore(state => state.removeTask)
|
const removeTask = useTaskStore(state => state.removeTask)
|
||||||
|
const baseURL = import.meta.env.VITE_API_BASE_URL || 'api/'
|
||||||
const [rawSearch, setRawSearch] = useState('')
|
const [rawSearch, setRawSearch] = useState('')
|
||||||
const [search, setSearch] = useState('')
|
const [search, setSearch] = useState('')
|
||||||
const fuse = new Fuse(tasks, {
|
const fuse = new Fuse(tasks, {
|
||||||
@@ -101,7 +102,7 @@ const NoteHistory: FC<NoteHistoryProps> = ({ onSelect, selectedId }) => {
|
|||||||
|
|
||||||
src={
|
src={
|
||||||
task.audioMeta.cover_url
|
task.audioMeta.cover_url
|
||||||
? `/api/image_proxy?url=${encodeURIComponent(task.audioMeta.cover_url)}`
|
? baseURL+`/image_proxy?url=${encodeURIComponent(task.audioMeta.cover_url)}`
|
||||||
: '/placeholder.png'
|
: '/placeholder.png'
|
||||||
}
|
}
|
||||||
alt="封面"
|
alt="封面"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export default function AboutPage() {
|
|||||||
height={50}
|
height={50}
|
||||||
className="rounded-lg"
|
className="rounded-lg"
|
||||||
/>
|
/>
|
||||||
<h1 className="text-4xl font-bold">BiliNote v1.7.5</h1>
|
<h1 className="text-4xl font-bold">BiliNote v1.8.0</h1>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-muted-foreground mb-6 text-xl italic">
|
<p className="text-muted-foreground mb-6 text-xl italic">
|
||||||
AI 视频笔记生成工具 让 AI 为你的视频做笔记
|
AI 视频笔记生成工具 让 AI 为你的视频做笔记
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="./doc/icon.svg" alt="BiliNote Banner" width="50" height="50" />
|
<img src="./doc/icon.svg" alt="BiliNote Banner" width="50" height="50" />
|
||||||
</p>
|
</p>
|
||||||
<h1 align="center" > BiliNote v1.7.5</h1>
|
<h1 align="center" > BiliNote v1.8.0</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p align="center"><i>AI 视频笔记生成工具 让 AI 为你的视频做笔记</i></p>
|
<p align="center"><i>AI 视频笔记生成工具 让 AI 为你的视频做笔记</i></p>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ BACKEND_BASE_URL = f"{API_BASE_URL}:{BACKEND_PORT}"
|
|||||||
# 输出目录(用于缓存音频、转写、Markdown 文件,以及存储截图)
|
# 输出目录(用于缓存音频、转写、Markdown 文件,以及存储截图)
|
||||||
NOTE_OUTPUT_DIR = Path(os.getenv("NOTE_OUTPUT_DIR", "note_results"))
|
NOTE_OUTPUT_DIR = Path(os.getenv("NOTE_OUTPUT_DIR", "note_results"))
|
||||||
NOTE_OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
|
NOTE_OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
IMAGE_OUTPUT_DIR = os.getenv("OUT_DIR", "images")
|
IMAGE_OUTPUT_DIR = os.getenv("OUT_DIR", "./static/screenshots")
|
||||||
# 图片基础 URL(用于生成 Markdown 中的图片链接,需前端静态目录对应)
|
# 图片基础 URL(用于生成 Markdown 中的图片链接,需前端静态目录对应)
|
||||||
IMAGE_BASE_URL = os.getenv("IMAGE_BASE_URL", "/static/screenshots")
|
IMAGE_BASE_URL = os.getenv("IMAGE_BASE_URL", "/static/screenshots")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user