1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 23:34:50 +00:00

Split demo from the geospatial plugin into its own edition

This commit is contained in:
jeremy@jermolene.com 2023-03-16 17:22:22 +00:00
parent 1dda5c8ab0
commit 1fbc35e15a
41 changed files with 56 additions and 26 deletions

View File

@ -11,9 +11,10 @@ fi
echo "Using TW5_BUILD_VERSION as [$TW5_BUILD_VERSION]" echo "Using TW5_BUILD_VERSION as [$TW5_BUILD_VERSION]"
# Default to using tw5.com as the main edition for /index.html # Default to using tw5.com as the main edition for /index.html
# >>> TEMPORARILY SET TO THE GEOSPATIAL PLUGIN; TO BE REVERTED BEFORE MERGING <<<
if [ -z "$TW5_BUILD_MAIN_EDITION" ]; then if [ -z "$TW5_BUILD_MAIN_EDITION" ]; then
TW5_BUILD_MAIN_EDITION=./editions/tw5.com TW5_BUILD_MAIN_EDITION=./editions/geospatial
fi fi
echo "Using TW5_BUILD_MAIN_EDITION as [$TW5_BUILD_MAIN_EDITION]" echo "Using TW5_BUILD_MAIN_EDITION as [$TW5_BUILD_MAIN_EDITION]"
@ -351,6 +352,17 @@ node $TW5_BUILD_TIDDLYWIKI \
--rendertiddler $:/core/save/empty plugins/tiddlywiki/highlight/empty.html text/plain \ --rendertiddler $:/core/save/empty plugins/tiddlywiki/highlight/empty.html text/plain \
|| exit 1 || exit 1
# /plugins/tiddlywiki/geospatial/index.html Demo wiki with geospatial plugin
# /plugins/tiddlywiki/geospatial/empty.html Empty wiki with geospatial plugin
node $TW5_BUILD_TIDDLYWIKI \
./editions/geospatialdemo \
--verbose \
--load $TW5_BUILD_OUTPUT/build.tid \
--output $TW5_BUILD_OUTPUT \
--rendertiddler $:/core/save/all plugins/tiddlywiki/geospatial/index.html text/plain \
--rendertiddler $:/core/save/empty plugins/tiddlywiki/geospatial/empty.html text/plain \
|| exit 1
###################################################### ######################################################
# #
# Language editions # Language editions

View File

@ -0,0 +1,4 @@
title: $:/DefaultTiddlers
HelloThere
$:/plugins/tiddlywiki/geospatial

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/flickr title: Flickr Demo
caption: Flickr caption: Flickr
tags: $:/tags/Macro $:/tags/GeospatialDemo tags: $:/tags/Macro $:/tags/GeospatialDemo

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demos title: HelloThere
! Demos ! Demos
@ -15,4 +15,4 @@ title: $:/plugins/tiddlywiki/geospatial/demos
state=<<qualify "$:/state/demo-map">> state=<<qualify "$:/state/demo-map">>
/> />
<<tabs tabsList:"[all[tiddlers+shadows]tag[$:/tags/GeospatialDemo]]" default:"$:/plugins/tiddlywiki/geospatial/demo/markers">> <<tabs tabsList:"[all[tiddlers+shadows]tag[$:/tags/GeospatialDemo]]" default:"markers">>

View File

@ -1,5 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/layers title: GeoLayers
caption: ~GeoLayers
tags: $:/tags/GeospatialDemo tags: $:/tags/GeospatialDemo
This is a list of all the tiddlers containing ~GeoJSON layers in this wiki (identified by the tag <<tag "$:/tags/GeoLayer">>). A ~GeoJSON layer identifies a region of the surface of the earth via a series of polygons defined as lines between consecutive points specified via latitude and longitude (and optional elevation). ~GeoJSON layers may also contain associated metadata in JSON format. This is a list of all the tiddlers containing ~GeoJSON layers in this wiki (identified by the tag <<tag "$:/tags/GeoLayer">>). A ~GeoJSON layer identifies a region of the surface of the earth via a series of polygons defined as lines between consecutive points specified via latitude and longitude (and optional elevation). ~GeoJSON layers may also contain associated metadata in JSON format.

View File

@ -1,5 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/markers title: GeoMarkers
caption: ~GeoMarkers
tags: $:/tags/GeospatialDemo tags: $:/tags/GeospatialDemo
This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <<tag "$:/tags/GeoMarker">>). A ~GeoJSON marker identifies a location via latitude and longitude (and optional elevation) and may also contain associated metadata in JSON format. This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <<tag "$:/tags/GeoMarker">>). A ~GeoJSON marker identifies a location via latitude and longitude (and optional elevation) and may also contain associated metadata in JSON format.

View File

@ -0,0 +1,6 @@
title: $:/plugins/geospatial/demo/ViewTemplateBodyFilters
tags: $:/tags/ViewTemplateBodyFilter
list-before: $:/config/ViewTemplateBodyFilters/stylesheet
[tag[$:/tags/GeoLayer]then[ui/geolayer]]
[tag[$:/tags/GeoMarker]then[ui/geomarker]]

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/cities/LimehouseTownHall title: cities/LimehouseTownHall
tags: $:/tags/GeoMarker tags: $:/tags/GeoMarker
caption: Limehouse Town Hall caption: Limehouse Town Hall
lat: 51.51216651476898 lat: 51.51216651476898

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/cities/Motovun title: cities/Motovun
tags: $:/tags/GeoMarker tags: $:/tags/GeoMarker
icon: Motovun Jack.svg icon: Motovun Jack.svg
caption: Motovun caption: Motovun

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/cities/NewYork title: cities/NewYork
tags: $:/tags/GeoMarker tags: $:/tags/GeoMarker
caption: New York caption: New York
lat: 40.712778 lat: 40.712778

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/cities/Oxford title: cities/Oxford
tags: $:/tags/GeoMarker tags: $:/tags/GeoMarker
caption: Oxford caption: Oxford
lat: 51.751944 lat: 51.751944

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/cities/Toronto title: cities/Toronto
tags: $:/tags/GeoMarker tags: $:/tags/GeoMarker
caption: Toronto caption: Toronto
lat: 43.651070 lat: 43.651070

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/real-estate-demo title: real-estate-demo
caption: Real Estate Demo caption: Real Estate Demo
tags: $:/tags/GeospatialDemo tags: $:/tags/GeospatialDemo
@ -8,7 +8,7 @@ tags: $:/tags/GeospatialDemo
This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <<tag "$:/tags/GeoMarker">>) viewed as both a map and a table. This is a list of all the tiddlers containing ~GeoJSON markers in this wiki (identified by the tag <<tag "$:/tags/GeoMarker">>) viewed as both a map and a table.
<$let <$let
schema={{$:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema}} schema={{real-estate-demo/schema}}
> >
<div> <div>
<$list filter="[<schema>jsonindexes[columns]]" variable="index"> <$list filter="[<schema>jsonindexes[columns]]" variable="index">

View File

@ -0,0 +1,3 @@
title: real-estate-demo/schema
type: application/json

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/ui/geolayer title: ui/geolayer
\define create-intersection() \define create-intersection()
<$let <$let

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/geospatial/demo/ui/geomarker title: ui/geomarker
\define default-traveltime-time() 5400 \define default-traveltime-time() 5400

View File

@ -0,0 +1,16 @@
{
"description": "Demo of the geospatial plugin for TiddlyWiki",
"plugins": [
"tiddlywiki/geospatial"
],
"themes": [
"tiddlywiki/vanilla",
"tiddlywiki/snowwhite"
],
"includeWikis": [
],
"build": {
"index": [
"--render","$:/core/save/all","geospatialdemo.html","text/plain"]
}
}

View File

@ -1,6 +0,0 @@
title: $:/plugins/geospatial/demo/ViewTemplateBodyFilters
tags: $:/tags/ViewTemplateBodyFilter
list-before: $:/config/ViewTemplateBodyFilters/stylesheet
[tag[$:/tags/GeoLayer]then[$:/plugins/tiddlywiki/geospatial/demo/ui/geolayer]]
[tag[$:/tags/GeoMarker]then[$:/plugins/tiddlywiki/geospatial/demo/ui/geomarker]]

View File

@ -1,3 +0,0 @@
title: $:/plugins/tiddlywiki/geospatial/demo/real-estate-demo/schema
type: application/json