Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 3443fa2

Browse files
authored
Update README.md
1 parent 533c9fa commit 3443fa2

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ Create config adminpanel.json
2424

2525
```
2626
{
27-
"name": "Sandbox2",
27+
"name": "Nodes Admin Panel",
2828
"unauthorizedPath": "/admin/login",
2929
"loginSuccessPath": "admin/dashboard",
3030
"loadRoutes": true,
3131
"profileImageFallbackUrl": "https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg",
3232
"welcomeMailViewPath": "Emails/welcome",
33-
"resetPasswordViewPath": "Emails/reset-password"
33+
"resetPasswordViewPath": "Emails/reset-password",
34+
35+
"ssoRedirectUrl": "https://mysso.com",
36+
"ssoCallbackPath": "/admin/ssocallback"
3437
}
3538
3639
```
@@ -55,13 +58,6 @@ And add provider
5558
```
5659
try drop.addProvider(AdminPanel.Provider.self)
5760
```
58-
59-
Either copy the views in or change the folder to read the views from, fx
60-
```
61-
drop.view = LeafRenderer(
62-
viewsDir: Droplet().workDir + "/Packages/AdminPanel-0.2.0/Sources/AdminPanel/Resources/Views"
63-
)
64-
```
6561
### Seed data
6662
```
6763
vapor run admin-panel:seed
@@ -81,7 +77,7 @@ https://github.com/nodes-vapor/storage
8177
#### Setup
8278

8379
- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/gulp` to the root of your project
84-
- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Resources/Assets` to the `Resources` folder in your project
80+
- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Resources` to the `Resources` folder in your project
8581
- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Public/favicon.ico` and the `favicon` folder to the `Public` folder in your project
8682
- Run `npm install` > `bower install` > `gulp build`
8783

@@ -96,6 +92,12 @@ Put your JavaScript files in `/Resources/Assets/Js` - if you need specific js fo
9692

9793
When compiling, all files *not* in `Pages` will be concatinated and minified. Page specific js is only minified.
9894

95+
#### Using views from packages (for development)
96+
```
97+
drop.view = LeafRenderer(
98+
viewsDir: Droplet().workDir + "/Packages/AdminPanel-0.2.0/Sources/AdminPanel/Resources/Views"
99+
)
100+
99101
#### Read more
100102
101103
Github: https://github.com/nodes-frontend/nodes-ui

0 commit comments

Comments
 (0)