Skip to content

Commit

Permalink
Fixed the minification errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Aug 7, 2016
1 parent 4e0820c commit 1535a4f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 170 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2014-2015 Cédric Belin <[email protected]>
Copyright 2014-2016 Cédric Belin <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions akismet.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Client {
* If possible, the user agent string should always have the following format: `Application Name/Version | Plugin Name/Version`.
* @type {string}
*/
this.userAgent = `Node.js/${typeof global.window == 'undefined' ? process.version : '0.0.0'} | Akismet/${pkg.version}`;
this.userAgent = `Node.js/${typeof window == 'undefined' ? process.version : '0.0.0'} | Akismet/${pkg.version}`;

// Initialize the instance.
for(let key in options) {
Expand Down
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
};

// Expose the `cedx.akismet` global property in browsers.
if(typeof global.window != 'undefined') {
if(typeof global.window.cedx != 'object' || !global.window.cedx) global.window.cedx = {};
global.window.cedx.akismet = module.exports;
if(typeof window != 'undefined') {
if(typeof window.cedx != 'object' || !window.cedx) window.cedx = {};
window.cedx.akismet = module.exports;
}
4 changes: 1 addition & 3 deletions lib/server/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
* Implementation of the `akismet.Application` class.
* @module server/app
*/
const fs = require('fs');
const path = require('path');
const pkg = require('../../package.json');
const program = require('commander');
const Server = require('./server');
Expand Down Expand Up @@ -63,7 +61,7 @@ class Application {
program.parse(process.argv);

// Start the server.
this.startServer(program.port, program.host, program.redirect ? program.redirect : null)
this.startServer(program.port, program.host, program.redirect)
.then(() => {
if(program.user) this.setUser(program.user);
})
Expand Down
1 change: 0 additions & 1 deletion web/.htaccess

This file was deleted.

153 changes: 0 additions & 153 deletions web/404.html

This file was deleted.

13 changes: 7 additions & 6 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@
</a>
<ul class="dropdown-menu">
<li><a href="https://github.com/cedx/akismet" target="_blank"><i class="fa fa-fw fa-home"></i> Homepage</a></li>
<li class="active"><a href="./"><i class="fa fa-fw fa-cogs"></i> Unit Tests</a></li>
<li><a href="https://travis-ci.org/cedx/akismet" target="_blank"><i class="fa fa-fw fa-industry"></i> Continuous integration</a></li>
<li class="active"><a href="./"><i class="fa fa-fw fa-cogs"></i> Unit tests</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Development <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="https://www.belin.io/akismet.js/api" target="_blank"><i class="fa fa-book fa-fw"></i> API Reference</a></li>
<li><a href="https://github.com/cedx/akismet/issues" target="_blank"><i class="fa fa-bug fa-fw"></i> File an Issue</a></li>
<li><a href="https://github.com/cedx/akismet" target="_blank"><i class="fa fa-code fa-fw"></i> Get the Source</a></li>
<li><a href="https://www.codacy.com/app/cedx/akismet" target="_blank"><i class="fa fa-trophy fa-fw"></i> Code quality</a></li>
<li><a href="https://github.com/cedx/akismet/issues" target="_blank"><i class="fa fa-bug fa-fw"></i> File an issue</a></li>
<li><a href="https://github.com/cedx/akismet" target="_blank"><i class="fa fa-code fa-fw"></i> Get the source</a></li>
</ul>
</li>
<li class="dropdown">
Expand All @@ -70,7 +71,7 @@
</a>
<ul class="dropdown-menu">
<li class="dropdown-header">About</li>
<li><a href="https://github.com/cedx/akismet/raw/master/LICENSE.txt" target="_blank"><i class="fa fa-file-text fa-fw"></i> License</a></li>
<li><a href="https://github.com/cedx/akismet/blob/master/LICENSE.txt" target="_blank"><i class="fa fa-file-text fa-fw"></i> License</a></li>
<li class="divider"></li>
<li class="dropdown-header">Author</li>
<li><a href="mailto:[email protected]"><i class="fa fa-envelope fa-fw"></i> [email protected]</a></li>
Expand Down Expand Up @@ -162,7 +163,7 @@ <h3 class="panel-title"><i class="fa fa-download"></i> Downloads</h3>
</div>

<div class="list-group">
<a href="https://www.npmjs.com/package/akismet" class="list-group-item" target="_blank">
<a href="https://www.npmjs.com/package/@cedx/akismet" class="list-group-item" target="_blank">
<span class="label label-info pull-right">0.8.0</span>
NPM package
</a>
Expand Down

0 comments on commit 1535a4f

Please sign in to comment.