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 🙏

© 2025 – Pkg Stats / Ryan Hefner

power-contract

v0.0.1

Published

一句話講完 Power Contract :

Downloads

6

Readme

Power Contract | 我的 WordPress 外掛

一句話講完 Power Contract :

WordPress 線上簽合約 & 審批 外掛,您可以創建多個合約模板,帶入多種欄位,把網址丟給您的客人,讓他們線上簽合約。

使用流程

1. 創建合約模板

image

  • 下方有可以使用的 shortcode ,點擊複製貼上
  • 右方可以上傳公司合約章,不同合約模板可以搭配不同印章,您有多間公司也OK

❓ 怎麼調整版面 & 公司章位置

  • Power Contract 可以接入各編輯器,像是 傳統編輯器區塊編輯器Elementor 等,你可以用你熟悉的工具調整版面
  • Shortcode 都可以設置 classid,所以如果你更習慣寫 css, javascript,也可以自行調整
  • 支持任意 input name 名稱,在未衝突的情況都會存入 post_meta
  • 如果 input 的 shortcode 手動填入 value ,則會變成 readonly,且不能編輯

❓ 怎麼調整合約模板版面

你可以複製 wp-content/plugins/power-contract/inc/templates/single-contract_template.phpwp-content/themes/{您的佈景主題或子主題}/single-contract_template.php ,並且修改

wp-content/plugins/power-contract/inc/templates/single-contract_template.php 是合約模板的最小可運作模板,建議與專業人士或作者討論如何修改

2. 將合約模板網址傳給您的客戶查閱

image

此時欄位是不能編輯的

3. 客戶查閱後,開始簽約

點擊繼續,欄位都會變成黃底高亮,且可以編輯

image

image

如果有未填欄位或者未簽名,會有提示 image

4. 客戶送出

image

預設是沒有按鈕的,客戶簽約完只能關閉視窗

❓ 怎麼調整彈窗訊息以及按鈕

後台設定可以調整訊息以及按鈕文字連結

image

5. 管理員審閱合約以及核准合約

image

顯示

  1. 合約欄位資料
  2. 用戶簽名
  3. 用戶簽約當下的 IP 地址
  4. 用戶簽約當下的 合約截圖

可以批量核准或批量待審核

image

Hooks

簽約後 action hook

透過此 hook 可以自由控制簽約後的行為

do_action( 'power_contract_contract_created', $new_contract_id, $args )

調整 input shortcode 欄位參數

如果你想要動態調整 input shortcode 欄位參數,可以使用此 filter hook 例如要自動帶入參數的話,此 hook 很有用

apply_filters('power_contract_input_args', $args)

⛏️ 多語系工作仍在進行中

image