-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(frontend): Add missing forwardRef and write some docs for compon…
…ents
- Loading branch information
1 parent
ddbbeb2
commit 8bcd3f5
Showing
93 changed files
with
276 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
{ | ||
"shadcn": "Shadcn UI", | ||
"avatar": "Avatar", | ||
"user": "User", | ||
"group": "Group", | ||
"data-table": "Data Table", | ||
"dialog": "Dialog", | ||
"tabs": "Tabs", | ||
"loaders": "Loaders", | ||
"date": "Date Format", | ||
"editor": "Editor", | ||
"user-link": "User Link", | ||
"user-input": "User Input", | ||
"user-group": "User Group", | ||
"icons": "Icons", | ||
"colors": "Colors" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"format": "Format Name" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Callout } from "nextra/components"; | ||
|
||
# Group Format | ||
|
||
Allows you to display single name group with formatted text. | ||
|
||
## Example | ||
|
||
```tsx | ||
import { GroupFormat } from "@/components/groups/group-format"; | ||
|
||
return <GroupFormat group={user.group} />; | ||
``` | ||
|
||
## Props | ||
|
||
| Name | Type | Default | Description | | ||
| -------------------- | ------------------------- | ------- | ---------------------------- | | ||
| `group` _(Required)_ | `{name: TextLanguage[];}` | | The group object to display. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"avatar": "Avatar", | ||
"link": "Link", | ||
"input": "Input" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Callout } from "nextra/components"; | ||
|
||
# User Input | ||
|
||
Allows you to select a user (or users) from a list of users in the system. | ||
|
||
## Example | ||
|
||
```tsx {1, 10} | ||
import { UserInput } from "@/components/user/inputs/user-input"; | ||
|
||
return ( | ||
<FormField | ||
control={form.control} | ||
name="user" | ||
render={({ field }) => ( | ||
<FormItem> | ||
<FormLabel>{t("create_edit.type.user")}</FormLabel> | ||
<UserInput {...field} /> | ||
<FormMessage /> | ||
</FormItem> | ||
)} | ||
/> | ||
); | ||
``` | ||
|
||
## Props | ||
|
||
| Name | Type | Default | Description | | ||
| -------------------- | ----------------------------- | ------- | ------------------------------------ | | ||
| `value` _(Required)_ | `{id: number; name: string;}` | | The value of the user input. | | ||
| `multiple` | `boolean` | `false` | Allow multiple users to be selected. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# User Link | ||
|
||
Allows to link to a user profile with formatting based on the user's group. | ||
|
||
## Example | ||
|
||
```tsx | ||
import { UserLink } from "@/components/user/link/user-link"; | ||
|
||
return <UserLink user={data.user_or_group} />; | ||
``` | ||
|
||
## Props | ||
|
||
| Name | Type | Default | Description | | ||
| ------------------- | ------ | ------- | ----------- | | ||
| `user` _(Required)_ | `User` | - | User object | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/admin/core/views/core/langs/table/actions/delete/delete.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/admin/core/views/core/langs/table/actions/update/update.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.