fuji_admin 0.1.0 → 0.1.1
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/README.md +18 -21
- data/app/assets/stylesheets/fuji_admin/components/_palette_switcher.scss +1 -1
- data/lib/fuji_admin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccce6482f20c02fb0e013ae881950edcad26f73b103598af0d4f50dc68c5e4ad
|
|
4
|
+
data.tar.gz: 61dd4630982524c9d2fe94ee648a94a4530648761c271b7831bd3b3089a3baa7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 484a5eaba8e30df55ac28e7afc7db3d19c5115759dec579f3d8d11149a18ad65ae4d4928ba14f33fde053729e406fe0cd9698b53d5f6f1e9a0032e088ea758d5
|
|
7
|
+
data.tar.gz: fd2d4c1278dbb0643a734160e7efe9f6097de7cfeadd8d2549990ff093fb74ad7d717add8d91ce2c7a5f54f95870d87a4b1fe1eecbba9a8150fcaf52c0147fb0
|
data/README.md
CHANGED
|
@@ -4,10 +4,6 @@ A responsive [ActiveAdmin](https://github.com/activeadmin/activeadmin) theme.
|
|
|
4
4
|
Clean card-based layout, slide-in filter drawer, float-label inputs,
|
|
5
5
|
row-action dropdowns, and a live palette switcher with 30 built-in palettes.
|
|
6
6
|
|
|
7
|
-
Inspired by [arctic_admin](https://github.com/cprodhomme/arctic_admin) (SCSS
|
|
8
|
-
structure) and [PrimeReact Verona](https://verona.primereact.org/) (visual
|
|
9
|
-
language).
|
|
10
|
-
|
|
11
7
|
## Features
|
|
12
8
|
|
|
13
9
|
- **Responsive layout** — fixed header + sidebar nav at `lg+`, auto-injected
|
|
@@ -35,12 +31,10 @@ language).
|
|
|
35
31
|
|
|
36
32
|
## Installation
|
|
37
33
|
|
|
38
|
-
### From GitHub (recommended)
|
|
39
|
-
|
|
40
34
|
In your host app's `Gemfile`:
|
|
41
35
|
|
|
42
36
|
```ruby
|
|
43
|
-
gem "fuji_admin",
|
|
37
|
+
gem "fuji_admin", "~> 0.1"
|
|
44
38
|
```
|
|
45
39
|
|
|
46
40
|
Then:
|
|
@@ -49,9 +43,6 @@ Then:
|
|
|
49
43
|
bundle install
|
|
50
44
|
```
|
|
51
45
|
|
|
52
|
-
The Gemfile.lock pins the exact commit SHA, so CI / Docker / Kamal builds
|
|
53
|
-
are reproducible without needing to publish to RubyGems.
|
|
54
|
-
|
|
55
46
|
### Asset imports
|
|
56
47
|
|
|
57
48
|
In `app/assets/stylesheets/active_admin.scss`:
|
|
@@ -96,15 +87,28 @@ Clone both repos side-by-side:
|
|
|
96
87
|
└── my_admin_app/
|
|
97
88
|
```
|
|
98
89
|
|
|
99
|
-
|
|
100
|
-
|
|
90
|
+
Bundler's `bundle config local.<gem>` override only works when the host's
|
|
91
|
+
Gemfile references a git source, not a published RubyGem. So for live local
|
|
92
|
+
editing, point the host's Gemfile at the GitHub source temporarily:
|
|
93
|
+
|
|
94
|
+
```ruby
|
|
95
|
+
# Host app Gemfile — during fuji_admin development
|
|
96
|
+
gem "fuji_admin", github: "BarbaricCorgi/fuji_admin"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Then tell Bundler to resolve it against your local checkout:
|
|
101
100
|
|
|
102
101
|
```bash
|
|
103
102
|
bundle config local.fuji_admin ~/development/fuji_admin
|
|
104
103
|
```
|
|
105
104
|
|
|
106
|
-
This is a per-machine
|
|
107
|
-
|
|
105
|
+
This is a per-machine setting stored in `~/.bundle/config` — CI / Docker /
|
|
106
|
+
Kamal never see it and fall back to the github source. Edits in
|
|
107
|
+
`~/development/fuji_admin` reflect in the host app immediately.
|
|
108
|
+
|
|
109
|
+
When you're ready to ship, flip the Gemfile back to
|
|
110
|
+
`gem "fuji_admin", "~> 0.1"`, publish a new version (`gem build && gem push`),
|
|
111
|
+
and run `bundle update fuji_admin` in the host.
|
|
108
112
|
|
|
109
113
|
## Customising palettes
|
|
110
114
|
|
|
@@ -131,13 +135,6 @@ Palettes without a `theme` block get auto-derived surfaces + text by mixing
|
|
|
131
135
|
the `primary` with white / black at runtime via `color-mix()`, so every
|
|
132
136
|
palette reads as a coherent mini-theme.
|
|
133
137
|
|
|
134
|
-
## Credits
|
|
135
|
-
|
|
136
|
-
- [arctic_admin](https://github.com/cprodhomme/arctic_admin) — SCSS
|
|
137
|
-
structure (variables → mixins → layouts → components → pages).
|
|
138
|
-
- [PrimeReact Verona](https://verona.primereact.org/) — visual language
|
|
139
|
-
(layout proportions, rounded cards, float labels, filter chips).
|
|
140
|
-
|
|
141
138
|
## License
|
|
142
139
|
|
|
143
140
|
MIT — see [LICENSE.txt](LICENSE.txt).
|
|
@@ -504,7 +504,7 @@ body.active_admin #sidebar .sidebar_section.panel:not(#filters_sidebar_section)
|
|
|
504
504
|
right: 0;
|
|
505
505
|
bottom: calc(100% + #{$space-2});
|
|
506
506
|
width: 320px;
|
|
507
|
-
max-height:
|
|
507
|
+
max-height: 70vh; // SassC rejects `min(70vh, 560px)` even when interpolated
|
|
508
508
|
overflow-y: auto;
|
|
509
509
|
background-color: $surface-0;
|
|
510
510
|
border: 1px solid $surface-border;
|
data/lib/fuji_admin/version.rb
CHANGED