From ac8811c28e977a52c17edf5cfc809fa666f3d61a Mon Sep 17 00:00:00 2001 From: Hotdoy Date: Sun, 1 Dec 2019 16:09:17 -0500 Subject: [PATCH] added plugin config --- .dependencies | 9 --- .gitignore | 6 +- config/plugins/admin-addon-user-manager.yaml | 4 ++ config/plugins/admin-media-actions.yaml | 2 + config/plugins/admin.yaml | 59 ++++++++++++++++++++ config/plugins/auto-date.yaml | 1 + config/plugins/data-manager.yaml | 1 + config/plugins/devtools.yaml | 1 + config/plugins/email.yaml | 15 +++++ config/plugins/error.yaml | 3 + config/plugins/form.yaml | 18 ++++++ config/plugins/google-maps.yaml | 1 + config/plugins/login.yaml | 46 +++++++++++++++ config/plugins/markdown-notices.yaml | 8 +++ config/plugins/pagination.yaml | 3 + config/plugins/problems.yaml | 2 + config/plugins/quick-tray-links.yaml | 10 ++++ config/plugins/shortcode-core.yaml | 10 ++++ config/plugins/sitemap.yaml | 4 ++ 19 files changed, 191 insertions(+), 12 deletions(-) create mode 100644 config/plugins/admin-addon-user-manager.yaml create mode 100644 config/plugins/admin-media-actions.yaml create mode 100644 config/plugins/admin.yaml create mode 100644 config/plugins/auto-date.yaml create mode 100644 config/plugins/data-manager.yaml create mode 100644 config/plugins/devtools.yaml create mode 100644 config/plugins/email.yaml create mode 100644 config/plugins/error.yaml create mode 100644 config/plugins/form.yaml create mode 100644 config/plugins/google-maps.yaml create mode 100644 config/plugins/login.yaml create mode 100644 config/plugins/markdown-notices.yaml create mode 100644 config/plugins/pagination.yaml create mode 100644 config/plugins/problems.yaml create mode 100644 config/plugins/quick-tray-links.yaml create mode 100644 config/plugins/shortcode-core.yaml create mode 100644 config/plugins/sitemap.yaml diff --git a/.dependencies b/.dependencies index c6c63ec..840b67f 100644 --- a/.dependencies +++ b/.dependencies @@ -51,10 +51,6 @@ git: url: https://github.com/getgrav/grav-theme-hotdoy path: user/themes/hotdoy branch: master - quark: - url: https://github.com/getgrav/grav-theme-quark - path: user/themes/quark - branch: master links: admin: @@ -109,8 +105,3 @@ links: src: grav-theme-hotdoy path: user/themes/hotdoy smc: github - quark: - src: grav-theme-quark - path: user/themes/quark - smc: github - \ No newline at end of file diff --git a/.gitignore b/.gitignore index b3b85bb..676ad4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ -plugins/ +plugins/* accounts/ -data/ -themes/ +data/* +themes/* config/backups.yaml config/media.yaml config/scheduler.yaml diff --git a/config/plugins/admin-addon-user-manager.yaml b/config/plugins/admin-addon-user-manager.yaml new file mode 100644 index 0000000..b20c97b --- /dev/null +++ b/config/plugins/admin-addon-user-manager.yaml @@ -0,0 +1,4 @@ +enabled: true +default_list_style: list +pagination: + per_page: '20' diff --git a/config/plugins/admin-media-actions.yaml b/config/plugins/admin-media-actions.yaml new file mode 100644 index 0000000..286618b --- /dev/null +++ b/config/plugins/admin-media-actions.yaml @@ -0,0 +1,2 @@ +enabled: false +show_samples: true diff --git a/config/plugins/admin.yaml b/config/plugins/admin.yaml new file mode 100644 index 0000000..1542b6e --- /dev/null +++ b/config/plugins/admin.yaml @@ -0,0 +1,59 @@ +enabled: true +route: /admin +cache_enabled: false +theme: grav +logo_text: Hotdoy +content_padding: true +twofa_enabled: true +log_viewer_files: + - grav + - email +sidebar: + activate: tab + hover_delay: 100 + size: auto +dashboard: + days_of_stats: 7 +widgets: + dashboard-maintenance: true + dashboard-statistics: true + dashboard-notifications: true + dashboard-feed: true + dashboard-pages: true +pages: + show_parents: folder + show_modular: true +session: + timeout: 1800 +warnings: + delete_page: true + secure_delete: false +edit_mode: normal +frontend_preview_target: _blank +show_github_msg: false +pages_list_display_field: title +google_fonts: true +admin_icons: line-awesome +enable_auto_updates_check: true +notifications: + feed: true + dashboard: true + plugins: true + themes: true +popularity: + enabled: true + ignore: + - '/test*' + - /modular + history: + daily: '30' + monthly: '12' + visitors: '20' +pagemedia: + resize_width: 0 + resize_height: 0 + res_min_width: 0 + res_min_height: 0 + res_max_width: 0 + res_max_height: 0 + resize_quality: 0.8 diff --git a/config/plugins/auto-date.yaml b/config/plugins/auto-date.yaml new file mode 100644 index 0000000..d4ca941 --- /dev/null +++ b/config/plugins/auto-date.yaml @@ -0,0 +1 @@ +enabled: true diff --git a/config/plugins/data-manager.yaml b/config/plugins/data-manager.yaml new file mode 100644 index 0000000..d4ca941 --- /dev/null +++ b/config/plugins/data-manager.yaml @@ -0,0 +1 @@ +enabled: true diff --git a/config/plugins/devtools.yaml b/config/plugins/devtools.yaml new file mode 100644 index 0000000..d4ca941 --- /dev/null +++ b/config/plugins/devtools.yaml @@ -0,0 +1 @@ +enabled: true diff --git a/config/plugins/email.yaml b/config/plugins/email.yaml new file mode 100644 index 0000000..c9f0312 --- /dev/null +++ b/config/plugins/email.yaml @@ -0,0 +1,15 @@ +enabled: true +from: noreply@hotdoy.ca +from_name: Hotdoy +to: admin@hotdoy.ca +to_name: Hotdoy +queue: + enabled: false + flush_frequency: '* * * * *' + flush_msg_limit: 10 + flush_time_limit: 100 +mailer: + sendmail: + bin: '/usr/sbin/sendmail -bs' +content_type: text/html +debug: true diff --git a/config/plugins/error.yaml b/config/plugins/error.yaml new file mode 100644 index 0000000..9311c3b --- /dev/null +++ b/config/plugins/error.yaml @@ -0,0 +1,3 @@ +enabled: true +routes: + 404: /error diff --git a/config/plugins/form.yaml b/config/plugins/form.yaml new file mode 100644 index 0000000..961257f --- /dev/null +++ b/config/plugins/form.yaml @@ -0,0 +1,18 @@ +enabled: true +built_in_css: false +inline_css: false +refresh_prevention: true +client_side_validation: true +inline_errors: false +files: + multiple: true + limit: 10 + destination: self@ + avoid_overwriting: false + random_name: false + filesize: 0 + accept: + - 'image/*' +recaptcha: + version: 2-checkbox + theme: light diff --git a/config/plugins/google-maps.yaml b/config/plugins/google-maps.yaml new file mode 100644 index 0000000..d4ca941 --- /dev/null +++ b/config/plugins/google-maps.yaml @@ -0,0 +1 @@ +enabled: true diff --git a/config/plugins/login.yaml b/config/plugins/login.yaml new file mode 100644 index 0000000..ef89aeb --- /dev/null +++ b/config/plugins/login.yaml @@ -0,0 +1,46 @@ +enabled: true +built_in_css: true +redirect_to_login: true +redirect_after_logout: / +route_activate: /activate_user +route_forgot: /forgot_password +route_reset: /reset_password +route_profile: /user_profile +route_register: /user_register +route_unauthorized: /user_unauthorized +twofa_enabled: false +dynamic_page_visibility: false +parent_acl: true +protect_protected_page_media: true +rememberme: + enabled: true + timeout: 604800 + name: grav-rememberme +max_pw_resets_count: 2 +max_pw_resets_interval: 60 +max_login_count: 5 +max_login_interval: 10 +ipv6_subnet_size: 64 +user_registration: + enabled: false + fields: + - username + - password + - email + - fullname + - title + - level + - twofa_enabled + default_values: + level: Newbie + access: + site: + login: 'true' + options: + validate_password1_and_password2: true + set_user_disabled: false + login_after_registration: false + send_activation_email: false + manually_enable: false + send_notification_email: false + send_welcome_email: false diff --git a/config/plugins/markdown-notices.yaml b/config/plugins/markdown-notices.yaml new file mode 100644 index 0000000..83f660c --- /dev/null +++ b/config/plugins/markdown-notices.yaml @@ -0,0 +1,8 @@ +enabled: true +built_in_css: false +base_classes: notices +level_classes: + - yellow + - red + - blue + - green diff --git a/config/plugins/pagination.yaml b/config/plugins/pagination.yaml new file mode 100644 index 0000000..91cc517 --- /dev/null +++ b/config/plugins/pagination.yaml @@ -0,0 +1,3 @@ +enabled: true +built_in_css: false +delta: 0 diff --git a/config/plugins/problems.yaml b/config/plugins/problems.yaml new file mode 100644 index 0000000..1d58c99 --- /dev/null +++ b/config/plugins/problems.yaml @@ -0,0 +1,2 @@ +enabled: true +built_in_css: false diff --git a/config/plugins/quick-tray-links.yaml b/config/plugins/quick-tray-links.yaml new file mode 100644 index 0000000..1c0453e --- /dev/null +++ b/config/plugins/quick-tray-links.yaml @@ -0,0 +1,10 @@ +enabled: true +links: + - + icon: 'fa fa-book' + link: 'https://learn.getgrav.org' + tooltip: 'Grav Documentation and Tutorials' + - + icon: 'fa fa-star' + link: 'https://material.io/resources/icons/?style=baseline' + tooltip: 'Material Icons' diff --git a/config/plugins/shortcode-core.yaml b/config/plugins/shortcode-core.yaml new file mode 100644 index 0000000..8072e58 --- /dev/null +++ b/config/plugins/shortcode-core.yaml @@ -0,0 +1,10 @@ +enabled: true +active: true +active_admin: true +admin_pages_only: true +parser: regular +custom_shortcodes: /user/themes/hotdoy/shortcodes +fontawesome: + load: false + url: //maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css + v5: false diff --git a/config/plugins/sitemap.yaml b/config/plugins/sitemap.yaml new file mode 100644 index 0000000..089276d --- /dev/null +++ b/config/plugins/sitemap.yaml @@ -0,0 +1,4 @@ +enabled: true +route: /sitemap +changefreq: daily +priority: !!float 1