Skip to content

Commit 11a2e97

Browse files
authored
fix: fix video demo (#8)
fix: fix video demo
1 parent 53beb3f commit 11a2e97

8 files changed

+6
-6
lines changed

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ This document presents an example of dynamic permission menu loading based on jC
88
**Technology Stack**
99

1010
- **Backend:** Spring Boot 2.x + jCasbin + Spring Data JPA
11-
- **Frontend:** Bootstrap + Thymeleaf
11+
- **Frontend:** Tailwind CSS + Thymeleaf
1212

1313
**Startup Instructions**
1414

1515
1. Build the menu structure you need in the [`casbin/policy.csv`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/resources/casbin/policy.csv) file. Specifically, `g2` represents the relationship between menus. For example: `g2, submenu name, parent menu name`.
16-
2. Once the configuration is complete, run the `main` method in [`Application.java`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/java/org/casbin/Application.java) located under `org/casbin/`. Access `http://localhost:8080/casbin/menu` for testing.
16+
2. Once the configuration is complete, run the `main` method in [`Application.java`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/java/org/casbin/Application.java) located under `org/casbin/`. Access `http://localhost:8080/` for testing.
1717
3. The access control model file for jCasbin is located at [`casbin/model.conf`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/resources/casbin/model.conf), and the policy file is at [`casbin/policy.csv`](https://github.com/jcasbin/jcasbin-menu-permission/blob/master/src/main/resources/casbin/policy.csv). Modify them as needed based on your requirements.
1818

1919
## Simple Examples
2020

2121
**Demonstration video**
2222

23-
<video width="640" height="480" controls>
24-
<source src="examples/example.mp4" type="video/mp4">
25-
</video>
23+
<img src="examples/example.gif" alt="example_demo">
2624

2725
**Root user**
2826

2927
<img src="examples/root_example.png" alt="system_example" style="zoom:60%;" />
3028

3129
**Admin user**
3230

33-
<img src="examples/admin_example.png" alt="admin_example" style="zoom:60%;" />
31+
<img src="examples/admin_example_1.png" alt="admin_example" style="zoom:60%;" />
32+
33+
<img src="examples/admin_example_2.png" alt="admin_example" style="zoom:60%;" />
3434

3535
**Normal user**
3636

Diff for: examples/admin_example.png

-39.8 KB
Binary file not shown.

Diff for: examples/admin_example_1.png

72.4 KB
Loading

Diff for: examples/admin_example_2.png

85.7 KB
Loading

Diff for: examples/example.gif

1.74 MB
Loading

Diff for: examples/example.mp4

-3.65 MB
Binary file not shown.

Diff for: examples/root_example.png

35.4 KB
Loading

Diff for: examples/user_example.png

34.1 KB
Loading

0 commit comments

Comments
 (0)