-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update with initial documentation for v1.11.0 (#31)
* Update with initial documentation * Re-add bdapi danger notice
- Loading branch information
Showing
9 changed files
with
17,421 additions
and
12,606 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
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,59 @@ | ||
# Components | ||
|
||
`Components` is a namespace holding a series of React components. It is available under [BdApi](./bdapi). | ||
|
||
> [!NOTE] | ||
> This documentation is in progress and currently just serves as a reference list with no additional info. | ||
## Properties | ||
|
||
### Button | ||
|
||
|
||
### ColorInput | ||
|
||
|
||
### DropdownInput | ||
|
||
|
||
### ErrorBoundary | ||
|
||
|
||
### Flex | ||
|
||
|
||
### KeybindInput | ||
|
||
|
||
### NumberInput | ||
|
||
|
||
### RadioInput | ||
|
||
|
||
### SearchInput | ||
|
||
|
||
### SettingGroup | ||
|
||
|
||
### SettingItem | ||
|
||
|
||
### SliderInput | ||
|
||
|
||
### SwitchInput | ||
|
||
|
||
### Text | ||
|
||
|
||
### TextInput | ||
|
||
|
||
### Tooltip | ||
|
||
|
||
## Methods | ||
|
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,76 @@ | ||
# Logger | ||
|
||
`Logger` is a helper class to log data in a nice and consistent way. An instance is available on [BdApi](./bdapi). | ||
|
||
## Properties | ||
|
||
|
||
|
||
## Methods | ||
|
||
### debug | ||
Logs used for debugging purposes. | ||
|
||
| Parameter | Type | Description | | ||
|:----------|:------:|:----------------------:| | ||
module|string|Name of the calling module. | ||
message|...any|Messages to have logged. | ||
|
||
**Returns:** `void` | ||
___ | ||
|
||
### error | ||
Logs an error message. | ||
|
||
| Parameter | Type | Description | | ||
|:----------|:------:|:----------------------:| | ||
pluginName|string|Name of the calling module | ||
message|...any|Messages to have logged. | ||
|
||
**Returns:** `void` | ||
___ | ||
|
||
### info | ||
Logs an informational message. | ||
|
||
| Parameter | Type | Description | | ||
|:----------|:------:|:----------------------:| | ||
module|string|Name of the calling module. | ||
message|...any|Messages to have logged. | ||
|
||
**Returns:** `void` | ||
___ | ||
|
||
### log | ||
Logs used for basic loggin. | ||
|
||
| Parameter | Type | Description | | ||
|:----------|:------:|:----------------------:| | ||
module|string|Name of the calling module. | ||
message|...any|Messages to have logged. | ||
|
||
**Returns:** `void` | ||
___ | ||
|
||
### stacktrace | ||
Logs an error using a collapsed error group with stacktrace. | ||
|
||
| Parameter | Type | Description | | ||
|:----------|:------:|:----------------------:| | ||
pluginName|string|Name of the calling module. | ||
message|string|Message or error to have logged. | ||
error|Error|Error object to log with the message. | ||
|
||
**Returns:** `void` | ||
___ | ||
|
||
### warn | ||
Logs a warning message. | ||
|
||
| Parameter | Type | Description | | ||
|:----------|:------:|:----------------------:| | ||
module|string|Name of the calling module. | ||
message|...any|Messages to have logged. | ||
|
||
**Returns:** `void` | ||
___ |
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.