atome 0.5.7.5.4 → 0.5.7.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/documentation/deep learning/basic_infos.txt +5 -0
  3. data/lib/atome/genesis/atomes.rb +12 -0
  4. data/lib/atome/genesis/particles/event.rb +141 -97
  5. data/lib/atome/genesis/particles/identity.rb +2 -1
  6. data/lib/atome/genesis/particles/spatial.rb +25 -0
  7. data/lib/atome/genesis/particles/utility.rb +13 -5
  8. data/lib/atome/utilities/essentials.rb +5 -2
  9. data/lib/atome/version.rb +1 -1
  10. data/lib/molecules/intuition/tools.rb +1 -1
  11. data/lib/molecules/intuition/utilities.rb +3 -0
  12. data/lib/platform_specific/opal/extensions/object.rb +3 -1
  13. data/lib/platform_specific/wasm/atome_wasm_extensions.rb +2 -1
  14. data/lib/renderers/html/event.rb +20 -6
  15. data/lib/renderers/html/html.rb +753 -446
  16. data/lib/renderers/html/identity.rb +33 -6
  17. data/lib/renderers/html/spatial.rb +27 -0
  18. data/lib/renderers/html/utility.rb +4 -0
  19. data/vendor/assets/application/examples/audio.rb +25 -9
  20. data/vendor/assets/application/examples/calendar.rb +186 -0
  21. data/vendor/assets/application/examples/drop.rb +1 -0
  22. data/vendor/assets/application/examples/editor.rb +139 -0
  23. data/vendor/assets/application/examples/inspector.rb +129 -0
  24. data/vendor/assets/application/examples/keyboard.rb +20 -10
  25. data/vendor/assets/application/examples/map.rb +42 -0
  26. data/vendor/assets/application/examples/meteo.rb +8 -0
  27. data/vendor/assets/application/examples/midi.rb +4 -0
  28. data/vendor/assets/application/examples/on_resize.rb +14 -0
  29. data/vendor/assets/application/examples/over.rb +0 -1
  30. data/vendor/assets/application/examples/overflow.rb +20 -5
  31. data/vendor/assets/application/examples/particles.rb +1 -1
  32. data/vendor/assets/application/examples/preset.rb +1 -1
  33. data/vendor/assets/application/examples/resize.rb +11 -0
  34. data/vendor/assets/application/examples/tick.rb +10 -0
  35. data/vendor/assets/application/examples/tools.rb +6 -1
  36. data/vendor/assets/application/examples/touch.rb +2 -14
  37. data/vendor/assets/application/examples/trigger_abstraction.rb +165 -0
  38. data/vendor/assets/application/examples/vr.rb +3 -0
  39. data/vendor/assets/src/css/codemirror.min.css +472 -0
  40. data/vendor/assets/src/css/fonts/tui/icon.eot +0 -0
  41. data/vendor/assets/src/css/fonts/tui/icon.svg +17 -0
  42. data/vendor/assets/src/css/fonts/tui/icon.ttf +0 -0
  43. data/vendor/assets/src/css/fonts/tui/icon.woff +0 -0
  44. data/vendor/assets/src/css/fonts/tui/noto.woff +72 -0
  45. data/vendor/assets/src/css/images/leaflet/layers-2x.png +0 -0
  46. data/vendor/assets/src/css/images/leaflet/layers.png +0 -0
  47. data/vendor/assets/src/css/images/leaflet/marker-icon-2x.png +0 -0
  48. data/vendor/assets/src/css/images/leaflet/marker-icon.png +0 -0
  49. data/vendor/assets/src/css/images/leaflet/marker-shadow.png +0 -0
  50. data/vendor/assets/src/css/images/tui/ic-arrow-line-left.png +0 -0
  51. data/vendor/assets/src/css/images/tui/ic-arrow-line-left@2x.png +0 -0
  52. data/vendor/assets/src/css/images/tui/ic-arrow-line-left@3x.png +0 -0
  53. data/vendor/assets/src/css/images/tui/ic-arrow-line-right.png +0 -0
  54. data/vendor/assets/src/css/images/tui/ic-arrow-line-right@2x.png +0 -0
  55. data/vendor/assets/src/css/images/tui/ic-arrow-line-right@3x.png +0 -0
  56. data/vendor/assets/src/css/images/tui/ic-traveltime-w.png +0 -0
  57. data/vendor/assets/src/css/images/tui/ic-view-day.png +0 -0
  58. data/vendor/assets/src/css/images/tui/ic-view-day@2x.png +0 -0
  59. data/vendor/assets/src/css/images/tui/ic-view-day@3x.png +0 -0
  60. data/vendor/assets/src/css/images/tui/ic-view-month.png +0 -0
  61. data/vendor/assets/src/css/images/tui/ic-view-month@2x.png +0 -0
  62. data/vendor/assets/src/css/images/tui/ic-view-month@3x.png +0 -0
  63. data/vendor/assets/src/css/images/tui/ic-view-week.png +0 -0
  64. data/vendor/assets/src/css/images/tui/ic-view-week@2x.png +0 -0
  65. data/vendor/assets/src/css/images/tui/ic-view-week@3x.png +0 -0
  66. data/vendor/assets/src/css/images/tui/icon.png +0 -0
  67. data/vendor/assets/src/css/images/tui/img-bi.png +0 -0
  68. data/vendor/assets/src/css/images/tui/img-bi@2x.png +0 -0
  69. data/vendor/assets/src/css/images/tui/img-bi@3x.png +0 -0
  70. data/vendor/assets/src/css/leaflet.css +664 -0
  71. data/vendor/assets/src/css/monokai.min.css +127 -0
  72. data/vendor/assets/src/css/style.css +1 -1
  73. data/vendor/assets/src/css/toastui-calendar.min.css +6 -0
  74. data/vendor/assets/src/index.html +12 -1
  75. data/vendor/assets/src/index_opal.html +16 -1
  76. data/vendor/assets/src/index_server.html +11 -1
  77. data/vendor/assets/src/index_server_wasm.html +10 -1
  78. data/vendor/assets/src/index_wasm.html +12 -1
  79. data/vendor/assets/src/js/atome/specific/tauri.js +32 -0
  80. data/vendor/assets/src/js/atome/utilities/importmap.js +9 -0
  81. data/vendor/assets/src/js/atome/utilities/three_module.js +88 -0
  82. data/vendor/assets/src/js/test.js +42 -0
  83. data/vendor/assets/src/js/third_parties/Three/build/three.cjs +54216 -0
  84. data/vendor/assets/src/js/third_parties/Three/build/three.module.min.js +6 -0
  85. data/vendor/assets/src/js/third_parties/Three/build/three.webgpu.min.js +6 -0
  86. data/vendor/assets/src/js/third_parties/Three/jsm/controls/OrbitControls.js +1532 -0
  87. data/vendor/assets/src/js/third_parties/codemirror.min.js +1 -0
  88. data/vendor/assets/src/js/third_parties/leaflet.js +6 -0
  89. data/vendor/assets/src/js/third_parties/leaflet.js.map +1 -0
  90. data/vendor/assets/src/js/third_parties/ruby.min.js +1 -0
  91. data/vendor/assets/src/js/third_parties/toastui-calendar.min.js +9 -0
  92. data/vendor/assets/src/medias/images/puydesancy.jpg +0 -0
  93. data/vendor/assets/src-tauri/Cargo.toml +6 -5
  94. data/vendor/assets/src-tauri/Info.plist +12 -0
  95. data/vendor/assets/src-tauri/src/main.rs +32 -3
  96. data/vendor/assets/src-tauri/src/midi.rs +25 -0
  97. data/vendor/assets/src-tauri/tauri.conf.json +4 -4
  98. metadata +60 -3
  99. data/vendor/assets/src/js/third_parties/three.min.js +0 -6
