Skip to content

Commit

Permalink
Merge pull request #32 from oat-sa/release-1.0.1
Browse files Browse the repository at this point in the history
Release 1.0.1
  • Loading branch information
Aleh Hutnikau authored Apr 28, 2017
2 parents 5b05481 + c83a2e3 commit 021b29a
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 72 deletions.
3 changes: 2 additions & 1 deletion controller/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
namespace oat\taoBackOffice\controller;

use Exception;
use oat\tao\helpers\Template;
use \tao_helpers_Scriptloader;
use \tao_models_classes_ListService;
use \tao_actions_form_List;
Expand Down Expand Up @@ -51,7 +52,7 @@ public function __construct(){

parent::__construct();
//add List stylesheet
tao_helpers_Scriptloader::addCssFile(TAOBASE_WWW . 'css/lists.css');
tao_helpers_Scriptloader::addCssFile(Template::css('lists.css', 'tao'));

$this->service = tao_models_classes_ListService::singleton();
$this->defaultData();
Expand Down
27 changes: 12 additions & 15 deletions manifest.php
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?php
/**
/**
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; under version 2
* of the License (non-upgradable).
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*
* Copyright (c) 2015 (original work) Open Assessment Technologies SA;
*
*
*/
*
*
*/

return array(
'name' => 'taoBackOffice',
'label' => 'Back Office',
'description' => 'Base for back-office extensions',
'license' => 'GPL-2.0',
'version' => '0.12.0',
'version' => '1.0.1',
'author' => 'Open Assessment Technologies SA',
'requires' => array(
'tao' => '>=2.8.0'
'tao' => '>=9.0.0'
),
'managementRole' => 'http://www.tao.lu/Ontologies/generis.rdf#taoBackOfficeManager',
'acl' => array(
Expand All @@ -47,18 +47,15 @@
'routes' => array(
'/taoBackOffice' => 'oat\\taoBackOffice\\controller'
),
'update' => 'oat\taoBackOffice\model\update\Updater',
'update' => 'oat\taoBackOffice\scripts\update\Updater',
'constants' => array(
# views directory
"DIR_VIEWS" => dirname(__FILE__).DIRECTORY_SEPARATOR."views".DIRECTORY_SEPARATOR,

#BASE URL (usually the domain root)
'BASE_URL' => ROOT_URL.'taoBackOffice/',

#BASE WWW required by JS
'BASE_WWW' => ROOT_URL.'taoBackOffice/views/'
),
'extra' => array(
'structures' => dirname(__FILE__).DIRECTORY_SEPARATOR.'controller'.DIRECTORY_SEPARATOR.'structures.xml',
)
);
);
18 changes: 9 additions & 9 deletions model/update/Updater.php → scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*
*/
namespace oat\taoBackOffice\model\update;
namespace oat\taoBackOffice\scripts\update;

use oat\tao\scripts\update\OntologyUpdater;
use oat\taoBackOffice\model\entryPoint\BackOfficeEntryPoint;
Expand All @@ -30,9 +30,9 @@
class Updater extends \common_ext_ExtensionUpdater {

public function update($initialVersion) {

$currentVersion = $initialVersion;

// ontology
if ($currentVersion == '0.8') {
OntologyUpdater::syncModels();
Expand All @@ -43,21 +43,21 @@ public function update($initialVersion) {
}
if ($currentVersion == '0.10') {
$entryPointService = $this->getServiceManager()->get(EntryPointService::SERVICE_ID);

// replace old backoffice
$newEntryPoint = new BackOfficeEntryPoint();
foreach ($entryPointService->getEntryPoints() as $entryPoint) {
if ($entryPoint instanceof OldEntryPoint) {
$entryPointService->overrideEntryPoint($entryPoint->getId(), $newEntryPoint);
}
}

$this->getServiceManager()->register(EntryPointService::SERVICE_ID, $entryPointService);

$currentVersion = '0.11';
}

$this->setVersion($currentVersion);
$this->skip($currentVersion, '0.12.0');
$this->skip($currentVersion, '1.0.1');
}
}
}
2 changes: 1 addition & 1 deletion views/build/grunt/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(grunt) {
modules : [{
name: 'taoBackOffice/controller/routes',
include : ext.getExtensionsControllers(['taoBackOffice']),
exclude : ['mathJax', 'taoBackOffice/lib/vis/vis.min'].concat(libs)
exclude : ['mathJax', 'taoBackOffice/lib/vis/vis'].concat(libs)
}]
}
};
Expand Down
6 changes: 3 additions & 3 deletions views/js/controllers.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion views/js/controllers.min.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion views/js/lib/vis/vis.map

This file was deleted.

1 change: 0 additions & 1 deletion views/js/lib/vis/vis.min.css

This file was deleted.

37 changes: 0 additions & 37 deletions views/js/lib/vis/vis.min.js

This file was deleted.

6 changes: 3 additions & 3 deletions views/js/treeRender.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
define([
'jquery',
'lodash',
'taoBackOffice/lib/vis/vis.min',
'css!taoBackOffice/lib/vis/vis.min'
'taoBackOffice/lib/vis/vis',
'css!taoBackOffice/lib/vis/vis'
], function ($, _, vis) {
'use strict';

Expand Down Expand Up @@ -121,4 +121,4 @@ define([
};

return treeRender;
});
});

0 comments on commit 021b29a

Please sign in to comment.