unirer-bootstrap 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -0
- data/app/views/unirer/bootstrap/_icon.html.erb +21 -0
- data/lib/unirer/bootstrap/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06d1667e6c1a4f62bbc2534a865f0dea0cc068dd
|
4
|
+
data.tar.gz: 82405a3b5b395a78cfc289d885d45e5ad263753c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0669c211cb3c575101204040f4c5da9c3913362570f96189163553a955a35106dd41f58f8f6504e713b2b6f346663e3caacf91dfffa8c5f804f3cdbed37a4ca1
|
7
|
+
data.tar.gz: 98aa67f22610a480fa2c44b84c529ce00f7451834a9841c4ba6db115ce05347893e275a08228585b466cc8da879be259850a2d60f3e1befbbbf3be0c2c86a874
|
data/README.md
CHANGED
@@ -48,6 +48,22 @@ The source codes of the Meta partial:
|
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
+
### Render the Favorite Icon
|
52
|
+
The Icon partial includes the HTML link tags for Favorite Icons.
|
53
|
+
```erb
|
54
|
+
<%= render partial: 'unirer/bootstrap/icon',
|
55
|
+
locals: {
|
56
|
+
options: {
|
57
|
+
safari_mask_icon_color: '#5bbad5',
|
58
|
+
microsoft_application_title_color: '#da532c',
|
59
|
+
theme_color: '#ffffff'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
%>
|
63
|
+
```
|
64
|
+
|
65
|
+
|
66
|
+
|
51
67
|
### Render the Script
|
52
68
|
The Script partial includes the HTML script tags for jQuery, Bootstrap, and React. All the CDN servers of the JavaScript libraries are optimized for China only. The following code snippet does not load React JS.
|
53
69
|
```erb
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png">
|
2
|
+
<link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-touch-icon-60x60.png">
|
3
|
+
<link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-touch-icon-72x72.png">
|
4
|
+
<link rel="apple-touch-icon" sizes="76x76" href="/favicons/apple-touch-icon-76x76.png">
|
5
|
+
<link rel="apple-touch-icon" sizes="114x114" href="/favicons/apple-touch-icon-114x114.png">
|
6
|
+
<link rel="apple-touch-icon" sizes="120x120" href="/favicons/apple-touch-icon-120x120.png">
|
7
|
+
<link rel="apple-touch-icon" sizes="144x144" href="/favicons/apple-touch-icon-144x144.png">
|
8
|
+
<link rel="apple-touch-icon" sizes="152x152" href="/favicons/apple-touch-icon-152x152.png">
|
9
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon-180x180.png">
|
10
|
+
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
|
11
|
+
<link rel="icon" type="image/png" href="/favicons/favicon-194x194.png" sizes="194x194">
|
12
|
+
<link rel="icon" type="image/png" href="/favicons/favicon-96x96.png" sizes="96x96">
|
13
|
+
<link rel="icon" type="image/png" href="/favicons/android-chrome-192x192.png" sizes="192x192">
|
14
|
+
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
|
15
|
+
<link rel="manifest" href="/favicons/manifest.json">
|
16
|
+
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="<%= defined?(options) ? options[:safari_mask_icon_color]||'#5bbad5' : '#5bbad5' %>">
|
17
|
+
<meta name="msapplication-TileColor" content="<%= defined?(options) ? options[:microsoft_application_title_color]||'#da532c' : '#da532c' %>">
|
18
|
+
<meta name="msapplication-TileImage" content="/favicons/mstile-144x144.png">
|
19
|
+
<meta name="theme-color" content="<%= defined?(options) ? options[:theme_color]||'#ffffff' : '#ffffff' %>">
|
20
|
+
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
21
|
+
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unirer-bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Topbit Du
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -43,6 +43,7 @@ files:
|
|
43
43
|
- app/views/layouts/unirer/bootstrap/application.html.erb
|
44
44
|
- app/views/unirer/bootstrap/_form_field.html.erb
|
45
45
|
- app/views/unirer/bootstrap/_form_select_box.html.erb
|
46
|
+
- app/views/unirer/bootstrap/_icon.html.erb
|
46
47
|
- app/views/unirer/bootstrap/_meta.html.erb
|
47
48
|
- app/views/unirer/bootstrap/_script.html.erb
|
48
49
|
- app/views/unirer/bootstrap/_style.html.erb
|