build:完成打包功能

This commit is contained in:
JefferyHcool
2025-06-20 12:03:10 +08:00
parent 601bd7c4e3
commit 467deefd28
6 changed files with 20 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "BiliNote",
"version": "0.1.0",
"version": "1.8.0",
"identifier": "com.jefferyhuang.bilinote",
"build": {
"frontendDist": "../dist",
@@ -13,8 +13,8 @@
"windows": [
{
"title": "BiliNote",
"width": 1400,
"height": 900,
"width": 1600,
"height": 1000,
"resizable": true,
"fullscreen": false,
"devtools": true

View File

@@ -52,7 +52,7 @@ const MarkdownViewer: FC<MarkdownViewerProps> = ({ status }) => {
const [modelName, setModelName] = useState<string>('')
const [style, setStyle] = 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 currentTask = useTaskStore(state => state.getCurrentTask())
const taskStatus = currentTask?.status || 'PENDING'
@@ -306,8 +306,16 @@ const MarkdownViewer: FC<MarkdownViewerProps> = ({ status }) => {
},
// Enhanced image with zoom capability
img: ({ node, ...props }) => (
<div className="my-8 flex justify-center">
img: ({ node, ...props }) =>{
let src = baseURL +props.src
props.src = src
return(
<div className="my-8 flex justify-center">
<Zoom>
<img
{...props}
@@ -316,7 +324,7 @@ const MarkdownViewer: FC<MarkdownViewerProps> = ({ status }) => {
/>
</Zoom>
</div>
),
)},
// Better strong/bold text
strong: ({ children, ...props }) => (

View File

@@ -24,6 +24,7 @@ interface NoteHistoryProps {
const NoteHistory: FC<NoteHistoryProps> = ({ onSelect, selectedId }) => {
const tasks = useTaskStore(state => state.tasks)
const removeTask = useTaskStore(state => state.removeTask)
const baseURL = import.meta.env.VITE_API_BASE_URL || 'api/'
const [rawSearch, setRawSearch] = useState('')
const [search, setSearch] = useState('')
const fuse = new Fuse(tasks, {
@@ -101,7 +102,7 @@ const NoteHistory: FC<NoteHistoryProps> = ({ onSelect, selectedId }) => {
src={
task.audioMeta.cover_url
? `/api/image_proxy?url=${encodeURIComponent(task.audioMeta.cover_url)}`
? baseURL+`/image_proxy?url=${encodeURIComponent(task.audioMeta.cover_url)}`
: '/placeholder.png'
}
alt="封面"

View File

@@ -26,7 +26,7 @@ export default function AboutPage() {
height={50}
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>
<p className="text-muted-foreground mb-6 text-xl italic">
AI AI