@@ -1,10 +1,10 @@
1
1
  [package]
2
2
  name = "atome"
3
- version = "0.0.0"
3
+ version = "0.1.5"
4
4
  description = "atome"
5
- authors = ["you"]
6
- license = ""
7
- repository = ""
5
+ authors = ["jeezs"]
6
+ license = "MIT"
7
+ repository = "https://github.com/atomecorp/atome"
8
8
  edition = "2021"
9
9
  rust-version = "1.57"
10
10
 
@@ -16,7 +16,8 @@ tauri-build = {version = "1.2", features = [] }
16
16
  [dependencies]
17
17
  serde_json = "1.0"
18
18
  serde = { version = "1.0", features = ["derive"] }
19
- tauri = {version = "1.6", features = ["api-all"] }
19
+ tauri = {version = "1.7", features = ["api-all"] }
20
+ midir = "0.10.0"
20
21
 
21
22
  [features]
22
23
  # by default Tauri runs in production mode
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>NSMicrophoneUsageDescription</key>
6
+ <string>We need access to your microphone for speech recognition</string>
7
+ <key>NSCameraUsageDescription</key>
8
+ <string>We need access to your camera</string>
9
+ <key>NSSpeechRecognitionUsageDescription</key>
10
+ <string>We need access to speech recognition services</string>
11
+ </dict>
12
+ </plist>
@@ -2,7 +2,8 @@ use std::process::Command;
2
2
  use std::str;
3
3
  use std::fs;
4
4
 
5
- // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
5
+ mod midi;
6
+
6
7
  #[tauri::command]
7
8
  fn greet(name: &str) -> String {
8
9
  format!("Hello, {}! You've been greeted from Rust!", name)
@@ -44,7 +45,6 @@ fn write_file(file_path: &str, content: &str) -> Result<(), String> {
44
45
  }
45
46
  }
46
47
 
47
- // Nouvelle commande pour lister le contenu du répertoire
48
48
  #[tauri::command]
49
49
  fn list_directory_content(directory_path: String) -> Result<Vec<String>, String> {
50
50
  let path = std::path::Path::new(&directory_path);
@@ -63,9 +63,38 @@ fn list_directory_content(directory_path: String) -> Result<Vec<String>, String>
63
63
  }
64
64
  }
65
65
 
66
+ #[tauri::command]
67
+ fn start_midi(app_handle: tauri::AppHandle) {
68
+ std::thread::spawn(move || {
69
+ midi::start_midi_listener(app_handle);
70
+ });
71
+ }
72
+
66
73
  fn main() {
67
74
  tauri::Builder::default()
68
- .invoke_handler(tauri::generate_handler![greet, execute_command, read_file, write_file, list_directory_content])
75
+ .invoke_handler(tauri::generate_handler![
76
+ greet,
77
+ execute_command,
78
+ read_file,
79
+ write_file,
80
+ list_directory_content,
81
+ start_midi
82
+ ])
69
83
  .run(tauri::generate_context!())
70
84
  .expect("error while running tauri application");
71
85
  }
