diff --git a/demo/data-/.show-it b/demo/data-/.show-it index db8c300..bfc4482 100644 --- a/demo/data-/.show-it +++ b/demo/data-/.show-it @@ -1,4 +1,5 @@ clear ls -l ---PAUSE--- +echo "live-server is running - press ctrl-c" live-server | micro index.html diff --git a/demo/scripts/show b/demo/scripts/show deleted file mode 100755 index c8680bc..0000000 --- a/demo/scripts/show +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/bash - -# Script: show -# Purpose: Reads commands line-by-line from a specified file (defaulting to 'show-it.txt') -# and executes each one. - -# --- Configuration --- -COMMAND_FILE="${1:-show-it}" -SKIP_COMMENT_LINES=true -PAUSE_MARKER="---PAUSE---" - -# --- Execution --- - -# Check if the command file exists -if [ ! -f "$COMMAND_FILE" ]; then - echo "Error: Command file not found at '$COMMAND_FILE'" >&2 - exit 1 -fi - -#echo "--- START: Executing commands from $COMMAND_FILE ---" - -# Read the file line by line -while IFS= read -r command_line -do - # Trim leading and trailing whitespace - command_line=$(echo "$command_line" | xargs) - - # Skip empty lines - if [ -z "$command_line" ]; then - continue - fi - - # Check for the pause marker - if [ "$command_line" = "$PAUSE_MARKER" ]; then - #echo "" - #echo "========== PAUSE ==========" - # Wait for the user to press ENTER, reading explicitly from the terminal - read -r -p "waiting... (press enter)" < /dev/tty - #echo "===========================" - continue - fi - - # Skip lines starting with # if enabled (no logging for cleaner output) - if $SKIP_COMMENT_LINES && [[ "$command_line" =~ ^# ]]; then - continue - fi - - # --- Less Verbose Execution Block --- - #echo "" - # Print the command line clearly before execution - #echo "\$ $command_line" - - # Execute the command line - eval "$command_line" - - # Only report non-zero (failure) exit status - EXIT_STATUS=$? - if [ $EXIT_STATUS -ne 0 ]; then - echo "!!! COMMAND FAILED (Status $EXIT_STATUS) !!!" >&2 - fi - # --- End Execution Block --- - -done < "$COMMAND_FILE" - -#echo "" -#echo "--- END: Script execution complete ---" \ No newline at end of file diff --git a/demo/scripts/show-it b/demo/scripts/show-it deleted file mode 100644 index 381b262..0000000 --- a/demo/scripts/show-it +++ /dev/null @@ -1,6 +0,0 @@ -ls -al -micro show ----PAUSE--- -echo "see this shit!?" -ls -al ----PAUSE--- diff --git a/demo/sqlite/.show-it b/demo/sqlite/.show-it deleted file mode 100644 index fa28d5e..0000000 --- a/demo/sqlite/.show-it +++ /dev/null @@ -1 +0,0 @@ -fx countries.json diff --git a/demo/sqlite/csv_countries.sql b/demo/sqlite/csv_countries.sql deleted file mode 100644 index ee8def7..0000000 --- a/demo/sqlite/csv_countries.sql +++ /dev/null @@ -1,19 +0,0 @@ -.mode csv -.headers on -.output result.csv - -WITH raw AS ( - SELECT - value AS country - FROM json_each(readfile('countries.json')) -) - -SELECT - json_extract(country, '$.translations.deu.common') AS german_name, - json_extract(country, '$.population') AS population, - json_extract(country, '$.capital[0]') AS capital, - json_extract(country, '$.timezones[0]') AS timezones -FROM raw -ORDER BY german_name; - -.output stdout diff --git a/demo/sqlite/index.html b/demo/sqlite/index.html deleted file mode 100644 index 3334f0c..0000000 --- a/demo/sqlite/index.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - Countries - - - -

