237 Commits

Author SHA1 Message Date
lovasoa e99e386a5f include a default favicon in sqlpage
this fixes the Unable to read file "favicon.ico" error that was displayed by default in the console when opening a page in a browser
2024-06-23 18:19:21 +02:00
Ophir LOJKINE 587f288844 Merge pull request #445 from pchemguy/fixed-top-navbar
Fixes margin issue for horizontal and fluid layouts with fixed navbar
2024-06-22 10:18:54 +02:00
Ophir LOJKINE fa12f8a645 Merge pull request #442 from pchemguy/menu-item-icon
Adds support for icons and image-based icons in menu
2024-06-22 10:17:57 +02:00
PChemGuy 46624b5b5e Merge branch 'lovasoa:main' into fixed-top-navbar 2024-06-22 11:11:34 +03:00
PChemGuy cb6d708ce4 Fixes margin issue for horizontal and fluid layouts with fixed navbar 2024-06-22 11:10:31 +03:00
lovasoa dc0ff9b772 wrap property in list
fixes https://github.com/lovasoa/SQLpage/issues/437
2024-06-22 09:49:53 +02:00
Ophir LOJKINE 183ab27b75 Merge pull request #440 from pchemguy/fixed-top-navbar
Adds fixed top menu option to shell
2024-06-22 09:29:42 +02:00
PChemGuy 3db0bb70ff Adds support for icons and image-based icons in menu 2024-06-22 00:36:41 +03:00
PChemGuy 5ccc5acd62 Adss fixed top menu option to shell
If "fixed_top_menu" boolean is set to True on the "shell" component, the top navigation bar will be fixed at top. However, it spans the entire page width (probably, by design) regardless of layout used and works best with the fluid layout.
2024-06-21 23:09:25 +03:00
lovasoa 3b727340b6 fix bug introduced in https://github.com/lovasoa/SQLpage/pull/439 2024-06-21 21:59:10 +02:00
Ophir LOJKINE dd2f7483bd Merge pull request #439 from amrutadotorg/patch-11
Enhanced Font Management with Local and Google Fonts In the shell component
2024-06-21 21:45:05 +02:00
lovasoa 64a8f0938c fix missing whitespace between attributes in hero component 2024-06-21 19:46:50 +02:00
lovasoa ae07da1ebd remove some whitespace in the shell
slightly reduces the size of pages
2024-06-21 19:44:39 +02:00
Ophir LOJKINE e20587c144 Merge pull request #432 from pchemguy/parse-menu-item-json-sqlite
Parse JSON menu_item for SQLite and skip blank items
2024-06-21 19:37:34 +02:00
lovasoa 09fc784085 new image property in the [button] 2024-06-21 18:36:40 +02:00
PChemGuy 586bc6da3b Merge branch 'lovasoa:main' into parse-menu-item-json-sqlite 2024-06-21 18:03:27 +03:00
Amruta.org f3a74e8f0b Update shell.handlebars - local font support
This template checks if the font variable starts with a slash and, if so, declares a custom font using @font-face with the name LocalFont. If the font URL does not start with a slash, it assumes it is a Google Fonts URL.
2024-06-21 15:14:57 +02:00
Amruta.org 2974f47901 Update shell.handlebars removing font_custom 2024-06-21 13:32:19 +02:00
Amruta.org 98e4370fe2 Update shell.handlebars font backward
Explanation of Changes
Backward Compatibility:

The font_custom variable is checked to see if it is an array. If not, it is converted to an array using the array helper function.
Handling Multiple Fonts:

The rest of the logic remains the same to handle multiple fonts and generate the necessary @font-face rules and CSS variables.
This approach ensures that the code works correctly whether font_custom is passed as a single string or as a list, maintaining backward compatibility.
2024-06-21 13:17:26 +02:00
Amruta.org 15b3766bbc Update shell.handlebars - multiple fonts + local
Explanation of Changes
Handling Multiple Fonts:

The font_custom variable is treated as an array, and for each font, a @font-face rule is generated if the font URL starts with / (indicating a local font).
The CSS variables are dynamically named using the font name, replacing spaces and slashes to ensure valid CSS variable names.

Google Fonts:

Google Fonts are handled by filtering the font_custom array to include only those fonts that do not start with /.
Multiple Google Fonts are included by iterating over this filtered list and generating the necessary <link> tags.
CSS Variables:

