feat(examples): improve api example, closes #1535 (#1957)

This commit is contained in:
Lucas Fernandes Nogueira
2021-06-15 23:12:41 -03:00
committed by GitHub
parent c9bf9432e7
commit 860830d870
7 changed files with 50 additions and 49 deletions

View File

@@ -9,6 +9,15 @@
</script>
<div>
This binary can be run on the terminal and takes the following arguments:
<ul>
<li>--config PATH</li>
<li>--theme light|dark|system</li>
<li>--verbose</li>
</ul>
Additionally, it has a <i>update --background</i> subcommand.
Note that the arguments are only parsed, not implemented.
<br>
<button class="button" id="cli-matches" on:click={cliMatches}>
Get matches
</button>

View File

@@ -1,7 +1,7 @@
<script>
import { getClient, Body } from "@tauri-apps/api/http";
let httpMethod = "GET";
let httpUrl = "";
let httpUrl = "https://jsonplaceholder.typicode.com/todos/1";
let httpBody = "";
export let onMessage;