Skip to content

Commit e05a6c0

Browse files
authored
Merge pull request #8767 from marmelab/gif-to-webm
[Doc] Convert GIF files to WebM
2 parents 6b8386e + 8ab5ea5 commit e05a6c0

220 files changed

Lines changed: 586 additions & 119 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/AppBar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export const MyAppBar = () => (
228228
If your app uses [authentication](./Authentication.md), the `<AppBar>` component displays a button to display the user menu on the right side. By default, the user menu only contains a logout button.
229229

230230
<video controls autoplay muted loop width="100%">
231-
<source src="./img/AppBar-user-menu.webm" type="video/webm">
231+
<source src="./img/AppBar-user-menu.webm" type="video/webm"/>
232232
Your browser does not support the video tag.
233233
</video>
234234

@@ -440,7 +440,7 @@ export const MyLayout = (props) => (
440440
By default, users can override the page title [in configurable mode](./Features.md#configurable-ui).
441441

442442
<video controls autoplay muted loop width="100%">
443-
<source src="./img/TitleConfigurable.webm" type="video/webm">
443+
<source src="./img/TitleConfigurable.webm" type="video/webm"/>
444444
Your browser does not support the video tag.
445445
</video>
446446

docs/Architecture.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ We spend a great deal of time refining the UI to make it as intuitive as possibl
105105

106106
React-admin produces a user interface that is voluntarily bland by default because we want to emphasize content rather than chrome.
107107

108-
![Sort Button](./img/sort-button.gif)
108+
<video controls autoplay muted loop>
109+
<source src="./img/sort-button.webm" type="video/webm"/>
110+
Your browser does not support the video tag.
111+
</video>
112+
109113

110114
As for the developer experience, react-admin is constantly evolving to find the sweet spot between an intuitive API, power user features, not too much magic, and just enough documentation. The core team are the first testers of react-admin, and pay attention to the productivity, debuggability, discoverability, performance, and robustness of all the hooks and components.
111115

docs/ArrayInput.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ title: "The ArrayInput Component"
77

88
To edit arrays of data embedded inside a record, `<ArrayInput>` creates a list of sub-forms.
99

10-
![ArrayInput](./img/array-input.gif)
10+
<video controls autoplay muted loop>
11+
<source src="./img/array-input.webm" type="video/webm"/>
12+
Your browser does not support the video tag.
13+
</video>
14+
1115

1216
`<ArrayInput>` allows editing of embedded arrays, like the `items` field in the following `order` record:
1317

docs/AuthProviderWriting.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,11 @@ export default {
320320
};
321321
```
322322
323-
![Logout button](./img/logout.gif)
323+
<video controls autoplay muted loop>
324+
<source src="./img/logout.webm" type="video/webm"/>
325+
Your browser does not support the video tag.
326+
</video>
327+
324328
325329
The `authProvider.logout()` method is also a good place to notify the authentication backend that the user credentials are no longer valid after logout.
326330

docs/Authentication.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ title: "security"
55

66
# Security
77

8-
![Login](./img/login.gif)
8+
<video controls autoplay muted loop>
9+
<source src="./img/login.webm" type="video/webm"/>
10+
Your browser does not support the video tag.
11+
</video>
12+
913

1014
React-admin lets you secure your admin app with the authentication strategy of your choice. Since there are many possible strategies (Basic Auth, JWT, OAuth, etc.), react-admin delegates authentication logic to an `authProvider`.
1115

docs/AutocompleteArrayInput.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ title: "The AutocompleteArrayInput Component"
88
To let users choose multiple values in a list using a dropdown with autocompletion, use `<AutocompleteArrayInput>`.
99
It renders using Material UI [Autocomplete](https://mui.com/material-ui/react-autocomplete/).
1010

11-
![AutocompleteArrayInput](./img/autocomplete-array-input.gif)
11+
<video controls autoplay muted loop>
12+
<source src="./img/autocomplete-array-input.webm" type="video/webm"/>
13+
Your browser does not support the video tag.
14+
</video>
15+
1216

1317
This input allows editing values that are arrays of scalar values, e.g. `[123, 456]`.
1418

@@ -133,7 +137,11 @@ const choices = possibleValues.map(value => ({ id: value, name: ucfirst(value) }
133137

134138
To allow users to add new options, pass a React element as the `create` prop. `<AutocompleteArrayInput>` will then render a "Create" option at the bottom of the choices list. When clicked, it will render the create element.
135139

136-
![create option](./img/autocomplete-array-input-create.gif)
140+
<video controls autoplay muted loop>
141+
<source src="./img/autocomplete-array-input-create.webm" type="video/webm"/>
142+
Your browser does not support the video tag.
143+
</video>
144+
137145

138146
{% raw %}
139147
```jsx

docs/AutocompleteInput.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ title: "The AutocompleteInput Component"
88
To let users choose a value in a list using a dropdown with autocompletion, use `<AutocompleteInput>`.
99
It renders using [Material UI's `<Autocomplete>`](https://mui.com/material-ui/react-autocomplete/).
1010

11-
![AutocompleteInput](./img/autocomplete-input.gif)
11+
<video controls autoplay muted loop>
12+
<source src="./img/autocomplete-input.webm" type="video/webm"/>
13+
Your browser does not support the video tag.
14+
</video>
15+
1216

1317
This input allows editing record fields that are scalar values, e.g. `123`, `'admin'`, etc.
1418

docs/BooleanInput.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ title: "The BooleanInput Component"
77

88
`<BooleanInput />` renders a switch allowing users to set the value `true` or `false` to a record field.
99

10-
![BooleanInput](./img/boolean-input.gif)
10+
<video controls autoplay muted loop>
11+
<source src="./img/boolean-input.webm" type="video/webm"/>
12+
Your browser does not support the video tag.
13+
</video>
14+
1115

1216
**Tip**: This input doesn't let users set a `null` value - only `true` or `false`. Use the [`<NullableBooleanInput />`](./NullableBooleanInput.md) component if you have to handle non-required booleans.
1317

docs/Buttons.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ export const PostList = () => (
256256

257257
This button is an internal component used by react-admin in [the Filter button/form combo](./FilteringTutorial.md#the-filter-buttonform-combo).
258258

259-
![List Filters](./img/list_filter.gif)
259+
<video controls autoplay muted loop>
260+
<source src="./img/list_filter.webm" type="video/webm"/>
261+
Your browser does not support the video tag.
262+
</video>
263+
260264

261265
#### `sx`: CSS API
262266

@@ -365,7 +369,11 @@ To override the style of all instances of `<SkipNavigationButton>` using the [Ma
365369

366370
The `<MenuItemLink>` component displays a menu item with a label and an icon - or only the icon with a tooltip when the sidebar is minimized. It also handles the automatic closing of the menu on tap on mobile.
367371

368-
![custom menu icons](./img/custom-menu.gif)
372+
<video controls autoplay muted loop>
373+
<source src="./img/custom-menu.webm" type="video/webm"/>
374+
Your browser does not support the video tag.
375+
</video>
376+
369377

370378
| Prop | Required | Type | Default | Description |
371379
| ------------- | -------- | -------------------- | ------- | ---------------------------------------- |

docs/CheckboxGroupInput.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ title: "The CheckboxGroupInput Component"
77

88
If you want to let the user choose multiple values among a list of possible values by showing them all, `<CheckboxGroupInput>` is the right component.
99

10-
![CheckboxGroupInput](./img/checkbox-group-input.gif)
10+
<video controls autoplay muted loop>
11+
<source src="./img/checkbox-group-input.webm" type="video/webm"/>
12+
Your browser does not support the video tag.
13+
</video>
14+
1115

1216
This input allows editing values that are arrays of scalar values, e.g. `[123, 456]`.
1317

0 commit comments

Comments
 (0)