Update deps
This commit is contained in:
parent
a954cd8ced
commit
8b66119746
6 changed files with 2009 additions and 945 deletions
386
Cargo.lock
generated
386
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
1249
crates/librqbit/webui/package-lock.json
generated
1249
crates/librqbit/webui/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -13,7 +13,7 @@
|
|||
"lodash.sortby": "^4.7",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "^4.12.0",
|
||||
"react-icons": "^5.3.0",
|
||||
"zustand": "^4.4.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -24,10 +24,10 @@
|
|||
"@vitejs/plugin-react": "^4.2.1",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"postcss": "^8.4.32",
|
||||
"prettier": "3.1.0",
|
||||
"prettier": "3.3.3",
|
||||
"tailwindcss": "^3.3.6",
|
||||
"typescript": "^5.3.2",
|
||||
"vite": "^4.5.2",
|
||||
"vite": "^5.4.8",
|
||||
"vite-plugin-svgr": "^4.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import json
|
||||
import re
|
||||
import itertools
|
||||
|
||||
os.chdir('dist')
|
||||
|
||||
with open('manifest.json', 'r') as f:
|
||||
with open(os.path.join('.vite', 'manifest.json'), 'r') as f:
|
||||
manifest = json.load(f)
|
||||
|
||||
|
||||
|
|
@ -16,9 +18,13 @@ with open('manifest.json', 'r') as f:
|
|||
with open('index.html', 'r') as f:
|
||||
index_html = f.read()
|
||||
|
||||
for key, item in manifest.items():
|
||||
generated_file = item['file']
|
||||
new_file = re.sub(r'^(assets/.+)-.+(\..+)$', r'\1\2', generated_file)
|
||||
for dst, src in [
|
||||
("assets/logo.svg", manifest["assets/logo.svg"]["file"]),
|
||||
("assets/index.css", manifest["index.html"]["css"][0]),
|
||||
("assets/index.js", manifest["index.html"]["file"])
|
||||
]:
|
||||
generated_file = src
|
||||
new_file = dst
|
||||
|
||||
index_html = index_html.replace("/" + generated_file, new_file)
|
||||
os.rename(generated_file, new_file)
|
||||
|
|
|
|||
1293
desktop/package-lock.json
generated
1293
desktop/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -14,11 +14,11 @@
|
|||
"lodash.debounce": "^4.0.8",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "^4.12.0",
|
||||
"react-icons": "^5.3.0",
|
||||
"rqbit-webui": "file:../crates/librqbit/webui"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tauri-apps/cli": ">=2.0.0-alpha.16",
|
||||
"@tauri-apps/cli": "2.0.0",
|
||||
"@types/lodash.debounce": "^4.0.9",
|
||||
"@types/react": "^18.2.15",
|
||||
"@types/react-dom": "^18.2.7",
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
"postcss": "^8.4.32",
|
||||
"tailwindcss": "^3.3.6",
|
||||
"typescript": "^5.0.2",
|
||||
"vite": "^4.5.2",
|
||||
"vite": "^5.4.8",
|
||||
"vite-plugin-svgr": "^4.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue