前端代码

This commit is contained in:
ChloeChen0423
2025-05-12 16:42:36 +09:00
commit 7c63f2f07b
4531 changed files with 656010 additions and 0 deletions

View 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
View 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);

View 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>

View File

@ -0,0 +1,3 @@
<script type="text/ng-template" id="%id%">
%content%
</script>

View 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
View File

@ -0,0 +1 @@
%markup%