ice icon indicating copy to clipboard operation
ice copied to clipboard

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)

Results 355 ice issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/1941010/183914559-63a3bc3a-0e7a-4ac4-b5ee-5efda795dc7d.png) 当前的i18n插件的getLocale方法,开启i18n路由情况下, getDetectedLocaleFromPath(locales, defaultLocale) 是一定会返回值的,这也就导致后面的cookies.get方法永远不会执行,进而导致如下问题: - 如果上次访问的时候语言选择了英文,然后关闭页面,在打开中文path的页面(中文为默认语言),页面是不会跳转到英文路径下,因为这时候getLocale由于上述机制的设计,会执行从path取locale状态的逻辑,而永远不会考虑cookie的状态; - 但此时点击任何一个Link链接或者执行history.push的时候,内部逻辑却不是默认读取的path上的locale信息而是cookie上的,于是就会从中文页面突然跳转为英文页面; 建议: getDetectedLocaleFromPath方法得改进一下,如果通过path判断不到locale状态时,不应该返回defaultLocale,而应该返回undefined或false,这样就会去看下cookie,取cookie的语言,如果path上有语言标记,也应该在init的时候基于初始化的setCookie逻辑,把语言cookie更新成当前path对应的语言类型; - **ice.js Version**:2.6.4 - **plugin-i18n Version**:0.2.1 - **build.json Configuration**: - **Node Version**: - **Platform**:

![image](https://user-images.githubusercontent.com/51156342/180733265-d7132c74-d499-4df9-a2bf-8539f2842841.png) ![image](https://user-images.githubusercontent.com/51156342/180733299-3c7c33f7-945d-48ce-b330-54ffb72ce551.png) ![image](https://user-images.githubusercontent.com/51156342/180733526-8916b31b-ff25-4743-8eb9-34cf120a4ffc.png) 配置不生效

routes.ts 文件如果通过以下方式导入时,将导致 store Provider 重定向失败: ```ts import A from '@/pages/a'; ```

bug
PR Welcome

- [x] #5308 - [x] #5321 - [x] #5350 - [x] SSR 场景下 routes 相关方法不执行 #5398 #5325 - [x] #5399 - [x] chore: fix auth type #5327 - [x] fix:...

Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4. Changelog Sourced from moment's changelog. 2.29.4 Release Jul 6, 2022 #6015 [bugfix] Fix ReDoS in preprocessRFC2822 regex 2.29.3 Full changelog Release Apr 17, 2022...

dependencies

[vite] warning: Top-level "this" will be replaced with undefined since this file is an ECMAScript module 23 | return https://github.com/vitejs/vite/issues/8644

## 使用ssr 渲染时使用微模块报错 UnhandledPromiseRejectionWarning: ReferenceError: window is not defined 微模块不给参数也报错 ![微信截图_20220804154545](https://user-images.githubusercontent.com/50770845/182793233-de97fd9c-7429-4e81-b928-018d3d4a6f25.png) ## 解决ssr渲染时的报错,或者微模块在客户端时在渲染 ## Any additional comments? 相关环境信息? - **ice.js Version**:2.0.0 - **build.json Configuration**:{ "vite": false, "ssr": true, "outputAssetsPath": {...

ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema. ` // build.config.js import { viteCommonjs } from '@originjs/vite-plugin-commonjs'; const...

- IE11 下不存在 `window.navigator.languages`,需要做兼容处理 - https://github.com/alibaba/ice/issues/5384

## What is the current behavior? 发生了什么? 按照demo, effects 调用reducers 中的方法时, 会提示“实参数量无效,应为 2 个", 同时也无法对方法中的参数进行类型检查。 https://github.com/alibaba/ice/blob/a27620d3d47a97b8d31f3a9ec493b84777544063/examples/basic-store/src/models/user.ts#L9-L26 ## What is the expected behavior? 期望的结果是什么? 希望能完整支持 typescript ## Any additional comments? 相关环境信息?...

urgent