Commit Graph

16 Commits

Author SHA1 Message Date
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 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 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 295d055537 extract data processing logic 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 07ac071cd9 polyfill adjustments 2024-04-21 13:17:19 +08:00
Miao Wang bb9370aee7 polyfill! 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 8abf91aa01 diskbar implement in vue 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 d6821ab71b extract help scripts 2024-04-21 13:17:18 +08:00
Miao Wang c8fd12ed2e export consts to common files 2024-04-21 13:17:18 +08:00