From eaee2a9e6a2b38410378c03a4dc89b06c7b5b3c3 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Fri, 23 Aug 2024 17:25:38 +0200 Subject: [PATCH] Remove unused template code --- index.html | 1 - public/vite.svg | 1 - src-tauri/src/lib.rs | 5 --- src/App.svelte | 51 ---------------------------- src/app.css | 79 ------------------------------------------- src/assets/svelte.svg | 1 - src/main.ts | 1 - 7 files changed, 139 deletions(-) delete mode 100644 public/vite.svg delete mode 100644 src/app.css delete mode 100644 src/assets/svelte.svg diff --git a/index.html b/index.html index 0d19db76b..843e53982 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,6 @@ - Radicle diff --git a/public/vite.svg b/public/vite.svg deleted file mode 100644 index e7b8dfb1b..000000000 --- a/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index a4e162ee4..3bad3031b 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1,14 +1,9 @@ -#[tauri::command] -fn greet(name: &str) -> String { - format!("Hello, {}!", name) -} #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { tauri::Builder::default() .plugin(tauri_plugin_shell::init()) .plugin(tauri_plugin_window_state::Builder::default().build()) - .invoke_handler(tauri::generate_handler![greet]) .run(tauri::generate_context!()) .expect("error while running tauri application"); } diff --git a/src/App.svelte b/src/App.svelte index 51916a648..f03c79646 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,54 +1,3 @@ - - -
-
- - - - - - -
-

Vite + Svelte

- - {#await invoke("greet", { name: "radicle" }) then result} - - Greetings from the Tauri core: {result} - - {/await} - -

- Check out - SvelteKit - - , the official Svelte app framework powered by Vite! -

- -

Click on the Vite and Svelte logos to learn more

-
diff --git a/src/app.css b/src/app.css deleted file mode 100644 index 617f5e93c..000000000 --- a/src/app.css +++ /dev/null @@ -1,79 +0,0 @@ -:root { - font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; - line-height: 1.5; - font-weight: 400; - - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -body { - margin: 0; - display: flex; - place-items: center; - min-width: 320px; - min-height: 100vh; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -.card { - padding: 2em; -} - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} diff --git a/src/assets/svelte.svg b/src/assets/svelte.svg deleted file mode 100644 index c5e08481f..000000000 --- a/src/assets/svelte.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index e73628536..8c4eaed9e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,3 @@ -import "./app.css"; import App from "./App.svelte"; const app = new App({