Skip to content

Commit 711e8fc

Browse files
committed
added more pages
1 parent cc179cb commit 711e8fc

File tree

17 files changed

+5970
-1
lines changed

17 files changed

+5970
-1
lines changed

docs/.vuepress/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,15 @@ export default defineUserConfig({
8181
'/utils/common_cmd/README.md',
8282
'/utils/common_cmd/asterisks_cmd.md',
8383
'/utils/common_cmd/audio_cmd.md',
84+
'/utils/common_cmd/reboot_router.md',
85+
'/utils/common_cmd/send_email.md',
8486
],
8587
},
8688
{
8789
text: '用户配置',
8890
children: [
8991
'/utils/user_config/cursor_style.md',
92+
'/utils/user_config/code_highlight.md',
9093
],
9194
},
9295
{

docs/.vuepress/public/assets/code_highlight/Asterisk dialplan syntax highlighting for gedit.html

Lines changed: 1737 additions & 0 deletions
Large diffs are not rendered by default.

docs/.vuepress/public/assets/code_highlight/Asterisk dialplan syntax highlighting for gedit_files/9129e3b66405e50ec8c9a8c3049bd47c.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.vuepress/public/assets/code_highlight/Asterisk dialplan syntax highlighting for gedit_files/gist-embed-59543e005c9c.css

Lines changed: 1725 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
/*******************************************************************************
2+
3+
uBlock Origin - a browser extension to block requests.
4+
Copyright (C) 2019-present Raymond Hill
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see {http://www.gnu.org/licenses/}.
18+
19+
Home: https://github.com/gorhill/uBlock
20+
*/
21+
22+
(function() {
23+
'use strict';
24+
// https://developers.google.com/analytics/devguides/collection/analyticsjs/
25+
const noopfn = function() {
26+
};
27+
//
28+
const Tracker = function() {
29+
};
30+
const p = Tracker.prototype;
31+
p.get = noopfn;
32+
p.set = noopfn;
33+
p.send = noopfn;
34+
//
35+
const w = window;
36+
const gaName = w.GoogleAnalyticsObject || 'ga';
37+
const gaQueue = w[gaName];
38+
// https://github.com/uBlockOrigin/uAssets/pull/4115
39+
const ga = function() {
40+
const len = arguments.length;
41+
if ( len === 0 ) { return; }
42+
const args = Array.from(arguments);
43+
let fn;
44+
let a = args[len-1];
45+
if ( a instanceof Object && a.hitCallback instanceof Function ) {
46+
fn = a.hitCallback;
47+
} else if ( a instanceof Function ) {
48+
fn = ( ) => { a(ga.create()); };
49+
} else {
50+
const pos = args.indexOf('hitCallback');
51+
if ( pos !== -1 && args[pos+1] instanceof Function ) {
52+
fn = args[pos+1];
53+
}
54+
}
55+
if ( fn instanceof Function === false ) { return; }
56+
try {
57+
fn();
58+
} catch (ex) {
59+
}
60+
};
61+
ga.create = function() {
62+
return new Tracker();
63+
};
64+
ga.getByName = function() {
65+
return new Tracker();
66+
};
67+
ga.getAll = function() {
68+
return [new Tracker()];
69+
};
70+
ga.remove = noopfn;
71+
// https://github.com/uBlockOrigin/uAssets/issues/2107
72+
ga.loaded = true;
73+
w[gaName] = ga;
74+
// https://github.com/gorhill/uBlock/issues/3075
75+
const dl = w.dataLayer;
76+
if ( dl instanceof Object ) {
77+
if ( dl.hide instanceof Object && typeof dl.hide.end === 'function' ) {
78+
dl.hide.end();
79+
dl.hide.end = ()=>{};
80+
}
81+
if ( typeof dl.push === 'function' ) {
82+
const doCallback = function(item) {
83+
if ( item instanceof Object === false ) { return; }
84+
if ( typeof item.eventCallback !== 'function' ) { return; }
85+
setTimeout(item.eventCallback, 1);
86+
item.eventCallback = ()=>{};
87+
};
88+
dl.push = new Proxy(dl.push, {
89+
apply: function(target, thisArg, args) {
90+
doCallback(args[0]);
91+
return Reflect.apply(target, thisArg, args);
92+
}
93+
});
94+
if ( Array.isArray(dl) ) {
95+
const q = dl.slice();
96+
for ( const item of q ) {
97+
doCallback(item);
98+
}
99+
}
100+
}
101+
}
102+
// empty ga queue
103+
if ( gaQueue instanceof Function && Array.isArray(gaQueue.q) ) {
104+
const q = gaQueue.q.slice();
105+
gaQueue.q.length = 0;
106+
for ( const entry of q ) {
107+
ga(...entry);
108+
}
109+
}
110+
})();

docs/.vuepress/public/assets/code_highlight/Asterisk dialplan syntax highlighting for gedit_files/main.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.vuepress/public/assets/code_highlight/Asterisk dialplan syntax highlighting for gedit_files/scripts.js

Lines changed: 141 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)