iatelier 0.1.8 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/iatelier.gemspec +2 -2
  3. data/lib/iatelier.rb +15 -4
  4. data/lib/iatelier/assets/javascripts/iatelier-analog.js +7005 -7008
  5. data/lib/iatelier/assets/javascripts/selectize.js +6455 -6455
  6. data/lib/iatelier/config/routes.rb +5 -9
  7. data/lib/iatelier/configuration.rb +12 -0
  8. data/lib/iatelier/controllers/books/_db_connector.rb +13 -0
  9. data/lib/iatelier/controllers/books/create.rb +2 -1
  10. data/lib/iatelier/controllers/books/edit.rb +5 -1
  11. data/lib/iatelier/controllers/books/manage.rb +2 -0
  12. data/lib/iatelier/controllers/books/new.rb +5 -2
  13. data/lib/iatelier/controllers/books/update.rb +2 -1
  14. data/lib/iatelier/models/Bundle.rb +17 -0
  15. data/lib/iatelier/models/book.rb +99 -37
  16. data/lib/iatelier/models/people.rb +1 -1
  17. data/lib/iatelier/templates/application.html.erb +3 -4
  18. data/lib/iatelier/templates/books/_engine.html.haml +5 -3
  19. data/lib/iatelier/templates/books/dimension/_timestamp.html.haml +11 -0
  20. data/lib/iatelier/templates/books/edit.html.haml +1 -1
  21. data/lib/iatelier/templates/books/new.html.haml +1 -1
  22. data/lib/iatelier/version.rb +1 -1
  23. data/mix-manifest.json +6 -0
  24. data/{lib/iatelier/package.json → package.json} +0 -0
  25. data/{lib/iatelier/assets → src}/js/iatelier-analog.js +6 -7
  26. data/{lib/iatelier/assets → src}/js/selectize.js +0 -0
  27. data/{lib/iatelier/assets → src}/sass/backend.scss +0 -0
  28. data/{lib/iatelier/assets → src}/sass/blaze/blaze.colors.scss +0 -0
  29. data/{lib/iatelier/assets → src}/sass/blaze/blaze.scss +0 -0
  30. data/{lib/iatelier/assets → src}/sass/blaze/components.addresses.scss +0 -0
  31. data/{lib/iatelier/assets → src}/sass/blaze/components.alerts.scss +0 -0
  32. data/{lib/iatelier/assets → src}/sass/blaze/components.avatars.scss +0 -0
  33. data/{lib/iatelier/assets → src}/sass/blaze/components.badges.scss +0 -0
  34. data/{lib/iatelier/assets → src}/sass/blaze/components.breadcrumbs.scss +0 -0
  35. data/{lib/iatelier/assets → src}/sass/blaze/components.bubbles.scss +0 -0
  36. data/{lib/iatelier/assets → src}/sass/blaze/components.buttons.scss +0 -0
  37. data/{lib/iatelier/assets → src}/sass/blaze/components.calendars.scss +0 -0
  38. data/{lib/iatelier/assets → src}/sass/blaze/components.cards.scss +0 -0
  39. data/{lib/iatelier/assets → src}/sass/blaze/components.headings.scss +0 -0
  40. data/{lib/iatelier/assets → src}/sass/blaze/components.hints.scss +0 -0
  41. data/{lib/iatelier/assets → src}/sass/blaze/components.input-groups.scss +0 -0
  42. data/{lib/iatelier/assets → src}/sass/blaze/components.inputs.scss +0 -0
  43. data/{lib/iatelier/assets → src}/sass/blaze/components.links.scss +0 -0
  44. data/{lib/iatelier/assets → src}/sass/blaze/components.lists.scss +0 -0
  45. data/{lib/iatelier/assets → src}/sass/blaze/components.navs.scss +0 -0
  46. data/{lib/iatelier/assets → src}/sass/blaze/components.overlays.scss +0 -0
  47. data/{lib/iatelier/assets → src}/sass/blaze/components.pagination.scss +0 -0
  48. data/{lib/iatelier/assets → src}/sass/blaze/components.progress.scss +0 -0
  49. data/{lib/iatelier/assets → src}/sass/blaze/components.ranges.scss +0 -0
  50. data/{lib/iatelier/assets → src}/sass/blaze/components.tables.scss +0 -0
  51. data/{lib/iatelier/assets → src}/sass/blaze/components.tabs.scss +0 -0
  52. data/{lib/iatelier/assets → src}/sass/blaze/components.tags.scss +0 -0
  53. data/{lib/iatelier/assets → src}/sass/blaze/components.toggles.scss +0 -0
  54. data/{lib/iatelier/assets → src}/sass/blaze/components.tooltips.scss +0 -0
  55. data/{lib/iatelier/assets → src}/sass/blaze/components.trees.scss +0 -0
  56. data/{lib/iatelier/assets → src}/sass/blaze/components.typography.scss +0 -0
  57. data/{lib/iatelier/assets → src}/sass/blaze/generics.global.scss +0 -0
  58. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.alerts.scss +0 -0
  59. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.badges.scss +0 -0
  60. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.buttons.scss +0 -0
  61. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.inputs.scss +0 -0
  62. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.links.scss +0 -0
  63. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.lists.scss +0 -0
  64. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.navs.scss +0 -0
  65. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.ranges.scss +0 -0
  66. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.tabs.scss +0 -0
  67. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.toggles.scss +0 -0
  68. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_components.typography.scss +0 -0
  69. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_objects.containers.scss +0 -0
  70. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_objects.grid.scss +0 -0
  71. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_settings.global.scss +0 -0
  72. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_tools.mediaqueries.scss +0 -0
  73. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_utilities.alignment.scss +0 -0
  74. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_utilities.boxing.scss +0 -0
  75. data/{lib/iatelier/assets → src}/sass/blaze/mixins/_utilities.visibility.scss +0 -0
  76. data/{lib/iatelier/assets → src}/sass/blaze/objects.containers.scss +0 -0
  77. data/{lib/iatelier/assets → src}/sass/blaze/objects.drawers.scss +0 -0
  78. data/{lib/iatelier/assets → src}/sass/blaze/objects.forms.scss +0 -0
  79. data/{lib/iatelier/assets → src}/sass/blaze/objects.grid.responsive.scss +0 -0
  80. data/{lib/iatelier/assets → src}/sass/blaze/objects.grid.scss +0 -0
  81. data/{lib/iatelier/assets → src}/sass/blaze/objects.images.scss +0 -0
  82. data/{lib/iatelier/assets → src}/sass/blaze/objects.media.scss +0 -0
  83. data/{lib/iatelier/assets → src}/sass/blaze/objects.modals.scss +0 -0
  84. data/{lib/iatelier/assets → src}/sass/blaze/objects.panels.scss +0 -0
  85. data/{lib/iatelier/assets → src}/sass/blaze/themes/blaze.example.scss +0 -0
  86. data/{lib/iatelier/assets → src}/sass/blaze/utilities.alignment.scss +0 -0
  87. data/{lib/iatelier/assets → src}/sass/blaze/utilities.boxing.scss +0 -0
  88. data/{lib/iatelier/assets → src}/sass/blaze/utilities.elevation.scss +0 -0
  89. data/{lib/iatelier/assets → src}/sass/blaze/utilities.sizes.scss +0 -0
  90. data/{lib/iatelier/assets → src}/sass/blaze/utilities.visibility.scss +0 -0
  91. data/{lib/iatelier/assets → src}/sass/iatelier.scss +0 -0
  92. data/{lib/iatelier/assets → src}/sass/selectize.scss +0 -0
  93. data/{lib/iatelier/assets → src}/sass/views/master.scss +0 -0
  94. data/{lib/iatelier/webpack.mix.js → webpack.mix.js} +4 -4
  95. metadata +80 -78
  96. data/lib/iatelier/Users/captainhusaynpinguin/Documents/ruby/iatelier/public/assets/js/analog.js +0 -15347
  97. data/lib/iatelier/Users/captainhusaynpinguin/Documents/ruby/iatelier/public/assets/js/selectize.js +0 -12672
  98. data/lib/iatelier/mix-manifest.json +0 -6
