tomify 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/tomify/dynamic/global.coffee +10 -10
- data/app/assets/javascripts/tomify-default.js +1 -0
- data/app/assets/javascripts/tomify-dynamic.js +1 -1
- data/app/assets/javascripts/tomify.js +8 -1
- data/app/models/tomify/concerns/page.rb +0 -3
- data/db/migrate/19900000000002_create_settings.rb +5 -5
- data/lib/tomify/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46894bfb42ab884b427ee09afe3d9d43eef11088
|
4
|
+
data.tar.gz: e87e72561204cd28de113947a41f9e70d6a9c764
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0330efeb2753614c08bd2ce715856b1fbb0acf66467bddd35395ea90c7d59876326c6e617c3babeed355013085c289176539691821f1a2758ab48452146dfafc
|
7
|
+
data.tar.gz: 5d97b97430a8a3dbbf6db245eb4c174bb0d28cfab3758c5ac9add946e795ce2a447a383073b63beac0170255e9f9b05323226763eb65a8ced9dfbc704d42fcd5
|
@@ -1,16 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
Store.create "Messages", []
|
2
|
+
Store.create "Settings", []
|
3
|
+
Store.create "User", {}
|
4
4
|
env = Store.create "Env", {}
|
5
5
|
env.on "change", ->
|
6
|
-
current =
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
current = Store.find("Env").get()
|
7
|
+
Store.find("Messages").set current.messages
|
8
|
+
Store.find("Settings").set current.settings
|
9
|
+
Store.find("User").set current.user ? {}
|
10
10
|
|
11
|
-
$ ->
|
11
|
+
$ -> Store.find("Env").set(window.env)
|
12
12
|
|
13
|
-
@message = (message) ->
|
13
|
+
@message = (message) -> Store.find("Messages").push message
|
14
14
|
@setting = (name) ->
|
15
|
-
setting =
|
15
|
+
setting = Store.find("Settings").get().find (setting) -> setting.name == name
|
16
16
|
setting?.value
|
@@ -0,0 +1 @@
|
|
1
|
+
//= require_tree ./tomify/default
|
@@ -1 +1,8 @@
|
|
1
|
-
//=
|
1
|
+
//= require jquery
|
2
|
+
//= require jquery.turbolinks
|
3
|
+
//= require jquery_ujs
|
4
|
+
//= require bootstrap
|
5
|
+
//= require tomify-dynamic
|
6
|
+
//= require tomify/turbolinks/react
|
7
|
+
//= require turbolinks
|
8
|
+
//= require tomify/turbolinks/compatibility
|
@@ -2,9 +2,6 @@ module Tomify::Concerns::Page
|
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
5
|
-
mount_uploader :cover_image, CoverImageUploader
|
6
|
-
mount_uploader :share_image, ShareImageUploader
|
7
|
-
|
8
5
|
belongs_to :sidebar
|
9
6
|
belongs_to :parent, class_name: self
|
10
7
|
has_many :children, class_name: self, foreign_key: :parent_id
|
@@ -1,13 +1,13 @@
|
|
1
1
|
class CreateSettings < ActiveRecord::Migration[5.0]
|
2
2
|
def change
|
3
3
|
create_table :settings do |t|
|
4
|
-
t.boolean :public, default:
|
5
|
-
t.string :type,
|
6
|
-
t.string :name,
|
4
|
+
t.boolean :public, default: false, null: false, index: true
|
5
|
+
t.string :type, null: false, index: true
|
6
|
+
t.string :name, null: false, index: true
|
7
7
|
t.string :value
|
8
|
-
t.json :json, default: {},
|
8
|
+
t.json :json, default: {}, null: false
|
9
9
|
|
10
|
-
t.timestamps
|
10
|
+
t.timestamps null: false
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
data/lib/tomify/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tomify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Prats
|
@@ -249,6 +249,7 @@ files:
|
|
249
249
|
- app/assets/images/tomify/gifs/sneer.gif
|
250
250
|
- app/assets/images/tomify/gifs/wind.gif
|
251
251
|
- app/assets/images/tomify/gifs/woods.gif
|
252
|
+
- app/assets/javascripts/tomify-default.js
|
252
253
|
- app/assets/javascripts/tomify-dynamic.js
|
253
254
|
- app/assets/javascripts/tomify.js
|
254
255
|
- app/assets/javascripts/tomify/default/array.coffee
|