You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ nav_order: 5
10
10
11
11
## main
12
12
13
+
**ViewComponent has moved to a new organization: [https://github.com/viewcomponent/view_component](https://github.com/viewcomponent/view_component). See [https://github.com/viewcomponent/view_component/issues/1424](https://github.com/viewcomponent/view_component/issues/1424) for more details.**
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ _ViewComponent is intended to be a safe, welcoming space for collaboration. By p
10
10
11
11
Hi there! We're thrilled that you'd like to contribute to ViewComponent. Your help is essential for keeping it great.
12
12
13
-
If you have any substantial changes that you would like to make, please [open an issue](http://github.com/github/view_component/issues/new) first to discuss them with us.
13
+
If you have any substantial changes that you would like to make, please [open an issue](http://github.com/viewcomponent/view_component/issues/new) first to discuss them with us.
14
14
15
15
Maintainers tend to focus on areas of the project that are useful to them and their employers, but we're happy to pair with members of the community to enable work on other parts.
16
16
17
-
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [MIT license](https://github.com/github/view_component/blob/main/LICENSE.txt).
17
+
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [MIT license](https://github.com/viewcomponent/view_component/blob/main/LICENSE.txt).
18
18
19
19
## Reporting bugs
20
20
@@ -41,14 +41,14 @@ The codespace environment includes a minimal Rails app with ViewComponent instal
41
41
42
42
## Submitting a pull request
43
43
44
-
1.[Fork](https://github.com/github/view_component/fork) and clone the repository.
44
+
1.[Fork](https://github.com/viewcomponent/view_component/fork) and clone the repository.
45
45
1. Configure and install the dependencies: `bundle exec appraisal install`.
46
46
2. Make sure the tests pass: `bundle exec appraisal rake` (see below for specific cases).
47
47
3. Create a new branch: `git checkout -b my-branch-name`.
48
48
4. Add tests, make the change, and make sure the tests still pass.
49
49
5. Add an entry to the top of `docs/CHANGELOG.md` for the changes, no matter how small.
50
50
6. If it's your first time contributing, add yourself to `docs/index.md`.
51
-
7. Push to the fork and [submit a pull request](https://github.com/github/view_component/compare).
51
+
7. Push to the fork and [submit a pull request](https://github.com/viewcomponent/view_component/compare).
52
52
8. Wait for the pull request to be reviewed and merged.
53
53
54
54
### Running a subset of tests
@@ -61,7 +61,7 @@ bundle exec m test/view_component/YOUR_COMPONENT_test.rb:line_number
61
61
62
62
### Running tests for a specific version of Rails
63
63
64
-
Specify one of the supported versions listed in [Appraisals](https://github.com/github/view_component/blob/main/Appraisals):
64
+
Specify one of the supported versions listed in [Appraisals](https://github.com/viewcomponent/view_component/blob/main/Appraisals):
Copy file name to clipboardExpand all lines: docs/compatibility.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ nav_order: 6
8
8
9
9
## Ruby & Rails
10
10
11
-
ViewComponent is [supported natively](https://edgeguides.rubyonrails.org/layouts_and_rendering.html#rendering-objects) in Rails 6.1, and compatible with Rails 5.0+ via an included [monkey patch](https://github.com/github/view_component/blob/main/lib/view_component/render_monkey_patch.rb).
11
+
ViewComponent is [supported natively](https://edgeguides.rubyonrails.org/layouts_and_rendering.html#rendering-objects) in Rails 6.1, and compatible with Rails 5.0+ via an included [monkey patch](https://github.com/viewcomponent/view_component/blob/main/lib/view_component/render_monkey_patch.rb).
12
12
13
-
ViewComponent is tested for compatibility [with combinations of](https://github.com/github/view_component/blob/22e3d4ccce70d8f32c7375e5a5ccc3f70b22a703/.github/workflows/ruby_on_rails.yml#L10-L11) Ruby v2.5+ and Rails v5+. Ruby 2.4 is likely compatible, but is no longer tested.
13
+
ViewComponent is tested for compatibility [with combinations of](https://github.com/viewcomponent/view_component/blob/22e3d4ccce70d8f32c7375e5a5ccc3f70b22a703/.github/workflows/ruby_on_rails.yml#L10-L11) Ruby v2.5+ and Rails v5+. Ruby 2.4 is likely compatible, but is no longer tested.
14
14
15
15
## Template languages
16
16
@@ -21,7 +21,7 @@ ViewComponent is tested against ERB, Haml, and Slim, but it should support most
21
21
Since 2.13.0
22
22
{: .label }
23
23
24
-
To [avoid conflicts](https://github.com/github/view_component/issues/288) between ViewComponent and other gems that also monkey patch the `render` method, it's possible to configure ViewComponent to not include the render monkey patch:
24
+
To [avoid conflicts](https://github.com/viewcomponent/view_component/issues/288) between ViewComponent and other gems that also monkey patch the `render` method, it's possible to configure ViewComponent to not include the render monkey patch:
25
25
26
26
`config.view_component.render_monkey_patch_enabled = false # defaults to true`
Copy file name to clipboardExpand all lines: docs/guide/collections.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ class ProductComponent < ViewComponent::Base
25
25
end
26
26
```
27
27
28
-
[By default](https://github.com/github/view_component/blob/89f8fab4609c1ef2467cf434d283864b3c754473/lib/view_component/base.rb#L249), the component name is used to define the parameter passed into the component from the collection.
28
+
[By default](https://github.com/viewcomponent/view_component/blob/89f8fab4609c1ef2467cf434d283864b3c754473/lib/view_component/base.rb#L249), the component name is used to define the parameter passed into the component from the collection.
Copy file name to clipboardExpand all lines: docs/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ ViewComponents use a standard Ruby initializer that clearly defines what's neede
81
81
82
82
### Performance
83
83
84
-
Based on several [benchmarks](https://github.com/github/view_component/blob/main/performance/benchmark.rb), ViewComponents are ~10x faster than partials in real-world use-cases.
84
+
Based on several [benchmarks](https://github.com/viewcomponent/view_component/blob/main/performance/benchmark.rb), ViewComponents are ~10x faster than partials in real-world use-cases.
85
85
86
86
The primary optimization is pre-compiling all ViewComponent templates at application boot, instead of at runtime like traditional Rails views.
87
87
@@ -229,8 +229,8 @@ ViewComponent is built by over a hundred members of the community, including:
229
229
*[Within3](https://www.within3.com/)
230
230
*[Wrapbook](https://wrapbook.com/)
231
231
232
-
Using ViewComponent? [Send a pull request](https://github.com/github/view_component/edit/main/docs/index.md) to update this list!
233
-
You can also check out [how various projects use ViewComponent](https://github.com/github/view_component/network/dependents?package_id=UGFja2FnZS0xMDEwNjQxMzYx).
232
+
Using ViewComponent? [Send a pull request](https://github.com/viewcomponent/view_component/edit/main/docs/index.md) to update this list!
233
+
You can also check out [how various projects use ViewComponent](https://github.com/viewcomponent/view_component/network/dependents?package_id=UGFja2FnZS0xMDEwNjQxMzYx).
Copy file name to clipboardExpand all lines: docs/known_issues.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ nav_order: 9
8
8
9
9
## form_for compatibility
10
10
11
-
ViewComponent [isn't compatible](https://github.com/github/view_component/issues/241) with `form_for` helpers by default.
11
+
ViewComponent [isn't compatible](https://github.com/viewcomponent/view_component/issues/241) with `form_for` helpers by default.
12
12
13
13
## Inconsistent controller rendering behavior between Rails versions
14
14
15
15
In versions of Rails < 6.1, rendering a ViewComponent from a controller doesn't include the layout.
16
16
17
17
## Forms don't use the default form builder
18
18
19
-
Calls to form helpers such as `form_with` in ViewComponents [don't use the default form builder](https://github.com/github/view_component/pull/1090#issue-753331927). This is by design, as it allows global state to change the rendered output of a component. Instead, consider passing a form builder into form helpers via the `builder` argument:
19
+
Calls to form helpers such as `form_with` in ViewComponents [don't use the default form builder](https://github.com/viewcomponent/view_component/pull/1090#issue-753331927). This is by design, as it allows global state to change the rendered output of a component. Instead, consider passing a form builder into form helpers via the `builder` argument:
20
20
21
21
```html.erb
22
22
<%= form_for(record, builder: CustomFormBuilder) do |f| %>
Copy file name to clipboardExpand all lines: docs/slots_v1.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ By default, slots can be rendered once per component. They provide an accessor w
12
12
13
13
Slots declared with `collection: true` can be rendered multiple times. They provide an accessor with the pluralized name of the slot (`#rows`), which is an Array of `ViewComponent::Slot` instances.
14
14
15
-
To learn more about the design of the Slots API, see [#348](https://github.com/github/view_component/pull/348) and [#325](https://github.com/github/view_component/discussions/325).
15
+
To learn more about the design of the Slots API, see [#348](https://github.com/viewcomponent/view_component/pull/348) and [#325](https://github.com/viewcomponent/view_component/discussions/325).
0 commit comments