Skip to content

Commit

Permalink
Example nav
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Nov 8, 2023
1 parent b707778 commit 7e9dd9c
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,23 @@
"title": "Examples",
"slug": "examples",
"items": [
{
"title": "Simple Counter",
"slug": "counter",
"icon": "adjustments-horizontal",
"url": "/examples/counter"
},
{
"title": "Banking",
"slug": "banking",
"icon": "banknotes",
"url": "/examples/bank"
},
{
"title": "Subscriptions",
"slug": "subscriptions",
"icon": "cursor-arrow-rays",
"url": "/examples/subscriptions"
}
]
},
Expand Down
39 changes: 39 additions & 0 deletions examples/Bank/navigation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[
{
"title": "Events",
"slug": "events",
"items": [
{
"title": "Account Opened",
"slug": "account-opened",
"path": "src/Events/AccountOpened.php"
},
{
"title": "Money Deposited",
"slug": "money-deposited",
"path": "src/Events/MoneyDeposited.php"
},
{
"title": "Money Withdrawn",
"slug": "money-withdrawn",
"path": "src/Events/MoneyWithdrawn.php"
}
]
},
{
"title": "State",
"slug": "state",
"items": [
{
"title": "Account",
"slug": "account",
"path": "src/States/AccountState.php"
},
{
"title": "User",
"slug": "user",
"path": "src/States/UserState.php"
}
]
}
]
24 changes: 24 additions & 0 deletions examples/Counter/navigation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"title": "Events",
"slug": "events",
"items": [
{
"title": "Increment",
"slug": "increment",
"path": "src/Events/IncrementCount.php"
}
]
},
{
"title": "State",
"slug": "state",
"items": [
{
"title": "Count",
"slug": "count",
"path": "src/States/CountState.php"
}
]
}
]
59 changes: 59 additions & 0 deletions examples/Subscriptions/navigation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[
{
"title": "Events",
"slug": "events",
"items": [
{
"title": "Subscription Started",
"slug": "subscription-started",
"path": "src/Events/SubscriptionStarted.php"
},
{
"title": "Subscription Cancelled",
"slug": "subscription-cancelled",
"path": "src/Events/SubscriptionCancelled.php"
},
{
"title": "Global Report Generated",
"slug": "global-report-generated",
"path": "src/Events/GlobalReportGenerated.php"
},
{
"title": "Plan Report Generated",
"slug": "plan-report-generated",
"path": "src/Events/PlanReportGenerated.php"
},
{
"title": "Reset Global Report State",
"slug": "reset-global-report-state",
"path": "src/Events/ResetGlobalReportState.php"
},
{
"title": "Reset Plan Report State",
"slug": "reset-plan-report-state",
"path": "src/Events/ResetPlanReportState.php"
}
]
},
{
"title": "State",
"slug": "state",
"items": [
{
"title": "Subscription",
"slug": "subscription",
"path": "src/States/SubscriptionState.php"
},
{
"title": "Plan Report",
"slug": "plan-report",
"path": "src/States/PlanReportState.php"
},
{
"title": "Global Report",
"slug": "global-report",
"path": "src/States/GlobalReportState.php"
}
]
}
]

0 comments on commit 7e9dd9c

Please sign in to comment.