"recusrive" typo fix (#1103)

* Update app.toml

* Update appcache.toml

* Update appconfig.toml

* Update appdata.toml

* Update applocaldata.toml

* Update applog.toml

* Update audio.toml

* Update cache.toml

* Update config.toml

* Update data.toml

* Update desktop.toml

* Update document.toml

* Update download.toml

* Update exe.toml

* Update font.toml

* Update home.toml

* Update localdata.toml

* Update log.toml

* Update picture.toml

* Update public.toml

* Update resource.toml

* Update runtime.toml

* Update temp.toml

* Update template.toml

* Update video.toml

* actually update build script :)

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/8437849537

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
This commit is contained in:
Alixxx-please
2024-03-26 14:50:11 +00:00
committed by tauri-bot
parent 7c51e12403
commit 0763220bd0

View File

@@ -8,11 +8,11 @@ mod scope;
const COMMANDS: &[&str] = &["fetch", "fetch_cancel", "fetch_send", "fetch_read_body"];
/// HTTP scope entry object definition.
#[allow(unused)]
/// HTTP scope entry.
#[derive(schemars::JsonSchema)]
#[serde(untagged)]
enum ScopeEntry {
#[allow(unused)]
enum HttpScopeEntry {
/// A URL that can be accessed by the webview when using the HTTP APIs.
/// Wildcards can be used following the URL pattern standard.
///
@@ -28,7 +28,6 @@ enum ScopeEntry {
///
/// - "https://myapi.service.com/users/*": allows access to any URLs that begins with "https://myapi.service.com/users/"
Value(String),
Object {
/// A URL that can be accessed by the webview when using the HTTP APIs.
/// Wildcards can be used following the URL pattern standard.
@@ -48,12 +47,12 @@ enum ScopeEntry {
},
}
// ensure scope entry is up to date
impl From<ScopeEntry> for scope::Entry {
fn from(value: ScopeEntry) -> Self {
// Ensure scope entry is kept up to date
impl From<HttpScopeEntry> for scope::Entry {
fn from(value: HttpScopeEntry) -> Self {
let url = match value {
ScopeEntry::Value(url) => url,
ScopeEntry::Object { url } => url,
HttpScopeEntry::Value(url) => url,
HttpScopeEntry::Object { url } => url,
};
scope::Entry {
@@ -69,6 +68,6 @@ impl From<ScopeEntry> for scope::Entry {
fn main() {
tauri_plugin::Builder::new(COMMANDS)
.global_api_script_path("./api-iife.js")
.global_scope_schema(schemars::schema_for!(ScopeEntry))
.global_scope_schema(schemars::schema_for!(HttpScopeEntry))
.build();
}