atome 0.5.7.5.3 → 0.5.7.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +4 -4
- data/lib/atome/extensions/atome.rb +1 -1
- data/lib/atome/genesis/sparkle.rb +1 -1
- data/lib/atome/version.rb +1 -1
- data/lib/molecules/intuition/utilities.rb +8 -7
- data/vendor/assets/application/examples/allow_copy.rb +1 -1
- data/vendor/assets/application/examples/allow_system_right_click.rb +1 -2
- data/vendor/assets/src-tauri/.gitignore +1 -0
- data/vendor/assets/src-tauri/Cargo.toml +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfe68326ce8511009dd9226874a9478fed337b58b33914588569477c53fc5f60
|
4
|
+
data.tar.gz: f4c496a1eed0f0ca66a8a4cc742e83c962578fa6dd23f58af4a2dda0cf658d0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22530cfa45962c787536df528f4609511868ecd99994b9dd1fe9f83ceca55517d69a04ce86a0cb92663c030cab0693161b3940f20a6b220aaeb3acc907976dfa
|
7
|
+
data.tar.gz: cb0f7b157205cd44f2cb254f0b3808908f740268f9dba7b8dd34323399cee13ceb9ab5387992b2816df3f8492c968fc93cbfd2d55965ac5e0bfc3cb21265b653
|
data/Gemfile
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
source
|
3
|
+
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in atome.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem
|
8
|
+
gem 'rake', '~> 13.0'
|
9
9
|
|
10
10
|
gem 'faye-websocket'
|
11
11
|
|
12
|
-
gem
|
12
|
+
gem 'minitest', '~> 5.0'
|
13
13
|
|
14
14
|
gem 'rubocop', group: 'development', require: false
|
15
|
-
|
15
|
+
|
@@ -569,7 +569,7 @@ JS
|
|
569
569
|
# convert any foreign object (think HTML) to a pseudo atome objet , that embed foreign objet
|
570
570
|
end
|
571
571
|
|
572
|
-
def
|
572
|
+
def allow_right_touch(allow)
|
573
573
|
if allow
|
574
574
|
JS.eval('document.removeEventListener("contextmenu", window.preventDefaultAction);')
|
575
575
|
else
|
@@ -202,7 +202,7 @@ end
|
|
202
202
|
|
203
203
|
# Universe.allow_localstorage = true # to stop data to be stored in localstorage
|
204
204
|
# Universe.allow_sync= false # to stop data to be sync on server
|
205
|
-
|
205
|
+
allow_right_touch(false) # this lock the system right click in web view
|
206
206
|
# add a few default font
|
207
207
|
A.add_text_visual({ path: 'Roboto', name: 'Roboto-Bold' })
|
208
208
|
A.add_text_visual({ path: 'Roboto', name: 'Roboto-Thin' })
|
data/lib/atome/version.rb
CHANGED
@@ -151,25 +151,26 @@ class Atome
|
|
151
151
|
end
|
152
152
|
|
153
153
|
def drop_down(params, &code)
|
154
|
+
|
155
|
+
|
154
156
|
data_f = params.delete(:data)
|
155
157
|
text_f = params.delete(:text) || {component: {size: 12}, color: :lightgray}
|
156
158
|
margin = params.delete(:margin) || 6
|
157
159
|
default_params = { width: 150,
|
158
160
|
height: 25,
|
161
|
+
smooth:3,
|
162
|
+
shadow: { blur: 12, alpha: 0.3,left: 0, top: 0 }
|
159
163
|
}
|
160
164
|
params=default_params.merge(params)
|
161
|
-
|
165
|
+
|
166
|
+
b=grab(:view).box(params.merge({depth: 33333, left: to_px(:left), top: to_px(:top)}))
|
162
167
|
item_height=(params[:height]+margin)
|
163
|
-
if text_f[:component][:size] > item_height
|
164
|
-
item_height = text_f[:component][:size]+margin*2
|
165
|
-
end
|
168
|
+
item_height = text_f[:component][:size]+margin*2 if text_f[:component][:size] > item_height
|
166
169
|
b.height(data_f.length*item_height)
|
167
170
|
temp_width=0
|
168
171
|
data_f.each_with_index do |label, index|
|
169
172
|
item_f= b.text(text_f.merge({ left: margin, data: label, position: :absolute, top: item_height * index + margin }))
|
170
|
-
if item_f.to_px(:width) > temp_width
|
171
|
-
temp_width=item_f.to_px(:width)
|
172
|
-
end
|
173
|
+
temp_width=item_f.to_px(:width) if item_f.to_px(:width) > temp_width
|
173
174
|
item_f.touch(:down) do
|
174
175
|
code.call(label)
|
175
176
|
b.delete(true)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
[package]
|
2
2
|
name = "atome"
|
3
3
|
version = "0.0.0"
|
4
|
-
description = "
|
4
|
+
description = "atome"
|
5
5
|
authors = ["you"]
|
6
6
|
license = ""
|
7
7
|
repository = ""
|
@@ -16,7 +16,7 @@ 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.
|
19
|
+
tauri = {version = "1.6", features = ["api-all"] }
|
20
20
|
|
21
21
|
[features]
|
22
22
|
# by default Tauri runs in production mode
|
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
|
+
version: 0.5.7.5.4
|
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-
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|