create-canaima-app 1.0.11 → 1.0.12

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 (52) hide show
  1. package/index.js +3 -0
  2. package/package.json +1 -2
  3. package/tauri-material-tailwind/.gitignore copy +24 -0
  4. package/tauri-material-tailwind/.prettierignore +8 -0
  5. package/tauri-material-tailwind/.prettierrc +9 -0
  6. package/tauri-material-tailwind/.vscode/extensions.json +3 -0
  7. package/tauri-material-tailwind/README.md +7 -0
  8. package/tauri-material-tailwind/gitignore +24 -0
  9. package/tauri-material-tailwind/index.html +28 -0
  10. package/tauri-material-tailwind/package-lock.json +2859 -0
  11. package/tauri-material-tailwind/package.json +32 -0
  12. package/tauri-material-tailwind/public/ripple.js +95 -0
  13. package/tauri-material-tailwind/public/tauri.svg +6 -0
  14. package/tauri-material-tailwind/public/vite.svg +1 -0
  15. package/tauri-material-tailwind/src/App.vue +16 -0
  16. package/tauri-material-tailwind/src/assets/image.png +0 -0
  17. package/tauri-material-tailwind/src/assets/vue.svg +1 -0
  18. package/tauri-material-tailwind/src/components/Bienvenido.vue +417 -0
  19. package/tauri-material-tailwind/src/main.ts +12 -0
  20. package/tauri-material-tailwind/src/router/index.ts +16 -0
  21. package/tauri-material-tailwind/src/stores/useAppStore.ts +35 -0
  22. package/tauri-material-tailwind/src/style.css +22 -0
  23. package/tauri-material-tailwind/src/views/HomeView.vue +8 -0
  24. package/tauri-material-tailwind/src/vite-env.d.ts +7 -0
  25. package/tauri-material-tailwind/src-tauri/Cargo.lock +5471 -0
  26. package/tauri-material-tailwind/src-tauri/Cargo.toml +33 -0
  27. package/tauri-material-tailwind/src-tauri/build.rs +3 -0
  28. package/tauri-material-tailwind/src-tauri/capabilities/default.json +7 -0
  29. package/tauri-material-tailwind/src-tauri/icons/128x128.png +0 -0
  30. package/tauri-material-tailwind/src-tauri/icons/128x128@2x.png +0 -0
  31. package/tauri-material-tailwind/src-tauri/icons/32x32.png +0 -0
  32. package/tauri-material-tailwind/src-tauri/icons/Square107x107Logo.png +0 -0
  33. package/tauri-material-tailwind/src-tauri/icons/Square142x142Logo.png +0 -0
  34. package/tauri-material-tailwind/src-tauri/icons/Square150x150Logo.png +0 -0
  35. package/tauri-material-tailwind/src-tauri/icons/Square284x284Logo.png +0 -0
  36. package/tauri-material-tailwind/src-tauri/icons/Square30x30Logo.png +0 -0
  37. package/tauri-material-tailwind/src-tauri/icons/Square310x310Logo.png +0 -0
  38. package/tauri-material-tailwind/src-tauri/icons/Square44x44Logo.png +0 -0
  39. package/tauri-material-tailwind/src-tauri/icons/Square71x71Logo.png +0 -0
  40. package/tauri-material-tailwind/src-tauri/icons/Square89x89Logo.png +0 -0
  41. package/tauri-material-tailwind/src-tauri/icons/StoreLogo.png +0 -0
  42. package/tauri-material-tailwind/src-tauri/icons/icon.icns +0 -0
  43. package/tauri-material-tailwind/src-tauri/icons/icon.ico +0 -0
  44. package/tauri-material-tailwind/src-tauri/icons/icon.png +0 -0
  45. package/tauri-material-tailwind/src-tauri/src/lib.rs +17 -0
  46. package/tauri-material-tailwind/src-tauri/src/main.rs +6 -0
  47. package/tauri-material-tailwind/src-tauri/tauri.conf.json +29 -0
  48. package/tauri-material-tailwind/tsconfig.json +25 -0
  49. package/tauri-material-tailwind/tsconfig.node.json +10 -0
  50. package/tauri-material-tailwind/vite.config.ts +33 -0
  51. package/tauri-materialize/.vscode/settings.json +13 -0
  52. package/tauri-materialize/gitignore +24 -0
@@ -0,0 +1,33 @@
1
+ [package]
2
+ name = "tauri-material-tailwind"
3
+ version = "0.1.0"
4
+ description = "A Tauri App"
5
+ authors = ["you"]
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 = "tauri_material_tailwind_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
+
27
+ [profile.release]
28
+ panic = "abort"
29
+ codegen-units = 1
30
+ lto = true
31
+ opt-level = "s"
32
+ strip = true
33
+
@@ -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,6 @@
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
+ tauri_material_tailwind_lib::run()
6
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "$schema": "https://schema.tauri.app/config/2",
3
+ "productName": "tauri-material-tailwind",
4
+ "version": "0.1.0",
5
+ "identifier": "com.canaima.tauri-material-tailwind",
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": "tauri-material-tailwind",
16
+ "width": 800,
17
+ "height": 600
18
+ }
19
+ ],
20
+ "security": {
21
+ "csp": null
22
+ }
23
+ },
24
+ "bundle": {
25
+ "active": true,
26
+ "targets": "all",
27
+ "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"]
28
+ }
29
+ }
@@ -0,0 +1,25 @@
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": [{ "path": "./tsconfig.node.json" }]
25
+ }
@@ -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,33 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ import tailwindcss from '@tailwindcss/vite'
4
+
5
+ // @ts-expect-error process is a nodejs global
6
+ const host = process.env.TAURI_DEV_HOST
7
+
8
+ // https://vite.dev/config/
9
+ export default defineConfig(async () => ({
10
+ plugins: [tailwindcss(), vue()],
11
+
12
+ // Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
13
+ //
14
+ // 1. prevent Vite from obscuring rust errors
15
+ clearScreen: false,
16
+ // 2. tauri expects a fixed port, fail if that port is not available
17
+ server: {
18
+ port: 1420,
19
+ strictPort: true,
20
+ host: host || false,
21
+ hmr: host
22
+ ? {
23
+ protocol: 'ws',
24
+ host,
25
+ port: 1421,
26
+ }
27
+ : undefined,
28
+ watch: {
29
+ // 3. tell Vite to ignore watching `src-tauri`
30
+ ignored: ['**/src-tauri/**'],
31
+ },
32
+ },
33
+ }))
@@ -0,0 +1,13 @@
1
+ {
2
+ "editor.formatOnSave": true,
3
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
4
+ "editor.codeActionsOnSave": {
5
+ "source.fixAll.eslint": "explicit"
6
+ },
7
+ "[rust]": {
8
+ "editor.defaultFormatter": "rust-lang.rust-analyzer"
9
+ },
10
+ "[vue]": {
11
+ "editor.defaultFormatter": "vscode.typescript-language-features"
12
+ }
13
+ }
@@ -0,0 +1,24 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ pnpm-debug.log*
8
+ lerna-debug.log*
9
+
10
+ node_modules
11
+ dist
12
+ dist-ssr
13
+ *.local
14
+
15
+ # Editor directories and files
16
+ .vscode/*
17
+ !.vscode/extensions.json
18
+ .idea
19
+ .DS_Store
20
+ *.suo
21
+ *.ntvs*
22
+ *.njsproj
23
+ *.sln
24
+ *.sw?