Skip to content

Commit 43dd8e6

Browse files
committed
style: fmt
1 parent d71d33d commit 43dd8e6

File tree

6 files changed

+24
-34
lines changed
  • templates
    • {% if template == 'react' %}.{% endif %}/{{ project_name }}/src
    • {% if template == 'svelte' %}.{% endif %}/{{ project_name }}
    • {% if template == 'vue' %}.{% endif %}/{{ project_name }}/src
    • {{ '.' }}/{{ project_name }}/src-tauri

6 files changed

+24
-34
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
**/node_modules/
44
target/
55
.venv/
6-
.idea/
6+
.idea/

templates/{% if template == 'react' %}.{% endif %}/{{ project_name }}/src/App.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ button {
103103

104104
}
105105
}
106+
106107
#greet-input {
107108
margin-right: 5px;
108109
}
110+
109111
#greet-msg {
110112
opacity: 50%;
111113
}

templates/{% if template == 'react' %}.{% endif %}/{{ project_name }}/src/App.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {useState} from "react";
1+
import { useState } from "react";
22
import reactLogo from "./assets/react.svg";
3-
import {invoke} from "@tauri-apps/api/core";
4-
import {pyInvoke} from "tauri-plugin-pytauri-api";
3+
import { invoke } from "@tauri-apps/api/core";
4+
import { pyInvoke } from "tauri-plugin-pytauri-api";
55
import "./App.css";
66

77
function App() {
@@ -10,30 +10,30 @@ function App() {
1010

1111
async function greet() {
1212
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
13-
const rsGreeting = await invoke<string>("greet", {name});
13+
const rsGreeting = await invoke<string>("greet", { name });
1414
// Learn more about PyTauri commands at https://pytauri.github.io/pytauri/latest/usage/concepts/ipc/
15-
const pyGreeting = await pyInvoke<string>("greet", {name});
15+
const pyGreeting = await pyInvoke<string>("greet", { name });
1616
setGreetMsg(rsGreeting + "\n" + pyGreeting);
1717
}
1818

1919
return (
2020
<main className="container">
2121
<h1>Welcome to PyTauri</h1>
2222
<a href="https://pytauri.github.io/pytauri/latest/" target="_blank">
23-
<img src="/pytauri.svg" className="logo pytauri" alt="Pytauri logo"/>
23+
<img src="/pytauri.svg" className="logo pytauri" alt="Pytauri logo" />
2424
</a>
2525
<div className="row">
2626
<a href="https://vitejs.dev" target="_blank">
27-
<img src="/vite.svg" className="logo vite" alt="Vite logo"/>
27+
<img src="/vite.svg" className="logo vite" alt="Vite logo" />
2828
</a>
2929
<a href="https://tauri.app" target="_blank">
30-
<img src="/tauri.svg" className="logo tauri" alt="Tauri logo"/>
30+
<img src="/tauri.svg" className="logo tauri" alt="Tauri logo" />
3131
</a>
3232
<a href="https://react.dev/" target="_blank">
33-
<img src={reactLogo} className="logo react" alt="React logo"/>
33+
<img src={reactLogo} className="logo react" alt="React logo" />
3434
</a>
3535
<a href="https://python.org" target="_blank">
36-
<img src="/python.svg" className="logo python" alt="Python logo"/>
36+
<img src="/python.svg" className="logo python" alt="Python logo" />
3737
</a>
3838
</div>
3939
<p>Click on any logo to learn more.</p>

templates/{% if template == 'svelte' %}.{% endif %}/{{ project_name }}/.gitignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

templates/{% if template == 'vue' %}.{% endif %}/{{ project_name }}/src/App.vue

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import {ref} from "vue";
3-
import {invoke} from "@tauri-apps/api/core";
4-
import {pyInvoke} from "tauri-plugin-pytauri-api";
2+
import { ref } from "vue";
3+
import { invoke } from "@tauri-apps/api/core";
4+
import { pyInvoke } from "tauri-plugin-pytauri-api";
55
66
const greetMsg = ref("");
77
const name = ref("");
@@ -23,34 +23,33 @@ async function greet() {
2323
<main class="container">
2424
<h1>Welcome to PyTauri</h1>
2525
<a href="https://pytauri.github.io/pytauri/latest/" target="_blank">
26-
<img src="/pytauri.svg" class="logo pytauri" alt="Pytauri logo"/>
26+
<img src="/pytauri.svg" class="logo pytauri" alt="Pytauri logo" />
2727
</a>
2828
<div class="row">
2929
<a href="https://vitejs.dev" target="_blank">
30-
<img src="/vite.svg" class="logo vite" alt="Vite logo"/>
30+
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
3131
</a>
3232
<a href="https://tauri.app" target="_blank">
33-
<img src="/tauri.svg" class="logo tauri" alt="Tauri logo"/>
33+
<img src="/tauri.svg" class="logo tauri" alt="Tauri logo" />
3434
</a>
3535
<a href="https://vuejs.org/" target="_blank">
36-
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo"/>
36+
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
3737
</a>
3838
<a href="https://python.org" target="_blank">
39-
<img src="/python.svg" class="logo python" alt="Python logo"/>
39+
<img src="/python.svg" class="logo python" alt="Python logo" />
4040
</a>
4141
</div>
4242
<p>Click on any logo to learn more.</p>
4343

4444
<form class="row" @submit.prevent="greet">
45-
<input id="greet-input" v-model="name" placeholder="Enter a name..."/>
45+
<input id="greet-input" v-model="name" placeholder="Enter a name..." />
4646
<button type="submit">Greet</button>
4747
</form>
4848
<p id="greet-msg">{{ greetMsg }}</p>
4949
</main>
5050
</template>
5151

5252
<style scoped>
53-
5453
.logo.vite:hover {
5554
filter: drop-shadow(0 0 2em #747bff);
5655
}
@@ -70,7 +69,6 @@ async function greet() {
7069
.logo.pytauri:hover {
7170
filter: drop-shadow(0 0 2em #2294b2);
7271
}
73-
7472
</style>
7573
<style>
7674
:root {
@@ -178,9 +176,11 @@ button {
178176
179177
}
180178
}
179+
181180
#greet-input {
182181
margin-right: 5px;
183182
}
183+
184184
#greet-msg {
185185
opacity: 50%;
186186
}
@@ -196,5 +196,4 @@ button {
196196
background-color: #0f0f0f98;
197197
}
198198
}
199-
200199
</style>

templates/{{ '.' }}/{{ project_name }}/src-tauri/.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)