mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-15 16:07:57 +00:00
Update caniuse help message and stats strategy
This commit is contained in:
parent
c6069db65b
commit
d82e1bb81d
2 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ class HelpCommand extends Command {
|
||||||
"#": `Prefix ${c.match("#")} to search builtin attributes`,
|
"#": `Prefix ${c.match("#")} to search builtin attributes`,
|
||||||
"%": `Prefix ${c.match("%")} to search Rust official book chapters`,
|
"%": `Prefix ${c.match("%")} to search Rust official book chapters`,
|
||||||
">": `Prefix ${c.match(">")} to search Rust clippy lints`,
|
">": `Prefix ${c.match(">")} to search Rust clippy lints`,
|
||||||
"?": `[WIP] Prefix ${c.match("?")} to search Rust tracking issues`,
|
"?": `Prefix ${c.match("?")} to search caniuse.rs, prefix ${c.match("??")} can redirect to the RFC page`,
|
||||||
};
|
};
|
||||||
return Object.entries(value).map(([key, description], index) => {
|
return Object.entries(value).map(([key, description], index) => {
|
||||||
return {content: key, description};
|
return {content: key, description};
|
||||||
|
|
|
@ -49,10 +49,10 @@ let stats = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Others",
|
name: "Others",
|
||||||
pattern: /^[>%].*/i,
|
pattern: /^[>%?].*/i,
|
||||||
value: 0,
|
value: 0,
|
||||||
color: "#ededed",
|
color: "#ededed",
|
||||||
description: "Others count any Clippy lint (>) or book (%) prefix searches."
|
description: "Others count any Clippy lint (>), book (%), and caniuse/rfc (?) prefix searches."
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
let calendarData = [];
|
let calendarData = [];
|
||||||
|
|
Loading…
Reference in a new issue