@@ -3,12 +3,8 @@
3
3
  #
4
4
  # Example:
5
5
 
6
- namespace 'iatelier/analog' do
7
- get '/:book_type', to: 'books#manage'
8
- get '/:book_type/new', to: 'books#new'
9
- post '/:book_type', to: 'books#create'
10
- get '/:book_type/:id/edit', to: 'books#edit'
11
- patch '/:book_type/:id', to: 'books#update'
12
- end
13
-
14
- get '/*', to: Iatelier::Controllers::Ileaf
6
+ get '/:database/:book_type', to: 'books#manage'
7
+ get '/:database/:book_type/new', to: 'books#new'
8
+ post '/:database/:book_type', to: 'books#create'
9
+ get '/:database/:book_type/:id/edit', to: 'books#edit'
10
+ patch '/:database/:book_type/:id', to: 'books#update'
@@ -0,0 +1,12 @@
1
+ module Iatelier
2
+ class Configuration
3
+ attr_accessor :atelier_name, :atelier_url, :storage_dir, :admin_username, :admin_password
4
+ def initialize
5
+ @atelier_name = nil
6
+ @atelier_url = nil
7
+ @storage_dir = './storage/books/'
8
+ @admin_username = 'admin'
9
+ @admin_password = 'yup-thatsthat'
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ module Iatelier
2
+ module Controllers
3
+ module Books
4
+ module DbConnector
5
+ def set_database database
6
+ tmp_config = ActiveRecord::Base.connection_config
7
+ tmp_config[:database] = database
8
+ ActiveRecord::Base.establish_connection tmp_config
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -3,8 +3,9 @@ module Iatelier
3
3
  module Books
4
4
  class Create
5
5
  include Iatelier::Action
6
-
6
+ include Iatelier::Controllers::Books::DbConnector
7
7
  def call(params)
8
+ self.set_database params[:database]
8
9
  @book = Object.const_get(params[:book_type].capitalize).new
9
10
  @book.save
10
11
  @book.create(params)
@@ -3,9 +3,13 @@ module Iatelier
3
3
  module Books
4
4
  class Edit
5
5
  include Iatelier::Action
6
- expose :book
6
+ include Iatelier::Controllers::Books::DbConnector
7
+ expose :book, :database
7
8
  def call(params)
9
+ @database = params[:database]
10
+ self.set_database database
8
11
  @book = Object.const_get(params[:book_type].capitalize).find(params[:id])
12
+ @book.namespace = @database
9
13
  end
10
14
  end
11
15
  end
@@ -3,8 +3,10 @@ module Iatelier
3
3
  module Books
4
4
  class Manage
5
5
  include Iatelier::Action
6
+ include Iatelier::Controllers::Books::DbConnector
6
7
  expose :books
7
8
  def call(params)
9
+ self.set_database params[:database]
8
10
  @books = Object.const_get(params[:book_type].capitalize).all
9
11
  end
10
12
  end
@@ -3,11 +3,14 @@ module Iatelier
3
3
  module Books
4
4
  class New
5
5
  include Iatelier::Action
6
- expose :book
7
- expose :book_type
6
+ include Iatelier::Controllers::Books::DbConnector
7
+ expose :book, :book_type, :database
8
8
  def call(params)
9
+ @database = params[:database]
10
+ self.set_database database
9
11
  @book_type = params[:book_type].capitalize;
10
12
  @book = Object.const_get(@book_type).new
13
+ @book.namespace = @database
11
14
  end
12
15
  end
13
16
  end
@@ -3,8 +3,9 @@ module Iatelier
3
3
  module Books
4
4
  class Update
5
5
  include Iatelier::Action
6
-
6
+ include Iatelier::Controllers::Books::DbConnector
7
7
  def call(params)
8
+ self.set_database params[:database]
8
9
  @book = Object.const_get(params[:book_type].capitalize).find(params[:id])
9
10
  @book.revise(params)
10
11
  @book.save
@@ -0,0 +1,17 @@
1
+ require_relative 'book'
2
+
3
+ class Bundleable < ApplicationRecord
4
+ belongs_to :bundle
5
+ belongs_to :bundleble, polymorphic: true
6
+ end
7
+
8
+ class Bundle < Book
9
+ @@dimensions = ['title', 'subtitle', 'description', 'slug', 'thumbnail', 'timestamp']
10
+ has_many :bundleables
11
+ self.table_name = "bundles"
12
+
13
+ def items(class_name)
14
+ @query = '`bundleables`.`bundle_id` = "' + self.id.to_s + '"'
15
+ Object::const_get(class_name).joins(:bundleables).where(@query)
16
+ end
17
+ end
@@ -2,11 +2,13 @@ require 'redcarpet'
2
2
 
3
3
  class Book < ActiveRecord::Base
4
4
  self.abstract_class = true
5
-
6
- @@dimensions = []
7
- @@roles = []
5
+ DIMENSIONS = []
6
+ GROUPINGS = []
7
+ ROLES = []
8
+
9
+ @content_raw = ''
8
10
 
9
- @@content = ''
11
+ @namespace = nil
10
12
 
11
13
  has_one :title, as: :titleable, class_name: 'Dimensions::Title'
12
14
  has_one :slug, as: :slugable, class_name: 'Dimensions::Slug'
@@ -20,73 +22,84 @@ class Book < ActiveRecord::Base
20
22
 
21
23
  has_many :peopleables, as: :peopleable, dependent: :destroy
22
24
  has_many :peoples, through: :peopleables
23
-
25
+
26
+ has_many :bundleables, as: :bundleable, dependent: :destroy
27
+ has_many :bundles, through: :bundleables
28
+
24
29
  accepts_nested_attributes_for :title, :slug, :subtitle, :description, :thumbnail, :timestamp
25
30
  validates_associated :slug
31
+
32
+ attr_accessor :namespace
26
33
 
34
+
35
+ def kind
36
+ self.class.to_s
37
+ end
38
+ def uniq
39
+ self.class.to_s + self.id.to_s
40
+ end
41
+
27
42
  def dimensions
28
- @@dimensions
29
- end
30
-
31
- def roles
32
- @@roles
33
- end
43
+ self.class::DIMENSIONS
44
+ end
45
+ def groupings
46
+ self.class::GROUPINGS
47
+ end
48
+ def roles
49
+ self.class::ROLES
50
+ end
34
51
 
35
52
  def individuals requested_role
36
53
  @query = '`peopleables`.`role` = "' + requested_role.to_s + '"'
37
54
  self.peoples.includes(:peopleables).where(@query)
38
55
  end
39
56
 
40
- def content
41
- puts "we are here"
57
+ def content_raw
58
+ puts 'trying to open content'
42
59
  unless self.id.nil?
43
-
44
- @storage_location = './storage/books/' + self.class.name.pluralize(2) + '/' + self.id.to_s + '/main.md'
45
- puts "now wer are going here :: " + @storage_location
46
- if File.exists? @storage_location
47
- puts "contnet is equal " + @@content
48
- @@content = File.open(@storage_location).read
60
+ puts 'id passed'
61
+ path = Iatelier.configuration.storage_dir + @namespace.to_s + self.class.name.downcase + '/' + self.id.to_s + '/main.md'
62
+ puts 'path is set to ' + path
63
+ if File.exists? path
64
+ puts 'reading content'
65
+ @content = File.open(path).read
49
66
  else
50
- @@content = nil
67
+ @content = nil
51
68
  end
52
69
  else
53
- @@content = nil
70
+ @content = nil
54
71
  end
55
72
  end
56
73
 
57
- def content_to_html
74
+ def content
58
75
  markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true)
59
- markdown.render(self.content)
60
- end
61
-
62
- def write_content text
63
- # if File.open(@storage_location).write
64
- # self.loc = self.id
65
- # self.save
76
+ markdown.render(self.content_raw)
66
77
  end
67
78
 
68
79
  # def initialized
69
80
  # super()
70
81
  # puts "content of the dimension: \n"
71
- # puts @dimensions.inspect
72
- # @dimensions.each do |dimension|
82
+ # puts dimensions.inspect
83
+ # dimensions.each do |dimension|
73
84
  # reference = dimension + able
74
85
  # hasone dimension.to_sym as: reference.to_sym
75
86
  # end
76
87
  # end
77
88
 
78
89
  def create params
79
- @@dimensions.each do |dimension|
90
+ puts 'these are the stuff were going to add:' + dimensions.to_s
91
+ dimensions.each do |dimension|
80
92
  method_name = 'setup_' + dimension
81
93
  self.public_send(method_name.to_sym, params)
82
94
  end
83
95
  self.save
84
96
  sync_keywords params
85
97
  sync_individuals params
98
+ sync_content params
86
99
  end
87
100
 
88
101
  def revise params
89
- @@dimensions.each do |dimension|
102
+ dimensions.each do |dimension|
90
103
  if self.public_send(dimension.to_sym)
91
104
  method_name = 'revise_' + dimension
92
105
  else
@@ -94,11 +107,12 @@ class Book < ActiveRecord::Base
94
107
  end
95
108
  self.public_send(method_name.to_sym, params)
96
109
  end
97
- @@dimensions.each do |dimension|
110
+ dimensions.each do |dimension|
98
111
  self.public_send(dimension.to_sym).save
99
112
  end
100
113
  sync_keywords params
101
114
  sync_individuals params
115
+ sync_content params
102
116
  end
103
117
 
104
118
  def sync_keywords params
@@ -161,13 +175,61 @@ class Book < ActiveRecord::Base
161
175
  self.build_title({value: params[:title]})
162
176
  end
163
177
  def revise_title params
164
- self.title.update_attributes({value: params[:title]})
178
+ self.title.update(value: params[:title])
179
+ end
180
+
181
+ def setup_subtitle params
182
+ self.build_subtitle({value: params[:subtitle]})
183
+ end
184
+ def revise_subtitle params
185
+ self.subtitle.update(value: params[:subtitle])
165
186
  end
166
187
 
167
188
  def setup_slug params
168
189
  self.build_slug({value: params[:slug]})
169
190
  end
170
191
  def revise_slug params
171
- self.slug.update_attributes({value: params[:slug]})
192
+ self.slug.update(value: params[:slug])
193
+ end
194
+
195
+ def setup_thumbnail params
196
+ end
197
+ def revise_thumbnail params
198
+ end
199
+
200
+ def setup_timestamp params
201
+ puts 'setting up timestamp'
202
+ self.build_timestamp({
203
+ draft: params[:timestamp][:draft],
204
+ publish: params[:timestamp][:publish],
205
+ amend: params[:timestamp][:amend]
206
+ })
207
+ end
208
+ def revise_timestamp params
209
+ puts 'revising timestamp'
210
+ unless self.timestamp.nil?
211
+ puts 'we found some > updating'
212
+ self.timestamp.update({
213
+ draft: params[:timestamp][:draft],
214
+ publish: params[:timestamp][:publish],
215
+ amend: params[:timestamp][:amend]
216
+ })
217
+ else
218
+ puts 'initiating new ones!'
219
+ self.setup_timestamp params
220
+ end
221
+ end
222
+
223
+ def sync_content params
224
+ puts 'we are trying to sync the content = ' + params[:content]
225
+ path = Iatelier.configuration.storage_dir + params[:database].to_s + self.class.name.downcase + '/' + self.id.to_s
226
+ Dir.mkdir(path) unless File.exists?(path)
227
+ File.open(path + '/main.md', 'w+') do |file|
228
+ file.puts params[:content]
229
+ end
230
+ puts 'updating loc!!! ' + self.id.to_s
231
+ self.update(loc: self.id.to_s)
232
+ self.save
233
+ puts self.loc.to_s
172
234
  end
173
- end
235
+ end
@@ -6,4 +6,4 @@ end
6
6
  class People < ApplicationRecord
7
7
  has_many :peopleables
8
8
  self.table_name = "peoples"
9
- end
9
+ end
@@ -11,10 +11,9 @@
11
11
  @stack('description')
12
12
  ">
13
13
 
14
-
15
- <script type="text/javascript" src="/assets/iatelier-analog.js"></script>
16
-
17
- <link rel="stylesheet" href="/assets/iatelier.css">
14
+
15
+ <%= javascript "iatelier-analog.js" %>
16
+ <%= stylesheet "iatelier.css" %>
18
17
  <!-- <link rel="stylesheet" href="/lil-plp/atelier/css/selectize.css"> -->
19
18
 
20
19
  <meta name="csrf-token" content="{{ csrf_token() }}">
@@ -16,12 +16,11 @@
16
16
  -if book.dimensions.include? 'description'
17
17
  %label.label Description
18
18
  %input{:class => "form-control pure-input-1", :name => "description", :type => "text", :placeholder => "Description", :value => book.description.try(:value)}
19
-
20
19
  .form-box
21
20
  %label Text
22
21
  %textarea{:name => "content", :class => "text-editor pure-input-1 form-control", :type => "text", :placeholder => "Content of the book ..."}
23
- -unless book.content.nil?
24
- = book.content
22
+ -unless book.content_raw.nil?
23
+ = book.content_raw
25
24
  %div{:class => "grid-large panel-edit"}
26
25
  .form-box
27
26
  = render :partial => 'grouping/keywords'
@@ -29,3 +28,6 @@
29
28
  = render :partial => 'grouping/peoples'
30
29
  .form-box
31
30
  = render :partial => 'grouping/bundles'
31
+ .form-box
32
+ = render :partial => 'dimension/timestamp'
33
+
@@ -0,0 +1,11 @@
1
+ %header Dates
2
+ %div{:class => "c-card__item pure-control-group"}
3
+ .os-form-group
4
+ %label Draft:
5
+ %input{:class => "flatpickr form-control", :name => "timestamp[draft]", :type => "datetime-local", :value => book.timestamp.try(:draft)}
6
+ .os-form-group
7
+ %label Publish:
8
+ %input{:class => "flatpickr form-control", :name => "timestamp[publish]", :type => "datetime-local", :value => book.timestamp.try(:publish)}
9
+ .os-form-group
10
+ %label Amend:
11
+ %input{:class => "flatpickr form-control", :name => "timestamp[amend]", :type => "datetime-local", :value => book.timestamp.try(:amend)}
@@ -1,6 +1,6 @@
1
1
  %div
2
2
  .todo adding errors here!
3
- %form{:class => "atelier-main-form pure-form pure-form-aligned", :action => "/iatelier/analog/#{book.class.name.downcase}/#{book.id}", :method => "POST", :enctype => "multipart/form-data"}
3
+ %form{:class => "atelier-main-form pure-form pure-form-aligned", :action => "/iatelier/#{database}/#{book.class.name.downcase}/#{book.id}", :method => "POST", :enctype => "multipart/form-data"}
4
4
  .form-actions
5
5
  <button type="submit" class="btn btn-default">Edit</button>
6
6
  <input type="hidden" name="_method" value="PATCH">
@@ -1,6 +1,6 @@
1
1
  %div
2
2
  .todo adding errors here!
3
- %form{:class => "atelier-main-form pure-form pure-form-aligned", :action => "/iatelier/analog/#{book.class.name.downcase}/#{book.id}", :method => "POST", :enctype => "multipart/form-data"}
3
+ %form{:class => "atelier-main-form pure-form pure-form-aligned", :action => "/iatelier/#{database}/#{book.class.name.downcase}/#{book.id}", :method => "POST", :enctype => "multipart/form-data"}
4
4
  .form-actions
5
5
  <button type="submit" class="btn btn-default">Create</button>
6
6
  %div
@@ -1,3 +1,3 @@
1
1
  module Iatelier
2
- VERSION = "0.1.8"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -0,0 +1,6 @@
1
+ {
2
+ "/lib/iatelier/assets/javascripts/iatelier-analog.js": "/lib/iatelier/assets/javascripts/iatelier-analog.js",
3
+ "/lib/iatelier/assets/stylesheets/selectize.css": "/lib/iatelier/assets/stylesheets/selectize.css",
4
+ "/lib/iatelier/assets/stylesheets/iatelier.css": "/lib/iatelier/assets/stylesheets/iatelier.css",
5
+ "/lib/iatelier/assets/javascripts/selectize.js": "/lib/iatelier/assets/javascripts/selectize.js"
6
+ }
@@ -1,5 +1,5 @@
1
- var $ = jQuery = require("jquery");
2
- window.$ = window.jQuery = $;
1
+ // var $ = jQuery = require("jquery");
2
+ // window.$ = window.jQuery = $;
3
3
  // Window.$ = Window.jQuery = $
4
4
 
5
5
  import './selectize.js';
@@ -17,10 +17,9 @@ $(".flatpickr").flatpickr({
17
17
  });
18
18
  */
19
19
 
20
- $( document ).ready(function() {
21
- flatpickr(".flatpickr", {
22
- enableTime: true,
23
- dateFormat: "Y-m-d H:i",
24
- });
20
+
21
+ flatpickr(".flatpickr", {
22
+ enableTime: true,
23
+ dateFormat: "Y-m-d H:i",
25
24
  });
26
25