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

CSS/JS injection folder #29

Open
baalajimaestro opened this issue Dec 8, 2021 · 2 comments
Open

CSS/JS injection folder #29

baalajimaestro opened this issue Dec 8, 2021 · 2 comments

Comments

@baalajimaestro
Copy link
Contributor

Currently adding any custom JS/CSS means, the person has to manually fork and edit the code, would request for an environment variable which can take the source of a JS/CSS file to be included at <head>

Proposal can be: PASTY_CUSTOM_CSS and PASTY_CUSTOM_JS which would hold values to URLs having the JS/CSS respectively.

@lus
Copy link
Owner

lus commented Dec 8, 2021

Hello.

Thank you for your idea!
I personally think that this feature would bloat pasty a bit too much, but I'll suggest an alternative:

You actually don't have to fork and re-compile the whole project to inject custom CSS/JS or perform any other modifications to the frontend as it is a simple folder inside the Docker container.
You can just manually mount this exact folder using Docker volumes and perform any modifications directly in the frontend code itself without having to re-compile or re-deploy the service.

If you need any further advice feel free to ask in this issue ^^

@lus
Copy link
Owner

lus commented Dec 11, 2021

A Discord conversation led to following proposal:

A custom CSS/JS folder one can mount to the Docker container which allows injection of custom CSS/JS files.

@lus lus changed the title Analytics Request CSS/JS injection folder Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants