Skip to content

Commit ff52add

Browse files
authored
style: fix Vite, Svelte and React branding (#874)
1 parent 5e91b27 commit ff52add

File tree

24 files changed

+52
-52
lines changed

24 files changed

+52
-52
lines changed

templates/template-preact-ts/src/App.tsx.lte

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function App() {
1717
<h1>Welcome to Tauri + Preact</h1>
1818

1919
<div class="row">
20-
<a href="https://vitejs.dev" target="_blank">
20+
<a href="https://vite.dev" target="_blank">
2121
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
2222
</a>
2323
<a href="https://tauri.app" target="_blank">

templates/template-preact-ts/vite.config.ts.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import preact from "@preact/preset-vite";{% if v2 %}
44
// @ts-expect-error process is a nodejs global
55
const host = process.env.TAURI_DEV_HOST;{% endif %}
66

7-
// https://vitejs.dev/config/
7+
// https://vite.dev/config/
88
export default defineConfig(async () => ({
99
plugins: [preact()],
1010

1111
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1212
//
13-
// 1. prevent vite from obscuring rust errors
13+
// 1. prevent Vite from obscuring rust errors
1414
clearScreen: false,
1515
// 2. tauri expects a fixed port, fail if that port is not available
1616
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
2525
}
2626
: undefined,{% endif %}
2727
watch: {
28-
// 3. tell vite to ignore watching `src-tauri`
28+
// 3. tell Vite to ignore watching `src-tauri`
2929
ignored: ["**/src-tauri/**"],
3030
},
3131
},

templates/template-preact/src/App.jsx.lte

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function App() {
1717
<h1>Welcome to Tauri + Preact</h1>
1818

1919
<div class="row">
20-
<a href="https://vitejs.dev" target="_blank">
20+
<a href="https://vite.dev" target="_blank">
2121
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
2222
</a>
2323
<a href="https://tauri.app" target="_blank">

templates/template-preact/vite.config.js.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import preact from "@preact/preset-vite";{% if v2 %}
33

44
const host = process.env.TAURI_DEV_HOST;{% endif %}
55

6-
// https://vitejs.dev/config/
6+
// https://vite.dev/config/
77
export default defineConfig(async () => ({
88
plugins: [preact()],
99

1010
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1111
//
12-
// 1. prevent vite from obscuring rust errors
12+
// 1. prevent Vite from obscuring rust errors
1313
clearScreen: false,
1414
// 2. tauri expects a fixed port, fail if that port is not available
1515
server: {
@@ -24,7 +24,7 @@ export default defineConfig(async () => ({
2424
}
2525
: undefined,{% endif %}
2626
watch: {
27-
// 3. tell vite to ignore watching `src-tauri`
27+
// 3. tell Vite to ignore watching `src-tauri`
2828
ignored: ["**/src-tauri/**"],
2929
},
3030
},

templates/template-react-ts/src/App.tsx.lte

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ function App() {
1717
<h1>Welcome to Tauri + React</h1>
1818

1919
<div className="row">
20-
<a href="https://vitejs.dev" target="_blank">
20+
<a href="https://vite.dev" target="_blank">
2121
<img src="/vite.svg" className="logo vite" alt="Vite logo" />
2222
</a>
2323
<a href="https://tauri.app" target="_blank">
2424
<img src="/tauri.svg" className="logo tauri" alt="Tauri logo" />
2525
</a>
26-
<a href="https://reactjs.org" target="_blank">
26+
<a href="https://react.dev" target="_blank">
2727
<img src={reactLogo} className="logo react" alt="React logo" />
2828
</a>
2929
</div>

templates/template-react-ts/vite.config.ts.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import react from "@vitejs/plugin-react";{% if v2 %}
44
// @ts-expect-error process is a nodejs global
55
const host = process.env.TAURI_DEV_HOST;{% endif %}
66

7-
// https://vitejs.dev/config/
7+
// https://vite.dev/config/
88
export default defineConfig(async () => ({
99
plugins: [react()],
1010

1111
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1212
//
13-
// 1. prevent vite from obscuring rust errors
13+
// 1. prevent Vite from obscuring rust errors
1414
clearScreen: false,
1515
// 2. tauri expects a fixed port, fail if that port is not available
1616
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
2525
}
2626
: undefined,{% endif %}
2727
watch: {
28-
// 3. tell vite to ignore watching `src-tauri`
28+
// 3. tell Vite to ignore watching `src-tauri`
2929
ignored: ["**/src-tauri/**"],
3030
},
3131
},

templates/template-react/src/App.jsx.lte

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ function App() {
1717
<h1>Welcome to Tauri + React</h1>
1818

1919
<div className="row">
20-
<a href="https://vitejs.dev" target="_blank">
20+
<a href="https://vite.dev" target="_blank">
2121
<img src="/vite.svg" className="logo vite" alt="Vite logo" />
2222
</a>
2323
<a href="https://tauri.app" target="_blank">
2424
<img src="/tauri.svg" className="logo tauri" alt="Tauri logo" />
2525
</a>
26-
<a href="https://reactjs.org" target="_blank">
26+
<a href="https://react.dev" target="_blank">
2727
<img src={reactLogo} className="logo react" alt="React logo" />
2828
</a>
2929
</div>

templates/template-react/vite.config.js.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import react from "@vitejs/plugin-react";{% if v2 %}
33

44
const host = process.env.TAURI_DEV_HOST;{% endif %}
55

6-
// https://vitejs.dev/config/
6+
// https://vite.dev/config/
77
export default defineConfig(async () => ({
88
plugins: [react()],
99

1010
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1111
//
12-
// 1. prevent vite from obscuring rust errors
12+
// 1. prevent Vite from obscuring rust errors
1313
clearScreen: false,
1414
// 2. tauri expects a fixed port, fail if that port is not available
1515
server: {
@@ -24,7 +24,7 @@ export default defineConfig(async () => ({
2424
}
2525
: undefined,{% endif %}
2626
watch: {
27-
// 3. tell vite to ignore watching `src-tauri`
27+
// 3. tell Vite to ignore watching `src-tauri`
2828
ignored: ["**/src-tauri/**"],
2929
},
3030
},

templates/template-solid-ts/src/App.tsx.lte

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function App() {
1717
<h1>Welcome to Tauri + Solid</h1>
1818

1919
<div class="row">
20-
<a href="https://vitejs.dev" target="_blank">
20+
<a href="https://vite.dev" target="_blank">
2121
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
2222
</a>
2323
<a href="https://tauri.app" target="_blank">

templates/template-solid-ts/vite.config.ts.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import solid from "vite-plugin-solid";{% if v2 %}
44
// @ts-expect-error process is a nodejs global
55
const host = process.env.TAURI_DEV_HOST;{% endif %}
66

7-
// https://vitejs.dev/config/
7+
// https://vite.dev/config/
88
export default defineConfig(async () => ({
99
plugins: [solid()],
1010

1111
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1212
//
13-
// 1. prevent vite from obscuring rust errors
13+
// 1. prevent Vite from obscuring rust errors
1414
clearScreen: false,
1515
// 2. tauri expects a fixed port, fail if that port is not available
1616
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
2525
}
2626
: undefined,{% endif %}
2727
watch: {
28-
// 3. tell vite to ignore watching `src-tauri`
28+
// 3. tell Vite to ignore watching `src-tauri`
2929
ignored: ["**/src-tauri/**"],
3030
},
3131
},

templates/template-solid/src/App.jsx.lte

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function App() {
1717
<h1>Welcome to Tauri + Solid</h1>
1818

1919
<div class="row">
20-
<a href="https://vitejs.dev" target="_blank">
20+
<a href="https://vite.dev" target="_blank">
2121
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
2222
</a>
2323
<a href="https://tauri.app" target="_blank">

templates/template-solid/vite.config.js.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import solid from "vite-plugin-solid";{% if v2 %}
33

44
const host = process.env.TAURI_DEV_HOST;{% endif %}
55

6-
// https://vitejs.dev/config/
6+
// https://vite.dev/config/
77
export default defineConfig(async () => ({
88
plugins: [solid()],
99

1010
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1111
//
12-
// 1. prevent vite from obscuring rust errors
12+
// 1. prevent Vite from obscuring rust errors
1313
clearScreen: false,
1414
// 2. tauri expects a fixed port, fail if that port is not available
1515
server: {
@@ -24,7 +24,7 @@ export default defineConfig(async () => ({
2424
}
2525
: undefined,{% endif %}
2626
watch: {
27-
// 3. tell vite to ignore watching `src-tauri`
27+
// 3. tell Vite to ignore watching `src-tauri`
2828
ignored: ["**/src-tauri/**"],
2929
},
3030
},

templates/template-svelte-ts/src/routes/+page.svelte.lte

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
<h1>Welcome to Tauri + Svelte</h1>
1616

1717
<div class="row">
18-
<a href="https://vitejs.dev" target="_blank">
18+
<a href="https://vite.dev" target="_blank">
1919
<img src="/vite.svg" class="logo vite" alt="Vite Logo" />
2020
</a>
2121
<a href="https://tauri.app" target="_blank">
2222
<img src="/tauri.svg" class="logo tauri" alt="Tauri Logo" />
2323
</a>
24-
<a href="https://kit.svelte.dev" target="_blank">
24+
<a href="https://svelte.dev" target="_blank">
2525
<img src="/svelte.svg" class="logo svelte-kit" alt="SvelteKit Logo" />
2626
</a>
2727
</div>

templates/template-svelte-ts/tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"strict": true,
1212
"moduleResolution": "bundler"
1313
}
14-
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
15-
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
14+
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
15+
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
1616
//
1717
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
1818
// from the referenced tsconfig.json - TypeScript does not merge them in

templates/template-svelte-ts/vite.config.js.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { sveltekit } from "@sveltejs/kit/vite";{% if v2 %}
44
// @ts-expect-error process is a nodejs global
55
const host = process.env.TAURI_DEV_HOST;{% endif %}
66

7-
// https://vitejs.dev/config/
7+
// https://vite.dev/config/
88
export default defineConfig(async () => ({
99
plugins: [sveltekit()],
1010

1111
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1212
//
13-
// 1. prevent vite from obscuring rust errors
13+
// 1. prevent Vite from obscuring rust errors
1414
clearScreen: false,
1515
// 2. tauri expects a fixed port, fail if that port is not available
1616
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
2525
}
2626
: undefined,{% endif %}
2727
watch: {
28-
// 3. tell vite to ignore watching `src-tauri`
28+
// 3. tell Vite to ignore watching `src-tauri`
2929
ignored: ["**/src-tauri/**"],
3030
},
3131
},

templates/template-svelte/jsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"strict": true,
1212
"moduleResolution": "bundler"
1313
}
14-
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
15-
// except $lib which is handled by https://kit.svelte.dev/docs/configuration#files
14+
// Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias
15+
// except $lib which is handled by https://svelte.dev/docs/kit/configuration#files
1616
//
1717
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
1818
// from the referenced tsconfig.json - TypeScript does not merge them in

templates/template-svelte/src/routes/+page.svelte.lte

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
<h1>Welcome to Tauri + Svelte</h1>
1616

1717
<div class="row">
18-
<a href="https://vitejs.dev" target="_blank">
18+
<a href="https://vite.dev" target="_blank">
1919
<img src="/vite.svg" class="logo vite" alt="Vite Logo" />
2020
</a>
2121
<a href="https://tauri.app" target="_blank">
2222
<img src="/tauri.svg" class="logo tauri" alt="Tauri Logo" />
2323
</a>
24-
<a href="https://kit.svelte.dev" target="_blank">
24+
<a href="https://svelte.dev" target="_blank">
2525
<img src="/svelte.svg" class="logo svelte-kit" alt="SvelteKit Logo" />
2626
</a>
2727
</div>

templates/template-svelte/vite.config.js.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { sveltekit } from "@sveltejs/kit/vite";{% if v2 %}
44
// @ts-expect-error process is a nodejs global
55
const host = process.env.TAURI_DEV_HOST;{% endif %}
66

7-
// https://vitejs.dev/config/
7+
// https://vite.dev/config/
88
export default defineConfig(async () => ({
99
plugins: [sveltekit()],
1010

1111
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1212
//
13-
// 1. prevent vite from obscuring rust errors
13+
// 1. prevent Vite from obscuring rust errors
1414
clearScreen: false,
1515
// 2. tauri expects a fixed port, fail if that port is not available
1616
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
2525
}
2626
: undefined,{% endif %}
2727
watch: {
28-
// 3. tell vite to ignore watching `src-tauri`
28+
// 3. tell Vite to ignore watching `src-tauri`
2929
ignored: ["**/src-tauri/**"],
3030
},
3131
},

templates/template-vanilla-ts/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<h1>Welcome to Tauri</h1>
1414

1515
<div class="row">
16-
<a href="https://vitejs.dev" target="_blank">
16+
<a href="https://vite.dev" target="_blank">
1717
<img src="/src/assets/vite.svg" class="logo vite" alt="Vite logo" />
1818
</a>
1919
<a href="https://tauri.app" target="_blank">

templates/template-vanilla-ts/vite.config.ts.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { defineConfig } from "vite";{% if v2 %}
33
// @ts-expect-error process is a nodejs global
44
const host = process.env.TAURI_DEV_HOST;{% endif %}
55

6-
// https://vitejs.dev/config/
6+
// https://vite.dev/config/
77
export default defineConfig(async () => ({
88

99
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1010
//
11-
// 1. prevent vite from obscuring rust errors
11+
// 1. prevent Vite from obscuring rust errors
1212
clearScreen: false,
1313
// 2. tauri expects a fixed port, fail if that port is not available
1414
server: {
@@ -23,7 +23,7 @@ export default defineConfig(async () => ({
2323
}
2424
: undefined,{% endif %}
2525
watch: {
26-
// 3. tell vite to ignore watching `src-tauri`
26+
// 3. tell Vite to ignore watching `src-tauri`
2727
ignored: ["**/src-tauri/**"],
2828
},
2929
},

templates/template-vue-ts/src/App.vue.lte

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function greet() {
1616
<h1>Welcome to Tauri + Vue</h1>
1717

1818
<div class="row">
19-
<a href="https://vitejs.dev" target="_blank">
19+
<a href="https://vite.dev" target="_blank">
2020
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
2121
</a>
2222
<a href="https://tauri.app" target="_blank">

templates/template-vue-ts/vite.config.ts.lte

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import vue from "@vitejs/plugin-vue";{% if v2 %}
44
// @ts-expect-error process is a nodejs global
55
const host = process.env.TAURI_DEV_HOST;{% endif %}
66

7-
// https://vitejs.dev/config/
7+
// https://vite.dev/config/
88
export default defineConfig(async () => ({
99
plugins: [vue()],
1010

1111
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
1212
//
13-
// 1. prevent vite from obscuring rust errors
13+
// 1. prevent Vite from obscuring rust errors
1414
clearScreen: false,
1515
// 2. tauri expects a fixed port, fail if that port is not available
1616
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
2525
}
2626
: undefined,{% endif %}
2727
watch: {
28-
// 3. tell vite to ignore watching `src-tauri`
28+
// 3. tell Vite to ignore watching `src-tauri`
2929
ignored: ["**/src-tauri/**"],
3030
},
3131
},

templates/template-vue/src/App.vue.lte

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function greet() {
1616
<h1>Welcome to Tauri + Vue</h1>
1717

1818
<div class="row">
19-
<a href="https://vitejs.dev" target="_blank">
19+
<a href="https://vite.dev" target="_blank">
2020
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
2121
</a>
2222
<a href="https://tauri.app" target="_blank">

0 commit comments

Comments
 (0)