Browse Source

maintain

master
pvincent 3 years ago
parent
commit
8bd119a818
  1. 4
      lang/master/tpl/maintain.mtt
  2. 8
      src/App.hx
  3. 1
      src/sugoi/BaseApp.hx

4
lang/master/tpl/maintain.mtt

@ -1,4 +1,4 @@
::use 'design.mtt'::
<!--::use 'design.mtt'::-->
<div class="text-center" style="height:400px;width:100%;">
<h1>
<span class="glyphicon glyphicon-cog"></span>
@ -14,4 +14,4 @@
</div>
::end::
<!--::end::-->

8
src/App.hx

@ -1,5 +1,4 @@
import db.User;
import thx.semver.Version;
import Common;
class App extends sugoi.BaseApp {
@ -10,13 +9,6 @@ class App extends sugoi.BaseApp {
public var eventDispatcher:hxevents.Dispatcher<Event>;
public var plugins:Array<sugoi.plugin.IPlugIn>;
/**
* Version management
* @doc https://github.com/fponticelli/thx.semver
*/
// public static var VERSION = ([0,9,2] : Version).withPre("july");
// public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitShortSHA(), MyMacros.getGitCommitDate());
// public static var VERSION = "cagette-péi " + MyMacros.getGitCommitDate();
public static var VERSION = "cagette-pei"; // empty yet, cf.BaseApp.loadConfig
public function new() {

1
src/sugoi/BaseApp.hx

@ -45,7 +45,6 @@ class BaseApp {
var PATH = Web.getCwd() + "../";
var json = haxe.Json.parse(sys.io.File.getContent(PATH + "package.json"));
App.VERSION = json.version;
App.log('configuration has been reloaded, VERSION=${App.VERSION}');
}

Loading…
Cancel
Save