mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 15:47:12 +00:00
Remove rustc search statistics
This commit is contained in:
parent
a6983ae342
commit
46afbd0e1d
3 changed files with 0 additions and 17 deletions
|
@ -31,10 +31,6 @@ const STATS_MAP = {
|
||||||
color: "#f50707",
|
color: "#f50707",
|
||||||
description: "Compile error index searches."
|
description: "Compile error index searches."
|
||||||
},
|
},
|
||||||
"rustc": {
|
|
||||||
color: "#0995cf",
|
|
||||||
description: "Rustc docs searches."
|
|
||||||
},
|
|
||||||
[TYPE_OTHER]: {
|
[TYPE_OTHER]: {
|
||||||
color: "#ededed",
|
color: "#ededed",
|
||||||
description: "Others including any Rust version, Clippy lint (>), book (%), and caniuse/rfc (?) searches."
|
description: "Others including any Rust version, Clippy lint (>), book (%), and caniuse/rfc (?) searches."
|
||||||
|
|
|
@ -37,14 +37,6 @@
|
||||||
searchIndex,
|
searchIndex,
|
||||||
},
|
},
|
||||||
}, "*");
|
}, "*");
|
||||||
} else if (location.pathname.startsWith("/nightly/nightly-rustc/") &&
|
|
||||||
location.hostname === "doc.rust-lang.org") { // rustc pages
|
|
||||||
window.postMessage({
|
|
||||||
direction: 'rust-search-extension:rustc',
|
|
||||||
message: {
|
|
||||||
searchIndex: getSearchIndex(),
|
|
||||||
},
|
|
||||||
}, "*");
|
|
||||||
} else { // stable/nightly pages
|
} else { // stable/nightly pages
|
||||||
const STD_CRATES = ['std', 'test', 'proc_macro'];
|
const STD_CRATES = ['std', 'test', 'proc_macro'];
|
||||||
|
|
||||||
|
|
|
@ -30,11 +30,6 @@ export const STATS_PATTERNS = [{
|
||||||
pattern: /^`?e\d{2,4}`?$/i,
|
pattern: /^`?e\d{2,4}`?$/i,
|
||||||
type: 6,
|
type: 6,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "rustc",
|
|
||||||
pattern: /^\/\/.*/i,
|
|
||||||
type: 7,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "other",
|
name: "other",
|
||||||
pattern: /^[>%?]|(v?1\.).*/i,
|
pattern: /^[>%?]|(v?1\.).*/i,
|
||||||
|
|
Loading…
Reference in a new issue