Commit Graph

2002 Commits

Author SHA1 Message Date
Harry Chen 7328ec3415 Switch some js files to ts for better typing
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Miao Wang beaf2b19d0 add css polyfill for .nav.flex-column 2024-04-21 13:17:19 +08:00
Miao Wang 7ab0379dfa force use tersor to minify njs
because esbuild will generate export { ... as default } statements and
not supported by njs
2024-04-21 13:17:19 +08:00
Miao Wang c11d812eaf add a dummytype attribute for inline javascript minifier to work 2024-04-21 13:17:19 +08:00
Miao Wang 88adaa9ba4 transform non-default imports and exports using babel
since they are not supported by njs.

polyfill also added
2024-04-21 13:17:19 +08:00
Miao Wang d2f1d2d75b using vite to bundle njs scripts 2024-04-21 13:17:19 +08:00
Miao Wang e82195a2d4 vite: generate files under a directory in jekyll-cache
so that irrelevant cache files will not be included
2024-04-21 13:17:19 +08:00
Miao Wang 295d055537 extract data processing logic 2024-04-21 13:17:19 +08:00
Miao Wang bc4593151f add responsive support for legacy browsers 2024-04-21 13:17:19 +08:00
Miao Wang 21d4f2a1cb align seperators of bs3 with bs5 2024-04-21 13:17:19 +08:00
Miao Wang 9138dcf586 add polyfill for module supported browsers without dynamic import support 2024-04-21 13:17:19 +08:00
Miao Wang 87cff7f1b9 change polyfill code for Safari10 to unminified 2024-04-21 13:17:19 +08:00
Miao Wang 19109103be add css polyfill from bootstrap3 2024-04-21 13:17:19 +08:00
Miao Wang 3e6207b399 introduce polyfill for FormData for helpz
and remove DOMContentLoaded event listener
2024-04-21 13:17:19 +08:00
Miao Wang 6b9c11995d Status: fix spell error 2024-04-21 13:17:19 +08:00
Miao Wang e5e9c00c38 pass config through fd 2024-04-21 13:17:19 +08:00
Miao Wang b11d5564b3 bootstrap adjust
Prefer directly changing scss variable at build time
2024-04-21 13:17:19 +08:00
Miao Wang 07ac071cd9 polyfill adjustments 2024-04-21 13:17:19 +08:00
Miao Wang 839bb69d09 Using babel for polyfill js 2024-04-21 13:17:19 +08:00
Harry Chen 9e630b5877 Ignore more files in Jekyll config
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Harry Chen e27f2f90da Cleanup Jekyll dependencies
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Miao Wang 0febd6e554 fix jekyll-minifier exclude glob 2024-04-21 13:17:19 +08:00
Miao Wang 7f412ef033 clearify the usage of empty target 2024-04-21 13:17:19 +08:00
Miao Wang 545383baf0 add entries for visualizer
Cherry-Picked from ce05e10
2024-04-21 13:17:19 +08:00
Harry Chen c89c35060e Refine some imports
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Harry Chen 6f9fbcfe31 Format vite config as well
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Miao Wang bb9370aee7 polyfill! 2024-04-21 13:17:19 +08:00
Miao Wang 279e69e60f Fix unclosed tag
Fixes: d477b3ee
2024-04-21 13:17:19 +08:00
Miao Wang 702bfc49cf optimize legacyindex 2024-04-21 13:17:19 +08:00
Miao Wang 41618e6ed1 fix legacy script tag generation 2024-04-21 13:17:19 +08:00
Miao Wang 3fb7919da8 migrate images 2024-04-21 13:17:19 +08:00
Miao Wang be2e31503f migrate webfont 2024-04-21 13:17:19 +08:00
Miao Wang 5b189b9912 format all files in _src/ 2024-04-21 13:17:19 +08:00
Miao Wang 0da5a1739a move scripts to _src/ 2024-04-21 13:17:19 +08:00
Miao Wang c0d83d4e80 fancyindex move into vue 2024-04-21 13:17:19 +08:00
Miao Wang b6aba14bb0 extract mirror update field to separate component 2024-04-21 13:17:19 +08:00
Miao Wang b886c249d2 add reduced motion for status page 2024-04-21 13:17:19 +08:00
Miao Wang badddeec76 impl status mirror list 2024-04-21 13:17:19 +08:00
Miao Wang 14ffc4b8d5 make sync-status style scoped 2024-04-21 13:17:19 +08:00
Miao Wang 9dd20e063b reformat, change tab to space 2024-04-21 13:17:19 +08:00
Miao Wang 28da3dced1 split out mirrorlist fetching 2024-04-21 13:17:19 +08:00
Miao Wang 5855a7e573 fix popover handling 2024-04-21 13:17:19 +08:00
Miao Wang 8abf91aa01 diskbar implement in vue 2024-04-21 13:17:19 +08:00
Miao Wang fddc248af9 rewrite main mirror list with async 2024-04-21 13:17:19 +08:00
Miao Wang da15ad8558 treeshaking bootstrap 2024-04-21 13:17:19 +08:00
Miao Wang 5ef1cad7c3 make stats optional and ignored by jekyll 2024-04-21 13:17:18 +08:00
Harry Chen 2115269686 Tree-shake modules from hljs to reduce artifact size
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:18 +08:00
Harry Chen 59dc77fe75 Use prettier to format code
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:18 +08:00
Harry Chen 46b340b732 Add visualizer plugin to vite
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:18 +08:00
Miao Wang 893083b089 remove thuhidden 2024-04-21 13:17:18 +08:00