mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-05 23:10:28 +00:00
Reorganise JS modules into subdirectories
This commit is contained in:
parent
54ff0446c6
commit
9df625c44d
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/mws-load-archive.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/commands/mws-load-archive.js
|
||||
type: application/javascript
|
||||
module-type: command
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/mws-load-tiddlers.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/commands/mws-load-tiddlers.js
|
||||
type: application/javascript
|
||||
module-type: command
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/mws-save-archive.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/commands/mws-save-archive.js
|
||||
type: application/javascript
|
||||
module-type: command
|
||||
|
@ -21,11 +21,11 @@ exports.synchronous = true;
|
||||
exports.startup = function() {
|
||||
var path = require("path");
|
||||
// Create and initialise the tiddler store and upload manager
|
||||
var AttachmentStore = require("$:/plugins/tiddlywiki/multiwikiserver/attachment-store.js").AttachmentStore,
|
||||
var AttachmentStore = require("$:/plugins/tiddlywiki/multiwikiserver/store/attachments.js").AttachmentStore,
|
||||
attachmentStore = new AttachmentStore({
|
||||
storePath: path.resolve($tw.boot.wikiPath,"store/")
|
||||
}),
|
||||
SqlTiddlerStore = require("$:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-store.js").SqlTiddlerStore,
|
||||
SqlTiddlerStore = require("$:/plugins/tiddlywiki/multiwikiserver/store/sql-tiddler-store.js").SqlTiddlerStore,
|
||||
store = new SqlTiddlerStore({
|
||||
databasePath: path.resolve($tw.boot.wikiPath,"store/database.sqlite"),
|
||||
engine: $tw.wiki.getTiddlerText("$:/config/MultiWikiServer/Engine","better"), // better || wasm
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-delete-recipe-tiddler.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/delete-recipe-tiddler.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-get-bag-tiddler-blob.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-bag-tiddler-blob.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-get-bag-tiddler.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-bag-tiddler.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-get-bag.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-bag.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-get-recipe-tiddler.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-recipe-tiddler.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-get-recipe-tiddlers-json.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-recipe-tiddlers-json.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-get-recipe.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-recipe.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-get-status.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/get-status.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-post-bag-tiddlers.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/post-bag-tiddlers.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-put-bag.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/put-bag.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-put-recipe-tiddler.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/put-recipe-tiddler.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/route-put-recipe.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/routes/handlers/put-recipe.js
|
||||
type: application/javascript
|
||||
module-type: route
|
||||
|
@ -1,25 +0,0 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/server-extension.js
|
||||
type: application/javascript
|
||||
module-type: server-extension
|
||||
|
||||
Multi wiki server extension for the core server object
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
function Extension(server) {
|
||||
this.server = server;
|
||||
}
|
||||
|
||||
Extension.prototype.hook = function(name) {
|
||||
|
||||
};
|
||||
|
||||
exports.Extension = Extension;
|
||||
|
||||
})();
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/attachment-store.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/store/attachments.js
|
||||
type: application/javascript
|
||||
module-type: library
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-database.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/store/sql-tiddler-database.js
|
||||
type: application/javascript
|
||||
module-type: library
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-store.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/store/sql-tiddler-store.js
|
||||
type: application/javascript
|
||||
module-type: library
|
||||
|
||||
@ -30,7 +30,7 @@ function SqlTiddlerStore(options) {
|
||||
this.entityStateTiddlerPrefix = "$:/state/MultiWikiServer/";
|
||||
// Create the database
|
||||
this.databasePath = options.databasePath || ":memory:";
|
||||
var SqlTiddlerDatabase = require("$:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-database.js").SqlTiddlerDatabase;
|
||||
var SqlTiddlerDatabase = require("$:/plugins/tiddlywiki/multiwikiserver/store/sql-tiddler-database.js").SqlTiddlerDatabase;
|
||||
this.sqlTiddlerDatabase = new SqlTiddlerDatabase({
|
||||
databasePath: this.databasePath,
|
||||
engine: options.engine
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: tests-sql-tiddler-database.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/store/tests-sql-tiddler-database.js
|
||||
type: application/javascript
|
||||
tags: [[$:/tags/test-spec]]
|
||||
|
||||
@ -24,7 +24,7 @@ describe("SQL tiddler database with better-sqlite3", function() {
|
||||
|
||||
function runSqlDatabaseTests(engine) {
|
||||
// Create and initialise the tiddler store
|
||||
var SqlTiddlerDatabase = require("$:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-database.js").SqlTiddlerDatabase;
|
||||
var SqlTiddlerDatabase = require("$:/plugins/tiddlywiki/multiwikiserver/store/sql-tiddler-database.js").SqlTiddlerDatabase;
|
||||
const sqlTiddlerDatabase = new SqlTiddlerDatabase({
|
||||
engine: engine
|
||||
});
|
@ -1,5 +1,5 @@
|
||||
/*\
|
||||
title: tests-sql-tiddler-store.js
|
||||
title: $:/plugins/tiddlywiki/multiwikiserver/store/tests-sql-tiddler-store.js
|
||||
type: application/javascript
|
||||
tags: [[$:/tags/test-spec]]
|
||||
|
||||
@ -23,7 +23,7 @@ describe("SQL tiddler store with better-sqlite3", function() {
|
||||
});
|
||||
|
||||
function runSqlStoreTests(engine) {
|
||||
var SqlTiddlerStore = require("$:/plugins/tiddlywiki/multiwikiserver/sql-tiddler-store.js").SqlTiddlerStore;
|
||||
var SqlTiddlerStore = require("$:/plugins/tiddlywiki/multiwikiserver/store/sql-tiddler-store.js").SqlTiddlerStore;
|
||||
|
||||
var store;
|
||||
|
Loading…
Reference in New Issue
Block a user