Sotaro KARASAWA 11 лет назад
Родитель
Сommit
5daea4b03a
3 измененных файлов с 5 добавлено и 6 удалено
  1. 0 1
      app.json
  2. 3 3
      lib/middlewares.js
  3. 2 2
      models/config.js

+ 0 - 1
app.json

@@ -7,7 +7,6 @@
   ],
   "website": "https://crowi.wiki/",
   "repository": "https://github.com/crowi/crowi",
-  "logo": "http://crowi.wiki/images/logo/128x128.png",
   "success_url": "/",
   "scripts": {
     "postdeploy": "grunt"

+ 3 - 3
lib/middlewares.js

@@ -33,7 +33,7 @@ exports.swigFilters = function(app, swig) {
   return function(req, res, next) {
 
     swig.setFilter('path2name', function(string) {
-      return string.replace(/.+\/(.+)?$/, "$1");
+      return string.replace(/.+\/(.+)?$/, '$1');
     });
 
     swig.setFilter('datetz', function(input, format) {
@@ -44,7 +44,7 @@ exports.swigFilters = function(app, swig) {
 
     swig.setFilter('presentation', function(string) {
       // 手抜き
-      return string.replace(/[\n]+#/g, "\n\n\n#");
+      return string.replace(/[\n]+#/g, '\n\n\n#');
     });
 
     swig.setFilter('picture', function(user) {
@@ -99,7 +99,7 @@ exports.applicationNotInstalled = function() {
   return function(req, res, next) {
     var config = req.config;
 
-    debug("config.crowi", Object.keys(config.crowi).length);
+    debug('config.crowi', Object.keys(config.crowi).length);
     if (Object.keys(config.crowi).length != 0) {
       return res.render('500', { error: 'Application already installed.' });
     }

+ 2 - 2
models/config.js

@@ -41,7 +41,7 @@ module.exports = function(app) {
     var originalConfig = app.set('config');
     var newNSConfig = originalConfig[ns] || {};
     Object.keys(config).forEach(function (key) {
-      if (config[key] || config[key] == '') {
+      if (config[key] || config[key] === '') {
         newNSConfig[key] = config[key];
       }
     });
@@ -67,7 +67,7 @@ module.exports = function(app) {
   configSchema.statics.setupCofigFormData = function(ns, config)
   {
     var defaultConfig;
-    if (ns == 'crowi') {
+    if (ns === 'crowi') {
       defaultConfig  = getArrayForInstalling();
     }
     Object.keys(config[ns]).forEach(function (key) {