beyond_canvas 0.6.3.pre → 0.6.4.pre
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 +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +75 -18
- data/app/views/beyond_canvas/{_flash.html.slim → shared/_flash.html.slim} +0 -0
- data/app/views/beyond_canvas/shared/_head.html.slim +12 -0
- data/app/views/beyond_canvas/shared/_logo.html.slim +2 -0
- data/app/views/layouts/beyond_canvas/public.html.slim +3 -9
- data/lib/beyond_canvas/version.rb +1 -1
- metadata +4 -3
- data/app/views/layouts/beyond_canvas/single_page.html.slim +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69b9311ccfa66b8ff9b358476c40005dae8084848abb4408d1deecfacfd485eb
|
4
|
+
data.tar.gz: 2a5ac1f10b54e41f04f997e88b58f37ef52c85a0d63507d0b1a06f053b322ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a214821f18cfd0e7ef9be448f6a7a9b44f0bae9b5e4da1d9154c10f989da2005c7f40ab4b2e7002058b4595a59bf7f8df408ff25bb346a23a1bfa3eebe3b2aa6
|
7
|
+
data.tar.gz: 45a919581e32011b4a64838237601ec2004d327776d861b264551d35442ff0e51202abe9ae1ecc441d7aaad23501a392dda6eefedf54bbb0e06ac0df6dd1d245
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,35 +1,92 @@
|
|
1
|
-
#
|
1
|
+
# Beyond Canvas
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+

|
4
|
+

