首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏全沾开发(huā)

    FlowType简易入门指北

    FlowType简易入门指北 写了一段时间JavaScript了,作为一个弱类型语言,无视类型判断在开发过程中带来了很多的好处,int与float的转换、string与int 于是,我们就有了fb大佬们创造的FlowType,一个静态类型检查工具。 npm install --save-dev eslint eslint-plugin-flowtype 安装完插件后,还需要去VSCode中安装对应的Flow以及ESLint插件。 ? ? 参考链接 http://flowtype.org 关于Flow,个人感觉是一个挺好玩的东西,而且最重要的是,这个检查器的迁移成本非常低,低到甚至只是添加一个/* @flow */就可以使用Flow相关的功能了

    1.1K70发布于 2018-04-12
  • 来自专栏全沾开发(huā)

    FlowType简易入门指北

    FlowType简易入门指北 写了一段时间JavaScript了,作为一个弱类型语言,无视类型判断在开发过程中带来了很多的好处,int与float的转换、string与int的拼接。 于是,我们就有了大佬们创造的FlowType,一个静态类型检查工具。 npm install --save-dev eslint eslint-plugin-flowtype 安装完插件后,还需要去VSCode中安装对应的Flow以及ESLint插件。 ? ? 参考链接 http://flowtype.org 关于Flow,个人感觉是一个挺好玩的东西,而且最重要的是,这个检查器的迁移成本非常低,低到甚至只是添加一个/* @flow */就可以使用Flow相关的功能了

    1.4K10发布于 2019-12-05
  • 来自专栏贺贺的前端工程师之路

    Angular1.x VS Angular2http请求的差别

    recycle(flowType: string, recordId: string): Promise<any> { const url = `/mobileoa/workflow/cancelFlow _method=PUT&flowType=${flowType}&recordId=${recordId}`; return this.http.post(url, {}, { headers

    1.7K20发布于 2018-08-21
  • 来自专栏一路向前端

    Flow 静态类型检查开发环境搭建

    plugin-syntax-flow @babel/plugin-transform-flow-comments babel-plugin-transform-class-properties eslint-plugin-flowtype-errors babel-plugin-transform-class-properties:添加对类属性和静态方法的支持 eslint-plugin-flowtype-errors:将 Flow 错误通过 ESlint 在 .eslintrc 配置文件中增加以下配置项: { "plugins": [ "flowtype-errors" ], "rules": { "flowtype-errors eslint:recommended"], "parserOptions": { "env": { "es6": true } }, "plugins": [ "flowtype-errors " ], "rules": { "flowtype-errors/show-errors": 2 } } 项目 Github 地址:https://github.com/JofunLiang

    1.5K20发布于 2020-04-21
  • 来自专栏码农阿宇

    利用Asp.Net Core的MiddleWare思想处理复杂业务流程

    var afterPipeLineBuilder = InitAfterPipeLine(); RegisterEntityPipeLine(context.flowType handlingPipeLine.Invoke(context); afterPipeLine.Invoke(context); } 其中,RegisterEntityPipLine()方法根据flowType private void RegisterEntityPipeLine(string flowType, IPipeLineBuilder<ApproveFlowInitContext> beforePipeLineBuilder ApproveFlowInitContext> afterPipeLineBuilder) { var handleClassName = ("类名的前缀" + flowType

    54620发布于 2018-08-20
  • 来自专栏码农阿宇

    利用Asp.Net Core的MiddleWare思想处理复杂业务流程

    var afterPipeLineBuilder = InitAfterPipeLine(); RegisterEntityPipeLine(context.flowType handlingPipeLine.Invoke(context); afterPipeLine.Invoke(context); } 其中,RegisterEntityPipLine()方法根据flowType private void RegisterEntityPipeLine(string flowType, IPipeLineBuilder<ApproveFlowInitContext> beforePipeLineBuilder ApproveFlowInitContext> afterPipeLineBuilder) { var handleClassName = ("类名的前缀" + flowType

    64610发布于 2018-08-11
  • 来自专栏ASP.NET MVC5 后台权限管理系统

    ASP.NET MVC5+EF6+EasyUI 后台管理系统(43)-工作流设计-字段分类设计

    td style="width: 310px"> @Html.DropDownListFor(model => model.TypeId, ViewBag.FlowType Html.ValidationMessageFor(model => model.TypeId) } 其中ViewBag.FlowType 代码为ViewBag.FlowType = new SelectList(typeBLL.GetList(ref setPager, ""), "Id", "Name"); 具体控制器实现和试图就不再重复说了

    1.2K80发布于 2018-01-16
  • 来自专栏流川疯编写程序的艺术

    GraphCuts算法解析,Graphcuts算法求最大流,最小割实例

    ], 1, 5); g -> set_tweights(nodes[1], 2, 6); g -> add_edge(nodes[0], nodes[1], 3, 4); Graph::flowtype nodes[0], 3, 3); g -> set_tweights(nodes[1], 3, 1); g -> add_edge(nodes[0], nodes[1], 1, 0); Graph::flowtype

    2.3K10发布于 2019-01-18
  • 来自专栏周明礼的专栏

    一步一步带你搭建一个“摩登”的前端开发环境

    为了让 eslint 能通过 flow 的类型声明,我们需要安装两个工具,一个是 flow 的 eslint 插件 eslint-plugin-flowtype,另一个是 eslint 的 babel 版 js 解析器 babel-eslint,这是由于 eslint 默认的 espree 解析器认不得 flow 的类型声明 $npm install eslint-plugin-flowtype babel-eslint true, "commonjs": true, "es6": true }, "extends": [ "eslint:recommended", "plugin:flowtype "parser": "babel-eslint", "parserOptions": { "sourceType": "module" }, "plugins": [ "flowtype

    2.8K00发布于 2017-05-17
  • 来自专栏OneCode 低代码

    OneCode 3.0 微内核引擎 基础注解驱动速查手册(通讯及服务治理)

    表达式数组 空 filter String 过滤器 空 name String 名称 空 desc String 描述 空 type FormulaType 类型 FormulaType.UNKNOW flowType patient_query_service", name = "患者查询服务", desc = "提供患者基本信息查询功能", type = FormulaType.SERVICE, flowType id String 唯一标识 空 expressionArr String 表达式数组 空 filter String 过滤器 空 name String 名称 空 desc String 描述 空 flowType int 版本号 0 使用示例: @EsbInvocationAnnotation( id = "patient_invocation", name = "患者服务调用配置", flowType EsbBeanAnnotation( id = "medication_query_bean", name = "用药查询组件", type = FormulaType.SERVICE, flowType

    22510编辑于 2025-07-27
  • 来自专栏前端达人

    全新升级!Supabase 与 Next.js 14 的完美融合

    const supabase = createClient(supabaseUrl, supabaseAnonKey, { auth: { flowType: 'pkce', autoRefreshToken 因此,我们需要告诉浏览器如何访问该cookie: const supabase = createClient(supabaseUrl, supabaseAnonKey, { auth: { flowType

    1.8K31编辑于 2023-11-21
  • 来自专栏瓜农老梁

    No.177# 蓝绿发布提效方案梳理

    优先根据链路蓝绿标,选择本环境节点调用 蓝色环境没有节点,选择绿色环境节点 绿色环境没有节点,选择不带颜色节点 无染色流量优先选择绿色环境节点 3、消息组件 蓝绿流量均发送到统一主题 在消息属性标识x-infr-flowtype =CE_BLUE和x-infr-flowtype=CE_GREEN 蓝色环境启动,改写元消费组,例如__BLUE-Test-Consumer订阅原主题 绿色环境使用默认消费组Test-Consumer

    91020编辑于 2022-12-03
  • 来自专栏ASP.NET MVC5 后台权限管理系统

    ASP.NET MVC5+EF6+EasyUI 后台管理系统(44)-工作流设计-设计表单

    style="width: 310px"> @Html.DropDownListFor(model => model.TypeId, ViewBag.FlowType style="width: 110px;"> @Html.DropDownListFor(model => model.TypeName, ViewBag.FlowType

    2.3K70发布于 2018-01-16
  • 来自专栏得物技术

    得物染色环境落地实践

    首先流量标在流量入口层会放到http header里面的x-infr-flowtype字段:x-infr-flowtype:<CE_ColoringEnv> ##CE_是固定前缀,为了和压测标做区分从流量到网关后 图片3.染色流量入口携带染色标解决完染色标透传,以及染色标逻辑处理后,剩下就是如何在流量发起方把染色标给带上了,其实就是把染色标塞到header里面的x-infr-flowtype字段。

    2K31编辑于 2023-01-04
  • 来自专栏前端人人

    (源码开放) React + webpack3 多页面应用 及 常见问题解答

    4.14.0", "eslint-config-react-app": "^2.0.1", "eslint-loader": "^1.9.0", "eslint-plugin-flowtype

    59430发布于 2018-08-01
  • 来自专栏绿巨人专栏

    Node JS World

    dev yarn add eslint-config-react-app --dev yarn add eslint-plugin-import --dev yarn add eslint-plugin-flowtype

    1.9K20发布于 2019-03-01
  • 来自专栏前端人人

    React多页面应用7(引入eslint代码检查)

    eslint 还是先引入依赖(注意安装命令太长, 复制后改成一行) npm i -D eslint eslint-config-react-app eslint-loader eslint-plugin-flowtype

    1.1K40发布于 2018-04-11
  • 来自专栏前端人人

    React多页面应用9(webpack4 引入eslint代码检查)

    eslint-plugin-import@2.10.0 react-dev-utils@5.0.0 eslint-plugin-jsx-a11y@5.1.1 babel-eslint@8.2.2 eslint-plugin-flowtype

    1.6K80发布于 2018-04-24
  • 来自专栏软件测试架构师俱乐部

    全链路压测探索实践之路

    压测流量模拟在请求网关接口时候在header中带上:x-infr-flowtype=PT,各个中间件路由逻辑如下: mysql:影子库; redis:影子key,前缀ptshadow_; mongodb

    1.1K10发布于 2020-10-29
  • 来自专栏前端宇宙

    花十分钟的时间武装你的代码库

    wrap-multilines': 0, 'comma-dangle': 1, //对象字面量项尾不能有逗号 'react/no-multi-comp': 0, //防止每个文件有多个组件定义 'flowtype /generic-spacing': 0, //泛型对象的尖括号中类型前后的空格规范 'flowtype/space-after-type-colon': 0, //类型注解分号后的空格规范

    3K30发布于 2020-08-17
领券