Skip to content
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

Feat/finish new designs migration #389

Draft
wants to merge 145 commits into
base: develop
Choose a base branch
from

Conversation

dragonflyfree
Copy link
Contributor

Checklist

  • I'm using the correct PHP Version (8.1 for current, 7.4 for legacy).
  • I've added comments to any new methods I've created or where else relevant.
  • I've replaced magic method usage on DbService classes with the getInstance() static method.
  • I've written any documentation for new features or where else relevant in the docs repo.

Description

Various changes to Tag and Form modules, changes to Bootstrap5 code, Vue2 to Vue3 (yet to be complete for Form module, may be required in Admin module, for example in the users list? perhaps?) conversion, etc.

Changelog

refs:
issues:

Other Information

Docs pull request:

adam-buckley and others added 30 commits August 19, 2024 17:55
- Move MultiSelect.ts -> Autocomplete.ts and allow fetching new data from a source url
chore: merge develop into main
* Fix timezone issue once and for all

* improved timezone testing

* Update ci.yml

set locale so that dates are formatted correctly when running tests

* Update ci.yml

trying another way

* Update ci.yml

trying for timelog tests

* Try global env

---------

Co-authored-by: Matt Bell <[email protected]>
* Logging of testrun context, with explicit locale setting

* Stepwise check for yml typos

* Fix yml indent

---------

Co-authored-by: Derek Crannaford <[email protected]>
* Change to mount instead of install

* Improve source code details section

* Less output from GIT log
feat: display task type form fields
Moved it into templates/base/
- No longer runs the tag controller for each instance of tag partial included in page
- Can now reload tags when the tag modal is closed
@chris-bateman chris-bateman added this to the Vue 2 to Vue 3 update milestone Nov 11, 2024
@chris-bateman chris-bateman linked an issue Nov 11, 2024 that may be closed by this pull request

namespace Html\Form;

use LogService;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be here

$buffer .= "<script>$(function(){try{\$('textarea.ckeditor').each(function(){CKEDITOR.replace(this)})}catch(err){}});</script>";
// $buffer .= "<script>$(function(){try{\$('textarea.ckeditor').each(function(){CKEDITOR.replace(this)})}catch(err){}});</script>";

$buffer .= "<script>document.addEventListener('DOMContentLoaded', () => { [...document.querySelectorAll('textarea.ckeditor')].forEach(x => { CKEDITOR.replace(x) }) })</script>";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

querySelectorAll should already return an array, so no need (I think) to unpack array into another array

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It returns an Array-like NodeList structure which you cannot directly iterate over with .forEach

}

/** level 2 */
.cmfive-comment >
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing that this doesn't have that JS did is that the comment nesting length is really only limited by the browsers ability to render it (i.e. we can nest a lot of comments). We can have a billion nested comment replies and this would stop rendering colours after the 6th nested reply.

One way around this is to pass a number to the partial that represents its current level and when it recurses increase that number by 1. Then use that number % 5 to print a css class of "level-N" and style those classes

}
}
?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best practices suggest not having a closing php tag at the end of a file

createApp({
components: {
EditFieldComponent,
testComponent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the testComponent

@@ -0,0 +1 @@
<?php echo $form; ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another closing php tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove/Resolve Security issues with template packages
7 participants