Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ecosystem page #231

Merged
merged 26 commits into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ce2baa7
add ecosystem
yanggggjie Jan 27, 2024
1f9c8b4
refine ecosystem page style
yanggggjie Jan 27, 2024
2d8dc26
set tooltip text
yanggggjie Jan 27, 2024
59b3912
fix node version and @docusaurus/plugin-ideal-image version conflict
yanggggjie Jan 27, 2024
6446d81
fix docusaurus route
yanggggjie Jan 27, 2024
6bdd55e
fix card banner img href
yanggggjie Jan 27, 2024
a63b5c6
fix markdown Ordered list item prefix
yanggggjie Jan 28, 2024
5835501
fix label ecosystem to Ecosystem
yanggggjie Jan 28, 2024
a44d683
fix external links open in a new tab
yanggggjie Jan 29, 2024
a31f3a7
add logo
yanggggjie Jan 29, 2024
b5f61bc
tag name Capitalize
yanggggjie Jan 29, 2024
e4b951d
remove lazyload image
yanggggjie Jan 30, 2024
71089aa
card image center
yanggggjie Jan 30, 2024
5323890
fix swift adapter image path error
yanggggjie Jan 30, 2024
ccac9cd
refactor ecosystem
yanggggjie Jan 31, 2024
fdd9b49
remove unused html
yanggggjie Feb 2, 2024
909f0fc
feat: add ecosystem page (#228)
yanggggjie Feb 2, 2024
7c9699f
Merge branch 'casbin:master' into master
yanggggjie Feb 2, 2024
bffbc3a
docs: add docs for menu permissions (#229)
amikecoXu Feb 3, 2024
f6d1ea4
Merge branch 'casbin:master' into master
yanggggjie Feb 3, 2024
c87ec1a
fix crowdin translate MDX react component
yanggggjie Feb 3, 2024
7f749d8
click image to open link
yanggggjie Feb 4, 2024
31afc59
fix tags description
yanggggjie Feb 4, 2024
cc698d6
click card tag to set filter
yanggggjie Feb 4, 2024
5bd17fe
add new one tooltip
yanggggjie Feb 4, 2024
7c7ee43
Merge branch 'casbin:master' into master
yanggggjie Feb 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading