fenetre 0.1.0 → 0.2.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.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +98 -9
- data/app/assets/javascripts/fenetre/application.js +1 -14
- data/app/assets/javascripts/fenetre/controllers/index.js +1 -19
- data/app/assets/javascripts/fenetre/controllers/video_chat_controller.js +556 -516
- data/app/assets/javascripts/fenetre/vendor/stimulus.js +2567 -0
- data/app/assets/javascripts/fenetre/vendor/stimulus.min.js +5 -2588
- data/app/assets/javascripts/fenetre.js +12 -8
- data/app/assets/javascripts/stimulus/stimulus.min.js +5 -2588
- data/app/assets/stylesheets/fenetre/video_chat.css +218 -157
- data/app/channels/fenetre/video_chat_channel.rb +69 -111
- data/app/controllers/fenetre/status_controller.rb +13 -0
- data/app/helpers/fenetre/video_chat_helper.rb +54 -32
- data/app/javascript/controllers/fenetre/video_chat_controller.js +1 -662
- data/config/importmap/fenetre.rb +4 -0
- data/config/importmap.rb +7 -21
- data/config/routes.rb +6 -0
- data/lib/fenetre/engine.rb +4 -167
- data/lib/fenetre/parallel_formatter.rb +25 -0
- data/lib/fenetre/presence.rb +34 -0
- data/lib/fenetre/version.rb +1 -1
- data/lib/fenetre.rb +40 -2
- metadata +25 -42
- data/Rakefile +0 -33
- data/app/javascript/test/test_runner.js +0 -15
- data/app/javascript/test/video_chat_controller_test.js +0 -215
- data/lib/fenetre/video_chat_channel.rb +0 -36
- data/lib/tasks/javascript_test.rake +0 -69
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Application, Controller } from "@hotwired/stimulus"
|
|
4
|
-
import VideoChatController from "controllers/fenetre/video_chat_controller"
|
|
1
|
+
import { Application } from "@hotwired/stimulus"
|
|
2
|
+
import VideoChatController from "fenetre/controllers/video_chat_controller"
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
window.Stimulus = window.Stimulus || Application.start()
|
|
4
|
+
export { VideoChatController }
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
export function register(application) {
|
|
7
|
+
application.register("fenetre--video-chat", VideoChatController)
|
|
8
|
+
return application
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Reuse the host's application when available. Import this module once from
|
|
12
|
+
// application.js, after the host's Stimulus setup.
|
|
13
|
+
export const application = register(window.Stimulus?.application || window.Stimulus || Application.start())
|
|
14
|
+
window.Stimulus ||= application
|