chore: fix some comments (#2712)

Signed-off-by: renshuncui <renshun@111.com>
This commit is contained in:
renshuncui
2024-07-29 22:30:50 +09:00
committed by GitHub
parent 8c9dfd9c9d
commit b9c620d4cd
7 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ pub fn make_openapi_call_via_gpt(message:String) -> ChatCompletionParameters {
// This name will be given to the OpenAI API as part of our functions
let name = operation.operation_id.clone().expect("Each operation to have an operation id");
// we'll use the descrition
// we'll use the description
let desc = operation.description.clone().expect("Each operation to have a description, this is how GPT knows what the functiond does and it is helpful for calling it.");
let mut required_list = vec![];
let mut properties = serde_json::Map::new();

View File

@@ -93,7 +93,7 @@ pub fn kratos_html(node: UiNode, body: RwSignal<HashMap<String, String>>) -> imp
body.update(|map| {
_ = map.insert(name.clone(), value.clone());
});
// this expects the identifer to be an email, but it could be telelphone etc so code is extra fragile
// this expects the identifier to be an email, but it could be telephone etc so code is extra fragile
view! {<input type="hidden" value=value name=name /> }.into_view()
}
}

View File

@@ -27,7 +27,7 @@ pub static LOGOUT_BUTTON_ID: &'static str = "logout_button_id";
pub static LOGIN_BUTTON_ID: &'static str = "login_button_id";
/// This function is for use in kratos_html, it takes the name of the input node and it
/// matches it according to what we've specified in the kratos schema file. If we change the schema.
/// I.e use a phone instead of an email, the identifer id will change and break tests that expect an email.
/// I.e use a phone instead of an email, the identifier id will change and break tests that expect an email.
/// i.e use oidc instead of password, as auth method... that will break tests too.
/// Which is good.
pub fn match_name_to_id(name: String) -> &'static str {

View File

@@ -5,7 +5,7 @@ First
cargo new leptos_tauri_from_scratch
```
Then, make our two seperate project folders. We need one for our actual app, 'src-orig' and the other is required when using `cargo tauri`
Then, make our two separate project folders. We need one for our actual app, 'src-orig' and the other is required when using `cargo tauri`
```sh
mkdir src-orig && mkdir src-tauri
```