bh 6.2.0 → 6.4.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/CHANGELOG.md +29 -0
- data/README.md +30 -14
- data/app/stylesheets/bh/chat.css +27 -0
- data/app/stylesheets/theme/bootstrap.css +10 -0
- data/app/stylesheets/theme/dawn.css +189 -0
- data/app/stylesheets/theme/dracula.css +189 -0
- data/app/stylesheets/theme/gruvbox.css +189 -0
- data/app/stylesheets/theme/monokai.css +190 -0
- data/app/stylesheets/theme/nord.css +189 -0
- data/app/stylesheets/theme/one_dark.css +189 -0
- data/app/stylesheets/theme/solarized.css +188 -0
- data/app/stylesheets/theme/tokyo_night.css +189 -0
- data/build.mjs +6 -0
- data/config/locales/bh.en.yml +1 -0
- data/lib/bh/helpers/chats.rb +32 -5
- data/lib/bh/message.rb +10 -7
- data/lib/bh/version.rb +1 -1
- data/package.json +2 -14
- data/public/bh/css/bh.css +1 -1
- data/public/bh/theme/bootstrap.css +10 -0
- data/public/bh/theme/dawn.css +189 -0
- data/public/bh/theme/dracula.css +189 -0
- data/public/bh/theme/gruvbox.css +189 -0
- data/public/bh/theme/monokai.css +190 -0
- data/public/bh/theme/nord.css +189 -0
- data/public/bh/theme/one_dark.css +189 -0
- data/public/bh/theme/solarized.css +188 -0
- data/public/bh/theme/tokyo_night.css +189 -0
- metadata +19 -1
data/lib/bh/message.rb
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
module Bh
|
|
2
2
|
# One message of a chat, as `chat_with` draws it: which `side` its bubble is on (`:left`
|
|
3
|
-
# for the other party, `:right` for the reader), its `text`,
|
|
4
|
-
# was said (`at`), how its `delivery`
|
|
5
|
-
# `:undelivered` or nil) and what it `cost` in
|
|
6
|
-
# answering the same
|
|
7
|
-
# model to hang them on. A message with
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
# for the other party, `:right` for the reader), its `text`, the `photos` it carries as
|
|
4
|
+
# a list of addresses, who the `sender` was, when it was said (`at`), how its `delivery`
|
|
5
|
+
# went (`:delivered`, `:sent`, `:failed`, `:undelivered` or nil) and what it `cost` in
|
|
6
|
+
# dollars, where anything did. Any object answering the same seven is a message too;
|
|
7
|
+
# this is for a host that has the facts and no model to hang them on. A message with
|
|
8
|
+
# neither words nor pictures yet is drawn as being typed.
|
|
9
|
+
Message = Data.define :side, :text, :photos, :sender, :at, :delivery, :cost do
|
|
10
|
+
def initialize(side:, text: nil, photos: [], sender: nil, at: nil, delivery: nil, cost: nil)
|
|
11
|
+
super
|
|
12
|
+
end
|
|
10
13
|
end
|
|
11
14
|
end
|
data/lib/bh/version.rb
CHANGED
data/package.json
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bh6",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
|
+
"private": true,
|
|
4
5
|
"description": "Bootstrap 6 in a Rails app: the form builder that dresses every field, the components Bootstrap ships behavior for and no markup, and the Stimulus controllers behind them.",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"repository": "github:claudiob/bh",
|
|
8
|
-
"files": [
|
|
9
|
-
"app/javascript",
|
|
10
|
-
"app/stylesheets",
|
|
11
|
-
"public/bh",
|
|
12
|
-
"vendor",
|
|
13
|
-
"MIT-LICENSE"
|
|
14
|
-
],
|
|
15
|
-
"exports": {
|
|
16
|
-
".": "./app/javascript/bh.js",
|
|
17
|
-
"./controllers/*": "./app/javascript/bh/*",
|
|
18
|
-
"./bh.css": "./app/stylesheets/bh.css",
|
|
19
|
-
"./bootstrap": "./vendor/bootstrap.bundle.min.js"
|
|
20
|
-
},
|
|
21
9
|
"scripts": {
|
|
22
10
|
"build": "node build.mjs"
|
|
23
11
|
},
|