mirror of
https://github.com/AventurasTeam/Aventuras.git
synced 2026-04-26 10:51:24 +00:00
chore: tauri devtools
This commit is contained in:
parent
4975e9841e
commit
0b63eb644c
4 changed files with 689 additions and 50 deletions
724
src-tauri/Cargo.lock
generated
724
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -33,3 +33,4 @@ base64 = "0.22"
|
|||
local-ip-address = "0.6"
|
||||
uuid = { version = "1", features = ["v4"] }
|
||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||
tauri-plugin-devtools = "2.0.0"
|
||||
|
|
|
|||
|
|
@ -156,7 +156,17 @@ pub fn run() {
|
|||
}
|
||||
];
|
||||
|
||||
tauri::Builder::default()
|
||||
#[cfg(debug_assertions)] // only enable instrumentation in development builds
|
||||
let devtools = tauri_plugin_devtools::init();
|
||||
|
||||
let mut builder = tauri::Builder::default();
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
{
|
||||
builder = builder.plugin(devtools);
|
||||
}
|
||||
|
||||
builder
|
||||
.manage(sync::SyncState::default())
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ function buildMarkers(content: string, images: EmbeddedImage[]): ImageMarker[] {
|
|||
const markers: ImageMarker[] = []
|
||||
|
||||
for (const img of sortedImages) {
|
||||
const regex = new RegExp(escapeRegex(img.sourceText), 'gi')
|
||||
const regex = new RegExp(escapeRegex(img.sourceText.replaceAll('’', "'")), 'gi')
|
||||
let match
|
||||
while ((match = regex.exec(content.replaceAll('’', "'"))) !== null) {
|
||||
const start = match.index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue