Skip to content

Commit

Permalink
feat: add ecosystem page (#231)
Browse files Browse the repository at this point in the history
* add ecosystem

* refine ecosystem page style

* set tooltip text

* fix node version and @docusaurus/plugin-ideal-image version conflict

* fix docusaurus route

* fix card banner img href

* fix markdown Ordered list item prefix

* fix label ecosystem to Ecosystem

* fix external links open in a new tab

* add logo

* tag name Capitalize

* remove lazyload image

* card image center

* fix swift adapter image path error

* refactor ecosystem

* remove unused html

* feat: add ecosystem page (#228)

* add ecosystem

* refine ecosystem page style

* set tooltip text

* fix node version and @docusaurus/plugin-ideal-image version conflict

* fix docusaurus route

* fix card banner img href

* fix markdown Ordered list item prefix

* fix label ecosystem to Ecosystem

* fix external links open in a new tab

* add logo

* tag name Capitalize

* remove lazyload image

* card image center

* fix swift adapter image path error

* refactor ecosystem

* remove unused html

* docs: add docs for menu permissions (#229)

Create a new scenarios sidebar and add a menu-permission page and mobile data-permissions page.

* fix crowdin translate MDX react component

* click image to open link

* fix tags description

* click card tag to set filter

* add new one tooltip

---------

Co-authored-by: Xu Zerui <[email protected]>
  • Loading branch information
yanggggjie and amikecoXu authored Feb 4, 2024
1 parent ebd9b7e commit 5af3d02
Show file tree
Hide file tree
Showing 165 changed files with 3,861 additions and 376 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ yarn-error.log*

.idea/
*.iml

# temp floder for test
/temp/
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"semi": false,
"singleQuote": true
}
225 changes: 54 additions & 171 deletions docs/Adapters.mdx

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/Dispatchers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ A complete list of Casbin dispatchers is provided below. Any 3rd-party contribut
```mdx-code-block
<Tabs groupId="langs">
<TabItem value="Go" label="Go" default>
```
| Dispatcher | Type | Author | Description |
|-------------------------------------------------------------------------|------|------------------------------------|-------------------------------------------------------------------------|
| [Hashicorp Raft Dispatcher](https://github.com/casbin/hraft-dispatcher) | Raft | Casbin | A dispatcher based on [Hashicorp Raft](https://github.com/hashicorp/raft) |
| [KDKYG/casbin-dispatcher](https://github.com/KDKYG/casbin-dispatcher) | Raft | [@KDKYG](https://github.com/KDKYG) | A dispatcher based on [Hashicorp Raft](https://github.com/hashicorp/raft) |
import DispatcherMDTable from "@site/src/tableData/DispatcherData/DispatcherMDTable";
import {DispatcherGoData} from "@site/src/tableData/DispatcherData/DispatcherGoData";
<DispatcherMDTable data={DispatcherGoData}></DispatcherMDTable>
```

```mdx-code-block
</TabItem>
Expand Down
126 changes: 34 additions & 92 deletions docs/Middlewares.mdx

Large diffs are not rendered by default.

41 changes: 17 additions & 24 deletions docs/RoleManagers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,59 +11,52 @@ The role manager is used to manage the RBAC role hierarchy (user-role mapping) i
```mdx-code-block
<Tabs groupId="langs">
<TabItem value="Go" label="Go" default>
```
| Role manager | Author | Description |
|---------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Default Role Manager (built-in)](https://github.com/casbin/casbin/blob/master/rbac/default-role-manager/role_manager.go) | Casbin | Supports role hierarchy stored in the Casbin policy |
| [Session Role Manager](https://github.com/casbin/session-role-manager) | [EDOMO Systems](https://github.com/edomosystems) | Supports role hierarchy stored in the Casbin policy, with time-range-based sessions |
| [Okta Role Manager](https://github.com/casbin/okta-role-manager) | Casbin | Supports role hierarchy stored in [Okta](https://www.okta.com/) |
| [Auth0 Role Manager](https://github.com/casbin/auth0-role-manager) | Casbin | Supports role hierarchy stored in [Auth0](https://auth0.com/)'s [Authorization Extension](https://auth0.com/docs/extensions/authorization-extension/v2) |
import {RoleManagerGoData} from "@site/src/tableData/RoleManagerData/RoleManagerGoData";
import {RoleManagerJavaData} from "@site/src/tableData/RoleManagerData/RoleManagerJavaData"; import RoleManagerMDTable
from "@site/src/tableData/RoleManagerData/RoleManagerMDTable";
import {RoleManagerNodejsData} from "@site/src/tableData/RoleManagerData/RoleManagerNodejsData";
import {RoleManagerPhpData} from "@site/src/tableData/RoleManagerData/RoleManagerPhpData";
import {RoleManagerPythonData} from "@site/src/tableData/RoleManagerData/RoleManagerPythonData";
<RoleManagerMDTable data={RoleManagerGoData}></RoleManagerMDTable>
```

For developers: all role managers must implement the [RoleManager](https://github.com/casbin/casbin/blob/master/rbac/role_manager.go) interface. The [Session Role Manager](https://github.com/casbin/session-role-manager) can be used as a reference implementation.

```mdx-code-block
</TabItem>
<TabItem value="Java" label="Java">
```
| Role manager | Author | Description |
|------------------------------------------------------------------------------------------------------------------------------------------------|--------|-------------------------------------------------|
| [Default Role Manager (built-in)](https://github.com/casbin/jcasbin/blob/master/src/main/java/org/casbin/jcasbin/rbac/DefaultRoleManager.java) | Casbin | Supports role hierarchy stored in the Casbin policy |
<RoleManagerMDTable data={RoleManagerJavaData}></RoleManagerMDTable>
```

For developers: all role managers must implement the [RoleManager](https://github.com/casbin/jcasbin/blob/master/src/main/java/org/casbin/jcasbin/rbac/RoleManager.java) interface. The [Default Role Manager](https://github.com/casbin/jcasbin/blob/master/src/main/java/org/casbin/jcasbin/rbac/DefaultRoleManager.java) can be used as a reference implementation.

```mdx-code-block
</TabItem>
<TabItem value="Node.js" label="Node.js">
```
| Role manager | Author | Description |
|---------------------------------------------------------------------------------------------------------------------|--------|---------------------------------------------------------------------------------|
| [Default Role Manager (built-in)](https://github.com/casbin/node-casbin/blob/master/src/rbac/defaultRoleManager.ts) | Casbin | Supports role hierarchy stored in the Casbin policy |
| [Session Role Manager](https://github.com/node-casbin/session-role-manager) | Casbin | Supports role hierarchy stored in the Casbin policy, with time-range-based sessions |
<RoleManagerMDTable data={RoleManagerNodejsData}></RoleManagerMDTable>
```

For developers: all role managers must implement the [RoleManager](https://github.com/casbin/node-casbin/blob/master/src/rbac/roleManager.ts) interface. The [Default Role Manager](https://github.com/casbin/node-casbin/blob/master/src/rbac/defaultRoleManager.ts) can be used as a reference implementation.

```mdx-code-block
</TabItem>
<TabItem value="PHP" label="PHP">
```
| Role manager | Author | Description |
|-------------------------------------------------------------------------------------------------------------------------------------|--------|-------------------------------------------------|
| [Default Role Manager (built-in)](https://github.com/php-casbin/php-casbin/blob/master/src/Rbac/DefaultRoleManager/RoleManager.php) | Casbin | Supports role hierarchy stored in the Casbin policy |
<RoleManagerMDTable data={RoleManagerPhpData}></RoleManagerMDTable>
```

For developers: all role managers must implement the [RoleManager](https://github.com/php-casbin/php-casbin/blob/master/src/Rbac/RoleManager.php) interface. The [Default Role Manager](https://github.com/php-casbin/php-casbin/blob/master/src/Rbac/DefaultRoleManager/RoleManager.php) can be used as a reference implementation.

```mdx-code-block
</TabItem>
<TabItem value="Python" label="Python">
```
| Role manager | Author | Description |
|------------------------------------------------------------------------------------------------------------------------------------|--------|-------------------------------------------------|
| [Default Role Manager (built-in)](https://github.com/casbin/pycasbin/blob/master/casbin/rbac/default_role_manager/role_manager.py) | Casbin | Supports role hierarchy stored in the Casbin policy |
<RoleManagerMDTable data={RoleManagerPythonData}></RoleManagerMDTable>
```

For developers: all role managers must implement the [RoleManager](https://github.com/casbin/pycasbin/blob/master/casbin/rbac/role_manager.py) interface. The [Default Role Manager](https://github.com/casbin/pycasbin/blob/master/casbin/rbac/default_role_manager/role_manager.py) can be used as a reference implementation.

Expand Down
Loading

0 comments on commit 5af3d02

Please sign in to comment.