From 6b6af2b854ad40ccd7b4613fe1f8d3cbe899ca9f Mon Sep 17 00:00:00 2001 From: Energy <71418770+energy-coresky@users.noreply.github.com> Date: Sat, 18 Feb 2023 20:43:49 +0200 Subject: [PATCH] Prepare for packagist --- .gitignore | 3 +++ composer.json | 20 ++++++++++++++++++++ earth.base | Bin 405504 -> 405504 bytes mvc/earth_vars.txt | 2 +- mvc/sand/php-coresky.txt | 8 ++++++-- mvc/sand/php-other.txt | 10 ++-------- mvc/sand/sql-test.txt | 4 +++- mvc/t_earth.php | 2 -- 8 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 .gitignore create mode 100644 composer.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c791c9a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +_arch +composer.lock +earth.base \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..9383c66 --- /dev/null +++ b/composer.json @@ -0,0 +1,20 @@ +{ + "name": "coresky/earth", + "license": "MIT", + "description": "Dev-ware for Coresky framework", + "keywords": [ + "coresky", + "coresky framework", + "sky", + "earth" + ], + "require": { + "php": ">7.0" + }, + "authors": [ + { + "name": "Energy", + "homepage": "https://coresky.net/" + } + ] +} diff --git a/earth.base b/earth.base index 398b6937ed979d20ca48795a002c935dc2e602d1..b6c4befaccba992e6c57890df72b885d608264e0 100644 GIT binary patch delta 1839 zcmdT_ZA@EL7{2Ge=N4KiEh1Vrew@J=dRNNr7qB}AV`OTA$>xB$jWm zp{*apNM=d5oGe)~W0V+JOo72c*hdr0erPgo2gVo^!xH^5O%zG|WsIH+Zu&$288c7v zoO|=W&wK8<&-PT-9WofixAD<_+u_1g`fU~2?N2fiB5EKhSQ7k!k5SfKQ z>c>~7)kGUiw+???m^oh&kcc1%%~NSp%(Ns3OT~D!#c^&snlOJ|DVc??d~A;>x=Y7k=pswUu{(6|BlcR&9oy9cBG^58^I454TQJfWn z#tsA)&WeW$Eb&Mz+W-6j-yglf#9O}BXgt#Y!XOF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ffx8)ikDEF3_$_*V6E(2rG&th`VfOL+;1eJ;It?D+QWE?jW{Q%K Ns;MC@9KL2%{{!ECJ4FBh diff --git a/mvc/earth_vars.txt b/mvc/earth_vars.txt index 4bedc61..ddf1b68 100644 --- a/mvc/earth_vars.txt +++ b/mvc/earth_vars.txt @@ -1,4 +1,4 @@ -last_sand sql +last_sand php last_docs 9 last_func 1 width 100 diff --git a/mvc/sand/php-coresky.txt b/mvc/sand/php-coresky.txt index 991f9df..479e647 100644 --- a/mvc/sand/php-coresky.txt +++ b/mvc/sand/php-coresky.txt @@ -10,12 +10,16 @@ echo '

Far manager colorer

'; $earth = Plan::_g('mvc/earth_c.php'); echo tag(Display::php($earth, str_pad('', 22, '=').'*'), 'style="background:#222"'); ~ -print_r ( +echo Plan::var ( SKY::$dd->_tables() -); +) . "\n"; + print_r ( SQL::open('venus')->_tables() ); +//new AbsentClass; + + ~ $a = ['default'=>'#b11', 'comment'=>'#68a', 'html'=>'', 'keyword'=>'#d11', 'string'=>'#aa3']; diff --git a/mvc/sand/php-other.txt b/mvc/sand/php-other.txt index 6f0374b..fd8ae34 100644 --- a/mvc/sand/php-other.txt +++ b/mvc/sand/php-other.txt @@ -1,11 +1,5 @@ -print_r ( - SKY::$dd->_tables() -); -print_r ( - SQL::open('_e')->_tables() -); - -new AbsentClass; +SKY::$debug=0; +//echo sqlf('update $_memory set id=id-20'); ~ diff --git a/mvc/sand/sql-test.txt b/mvc/sand/sql-test.txt index 950aadb..168dea8 100644 --- a/mvc/sand/sql-test.txt +++ b/mvc/sand/sql-test.txt @@ -1,4 +1,6 @@ -@select id, dt from $_memory order by id +%select id, name from $_memory order by id + + ~ +select 1+11 ~ diff --git a/mvc/t_earth.php b/mvc/t_earth.php index e18f7fb..5578348 100644 --- a/mvc/t_earth.php +++ b/mvc/t_earth.php @@ -55,10 +55,8 @@ function save() { } function topic($md) { - MVC::in_tpl(false); preg_match_all("!^### (.*)!m", $md, $m); $s = view('earth.topic', ['ary' => $m]); - MVC::in_tpl(); return $s; }