From 3443fa23846429ddb0f7cae657337fb5c40500d0 Mon Sep 17 00:00:00 2001 From: Casper Rasmussen Date: Wed, 4 Jan 2017 20:12:47 +0100 Subject: [PATCH] Update README.md --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cf52004..ab5c60f 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,16 @@ Create config adminpanel.json ``` { - "name": "Sandbox2", + "name": "Nodes Admin Panel", "unauthorizedPath": "/admin/login", "loginSuccessPath": "admin/dashboard", "loadRoutes": true, "profileImageFallbackUrl": "https://lh3.googleusercontent.com/-XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg", "welcomeMailViewPath": "Emails/welcome", - "resetPasswordViewPath": "Emails/reset-password" + "resetPasswordViewPath": "Emails/reset-password", + + "ssoRedirectUrl": "https://mysso.com", + "ssoCallbackPath": "/admin/ssocallback" } ``` @@ -55,13 +58,6 @@ And add provider ``` try drop.addProvider(AdminPanel.Provider.self) ``` - -Either copy the views in or change the folder to read the views from, fx -``` -drop.view = LeafRenderer( - viewsDir: Droplet().workDir + "/Packages/AdminPanel-0.2.0/Sources/AdminPanel/Resources/Views" -) -``` ### Seed data ``` vapor run admin-panel:seed @@ -81,7 +77,7 @@ https://github.com/nodes-vapor/storage #### Setup - Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/gulp` to the root of your project -- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Resources/Assets` to the `Resources` folder in your project +- Copy the files from `Packages/AdminPanel-X.Y.Z/Sources/AdminPanel/Resources` to the `Resources` folder in your project - 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 - Run `npm install` > `bower install` > `gulp build` @@ -96,6 +92,12 @@ Put your JavaScript files in `/Resources/Assets/Js` - if you need specific js fo When compiling, all files *not* in `Pages` will be concatinated and minified. Page specific js is only minified. +#### Using views from packages (for development) +``` +drop.view = LeafRenderer( + viewsDir: Droplet().workDir + "/Packages/AdminPanel-0.2.0/Sources/AdminPanel/Resources/Views" +) + #### Read more Github: https://github.com/nodes-frontend/nodes-ui