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

@aleen42/wps-plugin

v1.0.1

Published

该插件用于辅助 Email 通过 WPS 本地打开邮件内的附件

Downloads

3

Readme

Coremail WPS Plugin

该插件用于辅助 Email 通过 WPS 本地打开邮件内的附件

1. 调试

  1. 安装依赖

    npm i --no-save
  2. 启动本地服务(具体根据需求调试)

    npm run test:et # 调试 et 加载项 (Excel)
    npm run test:wpp # 调试 wpp 加载项 (PPT)
    npm run test:wps # 调试 wps 加载项 (Word)
  3. 访问 http://127.0.0.1:3728 即可进行本地文件调试

2. 部署

plugins 目录部署在某可访问路径下,如 /home/coremail/web/webapp/cmcu_addon/wps_plugin 即可

3. 使用

  1. 安装依赖:

    npm i @coremail/wps-plugin --save
  2. 调用插件:

    const openFile = require('wps-plugin');
    const pluginUrl = 'http://xxx/coremail/cmcu_addon/wps_plugin/';
    
    // 网络文件
    openFile('http://xxx.xls', pluginUrl, 'et').catch(() => { /* when failed */ });
    openFile('http://xxx.ppt', pluginUrl, 'wpp').catch(() => { /* when failed */ });
    openFile('http://xxx.doc', pluginUrl, 'wps').catch(() => { /* when failed */ });
    
    // 本地文件
    openFile('C:/temp/xxx.xls', '', 'et').catch(() => { /* when failed */ });
    openFile('C:/temp/xxx.ppt', '', 'wpp').catch(() => { /* when failed */ });
    openFile('C:/temp/xxx.doc', '', 'wps').catch(() => { /* when failed */ });

4. TODO

  • [x] 插件采用 publish.html 模式 提供安装
  • [x] 把 lib/sdk.js 改造成 CommonJS style
  • [ ] 网络文件无法通过设置 Cookie Header 请求
  • [ ] 目前个人版没办法识别加载项是否已安装过,因此每次切换模式打开的时候会提示安装且点击取消仍能调起 WPS

5. 文档

  • API: https://open.wps.cn/docs/office
  • 问题排查: https://www.kdocs.cn/l/cCVZwo3LW