sqlpage / SQLPage

Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.
https://sql.datapage.app
MIT License
1.57k stars 89 forks source link

Favicon - A single favicon across all .sql pages #592

Closed accforgithubtest closed 3 weeks ago

accforgithubtest commented 3 weeks ago

Want to request a feature which can make it easier to display a favicon across all the sqlpage pages.

One potential option would be to place a favicon.ico under the /var/www mapped volume, alongside the index.sql, and sqlpage picks up this as the favicon across the application.

Another potential option might be to specify a favicon as an environment var in the docker compose file, and place that icon in /var/www, which would be displayed across the application.

Going thru the docs, currently it looks like it is necessary to specify the favicon in shell component for each and every sql file.

Pls let me know if I have missed any available options to change the favicon across all pages without having to include this in each sql file.

Cheers!

lovasoa commented 3 weeks ago

Hi ! It is common to want to reuse the same properties (including the favicon) across pages in the shell component. The common solution is to use the dynamic component, together with either

accforgithubtest commented 3 weeks ago

run_sql seems to be the way to go. thank you for the detailed reply @lovasoa !

Cheers !