Commit graph

311 commits

Author SHA1 Message Date
shwin0901
37aab9bc69 Calculate height dynamically topCratesData bar chart 2020-05-17 19:03:25 +08:00
shwin0901
57137366ed Calculate searching saved time 2020-05-17 18:39:34 +08:00
shwin0901
c18ff5a691 Decouple topCratesData yAxis label logic from barChart.js 2020-05-17 00:27:49 +08:00
shwin0901
89422b68d0 Optimization statistics page 2020-05-16 23:13:56 +08:00
Folyd
45c8ec916b
Merge pull request #40 from shwin0901/master
Optimize stats code
2020-05-16 00:17:18 +08:00
shwin0901
fd2c54ba3b Fix review suggestions 2020-05-16 00:14:08 +08:00
shwin0901
c5b956b0ff Optimize stats code 2020-05-15 22:51:43 +08:00
Folyd
da40380e57
Merge pull request #39 from shwin0901/master
Add crates rank chart and searching functions percentage chart
2020-05-14 11:25:43 +08:00
Folyd
298eb98df4 Integrate core submodule 2020-05-13 23:52:43 +08:00
shwin0901
e4edbb6994 Fix D3js svg chart overflow issues 2020-05-13 23:36:03 +08:00
shwin0901
d79e61a11b Add crates rank chart and searching functions percentage chart 2020-05-13 23:21:20 +08:00
Folyd
d4395d5ba9 Fix docs search offline doc path bug 2020-05-12 11:40:25 +08:00
shwin0901
06b24a7cff Add chart histogram tooltip 2020-05-09 22:39:07 +08:00
Folyd
ee62a79713
Merge pull request #37 from shwin0901/master
Add histogram charts
2020-05-08 23:12:19 +08:00
shwin0901
4c4ae15914 Add histogram charts 2020-05-08 22:56:47 +08:00
Folyd
883b8e0a9f Refresh search index after saved crated docs changed 2020-05-07 10:07:32 +08:00
Folyd
ef6daebfe1
Merge pull request #36 from shwin0901/master
Add Searching Statistics page
2020-05-06 22:49:50 +08:00
shwin0901
93ffea7005 Add Searching Statistics page 2020-05-06 22:39:56 +08:00
shwin0901
e42d8c1dab Add calendar heatmap library 2020-05-06 22:29:22 +08:00
Folyd
75884ddbdd
Merge pull request #34 from shwin0901/master
Add tool command
2020-05-02 17:02:16 +08:00
shwin0901
09ece8fe45 Add tool command 2020-05-02 16:54:55 +08:00
Folyd
b6dffd6a6e Support search all saved crates docs collectively. 2020-05-01 19:25:28 +08:00
Folyd
eb16ed006c Fix offline mode bug 2020-05-01 18:27:47 +08:00
shwin0901
a4af01a565 Support customize crate registry 2020-05-01 11:46:13 +08:00
shwin0901
4b18fb92f6 Remove automatically open changelog tab code 2020-04-27 23:03:34 +08:00
shwin0901
3ecd23a679 Fix firefox omnibox page size 2020-04-27 22:32:03 +08:00
Folyd
ba4b1cf0f7 Fix crates' docs.rs page redirect bug 2020-04-25 23:29:21 +08:00
Folyd
3c05829a92 Distinct browser type strictly 2020-04-25 16:20:25 +08:00
Folyd
8688d486e0 Refix stable command bug, bump search index to v1.43.0 2020-04-25 15:42:09 +08:00
Folyd
0bb7d4801d Update latest index files 2020-04-25 15:15:34 +08:00
Folyd
679830e3e6 Fix semver doesn't work in Firefox bug 2020-04-24 19:36:46 +08:00
Folyd
254fb91dc3 Add semver compare to update the crate docs version 2020-04-20 22:41:37 +08:00
Folyd
62d63e8d62 Show crate version when query with @ prefix 2020-04-20 21:20:21 +08:00
Folyd
591af48266 Transfer the repository to Huhu 2020-04-19 21:31:12 +08:00
Folyd
a7913dceb9 Rename onSelected() to afterNavigated() 2020-04-17 18:50:43 +08:00
Folyd
28f7b0b538 Improve inject script name conventions 2020-04-17 18:50:18 +08:00
Folyd
9a7a541c83 Add beforeNavigate hook for Omnibox 2020-04-17 00:15:07 +08:00
Folyd
22ee8c3dad Omnibox add no cached query API 2020-04-15 23:49:44 +08:00
Folyd
0837a31fbd Increase doc search MAX_LEV_DISTANCE to 3 2020-04-15 23:08:17 +08:00
Folyd
156592d0f0 Fix label command filter bug 2020-04-15 19:32:36 +08:00
Folyd
3285d6991b Move common script logic to lib.js 2020-04-14 19:53:01 +08:00
Folyd
0ff006c6bc Move Deminifier into CrateSearch object 2020-04-14 18:09:10 +08:00
Folyd
4f14e08718 Fix cargo features parse bug 2020-04-14 18:03:59 +08:00
Folyd
77247c5e6c Revert "Fix cargo.toml parse bug"
de3e7e2812
2020-04-14 13:25:20 +08:00
Folyd
97bde0149c Fix regex bug when replace duplicated url flag 2020-04-13 19:30:58 +08:00
Folyd
76f40ff716 Fix cargo.toml parse bug 2020-04-13 19:25:14 +08:00
Folyd
43f8ccc27b Remove max page and max docs result size limitation 2020-04-13 18:45:20 +08:00
Folyd
f5c11acb05 Change to dark-mode compatible rust logo 2020-04-12 13:29:46 +08:00
Folyd
9fa462f313 Separate chromium and firefox action workflow files 2020-04-11 00:03:03 +08:00
Folyd
081212291e Make Firefox support add external crate search index 2020-04-10 23:48:40 +08:00
Folyd
06f132d517 Remove browser variable in Compat 2020-04-08 22:53:38 +08:00
Folyd
5b0fd01987 Update default suggestion, improve crate search UI 2020-04-08 22:37:25 +08:00
Folyd
6c7922ae76 Command support prefix filtering 2020-03-30 23:04:21 +08:00
Folyd
e36a29b921 Add Guide to Rustc Development book, update README 2020-03-28 18:14:41 +08:00
Folyd
0f64785abf Add labels-index.js 2020-03-25 23:44:43 +08:00
Folyd
deb2634fd7 Add :label command 2020-03-25 22:27:23 +08:00
Folyd
e86d3faf35 Command.onBlankResult return [] by default 2020-03-25 22:21:24 +08:00
Folyd
fd7710b0b5 Merge branch 'master' into v0.8.1 2020-03-14 00:55:26 +08:00
Folyd
6649ca0839 Bump version to v0.8.1, upgrade crates and search index 2020-03-14 00:47:23 +08:00
Folyd
964cefe001 Fix stable command calculate wrong version bug 2020-03-13 18:21:56 +08:00
Folyd
298983ec6e Merge pull request #18 from Folyd/bugfix-crates-name
Fix crate result name unnecessary underscore replacement issue
2020-03-10 16:20:01 +08:00
Folyd
cd410fb4ee Fix crate result name unnecessary underscore replacement issue 2020-03-10 15:52:14 +08:00
Folyd
812c7fa489 Fix crate doc name bug 2020-03-09 14:56:52 +08:00
Folyd
781f68221a Add getSearchUrl() method, doc search result add footer 2020-03-08 22:19:04 +08:00
Folyd
a2cd5f51fe Fix doc search index compatiblity 2020-03-08 17:27:11 +08:00
Folyd
d519bc6020 Fix command UI 2020-03-08 16:38:05 +08:00
Folyd
83874d5953 Show crate doc search title, convenient for select crates in the list 2020-03-08 16:28:05 +08:00
Folyd
bed0e1bb7e Change command list content 2020-03-08 15:37:33 +08:00
Folyd
4b694578b9 Show optional crate list when perform crate doc search 2020-03-08 12:43:01 +08:00
Folyd
5e7286880f Fix parse crate name bug 2020-03-08 12:29:01 +08:00
Folyd
aa27ccff92 Change crate local storage structure to object 2020-03-08 11:31:55 +08:00
Folyd
786ee72b38 Add third party crate doc search 2020-03-08 10:59:37 +08:00
Folyd
cee11ef52a Add CrateDocSearcher and manager, crate docs change to immediately invoke function 2020-03-08 10:49:40 +08:00
Folyd
674428441f Fix search index compatibility, sync with official code 2020-03-08 01:00:06 +08:00
Folyd
d023db11f9 Extract base doc search file 2020-03-07 17:13:18 +08:00
Folyd
9a8bd643bd Optimize add to extension UI 2020-03-07 16:12:56 +08:00
Folyd
699fcdbf39 Support toggle add to extension state 2020-03-07 12:52:13 +08:00
Folyd
12a638bd33 Implement add search index to extension feature 2020-03-07 00:33:48 +08:00
Folyd
6fe58a7936 Clean token when minify js 2020-03-06 00:54:12 +08:00
Folyd
6aad602f55 Add clippy lints search 2020-03-05 23:33:32 +08:00
Folyd
22c4e9b540 Add The wasm-bindgen Guide book 2020-03-05 19:34:56 +08:00
Folyd
2280911226 Generate lints index 2020-03-04 01:01:05 +08:00
Folyd
bcf8050545 Fix docs.rs feature flags not working on some pages issue 2020-03-03 22:57:10 +08:00
Folyd
d698f2cda5 Update to the latest crates index 2020-03-02 19:58:27 +08:00
Folyd
b886d65bda Adjust popup directory 2020-03-01 15:56:57 +08:00
Folyd
21f9703c26 Command add onBlankResult hook method 2020-02-28 19:15:18 +08:00
Folyd
3183f0045c Refractor command system, add history command 2020-02-28 12:58:54 +08:00
Folyd
c4dee50ccb Ominbox boostrap function add onSelected callback 2020-02-28 11:58:20 +08:00
Folyd
e090c6bef4 Add disposition rule to replace openType config 2020-02-28 11:08:58 +08:00
Folyd
f66922443d Fix feature flags overflow UI, improve docs 2020-02-26 18:49:47 +08:00
Folyd
1d894fa1d1 Add remind for crate search 2020-02-26 18:13:21 +08:00
Folyd
595f6a5450 Adjust search directory structure 2020-02-25 15:45:35 +08:00
Folyd
9098866340 Fix popup compat issues 2020-02-25 14:56:54 +08:00
Folyd
ee57aed147 Add app.js, bump version to 0.8 2020-02-25 14:27:16 +08:00
Folyd
76ae1bc81c Cache the last query and result to speed up the page down. 2020-02-25 14:21:24 +08:00
Folyd
0d8c3ea43f Refractor omnibox with QueryEvent class 2020-02-25 14:05:48 +08:00
Folyd
d276d5c7cf Add omnibox.spec.js 2020-02-25 10:35:46 +08:00
Folyd
328e88eb6e Integrate mochajs to test Deminify code 2020-02-25 00:38:12 +08:00
Folyd
3f9fb5db27 Support filter argument in some commands 2020-02-24 21:17:36 +08:00
Folyd
8b9a5e8476 Escape book page title 2020-02-24 14:18:03 +08:00
Folyd
fc3d5e6a4c Update crates index, fix deminfier regex 2020-02-24 14:16:55 +08:00
Folyd
105bf059b1 Update deminify.js regex 2020-02-24 00:47:30 +08:00
Folyd
018815a69b Book command add Rust fuzz book 2020-02-23 21:01:23 +08:00
Folyd
7bf83bb65a Omnibox event add deduplicate property 2020-02-23 21:00:55 +08:00
Folyd
9ffabd7863 Fix some UI issues 2020-02-23 17:39:18 +08:00
Folyd
5ddac1e7fb Deduplicate result's content 2020-02-23 14:25:28 +08:00
Folyd
97c532b1db Update :help command 2020-02-22 23:21:35 +08:00
Folyd
9b45e86d9d Add :stable command to show Rust schedule release date 2020-02-22 23:00:18 +08:00
Folyd
8d1d148b84 Cargo clippy 2020-02-22 17:05:28 +08:00
Folyd
442d39c078 Show parent chapter's title when perform book search 2020-02-22 16:45:45 +08:00
Folyd
28dcf4c822 Minify books index file 2020-02-22 16:22:41 +08:00
Folyd
e0a35b8c47 Add basic book search feature 2020-02-17 11:54:27 +08:00
Folyd
ef37c0e120 Change page tuner from "+" to "-", as Firefox don't support "+" 2020-02-16 17:20:34 +08:00
Folyd
ea3e89935c Fix feature flags drop list ui 2020-02-14 14:44:55 +08:00
Folyd
08abe6e1b4 Fix feature flags parse issue 2020-02-14 13:57:16 +08:00
Folyd
7c53ecaec6 Inject script to display feature flags on docs.rs page 2020-02-14 11:31:53 +08:00
Folyd
4121c8dd33 Remove CrateSearch's limit argument 2020-02-12 15:33:51 +08:00
Folyd
d74efaffe0 Optimize index javascript file structure 2020-02-12 15:12:30 +08:00
Folyd
6ee5c5a159 Add reminding to page down 2020-02-12 14:54:42 +08:00
Folyd
6dbb41e0f0 Fix omnibox parse incorrect bug 2020-02-12 12:59:22 +08:00
Folyd
1808649586 Fix attributes href duplicate issue 2020-02-12 12:00:18 +08:00
Folyd
3740f86b27 Parse input to add pagination feature 2020-02-12 11:59:55 +08:00
Folyd
357b8486bd Add book command to show all of Rust books 2020-02-11 17:03:19 +08:00
Folyd
5b6d405233 Optimize command.js code 2020-02-10 15:04:29 +08:00
Folyd
e82573e97a Fix omnibox search ui and regex check 2020-02-10 15:03:25 +08:00
Folyd
67033f7951 Refractor compat.js 2020-02-10 11:58:12 +08:00
Folyd
f12eb81d37 Add command feature 2020-02-09 23:15:18 +08:00
Folyd
864b2379fb Refractor and redesign Omnibox code 2020-02-09 21:25:21 +08:00
Folyd
34f00d5a13 Fix search crates ui 2020-02-08 17:16:54 +08:00
Folyd
27464a76cd Sync latest crate-index's mapping to deminify crate id 2020-02-08 17:11:10 +08:00
Folyd
9129a5bddb Add compat.js and toast.js 2020-02-08 17:01:10 +08:00
Folyd
07cb700909 Improve double ! search result UI 2020-02-07 13:48:19 +08:00
Folyd
cefdcca046 Support prefxi double ! to search crates with docs.rs url 2020-02-07 12:05:42 +08:00
Folyd
986ac2c7b5 Remove crates-index's documentation field, rename crates-index.js to index.js 2020-02-07 12:04:39 +08:00
Folyd
3c390cb8bc Fix legacy default suggestion not reset bug 2020-02-06 23:19:31 +08:00
Folyd
6f90c0f7be Use appendResult() method to render result 2020-02-06 23:02:44 +08:00
Folyd
d6192dff86 Add match() and dim() methods to format text on Chrome 2020-02-06 22:13:02 +08:00
Folyd
af25fca186 Set the first search result as the default suggestion content 2020-02-06 21:57:38 +08:00
Folyd
aaaa3eaf2f Bump to version 0.7 2020-02-04 11:19:08 +08:00
Folyd
61ad4877fc Integrate rust attributes search feature 2020-02-03 16:18:23 +08:00
Folyd
c3bb201a62 Add rust attributes search js files 2020-02-03 16:17:39 +08:00
Folyd
a42f9d19fa Update search-index to version 1.41.0 2020-02-01 09:20:23 +08:00
Folyd
faee2d5ebd Using jsonnet to generate Chrome/Firefox manifest json 2020-01-16 20:30:14 +08:00
Folyd
37f02b0761 Add favicon, fix typo, update latest crates index 2020-01-13 23:06:32 +08:00
Folyd
9cde4bca51 Bump to version 0.6 2020-01-13 21:31:02 +08:00
Folyd
4d680cd86a Add minify letters 2020-01-13 19:27:39 +08:00
Folyd
da0206d1cb Change MINIFY_LETTERS to alphanumeric letters 2020-01-12 15:29:46 +08:00
Folyd
501b0a9792 Add Deminifier to clean minified string 2020-01-12 14:25:10 +08:00
Folyd
b57792c1a2 Change website url to now.sh 2020-01-03 20:30:59 +08:00
Folyd
ac5eb94218 Fix crates-index url typo, update crates-index binary file 2019-12-31 15:46:23 +08:00