|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
9
|
-
Add this line to your application's Gemfile:
|
8
|
+
1. Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "beyond_canvas"
|
12
|
+
```
|
13
|
+
|
14
|
+
1. Then execute:
|
15
|
+
|
16
|
+
```bash
|
17
|
+
$ bundle install
|
18
|
+
```
|
19
|
+
|
20
|
+
1. Restart your server and rename `application.css` to `application.scss` or `application.sass` (in case you prefer to use `sass` syntax):
|
21
|
+
|
22
|
+
```bash
|
23
|
+
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
|
24
|
+
```
|
25
|
+
|
26
|
+
1. Delete _all_ Sprockets directives in `application.scss` (`require`, `require_tree` and `require_self`) and use Sass’s native `@import` instead ([why?](https://content.pivotal.io/blog/structure-your-sass-files-with-import)).
|
27
|
+
|
28
|
+
1. Import Beyond Canvas at the beginning of `application.scss`. Any other styles must be imported after Beyond Canvas to avoid issues:
|
29
|
+
|
30
|
+
```scss
|
31
|
+
@import 'beyond_canvas'
|
32
|
+
```
|
33
|
+
|
34
|
+
1. Add the following to `application.js`:
|
35
|
+
|
36
|
+
```js
|
37
|
+
//= require beyond_canvas
|
38
|
+
```
|
10
39
|
|
11
|
-
|
12
|
-
gem 'beyond_canvas'
|
13
|
-
```
|
40
|
+
1. Run the generator:
|
14
41
|
|
15
|
-
|
42
|
+
```bash
|
43
|
+
$ rails g beyond_canvas:install
|
44
|
+
```
|
16
45
|
|
17
|
-
|
46
|
+
This will generate 2 new files:
|
18
47
|
|
19
|
-
|
48
|
+
1. `config/initializers/beyond_canvas.rb`, used for general Beyond Canvas configuration and
|
49
|
+
2. `config/initializers/beyond_canvas_form_utils.rb`, needed for changing the form generation behavior
|
20
50
|
|
21
|
-
|
51
|
+
## Style Customization
|
22
52
|
|
23
|
-
|
53
|
+
Beyond Canvas comes with _out-of-the-box_ styles to make your app look as a Beyond integrated one. If you want to customize the gem styles, follow these instructions:
|
24
54
|
|
25
|
-
|
55
|
+
1. Run the custom style generator:
|
26
56
|
|
27
|
-
|
57
|
+
```bash
|
58
|
+
$ rails g beyond_canvas:custom_styles
|
59
|
+
```
|
28
60
|
|
29
|
-
|
61
|
+
This command will generate a file (`app/assets/stylesheets/_beyond_canvas_custom_styles.sass`) that contains all variables you can customize.
|
30
62
|
|
31
|
-
|
63
|
+
1. Import the custom styles **before** Beyond Canvas itself (to override the default styles) on `application.scss`:
|
64
|
+
|
65
|
+
```scss
|
66
|
+
@import 'beyond_canvas_custom_styles'
|
67
|
+
@import 'beyond_canvas'
|
68
|
+
```
|
69
|
+
|
70
|
+
## Documentation
|
71
|
+
|
72
|
+
TBD
|
32
73
|
|
33
74
|
## Contributing
|
34
75
|
|
35
|
-
|
76
|
+
Please see [CONTRIBUTING](https://github.com/ePages-de/beyond_canvas/blob/master/CONTRIBUTING.md).
|
77
|
+
|
78
|
+
## Changelog
|
79
|
+
|
80
|
+
Beyond Canvas's changelog is available [here](https://github.com/ePages-de/beyond_canvas/blob/master/CHANGELOG.md).
|
81
|
+
|
82
|
+
## License
|
83
|
+
|
84
|
+
beyond_canvas is Copyright © 2019 ePages GmbH. It is free software, and may be redistributed under the terms specified in the [LICENSE](https://github.com/ePages-de/beyond_canvas/blob/master/LICENSE) file.
|
85
|
+
|
86
|
+
## About ePages
|
87
|
+
|
88
|
+
As the largest independent provider of online shop software in Europe, ePages specialises in high-performance ecommerce solutions for small and medium-sized businesses.
|
89
|
+
Today, 100,000 companies in 70 countries operate professional online shops with ePages software in the cloud.
|
90
|
+
|
91
|
+
And we love open source software!
|
92
|
+
Check out our [other projects](https://github.com/ePages-de), or [become part of our team](https://developer.epages.com/devjobs/) and develop great ecommerce software with us!
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
head
|
2
|
+
= csrf_meta_tags
|
3
|
+
meta content='width=device-width, initial-scale=1.0' name='viewport' /
|
4
|
+
link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" rel="stylesheet" /
|
5
|
+
script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"
|
6
|
+
- if defined? Turbolinks
|
7
|
+
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
|
8
|
+
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
|
9
|
+
- else
|
10
|
+
= stylesheet_link_tag 'application'
|
11
|
+
= javascript_include_tag 'application'
|
12
|
+
= render 'beyond_canvas/custom/public_head'
|
@@ -1,17 +1,11 @@
|
|
1
1
|
doctype html
|
2
2
|
|
3
3
|
html
|
4
|
-
head
|
5
|
-
= csrf_meta_tags
|
6
|
-
meta content='width=device-width, initial-scale=1.0' name='viewport' /
|
7
|
-
link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" rel="stylesheet" /
|
8
|
-
script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"
|
9
|
-
= render 'beyond_canvas/custom/public_head'
|
4
|
+
= render 'beyond_canvas/shared/head'
|
10
5
|
|
11
6
|
body.body--public
|
12
7
|
main.main class=("#{params[:controller].gsub(/[\/_]/, "-")}--#{params[:action]}")
|
13
|
-
= render 'beyond_canvas/flash'
|
8
|
+
= render 'beyond_canvas/shared/flash'
|
14
9
|
.main-wrapper
|
15
|
-
|
16
|
-
= logo_image_tag(logo) unless logo.nil?
|
10
|
+
= render 'beyond_canvas/shared/logo'
|
17
11
|
= yield
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beyond_canvas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Unai Abrisketa
|
@@ -118,10 +118,11 @@ files:
|
|
118
118
|
- app/assets/stylesheets/utilities/_mixins.sass
|
119
119
|
- app/form_builders/beyond_form_builder.rb
|
120
120
|
- app/helpers/beyond_canvas_helper.rb
|
121
|
-
- app/views/beyond_canvas/_flash.html.slim
|
122
121
|
- app/views/beyond_canvas/custom/_public_head.html.slim
|
122
|
+
- app/views/beyond_canvas/shared/_flash.html.slim
|
123
|
+
- app/views/beyond_canvas/shared/_head.html.slim
|
124
|
+
- app/views/beyond_canvas/shared/_logo.html.slim
|
123
125
|
- app/views/layouts/beyond_canvas/public.html.slim
|
124
|
-
- app/views/layouts/beyond_canvas/single_page.html.slim
|
125
126
|
- beyond_canvas.gemspec
|
126
127
|
- lib/beyond_canvas.rb
|
127
128
|
- lib/beyond_canvas/version.rb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
doctype html
|
2
|
-
|
3
|
-
html
|
4
|
-
head
|
5
|
-
= csrf_meta_tags
|
6
|
-
meta content='width=device-width, initial-scale=1.0' name='viewport' /
|
7
|
-
link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" rel="stylesheet" /
|
8
|
-
script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"
|
9
|
-
= render 'beyond_canvas/custom/public_head'
|
10
|
-
|
11
|
-
body.body--single-page
|
12
|
-
main.main class=("#{params[:controller].gsub(/[\/_]/, "-")}--#{params[:action]}")
|
13
|
-
.main-wrapper
|
14
|
-
- logo = Dir["app/assets/images/logo.*"].first
|
15
|
-
- unless logo.nil?
|
16
|
-
- if File.extname(logo) == '.svg'
|
17
|
-
= inline_svg File.basename(logo), class: 'logo'
|
18
|
-
- else
|
19
|
-
= image_tag File.basename(logo), class: 'logo'
|
20
|
-
= yield
|