{"id":38589427,"url":"https://github.com/greedying/tctip","last_synced_at":"2026-01-17T08:22:54.198Z","repository":{"id":27883328,"uuid":"31374659","full_name":"greedying/tctip","owner":"greedying","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-07T04:12:54.000Z","size":3759,"stargazers_count":344,"open_issues_count":9,"forks_count":160,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-08-16T15:01:03.939Z","etag":null,"topics":["javascript","reward","tctip","tips"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/greedying.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-26T15:50:57.000Z","updated_at":"2025-06-16T13:55:18.000Z","dependencies_parsed_at":"2023-01-14T07:40:16.858Z","dependency_job_id":null,"html_url":"https://github.com/greedying/tctip","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/greedying/tctip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greedying%2Ftctip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greedying%2Ftctip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greedying%2Ftctip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greedying%2Ftctip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/greedying","download_url":"https://codeload.github.com/greedying/tctip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/greedying%2Ftctip/sbom","scorecard":{"id":444433,"data":{"date":"2025-08-11","repo":{"name":"github.com/greedying/tctip","commit":"2c44d03219f3f3979cc9df8a265de7229e91a1f4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"83 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-pp57-mqmh-44h7","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-wrvr-8mpx-r7pp","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T06:20:38.641Z","repository_id":27883328,"created_at":"2025-08-19T06:20:38.641Z","updated_at":"2025-08-19T06:20:38.641Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","reward","tctip","tips"],"created_at":"2026-01-17T08:22:54.095Z","updated_at":"2026-01-17T08:22:54.173Z","avatar_url":"https://github.com/greedying.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tctip打赏插件\n\n## tctip是什么\n\ntctip是一个js插件，作用是在web网页右侧生成一个打赏浮动窗  \n可下载后到demo目录查看效果\n\n## tctip当前版本\n\n+ 当前大版本为 `1.x.x`，**此版本为大版本变动，不兼容老版，请使用当前版本**\n+ 当前小版本请查看`package`中的版本号，尽量使用最新版本\n+ 历史版本为`0.1`，`已不再维护，不再维护`，如有需求,[点此切换](https://github.com/greedying/tctip/tree/v0.1)\n\n## 当前版本特点\n\n+ 界面暂时维持不变\n+ 参数配置和使用方式不兼容老版本\n+ 只需引入一个js文件，不需要额外引入js、css等\n+ 同时支持`umd`、`webpack`等方法使用\n\n## demo\n+ 您可以到`demo`目录查看简单demo\n+ 在线demo，则[点此查看](http://greedying.com/tctip/)\n\n## 使用方法\n\n### 页面使用（多数人的使用方式)\n\n#### 第一步，引入js\n   \n   一般引入min版本，即引入`tctip-版本号.min.js`文件  \n   在当前项目中即`dist/tctip-1.0.4.min.js`\n\n+ 您可以把此js文件下载到您的服务器合适目录进行引用\n+ 您也可以直接使用我提供的静态链接`http(s)://static.tctip.com/tctip-1.0.4.min.js`\n\n```javascript\n  \u003cscript src=\"//static.tctip.com/tctip-1.0.4.min.js\"\u003e\u003c/script\u003e\n\n```\n\n#### 第二步，新建tctip变量，同时传入配置参数，然后运行init函数\n\n```javascript\n  new tctip({\n    top: '20%',\n    button: {\n      id: 9,\n      type: 'dashang',\n    },\n    list: [\n      {\n        type: 'alipay',\n        qrImg: './images/alipay.jpg'\n      }, {\n        type: 'wechat',\n        qrImg: './images/wechat.jpg'\n      }, {\n        type: 'bitcoin',\n        qrContent: '1PhQySHF1ZuoRwoZ8G4CDLEtE6fAnD3GJP'\n      }\n    ]\n  }).init()\n```\n\n刷新页面，即可看到效果\n\n\n### webpack 方式使用 \n\n#### 第一步，安装\n\n```javascript\n  npm install tctip --save\n```\n\n#### 第二步，引入包\n\n\n```javascript\n  import tctip from 'tctip'\n```\n#### 第三步，传参使用，类似web方式\n\n```javascript\n  new tctip(config).init()\n```\n\n\n### 参数说明\n\n* top\n  * `类型`: String\n  * `默认值`: `10%`\n  * `含义`: 插件顶端距离页面最上面的距离\n  * `备注`: 格式如 `100px`或者`10%`\n\n* button\n  * `类型`: Object，包含`id`和`type`两个子数组\n  * `id`: \n    * `类型`: Number\n    * `默认值`: `1`\n    * `含义`: 代表图片颜色\n    * `备注`: 取值范围为1-9\n  * `type`: \n    * `类型`: String\n    * `默认值`: `dashang`\n    * `含义`: 按钮上的汉字，有`打赏`和`赞助`两种\n    * `备注`: 只能取`dashang`或者`zanzhu`\n\n* list\n  * `类型`: Array\n  * `默认值`: []\n  * `含义`: 重点配置，右侧打赏显示，不能为空\n  * `备注`: 一个数组，最多传入五个元素，每个元素又有如下几项陪配置\n  * `type`: \n    * `类型`: String\n    * `默认值`: 无\n    * `含义`: 打赏类型\n    * `备注`: 系统自带四种默认type，`alipay`,`wechat`,`bitcon`,`tenpay`，如果不是这四种，可以随意写\n  * `qrImg`: \n    * `类型`: String\n    * `默认值`: 无\n    * `含义`: 二维码图片地址\n    * `备注`: 尽量裁剪图片周边的空白。`重要但是非必传`\n  * `qrContent`: \n    * `类型`: String\n    * `默认值`: 无\n    * `含义`: 二维码内容\n    * `备注`: 和`qrImg`二者必须传一个。如果传入本参数，插件自动生成二维码\n  * `icon`: \n    * `类型`: String\n    * `默认值`: 无\n    * `含义`: 图标，列入支付宝图标\n    * `备注`: 当type为系统默认四种之一时，本参数可省略\n  * `name`: \n    * `类型`: String\n    * `默认值`: 无\n    * `含义`: 支付名称，例如支付宝、微信等\n    * `备注`: 当type为系统默认四种之一时，本参数可省略\n  * `desc`: \n    * `类型`: String\n    * `默认值`: 无\n    * `含义`: 二维码下面的一句短语，类似`大爷行行好`之类的\n    * `备注`: 当type为系统默认四种之一时，本参数可省略\n\n* stat\n  * `类型`: Boolean\n  * `默认值`: true\n  * `含义`: 是否上报，用于作者统计使用者\n  * `备注`: 本参数只是方便作者统计插件使用情况，可视情况关闭\n\n## 技术栈\n\n- webpack\n- qrcode\n- es6\n- 其他技术\n\n## 感谢与参考\n\n+ [qrcode-generator](https://github.com/kazuhikoarase/qrcode-generator)\n+ [webpack-library-starter](https://github.com/krasimir/webpack-library-starter)\n\n## 案例收集\n您可以[点此填写](https://github.com/greedying/tctip/issues/8)，我会定期整理  \n您也可以直接clone项目，提交PR  \n下面是部分使用的网站，排序方式为随机，筛选标准为网站和文章质量  \n`本名单随时更改，可能添加，也可能移除`\n\n### 独立网站\n\n+ [我的博客](http://greedying.com/)\n+ http://mc.xlver.com/\n+ http://www.codedq.net/\n+ http://www.openauth.me\n+ http://www.orchardcn.org/\n+ http://liujians.me/\n+ http://blog.lishewen.com/\n+ http://blog.fundzt.com/\n+ http://cio.anasit.com/\n+ http://cnxc110.com/\n+ http://www.btcfei.com/\n+ http://www.foolrabbit.cn/\n+ https://www.dogebug.cn/\n\n\n### cnblogs 博客\n\n+ http://best.cnblogs.com/\n+ http://studyzy.cnblogs.com/\n+ http://fzrain.cnblogs.com/\n+ http://artech.cnblogs.com/\n+ http://neverc.cnblogs.com\n+ http://tuyile006.cnblogs.com/\n+ http://farb.cnblogs.com/\n+ http://edisonchou.cnblogs.com/\n+ http://tunwa.cnblogs.com/\n+ http://liuhaorain.cnblogs.com/\n+ http://wangyulong.cnblogs.com/\n+ http://hafiz.cnblogs.com/\n+ http://www.cnblogs.com/LittleHann/\n+ https://www.cnblogs.com/wgb1234/\n+ https://www.cnblogs.com/ice-coder/\n\n\n### 网友修改后使用版本(PS，欢迎PR)\n+ http://yshblog.com/\n+ http://www.wanmeiyunjiao.com/ \n\n\n## qq群\n+ qq群号：`188087193`\n+ 验证消息: `github`\n\n## 改进与完善\n欢迎提issue,欢迎PR\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreedying%2Ftctip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreedying%2Ftctip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreedying%2Ftctip/lists"}