mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-13 05:55:26 +00:00
update
This commit is contained in:
24
node_modules/browser-sync-ui/lib/plugins/help/help.client.js
generated
vendored
Normal file
24
node_modules/browser-sync-ui/lib/plugins/help/help.client.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
(function (angular) {
|
||||
|
||||
const SECTION_NAME = "history";
|
||||
|
||||
angular
|
||||
.module("BrowserSync")
|
||||
.controller("HelpAboutController", [
|
||||
"options",
|
||||
"pagesConfig",
|
||||
helpAboutController
|
||||
]);
|
||||
|
||||
/**
|
||||
* @param options
|
||||
* @param pagesConfig
|
||||
*/
|
||||
function helpAboutController(options, pagesConfig) {
|
||||
var ctrl = this;
|
||||
ctrl.options = options.bs;
|
||||
ctrl.section = pagesConfig[SECTION_NAME];
|
||||
}
|
||||
|
||||
})(angular);
|
||||
|
0
node_modules/browser-sync-ui/lib/plugins/help/help.directive.html
generated
vendored
Normal file
0
node_modules/browser-sync-ui/lib/plugins/help/help.directive.html
generated
vendored
Normal file
8
node_modules/browser-sync-ui/lib/plugins/help/help.html
generated
vendored
Normal file
8
node_modules/browser-sync-ui/lib/plugins/help/help.html
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<div bs-panel="controls outline">
|
||||
<h1 bs-heading><icon icon="{{ctrl.section.icon}}"></icon> {{ctrl.section.title}}</h1>
|
||||
</div>
|
||||
<div bs-panel id="bs-help">
|
||||
<div bs-panel-content="basic">
|
||||
<p>Help page</p>
|
||||
</div>
|
||||
</div>
|
49
node_modules/browser-sync-ui/lib/plugins/help/help.plugin.js
generated
vendored
Normal file
49
node_modules/browser-sync-ui/lib/plugins/help/help.plugin.js
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
const PLUGIN_NAME = "Help / About";
|
||||
|
||||
/**
|
||||
* @type {{plugin: Function, plugin:name: string, markup: string}}
|
||||
*/
|
||||
module.exports = {
|
||||
/**
|
||||
* Plugin init
|
||||
*/
|
||||
"plugin": function () {},
|
||||
/**
|
||||
* Hooks
|
||||
*/
|
||||
"hooks": {
|
||||
"markup": fileContent("/../../../static/content/help.content.html"),
|
||||
"client:js": fileContent("/help.client.js"),
|
||||
"templates": [
|
||||
getPath("/help.directive.html")
|
||||
],
|
||||
"page": {
|
||||
path: "/help",
|
||||
title: PLUGIN_NAME,
|
||||
template: "help.html",
|
||||
controller: "HelpAboutController",
|
||||
order: 6,
|
||||
icon: "help"
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Plugin name
|
||||
*/
|
||||
"plugin:name": PLUGIN_NAME
|
||||
};
|
||||
|
||||
/**
|
||||
* @param filepath
|
||||
* @returns {*}
|
||||
*/
|
||||
function getPath (filepath) {
|
||||
return require("path").join(__dirname, filepath);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param filepath
|
||||
* @returns {*}
|
||||
*/
|
||||
function fileContent (filepath) {
|
||||
return require("fs").readFileSync(getPath(filepath), "utf-8");
|
||||
}
|
Reference in New Issue
Block a user