Skip to content

Commit

Permalink
add tauri-controls, remove unused stuffs (sveltekit)
Browse files Browse the repository at this point in the history
  • Loading branch information
agmmnn committed Aug 3, 2023
1 parent 7e2539c commit 818a617
Show file tree
Hide file tree
Showing 188 changed files with 44 additions and 5,065 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ templates/**/.next/
templates/**/dist/
templates/**/node_modules/
templates/**/src-tauri/target/

*.tgz
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-tauri-ui",
"version": "0.3.1",
"version": "0.3.2",
"description": "🦀 Create modern Tauri desktop apps in just a few simple steps.",
"main": "index.js",
"author": "agmmnn",
Expand Down
5 changes: 3 additions & 2 deletions templates/next/src/components/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ export function Menu() {

return (
<WindowTitlebar
// controlsOrder="system"
// windowControlsProps={{ platform: "macos" }}
// controlsOrder="left"
// className="pl-0"
// windowControlsProps={{ platform: "windows", justify: false }}
>
<Menubar className="rounded-none border-b border-none pl-2 lg:pl-3">
<MenubarMenu>
Expand Down
10 changes: 8 additions & 2 deletions templates/sveltekit/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// Prevents additional console window on Windows in release
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]

// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
#[tauri::command]
Expand All @@ -10,6 +13,9 @@ fn greet(name: &str) -> String {
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet])
.plugin(tauri_plugin_app::init())
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_window::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
Expand Down
8 changes: 4 additions & 4 deletions templates/sveltekit/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@
"scheme": "https",
"domain": "tauri.localhost",
"windows": ["main"],
"plugins": ["clipboard", "path", "dialog", "fs", "shell", "window", "windows"]
"plugins": ["app", "shell", "os", "event", "window"]
}
]
},
"windows": [
{
"fullscreen": false,
"title": "Tauri UI",
"title": "Tauri Demo",
"center": true,
"resizable": true,
"decorations": false,
"transparent": true,
"height": 920,
"width": 1300
"height": 900,
"width": 1290
}
]
}
Expand Down
63 changes: 0 additions & 63 deletions templates/sveltekit/src/content/cli.md

This file was deleted.

59 changes: 0 additions & 59 deletions templates/sveltekit/src/content/components/accordion.md

This file was deleted.

75 changes: 0 additions & 75 deletions templates/sveltekit/src/content/components/alert-dialog.md

This file was deleted.

67 changes: 0 additions & 67 deletions templates/sveltekit/src/content/components/alert.md

This file was deleted.

51 changes: 0 additions & 51 deletions templates/sveltekit/src/content/components/aspect-ratio.md

This file was deleted.

Loading

0 comments on commit 818a617

Please sign in to comment.