From 2798a4761f5351e86e7a0ad7331e9b2678d02b46 Mon Sep 17 00:00:00 2001 From: Shift Date: Thu, 25 Jan 2024 08:35:48 +0000 Subject: [PATCH 1/3] Streamline Tailwind config file --- tailwind.config.js | 149 --------------------------------------------- 1 file changed, 149 deletions(-) delete mode 100644 tailwind.config.js diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100644 index d281351..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,149 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -import variables from '@mertasan/tailwindcss-variables'; -import forms from '@tailwindcss/forms'; -import typography from '@tailwindcss/typography'; -import colors from 'tailwindcss/colors'; -import defaultTheme from 'tailwindcss/defaultTheme'; - -export const themeColors = { - primary: colors.violet, - secondary: colors.gray, - success: colors.emerald, - warning: colors.amber, - danger: colors.rose, - info: colors.indigo, - dark: colors.slate, - }; - -export default { - darkMode: 'class', - content: [ - "./resources/**/*.blade.php", - "./resources/**/*.js", - "./resources/**/*.vue", - ], - theme: { - fontFamily: { - sans: ['Poppins', ...defaultTheme.fontFamily.sans], - }, - container: { - center: true, - screens: { - sm: '100%', - md: '100%', - lg: '100%', - xl: '100%', - '2xl': '1536px', - }, - }, - extend: { - transitionProperty: { - width: 'width', - height: 'height', - margin: 'margin', - }, - keyframes: { - 'fade-in-up': { - '0%': { - opacity: '0', - transform: 'translateY(10px)', - }, - '100%': { - opacity: '1', - transform: 'translateY(0)', - }, - }, - 'face-in-down': { - '0%': { - opacity: '0', - transform: 'translateY(-10px)', - }, - '100%': { - opacity: '1', - transform: 'translateY(0)', - }, - }, - 'fade-in': { - '0%': { - opacity: '0', - }, - '100%': { - opacity: '1', - }, - }, - 'fade-out': { - '0%': { - opacity: '1', - }, - '100%': { - opacity: '0', - }, - }, - }, - animation: { - 'fade-in-up': 'fade-in-up 250ms ease-in-out', - 'fade-in-down': 'fade-in-down 250ms ease-in-out', - 'fade-in': 'fade-in 250ms ease-in-out', - 'fade-out': 'fade-out 250ms ease-in-out', - }, - colors: themeColors, - variables: { - DEFAULT: { - ...themeColors, - }, - }, - borderRadius: { - primary: '0.4rem', - }, - typography: (theme) => ({ - DEFAULT: { - css: { - '--tw-prose-body': theme('colors.slate.700'), - '--tw-prose-headings': theme('colors.slate.700'), - '--tw-prose-lead': theme('colors.slate.600'), - '--tw-prose-links': theme('colors.primary.500'), - '--tw-prose-bold': theme('colors.slate.700'), - '--tw-prose-counters': theme('colors.slate.600'), - '--tw-prose-bullets': theme('colors.slate.700'), - '--tw-prose-hr': theme('colors.slate.200'), - '--tw-prose-quotes': theme('colors.slate.600'), - '--tw-prose-quote-borders': theme('colors.slate.200'), - '--tw-prose-captions': theme('colors.slate.600'), - '--tw-prose-code': theme('colors.slate.700'), - '--tw-prose-pre-code': theme('colors.slate.200'), - '--tw-prose-pre-bg': theme('colors.slate.900'), - '--tw-prose-th-borders': theme('colors.slate.200'), - '--tw-prose-td-borders': theme('colors.slate.200'), - '--tw-prose-invert-body': theme('colors.slate.200'), - '--tw-prose-invert-headings': theme('colors.slate.200'), - '--tw-prose-invert-lead': theme('colors.slate.300'), - '--tw-prose-invert-links': theme('colors.primary.500'), - '--tw-prose-invert-bold': theme('colors.slate.200'), - '--tw-prose-invert-counters': theme('colors.slate.300'), - '--tw-prose-invert-bullets': theme('colors.slate.200'), - '--tw-prose-invert-hr': theme('colors.slate.600'), - '--tw-prose-invert-quotes': theme('colors.slate.300'), - '--tw-prose-invert-quote-borders': theme('colors.slate.600'), - '--tw-prose-invert-captions': theme('colors.slate.300'), - '--tw-prose-invert-code': theme('colors.slate.200'), - '--tw-prose-invert-pre-code': theme('colors.slate.200'), - '--tw-prose-invert-pre-bg': theme('colors.slate.900'), - '--tw-prose-invert-th-borders': theme('colors.slate.600'), - '--tw-prose-invert-td-borders': theme('colors.slate.600'), - a: { - color: theme('colors.primary.500'), - '&:hover': { - color: theme('colors.primary.600'), - }, - }, - table: { - overflowX: 'auto', - }, - }, - }, - }), - }, - }, - plugins: [forms, variables, typography], -} - From f66b76f55d2c4400672eaf6e55eb17487dd6225b Mon Sep 17 00:00:00 2001 From: Shift Date: Thu, 25 Jan 2024 08:37:39 +0000 Subject: [PATCH 2/3] Sort Tailwind classes --- public/build/assets/app-O_D2ROx5.js | 2 +- .../views/auth/forgot-password.blade.php | 2 +- resources/views/auth/login.blade.php | 2 +- resources/views/auth/register.blade.php | 2 +- resources/views/auth/reset-password.blade.php | 2 +- resources/views/auth/verify-email.blade.php | 2 +- .../views/components/admin-header.blade.php | 2 +- .../views/components/header-menu.blade.php | 2 +- .../components/media/centered-modal.blade.php | 6 ++--- .../components/media/media-gallery.blade.php | 4 ++-- .../views/components/media/media.blade.php | 2 +- .../views/components/notification.blade.php | 2 +- resources/views/components/sidebar.blade.php | 4 ++-- .../dashboard/authentication/login.blade.php | 2 +- .../authentication/recover-password.blade.php | 2 +- .../authentication/register.blade.php | 2 +- .../authentication/reset-password.blade.php | 2 +- .../views/dashboard/invoice/create.blade.php | 2 +- .../views/dashboard/invoice/details.blade.php | 2 +- .../dashboard/notification/index.blade.php | 6 ++--- .../dashboard/notification/show.blade.php | 10 ++++----- .../views/dashboard/roles/create.blade.php | 10 ++++----- .../views/dashboard/roles/edit.blade.php | 8 +++---- .../views/dashboard/roles/index.blade.php | 12 +++++----- .../views/dashboard/roles/show.blade.php | 8 +++---- .../views/dashboard/settings/index.blade.php | 4 ++-- .../views/dashboard/user/index.blade.php | 22 +++++++++---------- resources/views/layouts/app2.blade.php | 4 ++-- resources/views/profile/edit.blade.php | 4 ++-- 29 files changed, 67 insertions(+), 67 deletions(-) diff --git a/public/build/assets/app-O_D2ROx5.js b/public/build/assets/app-O_D2ROx5.js index 18aeeba..bcf6c9c 100644 --- a/public/build/assets/app-O_D2ROx5.js +++ b/public/build/assets/app-O_D2ROx5.js @@ -156,7 +156,7 @@ Expect errors in decoding.`),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");a=this.KEY_ST * @license MIT licensed * * Copyright (C) 2018 Varun A P - */(function(n){(function(e,t){n.exports?n.exports=t():e.Toastify=t()})(Ra,function(e){var t=function(s){return new t.lib.init(s)},r="1.12.0";t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},t.lib=t.prototype={toastify:r,constructor:t,init:function(s){return s||(s={}),this.options={},this.toastElement=null,this.options.text=s.text||t.defaults.text,this.options.node=s.node||t.defaults.node,this.options.duration=s.duration===0?0:s.duration||t.defaults.duration,this.options.selector=s.selector||t.defaults.selector,this.options.callback=s.callback||t.defaults.callback,this.options.destination=s.destination||t.defaults.destination,this.options.newWindow=s.newWindow||t.defaults.newWindow,this.options.close=s.close||t.defaults.close,this.options.gravity=s.gravity==="bottom"?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=s.positionLeft||t.defaults.positionLeft,this.options.position=s.position||t.defaults.position,this.options.backgroundColor=s.backgroundColor||t.defaults.backgroundColor,this.options.avatar=s.avatar||t.defaults.avatar,this.options.className=s.className||t.defaults.className,this.options.stopOnFocus=s.stopOnFocus===void 0?t.defaults.stopOnFocus:s.stopOnFocus,this.options.onClick=s.onClick||t.defaults.onClick,this.options.offset=s.offset||t.defaults.offset,this.options.escapeMarkup=s.escapeMarkup!==void 0?s.escapeMarkup:t.defaults.escapeMarkup,this.options.ariaLive=s.ariaLive||t.defaults.ariaLive,this.options.style=s.style||t.defaults.style,s.backgroundColor&&(this.options.style.background=s.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var s=document.createElement("div");s.className="toastify on "+this.options.className,this.options.position?s.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(s.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):s.className+=" toastify-right",s.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var c in this.options.style)s.style[c]=this.options.style[c];if(this.options.ariaLive&&s.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)s.appendChild(this.options.node);else if(this.options.escapeMarkup?s.innerText=this.options.text:s.innerHTML=this.options.text,this.options.avatar!==""){var o=document.createElement("img");o.src=this.options.avatar,o.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?s.appendChild(o):s.insertAdjacentElement("afterbegin",o)}if(this.options.close===!0){var l=document.createElement("button");l.type="button",l.setAttribute("aria-label","Close"),l.className="toast-close",l.innerHTML="✖",l.addEventListener("click",(function(v){v.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?s.insertAdjacentElement("afterbegin",l):s.appendChild(l)}if(this.options.stopOnFocus&&this.options.duration>0){var u=this;s.addEventListener("mouseover",function(v){window.clearTimeout(s.timeOutValue)}),s.addEventListener("mouseleave",function(){s.timeOutValue=window.setTimeout(function(){u.removeElement(s)},u.options.duration)})}if(typeof this.options.destination<"u"&&s.addEventListener("click",(function(v){v.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&s.addEventListener("click",(function(v){v.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var p=i("x",this.options),_=i("y",this.options),m=this.options.position=="left"?p:"-"+p,g=this.options.gravity=="toastify-top"?_:"-"+_;s.style.transform="translate("+m+","+g+")"}return s},showToast:function(){this.toastElement=this.buildToast();var s;if(typeof this.options.selector=="string"?s=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?s=this.options.selector:s=document.body,!s)throw"Root element is not defined";var c=t.defaults.oldestFirst?s.firstChild:s.lastChild;return s.insertBefore(this.toastElement,c),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(s){s.className=s.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),s.parentNode&&s.parentNode.removeChild(s),this.options.callback.call(s),t.reposition()}).bind(this),400)}},t.reposition=function(){for(var s={top:15,bottom:15},c={top:15,bottom:15},o={top:15,bottom:15},l=document.getElementsByClassName("toastify"),d,u=0;u0?window.innerWidth:screen.width;m<=360?(l[u].style[d]=o[d]+"px",o[d]+=p+_):a(l[u],"toastify-left")===!0?(l[u].style[d]=s[d]+"px",s[d]+=p+_):(l[u].style[d]=c[d]+"px",c[d]+=p+_)}return this};function i(s,c){return c.offset[s]?isNaN(c.offset[s])?c.offset[s]:c.offset[s]+"px":"0px"}function a(s,c){return!s||typeof c!="string"?!1:!!(s.className&&s.className.trim().split(/\s+/gi).indexOf(c)>-1)}return t.lib.init.prototype=t.lib,t})})(z7);var VS=z7.exports;const zt=B2(VS),PS=(()=>{const n=(e,t={})=>zt({text:`
${e}
`,escapeMarkup:!1,...t}).showToast();return n.success=(e,t={})=>zt({text:` + */(function(n){(function(e,t){n.exports?n.exports=t():e.Toastify=t()})(Ra,function(e){var t=function(s){return new t.lib.init(s)},r="1.12.0";t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},t.lib=t.prototype={toastify:r,constructor:t,init:function(s){return s||(s={}),this.options={},this.toastElement=null,this.options.text=s.text||t.defaults.text,this.options.node=s.node||t.defaults.node,this.options.duration=s.duration===0?0:s.duration||t.defaults.duration,this.options.selector=s.selector||t.defaults.selector,this.options.callback=s.callback||t.defaults.callback,this.options.destination=s.destination||t.defaults.destination,this.options.newWindow=s.newWindow||t.defaults.newWindow,this.options.close=s.close||t.defaults.close,this.options.gravity=s.gravity==="bottom"?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=s.positionLeft||t.defaults.positionLeft,this.options.position=s.position||t.defaults.position,this.options.backgroundColor=s.backgroundColor||t.defaults.backgroundColor,this.options.avatar=s.avatar||t.defaults.avatar,this.options.className=s.className||t.defaults.className,this.options.stopOnFocus=s.stopOnFocus===void 0?t.defaults.stopOnFocus:s.stopOnFocus,this.options.onClick=s.onClick||t.defaults.onClick,this.options.offset=s.offset||t.defaults.offset,this.options.escapeMarkup=s.escapeMarkup!==void 0?s.escapeMarkup:t.defaults.escapeMarkup,this.options.ariaLive=s.ariaLive||t.defaults.ariaLive,this.options.style=s.style||t.defaults.style,s.backgroundColor&&(this.options.style.background=s.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var s=document.createElement("div");s.className="toastify on"+this.options.className,this.options.position?s.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(s.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):s.className+=" toastify-right",s.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var c in this.options.style)s.style[c]=this.options.style[c];if(this.options.ariaLive&&s.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)s.appendChild(this.options.node);else if(this.options.escapeMarkup?s.innerText=this.options.text:s.innerHTML=this.options.text,this.options.avatar!==""){var o=document.createElement("img");o.src=this.options.avatar,o.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?s.appendChild(o):s.insertAdjacentElement("afterbegin",o)}if(this.options.close===!0){var l=document.createElement("button");l.type="button",l.setAttribute("aria-label","Close"),l.className="toast-close",l.innerHTML="✖",l.addEventListener("click",(function(v){v.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?s.insertAdjacentElement("afterbegin",l):s.appendChild(l)}if(this.options.stopOnFocus&&this.options.duration>0){var u=this;s.addEventListener("mouseover",function(v){window.clearTimeout(s.timeOutValue)}),s.addEventListener("mouseleave",function(){s.timeOutValue=window.setTimeout(function(){u.removeElement(s)},u.options.duration)})}if(typeof this.options.destination<"u"&&s.addEventListener("click",(function(v){v.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&s.addEventListener("click",(function(v){v.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var p=i("x",this.options),_=i("y",this.options),m=this.options.position=="left"?p:"-"+p,g=this.options.gravity=="toastify-top"?_:"-"+_;s.style.transform="translate("+m+","+g+")"}return s},showToast:function(){this.toastElement=this.buildToast();var s;if(typeof this.options.selector=="string"?s=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?s=this.options.selector:s=document.body,!s)throw"Root element is not defined";var c=t.defaults.oldestFirst?s.firstChild:s.lastChild;return s.insertBefore(this.toastElement,c),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(s){s.className=s.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),s.parentNode&&s.parentNode.removeChild(s),this.options.callback.call(s),t.reposition()}).bind(this),400)}},t.reposition=function(){for(var s={top:15,bottom:15},c={top:15,bottom:15},o={top:15,bottom:15},l=document.getElementsByClassName("toastify"),d,u=0;u0?window.innerWidth:screen.width;m<=360?(l[u].style[d]=o[d]+"px",o[d]+=p+_):a(l[u],"toastify-left")===!0?(l[u].style[d]=s[d]+"px",s[d]+=p+_):(l[u].style[d]=c[d]+"px",c[d]+=p+_)}return this};function i(s,c){return c.offset[s]?isNaN(c.offset[s])?c.offset[s]:c.offset[s]+"px":"0px"}function a(s,c){return!s||typeof c!="string"?!1:!!(s.className&&s.className.trim().split(/\s+/gi).indexOf(c)>-1)}return t.lib.init.prototype=t.lib,t})})(z7);var VS=z7.exports;const zt=B2(VS),PS=(()=>{const n=(e,t={})=>zt({text:`
${e}
`,escapeMarkup:!1,...t}).showToast();return n.success=(e,t={})=>zt({text:`
${t.icon||y2.icons.check.toSvg({width:"16",height:"16"})}
${e}
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php index 58967f9..8c2a4ed 100644 --- a/resources/views/auth/forgot-password.blade.php +++ b/resources/views/auth/forgot-password.blade.php @@ -7,7 +7,7 @@
- +
Recover Your Password
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index e86ab5a..84f2532 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -5,7 +5,7 @@
- +
Welcome Back

Please enter your details

diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index d0f8e8f..e052e78 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -4,7 +4,7 @@
- +
Create Account
diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php index 2901c83..95b4e4a 100644 --- a/resources/views/auth/reset-password.blade.php +++ b/resources/views/auth/reset-password.blade.php @@ -8,7 +8,7 @@
- +
Reset Your Password
diff --git a/resources/views/auth/verify-email.blade.php b/resources/views/auth/verify-email.blade.php index 13e256c..2bfbd95 100644 --- a/resources/views/auth/verify-email.blade.php +++ b/resources/views/auth/verify-email.blade.php @@ -1,5 +1,5 @@ -
+
{{ __('Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn\'t receive the email, we will gladly send you another.') }} diff --git a/resources/views/components/admin-header.blade.php b/resources/views/components/admin-header.blade.php index ccaf212..793105c 100644 --- a/resources/views/components/admin-header.blade.php +++ b/resources/views/components/admin-header.blade.php @@ -1,7 +1,7 @@ @use('AnisAronno\MediaHelper\Facades\Media')