Commit Graph

58 Commits

Author SHA1 Message Date
Miao Wang cc3548ff7a
fancyIndex: optimize perforamnce with textContent
Some checks failed
docker-images / multi (push) Has been cancelled
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
2025-06-10 19:02:50 +08:00
Miao Wang 3c9ed2ef3e detect if es module can be loaded 2025-04-10 22:42:55 +08:00
Shengqi Chen 8b143c090b
helpz: append /git to path if GLOBAL_CONFIG has set git attribute
Some checks failed
docker-images / multi (push) Has been cancelled
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
2024-08-28 14:36:05 +08:00
Miao Wang 55d34b3d71
app: fix BootstrapModal import error
Some checks failed
docker-images / multi (push) Has been cancelled
Fixes: c89c3506
Fixes: #434

Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
2024-06-24 11:56:33 +08:00
Miao Wang 3bd0ead9b4 import bs/collapse 2024-04-21 17:48:53 +08:00
Miao Wang 47aa62c811 comp/MainMirrorList: directly include template file 2024-04-21 13:17:19 +08:00
Miao Wang e802728b44 add docker image for build environment 2024-04-21 13:17:19 +08:00
Miao Wang 0bc51cebc1 include main-page.css in legacyapp 2024-04-21 13:17:19 +08:00
Harry Chen a6abff588d Add ts typing shims for vite virtual modules
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Harry Chen a623fb07e0 Refine some ts types
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Harry Chen 962aaf2187 Fix some type errors in entrypoints
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Harry Chen 5d499c4ef7 Add typescript shim for .vue files
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Miao Wang 0aa9a665b8 [WIP] migrate entrypoints to ts 2024-04-21 13:17:19 +08:00
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 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 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 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
Harry Chen c89c35060e Refine some imports
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 702bfc49cf optimize legacyindex 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
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
Miao Wang 893083b089 remove thuhidden 2024-04-21 13:17:18 +08:00
Miao Wang 05d5d6ba63 404: move inline scripts to vite 2024-04-21 13:17:18 +08:00
Miao Wang 95c919773e add back hotkey for searchbox 2024-04-21 13:17:18 +08:00
Miao Wang c10467b093 remove bootstrap.js 2024-04-21 13:17:18 +08:00