create-canaima-app 1.0.0
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 +168 -0
- package/package.json +28 -0
- package/tauri-materialize/.prettierignore +8 -0
- package/tauri-materialize/.prettierrc +9 -0
- package/tauri-materialize/.vscode/extensions.json +3 -0
- package/tauri-materialize/README.md +7 -0
- package/tauri-materialize/index.html +24 -0
- package/tauri-materialize/package-lock.json +2331 -0
- package/tauri-materialize/package.json +30 -0
- package/tauri-materialize/public/tauri.svg +6 -0
- package/tauri-materialize/public/vite.svg +1 -0
- package/tauri-materialize/src/App.vue +20 -0
- package/tauri-materialize/src/assets/image.png +0 -0
- package/tauri-materialize/src/components/Bienvenido.vue +424 -0
- package/tauri-materialize/src/css/style.css +106 -0
- package/tauri-materialize/src/main.ts +15 -0
- package/tauri-materialize/src/router/index.ts +16 -0
- package/tauri-materialize/src/stores/useAppStore.ts +34 -0
- package/tauri-materialize/src/views/HomeView.vue +8 -0
- package/tauri-materialize/src/vite-env.d.ts +7 -0
- package/tauri-materialize/src-tauri/Cargo.lock +5471 -0
- package/tauri-materialize/src-tauri/Cargo.toml +31 -0
- package/tauri-materialize/src-tauri/build.rs +3 -0
- package/tauri-materialize/src-tauri/capabilities/default.json +7 -0
- package/tauri-materialize/src-tauri/icons/128x128.png +0 -0
- package/tauri-materialize/src-tauri/icons/128x128@2x.png +0 -0
- package/tauri-materialize/src-tauri/icons/32x32.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square107x107Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square142x142Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square150x150Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square284x284Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square30x30Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square310x310Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square44x44Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square71x71Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/Square89x89Logo.png +0 -0
- package/tauri-materialize/src-tauri/icons/StoreLogo.png +0 -0
- package/tauri-materialize/src-tauri/icons/icon.icns +0 -0
- package/tauri-materialize/src-tauri/icons/icon.ico +0 -0
- package/tauri-materialize/src-tauri/icons/icon.png +0 -0
- package/tauri-materialize/src-tauri/src/lib.rs +17 -0
- package/tauri-materialize/src-tauri/src/main.rs +12 -0
- package/tauri-materialize/src-tauri/tauri.conf.json +29 -0
- package/tauri-materialize/tsconfig.json +29 -0
- package/tauri-materialize/tsconfig.node.json +10 -0
- package/tauri-materialize/vite.config.ts +32 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "plantilla-tauri-vue"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Plantilla para aplicaciones de escritorio con Tauri , Vue 3 y MaterializeCSS hecho por el equipo de Canaima"
|
|
5
|
+
authors = ["Canaima"]
|
|
6
|
+
edition = "2021"
|
|
7
|
+
|
|
8
|
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
9
|
+
|
|
10
|
+
[lib]
|
|
11
|
+
# The `_lib` suffix may seem redundant but it is necessary
|
|
12
|
+
# to make the lib name unique and wouldn't conflict with the bin name.
|
|
13
|
+
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
|
14
|
+
name = "plantilla_tauri_vue_lib"
|
|
15
|
+
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
16
|
+
|
|
17
|
+
[build-dependencies]
|
|
18
|
+
tauri-build = { version = "2", features = [] }
|
|
19
|
+
|
|
20
|
+
[dependencies]
|
|
21
|
+
tauri = { version = "2", features = [] }
|
|
22
|
+
tauri-plugin-opener = "2"
|
|
23
|
+
serde = { version = "1", features = ["derive"] }
|
|
24
|
+
serde_json = "1"
|
|
25
|
+
|
|
26
|
+
[profile.release]
|
|
27
|
+
panic = "abort"
|
|
28
|
+
codegen-units = 1
|
|
29
|
+
lto = true
|
|
30
|
+
opt-level = "s"
|
|
31
|
+
strip = true
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
|
2
|
+
#[tauri::command]
|
|
3
|
+
fn greet(name: &str) -> String {
|
|
4
|
+
format!(
|
|
5
|
+
"Hola, {}! esperamos tu app en nuestro repositorio, Feliz codigo!",
|
|
6
|
+
name
|
|
7
|
+
)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
|
11
|
+
pub fn run() {
|
|
12
|
+
tauri::Builder::default()
|
|
13
|
+
.plugin(tauri_plugin_opener::init())
|
|
14
|
+
.invoke_handler(tauri::generate_handler![greet])
|
|
15
|
+
.run(tauri::generate_context!())
|
|
16
|
+
.expect("ups! ocurrió un error al ejecutar la app");
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
2
|
+
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
3
|
+
|
|
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_DMABUF_RENDERER", "1");
|
|
9
|
+
std::env::set_var("LIBGL_ALWAYS_SOFTWARE", "1");
|
|
10
|
+
}
|
|
11
|
+
plantilla_tauri_vue_lib::run()
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.tauri.app/config/2",
|
|
3
|
+
"productName": "plantilla-tauri-vue",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"identifier": "com.canaima-app",
|
|
6
|
+
"build": {
|
|
7
|
+
"beforeDevCommand": "npm run dev",
|
|
8
|
+
"devUrl": "http://localhost:1420",
|
|
9
|
+
"beforeBuildCommand": "npm run build",
|
|
10
|
+
"frontendDist": "../dist"
|
|
11
|
+
},
|
|
12
|
+
"app": {
|
|
13
|
+
"windows": [
|
|
14
|
+
{
|
|
15
|
+
"title": "plantilla-tauri-vue",
|
|
16
|
+
"width": 800,
|
|
17
|
+
"height": 600
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"security": {
|
|
21
|
+
"csp": null
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"bundle": {
|
|
25
|
+
"active": true,
|
|
26
|
+
"targets": "deb",
|
|
27
|
+
"icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "preserve",
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true
|
|
22
|
+
},
|
|
23
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
24
|
+
"references": [
|
|
25
|
+
{
|
|
26
|
+
"path": "./tsconfig.node.json"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineConfig } from 'vite'
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
|
|
4
|
+
// @ts-expect-error process is a nodejs global
|
|
5
|
+
const host = process.env.TAURI_DEV_HOST
|
|
6
|
+
|
|
7
|
+
// https://vite.dev/config/
|
|
8
|
+
export default defineConfig(async () => ({
|
|
9
|
+
plugins: [vue()],
|
|
10
|
+
|
|
11
|
+
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
|
|
12
|
+
//
|
|
13
|
+
// 1. prevent Vite from obscuring rust errors
|
|
14
|
+
clearScreen: false,
|
|
15
|
+
// 2. tauri expects a fixed port, fail if that port is not available
|
|
16
|
+
server: {
|
|
17
|
+
port: 1420,
|
|
18
|
+
strictPort: true,
|
|
19
|
+
host: host || false,
|
|
20
|
+
hmr: host
|
|
21
|
+
? {
|
|
22
|
+
protocol: 'ws',
|
|
23
|
+
host,
|
|
24
|
+
port: 1421,
|
|
25
|
+
}
|
|
26
|
+
: undefined,
|
|
27
|
+
watch: {
|
|
28
|
+
// 3. tell Vite to ignore watching `src-tauri`
|
|
29
|
+
ignored: ['**/src-tauri/**'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
}))
|