From 3e5dd355c05ada83f486fa4d768299757de3da5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wellington=20J=C3=BAnior?= <67232334+orangethewell@users.noreply.github.com> Date: Tue, 19 Nov 2024 21:23:43 -0300 Subject: [PATCH 1/2] ci: :bug: Fix CI bad configured --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c0b160..17a94d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: lts/* - cache: 'yarn' # Set this to npm, yarn or pnpm. + cache: 'npm' # Set this to npm, yarn or pnpm. - name: install Rust stable uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly From 1d53fb3500600b256c087dcc2f66ea1b7581566f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wellington=20J=C3=BAnior?= <67232334+orangethewell@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:30:54 -0300 Subject: [PATCH 2/2] fix: :bug: Fix a bug of release mode that TOC not showing up --- src-tauri/tauri.conf.json | 7 ++++++- src/routes/publicationView.jsx | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3a212a3..add05b6 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Open Witness Library", - "version": "0.1.0", + "version": "0.1.1", "identifier": "com.open-witness-library.app", "build": { "beforeDevCommand": "npm run dev", @@ -28,6 +28,11 @@ "bundle": { "active": true, "targets": "all", + "windows": { + "webviewInstallMode": { + "type": "embedBootstrapper" + } + }, "icon": [ "icons/32x32.png", "icons/128x128.png", diff --git a/src/routes/publicationView.jsx b/src/routes/publicationView.jsx index b2974ef..9248397 100644 --- a/src/routes/publicationView.jsx +++ b/src/routes/publicationView.jsx @@ -53,6 +53,7 @@ const PublicationView = () => { useEffect(() => { const fetchViewItems = async () => { + await invoke("catalog_open_connection", {filenameSymbol: symbol}); const viewItem = await invoke("catalog_get_publication_view_from", {filenameSymbol: symbol}); const documents = await fetchDocuments(viewItem.publication_view_items_documents); setViewItems({ @@ -61,7 +62,7 @@ const PublicationView = () => { }); }; fetchViewItems(); - }, []); + }, [symbol]); const fetchDocuments = async (items) => { let documents = [];