🔨 chore(deps): bump deps & format
This commit is contained in:
parent
8e5d7e77fc
commit
35ef702f5c
7 changed files with 393 additions and 240 deletions
|
|
@ -63,7 +63,7 @@ impl fmt::Display for ImportType {
|
|||
}
|
||||
|
||||
pub async fn import_instances(import: ImportType, path: PathBuf) -> crate::Result<Vec<String>> {
|
||||
// TODO(pauline)(instance_import): Fix MultiMC based launcher import
|
||||
// TODO(pauline)(instance_import): Fix MultiMC based launcher import
|
||||
let instances_path = match import {
|
||||
ImportType::GDLauncher | ImportType::ATLauncher => "instances".to_string(),
|
||||
ImportType::Curseforge => "Instances".to_string(),
|
||||
|
|
@ -119,7 +119,7 @@ pub async fn import_instance(
|
|||
) -> crate::Result<()> {
|
||||
tracing::debug!("importing instance from {instance_path}");
|
||||
|
||||
// TODO(pauline)(instance_import): Finish this
|
||||
// TODO(pauline)(instance_import): Finish this
|
||||
// let result = match import {
|
||||
// ImportType::MultiMC | ImportType::PrismLauncher => {
|
||||
// multibased::import(path, instance_path, cluster_path.clone()).await
|
||||
|
|
@ -216,8 +216,8 @@ pub fn default_launcher_path(r#type: ImportType) -> Option<PathBuf> {
|
|||
#[tracing::instrument]
|
||||
#[onelauncher_debug::debugger]
|
||||
pub async fn is_valid_instance(instance_path: PathBuf, r#type: ImportType) -> bool {
|
||||
false
|
||||
// TODO(pauline)(instance_import): Finish this
|
||||
false
|
||||
// TODO(pauline)(instance_import): Finish this
|
||||
// match r#type {
|
||||
// ImportType::MultiMC | ImportType::PrismLauncher => multibased::is_valid(insance_path).await,
|
||||
// ImportType::ATLauncher => atlauncher::is_valid(instance_path).await,
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ pub async fn generate_context(
|
|||
}
|
||||
|
||||
let mut result = HashMap::new();
|
||||
// TODO(pauline): Finish this
|
||||
// TODO(pauline): Finish this
|
||||
// let mut stream = tokio_stream::iter(result_packages);
|
||||
// while let Some((k, v)) = stream.next().await {
|
||||
// let k = PackagePath::from_path(k).await?;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
"@thisbeyond/solid-dnd": "^0.7.5",
|
||||
"@unocss/reset": "^0.60.0",
|
||||
"@untitled-theme/icons-solid": "^0.8.0",
|
||||
"overlayscrollbars": "^2.7.3",
|
||||
"overlayscrollbars": "^2.8.0",
|
||||
"overlayscrollbars-solid": "^0.5.5",
|
||||
"solid-js": "^1.8.17",
|
||||
"solid-transition-group": "^0.2.3",
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
"@types/uuid": "^9.0.8",
|
||||
"@vitest/ui": "^1.6.0",
|
||||
"jsdom": "^24.0.0",
|
||||
"sass": "^1.77.0",
|
||||
"sass": "^1.77.1",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^5.4.5",
|
||||
"unocss": "^0.60.0",
|
||||
|
|
|
|||
|
|
@ -34,10 +34,11 @@ pub async fn run() {
|
|||
tracing::info!("initialized tracing subscriber. loading onelauncher...");
|
||||
|
||||
run_app(tauri::Builder::default(), |app| {
|
||||
if let Err(err) = setup(app) {
|
||||
tracing::error!("failed to setup app: {:?}", err);
|
||||
}
|
||||
}).await;
|
||||
if let Err(err) = setup(app) {
|
||||
tracing::error!("failed to setup app: {:?}", err);
|
||||
}
|
||||
})
|
||||
.await;
|
||||
}
|
||||
|
||||
pub async fn run_app<R: tauri::Runtime, F: FnOnce(&mut tauri::App<R>) + Send + 'static>(
|
||||
|
|
@ -61,9 +62,9 @@ pub async fn run_app<R: tauri::Runtime, F: FnOnce(&mut tauri::App<R>) + Send + '
|
|||
let builder = builder
|
||||
.plugin(api::init())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
// initialize_state,
|
||||
is_dev,
|
||||
]);
|
||||
// initialize_state,
|
||||
is_dev,
|
||||
]);
|
||||
|
||||
let app = builder
|
||||
.build(tauri::tauri_build_context!())
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import type { ParentProps } from 'solid-js';
|
||||
import { ErrorBoundary as Capturer } from 'solid-js';
|
||||
|
||||
// TODO: Uncomment code
|
||||
function ErrorBoundary(props: ParentProps) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
"release:node": "bumpp -r"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@flowr/eslint-config": "^3.1.0",
|
||||
"@flowr/eslint-config": "^3.2.0",
|
||||
"@types/node": "^20.12.11",
|
||||
"bumpp": "^9.4.1",
|
||||
"eslint": "^8.56.0",
|
||||
|
|
|
|||
601
pnpm-lock.yaml
generated
601
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue