katalyst-content 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +95 -0
- data/app/assets/config/katalyst-content.js +1 -0
- data/app/assets/javascripts/controllers/content/editor/container_controller.js +113 -0
- data/app/assets/javascripts/controllers/content/editor/item_controller.js +45 -0
- data/app/assets/javascripts/controllers/content/editor/list_controller.js +105 -0
- data/app/assets/javascripts/controllers/content/editor/new_item_controller.js +12 -0
- data/app/assets/javascripts/controllers/content/editor/status_bar_controller.js +22 -0
- data/app/assets/javascripts/utils/content/editor/container.js +52 -0
- data/app/assets/javascripts/utils/content/editor/item.js +245 -0
- data/app/assets/javascripts/utils/content/editor/rules-engine.js +177 -0
- data/app/assets/stylesheets/katalyst/content/_index.scss +31 -0
- data/app/assets/stylesheets/katalyst/content/editor/_icon.scss +17 -0
- data/app/assets/stylesheets/katalyst/content/editor/_index.scss +145 -0
- data/app/assets/stylesheets/katalyst/content/editor/_item-actions.scss +93 -0
- data/app/assets/stylesheets/katalyst/content/editor/_item-rules.scss +19 -0
- data/app/assets/stylesheets/katalyst/content/editor/_new-items.scss +39 -0
- data/app/assets/stylesheets/katalyst/content/editor/_status-bar.scss +87 -0
- data/app/controllers/katalyst/content/application_controller.rb +8 -0
- data/app/controllers/katalyst/content/items_controller.rb +70 -0
- data/app/helpers/katalyst/content/application_helper.rb +8 -0
- data/app/helpers/katalyst/content/editor/base.rb +44 -0
- data/app/helpers/katalyst/content/editor/container.rb +41 -0
- data/app/helpers/katalyst/content/editor/item.rb +67 -0
- data/app/helpers/katalyst/content/editor/list.rb +41 -0
- data/app/helpers/katalyst/content/editor/new_item.rb +53 -0
- data/app/helpers/katalyst/content/editor/status_bar.rb +57 -0
- data/app/helpers/katalyst/content/editor_helper.rb +42 -0
- data/app/models/concerns/katalyst/content/container.rb +100 -0
- data/app/models/concerns/katalyst/content/garbage_collection.rb +31 -0
- data/app/models/concerns/katalyst/content/has_tree.rb +63 -0
- data/app/models/concerns/katalyst/content/version.rb +33 -0
- data/app/models/katalyst/content/content.rb +21 -0
- data/app/models/katalyst/content/item.rb +36 -0
- data/app/models/katalyst/content/node.rb +21 -0
- data/app/models/katalyst/content/types/nodes_type.rb +42 -0
- data/app/views/active_storage/blobs/_blob.html.erb +14 -0
- data/app/views/katalyst/content/contents/_content.html+form.erb +39 -0
- data/app/views/katalyst/content/contents/_content.html.erb +5 -0
- data/app/views/katalyst/content/editor/_item.html.erb +11 -0
- data/app/views/katalyst/content/editor/_list_item.html.erb +14 -0
- data/app/views/katalyst/content/editor/_new_item.html.erb +3 -0
- data/app/views/katalyst/content/editor/_new_items.html.erb +5 -0
- data/app/views/katalyst/content/items/_item.html+form.erb +34 -0
- data/app/views/katalyst/content/items/_item.html.erb +3 -0
- data/app/views/katalyst/content/items/edit.html.erb +4 -0
- data/app/views/katalyst/content/items/new.html.erb +4 -0
- data/app/views/katalyst/content/items/update.turbo_stream.erb +7 -0
- data/app/views/layouts/action_text/contents/_content.html.erb +3 -0
- data/config/importmap.rb +8 -0
- data/config/locales/en.yml +12 -0
- data/config/routes.rb +3 -0
- data/db/migrate/20220913003839_create_katalyst_content_items.rb +17 -0
- data/lib/katalyst/content/config.rb +18 -0
- data/lib/katalyst/content/engine.rb +36 -0
- data/lib/katalyst/content/version.rb +7 -0
- data/lib/katalyst/content.rb +19 -0
- data/lib/tasks/yarn.rake +18 -0
- data/spec/factories/katalyst/content/items.rb +16 -0
- metadata +103 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
FactoryBot.define do
|
4
|
+
factory :katalyst_content_item, class: "Katalyst::Content::Item" do
|
5
|
+
heading { Faker::Lorem.word }
|
6
|
+
show_heading { true }
|
7
|
+
background { Katalyst::Content.config.backgrounds.sample }
|
8
|
+
end
|
9
|
+
|
10
|
+
factory :katalyst_content_content, class: "Katalyst::Content::Content" do
|
11
|
+
heading { Faker::Lorem.word }
|
12
|
+
show_heading { true }
|
13
|
+
background { Katalyst::Content.config.backgrounds.sample }
|
14
|
+
content { Faker::Hacker.say_something_smart }
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: katalyst-content
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Katalyst Interactive
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
- developers@katalyst.com.au
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- LICENSE.txt
|
21
|
+
- README.md
|
22
|
+
- app/assets/config/katalyst-content.js
|
23
|
+
- app/assets/javascripts/controllers/content/editor/container_controller.js
|
24
|
+
- app/assets/javascripts/controllers/content/editor/item_controller.js
|
25
|
+
- app/assets/javascripts/controllers/content/editor/list_controller.js
|
26
|
+
- app/assets/javascripts/controllers/content/editor/new_item_controller.js
|
27
|
+
- app/assets/javascripts/controllers/content/editor/status_bar_controller.js
|
28
|
+
- app/assets/javascripts/utils/content/editor/container.js
|
29
|
+
- app/assets/javascripts/utils/content/editor/item.js
|
30
|
+
- app/assets/javascripts/utils/content/editor/rules-engine.js
|
31
|
+
- app/assets/stylesheets/katalyst/content/_index.scss
|
32
|
+
- app/assets/stylesheets/katalyst/content/editor/_icon.scss
|
33
|
+
- app/assets/stylesheets/katalyst/content/editor/_index.scss
|
34
|
+
- app/assets/stylesheets/katalyst/content/editor/_item-actions.scss
|
35
|
+
- app/assets/stylesheets/katalyst/content/editor/_item-rules.scss
|
36
|
+
- app/assets/stylesheets/katalyst/content/editor/_new-items.scss
|
37
|
+
- app/assets/stylesheets/katalyst/content/editor/_status-bar.scss
|
38
|
+
- app/controllers/katalyst/content/application_controller.rb
|
39
|
+
- app/controllers/katalyst/content/items_controller.rb
|
40
|
+
- app/helpers/katalyst/content/application_helper.rb
|
41
|
+
- app/helpers/katalyst/content/editor/base.rb
|
42
|
+
- app/helpers/katalyst/content/editor/container.rb
|
43
|
+
- app/helpers/katalyst/content/editor/item.rb
|
44
|
+
- app/helpers/katalyst/content/editor/list.rb
|
45
|
+
- app/helpers/katalyst/content/editor/new_item.rb
|
46
|
+
- app/helpers/katalyst/content/editor/status_bar.rb
|
47
|
+
- app/helpers/katalyst/content/editor_helper.rb
|
48
|
+
- app/models/concerns/katalyst/content/container.rb
|
49
|
+
- app/models/concerns/katalyst/content/garbage_collection.rb
|
50
|
+
- app/models/concerns/katalyst/content/has_tree.rb
|
51
|
+
- app/models/concerns/katalyst/content/version.rb
|
52
|
+
- app/models/katalyst/content/content.rb
|
53
|
+
- app/models/katalyst/content/item.rb
|
54
|
+
- app/models/katalyst/content/node.rb
|
55
|
+
- app/models/katalyst/content/types/nodes_type.rb
|
56
|
+
- app/views/active_storage/blobs/_blob.html.erb
|
57
|
+
- app/views/katalyst/content/contents/_content.html+form.erb
|
58
|
+
- app/views/katalyst/content/contents/_content.html.erb
|
59
|
+
- app/views/katalyst/content/editor/_item.html.erb
|
60
|
+
- app/views/katalyst/content/editor/_list_item.html.erb
|
61
|
+
- app/views/katalyst/content/editor/_new_item.html.erb
|
62
|
+
- app/views/katalyst/content/editor/_new_items.html.erb
|
63
|
+
- app/views/katalyst/content/items/_item.html+form.erb
|
64
|
+
- app/views/katalyst/content/items/_item.html.erb
|
65
|
+
- app/views/katalyst/content/items/edit.html.erb
|
66
|
+
- app/views/katalyst/content/items/new.html.erb
|
67
|
+
- app/views/katalyst/content/items/update.turbo_stream.erb
|
68
|
+
- app/views/layouts/action_text/contents/_content.html.erb
|
69
|
+
- config/importmap.rb
|
70
|
+
- config/locales/en.yml
|
71
|
+
- config/routes.rb
|
72
|
+
- db/migrate/20220913003839_create_katalyst_content_items.rb
|
73
|
+
- lib/katalyst/content.rb
|
74
|
+
- lib/katalyst/content/config.rb
|
75
|
+
- lib/katalyst/content/engine.rb
|
76
|
+
- lib/katalyst/content/version.rb
|
77
|
+
- lib/tasks/yarn.rake
|
78
|
+
- spec/factories/katalyst/content/items.rb
|
79
|
+
homepage: https://github.com/katalyst/content
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata:
|
83
|
+
rubygems_mfa_required: 'true'
|
84
|
+
post_install_message:
|
85
|
+
rdoc_options: []
|
86
|
+
require_paths:
|
87
|
+
- lib
|
88
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '3.0'
|
93
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
requirements: []
|
99
|
+
rubygems_version: 3.3.7
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: Rich content page builder and editor
|
103
|
+
test_files: []
|