Skip to content

Commit a220022

Browse files
authored
Merge branch 'next' into main
2 parents 1f8cf2f + 546fef4 commit a220022

File tree

9 files changed

+844
-16
lines changed

9 files changed

+844
-16
lines changed

adminforth/build.log

Lines changed: 0 additions & 12 deletions
This file was deleted.
253 KB
Loading

adminforth/documentation/blog/2025-02-19-compose-ec2-deployment-ci-registry/index.md

Lines changed: 806 additions & 0 deletions
Large diffs are not rendered by default.

adminforth/documentation/blog/authors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ivanb:
2-
name: Ivan Borshcho
2+
name: Ivan Borshchov
33
title: Maintainer of AdminForth
44
url: https://github.com/ivictbor
55
image_url: https://avatars.githubusercontent.com/u/1838656?v=4

adminforth/documentation/docs/tutorial/03-Customization/06-customPages.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,4 +459,38 @@ You can navigate user to this page using any router link, e.g.:
459459
460460
```ts
461461
import { Link } from '@/afcl';
462+
```
463+
464+
### Passing meta attributes to the page
465+
466+
467+
You can add custom meta attributes to the page by passing `meta` object to the page:
468+
469+
470+
```ts title="/index.ts"
471+
472+
customPages: [
473+
{
474+
path: '/setup2fa', // route path
475+
component: {
476+
file: '@@/pages/TwoFactorsSetup.vue',
477+
meta: {
478+
title: 'Setup 2FA', // meta title for this page
479+
customLayout: true, // don't include default layout like menu/header
480+
//diff-add
481+
myAttribute: 'a1'
482+
}
483+
}
484+
}
485+
]
486+
```
487+
488+
To access passed meta attributes in your page, you can use `useRoute` hook:
489+
490+
```ts
491+
import { useRoute } from 'vue-router';
492+
493+
const route = useRoute();
494+
495+
console.log(route.meta.myAttribute); // a1
462496
```

adminforth/documentation/docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const config: Config = {
204204
href: 'https://devforth.io',
205205
},
206206
{
207-
label: 'We can develop dashboard and admin panel for your project',
207+
label: 'We can develop admin panel for your project',
208208
href: 'https://devforth.io/contact',
209209
},
210210
{
253 KB
Loading

dev-demo/resources/users.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ import TwoFactorsAuthPlugin from "../../plugins/adminforth-two-factors-auth";
1111
import EmailResetPasswordPlugin from "../../plugins/adminforth-email-password-reset/index.js";
1212
import { v1 as uuid } from "uuid";
1313
import EmailAdapterAwsSes from "../../adapters/adminforth-email-adapter-aws-ses/index.js";
14+
1415
import OAuthPlugin from "../../plugins/adminforth-oauth";
1516
import AdminForthAdapterGoogleOauth2 from "../../adapters/adminforth-google-oauth-adapter";
1617
import AdminForthAdapterGithubOauth2 from "../../adapters/adminforth-github-oauth-adapter";
18+
1719
export default {
1820
dataSource: "maindb",
1921
table: "users",

live-demo/deploy/compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ services:
1515
volumes:
1616
- af-db:/code/db/
1717

18-
19-
2018
networks:
2119
default:
2220
driver: bridge

0 commit comments

Comments
 (0)