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.
Files changed (46) hide show
  1. package/index.js +168 -0
  2. package/package.json +28 -0
  3. package/tauri-materialize/.prettierignore +8 -0
  4. package/tauri-materialize/.prettierrc +9 -0
  5. package/tauri-materialize/.vscode/extensions.json +3 -0
  6. package/tauri-materialize/README.md +7 -0
  7. package/tauri-materialize/index.html +24 -0
  8. package/tauri-materialize/package-lock.json +2331 -0
  9. package/tauri-materialize/package.json +30 -0
  10. package/tauri-materialize/public/tauri.svg +6 -0
  11. package/tauri-materialize/public/vite.svg +1 -0
  12. package/tauri-materialize/src/App.vue +20 -0
  13. package/tauri-materialize/src/assets/image.png +0 -0
  14. package/tauri-materialize/src/components/Bienvenido.vue +424 -0
  15. package/tauri-materialize/src/css/style.css +106 -0
  16. package/tauri-materialize/src/main.ts +15 -0
  17. package/tauri-materialize/src/router/index.ts +16 -0
  18. package/tauri-materialize/src/stores/useAppStore.ts +34 -0
  19. package/tauri-materialize/src/views/HomeView.vue +8 -0
  20. package/tauri-materialize/src/vite-env.d.ts +7 -0
  21. package/tauri-materialize/src-tauri/Cargo.lock +5471 -0
  22. package/tauri-materialize/src-tauri/Cargo.toml +31 -0
  23. package/tauri-materialize/src-tauri/build.rs +3 -0
  24. package/tauri-materialize/src-tauri/capabilities/default.json +7 -0
  25. package/tauri-materialize/src-tauri/icons/128x128.png +0 -0
  26. package/tauri-materialize/src-tauri/icons/128x128@2x.png +0 -0
  27. package/tauri-materialize/src-tauri/icons/32x32.png +0 -0
  28. package/tauri-materialize/src-tauri/icons/Square107x107Logo.png +0 -0
  29. package/tauri-materialize/src-tauri/icons/Square142x142Logo.png +0 -0
  30. package/tauri-materialize/src-tauri/icons/Square150x150Logo.png +0 -0
  31. package/tauri-materialize/src-tauri/icons/Square284x284Logo.png +0 -0
  32. package/tauri-materialize/src-tauri/icons/Square30x30Logo.png +0 -0
  33. package/tauri-materialize/src-tauri/icons/Square310x310Logo.png +0 -0
  34. package/tauri-materialize/src-tauri/icons/Square44x44Logo.png +0 -0
  35. package/tauri-materialize/src-tauri/icons/Square71x71Logo.png +0 -0
  36. package/tauri-materialize/src-tauri/icons/Square89x89Logo.png +0 -0
  37. package/tauri-materialize/src-tauri/icons/StoreLogo.png +0 -0
  38. package/tauri-materialize/src-tauri/icons/icon.icns +0 -0
  39. package/tauri-materialize/src-tauri/icons/icon.ico +0 -0
  40. package/tauri-materialize/src-tauri/icons/icon.png +0 -0
  41. package/tauri-materialize/src-tauri/src/lib.rs +17 -0
  42. package/tauri-materialize/src-tauri/src/main.rs +12 -0
  43. package/tauri-materialize/src-tauri/tauri.conf.json +29 -0
  44. package/tauri-materialize/tsconfig.json +29 -0
  45. package/tauri-materialize/tsconfig.node.json +10 -0
  46. 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
@@ -0,0 +1,3 @@
1
+ fn main() {
2
+ tauri_build::build()
3
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../gen/schemas/desktop-schema.json",
3
+ "identifier": "default",
4
+ "description": "Capability for the main window",
5
+ "windows": ["main"],
6
+ "permissions": ["core:default", "opener:default"]
7
+ }
@@ -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,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "skipLibCheck": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "allowSyntheticDefaultImports": true
8
+ },
9
+ "include": ["vite.config.ts"]
10
+ }
@@ -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
+ }))