npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@farris/ide-code-editor

v0.0.20

Published

本组件是对`monaco-editor`编辑器的简单封装,你需要确保项目资源目录中包含monaco的资源文件(见`dist/monaco.rar`,需要解压)

Downloads

9

Readme

ide-code-editor(代码编辑器组件)

使用方式

本组件是对monaco-editor编辑器的简单封装,你需要确保项目资源目录中包含monaco的资源文件(见dist/monaco.rar,需要解压)

版本变更

  • v0.0.1
    • 增强了ts编码体验
    • 重新封装了打开文件、关闭文件、切换主题、订阅事件等接口
  • v0.0.2
    • 新增了一个模板插槽,可用于在按钮工具栏右侧追加保存按钮等
  • v0.0.3
    • 调整了事件总线实例对象的获取方式,解决内存泄漏的问题
  • v0.0.4
    • 降低了ts类结构解析服务的时间复杂度,提高性能
    • 提升了monaco资源文件的版本(至v0.33.0),解决多次resize导致页签卡死的问题
  • v0.0.5
    • 解决了使用低版本monaco资源文件时重复引入npm包导致报错的问题
    • 去除了monaco资源文件中的map文件
  • v0.0.6
    • 降低了ts代码编辑器找不到npm包时的警告级别
  • v0.0.7
    • 在ts代码中,只要求public方法必须有注释
    • 解决ts代码编辑器新增方法或类的文档注释后无法undo或redo的问题
    • 在ts代码中,如果方法的返回值为void类型,则自动生成的注释中不包含@returns
  • v0.0.8
    • 修复了一些已知的易用性问题
  • v0.0.9
    • 修复了一些已知的易用性问题
    • 支持通过配置文件指定dts映射
  • v0.0.10
    • 在ts代码中,支持import导入npm包名时智能提示包名
  • v0.0.11
    • 修复d.ts存在缓存的问题
  • v0.0.12
    • 修复ide提示被遮挡的问题
  • v0.0.13
    • 修复重新调用open方法后内容不更新的问题
  • v0.0.14
    • 修复重新调用open方法后未将新内容设置为初始内容的问题
    • 允许通过save方法的第二个参数触发内容变更事件
  • v0.0.15
    • 修复了一些已知的问题
  • v0.0.16
    • ts代码编辑器支持通过npm依赖清单同时下载其它被依赖的dts文件
  • v0.0.17
    • 修改了ts编辑器载入.d.ts文件的方式
  • v0.0.18
    • 修复了编写ts代码时通过尖括号强制类型转换报错的问题
  • v0.0.19
    • 支持国际化
  • v0.0.20
    • 国际化问题修改