Repository: basemate/matestack-ui-core Branch: main Commit: aaa4800119a7 Files: 206 Total size: 302.9 KB Directory structure: gitextract_mexlutwf/ ├── .dockerignore ├── .gitattributes ├── .gitbook.yaml ├── .github/ │ ├── FUNDING.yml │ ├── issue_template.md │ ├── pull_request_template.md │ └── workflows/ │ └── dockerpush.yml ├── .gitignore ├── .rspec ├── .ruby-version ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Dockerfile.dev ├── Dockerfile.test ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── bin/ │ └── rails ├── ci/ │ ├── Dockerfile.test_5_2_ruby_2_6 │ ├── Dockerfile.test_6_0_ruby_2_6 │ ├── Dockerfile.test_6_1_ruby_2_7 │ ├── Dockerfile.test_6_1_ruby_3_0 │ ├── Dockerfile.test_7_0_ruby_3_0 │ ├── Gemfile.5.2 │ ├── Gemfile.6.0 │ ├── Gemfile.6.1 │ ├── Gemfile.7.0 │ ├── artifacts/ │ │ └── .keep │ └── docker-compose.ci.yml ├── docker-compose.yml ├── docs/ │ ├── README.md │ ├── SUMMARY.md │ ├── components/ │ │ ├── api.md │ │ ├── registry.md │ │ ├── usage-in-isolation.md │ │ ├── usage-on-matestack-layouts.md │ │ ├── usage-on-matestack-pages.md │ │ └── usage-on-rails-views.md │ ├── getting-started/ │ │ ├── hello-world.md │ │ └── installation-update.md │ ├── html-rendering/ │ │ ├── html-rendering.md │ │ ├── integrating-action-view-helpers.md │ │ └── reusing-views-or-partials.md │ ├── layouts/ │ │ ├── api.md │ │ └── rails-controller-integration.md │ ├── migrate-from-2.x-to-3.0.md │ └── pages/ │ ├── api.md │ └── rails-controller-integration.md ├── entrypoint.sh ├── lib/ │ └── matestack/ │ └── ui/ │ ├── component.rb │ ├── core/ │ │ ├── base.rb │ │ ├── component.rb │ │ ├── context.rb │ │ ├── helper.rb │ │ ├── layout.rb │ │ ├── page.rb │ │ ├── properties.rb │ │ ├── slots.rb │ │ ├── tag_helper.rb │ │ └── version.rb │ ├── core.rb │ ├── layout.rb │ └── page.rb ├── matestack-ui-core.gemspec ├── results.txt └── spec/ ├── core_spec_helper.rb ├── dummy/ │ ├── Rakefile │ ├── app/ │ │ ├── assets/ │ │ │ ├── config/ │ │ │ │ └── manifest.js │ │ │ └── images/ │ │ │ └── .keep │ │ ├── channels/ │ │ │ └── application_cable/ │ │ │ ├── channel.rb │ │ │ └── connection.rb │ │ ├── controllers/ │ │ │ ├── application_controller.rb │ │ │ ├── concerns/ │ │ │ │ └── .keep │ │ │ ├── demo_core_controller.rb │ │ │ └── legacy_views/ │ │ │ ├── 0_USED_IN_SPECS_DONT_TOUCH │ │ │ └── pages_controller.rb │ │ ├── helpers/ │ │ │ └── application_helper.rb │ │ ├── javascript/ │ │ │ ├── channels/ │ │ │ │ ├── consumer.js │ │ │ │ └── index.js │ │ │ └── packs/ │ │ │ ├── application.js │ │ │ └── application_core.js │ │ ├── jobs/ │ │ │ └── application_job.rb │ │ ├── mailers/ │ │ │ └── application_mailer.rb │ │ ├── matestack/ │ │ │ ├── components/ │ │ │ │ └── legacy_views/ │ │ │ │ └── pages/ │ │ │ │ ├── 0_USED_IN_SPECS_DONT_TOUCH │ │ │ │ └── viewcontext.rb │ │ │ └── demo/ │ │ │ └── core/ │ │ │ ├── components/ │ │ │ │ └── static_component.rb │ │ │ ├── layout.rb │ │ │ └── pages/ │ │ │ ├── first_page.rb │ │ │ └── second_page.rb │ │ ├── models/ │ │ │ ├── 0_USED_IN_SPECS_DONT_TOUCH │ │ │ ├── application_record.rb │ │ │ ├── concerns/ │ │ │ │ └── .keep │ │ │ ├── dummy_child_model.rb │ │ │ ├── dummy_model.rb │ │ │ └── test_model.rb │ │ └── views/ │ │ ├── _some_partial.html.erb │ │ ├── demo/ │ │ │ ├── 0_USED_IN_SPECS_DONT_TOUCH │ │ │ ├── _header.html.erb │ │ │ └── header.html.erb │ │ ├── layouts/ │ │ │ ├── 0_USED_IN_SPECS_DONT_TOUCH │ │ │ ├── application.html.erb │ │ │ ├── application_core.html.erb │ │ │ └── legacy_views.erb │ │ ├── legacy_views/ │ │ │ └── pages/ │ │ │ ├── 0_USED_IN_SPECS_DONT_TOUCH │ │ │ └── viewcontext_custom_component.html.erb │ │ ├── rails/ │ │ │ ├── 0_USED_IN_SPECS_DONT_TOUCH │ │ │ ├── _some_partial.html.erb │ │ │ └── index.html.erb │ │ └── some_view.html.erb │ ├── bin/ │ │ ├── bundle │ │ ├── rails │ │ ├── rake │ │ ├── setup │ │ ├── update │ │ ├── webpack │ │ ├── webpack-dev-server │ │ └── yarn │ ├── config/ │ │ ├── application.5.2_rb │ │ ├── application.6.0_rb │ │ ├── application.6.1_rb │ │ ├── application.7.0_rb │ │ ├── application.rb │ │ ├── boot.rb │ │ ├── cable.yml │ │ ├── database.yml │ │ ├── environment.rb │ │ ├── environments/ │ │ │ ├── development.rb │ │ │ ├── production.rb │ │ │ └── test.rb │ │ ├── initializers/ │ │ │ ├── application_controller_renderer.rb │ │ │ ├── assets.rb │ │ │ ├── backtrace_silencers.rb │ │ │ ├── content_security_policy.rb │ │ │ ├── cookies_serializer.rb │ │ │ ├── filter_parameter_logging.rb │ │ │ ├── inflections.rb │ │ │ ├── matestack.rb │ │ │ ├── mime_types.rb │ │ │ ├── nested_attrs_error_index_patch.rb │ │ │ └── wrap_parameters.rb │ │ ├── locales/ │ │ │ └── en.yml │ │ ├── puma.rb │ │ ├── routes.rb │ │ ├── spring.rb │ │ ├── storage.yml │ │ ├── webpack/ │ │ │ ├── development.js │ │ │ ├── environment.js │ │ │ ├── production.js │ │ │ └── test.js │ │ └── webpacker.yml │ ├── config.ru │ ├── db/ │ │ ├── migrate/ │ │ │ ├── 20190419174203_create_test_models.rb │ │ │ ├── 20190427134012_create_dummy_models.rb │ │ │ ├── 20190908153924_create_dummy_child_models.rb │ │ │ ├── 20200427170812_create_active_storage_tables.active_storage.rb │ │ │ ├── 20201222161321_add_boolean_value_to_test_models.rb │ │ │ ├── 20210204135043_add_service_name_to_active_storage_blobs.active_storage.rb │ │ │ └── 20210204135044_create_active_storage_variant_records.active_storage.rb │ │ └── schema.rb │ ├── lib/ │ │ └── assets/ │ │ └── .keep │ ├── log/ │ │ └── .keep │ ├── package.json │ ├── postcss.config.js │ └── public/ │ ├── 404.html │ ├── 422.html │ └── 500.html ├── rails_core_spec_helper.rb ├── spec_helper.rb └── test/ └── core/ ├── base/ │ ├── component/ │ │ ├── argument_spec.rb │ │ ├── conditional_rendering_spec.rb │ │ ├── core_namespaces_spec.rb │ │ ├── custom_namespaces_spec.rb │ │ ├── options_spec.rb │ │ ├── partials_spec.rb │ │ ├── prepare_spec.rb │ │ ├── properties_spec.rb │ │ ├── slots_spec.rb │ │ ├── static_rendering_spec.rb │ │ ├── url_params_access_spec.rb │ │ ├── view_context_access_spec.rb │ │ └── yield_spec.rb │ ├── layout/ │ │ ├── layout_resolving_spec.rb │ │ └── layout_spec.rb │ └── page/ │ ├── controller_instance_access_spec.rb │ ├── orchestrates_components_spec.rb │ ├── partials_spec.rb │ ├── prepare_spec.rb │ ├── slots_spec.rb │ ├── url_params_access_spec.rb │ └── view_context_access_spec.rb ├── custom_component_spec.rb ├── html_rendering/ │ ├── action_view_integration.rb │ ├── default_tags_spec.rb │ └── link_spec.rb ├── rails_render_spec.rb ├── support/ │ ├── capybara.rb │ ├── core_spec_utils.rb │ ├── example_controller.rb │ ├── layout.rb │ ├── matestack_components_controller.rb │ ├── matestack_wrapper_layout.rb │ ├── matestack_wrapper_page.rb │ ├── test_controller.rb │ └── xss.rb └── xss_spec.rb ================================================ FILE CONTENTS ================================================ ================================================ FILE: .dockerignore ================================================ node_modules/ spec/dummy/db/*.sqlite3 spec/dummy/db/*.sqlite3-journal spec/dummy/log/*.log spec/dummy/node_modules/ spec/dummy/public/packs/ spec/dummy/public/packs-test/ spec/dummy/yarn-error.log spec/dummy/storage/ spec/dummy/tmp/ builder/db/*.sqlite3 builder/db/*.sqlite3-journal builder/log/*.log builder/node_modules/ builder/yarn-error.log builder/storage/ builder/tmp/ builder/public/packs .idea/ .vscode .byebug_history /coverage ================================================ FILE: .gitattributes ================================================ docs/* linguist-documentation ================================================ FILE: .gitbook.yaml ================================================ root: ./docs/ structure: readme: README.md summary: SUMMARY.md ================================================ FILE: .github/FUNDING.yml ================================================ # These are supported funding model platforms github: [matestack] ================================================ FILE: .github/issue_template.md ================================================ **What is the current behavior?** **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug might get fixed faster if we can run your code and it doesn't have extra dependencies. Add a link to a sample repo and/or any relevant code below:** **What is the expected behavior?** **Which versions of Matestack, and which browser/OS are affected by this issue? Did this work in previous versions of Matestack?** ================================================ FILE: .github/pull_request_template.md ================================================ **Note:** If you submit a feature or bugfix PR, pick **develop** as target branch (and delete this line afterwards). ## Issue https://github.com/matestack/matestack-ui-core/issues/XXX: Short description here ### Changes - [ ] Describe the changes in one or more bulletpoints ### Notes - Let the reviewers know something special ================================================ FILE: .github/workflows/dockerpush.yml ================================================ name: specs on: push: paths-ignore: - 'docs/**' - 'README.md' - 'CHANGELOG.md' jobs: test_7_0_ruby_3_0: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Run tests run: | docker-compose -f ./ci/docker-compose.ci.yml run --rm test_7_0_ruby_3_0 - name: Upload lock files uses: actions/upload-artifact@v2 with: name: lockfiles_test_7_0_ruby_3_0 path: | ./ci/artifacts/Gemfile.lock test_6_1_ruby_3_0: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Run tests run: | docker-compose -f ./ci/docker-compose.ci.yml run --rm test_6_1_ruby_3_0 - name: Upload lock files uses: actions/upload-artifact@v2 with: name: lockfiles_test_6_1_ruby_3_0 path: | ./ci/artifacts/Gemfile.lock test_6_1_ruby_2_7: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Run tests run: | docker-compose -f ./ci/docker-compose.ci.yml run --rm test_6_1_ruby_2_7 - name: Upload lock files uses: actions/upload-artifact@v2 with: name: lockfiles_test_6_1_ruby_2_7 path: | ./ci/artifacts/Gemfile.lock test_6_0_ruby_2_6: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Run tests run: | docker-compose -f ./ci/docker-compose.ci.yml run --rm test_6_0_ruby_2_6 - name: Upload lock files uses: actions/upload-artifact@v2 with: name: lockfiles_test_6_0_ruby_2_6 path: | ./ci/artifacts/Gemfile.lock test_5_2_ruby_2_6: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Run tests run: | docker-compose -f ./ci/docker-compose.ci.yml run --rm test_5_2_ruby_2_6 - name: Upload lock files uses: actions/upload-artifact@v2 with: name: lockfiles_test_5_2_ruby_2_6 path: | ./ci/artifacts/Gemfile.lock ================================================ FILE: .gitignore ================================================ .bundle/ log/*.log node_modules/ coverage/ spec/dummy/db/*.sqlite3 spec/dummy/db/*.sqlite3-journal spec/dummy/log/*.log spec/dummy/node_modules/ spec/dummy/public/packs/ spec/dummy/public/packs-test/ spec/dummy/yarn-error.log spec/dummy/storage/ spec/dummy/tmp/ .idea/ .vscode .byebug_history ================================================ FILE: .rspec ================================================ --require spec_helper ================================================ FILE: .ruby-version ================================================ 2.6.5 ================================================ FILE: CHANGELOG.md ================================================ # Changelog ## v3.0.1 Release - 2022-04-29 ### Bugfixes - fixing layout resolving issue when using the `turbo-rails` gem (like seen in a fresh Rails 7 setup) ## v3.0.0 Release - 2022-03-04 - same as v3.0.0.rc2 ## v3.0.0.rc2 Release - 2022-02-15 ### Bugfixes - fixing ActionView integration when using Ruby 3.x ## v3.0.0.rc1 Release - 2022-02-11 - Please read the [migration guide](docs/migrate-from-2.x-to-3.0.md) ## v2.1.1 Release - 2021-06-30 ### Bugfixes - Fixed clientside Data Access form new nested forms ## v2.1.0 Release - 2021-06-28 ### Improvements - Nested Form Support #558 - Component render? Method #553 - Page Component Cleanup - Docs Cleanup ### Bugfixes - Form Error Reset #539 via #558 - Form File Upload Init File Value #550 ## v2.0.0 Release - 2021-04-12 Please refer to the [migration guide](./docs/migrate-from-1.x-to-2.0.md) ## v1.5.0 Release - 2021-03-07 ### Improvements - NPM package usage ## v1.4.0 Release - 2021-02-05 ### Improvements - Ruby 3 support - Vue update to 2.6.12 - Vuex update to 3.6.2 - Gemspec update clarifying that Rails below 5.2 is not supported (EOL versions anyway!) - CI test runs against multiple Rails/Ruby version combination ### Bugfixes - Webpacker 6 support #500 ### Security bumps - Various version bumps triggered through dependabot ## v1.3.2 Release - 2021-01-11 ### Bugfixes - Fixes #503 new vue-turbolinks v2.2.0 causes error on webpacker compile ### Security bumps - Various version bumps triggered through dependabot ## v1.3.1 Release - 2020-12-28 ### Bugfixes - Fixes #497 Cable component throws browser error when initial content contains form component ## v1.3.0 Release - 2020-12-22 ### Potential breaking change If you have used a `form_submit` component like this: ```ruby form_submit do button text: "Submit me!", attributes: { "v-bind:disabled": "loading" } end ``` in order to disable the the button during submission of the form, please turn `loading` into `loading()`: ```ruby form_submit do button text: "Submit me!", attributes: { "v-bind:disabled": "loading()" } end ``` If you have implemented your own form components, please adjust them as described in the customize section of each form component. Most likely, you now have to provide exactly one root element per form component due to the reworked form components. ### Improvements - Splitted form API docs into multiple files - Implements #474 Add HTML `