create-tauri-ui 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +6 -6
- package/templates/.shared/.github/workflows/release.yml +112 -112
- package/templates/.shared/src-tauri/Cargo.lock +3835 -3835
- package/templates/.shared/src-tauri/Cargo.toml +4 -4
- package/templates/.shared/src-tauri/build.rs +3 -3
- package/templates/.shared/src-tauri/src/main.rs +22 -22
- package/templates/next/.github/workflows/release.yml +108 -108
- package/templates/next/.vscode/extensions.json +3 -3
- package/templates/next/README.md +95 -95
- package/templates/next/next-env.d.ts +5 -5
- package/templates/next/package.json +87 -87
- package/templates/next/pnpm-lock.yaml +4911 -4911
- package/templates/next/postcss.config.js +6 -6
- package/templates/next/prettier.config.js +35 -35
- package/templates/next/src/app/examples/layout.tsx +7 -7
- package/templates/next/src/app/page.tsx +5 -5
- package/templates/next/src/components/examples-nav.tsx +70 -70
- package/templates/next/src/components/greeting.tsx +21 -21
- package/templates/next/src/components/mode-toggle.tsx +43 -43
- package/templates/next/src/components/page-header.tsx +52 -52
- package/templates/next/src/components/style-switcher.tsx +19 -19
- package/templates/next/src/components/tailwind-indicator.tsx +18 -18
- package/templates/next/src/components/theme-provider.tsx +9 -9
- package/templates/next/src/components/ui/accordion.tsx +60 -60
- package/templates/next/src/components/ui/alert-dialog.tsx +145 -145
- package/templates/next/src/components/ui/alert.tsx +59 -59
- package/templates/next/src/components/ui/aspect-ratio.tsx +7 -7
- package/templates/next/src/components/ui/avatar.tsx +50 -50
- package/templates/next/src/components/ui/badge.tsx +36 -36
- package/templates/next/src/components/ui/button.tsx +56 -56
- package/templates/next/src/components/ui/calendar.tsx +64 -64
- package/templates/next/src/components/ui/card.tsx +79 -79
- package/templates/next/src/components/ui/checkbox.tsx +30 -30
- package/templates/next/src/components/ui/collapsible.tsx +11 -11
- package/templates/next/src/components/ui/command.tsx +155 -155
- package/templates/next/src/components/ui/context-menu.tsx +200 -200
- package/templates/next/src/components/ui/dialog.tsx +123 -123
- package/templates/next/src/components/ui/dropdown-menu.tsx +200 -200
- package/templates/next/src/components/ui/form.tsx +176 -176
- package/templates/next/src/components/ui/hover-card.tsx +29 -29
- package/templates/next/src/components/ui/input.tsx +25 -25
- package/templates/next/src/components/ui/label.tsx +26 -26
- package/templates/next/src/components/ui/menubar.tsx +236 -236
- package/templates/next/src/components/ui/navigation-menu.tsx +128 -128
- package/templates/next/src/components/ui/popover.tsx +31 -31
- package/templates/next/src/components/ui/progress.tsx +28 -28
- package/templates/next/src/components/ui/radio-group.tsx +44 -44
- package/templates/next/src/components/ui/scroll-area.tsx +48 -48
- package/templates/next/src/components/ui/select.tsx +121 -121
- package/templates/next/src/components/ui/separator.tsx +31 -31
- package/templates/next/src/components/ui/sheet.tsx +144 -144
- package/templates/next/src/components/ui/skeleton.tsx +15 -15
- package/templates/next/src/components/ui/slider.tsx +28 -28
- package/templates/next/src/components/ui/switch.tsx +29 -29
- package/templates/next/src/components/ui/table.tsx +114 -114
- package/templates/next/src/components/ui/tabs.tsx +55 -55
- package/templates/next/src/components/ui/textarea.tsx +24 -24
- package/templates/next/src/components/ui/toast.tsx +127 -127
- package/templates/next/src/components/ui/toaster.tsx +35 -35
- package/templates/next/src/components/ui/toggle.tsx +45 -45
- package/templates/next/src/components/ui/tooltip.tsx +30 -30
- package/templates/next/src/components/ui/use-toast.ts +192 -192
- package/templates/next/src/data/albums.ts +71 -71
- package/templates/next/src/data/playlists.ts +16 -16
- package/templates/next/src-tauri/Cargo.lock +3835 -3835
- package/templates/next/src-tauri/Cargo.toml +39 -39
- package/templates/next/src-tauri/build.rs +3 -3
- package/templates/sveltekit/.github/workflows/release.yml +108 -108
- package/templates/sveltekit/.prettierignore +13 -13
- package/templates/sveltekit/.prettierrc +8 -8
- package/templates/sveltekit/README.md +1 -1
- package/templates/sveltekit/package.json +85 -85
- package/templates/sveltekit/pnpm-lock.yaml +4177 -4177
- package/templates/sveltekit/postcss.config.cjs +13 -13
- package/templates/sveltekit/src/app.d.ts +18 -18
- package/templates/sveltekit/src/app.html +16 -16
- package/templates/sveltekit/src/index.test.ts +7 -7
- package/templates/sveltekit/src/lib/components/docs/TailwindIndicator.svelte +10 -10
- package/templates/sveltekit/src/lib/components/docs/charts/Bar.svelte +152 -152
- package/templates/sveltekit/src/lib/components/docs/dashboard/DashboardPage.svelte +108 -108
- package/templates/sveltekit/src/lib/components/docs/dashboard/MainNav.svelte +31 -31
- package/templates/sveltekit/src/lib/components/docs/dashboard/Overview.svelte +5 -5
- package/templates/sveltekit/src/lib/components/docs/dashboard/RecentSales.svelte +61 -61
- package/templates/sveltekit/src/lib/components/docs/dashboard/Search.svelte +7 -7
- package/templates/sveltekit/src/lib/components/docs/dashboard/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExampleCodeLink.svelte +19 -19
- package/templates/sveltekit/src/lib/components/docs/examples-nav/ExamplesNav.svelte +27 -27
- package/templates/sveltekit/src/lib/components/docs/examples-nav/index.ts +2 -2
- package/templates/sveltekit/src/lib/components/docs/icons/Apple.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Aria.svelte +11 -11
- package/templates/sveltekit/src/lib/components/docs/icons/GitHub.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Google.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Logo.svelte +17 -17
- package/templates/sveltekit/src/lib/components/docs/icons/Minimize.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Npm.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/PayPal.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Pnpm.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Radix.svelte +14 -14
- package/templates/sveltekit/src/lib/components/docs/icons/RadixSvelte.svelte +14 -14
- package/templates/sveltekit/src/lib/components/docs/icons/Tailwind.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/Yarn.svelte +12 -12
- package/templates/sveltekit/src/lib/components/docs/icons/index.ts +78 -78
- package/templates/sveltekit/src/lib/components/docs/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/docs/light-switch/LightSwitch.svelte +75 -75
- package/templates/sveltekit/src/lib/components/docs/light-switch/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/docs/light-switch/light-switch.ts +87 -87
- package/templates/sveltekit/src/lib/components/docs/light-switch/local-storage-store.ts +81 -81
- package/templates/sveltekit/src/lib/components/ui/accordion/Accordion.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionContent.svelte +19 -19
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionItem.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/accordion/AccordionTrigger.svelte +21 -21
- package/templates/sveltekit/src/lib/components/ui/accordion/index.ts +4 -4
- package/templates/sveltekit/src/lib/components/ui/alert/Alert.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/alert/AlertDescription.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/alert/AlertTitle.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert/index.ts +3 -3
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogAction.svelte +12 -12
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogCancel.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogContent.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogDescription.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogPortal.svelte +9 -9
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/AlertDialogTitle.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/alert-dialog/index.ts +12 -12
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/AspectRatio.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/aspect-ratio/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/avatar/Avatar.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarFallback.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/avatar/AvatarImage.svelte +17 -17
- package/templates/sveltekit/src/lib/components/ui/avatar/index.ts +3 -3
- package/templates/sveltekit/src/lib/components/ui/badge/Badge.svelte +39 -39
- package/templates/sveltekit/src/lib/components/ui/badge/index.ts +21 -21
- package/templates/sveltekit/src/lib/components/ui/button/Button.svelte +47 -47
- package/templates/sveltekit/src/lib/components/ui/button/index.ts +28 -28
- package/templates/sveltekit/src/lib/components/ui/card/Card.svelte +18 -18
- package/templates/sveltekit/src/lib/components/ui/card/CardContent.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardDescription.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardFooter.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/card/CardTitle.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/card/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/ui/checkbox/Checkbox.svelte +23 -23
- package/templates/sveltekit/src/lib/components/ui/checkbox/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/collapsible/index.ts +7 -7
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogContent.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogDescription.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogPortal.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/dialog/DialogTitle.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/dialog/index.ts +12 -12
- package/templates/sveltekit/src/lib/components/ui/hover-card/HoverCardContent.svelte +24 -24
- package/templates/sveltekit/src/lib/components/ui/hover-card/index.ts +6 -6
- package/templates/sveltekit/src/lib/components/ui/input/Input.svelte +30 -30
- package/templates/sveltekit/src/lib/components/ui/input/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/label/Label.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/label/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/progress/Progress.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/progress/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroup.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/radio-group/RadioGroupItem.svelte +23 -23
- package/templates/sveltekit/src/lib/components/ui/radio-group/index.ts +2 -2
- package/templates/sveltekit/src/lib/components/ui/select/SelectContent.svelte +26 -26
- package/templates/sveltekit/src/lib/components/ui/select/SelectItem.svelte +29 -29
- package/templates/sveltekit/src/lib/components/ui/select/SelectLabel.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/select/SelectSeparator.svelte +9 -9
- package/templates/sveltekit/src/lib/components/ui/select/SelectTrigger.svelte +21 -21
- package/templates/sveltekit/src/lib/components/ui/select/index.ts +10 -10
- package/templates/sveltekit/src/lib/components/ui/separator/Separator.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/separator/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetContent.svelte +27 -27
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetDescription.svelte +11 -11
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetFooter.svelte +13 -13
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetOverlay.svelte +15 -15
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetPortal.svelte +28 -28
- package/templates/sveltekit/src/lib/components/ui/sheet/SheetTitle.svelte +14 -14
- package/templates/sveltekit/src/lib/components/ui/sheet/index.ts +102 -102
- package/templates/sveltekit/src/lib/components/ui/skeleton/Skeleton.svelte +8 -8
- package/templates/sveltekit/src/lib/components/ui/skeleton/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/slider/Slider.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/slider/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/switch/Switch.svelte +32 -32
- package/templates/sveltekit/src/lib/components/ui/switch/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/table/Table.svelte +12 -12
- package/templates/sveltekit/src/lib/components/ui/table/TableBody.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCaption.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableCell.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableFooter.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableHead.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/table/TableHeader.svelte +10 -10
- package/templates/sveltekit/src/lib/components/ui/table/TableRow.svelte +16 -16
- package/templates/sveltekit/src/lib/components/ui/table/index.ts +8 -8
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsContent.svelte +20 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsList.svelte +17 -17
- package/templates/sveltekit/src/lib/components/ui/tabs/TabsTrigger.svelte +20 -20
- package/templates/sveltekit/src/lib/components/ui/tabs/index.ts +7 -7
- package/templates/sveltekit/src/lib/components/ui/textarea/Textarea.svelte +30 -30
- package/templates/sveltekit/src/lib/components/ui/textarea/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/toggle/Toggle.svelte +44 -44
- package/templates/sveltekit/src/lib/components/ui/toggle/index.ts +1 -1
- package/templates/sveltekit/src/lib/components/ui/tooltip/TooltipContent.svelte +22 -22
- package/templates/sveltekit/src/lib/components/ui/tooltip/index.ts +6 -6
- package/templates/sveltekit/src/lib/config/components.ts +306 -306
- package/templates/sveltekit/src/lib/config/docs.ts +356 -356
- package/templates/sveltekit/src/lib/config/site.ts +15 -15
- package/templates/sveltekit/src/lib/types/docs.ts +50 -50
- package/templates/sveltekit/src/lib/types/nav.ts +18 -18
- package/templates/sveltekit/src/lib/utils.ts +75 -75
- package/templates/sveltekit/src/routes/+layout.svelte +48 -48
- package/templates/sveltekit/src/routes/+page.ts +6 -6
- package/templates/sveltekit/src/routes/authentication/+page.svelte +57 -57
- package/templates/sveltekit/src/routes/authentication/+page.ts +7 -7
- package/templates/sveltekit/src/routes/authentication/UserAuthForm.svelte +61 -61
- package/templates/sveltekit/src/routes/cards/+page.svelte +26 -26
- package/templates/sveltekit/src/routes/cards/+page.ts +7 -7
- package/templates/sveltekit/src/routes/cards/CookieSettings.svelte +52 -52
- package/templates/sveltekit/src/routes/cards/CreateAccount.svelte +52 -52
- package/templates/sveltekit/src/routes/cards/DemoContainer.svelte +10 -10
- package/templates/sveltekit/src/routes/cards/Notifications.svelte +38 -38
- package/templates/sveltekit/src/routes/cards/PaymentMethod.svelte +110 -110
- package/templates/sveltekit/src/routes/cards/ReportAnIssue.svelte +71 -71
- package/templates/sveltekit/src/routes/cards/ShareDocument.svelte +91 -91
- package/templates/sveltekit/src/routes/dashboard/+page.svelte +5 -5
- package/templates/sveltekit/src/routes/dashboard/+page.ts +7 -7
- package/templates/sveltekit/src/routes/music/albums.ts +61 -61
- package/templates/sveltekit/src/routes/music/playlists.ts +16 -16
- package/templates/sveltekit/src/styles/globals.css +125 -125
- package/templates/sveltekit/src/styles/mdsvex.css +80 -80
- package/templates/sveltekit/src-tauri/Cargo.lock +3835 -3835
- package/templates/sveltekit/src-tauri/Cargo.toml +39 -39
- package/templates/sveltekit/src-tauri/build.rs +3 -3
- package/templates/sveltekit/src-tauri/tauri.conf.json +71 -71
- package/templates/sveltekit/svelte.config.js +22 -22
- package/templates/sveltekit/tailwind.config.js +67 -67
- package/templates/sveltekit/tsconfig.json +13 -13
- package/templates/vite/package.json +83 -83
- package/templates/vite/pnpm-lock.yaml +5176 -5176
- package/templates/vite/src-tauri/Cargo.lock +3835 -3835
- package/templates/vite/src-tauri/Cargo.toml +39 -39
- package/templates/vite/src-tauri/build.rs +3 -3
|
@@ -16,10 +16,10 @@ tauri-build = { version = "2.0.0-alpha.6", features = [] }
|
|
|
16
16
|
tauri = { version = "2.0.0-alpha.10", features = [] }
|
|
17
17
|
serde = { version = "1.0", features = ["derive"] }
|
|
18
18
|
serde_json = "1.0"
|
|
19
|
-
tauri-plugin-app = "2.0.0-alpha"
|
|
20
|
-
tauri-plugin-os = "2.0.0-alpha"
|
|
21
|
-
tauri-plugin-shell = "2.0.0-alpha"
|
|
22
|
-
tauri-plugin-window = "2.0.0-alpha"
|
|
19
|
+
tauri-plugin-app = "2.0.0-alpha.0"
|
|
20
|
+
tauri-plugin-os = "2.0.0-alpha.0"
|
|
21
|
+
tauri-plugin-shell = "2.0.0-alpha.0"
|
|
22
|
+
tauri-plugin-window = "2.0.0-alpha.0"
|
|
23
23
|
|
|
24
24
|
[features]
|
|
25
25
|
# by default Tauri runs in production mode
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
fn main() {
|
|
2
|
-
tauri_build::build()
|
|
3
|
-
}
|
|
1
|
+
fn main() {
|
|
2
|
+
tauri_build::build()
|
|
3
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
// Prevents additional console window on Windows in release
|
|
2
|
-
#![cfg_attr(
|
|
3
|
-
all(not(debug_assertions), target_os = "windows"),
|
|
4
|
-
windows_subsystem = "windows"
|
|
5
|
-
)]
|
|
6
|
-
|
|
7
|
-
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
|
|
8
|
-
#[tauri::command]
|
|
9
|
-
fn greet(name: &str) -> String {
|
|
10
|
-
format!("Hello, {}! You've been greeted from Rust!", name)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
fn main() {
|
|
14
|
-
tauri::Builder::default()
|
|
15
|
-
.invoke_handler(tauri::generate_handler![greet])
|
|
16
|
-
.plugin(tauri_plugin_app::init())
|
|
17
|
-
.plugin(tauri_plugin_os::init())
|
|
18
|
-
.plugin(tauri_plugin_shell::init())
|
|
19
|
-
.plugin(tauri_plugin_window::init())
|
|
20
|
-
.run(tauri::generate_context!())
|
|
21
|
-
.expect("error while running tauri application");
|
|
22
|
-
}
|
|
1
|
+
// Prevents additional console window on Windows in release
|
|
2
|
+
#![cfg_attr(
|
|
3
|
+
all(not(debug_assertions), target_os = "windows"),
|
|
4
|
+
windows_subsystem = "windows"
|
|
5
|
+
)]
|
|
6
|
+
|
|
7
|
+
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
|
|
8
|
+
#[tauri::command]
|
|
9
|
+
fn greet(name: &str) -> String {
|
|
10
|
+
format!("Hello, {}! You've been greeted from Rust!", name)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
fn main() {
|
|
14
|
+
tauri::Builder::default()
|
|
15
|
+
.invoke_handler(tauri::generate_handler![greet])
|
|
16
|
+
.plugin(tauri_plugin_app::init())
|
|
17
|
+
.plugin(tauri_plugin_os::init())
|
|
18
|
+
.plugin(tauri_plugin_shell::init())
|
|
19
|
+
.plugin(tauri_plugin_window::init())
|
|
20
|
+
.run(tauri::generate_context!())
|
|
21
|
+
.expect("error while running tauri application");
|
|
22
|
+
}
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
name: "release"
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- "*"
|
|
7
|
-
jobs:
|
|
8
|
-
create-release:
|
|
9
|
-
permissions:
|
|
10
|
-
contents: write
|
|
11
|
-
runs-on: ubuntu-20.04
|
|
12
|
-
outputs:
|
|
13
|
-
release_id: ${{ steps.create-release.outputs.result }}
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v3
|
|
17
|
-
- name: setup node
|
|
18
|
-
uses: actions/setup-node@v3
|
|
19
|
-
with:
|
|
20
|
-
node-version: 16
|
|
21
|
-
- name: get version
|
|
22
|
-
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
|
23
|
-
- name: create release
|
|
24
|
-
id: create-release
|
|
25
|
-
uses: actions/github-script@v6
|
|
26
|
-
with:
|
|
27
|
-
script: |
|
|
28
|
-
const { data } = await github.rest.repos.createRelease({
|
|
29
|
-
owner: context.repo.owner,
|
|
30
|
-
repo: context.repo.repo,
|
|
31
|
-
tag_name: `v${process.env.PACKAGE_VERSION}`,
|
|
32
|
-
name: `v${process.env.PACKAGE_VERSION}`,
|
|
33
|
-
body: '*This release was generated automatically using GitHub Actions.*',
|
|
34
|
-
draft: true,
|
|
35
|
-
prerelease: false
|
|
36
|
-
})
|
|
37
|
-
return data.id
|
|
38
|
-
|
|
39
|
-
build-tauri:
|
|
40
|
-
needs: create-release
|
|
41
|
-
permissions:
|
|
42
|
-
contents: write
|
|
43
|
-
strategy:
|
|
44
|
-
fail-fast: false
|
|
45
|
-
matrix:
|
|
46
|
-
platform: [macos-latest, ubuntu-latest, windows-latest]
|
|
47
|
-
|
|
48
|
-
runs-on: ${{ matrix.platform }}
|
|
49
|
-
steps:
|
|
50
|
-
- name: Checkout repository
|
|
51
|
-
uses: actions/checkout@v3
|
|
52
|
-
|
|
53
|
-
- name: Install Rust
|
|
54
|
-
uses: dtolnay/rust-toolchain@stable
|
|
55
|
-
with:
|
|
56
|
-
toolchain: stable
|
|
57
|
-
|
|
58
|
-
- name: Rust cache
|
|
59
|
-
uses: Swatinem/rust-cache@v2
|
|
60
|
-
with:
|
|
61
|
-
workspaces: v2 -> v2/target
|
|
62
|
-
|
|
63
|
-
- name: Install Node.js
|
|
64
|
-
uses: actions/setup-node@v3
|
|
65
|
-
with:
|
|
66
|
-
node-version: "lts/*"
|
|
67
|
-
cache-dependency-path: v2/package-lock.json
|
|
68
|
-
|
|
69
|
-
- name: Install apt dependencies (ubuntu only)
|
|
70
|
-
if: matrix.platform == 'ubuntu-latest'
|
|
71
|
-
run: |
|
|
72
|
-
sudo apt-get update
|
|
73
|
-
sudo apt install -y --no-install-recommends libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
|
74
|
-
|
|
75
|
-
- name: Install pnpm
|
|
76
|
-
run: npm install -g pnpm
|
|
77
|
-
|
|
78
|
-
- name: Install frontend dependencies
|
|
79
|
-
run: pnpm install
|
|
80
|
-
|
|
81
|
-
- name: Build the app
|
|
82
|
-
uses: tauri-apps/tauri-action@v0
|
|
83
|
-
env:
|
|
84
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
85
|
-
with:
|
|
86
|
-
releaseId: ${{ needs.create-release.outputs.release_id }}
|
|
87
|
-
|
|
88
|
-
publish-release:
|
|
89
|
-
permissions:
|
|
90
|
-
contents: write
|
|
91
|
-
runs-on: ubuntu-20.04
|
|
92
|
-
needs: [create-release, build-tauri]
|
|
93
|
-
|
|
94
|
-
steps:
|
|
95
|
-
- name: publish release
|
|
96
|
-
id: publish-release
|
|
97
|
-
uses: actions/github-script@v6
|
|
98
|
-
env:
|
|
99
|
-
release_id: ${{ needs.create-release.outputs.release_id }}
|
|
100
|
-
with:
|
|
101
|
-
script: |
|
|
102
|
-
github.rest.repos.updateRelease({
|
|
103
|
-
owner: context.repo.owner,
|
|
104
|
-
repo: context.repo.repo,
|
|
105
|
-
release_id: process.env.release_id,
|
|
106
|
-
draft: false,
|
|
107
|
-
prerelease: false
|
|
108
|
-
})
|
|
1
|
+
name: "release"
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "*"
|
|
7
|
+
jobs:
|
|
8
|
+
create-release:
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
runs-on: ubuntu-20.04
|
|
12
|
+
outputs:
|
|
13
|
+
release_id: ${{ steps.create-release.outputs.result }}
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v3
|
|
17
|
+
- name: setup node
|
|
18
|
+
uses: actions/setup-node@v3
|
|
19
|
+
with:
|
|
20
|
+
node-version: 16
|
|
21
|
+
- name: get version
|
|
22
|
+
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
|
|
23
|
+
- name: create release
|
|
24
|
+
id: create-release
|
|
25
|
+
uses: actions/github-script@v6
|
|
26
|
+
with:
|
|
27
|
+
script: |
|
|
28
|
+
const { data } = await github.rest.repos.createRelease({
|
|
29
|
+
owner: context.repo.owner,
|
|
30
|
+
repo: context.repo.repo,
|
|
31
|
+
tag_name: `v${process.env.PACKAGE_VERSION}`,
|
|
32
|
+
name: `v${process.env.PACKAGE_VERSION}`,
|
|
33
|
+
body: '*This release was generated automatically using GitHub Actions.*',
|
|
34
|
+
draft: true,
|
|
35
|
+
prerelease: false
|
|
36
|
+
})
|
|
37
|
+
return data.id
|
|
38
|
+
|
|
39
|
+
build-tauri:
|
|
40
|
+
needs: create-release
|
|
41
|
+
permissions:
|
|
42
|
+
contents: write
|
|
43
|
+
strategy:
|
|
44
|
+
fail-fast: false
|
|
45
|
+
matrix:
|
|
46
|
+
platform: [macos-latest, ubuntu-latest, windows-latest]
|
|
47
|
+
|
|
48
|
+
runs-on: ${{ matrix.platform }}
|
|
49
|
+
steps:
|
|
50
|
+
- name: Checkout repository
|
|
51
|
+
uses: actions/checkout@v3
|
|
52
|
+
|
|
53
|
+
- name: Install Rust
|
|
54
|
+
uses: dtolnay/rust-toolchain@stable
|
|
55
|
+
with:
|
|
56
|
+
toolchain: stable
|
|
57
|
+
|
|
58
|
+
- name: Rust cache
|
|
59
|
+
uses: Swatinem/rust-cache@v2
|
|
60
|
+
with:
|
|
61
|
+
workspaces: v2 -> v2/target
|
|
62
|
+
|
|
63
|
+
- name: Install Node.js
|
|
64
|
+
uses: actions/setup-node@v3
|
|
65
|
+
with:
|
|
66
|
+
node-version: "lts/*"
|
|
67
|
+
cache-dependency-path: v2/package-lock.json
|
|
68
|
+
|
|
69
|
+
- name: Install apt dependencies (ubuntu only)
|
|
70
|
+
if: matrix.platform == 'ubuntu-latest'
|
|
71
|
+
run: |
|
|
72
|
+
sudo apt-get update
|
|
73
|
+
sudo apt install -y --no-install-recommends libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
|
74
|
+
|
|
75
|
+
- name: Install pnpm
|
|
76
|
+
run: npm install -g pnpm
|
|
77
|
+
|
|
78
|
+
- name: Install frontend dependencies
|
|
79
|
+
run: pnpm install
|
|
80
|
+
|
|
81
|
+
- name: Build the app
|
|
82
|
+
uses: tauri-apps/tauri-action@v0
|
|
83
|
+
env:
|
|
84
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
85
|
+
with:
|
|
86
|
+
releaseId: ${{ needs.create-release.outputs.release_id }}
|
|
87
|
+
|
|
88
|
+
publish-release:
|
|
89
|
+
permissions:
|
|
90
|
+
contents: write
|
|
91
|
+
runs-on: ubuntu-20.04
|
|
92
|
+
needs: [create-release, build-tauri]
|
|
93
|
+
|
|
94
|
+
steps:
|
|
95
|
+
- name: publish release
|
|
96
|
+
id: publish-release
|
|
97
|
+
uses: actions/github-script@v6
|
|
98
|
+
env:
|
|
99
|
+
release_id: ${{ needs.create-release.outputs.release_id }}
|
|
100
|
+
with:
|
|
101
|
+
script: |
|
|
102
|
+
github.rest.repos.updateRelease({
|
|
103
|
+
owner: context.repo.owner,
|
|
104
|
+
repo: context.repo.repo,
|
|
105
|
+
release_id: process.env.release_id,
|
|
106
|
+
draft: false,
|
|
107
|
+
prerelease: false
|
|
108
|
+
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
{
|
|
2
|
-
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
|
|
3
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
|
|
3
|
+
}
|
package/templates/next/README.md
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
|
-
# Tauri UI Template
|
|
4
|
-
|
|
5
|
-
Tauri UI Template is a starting point for building modern desktop applications with web technologies. Customizable UI components with [shadcn/ui](https://github.com/shadcn/ui), a lightweight and secure desktop app framework [Tauri 2](https://github.com/tauri-apps/tauri), the React-based framework [Next.js 13](https://beta.nextjs.org/docs), the utility-first CSS framework [Tailwind](https://tailwindcss.com/).
|
|
6
|
-
|
|
7
|
-
> _You can download pre-built final bundles from the [Releases](https://github.com/agmmnn/tauri-ui/releases) section._
|
|
8
|
-
|
|
9
|
-
## Getting Started
|
|
10
|
-
|
|
11
|
-
Use [create-tauri-ui](https://github.com/agmmnn/create-tauri-ui) to quickly scaffold a Tauri UI project.
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
pnpm create tauri-ui
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-

|
|
18
|
-
|
|
19
|
-
<details>
|
|
20
|
-
<summary>
|
|
21
|
-
Or clone the repository
|
|
22
|
-
</summary>
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
gh repo clone agmmnn/tauri-ui
|
|
26
|
-
cd tauri-ui
|
|
27
|
-
|
|
28
|
-
pnpm i
|
|
29
|
-
pnpm tauri dev
|
|
30
|
-
pnpm tauri build
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
</details>
|
|
34
|
-
|
|
35
|
-
## Features
|
|
36
|
-
|
|
37
|
-
- Support for dark and light modes
|
|
38
|
-
- Components-based UI design
|
|
39
|
-
- A draggable titlebar with minimize, maximize, and close buttons
|
|
40
|
-
- [Radix UI](https://www.radix-ui.com/) for UI primitives
|
|
41
|
-
- [Lucide Icons](https://lucide.dev/)
|
|
42
|
-
- [Bundle size optimized](https://github.com/johnthagen/min-sized-rust) [`Cargo.toml`](/src-tauri/Cargo.toml) (.msi 2.2mb, .dmg 1.9mb, .deb 2mb)
|
|
43
|
-
- [Tauri GitHub Action](https://github.com/tauri-apps/tauri-action)
|
|
44
|
-
|
|
45
|
-

|
|
46
|
-
|
|
47
|
-
> _[Next.js](https://nextjs.org/) is used in this template to facilitate quick integration of the [`/examples`](https://github.com/shadcn/ui/tree/main/apps/www/app/examples) directory of shadcn/ui. You can also easily use shadcn/ui with the [React + Vite](https://tauri.app/v1/guides/getting-started/setup/vite/) stack and any [React router library](https://react.libhunt.com/libs/router) (optionally) in Tauri._
|
|
48
|
-
|
|
49
|
-
## Customization
|
|
50
|
-
|
|
51
|
-
The template can be customized by editing the following files:
|
|
52
|
-
|
|
53
|
-
- [src-tauri/tauri.conf.json](src-tauri/tauri.conf.json)
|
|
54
|
-
- [package.json](/package.json)
|
|
55
|
-
- [src-tauri/cargo.toml](src-tauri/Cargo.toml)
|
|
56
|
-
- To change the app icon, update `app-icon.png`, and then run `pnpm tauri icon`. This will automatically generate icon files into _src-tauri/icons_.
|
|
57
|
-
|
|
58
|
-
## Update Components
|
|
59
|
-
|
|
60
|
-
Note that **shadcn/ui** [is not a library](https://ui.shadcn.com/docs#faqs), therefore you will need to update the components manually. To do so, you can [download](https://download-directory.github.io/?url=https%3A%2F%2Fgithub.com%2Fshadcn%2Fui%2Ftree%2Fmain%2Fapps%2Fwww%2Fcomponents%2Fui) the _[shadcn/ui/apps/www/components/ui](https://github.com/shadcn/ui/tree/main/apps/www/components/ui)_ directory and paste it into _[src/components/ui](/src/components/ui)_.
|
|
61
|
-
|
|
62
|
-
## Folder Structure
|
|
63
|
-
|
|
64
|
-
```js
|
|
65
|
-
.
|
|
66
|
-
├── next-env.d.ts
|
|
67
|
-
├── next.config.js //nextjs config file https://nextjs.org/docs/pages/api-reference/next-config-js
|
|
68
|
-
├── package.json
|
|
69
|
-
├── postcss.config.js
|
|
70
|
-
├── README.md
|
|
71
|
-
├── public
|
|
72
|
-
├── src //frontend src:
|
|
73
|
-
│ ├── app //next.js appdir https://nextjs.org/docs/app/building-your-application/routing
|
|
74
|
-
│ ├── assets
|
|
75
|
-
│ ├── components //from shadcn/ui
|
|
76
|
-
│ │ └── ui
|
|
77
|
-
│ ├── data
|
|
78
|
-
│ ├── hooks
|
|
79
|
-
│ ├── lib
|
|
80
|
-
│ └── styles
|
|
81
|
-
├── src-tauri //backend src:
|
|
82
|
-
│ ├── build.rs
|
|
83
|
-
│ ├── Cargo.lock
|
|
84
|
-
│ ├── Cargo.toml //https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
85
|
-
│ ├── icons //https://tauri.app/v1/guides/features/icons/
|
|
86
|
-
│ ├── src
|
|
87
|
-
│ └── tauri.conf.json //tauri config file https://next--tauri.netlify.app/next/api/config
|
|
88
|
-
├── prettier.config.js //prettier config file https://prettier.io/docs/en/configuration.html
|
|
89
|
-
├── tailwind.config.js //tailwind config file https://tailwindcss.com/docs/configuration
|
|
90
|
-
└── tsconfig.json //typescript config file https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Recommended IDE Setup
|
|
94
|
-
|
|
95
|
-
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Tauri UI Template
|
|
4
|
+
|
|
5
|
+
Tauri UI Template is a starting point for building modern desktop applications with web technologies. Customizable UI components with [shadcn/ui](https://github.com/shadcn/ui), a lightweight and secure desktop app framework [Tauri 2](https://github.com/tauri-apps/tauri), the React-based framework [Next.js 13](https://beta.nextjs.org/docs), the utility-first CSS framework [Tailwind](https://tailwindcss.com/).
|
|
6
|
+
|
|
7
|
+
> _You can download pre-built final bundles from the [Releases](https://github.com/agmmnn/tauri-ui/releases) section._
|
|
8
|
+
|
|
9
|
+
## Getting Started
|
|
10
|
+
|
|
11
|
+
Use [create-tauri-ui](https://github.com/agmmnn/create-tauri-ui) to quickly scaffold a Tauri UI project.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm create tauri-ui
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
<details>
|
|
20
|
+
<summary>
|
|
21
|
+
Or clone the repository
|
|
22
|
+
</summary>
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
gh repo clone agmmnn/tauri-ui
|
|
26
|
+
cd tauri-ui
|
|
27
|
+
|
|
28
|
+
pnpm i
|
|
29
|
+
pnpm tauri dev
|
|
30
|
+
pnpm tauri build
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
</details>
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
|
|
37
|
+
- Support for dark and light modes
|
|
38
|
+
- Components-based UI design
|
|
39
|
+
- A draggable titlebar with minimize, maximize, and close buttons
|
|
40
|
+
- [Radix UI](https://www.radix-ui.com/) for UI primitives
|
|
41
|
+
- [Lucide Icons](https://lucide.dev/)
|
|
42
|
+
- [Bundle size optimized](https://github.com/johnthagen/min-sized-rust) [`Cargo.toml`](/src-tauri/Cargo.toml) (.msi 2.2mb, .dmg 1.9mb, .deb 2mb)
|
|
43
|
+
- [Tauri GitHub Action](https://github.com/tauri-apps/tauri-action)
|
|
44
|
+
|
|
45
|
+

|
|
46
|
+
|
|
47
|
+
> _[Next.js](https://nextjs.org/) is used in this template to facilitate quick integration of the [`/examples`](https://github.com/shadcn/ui/tree/main/apps/www/app/examples) directory of shadcn/ui. You can also easily use shadcn/ui with the [React + Vite](https://tauri.app/v1/guides/getting-started/setup/vite/) stack and any [React router library](https://react.libhunt.com/libs/router) (optionally) in Tauri._
|
|
48
|
+
|
|
49
|
+
## Customization
|
|
50
|
+
|
|
51
|
+
The template can be customized by editing the following files:
|
|
52
|
+
|
|
53
|
+
- [src-tauri/tauri.conf.json](src-tauri/tauri.conf.json)
|
|
54
|
+
- [package.json](/package.json)
|
|
55
|
+
- [src-tauri/cargo.toml](src-tauri/Cargo.toml)
|
|
56
|
+
- To change the app icon, update `app-icon.png`, and then run `pnpm tauri icon`. This will automatically generate icon files into _src-tauri/icons_.
|
|
57
|
+
|
|
58
|
+
## Update Components
|
|
59
|
+
|
|
60
|
+
Note that **shadcn/ui** [is not a library](https://ui.shadcn.com/docs#faqs), therefore you will need to update the components manually. To do so, you can [download](https://download-directory.github.io/?url=https%3A%2F%2Fgithub.com%2Fshadcn%2Fui%2Ftree%2Fmain%2Fapps%2Fwww%2Fcomponents%2Fui) the _[shadcn/ui/apps/www/components/ui](https://github.com/shadcn/ui/tree/main/apps/www/components/ui)_ directory and paste it into _[src/components/ui](/src/components/ui)_.
|
|
61
|
+
|
|
62
|
+
## Folder Structure
|
|
63
|
+
|
|
64
|
+
```js
|
|
65
|
+
.
|
|
66
|
+
├── next-env.d.ts
|
|
67
|
+
├── next.config.js //nextjs config file https://nextjs.org/docs/pages/api-reference/next-config-js
|
|
68
|
+
├── package.json
|
|
69
|
+
├── postcss.config.js
|
|
70
|
+
├── README.md
|
|
71
|
+
├── public
|
|
72
|
+
├── src //frontend src:
|
|
73
|
+
│ ├── app //next.js appdir https://nextjs.org/docs/app/building-your-application/routing
|
|
74
|
+
│ ├── assets
|
|
75
|
+
│ ├── components //from shadcn/ui
|
|
76
|
+
│ │ └── ui
|
|
77
|
+
│ ├── data
|
|
78
|
+
│ ├── hooks
|
|
79
|
+
│ ├── lib
|
|
80
|
+
│ └── styles
|
|
81
|
+
├── src-tauri //backend src:
|
|
82
|
+
│ ├── build.rs
|
|
83
|
+
│ ├── Cargo.lock
|
|
84
|
+
│ ├── Cargo.toml //https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
85
|
+
│ ├── icons //https://tauri.app/v1/guides/features/icons/
|
|
86
|
+
│ ├── src
|
|
87
|
+
│ └── tauri.conf.json //tauri config file https://next--tauri.netlify.app/next/api/config
|
|
88
|
+
├── prettier.config.js //prettier config file https://prettier.io/docs/en/configuration.html
|
|
89
|
+
├── tailwind.config.js //tailwind config file https://tailwindcss.com/docs/configuration
|
|
90
|
+
└── tsconfig.json //typescript config file https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Recommended IDE Setup
|
|
94
|
+
|
|
95
|
+
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="next" />
|
|
2
|
-
/// <reference types="next/image-types/global" />
|
|
3
|
-
|
|
4
|
-
// NOTE: This file should not be edited
|
|
5
|
-
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
|
1
|
+
/// <reference types="next" />
|
|
2
|
+
/// <reference types="next/image-types/global" />
|
|
3
|
+
|
|
4
|
+
// NOTE: This file should not be edited
|
|
5
|
+
// see https://nextjs.org/docs/basic-features/typescript for more information.
|