mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-07-03 11:31:47 +02:00
Format plugin code
This commit is contained in:
@@ -855,8 +855,6 @@ exports.plugin = {
|
|||||||
assert_eq!(metadata["apis"]["workspaceActions"]["items"][0]["label"], "Sync workspace");
|
assert_eq!(metadata["apis"]["workspaceActions"]["items"][0]["label"], "Sync workspace");
|
||||||
assert_eq!(metadata["apis"]["lifecycle"]["items"][0]["name"], "init");
|
assert_eq!(metadata["apis"]["lifecycle"]["items"][0]["name"], "init");
|
||||||
assert!(metadata["apis"]["templateFunctions"]["items"][0]["onRender"].is_null());
|
assert!(metadata["apis"]["templateFunctions"]["items"][0]["onRender"].is_null());
|
||||||
assert!(
|
assert!(metadata["apis"]["templateFunctions"]["items"][0]["args"][0]["dynamic"].is_null());
|
||||||
metadata["apis"]["templateFunctions"]["items"][0]["args"][0]["dynamic"].is_null()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -470,11 +470,7 @@ async fn build_plugin_reply(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let names = cookie_jar
|
let names = cookie_jar.cookies.into_iter().map(|c| c.name).collect();
|
||||||
.cookies
|
|
||||||
.into_iter()
|
|
||||||
.map(|c| c.name)
|
|
||||||
.collect();
|
|
||||||
|
|
||||||
Some(InternalEventPayload::ListCookieNamesResponse(ListCookieNamesResponse {
|
Some(InternalEventPayload::ListCookieNamesResponse(ListCookieNamesResponse {
|
||||||
names,
|
names,
|
||||||
|
|||||||
@@ -29,10 +29,7 @@ pub async fn delete_and_uninstall(
|
|||||||
let db = query_manager.connect();
|
let db = query_manager.connect();
|
||||||
db.delete_plugin_by_id(plugin_id, &update_source)?
|
db.delete_plugin_by_id(plugin_id, &update_source)?
|
||||||
};
|
};
|
||||||
if let Err(err) = plugin_manager
|
if let Err(err) = plugin_manager.uninstall(plugin_context, plugin.directory.as_str()).await {
|
||||||
.uninstall(plugin_context, plugin.directory.as_str())
|
|
||||||
.await
|
|
||||||
{
|
|
||||||
if !matches!(err, PluginNotFoundErr(_)) {
|
if !matches!(err, PluginNotFoundErr(_)) {
|
||||||
return Err(err);
|
return Err(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user