From 8064314a68ffa562986f3cc5a7b7eac8d7715fec Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 19 Feb 2023 15:13:01 +0100 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- plugins/devtools/CHANGELOG.md | 7 ++ plugins/devtools/blueprints.yaml | 2 +- plugins/devtools/cli/NewThemeCommand.php | 8 +- .../blueprints/flex-objects/plugin.yaml.twig | 2 +- .../theme/tailwind-mix/CHANGELOG.md.twig | 5 + .../theme/tailwind-mix/LICENSE.twig | 21 ++++ .../theme/tailwind-mix/README.md.twig | 41 ++++++++ .../theme/tailwind-mix/blueprints.yaml.twig | 43 ++++++++ .../theme/tailwind-mix/css/site.css | 5 + .../theme/tailwind-mix/fonts/.gitkeep | 0 .../theme/tailwind-mix/images/logo.png | Bin 0 -> 8714 bytes .../components/theme/tailwind-mix/js/.gitkeep | 0 .../components/theme/tailwind-mix/js/main.js | 5 + .../theme/tailwind-mix/languages/en.yaml.twig | 2 + .../theme/tailwind-mix/package.json.twig | 25 +++++ .../theme/tailwind-mix/screenshot.jpg | Bin 0 -> 15428 bytes .../tailwind-mix/tailwind.config.js.twig | 70 +++++++++++++ .../tailwind-mix/templates/default.html.twig | 5 + .../tailwind-mix/templates/error.html.twig | 8 ++ .../templates/partials/base.html.twig | 68 +++++++++++++ .../templates/partials/navigation.html.twig | 47 +++++++++ .../theme/tailwind-mix/theme.php.twig | 9 ++ .../theme/tailwind-mix/theme.yaml.twig | 4 + .../theme/tailwind-mix/thumbnail.jpg | Bin 0 -> 3681 bytes .../theme/tailwind-mix/webpack.mix.js | 17 ++++ .../theme/tailwind/package-lock.json | 94 ++++++++++++++++++ .../theme/tailwind/package.json.twig | 20 ++-- .../theme/tailwind/postcss.config.js | 10 ++ .../theme/tailwind/tailwind.config.js.twig | 56 +---------- .../templates/partials/base.html.twig | 4 +- plugins/login/CHANGELOG.md | 6 ++ plugins/login/blueprints.yaml | 2 +- plugins/login/login.php | 2 +- 33 files changed, 519 insertions(+), 69 deletions(-) create mode 100644 plugins/devtools/components/theme/tailwind-mix/CHANGELOG.md.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/LICENSE.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/README.md.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/blueprints.yaml.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/css/site.css create mode 100644 plugins/devtools/components/theme/tailwind-mix/fonts/.gitkeep create mode 100644 plugins/devtools/components/theme/tailwind-mix/images/logo.png create mode 100644 plugins/devtools/components/theme/tailwind-mix/js/.gitkeep create mode 100644 plugins/devtools/components/theme/tailwind-mix/js/main.js create mode 100644 plugins/devtools/components/theme/tailwind-mix/languages/en.yaml.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/package.json.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/screenshot.jpg create mode 100644 plugins/devtools/components/theme/tailwind-mix/tailwind.config.js.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/templates/default.html.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/templates/error.html.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/templates/partials/base.html.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/templates/partials/navigation.html.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/theme.php.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/theme.yaml.twig create mode 100644 plugins/devtools/components/theme/tailwind-mix/thumbnail.jpg create mode 100644 plugins/devtools/components/theme/tailwind-mix/webpack.mix.js create mode 100644 plugins/devtools/components/theme/tailwind/package-lock.json create mode 100644 plugins/devtools/components/theme/tailwind/postcss.config.js diff --git a/plugins/devtools/CHANGELOG.md b/plugins/devtools/CHANGELOG.md index e9a4a58..bcfb483 100644 --- a/plugins/devtools/CHANGELOG.md +++ b/plugins/devtools/CHANGELOG.md @@ -1,3 +1,10 @@ +# v1.7.0 +## 02/15/2023 + +1. [](#improved) + * Created non-opinionated and basic Tailwind CSS theme as default `tailwind` solution + * Moved the opinionated Tailwind CSS theme with Laravel Mix to a separate option + # v1.6.1 ## 01/02/2023 diff --git a/plugins/devtools/blueprints.yaml b/plugins/devtools/blueprints.yaml index a999b51..6f026d0 100644 --- a/plugins/devtools/blueprints.yaml +++ b/plugins/devtools/blueprints.yaml @@ -1,7 +1,7 @@ name: DevTools slug: devtools type: plugin -version: 1.6.1 +version: 1.7.0 description: Plugin and Theme scaffolding utilities icon: cogs author: diff --git a/plugins/devtools/cli/NewThemeCommand.php b/plugins/devtools/cli/NewThemeCommand.php index fb479ef..089b110 100644 --- a/plugins/devtools/cli/NewThemeCommand.php +++ b/plugins/devtools/cli/NewThemeCommand.php @@ -138,7 +138,13 @@ class NewThemeCommand extends DevToolsCommand $question = new ChoiceQuestion( 'Please choose an option', - ['pure-blank' => 'Basic Theme using Pure.css', 'tailwind' => 'Basic Theme using tailwind.css', 'inheritance' => 'Inherit from another theme', 'copy' => 'Copy another theme'] + [ + 'pure-blank' => 'Basic Theme using Pure.css', + 'tailwind' => 'Basic Theme using tailwind.css and including Alpine.js', + 'tailwind-mix' => 'Same as `tailwind` but more opinionated with Laravel Mix compiler', + 'inheritance' => 'Inherit from another theme', + 'copy' => 'Copy another theme' + ] ); $this->component['template'] = $io->askQuestion($question); diff --git a/plugins/devtools/components/plugin/flex/blueprints/flex-objects/plugin.yaml.twig b/plugins/devtools/components/plugin/flex/blueprints/flex-objects/plugin.yaml.twig index 70e6f15..a6556c9 100644 --- a/plugins/devtools/components/plugin/flex/blueprints/flex-objects/plugin.yaml.twig +++ b/plugins/devtools/components/plugin/flex/blueprints/flex-objects/plugin.yaml.twig @@ -47,7 +47,7 @@ config: # Edit View edit: title: - template: '{{ object.title }}' + template: '{{ object.name }}' # Preview View preview: diff --git a/plugins/devtools/components/theme/tailwind-mix/CHANGELOG.md.twig b/plugins/devtools/components/theme/tailwind-mix/CHANGELOG.md.twig new file mode 100644 index 0000000..37256e0 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/CHANGELOG.md.twig @@ -0,0 +1,5 @@ +# v0.1.0 +## {{ "now"|date("m/d/Y") }} + +1. [](#new) + * ChangeLog started... diff --git a/plugins/devtools/components/theme/tailwind-mix/LICENSE.twig b/plugins/devtools/components/theme/tailwind-mix/LICENSE.twig new file mode 100644 index 0000000..015a4ae --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/LICENSE.twig @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) {{ "now"|date("Y") }} {{ component.author.name }} + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/plugins/devtools/components/theme/tailwind-mix/README.md.twig b/plugins/devtools/components/theme/tailwind-mix/README.md.twig new file mode 100644 index 0000000..c6d05fd --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/README.md.twig @@ -0,0 +1,41 @@ +# {{ component.name|titleize }} Theme + +The **{{ component.name|titleize }}** Theme is for [Grav CMS](http://github.com/getgrav/grav). This README.md file should be modified to describe the features, installation, configuration, and general usage of this theme. + +## Description + +{{ component.description }} + +# Instructions + +Run + +`npm install` to setup tailwind and required plugins + +How to build tailwind: + +Development: + +`npm run build` for single time compiling + +`npm run watch` for constant development + +Production: + +`npm run prod` for production compiling. **Don't forget to turn on production mode in the theme config**# Instructions + +Run + +`npm install` to setup tailwind and required plugins + +How to build tailwind: + +Development: + +`npm run build` for single time compiling + +`npm run watch` for constant development + +Production: + +`npm run prod` for production compiling. **Don't forget to turn on production mode in the theme config** diff --git a/plugins/devtools/components/theme/tailwind-mix/blueprints.yaml.twig b/plugins/devtools/components/theme/tailwind-mix/blueprints.yaml.twig new file mode 100644 index 0000000..a592fb7 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/blueprints.yaml.twig @@ -0,0 +1,43 @@ +{% set githubid = component.author.githubid ?: component.author.name|hyphenize -%} +name: {{ component.name|titleize }} +slug: {{ component.name|hyphenize }} +type: theme +version: 0.1.0 +description: {{ component.description }} +icon: rebel +author: + name: {{ component.author.name }} + email: {{ component.author.email }} +homepage: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize }} +demo: http://demo.yoursite.com +keywords: grav, theme, etc +bugs: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize }}/issues +readme: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize }}/blob/develop/README.md +license: MIT + +dependencies: + - { name: grav, version: '>=1.6.0' } + +form: + validation: loose + fields: + dropdown.enabled: + type: toggle + label: Dropdown in Menu + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool + production: + type: toggle + label: Production Mode + highlight: 1 + default: 1 + options: + 1: PLUGIN_ADMIN.ENABLED + 0: PLUGIN_ADMIN.DISABLED + validate: + type: bool diff --git a/plugins/devtools/components/theme/tailwind-mix/css/site.css b/plugins/devtools/components/theme/tailwind-mix/css/site.css new file mode 100644 index 0000000..f578962 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/css/site.css @@ -0,0 +1,5 @@ +/*@import 'yourcssfile.css';*/ + +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/plugins/devtools/components/theme/tailwind-mix/fonts/.gitkeep b/plugins/devtools/components/theme/tailwind-mix/fonts/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/plugins/devtools/components/theme/tailwind-mix/images/logo.png b/plugins/devtools/components/theme/tailwind-mix/images/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..64be1a96336228bbcb5dc3604ce7dbbe1e8d99c6 GIT binary patch literal 8714 zcmV+lBK6&gP)dbVG7wVRUJ4ZXi@?ZDjy4F)uSOF*Inm5byv1AOJ~3 zK~#90?VWeLTvgTgzqxajA_9>jJSv0>A|ORT5D+AR9}%QWuR$pSA|PEX5BP%8iShzI zfDqsTq^X1sO9)aF6%YfyHZGwE3WTa6!i4vay(gJFcgmS__9-*>d_SN0B=^iYd#~iq zn%&m=t#OoOill{rC4lk3!v6AtzKzddEiN4R^96lX7*gd_Dkw09V8}_76sM^J^`!_tOk4x z7|hcyU^Xxl_?>_K3V7Vi=HzNsk5W2FL?kT(Yz%zbzdlay{QtcU`~tWixDR;1%-+h^ zq~4%ce!-a|X+B^h;B&y{xT#aW@GszJz#YIXW;UF&J%y!okUAtS0Bi~DhI5Jq^R*~5 z{s3GDTw`W4^ERePjClu<^d4XE=A`|`CYcYY822)N43{*t#bc{64mMA8bt{=gLA zgE^a1RPF*U0)9MJ*DPboK_pdx?SVsZ3+|F=%myw4&M~tm^EM_+#)O0T!?}HcBXDOE zCGn^NKL*Y)vtQ+HOcwODgGl-Sa3pXL?&P{89QOeyo7ru78 z97NKR!1=)E^R^{0&jGub*?p~UkhB$WCGh^ttP0D^I4AkvybbAwo^cRKTLPEhvhn(f zSAeynoKQ>J9O&8Uisu^OKr?$KZ$qL`cn9$jwxc$@;0Cq zl6Jbi@o>e#sNUo4CwB*tv_0+wxv&eh0@Bm*O%d1&xIs zojHKpICvg-37CWXjJzM`l=Ee5OO54$8Im?OvrIQAGIbD12LMyE?6crB{Z^FpA>byQ zFm^p};y$vhd%>JErN2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t0ar;xK~y%dRo=GrF|&cw zf$#U5W7Ozd2dN=xUEnC-^AtF8pvQOySL)&iX7-P~jY*TfcaR#AmcuRP_XXaUvpK!W z!?-i3t3%e{C^BQlL25`E4@|-3oqRlJb9#ZdaLH^x3@zo_3ye7jsYlWVI7it9STJXE zipFEW1vri4o;}A%%9wVL8j=>mE#`Luwgl$O*P`4Q#*G$Ncu|cpPw5~HNLmCJ5V;+$ zDCZ*iT9i67aiSU5c{!$%I!Xs=gU^%S0N4Vj2)PEm|9|!>a2IeZa9ghh4`xlT|FSbh z(xSlnz=k--`4q)hUwjg$FI;;)Ze~R(k5_m~2T6b*VOGQmL9Fgys{+fAy~frXz#ni^ zrkOaQikW6sq=KqFN9iCbAn858M}P@+uO)!R{A)>IQRW3#F2v|V%zxr?w%-9>!JS&y oUN7QGNzB46tY?koou)MT|9Pw6-~weyjQ{`u07*qoM6N<$f*3ioiU0rr literal 0 HcmV?d00001 diff --git a/plugins/devtools/components/theme/tailwind-mix/js/.gitkeep b/plugins/devtools/components/theme/tailwind-mix/js/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/plugins/devtools/components/theme/tailwind-mix/js/main.js b/plugins/devtools/components/theme/tailwind-mix/js/main.js new file mode 100644 index 0000000..8647582 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/js/main.js @@ -0,0 +1,5 @@ +import Alpine from 'alpinejs' + +window.Alpine = Alpine + +Alpine.start() \ No newline at end of file diff --git a/plugins/devtools/components/theme/tailwind-mix/languages/en.yaml.twig b/plugins/devtools/components/theme/tailwind-mix/languages/en.yaml.twig new file mode 100644 index 0000000..2b48ba2 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/languages/en.yaml.twig @@ -0,0 +1,2 @@ +THEME_{{ component.name|hyphenize|replace({'-': '_'})|upper }}: + ERROR: 'Error!' diff --git a/plugins/devtools/components/theme/tailwind-mix/package.json.twig b/plugins/devtools/components/theme/tailwind-mix/package.json.twig new file mode 100644 index 0000000..09c8658 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/package.json.twig @@ -0,0 +1,25 @@ +{ + "name": "{{ component.name }}", + "repository": "", + "private": true, + "version": "0.1.0", + "description": "", + "main": "index.js", + "scripts": { + "build": "npx mix", + "watch": "npx mix watch", + "prod": "npx mix -p" + }, + "dependencies": {}, + "devDependencies": { + "@tailwindcss/forms": "^0.5.0", + "@tailwindcss/typography": "^0.5.2", + "alpinejs": "^2.8.2", + "browser-sync": "^2.27.7", + "browser-sync-webpack-plugin": "^2.3.0", + "laravel-mix": "^6.0.43", + "mix-tailwindcss": "^1.3.0", + "tailwindcss": "^3.0.18", + "tailwindcss-debug-screens": "^2.2.1" + } +} diff --git a/plugins/devtools/components/theme/tailwind-mix/screenshot.jpg b/plugins/devtools/components/theme/tailwind-mix/screenshot.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5205ca51a97ac3299d523099ef55e29a5228f670 GIT binary patch literal 15428 zcmeHubyQW|7VkcEBaH~6NC-$sNtb{i4To+7q#L9;bV@4SNE}+aO9?@`ySq!ucpLQI z@4I)5_r`et-to;d#$Lbqn{%zb)?9JcUT2?QlfM>$J1-@qBmf8m0!V@%;MWY`58z;6 zU}2!+U}0h1!NtKNdPG7*KtRMu`GD*ZI};}-8`D!(ZXrc+Zhjd7)~6EsFJzQewY0Rj zp1(3TR5w%9&{Bio-nm1BPee~bLa)aAlvnNlTYj|zcxZ@6;0J;SAmBj|@gToG1NQ(3 zfPe_r^e;h1K|n-;p#GW$(0=n*U>p7i1*NFszgk5){7u{Qzc^RL0C~;U|0Ic$7Aw^M zixVD$*d+a@8Y6ntlj4a2*%3*glzN)``tfANU!wjPLm}7Jj!2$ zr2Yb2z?%jQl+Q8$vEyKv1Wd~S0KK95t!f_DL$qZYyF;k^`g`KGJG}j4|fpcwxWQMlkW%vhQHlP#u0jr0E{t9KbrzN8Es(zk<3UP0Qgw$2?GepcaX*!Z!#m$CLotP z0svWlN-Kb9yaV3+jtVPD$>EKWKl8}P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bqBX--h5gWqmksDTEOS+ zH1Wz{wk(!({ZCcObStHZCR>JFNXE5F*Ai`Cj@c40AAOr>AF|bbq(-oAL%eS~6-O39 z8eWYZu_WE3t6gtJ8-^e+$Q|P3$2H694bzTh zx-2wimfmeDNkHVMks4p`vlY{e$Ct*Qhc;ynaYKjJY5mFsF3nRKad#uQiz;u6H|A<< z>##)%vZMLt93mWNMZ$R1bQRxsdwWR!;HAbNelBuu!^r7t z7qnx<>+QT$!GYl*bb7J#t>>EKlMGEC2X@}ny(U{)O+j~IofX48QD#R8q3^>B<@(-! zuYVB#cq{h{K$~kZ9BFBPW;1#E3pjl1Mf~GE;`e((n`Ldm;~xP2f0|Kb7u3-{Jz>i+-@uaLC> literal 0 HcmV?d00001 diff --git a/plugins/devtools/components/theme/tailwind-mix/tailwind.config.js.twig b/plugins/devtools/components/theme/tailwind-mix/tailwind.config.js.twig new file mode 100644 index 0000000..9aa99b6 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/tailwind.config.js.twig @@ -0,0 +1,70 @@ +const colors = require('tailwindcss/colors'); + +module.exports = { + content: [ + '../../config/**/*.yaml', + '../../pages/**/*.md', + './blueprints/**/*.yaml', + './js/**/*.js', + './templates/**/*.twig', + './{{ component.name|hyphenize }}.yaml', + './{{ component.name|hyphenize }}.php' + ], + darkMode: 'class', //false or 'media' or 'class' + theme: { + extend: { + screens: { + sm: '640px', + md: '768px', + lg: '1024px', + xl: '1280px', + '2xl': '1536px' + } + }, + colors: { + 'primary': { + 'lighter': colors.yellow['300'], + DEFAULT: colors.yellow['400'], + 'darker' : colors.yellow['500'], + }, + black: colors.black, + white: colors.white, + red: colors.red, + green: colors.green, + blue: colors.blue, + orange: colors.orange, + indigo: colors.indigo, + transparent: 'transparent', + 'inherit': 'inherit', + }, + typography: (theme) => ({ + DEFAULT: { + css: { + color: 'inherit', + lineHeight: 'inherit', + maxWidth: 'inherit', + a: { + transition: 'all 500ms', + color: theme('colors.primary.DEFAULT'), + '&:hover': { + color: theme('colors.primary.darker') + }, + textDecoration: 'none' + }, + strong: { + color: 'inherit' + }, + } + } + }), + }, + variants: { + extend: {}, + }, + plugins: [ + require('@tailwindcss/forms'), + require('@tailwindcss/typography'), + require('tailwindcss-debug-screens') + ], + important: false, +} diff --git a/plugins/devtools/components/theme/tailwind-mix/templates/default.html.twig b/plugins/devtools/components/theme/tailwind-mix/templates/default.html.twig new file mode 100644 index 0000000..1e97738 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/templates/default.html.twig @@ -0,0 +1,5 @@ +{% extends 'partials/base.html.twig' %} + +{% block content %} + {{ page.content|raw }} +{% endblock %} diff --git a/plugins/devtools/components/theme/tailwind-mix/templates/error.html.twig b/plugins/devtools/components/theme/tailwind-mix/templates/error.html.twig new file mode 100644 index 0000000..c25efaa --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/templates/error.html.twig @@ -0,0 +1,8 @@ +{% extends 'partials/base.html.twig' %} + +{% block content %} +
+

