前端代码

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

15
node_modules/browser-sync/templates/cli-template.js generated vendored Normal file
View File

@ -0,0 +1,15 @@
/*
|--------------------------------------------------------------------------
| Browser-sync config file
|--------------------------------------------------------------------------
|
| For up-to-date information about the options:
| http://www.browsersync.io/docs/options/
|
| There are more options than you see here, these are just the ones that are
| set internally. See the website for more info.
|
|
*/
module.exports = //OPTS;

7
node_modules/browser-sync/templates/connector.tmpl generated vendored Normal file
View File

@ -0,0 +1,7 @@
window.___browserSync___ = {};
___browserSync___.socketConfig = %config%;
___browserSync___.socketUrl = %url%;
___browserSync___.options = %options%;
if (location.protocol == "https:" && /^http:/.test(___browserSync___.socketUrl)) {
___browserSync___.socketUrl = ___browserSync___.socketUrl.replace(/^http:/, "https:");
}

View File

@ -0,0 +1 @@
<script %async% id="__bs_script__" src="%script%"></script>

18
node_modules/browser-sync/templates/script-tags.html generated vendored Normal file
View File

@ -0,0 +1,18 @@
<script id="__bs_script__">//<![CDATA[
(function() {
try {
var script = document.createElement('script');
if ('%async%') {
script.async = true;
}
script.src = '%script%'.replace("HOST", location.hostname);
if (document.body) {
document.body.appendChild(script);
} else if (document.head) {
document.head.appendChild(script);
}
} catch (e) {
console.error("Browsersync: could not append script tag", e);
}
})()
//]]></script>