86
+
87
+
88
+ // elementary
89
+
90
+ // #[command]
91
+ // fn do_something() {
92
+ // // Code pour faire quelque chose avec Elementary
93
+ // }
94
+ //
95
+ // fn main() {
96
+ // tauri::Builder::default()
97
+ // .invoke_handler(tauri::generate_handler![start_elementary, do_something])
98
+ // .run(tauri::generate_context!())
99
+ // .expect("error while running tauri application");
100
+ // }
@@ -0,0 +1,25 @@
1
+ use midir::{MidiInput, Ignore};
2
+ use tauri::Manager;
3
+
4
+ pub fn start_midi_listener(app_handle: tauri::AppHandle) {
5
+ let mut input = MidiInput::new("MIDI Input").expect("Failed to create MIDI input");
6
+ input.ignore(Ignore::None);
7
+
8
+ let in_ports = input.ports();
9
+ if in_ports.is_empty() {
10
+ println!("No available MIDI input ports.");
11
+ return;
12
+ }
13
+
14
+ let in_port = &in_ports[0];
15
+ let in_port_name = input.port_name(in_port).unwrap();
16
+
17
+ println!("Opening connection to {}", in_port_name);
18
+ let _conn_in = input.connect(in_port, "midir-read-input", move |_stamp, message, _| {
19
+ println!("Received message: {:?}", message);
20
+ app_handle.emit_all("midi-event", format!("{:?}", message)).unwrap();
21
+ }, ()).expect("Failed to connect to input port");
22
+
23
+ // Keep the connection open
24
+ std::thread::park();
25
+ }
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "productName": "atome",
11
- "version": "0.0.0"
11
+ "version": "0.1.5"
12
12
  },
