rollout-ui 0.7.4 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b77d43c42fd6d0bf55f0c82f2b657be128cdc4f659ce9ba3ca8aec362b3d518
4
- data.tar.gz: f13d17d8f94679acc00aaf68fad4e80bb58f2da8d2f3680374c5b5c231497f4d
3
+ metadata.gz: abb4b1f85851c0127d87fcb8c428fd704d40b1e4c7b976ce8474d90eb449ab2e
4
+ data.tar.gz: e9bf31f2540a4811fd5aa4df4b9eb19a0cb77c88955a72d34694703359adc222
5
5
  SHA512:
6
- metadata.gz: 6c91539ecf6b82d09ae256ca0e3882ea2bd5c247be8b540607c9dd07786ea0349892b58f029967a9d2b3954231524fd361410e3a0c568f846ede38c96f9e1552
7
- data.tar.gz: 027723401f76cf51ad03fd5544d58450527c35e53ea0130ae6f8ff9948634724531940c0dc39db52accb7535d18f5ccd2f9c3dd08d218b30c704694ce722b8b7
6
+ metadata.gz: 9b7ca3dae1414eced5038c1e3bdaf73e2e6f870f2164fab88cad497d98d42fcf863c70c286df9f7b9058cd36020f3fcf4106e50c6d44ed0c997f9410740271d5
7
+ data.tar.gz: 0b3ce4474df18ec347fff573d6a112c848cbe4d6c0e678ec773206385eecb0f45ef116a0fde1f02760c071912e93db42a56a47b528f502e59149858aa88e7e42
data/.mise.toml ADDED
@@ -0,0 +1,2 @@
1
+ [tools]
2
+ ruby = "3.4.7"
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.4.7
data/README.md CHANGED
@@ -92,18 +92,32 @@ end
92
92
 
93
93
  Bug reports and pull requests are welcome on GitHub at https://github.com/fetlife/rollout-ui.
94
94
 
95
- ### Development
95
+ ### Development Setup
96
96
 
97
- To run this project for development in isolation:
97
+ This project uses [mise](https://mise.jdx.dev/) for managing development tools.
98
+
99
+ Install mise if you haven't already:
100
+
101
+ ```sh
102
+ curl https://mise.run | sh
103
+ ```
104
+
105
+ Then install the required tools and dependencies:
98
106
 
99
107
  ```sh
108
+ mise install
100
109
  bundle install
110
+ ```
111
+
112
+ To run this project for development in isolation:
113
+
114
+ ```sh
101
115
  bundle exec rerun rackup
102
116
  ```
103
117
 
104
118
  And visit [http://localhost:9292/](http://localhost:9292/).
105
119
 
106
- Alternatively you can also configure which Redis with:
120
+ Alternatively, you can also configure which Redis with:
107
121
 
108
122
  ```sh
109
123
  REDIS_HOST=localhost REDIS_PORT=6379 REDIS_DB=10 bundle exec rerun rackup
@@ -1,5 +1,5 @@
1
1
  class Rollout
2
2
  module UI
3
- VERSION = "0.7.4"
3
+ VERSION = "0.8.0"
4
4
  end
5
5
  end
@@ -3,15 +3,62 @@ html
3
3
  head
4
4
  title Rollout UI
5
5
  meta name='viewport' content='width=device-width initial-scale=1'
6
+ meta name='color-scheme' content='light dark'
6
7
  link rel='stylesheet' href=stylesheet_path('tailwind.min')
8
+ style
9
+ | :root { color-scheme: light; }
10
+ | :root.dark { color-scheme: dark; }
11
+ | body { transition: background-color 0.2s, color 0.2s; }
12
+ | .dark { background-color: #1a1a1a; color: #e5e5e5; }
13
+ | .dark .text-gray-700 { color: #d1d1d1; }
14
+ | .dark .text-gray-600 { color: #b8b8b8; }
15
+ | .dark .text-gray-500 { color: #9ca3af; }
16
+ | .dark .text-gray-400 { color: #6b7280; }
17
+ | .dark .bg-gray-100 { background-color: #2a2a2a; }
18
+ | .dark .bg-gray-200 { background-color: #333333; }
19
+ | .dark .bg-gray-300 { background-color: #404040; }
20
+ | .dark .border-gray-200 { border-color: #404040; }
21
+ | .dark .hover\:bg-gray-200:hover { background-color: #3a3a3a; }
22
+ | .dark .text-blue-600 { color: #60a5fa; }
23
+ | .dark .hover\:text-blue-700:hover { color: #93c5fd; }
7
24
 
8
25
  body
9
26
  / Addresses https://stackoverflow.com/questions/21147149/flash-of-unstyled-content-fouc-in-firefox-only-is-ff-slow-renderer
10
27
  script 0
11
28
 
29
+ script
30
+ | (function() {
31
+ | const theme = localStorage.getItem('theme') || 'system';
32
+ | function applyTheme(t) {
33
+ | const root = document.documentElement;
34
+ | if (t === 'dark' || (t === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
35
+ | root.classList.add('dark');
36
+ | } else {
37
+ | root.classList.remove('dark');
38
+ | }
39
+ | }
40
+ | applyTheme(theme);
41
+ | window.addEventListener('DOMContentLoaded', function() {
42
+ | const btn = document.getElementById('theme-toggle');
43
+ | btn.textContent = theme;
44
+ | btn.addEventListener('click', function() {
45
+ | const current = localStorage.getItem('theme') || 'system';
46
+ | const next = current === 'light' ? 'dark' : current === 'dark' ? 'system' : 'light';
47
+ | localStorage.setItem('theme', next);
48
+ | applyTheme(next);
49
+ | btn.textContent = next;
50
+ | });
51
+ | window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function() {
52
+ | if (localStorage.getItem('theme') === 'system') applyTheme('system');
53
+ | });
54
+ | });
55
+ | })();
56
+
12
57
  .container.mx-auto.font-mono.text-gray-700.px-5.pb-20
13
- h1.font-light.text-4xl.text-gray-600.pt-20
14
- a href=index_path class='hover:text-blue-700'
15
- ' Rollout
58
+ .flex.items-center.pt-20
59
+ h1.font-light.text-4xl.text-gray-600.flex-auto
60
+ a href=index_path class='hover:text-blue-700'
61
+ ' Rollout
62
+ button#theme-toggle.text-sm.text-gray-600.p-2.bg-gray-100.rounded-sm.transition-colors.duration-150(class='hover:bg-gray-200') system
16
63
 
17
64
  == yield
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rollout-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FetLife
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-08-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rollout
@@ -207,6 +206,7 @@ files:
207
206
  - ".github/workflows/release.yml"
208
207
  - ".github/workflows/test.yml"
209
208
  - ".gitignore"
209
+ - ".mise.toml"
210
210
  - ".rspec"
211
211
  - ".ruby-version"
212
212
  - Gemfile
@@ -234,7 +234,6 @@ homepage: https://github.com/fetlife/rollout-ui
234
234
  licenses:
235
235
  - MIT
236
236
  metadata: {}
237
- post_install_message:
238
237
  rdoc_options: []
239
238
  require_paths:
240
239
  - lib
@@ -249,8 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
248
  - !ruby/object:Gem::Version
250
249
  version: '0'
251
250
  requirements: []
252
- rubygems_version: 3.5.3
253
- signing_key:
251
+ rubygems_version: 3.6.9
254
252
  specification_version: 4
255
253
  summary: Minimalist web ui for the rollout gem
256
254
  test_files: []