-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #198: Refactor codebase organization to separate view from the …
…model * backend code is now in the app folder * cache folder now outside of web view too, in case we want to cache non-public data * path to create a new views is now dispatcher -> (controller <-> model) -> view, the onestring view uses it * other views not up to date work as before until they get ported to MVC * web folder only contains front-end code now (that includes p12n and docs static folders) * all traffic now goes through web/index.php, no need to specify the router script anymore with php dev server * WEBSERVICE constand renamed JSON_API, all multiword constants now use underscore (WEB_ROOT vs WEBROOT /ex) to follow our own coding guidelines * README updated (also fixed markdown syntax to be homogeneous, application description and IRC link now works) * New app/config folder containing *.txt files for locales + config.ini * add a minimum bugzilla_components.json file
- Loading branch information
1 parent
c449c58
commit a7df74c
Showing
69 changed files
with
160 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ stats_requests.json | |
transvision.log | ||
vendor | ||
web/docs | ||
web/inc/config.ini | ||
app/config/config.ini | ||
web/p12n | ||
web/TMX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
namespace Transvision; | ||
|
||
require_once MODELS . 'onestring.php'; | ||
|
||
if (JSON_API) { | ||
$callback = isset($_GET['callback']) ? $_GET['callback'] : false; | ||
die(Json::output($translations, $callback)); | ||
} | ||
|
||
include VIEWS . 'onestring.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
// Bump this constant with each new release | ||
const VERSION = '3.3dev'; | ||
|
||
// Constants for the project | ||
define('DATA_ROOT', $ini_array['root']); | ||
define('HG', $ini_array['local_hg'] . '/'); | ||
define('SVN', $ini_array['local_svn'] . '/'); | ||
define('TMX', DATA_ROOT . '/TMX/'); | ||
define('INSTALL_ROOT', $ini_array['install'] . '/'); | ||
define('WEB_ROOT', INSTALL_ROOT . 'web/'); | ||
define('APP_ROOT', INSTALL_ROOT . 'app/'); | ||
define('INC', APP_ROOT . 'inc/'); | ||
define('VIEWS', APP_ROOT . 'views/'); | ||
define('MODELS', APP_ROOT . 'models/'); | ||
define('CONTROLLERS', APP_ROOT . 'controllers/'); | ||
define('CACHE', INSTALL_ROOT . 'cache/'); | ||
|
||
// Special modes for the app | ||
define('DEBUG', (strstr(VERSION, 'dev') || isset($_GET['debug'])) ? true : false); | ||
define('JSON_API', (isset($_GET['json']) && !isset($web_service)) ? true : false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
web/views/channelcomparison.php → app/views/channelcomparison.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?php | ||
namespace Transvision; | ||
|
||
require_once WEBROOT . 'inc/l10n-init.php'; | ||
require_once INC . 'l10n-init.php'; |