cortex-plugins-core 2.1.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +9 -0
  3. data/.github/PULL_REQUEST_TEMPLATE.md +47 -0
  4. data/.gitignore +82 -0
  5. data/.npmignore +33 -0
  6. data/.rspec +3 -0
  7. data/CODE_OF_CONDUCT.md +74 -0
  8. data/Gemfile +14 -0
  9. data/Gemfile.lock +189 -0
  10. data/app/assets/config/cortex_plugins_core_manifest.js +2 -0
  11. data/app/assets/images/cortex-plugins-core/.keep +0 -0
  12. data/app/assets/stylesheets/cortex-plugins-core/application.scss +1 -2
  13. data/app/cells/plugins/core/cell.rb +2 -4
  14. data/app/cells/plugins/core/content_item_cell.rb +1 -1
  15. data/app/graphql/interfaces/.keep +0 -0
  16. data/app/graphql/types/.keep +0 -0
  17. data/app/models/asset_field_type.rb +1 -1
  18. data/app/models/author_field_type.rb +1 -1
  19. data/app/models/boolean_field_type.rb +1 -1
  20. data/app/models/content_item_field_type.rb +1 -1
  21. data/app/models/date_time_field_type.rb +1 -1
  22. data/app/models/float_field_type.rb +1 -1
  23. data/app/models/integer_field_type.rb +1 -1
  24. data/app/models/tag_field_type.rb +1 -1
  25. data/app/models/text_field_type.rb +1 -1
  26. data/app/models/tree_field_type.rb +1 -1
  27. data/app/models/user_field_type.rb +1 -1
  28. data/app/transactions/get_field_tree_list_transaction.rb +1 -1
  29. data/app/transactions/new_tag_field_item_transaction.rb +1 -1
  30. data/app/transactions/new_user_field_item_transaction.rb +1 -1
  31. data/app/transactions/update_tag_field_item_transaction.rb +1 -1
  32. data/bin/rails +13 -0
  33. data/cortex-plugins-core.gemspec +38 -0
  34. data/lib/cortex/plugins/core/engine.rb +4 -2
  35. data/lib/cortex/plugins/core/version.rb +1 -1
  36. data/lib/tasks/cortex/core/media.rake +10 -10
  37. data/node_package/.babelrc +26 -0
  38. data/node_package/src/actions/helloWorld2ActionCreators.jsx +8 -0
  39. data/node_package/src/components/asset_field_type.jsx +34 -0
  40. data/node_package/src/components/date_time_type.jsx +35 -0
  41. data/node_package/src/components/index.jsx +12 -0
  42. data/node_package/src/components/tag_field_type.jsx +41 -0
  43. data/node_package/src/components/text_field_type.jsx +82 -0
  44. data/node_package/src/constants/helloWorld2Constants.jsx +3 -0
  45. data/node_package/src/containers/HelloWorld2Container.jsx +13 -0
  46. data/node_package/src/index.jsx +15 -0
  47. data/node_package/src/reducers/helloWorld2Reducer.jsx +15 -0
  48. data/node_package/src/startup/HelloWorld2App.jsx +18 -0
  49. data/node_package/src/startup/registration.jsx +8 -0
  50. data/node_package/src/store/helloWorld2Store.jsx +8 -0
  51. data/package.json +43 -0
  52. data/yarn.lock +5229 -0
  53. metadata +33 -6
  54. data/app/assets/stylesheets/cortex-plugins-core/variables/_typography.scss +0 -114
  55. data/lib/tasks/cortex/core/db.rake +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37023c83b4d6c1cb96b6239289e51bf73b7a26db
4
- data.tar.gz: cb56581dbe380f41df79351b9fb01570f373e18e
3
+ metadata.gz: b9cad32949d5f74ed9f5d18ea8a1a285ac6649fb
4
+ data.tar.gz: 0e9879396d1c71d2baac1acc05d7036bf708a16c
5
5
  SHA512:
