DJQ

Results 15 issues of DJQ

1. add remix-ui-locale-module 2. add locale file, include en-US and zh-CN 3. translate setting, pluginManager, filePanel, home, terminal, search, solidity, udapp, debugger ![image](https://user-images.githubusercontent.com/18543527/177074768-8b48e7e9-ce1e-493b-be9c-b2dd83296b0c.png)

publish

前阵子重构了一个挺有意思的项目,是一个基于浏览器环境的数据采集sdk。公司各个产品的前端页面中都嵌入了这个sdk,用于采集用户的行为数据,上传到公司的大数据平台,为后续的运营决策分析提供数据支撑。 笔者接手这个项目的时候,前任开发者已经把功能都写差不多了。唯一需要做的就是做下模块化拆分和代码规范,以便后续的开发维护。模块化拆分用webpack,代码规范用eslint。既然要重构,那就顺手用es6重写吧。callback也不要了,全换成promise,async、await也用起来,反正怎么爽怎么写。 问PM浏览器最低兼容到哪个版本,PM说兼容公司各个产品所兼容的最低版本就行。和公司各个产品的前端负责人沟通后发现,居然有兼容IE8的,真是我了个fk。 google了一下Webpack+Babel+ES6兼容IE8,果然坑很多。试了好几篇博客给出的方案,都跑不通。也没怎么研究具体哪里有问题,因为那些解决方案里面的webpack和babel都是旧版的,跑通了也不高兴用。笔者分析了那些博客中提出的几个关键性问题,然后参考webpack和babel最新的官方文档,总结出一套最新的Webpack4+Babel7+ES6兼容IE8的方案。 # ES6兼容IE8需要解决四个问题 ## 语法支持 IE浏览器不支持ES6的语法,只在IE10、IE11中支持了部分ES6的API,所以在IE浏览器中使用ES6需要把ES6的代码编译成ES5才能执行。方法也很简单,就是用`babel-loader`。这部分没什么坑,所以我也就不细说了。给个网站,大家可以自行查看ES5、ES6在各浏览器版本中的支持情况 https://kangax.github.io/compat-table/es6/ ## ES3保留关键字 如果在IE8下通过`object.propertyName`的方式使用ES3中的保留关键字(比如`default、class、catch`),就会报错 ``` SCRIPT1048: 缺少标识符 ``` webpack有一款loader插件`es3ify-loader`专门用来处理ES3的关键字兼容问题。这个插件的作用就是把这些保留字给你加上引号,使用字符串的形式引用。 ```js // 编译前 function(t) { return t.default; } // 编译后 function(t) {...

![image](https://user-images.githubusercontent.com/18543527/190889517-9d461749-1bcc-4425-9d6b-e49831dabd2e.png) I don't know if `recommonmark` was working properly before, but now there is a problem. All source strings parsed by recommonmark lose their markdown signs. For example, `**[Remixd](remixd.html)**` will...

![image](https://github.com/Liiked/VS-Code-Extension-Doc-ZH/assets/18543527/6945aeb0-a9e5-4009-a629-95ce452cc801) 官方仓库把分支名改了,master 改成了 main 。https://github.com/microsoft/vscode-docs 这个仓库下的图片都加载不出来。@Liiked

The state of remix is too complicated for `useReducer` to handle it. Redux + Redux-Saga is a better solution, which I'v already tried in the new LearnEth plugin. Check this...

fix issue #3639 @ryestew @bunsenstraat

### Here is what I expect. After I input a txHash or address, and click the search icon, there should be some thing like this appears in the right of...

Terminal

## Feedbacks Here are all the AI-related features I've found so far on Remix: 1. When the compiler throws an error, there is a 'ask gpt' button in the error...

![image](https://github.com/ethereum/remix-project/assets/18543527/7099da42-294b-4c5f-a0b7-79430023e686) The dapp loads like this, because the json file is not complete. I think it has some thing to do with the function's instructions. I tryied english, italian, french,...