houseaccount 0.6.0 → 0.7.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 +2 -0
- data/README.md +10 -5
- data/app/views/layouts/houseaccount.html.erb +1 -1
- data/lib/houseaccount/helpers/heads.rb +7 -6
- data/lib/houseaccount/version.rb +1 -1
- data/public/index.html +2 -2
- data/public/{v0.6.0 → v0.7.0}/css/houseaccount.css +1 -1
- metadata +19 -19
- /data/public/{v0.6.0 → v0.7.0}/font/bootstrap-icons-6LILWPE2.woff2 +0 -0
- /data/public/{v0.6.0 → v0.7.0}/font/quicksand-500-latin-QHYSRFVK.woff2 +0 -0
- /data/public/{v0.6.0 → v0.7.0}/font/quicksand-500-latin-ext-QZ4PXVHB.woff2 +0 -0
- /data/public/{v0.6.0 → v0.7.0}/font/quicksand-500-latin-ext.woff2 +0 -0
- /data/public/{v0.6.0 → v0.7.0}/font/quicksand-500-latin.woff2 +0 -0
- /data/public/{v0.6.0 → v0.7.0}/font/quicksand-500-vietnamese-RRA5CUQB.woff2 +0 -0
- /data/public/{v0.6.0 → v0.7.0}/font/quicksand-500-vietnamese.woff2 +0 -0
- /data/public/{v0.6.0 → v0.7.0}/js/houseaccount.js +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/bootstrap.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/dawn.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/dracula.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/gruvbox.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/monokai.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/nord.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/one_dark.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/solarized.css +0 -0
- /data/public/{v0.6.0 → v0.7.0}/theme/tokyo_night.css +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ff5237b22740dc32c8e7c3bb833aa6ca51e3557e103eb0b628653658564d2fa
|
|
4
|
+
data.tar.gz: 9ecc04823998049cd0c4e60a2e8c402250e1b651c04cfb4df14385444758478d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ccec1d767a683d8df0be2c1c86ea8f720d608e52ba897531ffcf5192195c9dd4be8aeab7e834b5cdc12346b5aaf31fadd2881fcca0715200b5c751b1c300da27
|
|
7
|
+
data.tar.gz: 1fa4898055b78bf0dbfb4d7a54ade28eaee556836c1f583fafc7b44e51543d9e5a1de6c230cdd7bbffb3ccbd9652ea7a2a54ff73844a229d88be58507e620e80
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -20,10 +20,10 @@ gem install houseaccount
|
|
|
20
20
|
|
|
21
21
|
```ruby
|
|
22
22
|
# Gemfile
|
|
23
|
-
gem 'houseaccount', '~> 0.
|
|
23
|
+
gem 'houseaccount', '~> 0.7.0'
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
`~> 0.
|
|
26
|
+
`~> 0.7.0` stops short of `0.8`, since below 1.0 a minor release may break whatever it likes.
|
|
27
27
|
Rails 8.1 and Ruby 3.2 are the minimum.
|
|
28
28
|
|
|
29
29
|
A page takes the gem's layout, and wears the same head:
|
|
@@ -60,7 +60,7 @@ which Pages redirects away from.
|
|
|
60
60
|
|
|
61
61
|
With the gem in the bundle an app serves `/css/houseaccount.css`, `/js/houseaccount.js`,
|
|
62
62
|
`/theme/*`, `/font/*`, `/logo/*` and `/favicon/*` itself — and its own version's copy under
|
|
63
|
-
`/v0.
|
|
63
|
+
`/v0.7.0/`, which is what the head helper links, cached for a year — answers a 400, 404, 406, 422 or 500
|
|
64
64
|
with the house's own page, and has these helpers in every view:
|
|
65
65
|
|
|
66
66
|
```erb
|
|
@@ -140,6 +140,8 @@ nests on the gem's layout, giving the page as `content_for :content` and renderi
|
|
|
140
140
|
as a template:
|
|
141
141
|
|
|
142
142
|
```erb
|
|
143
|
+
<% content_for :logo, 'houseaccount' %>
|
|
144
|
+
|
|
143
145
|
<% content_for :content do %>
|
|
144
146
|
<%= flow logo: root_path, footer: [button_to('Sign out', session_path, method: :delete, class: 'btn btn-link')] do %>
|
|
145
147
|
<%= yield %>
|
|
@@ -149,6 +151,9 @@ as a template:
|
|
|
149
151
|
<%= render template: 'layouts/houseaccount' %>
|
|
150
152
|
```
|
|
151
153
|
|
|
154
|
+
`content_for :logo` is which of the family's marks the tab wears, for a page a customer reads
|
|
155
|
+
rather than the app's own people: unsaid, it is this app's, by its name.
|
|
156
|
+
|
|
152
157
|
The words are the view's, said in `content_for`: `:title` is the `h1`, `:subtitle` the line
|
|
153
158
|
under it, drawn only where there is one, and `:width` how wide the card is, a CSS length that
|
|
154
159
|
is `30rem` unless said — a chat's page says `75rem`. What the layout knows goes in the call:
|
|
@@ -200,8 +205,8 @@ Those follow the latest release. Every release is also kept whole under its own
|
|
|
200
205
|
forever and cached for a year, for a page that would rather move on its own terms:
|
|
201
206
|
|
|
202
207
|
```html
|
|
203
|
-
<link rel='stylesheet' href='https://design.houseaccount.com/v0.
|
|
204
|
-
<script type='module' src='https://design.houseaccount.com/v0.
|
|
208
|
+
<link rel='stylesheet' href='https://design.houseaccount.com/v0.7.0/css/houseaccount.css'>
|
|
209
|
+
<script type='module' src='https://design.houseaccount.com/v0.7.0/js/houseaccount.js'></script>
|
|
205
210
|
```
|
|
206
211
|
|
|
207
212
|
A host with a Content Security Policy allows that origin for `style-src`, `script-src` and
|
|
@@ -6,11 +6,12 @@ module HouseAccount
|
|
|
6
6
|
# by two: `<html>`, then `<head>`, then these.
|
|
7
7
|
INDENT = "\n "
|
|
8
8
|
|
|
9
|
-
# The stylesheet and the script every page needs, and the icons
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
|
|
9
|
+
# The stylesheet and the script every page needs, and the icons `app` is known by —
|
|
10
|
+
# this app unless said, since a page a customer reads may wear the house's mark rather
|
|
11
|
+
# than the app's. Both files at this version's own path, which never changes and so is
|
|
12
|
+
# kept for a year. A page refresh Turbo is sent morphs the page in place and keeps the
|
|
13
|
+
# scroll, so an answer landing in a thread leaves the reader where they were.
|
|
14
|
+
def houseaccount_head_tags(app = HouseAccount.app)
|
|
14
15
|
safe_join [
|
|
15
16
|
tag.meta(name: 'viewport', content: 'width=device-width, initial-scale=1'),
|
|
16
17
|
tag.meta(name: 'color-scheme', content: 'light dark'),
|
|
@@ -18,7 +19,7 @@ module HouseAccount
|
|
|
18
19
|
tag.meta(name: 'turbo-refresh-scroll', content: 'preserve'),
|
|
19
20
|
tag.link(rel: 'stylesheet', href: "/v#{VERSION}/css/houseaccount.css"),
|
|
20
21
|
tag.script('', type: 'module', src: "/v#{VERSION}/js/houseaccount.js"),
|
|
21
|
-
houseaccount_icons,
|
|
22
|
+
houseaccount_icons(app),
|
|
22
23
|
], INDENT
|
|
23
24
|
end
|
|
24
25
|
|
data/lib/houseaccount/version.rb
CHANGED
data/public/index.html
CHANGED
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
</div>
|
|
67
67
|
<div class='col-12'>
|
|
68
68
|
<div class='card p-3'>
|
|
69
|
-
<strong>Pinned to a version — the latest is 0.
|
|
70
|
-
<span class='design-url'>https://design.houseaccount.com/v0.
|
|
69
|
+
<strong>Pinned to a version — the latest is 0.7.0</strong>
|
|
70
|
+
<span class='design-url'>https://design.houseaccount.com/v0.7.0/css/houseaccount.css · /v0.7.0/js/houseaccount.js · /v0.7.0/theme/nord.css</span>
|
|
71
71
|
<span class='small fg-2 mt-1'>Every release stays at its own prefix forever, whole and cached for a year, for a page that moves on its own terms. The unversioned paths follow the latest.</span>
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|