Elon Tang

Results 5 issues of Elon Tang

Store package style sheets in the `styles/` directory instead of `stylesheets/` in the `web-view` package ``` Package.getStylesheetsPath (K:\Users\Tom Tang\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:430:9) Package.getStylesheetPaths (K:\Users\Tom Tang\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:441:32) Package.loadStylesheets (K:\Users\Tom Tang\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:423:38) (K:\Users\Tom Tang\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:167:19) ```

## 第一个建议 我觉得将`keydown`事件的监听放在`document`上并不是非常合适。对于一个富文本编辑器,快捷键只想在特定的区域内生效。虽然`filter`可以实现,但是如若一个页面中,这种情况非常多,那么逻辑不都堆叠在`filter`函数中了? 最好有一个更棒的设计,可以例如像下面的思想: ```js import hotkeys from 'hotkeys-js' // 在特定一区域内生效 const hotkey1 = hotkeys.attach('#editor1') const hotkey2 = hotkeys.attach('#editor2') hotkey1('ctrl+s', function () { console.log('保存editor1中内容') }) hotkey2('ctrl+s', function () { console.log('保存editor2中内容')...

When I use `@tailwindcss/vite`@4 with `storybook`. It reported an error as bellow: ``` SB_CORE-SERVER_0007 (MainFileEvaluationError): Storybook couldn't evaluate your .storybook/main.ts file. Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /.../node_modules/@tailwindcss/vite/package.json at...

v4

![截屏2024-11-22 14 38 40](https://github.com/user-attachments/assets/198043d4-e2b7-478f-aa7f-edff3954cf0f)