style: fix Vite, Svelte and React branding (#874)

This commit is contained in:
Kotkoroid
2025-02-22 18:04:35 +01:00
committed by GitHub
parent 5e91b27f4c
commit ff52add331
24 changed files with 52 additions and 52 deletions

View File

@@ -17,7 +17,7 @@ function App() {
<h1>Welcome to Tauri + Preact</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">

View File

@@ -4,13 +4,13 @@ import preact from "@preact/preset-vite";{% if v2 %}
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [preact()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -17,7 +17,7 @@ function App() {
<h1>Welcome to Tauri + Preact</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">

View File

@@ -3,13 +3,13 @@ import preact from "@preact/preset-vite";{% if v2 %}
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [preact()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -24,7 +24,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -17,13 +17,13 @@ function App() {
<h1>Welcome to Tauri + React</h1>
<div className="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" className="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">
<img src="/tauri.svg" className="logo tauri" alt="Tauri logo" />
</a>
<a href="https://reactjs.org" target="_blank">
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>

View File

@@ -4,13 +4,13 @@ import react from "@vitejs/plugin-react";{% if v2 %}
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [react()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -17,13 +17,13 @@ function App() {
<h1>Welcome to Tauri + React</h1>
<div className="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" className="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">
<img src="/tauri.svg" className="logo tauri" alt="Tauri logo" />
</a>
<a href="https://reactjs.org" target="_blank">
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>

View File

@@ -3,13 +3,13 @@ import react from "@vitejs/plugin-react";{% if v2 %}
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [react()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -24,7 +24,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -17,7 +17,7 @@ function App() {
<h1>Welcome to Tauri + Solid</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">

View File

@@ -4,13 +4,13 @@ import solid from "vite-plugin-solid";{% if v2 %}
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [solid()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -17,7 +17,7 @@ function App() {
<h1>Welcome to Tauri + Solid</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">

View File

@@ -3,13 +3,13 @@ import solid from "vite-plugin-solid";{% if v2 %}
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [solid()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -24,7 +24,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -15,13 +15,13 @@
<h1>Welcome to Tauri + Svelte</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite Logo" />
</a>
<a href="https://tauri.app" target="_blank">
<img src="/tauri.svg" class="logo tauri" alt="Tauri Logo" />
</a>
<a href="https://kit.svelte.dev" target="_blank">
<a href="https://svelte.dev" target="_blank">
<img src="/svelte.svg" class="logo svelte-kit" alt="SvelteKit Logo" />
</a>
</div>

View File

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

View File

@@ -4,13 +4,13 @@ import { sveltekit } from "@sveltejs/kit/vite";{% if v2 %}
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [sveltekit()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

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

View File

@@ -15,13 +15,13 @@
<h1>Welcome to Tauri + Svelte</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite Logo" />
</a>
<a href="https://tauri.app" target="_blank">
<img src="/tauri.svg" class="logo tauri" alt="Tauri Logo" />
</a>
<a href="https://kit.svelte.dev" target="_blank">
<a href="https://svelte.dev" target="_blank">
<img src="/svelte.svg" class="logo svelte-kit" alt="SvelteKit Logo" />
</a>
</div>

View File

@@ -4,13 +4,13 @@ import { sveltekit } from "@sveltejs/kit/vite";{% if v2 %}
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [sveltekit()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -13,7 +13,7 @@
<h1>Welcome to Tauri</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/src/assets/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">

View File

@@ -3,12 +3,12 @@ import { defineConfig } from "vite";{% if v2 %}
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -23,7 +23,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -16,7 +16,7 @@ async function greet() {
<h1>Welcome to Tauri + Vue</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">

View File

@@ -4,13 +4,13 @@ import vue from "@vitejs/plugin-vue";{% if v2 %}
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [vue()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -25,7 +25,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},

View File

@@ -16,7 +16,7 @@ async function greet() {
<h1>Welcome to Tauri + Vue</h1>
<div class="row">
<a href="https://vitejs.dev" target="_blank">
<a href="https://vite.dev" target="_blank">
<img src="/vite.svg" class="logo vite" alt="Vite logo" />
</a>
<a href="https://tauri.app" target="_blank">

View File

@@ -3,13 +3,13 @@ import vue from "@vitejs/plugin-vue";{% if v2 %}
const host = process.env.TAURI_DEV_HOST;{% endif %}
// https://vitejs.dev/config/
// https://vite.dev/config/
export default defineConfig(async () => ({
plugins: [vue()],
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
//
// 1. prevent vite from obscuring rust errors
// 1. prevent Vite from obscuring rust errors
clearScreen: false,
// 2. tauri expects a fixed port, fail if that port is not available
server: {
@@ -24,7 +24,7 @@ export default defineConfig(async () => ({
}
: undefined,{% endif %}
watch: {
// 3. tell vite to ignore watching `src-tauri`
// 3. tell Vite to ignore watching `src-tauri`
ignored: ["**/src-tauri/**"],
},
},