13
13
  "tauri": {
14
14
  "allowlist": {
@@ -59,11 +59,11 @@
59
59
  },
60
60
  "windows": [
61
61
  {
62
- "fullscreen": false,
62
+ "width": 800,
63
63
  "height": 600,
64
64
  "resizable": true,
65
- "title": "atome",
66
- "width": 800
65
+ "fullscreen": false,
66
+ "title": "atome"
67
67
  }
68
68
  ]
69
69
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7.5.4
4
+ version: 0.5.7.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Eric Godard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-31 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -551,6 +551,7 @@ files:
551
551
  - vendor/assets/application/examples/border.rb
552
552
  - vendor/assets/application/examples/browse.rb
553
553
  - vendor/assets/application/examples/buttons.rb
554
+ - vendor/assets/application/examples/calendar.rb
554
555
  - vendor/assets/application/examples/categories.rb
555
556
  - vendor/assets/application/examples/category.rb
556
557
  - vendor/assets/application/examples/center.rb
@@ -576,6 +577,7 @@ files:
576
577
  - vendor/assets/application/examples/drop_down_list.rb
577
578
  - vendor/assets/application/examples/duplicate.rb
578
579
  - vendor/assets/application/examples/edit.rb
580
+ - vendor/assets/application/examples/editor.rb
579
581
  - vendor/assets/application/examples/encode.rb
580
582
  - vendor/assets/application/examples/encrypt.rb
581
583
  - vendor/assets/application/examples/example.rb
@@ -603,6 +605,7 @@ files:
603
605
  - vendor/assets/application/examples/increment.rb
604
606
  - vendor/assets/application/examples/infos.rb
605
607
  - vendor/assets/application/examples/input.rb
608
+ - vendor/assets/application/examples/inspector.rb
606
609
  - vendor/assets/application/examples/int8.rb
607
610
  - vendor/assets/application/examples/js&ruby.rb
608
611
  - vendor/assets/application/examples/keyboard.rb
@@ -610,9 +613,12 @@ files:
610
613
  - vendor/assets/application/examples/list.rb
611
614
  - vendor/assets/application/examples/localstorage.rb
612
615
  - vendor/assets/application/examples/login.rb
616
+ - vendor/assets/application/examples/map.rb
613
617
  - vendor/assets/application/examples/markup.rb
614
618
  - vendor/assets/application/examples/match.rb
615
619
  - vendor/assets/application/examples/matrix.rb
620
+ - vendor/assets/application/examples/meteo.rb
621
+ - vendor/assets/application/examples/midi.rb
616
622
  - vendor/assets/application/examples/monitor.rb
617
623
  - vendor/assets/application/examples/on_resize.rb
618
624
  - vendor/assets/application/examples/on_the_fly_ruby_code_loading.rb
@@ -666,12 +672,14 @@ files:
666
672
  - vendor/assets/application/examples/to_px.rb
667
673
  - vendor/assets/application/examples/tools.rb
668
674
  - vendor/assets/application/examples/touch.rb
675
+ - vendor/assets/application/examples/trigger_abstraction.rb
669
676
  - vendor/assets/application/examples/type_mutation.rb
670
677
  - vendor/assets/application/examples/unfasten.rb
671
678
  - vendor/assets/application/examples/unit.rb
672
679
  - vendor/assets/application/examples/universe.rb
673
680
  - vendor/assets/application/examples/vector.rb
674
681
  - vendor/assets/application/examples/video.rb
682
+ - vendor/assets/application/examples/vr.rb
675
683
  - vendor/assets/application/examples/wait.rb
676
684
  - vendor/assets/application/examples/www.rb
677
685
  - vendor/assets/application/index.rb
@@ -684,6 +692,7 @@ files:
684
692
  - vendor/assets/server/extensions.rb
685
693
  - vendor/assets/src-tauri/.gitignore
686
694
  - vendor/assets/src-tauri/Cargo.toml
695
+ - vendor/assets/src-tauri/Info.plist
687
696
  - vendor/assets/src-tauri/build.rs
688
697
  - vendor/assets/src-tauri/icons/128x128.png
689
698
  - vendor/assets/src-tauri/icons/128x128@2x.png
@@ -702,12 +711,47 @@ files:
702
711
  - vendor/assets/src-tauri/icons/icon.ico
703
712
  - vendor/assets/src-tauri/icons/icon.png
704
713
  - vendor/assets/src-tauri/src/main.rs
714
+ - vendor/assets/src-tauri/src/midi.rs
705
715
  - vendor/assets/src-tauri/tauri.conf.json
706
716
  - vendor/assets/src-wasm/wasm/wasi-vfs-osx_arm
707
717
  - vendor/assets/src-wasm/wasm/wasi-vfs-osx_x86
708
718
  - vendor/assets/src-wasm/wasm/wasi-vfs-unix
709
719
  - vendor/assets/src-wasm/wasm/wasi-vfs.exe
720
+ - vendor/assets/src/css/codemirror.min.css
721
+ - vendor/assets/src/css/fonts/tui/icon.eot
722
+ - vendor/assets/src/css/fonts/tui/icon.svg
723
+ - vendor/assets/src/css/fonts/tui/icon.ttf
724
+ - vendor/assets/src/css/fonts/tui/icon.woff
725
+ - vendor/assets/src/css/fonts/tui/noto.woff
726
+ - vendor/assets/src/css/images/leaflet/layers-2x.png
727
+ - vendor/assets/src/css/images/leaflet/layers.png
728
+ - vendor/assets/src/css/images/leaflet/marker-icon-2x.png
729
+ - vendor/assets/src/css/images/leaflet/marker-icon.png
730
+ - vendor/assets/src/css/images/leaflet/marker-shadow.png
731
+ - vendor/assets/src/css/images/tui/ic-arrow-line-left.png
732
+ - vendor/assets/src/css/images/tui/ic-arrow-line-left@2x.png
733
+ - vendor/assets/src/css/images/tui/ic-arrow-line-left@3x.png
734
+ - vendor/assets/src/css/images/tui/ic-arrow-line-right.png
735
+ - vendor/assets/src/css/images/tui/ic-arrow-line-right@2x.png
736
+ - vendor/assets/src/css/images/tui/ic-arrow-line-right@3x.png
737
+ - vendor/assets/src/css/images/tui/ic-traveltime-w.png
738
+ - vendor/assets/src/css/images/tui/ic-view-day.png
739
+ - vendor/assets/src/css/images/tui/ic-view-day@2x.png
740
+ - vendor/assets/src/css/images/tui/ic-view-day@3x.png
741
+ - vendor/assets/src/css/images/tui/ic-view-month.png
742
+ - vendor/assets/src/css/images/tui/ic-view-month@2x.png
743
+ - vendor/assets/src/css/images/tui/ic-view-month@3x.png
744
+ - vendor/assets/src/css/images/tui/ic-view-week.png
745
+ - vendor/assets/src/css/images/tui/ic-view-week@2x.png
746
+ - vendor/assets/src/css/images/tui/ic-view-week@3x.png
747
+ - vendor/assets/src/css/images/tui/icon.png
748
+ - vendor/assets/src/css/images/tui/img-bi.png
749
+ - vendor/assets/src/css/images/tui/img-bi@2x.png
750
+ - vendor/assets/src/css/images/tui/img-bi@3x.png
751
+ - vendor/assets/src/css/leaflet.css
752
+ - vendor/assets/src/css/monokai.min.css
710
753
  - vendor/assets/src/css/style.css
754
+ - vendor/assets/src/css/toastui-calendar.min.css
711
755
  - vendor/assets/src/favicon.ico
712
756
  - vendor/assets/src/index.html
713
757
  - vendor/assets/src/index_opal.html
@@ -727,20 +771,32 @@ files:
727
771
  - vendor/assets/src/js/atome/atome_helpers/communication.js
728
772
  - vendor/assets/src/js/atome/atome_helpers/file.js
729
773
  - vendor/assets/src/js/atome/specific/opal.js
774
+ - vendor/assets/src/js/atome/specific/tauri.js
730
775
  - vendor/assets/src/js/atome/specific/wasm.js
776
+ - vendor/assets/src/js/atome/utilities/importmap.js
777
+ - vendor/assets/src/js/atome/utilities/three_module.js
731
778
  - vendor/assets/src/js/molecules/web.js
779
+ - vendor/assets/src/js/test.js
780
+ - vendor/assets/src/js/third_parties/Three/build/three.cjs
781
+ - vendor/assets/src/js/third_parties/Three/build/three.module.min.js
782
+ - vendor/assets/src/js/third_parties/Three/build/three.webgpu.min.js
783
+ - vendor/assets/src/js/third_parties/Three/jsm/controls/OrbitControls.js
732
784
  - vendor/assets/src/js/third_parties/browser.script.iife.min.js
785
+ - vendor/assets/src/js/third_parties/codemirror.min.js
733
786
  - vendor/assets/src/js/third_parties/fabric.min.js
734
787
  - vendor/assets/src/js/third_parties/html-to-image.min.js
735
788
  - vendor/assets/src/js/third_parties/interact.min.js
736
789
  - vendor/assets/src/js/third_parties/interact.min.js.map
737
790
  - vendor/assets/src/js/third_parties/jsencrypt.min.js
791
+ - vendor/assets/src/js/third_parties/leaflet.js
792
+ - vendor/assets/src/js/third_parties/leaflet.js.map
738
793
  - vendor/assets/src/js/third_parties/papaparse.min.js
739
794
  - vendor/assets/src/js/third_parties/ping.min.js
740
795
  - vendor/assets/src/js/third_parties/popmotion.min.js
796
+ - vendor/assets/src/js/third_parties/ruby.min.js
741
797
  - vendor/assets/src/js/third_parties/sha256.min.js
742
798
  - vendor/assets/src/js/third_parties/sortable.min.js
743
- - vendor/assets/src/js/third_parties/three.min.js
799
+ - vendor/assets/src/js/third_parties/toastui-calendar.min.js
744
800
  - vendor/assets/src/js/third_parties/w3color.js
745
801
  - vendor/assets/src/js/third_parties/wad.min.js
746
802
  - vendor/assets/src/js/third_parties/wavesurfer.min.js
@@ -881,6 +937,7 @@ files:
881
937
  - vendor/assets/src/medias/images/logos/vie.svg
882
938
  - vendor/assets/src/medias/images/logos/vimeo.svg
883
939
  - vendor/assets/src/medias/images/noise.svg
940
+ - vendor/assets/src/medias/images/puydesancy.jpg
884
941
  - vendor/assets/src/medias/images/red_planet.png
885
942
  - vendor/assets/src/medias/images/shapes/triangle.svg
886
943
  - vendor/assets/src/medias/images/tile.png