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

Hide in bootstrap4 #3197

Merged
merged 10 commits into from
Jul 11, 2020
Merged

Hide in bootstrap4 #3197

merged 10 commits into from
Jul 11, 2020

Conversation

Sosko
Copy link
Contributor

@Sosko Sosko commented Jul 2, 2020

If the CSP policy is on, the style wouldn't work. So if the project use Bootstrap 4 or Bootstrap 3, it will be better to add thes classes.

If the CSP policy is on, the style wouldn't work. So if the project use Bootstrap 4 or Bootstrap 3, it will be better to add thes classes.
@michalsn
Copy link
Member

michalsn commented Jul 2, 2020

Good point, but we can't accept hardcoded classes which work only with certain CSS framework. The proper way to solve this would be adding a new config variable to the Config/Honeypot.php e.g. $container. It would contain HTML which can be edited easily.

Will you be able to make these changes?

@Sosko
Copy link
Contributor Author

Sosko commented Jul 3, 2020

Ok, I tried, and make it simple as possible.

app/Config/Honeypot.php Outdated Show resolved Hide resolved
system/Honeypot/Honeypot.php Outdated Show resolved Hide resolved
system/Honeypot/Honeypot.php Outdated Show resolved Hide resolved
Sosko added 2 commits July 7, 2020 07:06
The hiddenByClass is used for explicit what class to use for hide element.
The hiddenContainer is template for sprintf
Copy link
Member

@michalsn michalsn left a comment

Choose a reason for hiding this comment

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

Thanks, we're really close. This is the last part of the changes I would like to see.

app/Config/Honeypot.php Outdated Show resolved Hide resolved
app/Config/Honeypot.php Outdated Show resolved Hide resolved
system/Honeypot/Honeypot.php Outdated Show resolved Hide resolved
system/Honeypot/Honeypot.php Outdated Show resolved Hide resolved
system/Honeypot/Honeypot.php Outdated Show resolved Hide resolved
app/Config/Honeypot.php Outdated Show resolved Hide resolved
Sosko and others added 5 commits July 8, 2020 06:45
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
@Sosko
Copy link
Contributor Author

Sosko commented Jul 8, 2020

This small thing, and how long it takes :-D
By the way, this thing with style, bother me too, when I use the debug bar. I know, this thing is only for debugging on local machine, but create CI own style file, which will be by default in the public folder, sound for me like the best strategy.

@michalsn michalsn merged commit f5d899c into codeigniter4:develop Jul 11, 2020
@michalsn
Copy link
Member

Thank you for taking care of this.

I don't think we want to have a special CSS file shipped with the framework.

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.

2 participants