Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@seafile/comment-editor

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seafile/comment-editor

This is a comment editor

latest
Source
npmnpm
Version
0.0.14
Version published
Maintainers
1
Created
Source

Comment-editor

项目是基于 react-slate 组件库的二次封装, 用于满足公司评论编辑器的使用需求

目录结构

comment-editor/
  dist                      // 打包后的文件
  node_modules/             // 依赖第三方组件库
  public/                   // 公共资源文件库
    index.html                 
    favicon.ico
  site(demo 模块, 基于组件库创建的测试模块)
    _i18n                   // 国际化模块
    commons                 // 公共组件
    components              // 应用组件
    pages                   // 页面组件
    app.js                  // 应用对象
    index.html              // 主页
    index.js                // 应用入口
    setting.js              // 应用配置文件
    setting.local.js   // 应用配置模版
  src/(组件库)
    basic-sdk               // 编辑器元素包
    pages                   // 封装的视图组件
    index.js                // 组件库导出内容入口文件
  tests                     // 测试
  webpack                   // site 打包文件   
  config.js                 // site 打包配置文件
  dev-server.js             // site 后端服务器
  package.json
  readme.md                 // 组件库说明文档

本地测试步骤

  • 新增本地配置文件 setting.local.js(基于 /site/setting.js copy 一份)
  • 在 seahub 项目创建一个测试文件, 根据需要的配置信息完善配置内容
  • 执行 npm run start, 启动测试服务, 可以打开相应的网址, 对封装的组件进行测试

新版本发布

  • 更新 package.json 中的 version 属性
  • 执行 npm publish 完成新版本发布

FAQs

Package last updated on 13 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts