create-canaima-app 1.0.13 → 1.0.16
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/package.json +1 -1
- package/tauri-material-tailwind/gitignore +7 -0
- package/tauri-material-tailwind/src/App.vue +4 -3
- package/tauri-material-tailwind/src/components/Titlebar.vue +46 -9
- package/tauri-material-tailwind/src-tauri/src/main.rs +6 -0
- package/tauri-material-tailwind/src-tauri/tauri.conf.json +2 -1
- package/tauri-materialize/gitignore +7 -0
- package/tauri-materialize/package-lock.json +2331 -0
- package/tauri-materialize/src/App.vue +35 -2
- package/tauri-materialize/src/css/style.css +20 -0
- package/tauri-materialize/src-tauri/src/main.rs +1 -1
- package/tauri-materialize/src-tauri/tauri.conf.json +2 -1
package/package.json
CHANGED
|
@@ -12,6 +12,11 @@ dist
|
|
|
12
12
|
dist-ssr
|
|
13
13
|
*.local
|
|
14
14
|
|
|
15
|
+
# Tauri
|
|
16
|
+
src-tauri/target
|
|
17
|
+
src-tauri/gen
|
|
18
|
+
src-tauri/Cargo.lock
|
|
19
|
+
|
|
15
20
|
# Editor directories and files
|
|
16
21
|
.vscode/*
|
|
17
22
|
!.vscode/extensions.json
|
|
@@ -22,3 +27,5 @@ dist-ssr
|
|
|
22
27
|
*.njsproj
|
|
23
28
|
*.sln
|
|
24
29
|
*.sw?
|
|
30
|
+
|
|
31
|
+
package-lock.json
|
|
@@ -12,9 +12,9 @@ onMounted(() => {
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<template>
|
|
15
|
-
<div class="flex flex-col h-screen overflow-hidden bg-white dark:bg-[#191919]">
|
|
16
|
-
<Titlebar />
|
|
17
|
-
<main class="flex-1 overflow-y-auto overflow-x-hidden">
|
|
15
|
+
<div class="flex flex-col h-screen overflow-hidden bg-white dark:bg-[#191919] rounded-xl shadow-2xl border border-black/10">
|
|
16
|
+
<Titlebar class="rounded-t-xl" />
|
|
17
|
+
<main class="flex-1 overflow-y-auto overflow-x-hidden rounded-b-xl">
|
|
18
18
|
<RouterView />
|
|
19
19
|
</main>
|
|
20
20
|
</div>
|
|
@@ -27,6 +27,7 @@ html {
|
|
|
27
27
|
overflow: hidden !important;
|
|
28
28
|
margin: 0;
|
|
29
29
|
padding: 0;
|
|
30
|
+
background-color: transparent !important;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
/* Ocultar barra de scroll global (pero mantener funcionamiento) */
|
|
@@ -27,14 +27,24 @@ onMounted(async () => {
|
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<template>
|
|
30
|
-
<div
|
|
30
|
+
<div
|
|
31
|
+
class="system-titlebar"
|
|
32
|
+
:class="{ 'is-dark': appStore.isDarkMode }"
|
|
33
|
+
>
|
|
31
34
|
<!-- Capa de Arrastre Total -->
|
|
32
|
-
<div
|
|
35
|
+
<div
|
|
36
|
+
data-tauri-drag-region
|
|
37
|
+
class="drag-region"
|
|
38
|
+
></div>
|
|
33
39
|
|
|
34
40
|
<div class="titlebar-content">
|
|
35
41
|
<!-- Izquierda: Logo -->
|
|
36
42
|
<div class="left-section">
|
|
37
|
-
<img
|
|
43
|
+
<img
|
|
44
|
+
:src="CanaimaLogo"
|
|
45
|
+
class="logo"
|
|
46
|
+
alt="Canaima Logo"
|
|
47
|
+
/>
|
|
38
48
|
</div>
|
|
39
49
|
|
|
40
50
|
<!-- Centro: Título -->
|
|
@@ -44,19 +54,46 @@ onMounted(async () => {
|
|
|
44
54
|
|
|
45
55
|
<!-- Derecha: Controles de Ventana (Hover individual + Centrado total) -->
|
|
46
56
|
<div class="window-controls">
|
|
47
|
-
<button
|
|
57
|
+
<button
|
|
58
|
+
@click="minimizeWindow"
|
|
59
|
+
class="control-btn btn-minimize"
|
|
60
|
+
title="Minimizar"
|
|
61
|
+
>
|
|
48
62
|
<div class="icon-wrapper">
|
|
49
|
-
<Minus
|
|
63
|
+
<Minus
|
|
64
|
+
width="10"
|
|
65
|
+
height="10"
|
|
66
|
+
stroke-width="4"
|
|
67
|
+
class="control-icon"
|
|
68
|
+
/>
|
|
50
69
|
</div>
|
|
51
70
|
</button>
|
|
52
|
-
<button
|
|
71
|
+
<button
|
|
72
|
+
@click="toggleMaximizeWindow"
|
|
73
|
+
class="control-btn btn-maximize"
|
|
74
|
+
title="Maximizar"
|
|
75
|
+
>
|
|
53
76
|
<div class="icon-wrapper">
|
|
54
|
-
<Square
|
|
77
|
+
<Square
|
|
78
|
+
width="8"
|
|
79
|
+
height="8"
|
|
80
|
+
stroke-width="4"
|
|
81
|
+
class="control-icon"
|
|
82
|
+
/>
|
|
55
83
|
</div>
|
|
56
84
|
</button>
|
|
57
|
-
<button
|
|
85
|
+
<button
|
|
86
|
+
@click="closeWindow"
|
|
87
|
+
class="control-btn btn-close"
|
|
88
|
+
title="Cerrar"
|
|
89
|
+
>
|
|
58
90
|
<div class="icon-wrapper">
|
|
59
|
-
<X
|
|
91
|
+
<X
|
|
92
|
+
width="10"
|
|
93
|
+
height="10"
|
|
94
|
+
stroke-width="4"
|
|
95
|
+
class="control-icon"
|
|
96
|
+
/>
|
|
60
97
|
</div>
|
|
61
98
|
</button>
|
|
62
99
|
</div>
|
|
@@ -2,5 +2,11 @@
|
|
|
2
2
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
3
3
|
|
|
4
4
|
fn main() {
|
|
5
|
+
#[cfg(target_os = "linux")]
|
|
6
|
+
{
|
|
7
|
+
// Configuración para corregir problemas de renderizado en Linux
|
|
8
|
+
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
|
|
9
|
+
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
|
|
10
|
+
}
|
|
5
11
|
tauri_material_tailwind_lib::run()
|
|
6
12
|
}
|
|
@@ -12,6 +12,11 @@ dist
|
|
|
12
12
|
dist-ssr
|
|
13
13
|
*.local
|
|
14
14
|
|
|
15
|
+
# Tauri
|
|
16
|
+
src-tauri/target
|
|
17
|
+
src-tauri/gen
|
|
18
|
+
src-tauri/Cargo.lock
|
|
19
|
+
|
|
15
20
|
# Editor directories and files
|
|
16
21
|
.vscode/*
|
|
17
22
|
!.vscode/extensions.json
|
|
@@ -22,3 +27,5 @@ dist-ssr
|
|
|
22
27
|
*.njsproj
|
|
23
28
|
*.sln
|
|
24
29
|
*.sw?
|
|
30
|
+
|
|
31
|
+
package-lock.json
|