Jump to content

tpr

Members
  • Posts

    2,321
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by tpr

  1. Thanks but unfortunately I don't see that happening, and it's not about the donations. I'm working with .NET for at least about 3 years now as the backend, and Angular/Next.js/etc for the frontend, all these on a corporate laptop. My own old laptop where I have PHP is now slow as hell, I boot it up only a few times a year. This "setup" makes it very inconvenient to maintain AOS, and I'm completely out of what's happening with PW and PHP lately, which complicates things even more.
  2. On a ML site I couldn't reproduce this (PW 3.0.123). I have no idea what could cause this and unfortunately I haven't touched AOS recently and unfortunately I have no time to investigate ? Perhaps it's because of a newer PW version or perhaps something in your languages setup (naming?), but that's only shooting in the dark.
  3. #wrap_Inputfield_enabledSubmodules .InputfieldCheckboxesStacked input:checked+span:before
  4. May be not the easiest thing to set up, but with AdminOnSteroids FieldOverrides this is already possible: https://github.com/rolandtoth/AdminOnSteroids/wiki/FieldOverrides
  5. You can pull in a custom CSS (see AssetPaths), where you can add anything you want.
  6. If someone could create a PR that would be nice, I don't have my personal notebook with me for a few days (that is, no PHP :)).
  7. Ok fair, but that could work for a module version ?
  8. Unless view was restricted to the user who created the content (or to role).
  9. It's in AdminOnSteroids.php file ? https://github.com/rolandtoth/AdminOnSteroids/blob/master/AdminOnSteroids.module#L2582
  10. Only tried by dragging an invalid filetype to the fields. I now tried a trickyPNG.svg file and the backend responded with 500, perhaps it's a success? ?
  11. Sorry for the delay - apparently no, I set the allowed extensions to "svg" and a "png" file wasn't accepted (even when setting field "Closed + Load only when opened (AJAX) †"): [Allow SVG only for field 'images'] ?field = "images" extensions = "svg"
  12. I think it's doable with AOS, check the FieldOverrides feature: https://github.com/rolandtoth/AdminOnSteroids/wiki/FieldOverrides
  13. Thanks for the update. This implementation is a bit weird to me: // Get previous URL segment $prev = $input->urlSegment('=bar'); Perhaps a new urlSegmentBefore() (and after) or a second parameter would be more readable.
  14. Sounds good, although I'm not sure when I could get to it. If it's an easy PR please go on, I'll check then ? (typo "unter" in your previous comment ?)
  15. You would just need to add test files to your module, not the whole testing module. You or someone who is interested could install the tester module and run the tests. I can think of data saving and retrieval tests that could be tested on the backend. Frontend (e2e) testing us another thing, I used Cypress a few times but there are many other available. With Cypress it is easy to simulate user inputs and interactions. I can spend some time to set up a simple test if you wish, so you could use that as a base. But it is easy enough to just get started with the official docs.
  16. Not my business (and no offence) but have you considered adding unit tests (there is none in the repo)? This is a sensitive area where accuracy is crucial, tests could improve the overall quality a lot. I can recommend ProcessNetteTester if you don't have any other preferred. In general tests for user supplied modules in PW are very rare (perhaps close to zero as I know, including my own modules), although it would be a sign of quality if there were some conditions to only accept modules with tests to the modules directory.
  17. So are you creating a new image for this effect? If so, have you considered using CSS backdrop-filter? https://css-tricks.com/almanac/properties/b/backdrop-filter/
  18. tpr

    COVID-19

    You definitely took it at face value ?
  19. tpr

    COVID-19

    Try pulling your mask bit lower ?
  20. The naming of "has" sounds a bit unintuitive to me as well, since it involves getting a true/false, so it can lead to confusion when reading the code where the returned id is used. Maybe something like this? (somewhat similarly to the C# TryGetValue()) $pages->tryGetId(selector);
  21. I usually supplied "translation keys" instead of the default translation to translation functions, and translated them in all languages, eg. __('btn_submit') instead of __('Submit'). This way they rarely needed to be changed, only when the translation changed to something completely different.
  22. Glad it helped. I know it can be a powerful feature even though I haven't had a chance to use too much. You may also take the relatively new built-in extended template overrides into account (available when $config->advanced = true). But that would need another template to use so AOS is more flexible.
  23. Sure, because they are field settings. This feature wasn't tested and used too many times (by myself) but when I opened a local PW site I usually use for testing, the following was filled int he FieldOverrides textarea in AOS: [Enable any markup in any CKEditor] ?field = "inputfieldClass=InputfieldCKEditor" useACF = 0 usePurifier = 0 Apparently it works, but it's important to know how. AOS is loaded in the admin only, so if you override a field like this, you won't see useACF=0 if you dump the field settings in the frontend (eg. with Tracy). But in the admin the value is overriden, so you can add any markup and it will be saved to the DB. On the contrary, if you decide to remove this override later on, the data won't be changed in the DB automatically unless you re-save the page again.
  24. That sounds me rather as an issue with vex dialogs, are their features rely on animations somehow? Edit: perhaps this? https://github.com/HubSpot/vex/issues/285
  25. There's no harm but then I would have to modify the current submodule toggle (and role setting) behavior. The idea was to enable/disable a submodule in the top section and hide the corresponding settings section below. If I would remove the "show if" conditionals to show all settings, one wouln't know whether the submodule he is configuring is enabled or not (without scrolling to the top to check). Perhaps the easier solution would be to add some kind of text or icon to indicate the on/off state.
×
×
  • Create New...