Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
relocate src dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Apr 9, 2019
1 parent 778f54b commit 49286fa
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/client-entry.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LsxPreRenderInterceptor } from './resource/js/util/Interceptor/LsxPreRenderInterceptor';
import { LsxPostRenderInterceptor } from './resource/js/util/Interceptor/LsxPostRenderInterceptor';
import { LsxPreRenderInterceptor } from './client/js/util/Interceptor/LsxPreRenderInterceptor';
import { LsxPostRenderInterceptor } from './client/js/util/Interceptor/LsxPostRenderInterceptor';

module.exports = (crowi, crowiRenderer) => {
// add interceptors
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class Lsx extends React.Component {
* @memberOf Lsx
*/
isEquals(path1, path2) {
return this.addSlashOfEnd(path1) === this.addSlashOfEnd(path2)
return this.addSlashOfEnd(path1) === this.addSlashOfEnd(path2);
}

getParentPath(path) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export class PageNode {
// instanciate recursively
pageNode.children = obj.children.map((childObj) => {
return PageNode.instanciateFrom(childObj);
})
});

return pageNode
return pageNode;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ export class LsxPreRenderInterceptor extends BasicInterceptor {
* @return random strings
*/
createRandomStr(length) {
const bag = "abcdefghijklmnopqrstuvwxyz0123456789";
let generated = "";
for (var i = 0; i < length; i++) {
const bag = 'abcdefghijklmnopqrstuvwxyz0123456789';
let generated = '';
for (let i = 0; i < length; i++) {
generated += bag[Math.floor(Math.random() * bag.length)];
}
return generated;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ module.exports = {
clientEntries: [
path.join(__dirname, 'client-entry.js')
]
}
};
4 changes: 2 additions & 2 deletions src/server-entry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = (crowi, app) => {
// add routes
require('./lib/routes')(crowi, app);
}
require('./server/routes')(crowi, app);
};
4 changes: 2 additions & 2 deletions src/lib/routes/index.js → src/server/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = (crowi, app) => {
var debug = require('debug')('growi-plugin:lsx:routes')
let debug = require('debug')('growi-plugin:lsx:routes')
, middleware = crowi.require('../util/middlewares')
, lsx = require('./lsx')(crowi, app)
, loginRequired = middleware.loginRequired
Expand All @@ -9,4 +9,4 @@ module.exports = (crowi, app) => {

// app.get('/_api/plugins/lsx', accessTokenParser , loginRequired(crowi, app) , lsx.renderHtml);
app.get('/_api/plugins/lsx', lsx.listPages);
}
};
File renamed without changes.
File renamed without changes.

0 comments on commit 49286fa

Please sign in to comment.