zystudios

Results 23 issues of zystudios

感谢官方开源Yapi,然后基于最新版本,做了2次开发,总结一些开发过程中遇到的坑,给其他兄弟参考 YAPI是在mac下开发的,大家尽量用mac,这样报错少一些,我在win10下会遇到各种奇怪的问题,包括组件包安装失败,编译报错,不识别的linux命令等,如果遇到了就单独一个个解决,这个和环境有关系,每个人遇到的可能都不一样,我在mac和win下都进行了测试,总体mac会顺利很多 --- 由于服务器环境不同,node和YApi的组件版本都比较低,服务器编译容易出各种错误,官方docker部署不会编译前端代码,默认复制static/prd下面已经编译好的js代码 关于docker部署: - 先自行在服务器提前配置好环境(安装node,ykit和webpack等相关组件,可能需要全局安装,具体看服务器设置,需要有sudo权限,全部安装完毕后,在服务器手动执行npm run build-client 看能否正确编译)如果能编译正确,生成编译文件,那么恭喜你,可以用方案二,如果有各种报错又懒得解决,就用方案一,我这边服务器是unbantu,某些包总是安装失败,我也没有最高权限,就用方案一了 - 方案一:每次docker build之前先手动在本地npm run build-client编译,生成最终文件上传服务器,这样docker 就直接复制文件不走编译了 - 方案二:修改dockerfile里增加编译代码 npm run build-client 即可,这样每次docker build都会重新编译文件,编译时间根据硬件配置不同时间不同 --- 官方1.12.0默认关闭了全局Mock脚本,这个功能慎用,vm2 沙箱组件执行完会有无法退出linux进程的问题,导致请求一次创建一个进程,最终几千上万个进程把内存耗光,这个应该是vm2的问题,不是yapi的问题,暂时没有好的解决办法,所以官方禁用了事 。如果有修复麻烦告知谢谢,这个已经有人在vm2的github提issue了,但是官方没有更新 --- 开发环境配置(基于MAC) node版本:...

### What happened? https://developer.chrome.com/docs/extensions/reference/manifest/version Manifest - Version One to four dot-separated integers identifying the version of this extension. A couple of rules apply to the integers: The integers must be...

bug

I have a strange problem. If I don't use monkey.patch_all, everything works fine When I use monkey.patch_all in flask, advanced_mode changes to True ```python from gevent import monkey monkey.patch_all() from...

```python def key_str(): key = flask.request.path return key @app.route('/get', methods=['get']) @cache.cached(timeout=300, key_prefix=key_str) ``` when I use ```python @cache.cached(timeout=300, key_prefix=key_str()) ```

### Reproduction link [![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/react-wdu5uu?file=demo.tsx) ![image](https://github.com/ant-design/ant-design/assets/29728228/f6810a72-b97a-4da2-8df3-c48fca450bed) ### Steps to reproduce 打开demo链接即可复现 需要同时满足几个条件 1. 设置了min-width,出现水平滚动条 2. 下拉菜单有icon 3. 有二级菜单 目测是因为有了icon以后,菜单的宽度不够导致的 ### What is expected? 弹出菜单不要错位 ### What is actually happening?...

unconfirmed

Embarcadero® Delphi 11 Version 28.0.47991.2819 Community Edition. I'm using Delphi11, then the console output: ![image](https://github.com/yktoo/dklang/assets/29728228/a0f515a4-b28c-4ab1-99c4-656fd86b88bc) and I use DKlang edit project constants, then show error dialog: Ranger check error ![image](https://github.com/yktoo/dklang/assets/29728228/372b40f5-1a8e-49d8-9649-d70bd7a2a270)

I'm using Delphi 12 right now, and I just created a new vcl project and pasted the code from the demo, and when I click on run, it reports an...

I'm debugging the server locally right now. ``` python manage.py runserver 0.0.0.0:8080 ``` then visit http://127.0.0.1:8080/api/instances/ {"is_activated":false,"is_setup_done":false} What should I do? thanks

# Bug ### Description For example, the following code ```python user1 = "Lucy" user2 = "Mike" def test(): return f'hello, {user1} and {user2}' ``` After the conversion, the variable user1...

### What problem does this feature solve? 目前这个弹框520px宽是写死的么,除了覆盖,还有什么办法可以支持修改宽度高度? 目前这个宽度对我来说太宽了,需要缩小 另外,发现箭头有空隙 ### What does the proposed API look like? 对外暴露style

unconfirmed