CSS variables are created for each font in the :root selector. Local fonts will have _custom appended to their names to avoid conflicts with Google Fonts.
This setup enables the registration and usage of multiple fonts, both locally stored and from Google Fonts, ensuring broad compatibility and flexibility for the user.
2024-06-21 13:05:47 +02:00
PChemGuy 8486c68c7c Adds support for image-file-based button icons 2024-06-20 21:24:38 +03:00
PChemGuy 1a03628ee5 Parsing JSON menu_item
menu_item accepts plain strings, which causes parse_json to throw an error. Assume that menu_item is a plain string not starting with "{", a string containing a valid JSON object (the first character is "{"), or a parsed JSON. parse_json only behaves properly if it receives a JSON object or a string representing a valid JSON object (in this case, the first character must be "{").
2024-06-20 13:14:45 +03:00
PChemGuy 81f0dd92a7 One more guard for an empty title 2024-06-20 11:15:37 +03:00
PChemGuy ab0fe46eaf code cleanup
missing this qualifier
2024-06-20 09:04:45 +03:00
PChemGuy 433173fe9b Do not render blank menu elements
Do not render blank menu items (generated via `NULL AS menu_item` or '`' AS menu item`). This explicit filter simplifies creation of dynamic menus.
2024-06-20 08:43:32 +03:00
PChemGuy 096beb7946 Parse JSON menu_item for SQLite
Use parse_json helper to enable the use of the object form of "shell" with JSON containing menu items.
2024-06-20 08:18:45 +03:00
lovasoa c0efd148d1 fix icon overflowing text in card component
fixes https://github.com/lovasoa/SQLpage/issues/424
2024-06-20 00:22:28 +02:00
lovasoa 11ed4faab3 add tooltips in datagrid
fixes https://github.com/lovasoa/SQLpage/issues/425
2024-06-20 00:22:28 +02:00
lovasoa f826168db5 reduce spacing between elements in the datagrid component
fixes https://github.com/lovasoa/SQLpage/issues/426
2024-06-20 00:22:27 +02:00
lovasoa 1360d54bc6 fix space in icon button 2024-06-19 00:16:18 +02:00
lovasoa 907a61df0a fix alignment issue on narrow buttons 2024-06-19 00:06:22 +02:00
PChemGuy 7632d37b5b Added "narrow" attribute to "button"
Sets .btn-icon class, which trims horizontal padding.
See https://tabler.io/docs/components/buttons#icon-buttons
2024-06-19 00:28:42 +03:00
Ophir LOJKINE 16b4cb019b Merge pull request #422 from pchemguy/table-overflow
Added "overflow" attribute to the "table" component
2024-06-18 22:48:11 +02:00
lovasoa fe7ccc6f43 new compact attribute in the list component 2024-06-18 21:42:12 +02:00
lovasoa 1165217f18 Avoid vertical scrolling caused by the footer even when the page content is short.
fixes https://github.com/lovasoa/SQLpage/issues/395
2024-06-18 21:27:15 +02:00
lovasoa 8ed051f652 remove redundant markup 2024-06-18 21:14:27 +02:00
Ophir LOJKINE f49addfdaa Merge pull request #405 from matthewlarkin/markup-semantics
adds semantic classes, ids, and tags
2024-06-18 21:05:59 +02:00
PChemGuy 633ebe3118 Added "overflow" attribute to the "table" component
The "table" component template will now set the width property of the table component div to "fit-content" if the table defines a boolean "overflow" attribute set to TRUE.
2024-06-18 21:49:14 +03:00
lovasoa 2830939623 Prevent form validation and give a helpful error message when an user tries to submit a form with a file upload field that is above the maximum file size. 2024-06-18 00:45:07 +02:00
lovasoa b1005b9ead Add a new background_color attribute to the card component 2024-06-16 23:59:22 +02:00
lovasoa 767b01cdd0 map component
- automatically center the map on the contents when no top-level latitude and longitude properties are provided even when the map contains geojson data.
   - allow using `FALSE as tile_source` to completely remove the base map. This makes the map component useful to display even non-geographical geometric data.
2024-06-14 20:55:47 +02:00
Matthew Larkin b2aff24d3d dedents a couple levels to make it easier to see diffs
removes test shell
2024-06-14 10:47:28 -04:00
Matthew Larkin 094668b0a0 removes body_class from body tag 2024-06-14 10:37:12 -04:00
Matthew Larkin cf89942df0 changes html_class to just class 2024-06-14 10:31:52 -04:00
Matthew Larkin acda9260e6 adds semantic classes, ids, and tags
adds semantic classes, ids, and tag names
2024-06-13 22:41:19 -04:00
lovasoa 083572231a fix searchable select fields options limitation to 50 options 2024-06-12 21:18:17 +02:00
Amruta.org f7c0f63dc2 Update shell.handlebars updating to social_image 2024-06-12 00:14:25 +02:00
Amruta.org 658ea6fc44 Update shell.handlebars - adding image_og
In this updated version, the image_og variable is conditionally checked and included in the <head> section to provide the Open Graph image metadata if it is available.
2024-06-11 22:19:46 +02:00
Michal Mistina ab37a40da4 Added CSV button size top-level parameter 2024-06-10 19:14:03 +02:00
lovasoa 2aa0eecef8 loop, muted, and nocontrols for videos 2024-06-09 21:26:01 +02:00