1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-14 20:14:05 +02:00

Up to v2.5.2

====
- [+] [Classnames](https://github.com/JedWatson/classnames) 2.2.6 added as separate script
- [+] [jQueryUI](https://jqueryui.com/) 1.12.1 added as separate script
- [+] [Lodash](https://lodash.com/) 4.17.15 added as separate script
- [-] [Classnames](https://github.com/JedWatson/classnames) 2.1.3 removed from BootstrapMenu.js
- [-] [jQueryUI](https://jqueryui.com/) 1.12.0 removed from BootstrapMenu.js
- [-] [Lodash](https://lodash.com/) modules removed from BootstrapMenu.js
- [=] [Ace](https://ace.c9.io/) updated from 1.3.1 to 1.4.8
- [=] [Bootstrap](https://getbootstrap.com/docs/3.4/) updated from 3.3.7 to 3.4.1
- [=] [Bootstrap Menu](https://github.com/dgoguerra/bootstrap-menu) refactoring
- [=] [Bootstrap Notify](http://bootstrap-notify.remabledesigns.com/) updated from 3.1.2 to 3.1.7
- [=] [Datatables](https://datatables.net/) updated from 1.10.16 to 1.10.20
- [=] [jQuery](https://jquery.com/) updated from 3.1.1 to 3.4.1
- [=] [Mustache](https://mustache.github.io/) updated from 2.3.0 to 2.3.2
- [=] Add compiler option `"IFM_CDN"` to build app with resources from CDNs instead of included.
- [=] Replaced `tooltip` image preview by `popover` due to Bootstrap 3.4.1 compatibility problems.
This commit is contained in:
Anton Baranov
2020-03-05 01:29:56 +02:00
parent caf5d0db33
commit a0292a47bb
19 changed files with 1770 additions and 9540 deletions

View File

@@ -8,18 +8,26 @@
chdir( realpath( dirname( __FILE__ ) ) );
// output files and common attrs
define( "IFM_CDN", true );
define( "IFM_VERSION", "v2.5.2" );
define( "IFM_STANDALONE", "dist/ifm.php" );
define( "IFM_STANDALONE_GZ", "dist/ifm.min.php" );
define( "IFM_LIB", "dist/libifm.php" );
if( IFM_CDN ){
$main_src = "src/main.cdn.php";
} else {
$main_src = "src/main.php";
}
// php source files
$IFM_SRC_PHP = array(
0 => "src/main.php",
0 => $main_src,
1 => "src/ifmarchive.php",
2 => "src/htpasswd.php"
);
// output files
define( "IFM_STANDALONE", "ifm.php" );
define( "IFM_STANDALONE_GZ", "build/ifm.min.php" );
define( "IFM_LIB", "build/libifm.php" );
// get options
$options = getopt( null, array( "language::" ) );
@@ -82,12 +90,12 @@ preg_match_all( "/\@\@\@vars:([^\@]+)\@\@\@/", $compiled, $includes, PREG_SET_OR
foreach( $includes as $var )
$compiled = str_replace( $var[0], $vars[$var[1]], $compiled );
/**
* Build versions
*/
// replace IFM_VERSION with current verion in templates before build
$IFM_VERSION = "v2.5.1";
$compiled = str_replace( 'IFM_VERSION', $IFM_VERSION, $compiled );
$compiled = str_replace( 'IFM_VERSION', IFM_VERSION, $compiled );
if (!is_dir('dist/')){
mkdir('dist');
}
// build standalone ifm
file_put_contents( IFM_STANDALONE, $compiled );
file_put_contents( IFM_STANDALONE, '
@@ -98,13 +106,11 @@ $ifm = new IFM();
$ifm->run();
', FILE_APPEND );
/* // build compressed ifm
// build compressed ifm
file_put_contents(
IFM_STANDALONE_GZ,
'<?php eval( gzdecode( file_get_contents( __FILE__, false, null, 85 ) ) ); exit(0); ?>'
. gzencode( file_get_contents( "ifm.php", false, null, 5 ) )
. gzencode( file_get_contents( "./dist/ifm.php", false, null, 5 ) )
);
*/
// build lib
file_put_contents( IFM_LIB, $compiled );