arctic_admin 4.0.0.alpha → 4.0.1.alpha
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ac5204d1d381efd50fab0fd34bfbe1ea01ac93f99498695e6792223b17fe72e
|
4
|
+
data.tar.gz: 66c5c5b151dd6592c35059a0b029923cd108a1f9630d03b8220a84dda91486e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e588e7530142d7dd7d81bb2049e8a6ac5519545578184c4a2d595a8c0505462b8a2dd65f355af9cc5c748a780e95fd0f6b4c63b25bb3ad2069aa06feecad7e5
|
7
|
+
data.tar.gz: 76540e14071b7f9a75739aee25e1a9665b98ea549a79689346f53b1d73634a3414f9c696dffc06095dba55614f6627bc54cdafa06b59a329a3ce667d2aa77ff0
|
data/Readme.md
CHANGED
@@ -14,6 +14,8 @@ Simple theme for ActiveAdmin :ok_hand:
|
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
17
|
+
>**⚠️ If you are using webpacker (Standard with Rails 6) look below**
|
18
|
+
|
17
19
|
- Add this to your Gemfile:
|
18
20
|
|
19
21
|
```ruby
|
@@ -79,10 +81,10 @@ In your `active_admin.js`, include the js file:
|
|
79
81
|
|
80
82
|
### 1 - Preparation
|
81
83
|
|
82
|
-
Install the assets
|
84
|
+
Install the needed assets with npm or yarn:
|
83
85
|
|
84
86
|
```
|
85
|
-
yarn add arctic_admin
|
87
|
+
yarn add arctic_admin @fortawesome/fontawesome-free
|
86
88
|
```
|
87
89
|
|
88
90
|
|
@@ -103,26 +105,24 @@ Remove:
|
|
103
105
|
|
104
106
|
### 3 - JS
|
105
107
|
|
106
|
-
|
108
|
+
Search for `app/javascript/packs/active_admin.js` in your rails project and add the following lines:
|
107
109
|
|
108
110
|
```js
|
111
|
+
import "@fortawesome/fontawesome-free/css/all.css";
|
109
112
|
import 'arctic_admin'
|
110
113
|
```
|
111
114
|
|
112
115
|
|
113
116
|
### Customization
|
114
117
|
|
115
|
-
For this, you need to use
|
116
|
-
|
117
|
-
You can even change basic color of the theme by placing some other variables:
|
118
|
+
For this, you need to use SASS to customize the theming.
|
118
119
|
|
119
|
-
|
120
|
-
`active_admin.scss` file:
|
120
|
+
Right now you can change the primary color of the theme by placing the following variable in your `active_admin.scss` file:
|
121
121
|
|
122
122
|
```scss
|
123
123
|
$primary-color: #2dbb43;
|
124
124
|
|
125
|
-
@import "arctic_admin/
|
125
|
+
@import "~arctic_admin/src/scss/main";
|
126
126
|
```
|
127
127
|
|
128
128
|
If you use the
|
@@ -132,7 +132,7 @@ add this to your `active_admin.sass` file:
|
|
132
132
|
```sass
|
133
133
|
$primary-color: #2dbb43
|
134
134
|
|
135
|
-
@import arctic_admin/
|
135
|
+
@import ~arctic_admin/src/scss/main
|
136
136
|
```
|
137
137
|
|
138
138
|
Then restart your webserver if it was previously running.
|
@@ -39,12 +39,14 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
39
39
|
})
|
40
40
|
|
41
41
|
// toggle of nested menu items
|
42
|
-
const
|
43
|
-
|
44
|
-
nestedMenuItem
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
42
|
+
const nestedMenuItems = document.querySelectorAll('#tabs .has_nested')
|
43
|
+
nestedMenuItems.forEach(
|
44
|
+
(nestedMenuItem) => {
|
45
|
+
nestedMenuItem.addEventListener('click', (e) => {
|
46
|
+
e.stopPropagation()
|
47
|
+
nestedMenuItem.classList.toggle('open')
|
48
|
+
})
|
49
|
+
}
|
50
|
+
)
|
49
51
|
|
50
52
|
})
|
@@ -39,6 +39,10 @@ body.index {
|
|
39
39
|
position: absolute;
|
40
40
|
z-index: 1;
|
41
41
|
}
|
42
|
+
|
43
|
+
.indexes.table_tools_segmented_control {
|
44
|
+
text-align: right;
|
45
|
+
}
|
42
46
|
}
|
43
47
|
|
44
48
|
.paginated_collection_contents {
|
@@ -89,6 +93,10 @@ body.index {
|
|
89
93
|
.scopes {
|
90
94
|
.scope {
|
91
95
|
@include group-button($primary-color);
|
96
|
+
|
97
|
+
a {
|
98
|
+
margin-right: .25rem;
|
99
|
+
}
|
92
100
|
}
|
93
101
|
}
|
94
102
|
|
data/lib/arctic_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arctic_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clément Prod'homme
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|