realiser 0.1.1 → 0.2.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/README.md +12 -4
- data/app/views/realiser/web/settings/edit.html.erb +2 -2
- data/app/views/realiser/web/settings/new.html.erb +3 -4
- data/lib/realiser/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: 108148802be4dc8c84d8aa2acd7229bab932ee3926dcbd9235780261c1cae68d
|
4
|
+
data.tar.gz: 1d63598e341d6b1eca925653cf07ef45fdb0dace3d81e27d1d26f459af0a3f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea4aec570c5a55e10f873ee6287211db1ae39880a0dc5cfbc241a45dd9a2a40c34cfce2908cdc3163478d0ba07a46b52be34485ace1c719734d6a7ffbd9c8330
|
7
|
+
data.tar.gz: 1b2fb572576209181fce07474a67ec6aa7571d03621c379d8ede4d30d2d185677688d1d716ba8d76d38a241827d76b70cfc3d64069e643f7d2ea200e4d3a8a37
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
2
|
<p align="center">
|
3
|
-
<a href="
|
3
|
+
<a href="#" target="_blank" rel="noopener noreferrer">
|
4
4
|
<img src="image.webp" width="200">
|
5
5
|
</a>
|
6
6
|
</p>
|
7
7
|
|
8
8
|
# Realiser
|
9
|
-
The Rails engine will help you to provides the setting data to your app.
|
9
|
+
The Rails engine will help you to provides the setting data to your app. See the demo engine in [here](https://github.com/philiplambok/demo-realiser).
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
Add this line to your application's Gemfile:
|
@@ -28,7 +28,8 @@ $ gem install realiser
|
|
28
28
|
After that, run this command to generate the migration files:
|
29
29
|
|
30
30
|
```sh
|
31
|
-
|
31
|
+
$ bundle exec rails g realiser install
|
32
|
+
$ bundle exec rake db:migrate
|
32
33
|
```
|
33
34
|
|
34
35
|
Then, you can enable the Web UI, with mount the engine in your `config/routes.rb`:
|
@@ -38,6 +39,13 @@ Rails.application.routes.draw do
|
|
38
39
|
mount Realiser::Engine => '/realiser'
|
39
40
|
end
|
40
41
|
```
|
42
|
+
|
43
|
+
Then, add this line to your `app/assets/config/manifest.js` to help compile the stylesheets.
|
44
|
+
|
45
|
+
```js
|
46
|
+
//= link realiser/application.css
|
47
|
+
```
|
48
|
+
|
41
49
|
Done, you can manage the settings data by visiting the path `/realiser`.
|
42
50
|
|
43
51
|
The UI will be something like this:
|
@@ -77,7 +85,7 @@ Setting['PAYMENT_TOKEN'] #> 'sgFadLoRx5rX1VL02OalMQ'
|
|
77
85
|
## Contributing
|
78
86
|
PR are welcome!
|
79
87
|
|
80
|
-
You can use [the issue tab](https://github.com/philiplambok/realiser/issues) for asking me a question about this engine, or report a bug, or even
|
88
|
+
You can use [the issue tab](https://github.com/philiplambok/realiser/issues) for asking me a question about this engine, or report a bug, or even to request a feature.
|
81
89
|
|
82
90
|
## License
|
83
91
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -10,13 +10,13 @@
|
|
10
10
|
<div class="col-6">
|
11
11
|
<div class="mb-3">
|
12
12
|
<%= form.label :key, class: 'form-label fw-bold' %>
|
13
|
-
<%= form.text_field :key, class: 'form-control', autocomplete: 'off' %>
|
13
|
+
<%= form.text_field :key, class: 'form-control', autocomplete: 'off', required: true %>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
<div class="col-6">
|
17
17
|
<div class="mb-3">
|
18
18
|
<%= form.label :value, class: 'form-label fw-bold' %>
|
19
|
-
<%= form.text_field :value, class: 'form-control', autocomplete: 'off' %>
|
19
|
+
<%= form.text_field :value, class: 'form-control', autocomplete: 'off', required: true %>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
</div>
|
@@ -10,16 +10,15 @@
|
|
10
10
|
<div class="col-6">
|
11
11
|
<div class="mb-3">
|
12
12
|
<%= form.label :key, class: 'form-label fw-bold' %>
|
13
|
-
<%= form.text_field :key, class: 'form-control', autocomplete: 'off' %>
|
13
|
+
<%= form.text_field :key, class: 'form-control', autocomplete: 'off', required: true %>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
<div class="col-6">
|
17
17
|
<div class="mb-3">
|
18
18
|
<%= form.label :value, class: 'form-label fw-bold' %>
|
19
|
-
<%= form.text_field :value, class: 'form-control', autocomplete: 'off' %>
|
19
|
+
<%= form.text_field :value, class: 'form-control', autocomplete: 'off', required: true %>
|
20
20
|
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
21
|
+
</div> </div>
|
23
22
|
|
24
23
|
<div class="form-group row">
|
25
24
|
<div class="col-md-12">
|
data/lib/realiser/version.rb
CHANGED