6
- metadata.gz: e165c1b1383346e92973ba07cdd4ce4ade0aeba076d288ccdb6f63380e42de1e8ad49f5c36909df6a9890540e2f1f43b8cc8d92e5e8fb7e47a67fbbcdd478c54
7
- data.tar.gz: '059e71ef27a688a1adf75350454a6c9770f57b9ada1e69d7f1526aa77b8dd191f6c6c7787ab631d2a76fc607035bd41f0b987b3e1bb2452e124dc7d918e9f564'
6
+ metadata.gz: 58273a515e07535c78da207c508ea27f7b0cfa49f94d8024efe0d4935cab10969f3567ca446c79e1b4b6588ea46bb5552dffb25cfa7af36fd6d8b91df64cb56c
7
+ data.tar.gz: 7cbd046a907235222e48f1ceb943e49efd6b967aadb97cd57d36cec1909e6eea431fb2fe69c4b71183b0f3eb662e83ed21f28a31da0858e45c9c0c143b980151
data/.editorconfig ADDED
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ insert_final_newline = true
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
@@ -0,0 +1,47 @@
1
+ **Purpose**
2
+
3
+
4
+ **JIRA**
5
+
6
+
7
+ **Changes**
8
+ * Improvements and fixes
9
+ *
10
+
11
+ * Changes to developer setup/environment
12
+ *
13
+
14
+ * Architectural changes
15
+ *
16
+
17
+ * Migrations or Steps to Take on Production
18
+ *
19
+
20
+ * Library changes
21
+ *
22
+
23
+ * Side effects
24
+ *
25
+
26
+ **Screenshots**
27
+ * Before
28
+
29
+ * After
30
+
31
+ **Feature Server**
32
+
33
+
34
+ **How to Verify These Changes**
35
+ * Specific pages to visit
36
+ *
37
+
38
+ * Steps to take
39
+ *
40
+
41
+ * Responsive considerations
42
+ *
43
+
44
+ **Relevant PRs/Dependencies**
45
+ *
46
+
47
+ **Additional Information**
data/.gitignore ADDED
@@ -0,0 +1,82 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Build Artifacts
8
+ pkg/
9
+ node_package/lib
10
+ **.gem
11
+
12
+ # Ignore bundler config.
13
+ /.bundle
14
+ /vendor/bundle
15
+
16
+ # Debug
17
+ .byebug_history
18
+
19
+ # OS Files
20
+ .DS_Store
21
+ ._.DS_Store
22
+ .directory
23
+
24
+ # Text-editor/IDE generated files
25
+ *.sublime-workspace
26
+ *.sublime-project
27
+ /.idea
28
+ *.iml
29
+
30
+ *.rbc
31
+ *.sassc
32
+ .sass-cache
33
+ capybara-*.html
34
+ .powrc
35
+ /coverage/
36
+ /spec/tmp
37
+ /spec/examples.txt
38
+ **.orig
39
+ rerun.txt
40
+ pickle-email-*.html
41
+
42
+ # rspec failure tracking
43
+ .rspec_status
44
+
45
+ # Environment
46
+ .rvmrc
47
+ .ruby-version
48
+ .env
49
+
50
+ # Documentation Artifacts
51
+ erd.pdf
52
+
53
+ #
54
+ # Dummy Spec App
55
+ #
56
+
57
+ spec/dummy/public/assets/
58
+ spec/dummy/public/uploads/
59
+ spec/dummy/public/system/
60
+
61
+ # Ignore the default SQLite database.
62
+ spec/dummy/db/*.sqlite3
63
+ spec/dummy/db/*.sqlite3-journal
64
+ spec/dummy/log/*.log
65
+ spec/dummy/node_modules/
66
+ spec/dummy/yarn-error.log
67
+ spec/dummy/storage/
68
+ spec/dummy/tmp/
69
+
70
+ # Ignore all logfiles and tempfiles.
71
+ /spec/dummy/log/*
72
+ /spec/dummy/tmp/*
73
+ !/spec/dummy/log/.keep
74
+ !/spec/dummy/tmp/.keep
75
+
76
+ # Webpacker Pipeline
77
+ npm-debug.log*
78
+ /spec/dummy/public/packs
79
+ /spec/dummy/public/packs-test
80
+ node_modules
81
+ /yarn-error.log
82
+ /spec/dummy/yarn-error.log
data/.npmignore ADDED
@@ -0,0 +1,33 @@
1
+ .gitignore
2
+ .npmignore
3
+ .editorconfig
4
+ .github
5
+ CHANGELOG.md
6
+ Gemfile
7
+ README.md
8
+ app
9
+ coverage
10
+ docs
11
+ examples
12
+ node_modules
13
+ *.gemspec
14
+ *.gem
15
+ Dockerfile_tests
16
+ Gemfile
17
+ Gemfile.lock
18
+ Rakefile
19
+ yarn.lock
20
+ bin
21
+ docker-compose.yml
22
+ etc
23
+ lib
24
+ config
25
+ bin
26
+ app
27
+ rakelib
28
+ ruby-lint.yml
29
+ test
30
+ spec
31
+ node_modules
32
+ tmp
33
+ gen-examples
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at toastercup@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in cortex-plugins-core.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use a debugger
14
+ # gem 'byebug', group: [:development, :test]
data/Gemfile.lock ADDED
@@ -0,0 +1,189 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cortex-plugins-core (3.0.0)
5
+ aws-sdk-s3 (~> 1.5)
6
+ cells (~> 4.1)
7
+ cells-haml (~> 0.0)
8
+ cells-rails (~> 0.0)
9
+ fastimage (~> 2.1)
10
+ image_optim (~> 0.25)
11
+ image_optim_pack (~> 0.5)
12
+ image_processing (~> 0.4)
13
+ jsonb_accessor (~> 1.0)
14
+ mimemagic (~> 0.3)
15
+ mini_magick (~> 4.8)
16
+ rails (>= 5)
17
+ shrine (~> 2.7)
18
+
19
+ GEM
20
+ remote: https://rubygems.org/
21
+ specs:
22
+ actioncable (5.1.4)
23
+ actionpack (= 5.1.4)
24
+ nio4r (~> 2.0)
25
+ websocket-driver (~> 0.6.1)
26
+ actionmailer (5.1.4)
27
+ actionpack (= 5.1.4)
28
+ actionview (= 5.1.4)
29
+ activejob (= 5.1.4)
30
+ mail (~> 2.5, >= 2.5.4)
31
+ rails-dom-testing (~> 2.0)
32
+ actionpack (5.1.4)
33
+ actionview (= 5.1.4)
34
+ activesupport (= 5.1.4)
35
+ rack (~> 2.0)
36
+ rack-test (>= 0.6.3)
37
+ rails-dom-testing (~> 2.0)
38
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
39
+ actionview (5.1.4)
40
+ activesupport (= 5.1.4)
41
+ builder (~> 3.1)
42
+ erubi (~> 1.4)
43
+ rails-dom-testing (~> 2.0)
44
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
45
+ activejob (5.1.4)
46
+ activesupport (= 5.1.4)
47
+ globalid (>= 0.3.6)
48
+ activemodel (5.1.4)
49
+ activesupport (= 5.1.4)
50
+ activerecord (5.1.4)
51
+ activemodel (= 5.1.4)
52
+ activesupport (= 5.1.4)
53
+ arel (~> 8.0)
54
+ activesupport (5.1.4)
55
+ concurrent-ruby (~> 1.0, >= 1.0.2)
56
+ i18n (~> 0.7)
57
+ minitest (~> 5.1)
58
+ tzinfo (~> 1.1)
59
+ arel (8.0.0)
60
+ aws-partitions (1.58.0)
61
+ aws-sdk-core (3.14.0)
62
+ aws-partitions (~> 1.0)
63
+ aws-sigv4 (~> 1.0)
64
+ jmespath (~> 1.0)
65
+ aws-sdk-kms (1.4.0)
66
+ aws-sdk-core (~> 3)
67
+ aws-sigv4 (~> 1.0)
68
+ aws-sdk-s3 (1.8.0)
69
+ aws-sdk-core (~> 3)
70
+ aws-sdk-kms (~> 1)
71
+ aws-sigv4 (~> 1.0)
72
+ aws-sigv4 (1.0.2)
73
+ builder (3.2.3)
74
+ cells (4.1.7)
75
+ declarative-builder (< 0.2.0)
76
+ declarative-option (< 0.2.0)
77
+ tilt (>= 1.4, < 3)
78
+ uber (< 0.2.0)
79
+ cells-haml (0.0.10)
80
+ cells (>= 4.0.1, <= 6.0.0)
81
+ haml (>= 4.1.0.beta.1)
82
+ cells-rails (0.0.8)
83
+ actionpack (>= 3.0)
84
+ cells (>= 4.1.6, < 5.0.0)
85
+ concurrent-ruby (1.0.5)
86
+ crass (1.0.3)
87
+ declarative-builder (0.1.0)
88
+ declarative-option (< 0.2.0)
89
+ declarative-option (0.1.0)
90
+ down (4.2.1)
91
+ erubi (1.7.0)
92
+ exifr (1.3.3)
93
+ fastimage (2.1.1)
94
+ fspath (3.1.0)
95
+ globalid (0.4.1)
96
+ activesupport (>= 4.2.0)
97
+ haml (5.0.4)
98
+ temple (>= 0.8.0)
99
+ tilt
100
+ i18n (0.9.3)
101
+ concurrent-ruby (~> 1.0)
102
+ image_optim (0.26.1)
103
+ exifr (~> 1.2, >= 1.2.2)
104
+ fspath (~> 3.0)
105
+ image_size (~> 1.5)
106
+ in_threads (~> 1.3)
107
+ progress (~> 3.0, >= 3.0.1)
108
+ image_optim_pack (0.5.0.20180124)
109
+ fspath (>= 2.1, < 4)
110
+ image_optim (~> 0.19)
111
+ image_processing (0.4.5)
112
+ image_size (1.5.0)
113
+ in_threads (1.5.0)
114
+ jmespath (1.3.1)
115
+ jsonb_accessor (1.0.0)
116
+ activerecord (>= 5.0)
117
+ activesupport (>= 5.0)
118
+ pg (>= 0.18.1)
119
+ loofah (2.1.1)
120
+ crass (~> 1.0.2)
121
+ nokogiri (>= 1.5.9)
122
+ mail (2.7.0)
123
+ mini_mime (>= 0.1.1)
124
+ method_source (0.9.0)
125
+ mimemagic (0.3.2)
126
+ mini_magick (4.8.0)
127
+ mini_mime (1.0.0)
128
+ mini_portile2 (2.3.0)
129
+ minitest (5.11.3)
130
+ nio4r (2.2.0)
131
+ nokogiri (1.8.2)
132
+ mini_portile2 (~> 2.3.0)
133
+ pg (1.0.0)
134
+ progress (3.4.0)
135
+ rack (2.0.4)
136
+ rack-test (0.8.2)
137
+ rack (>= 1.0, < 3)
138
+ rails (5.1.4)
139
+ actioncable (= 5.1.4)
140
+ actionmailer (= 5.1.4)
141
+ actionpack (= 5.1.4)
142
+ actionview (= 5.1.4)
143
+ activejob (= 5.1.4)
144
+ activemodel (= 5.1.4)
145
+ activerecord (= 5.1.4)
146
+ activesupport (= 5.1.4)
147
+ bundler (>= 1.3.0)
148
+ railties (= 5.1.4)
149
+ sprockets-rails (>= 2.0.0)
150
+ rails-dom-testing (2.0.3)
151
+ activesupport (>= 4.2.0)
152
+ nokogiri (>= 1.6)
153
+ rails-html-sanitizer (1.0.3)
154
+ loofah (~> 2.0)
155
+ railties (5.1.4)
156
+ actionpack (= 5.1.4)
157
+ activesupport (= 5.1.4)
158
+ method_source
159
+ rake (>= 0.8.7)
160
+ thor (>= 0.18.1, < 2.0)
161
+ rake (12.3.0)
162
+ shrine (2.9.0)
163
+ down (~> 4.1)
164
+ sprockets (3.7.1)
165
+ concurrent-ruby (~> 1.0)
166
+ rack (> 1, < 3)
167
+ sprockets-rails (3.2.1)
168
+ actionpack (>= 4.0)
169
+ activesupport (>= 4.0)
170
+ sprockets (>= 3.0.0)
171
+ temple (0.8.0)
172
+ thor (0.20.0)
173
+ thread_safe (0.3.6)
174
+ tilt (2.0.8)
175
+ tzinfo (1.2.5)
176
+ thread_safe (~> 0.1)
177
+ uber (0.1.0)
178
+ websocket-driver (0.6.5)
179
+ websocket-extensions (>= 0.1.0)
180
+ websocket-extensions (0.1.3)
181
+
182
+ PLATFORMS
183
+ ruby
184
+
185
+ DEPENDENCIES
186
+ cortex-plugins-core!
187
+
188
+ BUNDLED WITH
189
+ 1.16.1