Przeglądaj źródła

refactor LsxPageListRenderer

Yuki Takei 9 lat temu
rodzic
commit
4e991efc2c

+ 2 - 2
packages/growi-plugin-lsx/src/lib/routes/lsx.js

@@ -1,8 +1,8 @@
 module.exports = (crowi, app) => {
   var debug = require('debug')('crowi-plugin:lsx:routes:lsx')
     , path = require('path')
-    , Lsx = require('../util/Lsx')
-    , lsx = new Lsx(crowi, app)
+    , LsxPageListRenderer = require('../util/Lsx')
+    , lsx = new LsxPageListRenderer(crowi, app)
     , ApiResponse = crowi.require('../util/apiResponse')
     , actions = {};
 

+ 3 - 3
packages/growi-plugin-lsx/src/lib/util/Lsx.js → packages/growi-plugin-lsx/src/lib/util/LsxPageListRenderer.js

@@ -1,7 +1,7 @@
-const debug = require('debug')('crowi-plugin:lsx:util:lsx');
+const debug = require('debug')('crowi-plugin:lsx:util:LsxPageListRenderer');
 const path = require('path');
 
-class Lsx {
+class LsxPageListRenderer {
 
   constructor(crowi, app) {
     this.crowi = crowi;
@@ -61,4 +61,4 @@ class Lsx {
 
 }
 
-module.exports = Lsx;
+module.exports = LsxPageListRenderer;