You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@
37
37
-In the form component, allow the usage of the `value` property in checkboxes and radio buttons. The custom `checked` property still works, but it is now optional.
38
38
- Updated the welcome message displayed on the terminal when starting the server to be friendlier and more helpful.
39
39
- Display the page footer (by default: `Built with SQLPage`) at the bottom of the page instead of immediately after the main content.
40
+
- Improve links in the list component: The entire list item is now clickable, when a `link` property is provided.
('list', 'An empty list with a link to add an item', json('[{"component":"list", "empty_title": "No items yet", "empty_description": "This list is empty. Click here to create a new item !", "empty_link": "documentation.sql"}]')),
60
-
('list', 'A list with rich text descriptions', json('[{"component":"list", "wrap": true},
61
-
{"title":"SQLPage", "image_url": "https://raw.githubusercontent.com/sqlpage/SQLPage/main/docs/favicon.png", "description_md":"A **SQL**-based **page** generator for **PostgreSQL**, **MySQL**, **SQLite** and **SQL Server**. [Free on Github](https://github.com/sqlpage/SQLPage)"},
62
-
{"title":"Tabler", "image_url": "https://avatars.githubusercontent.com/u/35471246", "description_md":"A **free** and **open-source** **HTML** template pack based on **Bootstrap**."},
63
-
{"title":"Tabler Icons", "image_url": "https://tabler.io/favicon.ico", "description_md":"A set of over **700** free MIT-licensed high-quality **SVG** icons for you to use in your web projects."}
60
+
('list', '
61
+
### A list with rich text descriptions
62
+
63
+
This example illustrates creating a nice list where each item has a title, a description, an image, and a link to another page.
64
+
65
+
> Be careful, nested links are not supported. If you use the list''s `link` property, then your markdown `description_md` should not contain any link.
66
+
', json('[{"component":"list", "wrap": true},
67
+
{"title":"SQL Websites", "image_url": "/favicon.ico", "description_md":"Write SQL, get a website. SQLPage is a **SQL**-based **site** generator for **PostgreSQL**, **MySQL**, **SQLite** and **SQL Server**.", "link": "/"},
68
+
{"title":"SQL Forms", "image_url": "https://upload.wikimedia.org/wikipedia/commons/b/b6/FileStack_retouched.jpg", "description_md":"Easily collect data **from users to your database** using the *form* component. Handle the data in SQL with `INSERT` or `UPDATE` queries.", "link": "?component=form"},
69
+
{"title":"SQL Maps", "image_url": "https://upload.wikimedia.org/wikipedia/commons/1/15/Vatican_City_map_EN.png", "description_md":"Show database contents on a map using the *map* component. Works well with *PostGIS* and *SpatiaLite*.", "link": "?component=map"}
64
70
]')),
65
71
('list', 'A beautiful list with bells and whistles.',
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/10_map.sql
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -9,18 +9,17 @@ VALUES
9
9
10
10
The map component displays a custom interactive map with markers on it.
11
11
12
-
Useful in combination with PostgreSQL''s PostGIS or SQLite''s spatialite,
13
-
to create custom visualizations of your geospatial data.
14
-
15
-
The map component is also compatible with non-geospatial databases,
16
-
by manually setting the `latitude` and `longitude` parameters.
12
+
In its simplest form, the component displays points on a map from a table of latitudes and longitudes.
13
+
But it can also be used by cartographers in combination with PostgreSQL''s PostGIS or SQLite''s spatialite,
14
+
to create custom visualizations of geospatial data.
15
+
Use the `geojson` property to generate rich maps from a GIS database.
17
16
18
17
### Example Use Cases
19
18
20
19
1. **Store Locator**: Build an interactive map to find the nearest store information using SQL-stored geospatial data.
21
20
2. **Delivery Route Optimization**: Visualize the results of delivery route optimization algorithms.
22
21
3. **Sales Heatmap**: Identify high-performing regions by mapping sales data stored in SQL.
23
-
4. **Real-Time Tracking**: Create dynamic dashboards that track vehicles, assets, or users live using PostGIS or MS SQL Server geospatial time series data.
22
+
4. **Real-Time Tracking**: Create dynamic dashboards that track vehicles, assets, or users live using PostGIS or MS SQL Server geospatial time series data. Use the [shell](?component=shell) component to auto-refresh the map.
24
23
5. **Demographic Insights**: Map customer demographics or trends geographically to uncover opportunities for growth or better decision-making.
25
24
',
26
25
'map',
@@ -216,7 +215,7 @@ Perfect for visualizing multi-dimensional relationships between points on a map,
0 commit comments