Skip to content

Merge all fix #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 90 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
31a3c3a
Fix incorrect config key path in ThemeSwitcher
CrazyBoy49z Aug 26, 2023
4cc1003
Add ThemeSwitcher to lazy.js and rename CSS files in resources
CrazyBoy49z Aug 27, 2023
b0a9415
Add notify macros to LazyUiServiceProvider class
CrazyBoy49z Sep 10, 2023
8517fdc
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 11, 2023
53c4b9e
Merge pull request #8 from step2dev/dependabot/github_actions/actions…
CrazyBoy49z Sep 12, 2023
1264e4e
Bump stefanzweifel/git-auto-commit-action from 4 to 5
dependabot[bot] Oct 9, 2023
b393a3f
Merge pull request #9 from step2dev/dependabot/github_actions/stefanz…
CrazyBoy49z Oct 9, 2023
5bc8602
Cast key to string in LazyComponent class
CrazyBoy49z Oct 9, 2023
0c9cde8
Added 'persist' directive to theme switcher
CrazyBoy49z Oct 13, 2023
2f996ae
Refactor form toggle elements in blade files
CrazyBoy49z Oct 13, 2023
5611439
Add FormTextarea and FormImage components
CrazyBoy49z Oct 13, 2023
e2839f7
Add FormRichtext component to LazyUI
CrazyBoy49z Oct 13, 2023
4a11d1c
Updated input color handling and image upload UI
CrazyBoy49z Oct 13, 2023
4bad389
Improve image rendering in image.blade.php
CrazyBoy49z Oct 14, 2023
bcefca7
Add margin to image element and update PHPStan ignores
CrazyBoy49z Oct 14, 2023
918ebe6
Update AlpineJS and DaisyUI versions in dependencies
CrazyBoy49z Oct 14, 2023
3b6ee90
Merge pull request #10 from step2dev/develop
CrazyBoy49z Oct 14, 2023
92a37a2
Update README.md
CrazyBoy49z Oct 14, 2023
f8a9ea6
Merge pull request #11 from step2dev/CrazyBoy49z-patch-1
CrazyBoy49z Oct 14, 2023
da3ee7c
Add RichText component and refine Textarea component
CrazyBoy49z Oct 14, 2023
9ea7963
Update workflow configuration for PHP code style fixes
CrazyBoy49z Oct 14, 2023
0d0a2ff
Update token reference in Github workflow
CrazyBoy49z Oct 14, 2023
cc1ba3d
Merge pull request #12 from step2dev/develop
CrazyBoy49z Oct 14, 2023
6270ec0
Fix styling
CrazyBoy49z Oct 14, 2023
89c8f23
Add Richtext component to LazyUiServiceProvider
CrazyBoy49z Oct 14, 2023
d0edc1c
Fix styling
CrazyBoy49z Oct 14, 2023
cc736a0
Merge pull request #13 from step2dev/develop
CrazyBoy49z Oct 14, 2023
10b0e8d
Update RichText component for rich text editing support
CrazyBoy49z Oct 14, 2023
fce53e5
Merge pull request #14 from step2dev/develop
CrazyBoy49z Oct 14, 2023
80c173d
Refactor RichText component to use Quill.js
CrazyBoy49z Oct 14, 2023
f424588
Update view file reference in FormRichText
CrazyBoy49z Oct 14, 2023
72d35ce
Adjust richtext and delete button functionality
CrazyBoy49z Oct 14, 2023
c9634d9
Add more color options to Input component and error tracking on butto…
CrazyBoy49z Oct 14, 2023
90cb5df
Fix styling
CrazyBoy49z Oct 14, 2023
f842b39
Remove Quill blade file, add FormGroup and Select components
CrazyBoy49z Oct 14, 2023
819f4db
Fix styling
CrazyBoy49z Oct 14, 2023
1ff2a44
Add logout feature and toast notifications
CrazyBoy49z Oct 14, 2023
8428919
Add Quill editor along with toast notifications enhancement
CrazyBoy49z Oct 14, 2023
1df23d8
Import Quill in quill.js and update error link
CrazyBoy49z Oct 14, 2023
c667df9
Add Quill as a new dependency and update CSS import
CrazyBoy49z Oct 14, 2023
46b7af9
Update Quill CSS import path in lazy.scss
CrazyBoy49z Oct 14, 2023
b91fe8b
Remove LazyComponentCommand and introduce LazyInstallCommand
CrazyBoy49z Oct 15, 2023
47ca89f
Fix styling
CrazyBoy49z Oct 15, 2023
9c5ea25
Add Tailwind Forms and implement LazyInstallCommand
CrazyBoy49z Oct 15, 2023
16bfffc
Make LazyInstallCommand interactive
CrazyBoy49z Oct 15, 2023
e810cca
Fix styling
CrazyBoy49z Oct 15, 2023
9714bc5
Add 'axios' and default setup for 'lazy.scss' and 'lazy.js'
CrazyBoy49z Oct 15, 2023
2cfb998
Fix path references in LazyInstallCommand
CrazyBoy49z Oct 15, 2023
d03656d
Add enhanced file copy handling to LazyInstallCommand
CrazyBoy49z Oct 15, 2023
8841ae9
Fix styling
CrazyBoy49z Oct 15, 2023
3b5ac29
Reduce directory creation check in copy method
CrazyBoy49z Oct 15, 2023
a4efded
Add Menu component to LazyUI
CrazyBoy49z Oct 15, 2023
1f6fe24
Improve UI for richtext and delete button components
CrazyBoy49z Oct 15, 2023
e64fc43
Update textarea, add FormSelect component
CrazyBoy49z Oct 15, 2023
43e0543
Update deletion button label reference
CrazyBoy49z Oct 16, 2023
6a1cf48
Refactor select form view in Laravel blade
CrazyBoy49z Oct 16, 2023
d1bfcaf
Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1
dependabot[bot] Jan 1, 2024
7fd8ec8
Merge pull request #15 from step2dev/dependabot/github_actions/aglipa…
github-actions[bot] Jan 1, 2024
4de3079
Bump ramsey/composer-install from 2 to 3
dependabot[bot] Mar 4, 2024
7331b85
Merge pull request #16 from step2dev/dependabot/github_actions/ramsey…
CrazyBoy49z Mar 14, 2024
4a9f054
Add dynamic sizing and state to tabs component
CrazyBoy49z Mar 15, 2024
bafa409
Replace button with x-lazy-btn component
CrazyBoy49z Mar 15, 2024
751582d
Add Choices component and view
CrazyBoy49z Mar 19, 2024
a9f4d12
Add CountryTimeWidget component and view
CrazyBoy49z Mar 19, 2024
f59febb
Merge branch 'main' into develop
CrazyBoy49z Mar 19, 2024
5d29aea
Create codeql.yml
CrazyBoy49z Mar 19, 2024
531cb34
Merge commit '5d29aea8a631fbeece06b96915d520e96ff22e9d'
CrazyBoy49z Mar 19, 2024
cbeb713
Fix styling
CrazyBoy49z Mar 19, 2024
4c54fa1
Fix styling
CrazyBoy49z Mar 19, 2024
ff689c0
Fix quill 2.0
CrazyBoy49z Mar 19, 2024
d4420c1
Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0
dependabot[bot] Mar 25, 2024
1abda2d
Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 (#17)
CrazyBoy49z Mar 25, 2024
5c94556
Merge commit 'cbeb713963129a403faf56ad5a4ee8c75904b9f2'
CrazyBoy49z Mar 26, 2024
aa4f315
Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4
dependabot[bot] Apr 15, 2024
d97ec64
Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 (#18)
github-actions[bot] Apr 15, 2024
ecb5b1d
Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0
dependabot[bot] Apr 29, 2024
3b0b962
Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 (#19)
github-actions[bot] Apr 29, 2024
c9978b0
Fix vulnerable in axios and sanitize-html
CrazyBoy49z May 10, 2024
47e1b1c
Update illuminate/contracts package version
CrazyBoy49z May 10, 2024
514fca7
Refactor config paths in ThemeSwitcher component
CrazyBoy49z Jun 11, 2024
a88e789
Remove commented input and redundant code in input.blade.php
CrazyBoy49z Jun 25, 2024
d5fdff0
Fix styling
CrazyBoy49z Jun 25, 2024
f57700d
Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0
dependabot[bot] Jul 8, 2024
6e03cb9
Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 (#20)
github-actions[bot] Jul 8, 2024
88abb3b
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0
dependabot[bot] Jan 27, 2025
47d6777
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 (#21)
github-actions[bot] Jan 27, 2025
77c579e
Bump aglipanci/laravel-pint-action from 2.4 to 2.5
dependabot[bot] Feb 3, 2025
7a7a81c
Bump aglipanci/laravel-pint-action from 2.4 to 2.5 (#22)
github-actions[bot] Feb 3, 2025
7a4f627
Update composer.json
CrazyBoy49z Mar 9, 2025
c4a7f1f
Update CHANGELOG
CrazyBoy49z Mar 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '21 0 * * 3'

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: [ 'javascript-typescript' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.6.0
uses: dependabot/fetch-metadata@v2.3.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.3.0
uses: aglipanci/laravel-pint-action@2.5

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
token: ${{secrets.GITHUB_TOKEN}}
commit_message: Fix styling
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: phpstan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -20,7 +20,7 @@ jobs:
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main

Expand All @@ -24,7 +24,7 @@ jobs:
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: Update CHANGELOG
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `lazy-ui` will be documented in this file.

## 1.0.0 -
- Initial release
## v1.1.0 - 2025-03-10

**Full Changelog**: https://github.com/step2dev/lazy-ui/compare/v1.0.0...v1.0.0

## 1.0.0 -

- Initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ composer test
- [ ] Select
- [ ] Multi select
- [x] Textarea
- [ ] Toggle
- [x] Toggle
- Layout

- [ ] Artboard
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"require": {
"php": "^8.1",
"illuminate/contracts": "^v10.17.1",
"illuminate/contracts": "^v10.17.1|^v11.0|^12.0",
"livewire/livewire": "^3.0",
"spatie/laravel-package-tools": "^1.14.0"
},
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
"tailwind"
],
"dependencies": {
"alpinejs": "^3.13.0",
"@tailwindcss/forms": "^0.5.6",
"alpinejs": "^3.13.1",
"axios": "^1.6.0",
"quill": "^1.3.7",
"theme-change": "^2.5.0"
},
"devDependencies": {
"daisyui": "^3.6.3",
"sanitize-html": "^2.11.0",
"daisyui": "^3.9.2",
"sanitize-html": "^2.12.1",
"tailwindcss": "^3.3.3"
}
}
6 changes: 6 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method Step2dev\\\\LazyUI\\\\LazyUiServiceProvider\\:\\:dispatch\\(\\)\\.$#"
count: 1
path: src/LazyUiServiceProvider.php
7 changes: 7 additions & 0 deletions resources/js/components/logout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
let logout = document.querySelector('.logout')
if (logout) {
logout.addEventListener('click', (event) => {
event.preventDefault()
document.getElementById('logout-form').submit()
})
}
88 changes: 88 additions & 0 deletions resources/js/components/quill.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import Quill from "quill";

window.Quill = Quill;
document.addEventListener('alpine:init', () => {
Alpine.data('quill', ({__value, options, __config, onTextChange, onInit}) => {
return {
__ready: false,
__value,
__quill: undefined,

init() {
if (typeof window.Quill !== 'function') {
throw new Error(`quill requires Quill to be loaded. See https://quilljs.com/docs/`);
}

queueMicrotask(() => {
this.__ready = true;

this.__quill = new window.Quill(this.$refs.quill, this.__quillOptions());

this.__quill.root.innerHTML = this.__value;

this.__quill.on('text-change', () => {
if (typeof onTextChange === 'function') {
const result = onTextChange(this);

if (result === false) {
return;
}
}

this.__value = this.__quill.root.innerHTML;

this.$dispatch('input', this.__value);
});

if (options.autofocus) {
this.$nextTick(() => {
this.focus();
});
}

if (typeof onInit === 'function') {
onInit(this);
}
});
},

focus() {
if (!this.__ready) {
return;
}

this.__quill.focus();
},

__quillOptions() {
let config = __config(this, options);
let toolbarHandlers = {};
let modules = {};

if (config.hasOwnProperty('toolbarHandlers')) {
toolbarHandlers = config.toolbarHandlers;
delete config.toolbarHandlers;
}

if (config.hasOwnProperty('modules')) {
modules = config.modules;
delete config.modules;
}

return {
theme: options.theme,
readOnly: options.readOnly,
placeholder: options.placeholder,
modules: {
toolbar: {
container: options.toolbar,
handlers: toolbarHandlers,
},
...modules,
},
...config,
};
},
};
});
})
Loading