wco_models 3.1.0.46 → 3.1.0.47

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: 0a5d5670d27e5ffe31a148d7c746b5da9ab488cbe69dc6858d3ea5dd30bba67a
4
- data.tar.gz: 301c1ed8eab2e77f157a5b7560dbfcb6d2e23b45b6dc64b469b5de2c0d75e5df
3
+ metadata.gz: 3147cfe33bdd89500f5331afad95a8be2b283fbb7b7426e64a0022ef7cadee7f
4
+ data.tar.gz: 84feaedc4b04015e78d9d950818a4e5bbe468c77975f1d30452648cd9b087fb1
5
5
  SHA512:
6
- metadata.gz: 254d577ba591a0fa571637f7530608cee0993ec36095669e4eae89d672c463ee53c30a4e9d03333b456aef8b267d91edd348ccbac7695db05c681d157dc140e8
7
- data.tar.gz: b4ac32502cf0456b89281681a704dc9bbc91fc92807b7f5c5844acbdfc2f3f7b5a0d8f0901670c260adf174c6e8ed7e6d161f758b3b18dcbd5c161c4fd401955
6
+ metadata.gz: bce10b4ec941773ecdf5157517163f7c283304055f2a6d8c11f40fc23429f0c65b2d04e062e914a7bd0abc4c3c58cce7844111687267ff7584eaf390fc334a2b
7
+ data.tar.gz: 241e9cb262887e972942bc74794628f04c4201e7acac6f50c735dbd3d4192873479e38a3e140f7b1b983de0c5970a212e4560fb94dddff6a8505abef1d95e0a0
@@ -0,0 +1,5 @@
1
+ //
2
+ //= link_directory ../stylesheets/wco .css
3
+ //
4
+
5
+ console.log('Loaded wco_models/wco_models_manifest.js')
@@ -2,9 +2,13 @@
2
2
  *= require vendor/bootstrap-4.6.2.min
3
3
  *
4
4
  *= require ./utils
5
- *= require_self
5
+ *= require_tree .
6
6
  **/
7
7
 
8
+ /* body {
9
+ color: red !important;
10
+ } */
11
+
8
12
  .select2 {
9
13
  min-width: 200px;
10
14
  width: 100%;
@@ -29,11 +33,3 @@
29
33
  }
30
34
  }
31
35
  }
32
-
33
-
34
- /* .min-w-100px {
35
- min-width: 100px;
36
- }
37
- .min-w-40px {
38
- min-width: 40px;
39
- } */
@@ -0,0 +1,52 @@
1
+
2
+ .pagination a,
3
+ .pagination span.current,
4
+ .pagination span.gap {
5
+ float: left;
6
+ padding: 0 14px;
7
+ line-height: 38px;
8
+ text-decoration: none;
9
+ background-color: white;
10
+ border: 1px solid #DDD;
11
+ border-left-width: 0;
12
+ }
13
+
14
+ .pagination {
15
+ border-left: 1px solid #ddd;
16
+
17
+ li.active {
18
+ padding: 0 14px;
19
+ line-height: 38px;
20
+
21
+ a {
22
+ background-color: #ee6e73;
23
+ color: white;
24
+ }
25
+ }
26
+ .first{
27
+ padding : 0;
28
+ float: none;
29
+ border: none;
30
+ }
31
+ .prev {
32
+ padding : 0;
33
+ float: none;
34
+ border: none;
35
+ }
36
+ .page{
37
+ padding : 0;
38
+ float: none;
39
+ border: none;
40
+ }
41
+ .next{
42
+ padding : 0;
43
+ float: none;
44
+ border: none;
45
+ }
46
+ .last{
47
+ padding : 0;
48
+ float: none;
49
+ border: none;
50
+ }
51
+ }
52
+
@@ -16,5 +16,8 @@ class Ability
16
16
 
17
17
  end
18
18
 
19
+ can [ :open_permission ], Wco
20
+ # can [ :open_permission ], WcoEmail
21
+
19
22
  end
20
23
  end
@@ -7,7 +7,7 @@ class Wco::Lead
7
7
 
8
8
  field :email
9
9
  validates :email, presence: true, uniqueness: true
10
- index({ email: -1 })
10
+ index({ email: -1 }, { unique: true })
11
11
 
12
12
  field :name
13
13
  field :phone
@@ -7,7 +7,7 @@ class Wco::Leadset
7
7
 
8
8
  field :company_url
9
9
  validates :company_url, presence: true, uniqueness: true
10
- index({ company_url: 1 }, { name: 'company_url' })
10
+ index({ company_url: 1 }, { unique: true, name: 'company_url' })
11
11
 
12
12
  field :email
13
13
  index({ email: 1 }, { name: 'email' })
@@ -6,12 +6,12 @@ class WcoHosting::ApplianceTmpl
6
6
  include Mongoid::Paranoia
7
7
  store_in collection: 'wco_appliance_tmpls'
8
8
 
9
- field :kind
9
+ field :kind, type: :string
10
10
  validates :kind, uniqueness: { scope: :version }, presence: true
11
11
 
12
12
  field :version, type: :string, default: '0.0.0'
13
13
  validates :version, uniqueness: { scope: :kind }, presence: true
14
- index({ kind: -1, version: -1 }, { name: :kind_version })
14
+ index({ kind: -1, version: -1 }, { name: 'kind_version' })
15
15
 
16
16
  def name
17
17
  "#{kind} #{version}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.46
4
+ version: 3.1.0.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
@@ -341,7 +341,7 @@ extra_rdoc_files: []
341
341
  files:
342
342
  - README.txt
343
343
  - Rakefile
344
- - app/assets/config/wco_models_manifest.js
344
+ - app/assets/config-trash/wco_models_manifest.js
345
345
  - app/assets/javascripts/vendor/bootstrap-4.6.2.min.js
346
346
  - app/assets/javascripts/vendor/fontawesome-5.0.13.js
347
347
  - app/assets/javascripts/vendor/fontawesome-5.15.4.min.js
@@ -363,6 +363,7 @@ files:
363
363
  - app/assets/javascripts/wco/shared.js
364
364
  - app/assets/stylesheets/vendor/bootstrap-4.6.2.min.css
365
365
  - app/assets/stylesheets/wco/application.css
366
+ - app/assets/stylesheets/wco/pagination.scss
366
367
  - app/assets/stylesheets/wco/utils.scss
367
368
  - app/controllers/wco/application_controller.rb
368
369
  - app/controllers/wco/galleries_controller.rb
@@ -1,6 +0,0 @@
1
- //
2
- //= link wco_models/application.css
3
- //= link_directory ../stylesheets/wco_models .css
4
- //
5
-
6
- console.log('Loaded wco_models/wco_models_manifest.js')