Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # Grav Standard Administration Panel Plugin
  2. This **admin plugin** for [Grav](https://github.com/getgrav/grav) is an HTML user interface that provides a convenient way to configure Grav and easily create and modify pages. This will remain a totally optional plugin, and is not in any way required or needed to use Grav effectively. In fact, the admin provides an intentionally limited view to ensure it remains easy to use and not overwhelming. I'm sure power users will still prefer to work with the configuration files directly.
  3. ![](assets/admin-dashboard.png)
  4. # Features
  5. * User login with automatic password encryption
  6. * Forgot password functionality
  7. * Logged-in-user management
  8. * One click Grav core updates
  9. * Dashboard with maintenance status, site activity and latest page updates
  10. * Notifications system for latest news, blogs, and announcements
  11. * Ajax-powered backup capability
  12. * Ajax-powered clear-cache capability
  13. * System configuration management
  14. * Site configuration management
  15. * Normal and Expert modes which allow editing via forms or YAML
  16. * Page listing with filtering and search
  17. * Page creation, editing, moving, copying, and deleting
  18. * Powerful syntax highlighting code editor with instant Grav-powered preview
  19. * Editor features, hot keys, toolbar, and distraction-free fullscreen mode
  20. * Drag-n-drop upload of page media files including drag-n-drop placement in the editor
  21. * One click theme and plugin updates
  22. * Plugin manager that allows listing and configuration of installed plugins
  23. * Theme manager that allows listing and configuration of installed themes
  24. * GPM-powered installation of new plugins and themes
  25. # Support
  26. #### Support
  27. We have tested internally, but we hope to use this public beta phase to identify, isolate, and fix issues related to the plugin to ensure it is as solid and reliable as possible.
  28. For **live chatting**, please use the dedicated [Discord Chat Room](https://getgrav.org/discord) for discussions directly related to Grav.
  29. For **bugs, features, improvements**, please ensure you [create issues in the admin plugin GitHub repository](https://github.com/getgrav/grav-plugin-admin).
  30. # Installation
  31. First ensure you are running the latest **Grav 1.6.7 or later**. This is required for the admin plugin to run properly (`-f` forces a refresh of the GPM index).
  32. ```
  33. $ bin/gpm selfupgrade -f
  34. ```
  35. The admin plugin actually requires the help of 3 other plugins, so to get the admin plugin to work you first need to install **admin**, **login**, **forms**, and **email** plugins. These are available via GPM, and because the plugin has dependencies you just need to proceed and install the admin plugin, and agree when prompted to install the others:
  36. ```
  37. $ bin/gpm install admin
  38. ```
  39. ### Manual Installation
  40. Manual installation is not the recommended method of installation, however, it is still possible to install the admin plugin manually. Basically, you need to download each of the following plugins individually:
  41. * [admin](https://github.com/getgrav/grav-plugin-admin/archive/develop.zip)
  42. * [login](https://github.com/getgrav/grav-plugin-login/archive/develop.zip)
  43. * [form](https://github.com/getgrav/grav-plugin-form/archive/develop.zip)
  44. * [email](https://github.com/getgrav/grav-plugin-email/archive/develop.zip)
  45. Extract each archive file into your `user/plugins` folder, then ensure the folders are renamed to just `admin/`, `login/`, `form/`, and `email/`. Then proceed with the **Usage instructions below**.
  46. # Usage
  47. ### Create User with CLI
  48. After this you need to create a user account with admin privileges:
  49. ```
  50. $ bin/plugin login new-user
  51. ```
  52. ### Create User Manually
  53. Alternatively, you can create a user account manually, in a file called `user/accounts/admin.yaml`. This **filename** is actually the **username** that you will use to login. The contents will contain the other information for the user.
  54. ```
  55. password: 'password'
  56. email: 'youremail@mail.com'
  57. fullname: 'Johnny Appleseed'
  58. title: 'Site Administrator'
  59. access:
  60. admin:
  61. login: true
  62. super: true
  63. ```
  64. Of course you should edit your `email`, `password`, `fullname`, and `title` to suit your needs.
  65. > You can use any password when you manually put it in this `.yaml` file. However, when you change your password in the admin, it must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters.
  66. # Accessing the Admin
  67. By default, you can access the admin by pointing your browser to `http://yoursite.com/admin`. You can simply log in with the `username` and `password` set in the YAML file you configured earlier.
  68. > After logging in, your **plaintext password** will be removed and replaced by an **encrypted** one.
  69. # Standard Free & Paid Pro Versions
  70. If you have been following the [blog](https://getgrav.org/blog), [Twitter](https://twitter.com/getgrav), [Discord chat](https://getgrav.org/discord), etc., you probably already know now that our intention is to provide two versions of this plugin.
  71. The **standard free version**, is very powerful, and has more functionality than most commercial flat-file CMS systems.
  72. We also intend to release in the near future a more feature-rich **pro version** that will include enhanced functionality, as well as some additional nice-to-have capabilities. This pro version will be a **paid** plugin the price of which is not yet 100% finalized.
  73. # Admin Events
  74. ## General events
  75. - onAdminRegisterPermissions - (admin)
  76. - onAdminThemeInitialized
  77. - onAdminPage - (page)
  78. - onAdminMenu
  79. - onAdminTwigTemplatePaths - (paths)
  80. ## Page specific events
  81. - onAdminDashboard
  82. - onAdminTools - (tools)
  83. - onAdminLogFiles - (logs)
  84. - onAdminGenerateReports - (reports)
  85. ## Tasks
  86. - onAdminControllerInit - (controller)
  87. - onAdminTaskExecute - (controller, method)
  88. ## Editing
  89. - onAdminData
  90. - onAdminSave - (object)
  91. - onAdminAfterSave - (object)
  92. ## Pages
  93. - onAdminPageTypes - (types)
  94. - onAdminModularPageTypes
  95. - onAdminSave - (page)
  96. - onAdminAfterSaveAs - (path)
  97. - onAdminAfterSave - (page)
  98. - onAdminAfterDelete - (page)
  99. - onAdminAfterAddMedia - (page)
  100. - onAdminAfterDelMedia - (page)
  101. - onAdminCreatePageFrontmatter - (header, data)
  102. # Running Tests
  103. First install the dev dependencies by running `composer update` from the Grav root.
  104. Then `composer test` will run the Unit Tests, which should be always executed successfully on any site.