mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-24 19:25:12 +03:00
90 lines
2.0 KiB
Markdown
90 lines
2.0 KiB
Markdown
---
|
|
title: Cloudish
|
|
---
|
|
|
|
import Rater from '@theme/Rater'
|
|
import useBaseUrl from '@docusaurus/useBaseUrl'
|
|
|
|
<div className="row">
|
|
<div className="col col--4">
|
|
<table>
|
|
<tr>
|
|
<td>Ease of Use</td>
|
|
<td><Rater value="5"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Extensibility</td>
|
|
<td><Rater value="3"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Performance</td>
|
|
<td><Rater value="3"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Security</td>
|
|
<td><Rater value="2"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div className="col col--4 pattern-logo">
|
|
<img src={useBaseUrl('img/patterns/Cloudish.png')} alt="Cloudish" />
|
|
</div>
|
|
<div className="col col--4">
|
|
Pros:
|
|
<ul>
|
|
<li>Similar to a SPA web-app</li>
|
|
<li>No Rust skills required</li>
|
|
</ul>
|
|
Cons:
|
|
<ul>
|
|
<li>No access to Rust API</li>
|
|
<li>Uses a localhost server</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
## Description
|
|
|
|
The Cloudish recipe is a pattern for maximum flexibility and app performance. It uses a localhost server, which means that your app will technically be available to other processes, like browsers and potentially other devices on the network. All of your assets are baked into the binary, but served as if they were distinct files.
|
|
|
|
## Diagram
|
|
|
|
import Mermaid, { colors } from '@theme/Mermaid'
|
|
|
|
<Mermaid chart={`graph TD
|
|
H==>F
|
|
H==>D
|
|
D-->F
|
|
F-->D
|
|
subgraph RUST
|
|
A==>H
|
|
end
|
|
subgraph WEBVIEW
|
|
F
|
|
end
|
|
subgraph SERVER
|
|
D
|
|
E-->D
|
|
end
|
|
A[Binary]
|
|
D(( localhost ))
|
|
E[bundled resources]
|
|
F[Window]
|
|
H{Bootstrap}
|
|
style RUST fill:${colors.orange.light},stroke:${colors.orange.dark},stroke-width:4px
|
|
style WEBVIEW fill:${colors.blue.light},stroke:${colors.blue.dark},stroke-width:4px
|
|
style SERVER fill:#49A24A,stroke:#2B6063,stroke-width:4px`} />
|
|
|
|
|
|
## Configuration
|
|
|
|
Here's what you need to add to your tauri.conf.json file:
|
|
```json
|
|
"tauri": {
|
|
"allowlist": {
|
|
"all": false // disable entire API
|
|
}
|
|
}
|
|
|
|
```
|