Skip to content

Commit d5a8ab9

Browse files
committed
update assets source paths
1 parent feca680 commit d5a8ab9

15 files changed

Lines changed: 35 additions & 35 deletions

docs_headless/src/content/docs/create-edit/useUnique.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Validating the uniqueness of a field is a common requirement so React-admin prov
77
It will call the [`dataProvider.getList`](../data-fetching/DataProviderWriting.md#getlist) method with a filter to check whether a record exists with the current value of the input for the field matching the input source.
88

99
<video controls autoplay playsinline muted loop>
10-
<source src="../img/useUnique.webm" type="video/webm"/>
11-
<source src="../img/useUnique.mp4" type="video/mp4"/>
10+
<source src="../../img/useUnique.webm" type="video/webm"/>
11+
<source src="../../img/useUnique.mp4" type="video/mp4"/>
1212
Your browser does not support the video tag.
1313
</video>
1414

docs_headless/src/content/docs/data-fetching/useInfiniteGetList.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ title: "useInfiniteGetList"
55
This hook calls `dataProvider.getList()` when the component mounts. It returns a list of "pages" of records, and a callback to fetch the previous or next page. It's ideal to render a feed of events or messages, where the total number of records is unknown, and the user requires the next page via a button (or a scroll listener).
66

77
<video controls autoplay playsinline muted loop>
8-
<source src="../img/useInfiniteGetList.webm" type="video/webm"/>
9-
<source src="../img/useInfiniteGetList.mp4" type="video/mp4"/>
8+
<source src="../../img/useInfiniteGetList.webm" type="video/webm"/>
9+
<source src="../../img/useInfiniteGetList.mp4" type="video/mp4"/>
1010
Your browser does not support the video tag.
1111
</video>
1212

docs_headless/src/content/docs/guides/Architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ React-admin relies on a several design decisions that structure its codebase.
1010

1111
React-admin is specifically designed to build [Single-Page Applications (SPA)](https://en.wikipedia.org/wiki/Single-page_application). In a react-admin app, the browser fetches the required HTML, CSS, and JavaScript to render the application only once. Subsequently, data is fetched from APIs through AJAX calls. This is in contrast to traditional web applications, where the browser fetches a new HTML page for each screen.
1212

13-
<img class="no-shadow" src="../img/SPA-lifecycle.png" alt="SPA lifecycle" />
13+
<img class="no-shadow" src="../../img/SPA-lifecycle.png" alt="SPA lifecycle" />
1414

1515
The SPA architecture ensures that react-admin apps are [exceptionally fast](./Features.md#fast), easy to host, and compatible with existing APIs without requiring a dedicated backend.
1616

@@ -58,7 +58,7 @@ The `<Resource>` component allows react-admin to automatically link CRUD pages b
5858

5959
React-admin does not make any assumptions about the specific structure of your API. Instead, it defines its own syntax for data fetching, authentication, internationalization, and preferences. To interact with your API, react-admin relies on adapters called **providers**.
6060

61-
<img class="no-shadow" src="../img/providers.png" alt="Providers" />
61+
<img class="no-shadow" src="../../img/providers.png" alt="Providers" />
6262

6363
For example, to fetch a list of records from the API, you would use the `dataProvider` object as follows:
6464

docs_headless/src/content/docs/guides/DataFetchingGuide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can use ra-core to build an admin app on top of any API, whether it uses RES
1010

1111
In an ra-core app, you don't write API calls using `fetch` or `axios`. Instead, you communicate with your API through an object called the `dataProvider`.
1212

13-
<img src="../img/data-provider.png" class="no-shadow" alt="Backend agnostic" />
13+
<img src="../../img/data-provider.png" class="no-shadow" alt="Backend agnostic" />
1414

1515
The `dataProvider` exposes a predefined interface that allows ra-core to query any API in a normalized way.
1616

@@ -146,7 +146,7 @@ Ra-core caches query data locally in the browser and automatically reuses it to
146146
For example, when a user deletes a book in a list, React-admin immediately removes it, making the row disappear. After the API confirms the deletion, React-admin invalidates the list’s cache, refreshes it, and another record appears at the end of the list.
147147

148148
<video controls autoplay playsinline muted loop width="100%">
149-
<source src="../img/AutoRefresh.mp4" type="video/mp4" />
149+
<source src="../../img/AutoRefresh.mp4" type="video/mp4" />
150150
Your browser does not support the video tag.
151151
</video>
152152

docs_headless/src/content/docs/guides/Features.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ const BookList = () => (
336336
```
337337

338338
<video controls autoplay playsinline muted loop width="100%">
339-
<source src="../img/reference-input-filter.webm" type="video/webm" />
340-
<source src="../img/reference-input-filter.mp4" type="video/mp4" />
339+
<source src="../../img/reference-input-filter.webm" type="video/webm" />
340+
<source src="../../img/reference-input-filter.mp4" type="video/mp4" />
341341
Your browser does not support the video tag.
342342
</video>
343343

@@ -478,8 +478,8 @@ React-admin takes advantage of the Single-Page-Application architecture, impleme
478478
When users submit a form, or delete a record, the UI reflects their change immediately. They also see a confirmation message for the change, containing an "Undo" button. If they click on it before the confirmation slides out (the default delay is 5s), react-admin reverts to the previous state and cancels the call to the data provider.
479479

480480
<video controls autoplay playsinline muted loop>
481-
<source src="../img/tutorial_post_edit_undo.webm" type="video/webm"/>
482-
<source src="../img/tutorial_post_edit_undo.mp4" type="video/mp4"/>
481+
<source src="../../img/tutorial_post_edit_undo.webm" type="video/webm"/>
482+
<source src="../../img/tutorial_post_edit_undo.mp4" type="video/mp4"/>
483483
Your browser does not support the video tag.
484484
</video>
485485

@@ -494,7 +494,7 @@ It's the server's responsibility to check that an action is allowed for a given
494494
React-admin lets you **customize the user interface based on a simple set of rules**, and to define the permissions for each role in a centralized place. Whether you need to have custom pages for specific roles, or to change the props of a component based on the user's role, react-admin lets you do it. This feature uses the same adapter approach as for the `dataProvider`, which means you can use any authentication backend you want.
495495

496496
<video controls="controls" style="max-width: 100%">
497-
<source src="../img/ra-rbac.mp4" type="video/mp4" />
497+
<source src="../../img/ra-rbac.mp4" type="video/mp4" />
498498
</video>
499499

500500
You can define permissions for pages, fields, buttons, etc. Roles and permissions are managed by the `authProvider`, which means you can use any data source you want (including an ActiveDirectory server).
@@ -580,8 +580,8 @@ To learn more about the `Store` and how to use it, check the following sections:
580580
React-admin is **fully internationalized**.
581581

582582
<video controls autoplay playsinline muted loop>
583-
<source src="../img/LocalesMenuButton.webm" type="video/webm"/>
584-
<source src="../img/LocalesMenuButton.mp4" type="video/mp4"/>
583+
<source src="../../img/LocalesMenuButton.webm" type="video/webm"/>
584+
<source src="../../img/LocalesMenuButton.mp4" type="video/mp4"/>
585585
Your browser does not support the video tag.
586586
</video>
587587

@@ -634,8 +634,8 @@ React-admin is written in TypeScript. That doesn't mean you have to use TypeScri
634634
And if your IDE supports TypeScript, you get autocompletion and inline documentation for all react-admin components and hooks.
635635

636636
<video controls autoplay playsinline muted loop width="100%">
637-
<source src="../img/typescript.webm" type="video/webm" />
638-
<source src="../img/typescript.mp4" type="video/mp4" />
637+
<source src="../../img/typescript.webm" type="video/webm" />
638+
<source src="../../img/typescript.mp4" type="video/mp4" />
639639
Your browser does not support the video tag.
640640
</video>
641641

docs_headless/src/content/docs/guides/SecurityGuide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sidebar:
55
---
66

77
<video controls autoplay playsinline muted loop>
8-
<source src="../img/login.mp4" type="video/mp4"/>
8+
<source src="../../img/login.mp4" type="video/mp4"/>
99
Your browser does not support the video tag.
1010
</video>
1111

@@ -117,7 +117,7 @@ Check the [Auth Provider Setup Guide](../security/Authentication.md) for more de
117117
After a user is authenticated, your application may need to check if the user has the right to access a specific resource or perform an action.
118118

119119
<video controls autoplay muted loop>
120-
<source src="../img/AccessControl.mp4" type="video/mp4"/>
120+
<source src="../../img/AccessControl.mp4" type="video/mp4"/>
121121
Your browser does not support the video tag.
122122
</video>
123123

docs_headless/src/content/docs/guides/Translation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ sidebar:
55
---
66

77
<video controls autoplay playsinline muted loop>
8-
<source src="../img/translation.webm" type="video/webm"/>
9-
<source src="../img/translation.mp4" type="video/mp4"/>
8+
<source src="../../img/translation.webm" type="video/webm"/>
9+
<source src="../../img/translation.mp4" type="video/mp4"/>
1010
Your browser does not support the video tag.
1111
</video>
1212

docs_headless/src/content/docs/inputs/ReferenceArrayInputBase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ TODO
99
Use `<ReferenceArrayInput>` to edit an array of reference values, i.e. to let users choose a list of values (usually foreign keys) from another REST endpoint.
1010

1111
<video controls autoplay playsinline muted loop>
12-
<source src="../img/reference-array-input.webm" type="video/webm"/>
13-
<source src="../img/reference-array-input.mp4" type="video/mp4"/>
12+
<source src="../../img/reference-array-input.webm" type="video/webm"/>
13+
<source src="../../img/reference-array-input.mp4" type="video/mp4"/>
1414
Your browser does not support the video tag.
1515
</video>
1616

docs_headless/src/content/docs/inputs/ReferenceInputBase.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const ContactEdit = () => (
4343
```
4444

4545
<video controls autoplay playsinline muted loop>
46-
<source src="../img/reference-input.webm" type="video/webm"/>
47-
<source src="../img/reference-input.mp4" type="video/mp4"/>
46+
<source src="../../img/reference-input.webm" type="video/webm"/>
47+
<source src="../../img/reference-input.mp4" type="video/mp4"/>
4848
Your browser does not support the video tag.
4949
</video>
5050

@@ -407,8 +407,8 @@ You can learn more about the `create` prop in the documentation of the selection
407407
If the reference resource is a tree, use [`<ReferenceNodeInput>`](./ReferenceNodeInput.md) instead of `<ReferenceInput>`.
408408

409409
<video controls autoplay playsinline muted loop>
410-
<source src="../img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
411-
<source src="../img/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
410+
<source src="../../img/ReferenceNodeInput-TreeInput-basic.webm" type="video/webm"/>
411+
<source src="../../img/ReferenceNodeInput-TreeInput-basic.mp4" type="video/mp4"/>
412412
Your browser does not support the video tag.
413413
</video>
414414

docs_headless/src/content/docs/list/FilterLiveForm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This component offers a convenient way to create a form that automatically updat
77
It fits nicely alongside a filter list component, but you can also use it at other places to create your own filter UI.
88

99
<video controls autoplay playsinline muted loop>
10-
<source src="../img/FilterLiveForm.mp4" type="video/mp4"/>
10+
<source src="../../img/FilterLiveForm.mp4" type="video/mp4"/>
1111
Your browser does not support the video tag.
1212
</video>
1313

0 commit comments

Comments
 (0)