Countries

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name (DE)PopulationCapitalTLDTimezones
Afghanistan40218234Kabul.af["UTC+04:30"]
Albanien2837743Tirana.al["UTC+01:00"]
Algerien44700000Algiers.dz["UTC+01:00"]
Andorra77265Andorra la Vella.ad["UTC+01:00"]
Angola32866268Luanda.ao["UTC+01:00"]
Antigua und Barbuda97928Saint John's.ag["UTC-04:00"]
Argentinien45376763Buenos Aires.ar["UTC-03:00"]
Armenien2963234Yerevan.am["UTC+04:00"]
Aserbaidschan10110116Baku.az["UTC+04:00"]
Australien25687041Canberra.au["UTC+05:00","UTC+06:30","UTC+07:00","UTC+08:00","UTC+09:30","UTC+10:00","UTC+10:30","UTC+11:30"]
Bahamas393248Nassau.bs["UTC-05:00"]
Bahrain1701583Manama.bh["UTC+03:00"]
Bangladesch164689383Dhaka.bd["UTC+06:00"]
Barbados287371Bridgetown.bb["UTC-04:00"]
Belgien11555997Brussels.be["UTC+01:00"]
Belize397621Belmopan.bz["UTC-06:00"]
Benin12123198Porto-Novo.bj["UTC+01:00"]
Bhutan771612Thimphu.bt["UTC+06:00"]
Bolivien11673029Sucre.bo["UTC-04:00"]
Bosnien und Herzegowina3280815Sarajevo.ba["UTC+01:00"]
Botswana2351625Gaborone.bw["UTC+02:00"]
Brasilien212559409Brasília.br["UTC-05:00","UTC-04:00","UTC-03:00","UTC-02:00"]
Brunei437483Bandar Seri Begawan.bn["UTC+08:00"]
Bulgarien6927288Sofia.bg["UTC+02:00"]
Burkina Faso20903278Ouagadougou.bf["UTC"]
Burundi11890781Gitega.bi["UTC+02:00"]
Chile19116209Santiago.cl["UTC-06:00","UTC-04:00"]
China1402112000Beijing.cn["UTC+08:00"]
Costa Rica5094114San José.cr["UTC-06:00"]
Deutschland83240525Berlin.de["UTC+01:00"]
Dominica71991Roseau.dm["UTC-04:00"]
Dominikanische Republik10847904Santo Domingo.do["UTC-04:00"]
Dschibuti988002Djibouti.dj["UTC+03:00"]
Dänemark5831404Copenhagen.dk["UTC-04:00","UTC-03:00","UTC-01:00","UTC","UTC+01:00"]
Ecuador17643060Quito.ec["UTC-06:00","UTC-05:00"]
El Salvador6486201San Salvador.sv["UTC-06:00"]
Elfenbeinküste26378275Yamoussoukro.ci["UTC"]
Eritrea5352000Asmara.er["UTC+03:00"]
Estland1331057Tallinn.ee["UTC+02:00"]
Fidschi896444Suva.fj["UTC+12:00"]
Finnland5530719Helsinki.fi["UTC+02:00"]
Frankreich67391582Paris.fr["UTC-10:00","UTC-09:30","UTC-09:00","UTC-08:00","UTC-04:00","UTC-03:00","UTC+01:00","UTC+02:00","UTC+03:00","UTC+04:00","UTC+05:00","UTC+10:00","UTC+11:00","UTC+12:00"]
Gabun2225728Libreville.ga["UTC+01:00"]
Gambia2416664Banjul.gm["UTC+00:00"]
Georgien3714000Tbilisi.ge["UTC+04:00"]
Ghana31072945Accra.gh["UTC"]
Grenada112519St. George's.gd["UTC-04:00"]
Griechenland10715549Athens.gr["UTC+02:00"]
Guatemala16858333Guatemala City.gt["UTC-06:00"]
Guinea13132792Conakry.gn["UTC"]
Guinea-Bissau1967998Bissau.gw["UTC"]
Guyana786559Georgetown.gy["UTC-04:00"]
Haiti11402533Port-au-Prince.ht["UTC-05:00"]
Honduras9904608Tegucigalpa.hn["UTC-06:00"]
Indien1380004385New Delhi.in["UTC+05:30"]
Indonesien273523621Jakarta.id["UTC+07:00","UTC+08:00","UTC+09:00"]
Irak40222503Baghdad.iq["UTC+03:00"]
Iran83992953Tehran.ir["UTC+03:30"]
Irland4994724Dublin.ie["UTC"]
Island366425Reykjavik.is["UTC"]
Israel9216900Jerusalem.il["UTC+02:00"]
Italien59554023Rome.it["UTC+01:00"]
Jamaika2961161Kingston.jm["UTC-05:00"]
Japan125836021Tokyo.jp["UTC+09:00"]
Jemen29825968Sana'a.ye["UTC+03:00"]
Jordanien10203140Amman.jo["UTC+03:00"]
Kambodscha16718971Phnom Penh.kh["UTC+07:00"]
Kamerun26545864Yaoundé.cm["UTC+01:00"]
Kanada38005238Ottawa.ca["UTC-08:00","UTC-07:00","UTC-06:00","UTC-05:00","UTC-04:00","UTC-03:30"]
Kap Verde555988Praia.cv["UTC-01:00"]
Kasachstan18754440Astana.kz["UTC+05:00","UTC+06:00"]
Katar2881060Doha.qa["UTC+03:00"]
Kenia53771300Nairobi.ke["UTC+03:00"]
Kirgisistan6591600Bishkek.kg["UTC+06:00"]
Kiribati119446South Tarawa.ki["UTC+12:00","UTC+13:00","UTC+14:00"]
Kolumbien50882884Bogotá.co["UTC-05:00"]
Komoren869595Moroni.km["UTC+03:00"]
Kongo5657000Brazzaville.cg["UTC+01:00"]
Kongo (Dem. Rep.)108407721Kinshasa.cd["UTC+01:00","UTC+02:00"]
Kosovo1775378Pristina["UTC+01:00"]
Kroatien4047200Zagreb.hr["UTC+01:00"]
Kuba11326616Havana.cu["UTC-05:00"]
Kuwait4270563Kuwait City.kw["UTC+03:00"]
Laos7275556Vientiane.la["UTC+07:00"]
Lesotho2142252Maseru.ls["UTC+02:00"]
Lettland1901548Riga.lv["UTC+02:00"]
Libanon6825442Beirut.lb["UTC+02:00"]
Liberia5057677Monrovia.lr["UTC"]
Libyen6871287Tripoli.ly["UTC+01:00"]
Liechtenstein38137Vaduz.li["UTC+01:00"]
Litauen2794700Vilnius.lt["UTC+02:00"]
Luxemburg632275Luxembourg.lu["UTC+01:00"]
Madagaskar27691019Antananarivo.mg["UTC+03:00"]
Malawi19129955Lilongwe.mw["UTC+02:00"]
Malaysia32365998Kuala Lumpur.my["UTC+08:00"]
Malediven540542Malé.mv["UTC+05:00"]
Mali20250834Bamako.ml["UTC"]
Malta525285Valletta.mt["UTC+01:00"]
Marokko36910558Rabat.ma["UTC"]
Marshallinseln59194Majuro.mh["UTC+12:00"]
Mauretanien4649660Nouakchott.mr["UTC"]
Mauritius1265740Port Louis.mu["UTC+04:00"]
Mexiko128932753Mexico City.mx["UTC-08:00","UTC-07:00","UTC-06:00"]
Mikronesien115021Palikir.fm["UTC+10:00","UTC+11:00"]
Moldawien2617820Chișinău.md["UTC+02:00"]
Monaco39244Monaco.mc["UTC+01:00"]
Mongolei3278292Ulan Bator.mn["UTC+07:00","UTC+08:00"]
Montenegro621718Podgorica.me["UTC+01:00"]
Mosambik31255435Maputo.mz["UTC+02:00"]
Myanmar54409794Naypyidaw.mm["UTC+06:30"]
Namibia2540916Windhoek.na["UTC+01:00"]
Nauru10834Yaren.nr["UTC+12:00"]
Nepal29136808Kathmandu.np["UTC+05:45"]
Neuseeland5084300Wellington.nz["UTC-11:00","UTC-10:00","UTC+12:00","UTC+12:45","UTC+13:00"]
Nicaragua6624554Managua.ni["UTC-06:00"]
Niederlande16655799Amsterdam.nl["UTC+01:00"]
Niger24206636Niamey.ne["UTC+01:00"]
Nigeria206139587Abuja.ng["UTC+01:00"]
Nordkorea25778815Pyongyang.kp["UTC+09:00"]
Nordmazedonien2077132Skopje.mk["UTC+01:00"]
Norwegen5379475Oslo.no["UTC+01:00"]
Oman5106622Muscat.om["UTC+04:00"]
Osttimor1318442Dili.tl["UTC+09:00"]
Pakistan220892331Islamabad.pk["UTC+05:00"]
Palau18092Ngerulmud.pw["UTC+09:00"]
Panama4314768Panama City.pa["UTC-05:00"]
Papua-Neuguinea8947027Port Moresby.pg["UTC+10:00"]
Paraguay7132530Asunción.py["UTC-04:00"]
Peru32971846Lima.pe["UTC-05:00"]
Philippinen109581085Manila.ph["UTC+08:00"]
Polen37950802Warsaw.pl["UTC+01:00"]
Portugal10305564Lisbon.pt["UTC-01:00","UTC"]
Ruanda12952209Kigali.rw["UTC+02:00"]
Rumänien19286123Bucharest.ro["UTC+02:00"]
Russland144104080Moscow.ru["UTC+03:00","UTC+04:00","UTC+06:00","UTC+07:00","UTC+08:00","UTC+09:00","UTC+10:00","UTC+11:00","UTC+12:00"]
Salomonen686878Honiara.sb["UTC+11:00"]
Sambia18383956Lusaka.zm["UTC+02:00"]
Samoa198410Apia.ws["UTC+13:00"]
San Marino33938City of San Marino.sm["UTC+01:00"]
Saudi-Arabien34813867Riyadh.sa["UTC+03:00"]
Schweden10353442Stockholm.se["UTC+01:00"]
Schweiz8654622Bern.ch["UTC+01:00"]
Senegal16743930Dakar.sn["UTC"]
Serbien6908224Belgrade.rs["UTC+01:00"]
Seychellen98462Victoria.sc["UTC+04:00"]
Sierra Leone7976985Freetown.sl["UTC"]
Simbabwe14862927Harare.zw["UTC+02:00"]
Singapur5685807Singapore.sg["UTC+08:00"]
Slowakei5458827Bratislava.sk["UTC+01:00"]
Slowenien2100126Ljubljana.si["UTC+01:00"]
Somalia15893219Mogadishu.so["UTC+03:00"]
Spanien47351567Madrid.es["UTC","UTC+01:00"]
Sri Lanka21919000Sri Jayawardenepura Kotte.lk["UTC+05:30"]
St. Kitts und Nevis53192Basseterre.kn["UTC-04:00"]
St. Lucia183629Castries.lc["UTC-04:00"]
St. Vincent und die Grenadinen110947Kingstown.vc["UTC-04:00"]
Sudan43849269Khartoum.sd["UTC+03:00"]
Suriname586634Paramaribo.sr["UTC-03:00"]
Swasiland1160164Mbabane.sz["UTC+02:00"]
Syrien17500657Damascus.sy["UTC+02:00"]
São Tomé und Príncipe219161São Tomé.st["UTC"]
Südafrika59308690Pretoria.za["UTC+02:00"]
Südkorea51780579Seoul.kr["UTC+09:00"]
Südsudan11193729Juba.ss["UTC+03:00"]
Tadschikistan9537642Dushanbe.tj["UTC+05:00"]
Tansania59734213Dodoma.tz["UTC+03:00"]
Thailand69799978Bangkok.th["UTC+07:00"]
Togo8278737Lomé.tg["UTC"]
Tonga105697Nuku'alofa.to["UTC+13:00"]
Trinidad und Tobago1399491Port of Spain.tt["UTC-04:00"]
Tschad16425859N'Djamena.td["UTC+01:00"]
Tschechien10698896Prague.cz["UTC+01:00"]
Tunesien11818618Tunis.tn["UTC+01:00"]
Turkmenistan6031187Ashgabat.tm["UTC+05:00"]
Tuvalu11792Funafuti.tv["UTC+12:00"]
Türkei84339067Ankara.tr["UTC+03:00"]
Uganda45741000Kampala.ug["UTC+03:00"]
Ukraine44134693Kyiv.ua["UTC+02:00"]
Ungarn9749763Budapest.hu["UTC+01:00"]
Uruguay3473727Montevideo.uy["UTC-03:00"]
Usbekistan34232050Tashkent.uz["UTC+05:00"]
Vanuatu307150Port Vila.vu["UTC+11:00"]
Vatikanstadt451Vatican City.va["UTC+01:00"]
Venezuela28435943Caracas.ve["UTC-04:00"]
Vereinigte Arabische Emirate9890400Abu Dhabi.ae["UTC+04:00"]
Vereinigte Staaten329484123Washington, D.C..us["UTC-12:00","UTC-11:00","UTC-10:00","UTC-09:00","UTC-08:00","UTC-07:00","UTC-06:00","UTC-05:00","UTC-04:00","UTC+10:00","UTC+12:00"]
Vereinigtes Königreich67215293London.uk["UTC-08:00","UTC-05:00","UTC-04:00","UTC-03:00","UTC-02:00","UTC","UTC+01:00","UTC+02:00","UTC+06:00"]
Vietnam97338583Hanoi.vn["UTC+07:00"]
Weißrussland9398861Minsk.by["UTC+03:00"]
Zentralafrikanische Republik4829764Bangui.cf["UTC+01:00"]
Zypern1207361Nicosia.cy["UTC+02:00"]
Ägypten102334403Cairo.eg["UTC+02:00"]
Äquatorialguinea1402985Malabo.gq["UTC+01:00"]
Äthiopien114963583Addis Ababa.et["UTC+03:00"]
Österreich8917205Vienna.at["UTC+01:00"]
- - diff --git a/hypermedia/1-example/.show-it b/hypermedia/1-example/.show-it new file mode 100644 index 0000000..34c7812 --- /dev/null +++ b/hypermedia/1-example/.show-it @@ -0,0 +1,7 @@ +clear +echo "use datastar with a static backend" +echo "morph html-snippets" +ls -l +---PAUSE--- +echo "live-server is running - press ctrl-c" +live-server | micro index.html display-record1.html display-record2.html edit-record1.html deleted-record1.html diff --git a/hypermedia/2-example/.show-it b/hypermedia/2-example/.show-it new file mode 100644 index 0000000..0ee9f36 --- /dev/null +++ b/hypermedia/2-example/.show-it @@ -0,0 +1,7 @@ +clear +echo "use datastar with a static backend" +echo "patch signals with json data" +ls -l +---PAUSE--- +echo "live-server is running - press ctrl-c" +live-server | micro index.html record1.json record3.json record3.json