{{ 'THEME_TAILWIND.ERROR'|t }}

+ {{ page.content|raw }} +
+{% endblock %} diff --git a/plugins/devtools/components/theme/tailwind-mix/templates/partials/base.html.twig b/plugins/devtools/components/theme/tailwind-mix/templates/partials/base.html.twig new file mode 100644 index 0000000..4ec88dd --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/templates/partials/base.html.twig @@ -0,0 +1,68 @@ +{% set extension = config.theme.production ? '.min' : '' %} + + + + {% block head %} + + {% if header.title %}{{ header.title|e }} | {% endif %}{{ site.title|e }} + + + + {% include 'partials/metadata.html.twig' %} + + + + {% endblock head %} + + {% block stylesheets %} + {% do assets.addCss('theme://dist/css/site' ~ extension ~ '.css', 98) %} + {% endblock %} + + {% block javascripts %} + {% do assets.addJs('theme://dist/js/main' ~ extension ~ '.js', 98) %} + {% endblock %} + + {% block assets deferred %} + {{ assets.css()|raw }} + {{ assets.js()|raw }} + {% endblock %} + + + +{% block header %} +
+
+ + {% block header_navigation %} + + {% endblock %} +
+
+{% endblock %} + +{% block body %} +
+
+ {% block content %}{% endblock %} +
+
+{% endblock %} + +{% block footer %} + +{% endblock %} + +{% block bottom %} + {{ assets.js('bottom')|raw }} +{% endblock %} + + + diff --git a/plugins/devtools/components/theme/tailwind-mix/templates/partials/navigation.html.twig b/plugins/devtools/components/theme/tailwind-mix/templates/partials/navigation.html.twig new file mode 100644 index 0000000..28df6aa --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/templates/partials/navigation.html.twig @@ -0,0 +1,47 @@ +{% macro loop(page) %} + {% for p in page.children.visible %} + {% set current_page = (p.active or p.activeChild) ? 'selected' : '' %} + {% if p.children.visible.count > 0 %} +
  • + + {% if p.header.icon %}{% endif %} + {{ p.menu|e }} + +
      + {{ _self.loop(p) }} +
    +
  • + {% else %} +
  • + + {% if p.header.icon %}{% endif %} + {{ p.menu|e }} + +
  • + {% endif %} + {% endfor %} +{% endmacro %} + + diff --git a/plugins/devtools/components/theme/tailwind-mix/theme.php.twig b/plugins/devtools/components/theme/tailwind-mix/theme.php.twig new file mode 100644 index 0000000..332b164 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/theme.php.twig @@ -0,0 +1,9 @@ +1YDr_`md&!GCK1 z<>(8qHrW3=CJt)*JFf!(b4y>bb>*hD%@1C`#{d(uCYWoYG~{l5vtWJTHULES`a4&A zS{h7xvA>EP|8e_3#Et^+zPd88XteMt0iF*Xknb1l;ahnv@nY~0U~ZS28`q5sg>~(G zJDHMTzm3U@G_P^L2{Iy2s#(T&?S}g|usB~D@&wqShTlmJhBvyNG*Lp?G+Pu)LIKM{ zuRBg$aSC@*iMX9b>IKl2*v#F5n^r&CQ9b+28q`v|b&k52;oCqNZvH2Q`D~fY4iQr7 zdqat6d<*yTGV?~lX1zuq5wY!R;dIC(A*&z~BT)C*OH2~M-=8}fezh0V^L$%eQ^9v^ z|FLDE+bA|eBJ<4&j}hhX8Fm+Mt%A&R*&Aa239>|ne=9UOrMheB71ns>S~^?|?=1Pi zdoLjA@aZ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p@;)to=W(TnE-ZtrK#P=NoP1rrwgr7j_Qk8B{M^HD_5 z7r~*3cls7f>$~vC7A>To6=PD5CQ(<`GyJW;t2c_aTZ&40T%9Q>9eCk;=SP#U1og|> zD;oE!7pf4UVM1JVr((06(wKxC_xj^saBsdvu^q=%l@vv1!X{H-j|&I$ZB8N82)9o! zOFLlJ{YtG!{ba#x;U4P#c>{Xx&f>0)u0is(kEX^dZVQEIo21x;&0%qVFVTZOPE8%-}*H4&Bq zt%duY^i$13V38GB5qJ7y6>{O08r4+smYIhnS~72N#R>m3ZwIrG-3^Z|*+&6!TT?#_ zrE8F39EG1HI}}^dn!R>6_ZF@+4ZXic^@k9qC)Pgx&AMLGAt@sz4}d7JXLvAP=8Opz z^VYZxi{O8`)@(gDwQ8msQeg|tE1E~+CEm3L%@=cXJDseJB-`Xv?$?#c<#`?|dsmFl5yTlCoX#8IoF}gbd literal 0 HcmV?d00001 diff --git a/plugins/devtools/components/theme/tailwind-mix/webpack.mix.js b/plugins/devtools/components/theme/tailwind-mix/webpack.mix.js new file mode 100644 index 0000000..a396802 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind-mix/webpack.mix.js @@ -0,0 +1,17 @@ +let mix = require('laravel-mix'); +require('mix-tailwindcss'); + +const extension = mix.inProduction() ? '.min' : ''; + +mix.js('js/main.js', `js/main${extension}.js`) + .css('css/site.css', `css/site${extension}.css`) + .tailwind() + .setPublicPath('dist') + .version() + // .browserSync({ + // proxy: 'http://domain.test', + // files: [ + // './dist/mix-manifest.json', + // '../../pages/**/*.md' + // ] + // }) diff --git a/plugins/devtools/components/theme/tailwind/package-lock.json b/plugins/devtools/components/theme/tailwind/package-lock.json new file mode 100644 index 0000000..f8d4913 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind/package-lock.json @@ -0,0 +1,94 @@ +{ + "name": "tailwind", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "devDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "dev": true, + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "node_modules/postcss": { + "version": "8.4.21", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", + "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + } + ], + "dependencies": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + } + }, + "dependencies": { + "nanoid": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "dev": true + }, + "postcss": { + "version": "8.4.21", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", + "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", + "dev": true, + "requires": { + "nanoid": "^3.3.4", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "source-map-js": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", + "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", + "dev": true + } + } +} diff --git a/plugins/devtools/components/theme/tailwind/package.json.twig b/plugins/devtools/components/theme/tailwind/package.json.twig index 09c8658..7cacd40 100644 --- a/plugins/devtools/components/theme/tailwind/package.json.twig +++ b/plugins/devtools/components/theme/tailwind/package.json.twig @@ -6,20 +6,20 @@ "description": "", "main": "index.js", "scripts": { - "build": "npx mix", - "watch": "npx mix watch", - "prod": "npx mix -p" + "build": "cross-env NODE_ENV=development tailwindcss -i ./css/site.css -o ./dist/css/site.css --postcss", + "watch": "cross-env NODE_ENV=development tailwindcss -i ./css/site.css -o ./dist/css/site.css --postcss --watch", + "prod" : "cross-env NODE_ENV=production tailwindcss -i ./css/site.css -o ./dist/css/site.css --postcss" }, "dependencies": {}, "devDependencies": { - "@tailwindcss/forms": "^0.5.0", - "@tailwindcss/typography": "^0.5.2", + "@tailwindcss/forms": "^0.5.3", + "@tailwindcss/typography": "^0.5.9", "alpinejs": "^2.8.2", - "browser-sync": "^2.27.7", - "browser-sync-webpack-plugin": "^2.3.0", - "laravel-mix": "^6.0.43", - "mix-tailwindcss": "^1.3.0", - "tailwindcss": "^3.0.18", + "autoprefixer": "^10.4.13", + "cross-env": "^7.0.3", + "postcss": "^8.4.21", + "postcss-import": "^15.1.0", + "tailwindcss": "^3.2.6", "tailwindcss-debug-screens": "^2.2.1" } } diff --git a/plugins/devtools/components/theme/tailwind/postcss.config.js b/plugins/devtools/components/theme/tailwind/postcss.config.js new file mode 100644 index 0000000..98680a1 --- /dev/null +++ b/plugins/devtools/components/theme/tailwind/postcss.config.js @@ -0,0 +1,10 @@ +module.exports = { + plugins: { + 'postcss-import': {}, + 'tailwindcss/nesting': {}, + tailwindcss: {}, + autoprefixer: {}, + ...process.env.NODE_ENV === 'production' + ? {'cssnano': {}} : {} + } +} diff --git a/plugins/devtools/components/theme/tailwind/tailwind.config.js.twig b/plugins/devtools/components/theme/tailwind/tailwind.config.js.twig index 9aa99b6..846e3f4 100644 --- a/plugins/devtools/components/theme/tailwind/tailwind.config.js.twig +++ b/plugins/devtools/components/theme/tailwind/tailwind.config.js.twig @@ -1,5 +1,4 @@ -const colors = require('tailwindcss/colors'); - +/** @type {import('tailwindcss').Config} */ module.exports = { content: [ '../../config/**/*.yaml', @@ -11,60 +10,13 @@ module.exports = { './{{ component.name|hyphenize }}.php' ], darkMode: 'class', //false or 'media' or 'class' - theme: { - extend: { - screens: { - sm: '640px', - md: '768px', - lg: '1024px', - xl: '1280px', - '2xl': '1536px' - } - }, - colors: { - 'primary': { - 'lighter': colors.yellow['300'], - DEFAULT: colors.yellow['400'], - 'darker' : colors.yellow['500'], - }, - black: colors.black, - white: colors.white, - red: colors.red, - green: colors.green, - blue: colors.blue, - orange: colors.orange, - indigo: colors.indigo, - transparent: 'transparent', - 'inherit': 'inherit', - }, - typography: (theme) => ({ - DEFAULT: { - css: { - color: 'inherit', - lineHeight: 'inherit', - maxWidth: 'inherit', - a: { - transition: 'all 500ms', - color: theme('colors.primary.DEFAULT'), - '&:hover': { - color: theme('colors.primary.darker') - }, - textDecoration: 'none' - }, - strong: { - color: 'inherit' - }, - } - } - }), - }, + theme: {}, variants: { - extend: {}, + extend: {} }, plugins: [ require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('tailwindcss-debug-screens') - ], - important: false, + ] } diff --git a/plugins/devtools/components/theme/tailwind/templates/partials/base.html.twig b/plugins/devtools/components/theme/tailwind/templates/partials/base.html.twig index 643d4de..ae825a0 100644 --- a/plugins/devtools/components/theme/tailwind/templates/partials/base.html.twig +++ b/plugins/devtools/components/theme/tailwind/templates/partials/base.html.twig @@ -19,7 +19,7 @@ {% endblock %} {% block javascripts %} - {% do assets.addJs('theme://dist/js/main' ~ extension ~ '.js', 98) %} + {% do assets.addJs('theme://js/main' ~ extension ~ '.js', 98) %} {% endblock %} {% block assets deferred %} @@ -55,7 +55,7 @@ {% block footer %} {% endblock %} diff --git a/plugins/login/CHANGELOG.md b/plugins/login/CHANGELOG.md index f61b561..8d69c7d 100644 --- a/plugins/login/CHANGELOG.md +++ b/plugins/login/CHANGELOG.md @@ -1,3 +1,9 @@ +# v3.7.3 +## 02/17/2023 + +1. [](#bugfix) + * Fixed an issue where user was not being redirected to the correct page after login + # v3.7.2 ## 01/02/2023 diff --git a/plugins/login/blueprints.yaml b/plugins/login/blueprints.yaml index ab7cc36..3a3ae2a 100644 --- a/plugins/login/blueprints.yaml +++ b/plugins/login/blueprints.yaml @@ -1,7 +1,7 @@ name: Login slug: login type: plugin -version: 3.7.2 +version: 3.7.3 testing: false description: Enables user authentication and login screen. icon: sign-in diff --git a/plugins/login/login.php b/plugins/login/login.php index da908fa..54a6d74 100644 --- a/plugins/login/login.php +++ b/plugins/login/login.php @@ -337,7 +337,7 @@ class LoginPlugin extends Plugin if ($page) { $header = $page->header(); - $allowed = ($header->login_redirect_here ?? true) === false; + $allowed = ($header->login_redirect_here ?? true) === true; if ($allowed && $page->routable()) { $redirect = $page->route(); foreach ($uri->params(null, true) as $key => $value) {