前端代码
This commit is contained in:
10
node_modules/browser-sync-ui/templates/config.item.tmpl
generated
vendored
Normal file
10
node_modules/browser-sync-ui/templates/config.item.tmpl
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
.when('%path%', {
|
||||
templateUrl: '%template%',
|
||||
controller: '%controller%',
|
||||
controllerAs: 'ctrl',
|
||||
resolve: {
|
||||
options: ['Options', function(opts) {
|
||||
return opts.all();
|
||||
}]
|
||||
}
|
||||
})
|
14
node_modules/browser-sync-ui/templates/config.tmpl
generated
vendored
Normal file
14
node_modules/browser-sync-ui/templates/config.tmpl
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* This file is generated automatically at run time by the Browsersync UI
|
||||
*/
|
||||
(function (angular) {
|
||||
|
||||
angular.module("BrowserSync")
|
||||
|
||||
.config(["$routeProvider", "$locationProvider", function ($routeProvider) {
|
||||
$routeProvider%when%
|
||||
}])
|
||||
|
||||
.value("pagesConfig", %pages%);
|
||||
|
||||
})(angular);
|
20
node_modules/browser-sync-ui/templates/directives/bs-switch.html
generated
vendored
Normal file
20
node_modules/browser-sync-ui/templates/directives/bs-switch.html
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
<section bs-panel="switch" ng-class="{'disabled': !active}">
|
||||
<div bs-panel-content>
|
||||
<div bs-panel-icon>
|
||||
<div class="switch">
|
||||
<input id="{{switchid}}"
|
||||
ng-model="item[prop]"
|
||||
ng-change="toggle(item)"
|
||||
class="cmn-toggle cmn-toggle-round"
|
||||
type="checkbox"
|
||||
checked="">
|
||||
<label for="{{switchid}}"></label>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<p bs-text="lede">{{item.title}}</p>
|
||||
<p ng-show="item.tagline && item.tagline.length" ng-bind-html="item.tagline">{{item.tagline}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-transclude ng-if="item.active"></div>
|
||||
</section>
|
3
node_modules/browser-sync-ui/templates/inline.template.tmpl
generated
vendored
Normal file
3
node_modules/browser-sync-ui/templates/inline.template.tmpl
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<script type="text/ng-template" id="%id%">
|
||||
%content%
|
||||
</script>
|
6
node_modules/browser-sync-ui/templates/plugin.item.tmpl
generated
vendored
Normal file
6
node_modules/browser-sync-ui/templates/plugin.item.tmpl
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<switch toggle="ctrl.togglePlugin(ctrl.ui.named['%name%'])"
|
||||
switchid="plugin-switch-%index%"
|
||||
id="plugin-section-%index%"
|
||||
active="ctrl.ui.named['%name%'].active"
|
||||
prop="active"
|
||||
item="ctrl.ui.named['%name%']">%content%</switch>
|
1
node_modules/browser-sync-ui/templates/plugin.tmpl
generated
vendored
Normal file
1
node_modules/browser-sync-ui/templates/plugin.tmpl
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
%markup%
|
Reference in New Issue
Block a user