diff --git a/build/creator.js b/build/creator.js index 2f68af7..79c6049 100644 --- a/build/creator.js +++ b/build/creator.js @@ -4,7 +4,7 @@ */ const fs = require('fs'); -const co = require('../modules/co'); +const co = require('../modules/co/co'); const mngWiki = require('./manageWiki'); const mngFolder = require('./manageFolder'); const makeNav = require('./makeNavigation'); diff --git a/files/bin/core/base.js b/files/bin/core/base.js new file mode 100644 index 0000000..4b01180 --- /dev/null +++ b/files/bin/core/base.js @@ -0,0 +1,26 @@ +/** + * 基础类 + * @author Tevin + */ + +;(function (win, ns) { + + 'use strict'; + + //命名空间引用 + var eventor = ns('class.core.Eventor'); + + /** + * 命名空间注册 Base 声明 + * @memberof ns.class.core + */ + var Base = ns('class.core.Base', function () { + }); + + /** + * 事件管理 + * @public + */ + Base.prototype.$eventor = new eventor(); + +})(window, window.ns); \ No newline at end of file diff --git a/files/bin/core/shelf.js b/files/bin/core/shelf.js new file mode 100644 index 0000000..e528ca3 --- /dev/null +++ b/files/bin/core/shelf.js @@ -0,0 +1,27 @@ +/** + * 插件管理架 + * @author Tevin + */ + +;(function (win, ns) { + + 'use strict'; + + //命名空间引用 + var Base = ns('class.core.Base'); + + /** + * 命名空间注册 Base 声明 + * @memberof ns.class.core + */ + var Shelf = ns('class.core.Shelf', function () { + this._cache = {}; + }); + + /** + * 继承 + */ + Shelf.prototype = new Base(); + Shelf.prototype.constructor = Shelf; + +})(window, window.ns); \ No newline at end of file diff --git a/files/bin/libs/jquery-3.1.0.min.js b/files/bin/libs/jquery-compat-3.1.0.min.js similarity index 100% rename from files/bin/libs/jquery-3.1.0.min.js rename to files/bin/libs/jquery-compat-3.1.0.min.js diff --git a/files/plugin/search/pinyin.js b/files/bin/libs/pinyin.js similarity index 100% rename from files/plugin/search/pinyin.js rename to files/bin/libs/pinyin.js diff --git a/files/bin/template/layout.ejs b/files/bin/template/layout.ejs index 3ed150d..f3319ae 100644 --- a/files/bin/template/layout.ejs +++ b/files/bin/template/layout.ejs @@ -6,11 +6,12 @@ -