turbo_boost-commands 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of turbo_boost-commands might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +54 -23
- data/app/assets/builds/@turbo-boost/commands.js +3 -3
- data/app/assets/builds/@turbo-boost/commands.js.map +3 -3
- data/app/javascript/index.js +2 -2
- data/app/javascript/schema.js +1 -1
- data/fly.toml +4 -2
- data/lib/turbo_boost/commands/runner.rb +1 -0
- data/lib/turbo_boost/commands/version.rb +1 -1
- data/package.json +2 -2
- data/tags +681 -674
- data/turbo_boost-commands.gemspec +1 -1
- data/yarn.lock +4 -4
- metadata +4 -4
data/app/javascript/index.js
CHANGED
@@ -16,7 +16,7 @@ import uuids from './uuids'
|
|
16
16
|
function buildCommandPayload (id, element) {
|
17
17
|
return {
|
18
18
|
id, // uniquely identifies the command
|
19
|
-
name: element.
|
19
|
+
name: element.getAttribute(schema.commandAttribute),
|
20
20
|
elementId: element.id.length > 0 ? element.id : null,
|
21
21
|
elementAttributes: elements.buildAttributePayload(element),
|
22
22
|
startedAt: new Date().getTime()
|
@@ -32,7 +32,7 @@ function invokeCommand (event) {
|
|
32
32
|
if (!element) return
|
33
33
|
if (!delegates.isRegisteredForElement(event.type, element)) return
|
34
34
|
|
35
|
-
const commandId = `command-${uuids.v4()}`
|
35
|
+
const commandId = `turbo-command-${uuids.v4()}`
|
36
36
|
let driver = drivers.find(element)
|
37
37
|
let payload = {
|
38
38
|
...buildCommandPayload(commandId, element),
|
data/app/javascript/schema.js
CHANGED
data/fly.toml
CHANGED
@@ -1,11 +1,13 @@
|
|
1
|
-
# fly.toml file generated for
|
1
|
+
# fly.toml file generated for turboboost-commands on 2022-12-23T12:55:35-07:00
|
2
2
|
|
3
|
-
app = "
|
3
|
+
app = "turboboost-commands"
|
4
4
|
kill_signal = "SIGINT"
|
5
5
|
kill_timeout = 5
|
6
6
|
processes = []
|
7
7
|
|
8
8
|
[env]
|
9
|
+
# Must match the proxy config in the smallteam-tech/proxy repo
|
10
|
+
RAILS_RELATIVE_URL_ROOT = "/@turbo-boost/commands"
|
9
11
|
|
10
12
|
[experimental]
|
11
13
|
allowed_public_ports = []
|
data/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@turbo-boost/commands",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.1",
|
4
4
|
"description": "Commands to help you build robust reactive applications with Rails & Hotwire.",
|
5
5
|
"main": "app/javascript/index.js",
|
6
6
|
"repository": "https://github.com/hopsoft/turbo_boost-commands",
|
7
7
|
"author": "Nate Hopkins (hopsoft) <natehop@gmail.com>",
|
8
8
|
"license": "MIT",
|
9
9
|
"dependencies": {
|
10
|
-
"@turbo-boost/streams": ">= 0.0.
|
10
|
+
"@turbo-boost/streams": ">= 0.0.2"
|
11
11
|
},
|
12
12
|
"peerDependencies": {
|
13
13
|
"@hotwired/turbo-rails": ">= 7.2.0"
|