all: build
-build: core conf static banana wiki openid medals jquery maps
+build: core conf static banana wiki openid medals jquery maps raven
check:
@!(find . -name '*.php' -exec php -l {} ";" | grep -v 'No syntax errors detected')
wget "http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src/markerclusterer_compiled.js?r=308" -O htdocs/javascript/markerclusterer.js
##
+## Raven-js
+##
+RAVEN_VERSION=1.1.2
+raven: htdocs/javascript/raven.min.js
+
+# Documentation: http://raven-js.readthedocs.org/en/latest/install/index.html
+htdocs/javascript/raven.min.js: DOWNLOAD_SRC = http://cdn.ravenjs.com/1.1.2/raven.min.js
+htdocs/javascript/raven.min.js:
+ @-rm htdocs/javascript/raven*.js:
+ $(download)
+
+
+##
## lists rpc
##
start-listrpc: spool/run
public function __construct()
{
+ global $globals;
parent::__construct();
$this->register_function('list_all_my_groups', 'list_all_my_groups');
$this->addJsLink('overlib.js');
$this->addJsLink('core.js');
$this->addJsLink('xorg.js');
+ if ($globals->core->sentry_js_dsn) {
+ $this->addJsLink('raven.min.js');
+ }
$this->setTitle('Les associations polytechniciennes');
}
public function __construct()
{
+ global $globals;
parent::__construct();
// Set the default page
$this->addJsLink('overlib.js');
$this->addJsLink('core.js');
$this->addJsLink('xorg.js');
+ if ($globals->core->sentry_js_dsn) {
+ $this->addJsLink('raven.min.js');
+ }
$this->setTitle('le site des élèves et anciens élèves de l\'École polytechnique');
if (S::logged() && S::user()->checkPerms('admin')) {
$types = array(S::user()->type);
# Google Maps auxiliary scripts
/markerclusterer.js
+
+# Raven-js
+/raven*.js
{**************************************************************************}
{if $globals->core->sentry_js_dsn}
- {* Minified raven *}
- <script type="text/javascript" src="//d3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js"></script>
+ {* Raven.js is included with PlPage::addJsLink('raven.min.js') *}
<script type="text/javascript">
{literal}
var options = {};