Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jswork/alo7-develop-assistant

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jswork/alo7-develop-assistant - npm Package Compare versions

Comparing version 1.0.87 to 1.0.88

6

dist/index.js

@@ -5,7 +5,7 @@ /**

* homepage: https://github.com/afeiship
* version: 1.0.87
* date: 2023-07-13T09:21:11.908Z
* version: 1.0.88
* date: 2023-12-08T03:17:39.989Z
* license: MIT
*/
!function(n){"function"==typeof define&&define.amd?define(n):n()}((function(){var n=/redmine.*\/issues\/(\d+)/,t={Bug:"fix",TechTask:"refactor",Task:"feat"},e={Bug:"bug",TechTask:"refactor",Task:"issue"},i={3:"Resolved",2:"Assigned"},a=GM_getResourceText("JQ_TOAST");GM_addStyle(a),gmsdk.addStyle('\n #git_msg{\n display: flex;\n align-items: center;\n justify-content:space-between;\n background: #f9f9f9;\n transition: all 0.3s;\n }\n\n #git_msg>.left{\n flex: 1;\n }\n\n #git_msg>.right{\n text-align: right;\n color: #999;\n font-size: 12px;\n }\n\n .git_action{\n display: inline-block;\n width: auto;\n min-width: 1em;\n margin-top: 3px;\n padding: 1px 8px;\n border-radius: 3px;\n color: #fff;\n font-size: .86em;\n font-weight: bold;\n text-align: center;\n text-transform: uppercase;\n }\n\n\n .git_action[data-git-action="feat"]{\n background-color: #584492;\n }\n\n .git_action[data-git-action="refactor"]{\n background-color: #f71692;\n }\n\n .git_action[data-git-action="fix"]{\n background-color: #e74c3c;\n }\n'),$(document).ready((function(){if(n.exec(location.href)){var a=$("#content h2").eq(0).text(),[s,o]=a.split(" #"),r=$("#content h3").eq(0).text(),c=""+(t[s]||"feat"),d=`${r} - (REDMINE-${o})`,l=$(".fixed-version .value").text();$("#content h2").eq(0).after(`\n <header id="git_msg" class="issue tracker-58 1-2 priority-4 priority-default details left">\n <div class="left">\n <span class="git_action" data-git-action="${c}">${c}</span>\n :\n <span class="git_msg">${d}</span>\n </div>\n <div class="right">\n <button id="mark-as-resolved" class="gm-btn gm-btn-primary is-large">\n <i class="icon icon-attachment"></i>\n 切换状态Resolved/Assigned\n </button>\n <button id="gitmsg" class="gm-btn gm-btn-positive is-large">\n <i class="icon icon-comment"></i>\n 复制: git message\n </button>\n <button id="gitflow" class="gm-btn gm-btn-negative is-large">\n <i class="icon icon-projects"></i>\n 复制: gitflow branch name\n </button>\n </div>\n </header>\n `),$("#mark-as-resolved").click(()=>{const n="Assigned"===$("#content .attributes .status .value").text()?3:2;$.toast({icon:"info",heading:"开始切换,请稍等...",position:"top-right",stack:!1,hideAfter:1e4}),fetch(`https://redmine.saybot.net/issues/${o}.json`,{method:"PUT",headers:{"x-redmine-api-key":"7d0d1e1e5b59da84cd4974395e764b0a36894318","content-type":"application/json"},body:JSON.stringify({issue:{status_id:n}})}).then(t=>{$.toast({icon:"success",heading:"已经标记为"+i[n],position:"top-right",stack:!1,hideAfter:1e3}),window.location.reload()})}),$("#gitmsg").click((function(){var n=`${c}: ${d}`,t=$(".fixed-version").text();if(t.includes(".")){var e=t.split(":")[1].toLowerCase();n=`${c}(${e}): ${d}`}gmsdk.setClipboard(n),$.toast({icon:"success",heading:"复制成功",position:"top-right",stack:!1,hideAfter:1e3,text:n})})),$("#gitflow").click((function(){var n=nx.kebabCase(l.replace(/[._()-]/g,"")),t=`${n?n+"/":""}redmine-${e[s]||"issue"}-${o}`;gmsdk.setClipboard(t),$.toast({icon:"info",heading:"复制成功",position:"top-right",stack:!1,hideAfter:1e3,text:t})}))}})),$(document).ready(()=>{location.href.includes("swagger-ui")&&(gmsdk.addStyle("\n #resources .circle-index{\n padding: 5px;\n background: #547e03;\n color: #fff;\n border-radius: 50px;\n }\n #resources .resource .heading > h2{\n font-size: 14px;\n }\n .operations li .heading .options li{\n display: flex;\n align-items: center;\n }\n .operations li .heading .options li a{\n margin-left: 10px;\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n }\n "),nx.waitToDisplay("#resources .resource .heading > h2",1e3,(function(){$("#resources .resource .heading > h2").each((n,t)=>{var e="0"+(n+1);$(t).prepend(`<i class="circle-index">${e.slice(-2)}</i>`),$(t).append('<button class="clipboard items">Copy</button>')}),$(".operations li .heading .options li").prepend('<button class="clipboard item">Copy</button>'),$(".clipboard.item").click(n=>{var t=$(n.target).parents(".heading").find(".path").text().trim(),e=$(n.target).parents(".heading").find(".http_method a").text().trim();gmsdk.setClipboard(`['${e.toLowerCase()}', '${t}']`)}),$(".clipboard.items").click(n=>{var t=$(n.target).parents(".heading").next(".endpoints").find(".operation > div.heading > h3 > span.path").text().split("\n").map(n=>n.trim()).filter(Boolean);gmsdk.setClipboard(JSON.stringify(t,null,2))})})))})}));
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t=/redmine.*\/issues\/(\d+)/,n={Bug:"fix",TechTask:"refactor",Task:"feat"},e={Bug:"bug",TechTask:"refactor",Task:"issue"},i={3:"Resolved",2:"Assigned"},s=GM_getResourceText("JQ_TOAST");GM_addStyle(s),gmsdk.addStyle('\n #git_msg{\n display: flex;\n align-items: center;\n justify-content:space-between;\n background: #f9f9f9;\n transition: all 0.3s;\n }\n\n #git_msg>.left{\n flex: 1;\n }\n\n #git_msg>.right{\n text-align: right;\n color: #999;\n font-size: 12px;\n }\n\n .git_action{\n display: inline-block;\n width: auto;\n min-width: 1em;\n margin-top: 3px;\n padding: 1px 8px;\n border-radius: 3px;\n color: #fff;\n font-size: .86em;\n font-weight: bold;\n text-align: center;\n text-transform: uppercase;\n }\n\n\n .git_action[data-git-action="feat"]{\n background-color: #584492;\n }\n\n .git_action[data-git-action="refactor"]{\n background-color: #f71692;\n }\n\n .git_action[data-git-action="fix"]{\n background-color: #e74c3c;\n }\n'),$(document).ready((function(){if(t.exec(location.href)){var s=$("#content h2").eq(0).text(),[a,o]=s.split(" #"),c=$("#content h3").eq(0).text(),r=""+(n[a]||"feat"),d=`${c} - (REDMINE-${o})`,l=$(".fixed-version .value").text();$("#content h2").eq(0).after(`\n <header id="git_msg" class="issue tracker-58 1-2 priority-4 priority-default details left">\n <div class="left">\n <span class="git_action" data-git-action="${r}">${r}</span>\n :\n <span class="git_msg">${d}</span>\n </div>\n <div class="right">\n <button id="mark-as-resolved" class="gm-btn gm-btn-primary is-large">\n <i class="icon icon-attachment"></i>\n 切换状态Resolved/Assigned\n </button>\n <button id="gitmsg" class="gm-btn gm-btn-positive is-large">\n <i class="icon icon-comment"></i>\n 复制: git message\n </button>\n <button id="gitflow" class="gm-btn gm-btn-negative is-large">\n <i class="icon icon-projects"></i>\n 复制: gitflow branch name\n </button>\n </div>\n </header>\n `),$("#mark-as-resolved").click(()=>{const t="Assigned"===$("#content .attributes .status .value").text()?3:2;$.toast({icon:"info",heading:"开始切换,请稍等...",position:"top-right",stack:!1,hideAfter:1e4}),fetch(`https://redmine.saybot.net/issues/${o}.json`,{method:"PUT",headers:{"x-redmine-api-key":"7d0d1e1e5b59da84cd4974395e764b0a36894318","content-type":"application/json"},body:JSON.stringify({issue:{status_id:t}})}).then(n=>{$.toast({icon:"success",heading:"已经标记为"+i[t],position:"top-right",stack:!1,hideAfter:1e3}),window.location.reload()})}),$("#gitmsg").click((function(){var t=`${r}: ${d}`,n=$(".fixed-version").text();if(n.includes(".")){var e=n.split(":")[1].toLowerCase();t=`${r}(${e}): ${d}`}gmsdk.setClipboard(t),$.toast({icon:"success",heading:"复制成功",position:"top-right",stack:!1,hideAfter:1e3,text:t})})),$("#gitflow").click((function(){var t=nx.kebabCase(l.replace(/[._()-]/g,"")),n=`${t?t+"/":""}redmine-${e[a]||"issue"}-${o}`;gmsdk.setClipboard(n),$.toast({icon:"info",heading:"复制成功",position:"top-right",stack:!1,hideAfter:1e3,text:n})}))}})),$(document).ready(()=>{location.href.includes("swagger-ui")&&(gmsdk.addStyle("\n #resources .circle-index{\n padding: 5px;\n background: #547e03;\n color: #fff;\n border-radius: 50px;\n }\n #resources .resource .heading > h2{\n font-size: 14px;\n }\n .operations li .heading .options li{\n display: flex;\n align-items: center;\n }\n .operations li .heading .options li a{\n margin-left: 10px;\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n }\n "),nx.waitToDisplay("#resources .resource .heading > h2",1e3,(function(){$("#resources .resource .heading > h2").each((t,n)=>{var e="0"+(t+1);$(n).prepend(`<i class="circle-index">${e.slice(-2)}</i>`),$(n).append('<button class="clipboard items">Copy</button>')}),$(".operations li .heading .options li").prepend('<button class="clipboard item">Copy</button>'),$(".clipboard.item").click(t=>{var n=$(t.target).parents(".heading").find(".path").text().trim(),e=$(t.target).parents(".heading").find(".http_method a").text().trim();gmsdk.setClipboard(`['${e.toLowerCase()}', '${n}']`)}),$(".clipboard.items").click(t=>{var n=$(t.target).parents(".heading").next(".endpoints").find(".operation > div.heading > h3 > span.path").text().split("\n").map(t=>t.trim()).filter(Boolean);gmsdk.setClipboard(JSON.stringify(n,null,2))})})))}),$(document).ready((function(){if(!document.URL.includes("download.sdclient.saybot.net"))return!1;const t=nx.declare({methods:{start:function(){this.fulltitle()},fulltitle(){const t=$("#list tr").slice(0,7);if(t.length<7)return!1;t.each((t,n)=>{const e=$(n).find("td a");if(t>1){$(n).css("background-color","#5bd46d");const t=e.get(0),i=$(t).attr("href"),s=i.includes(".md5"),a=$(t);if(a.text(i),s){const t=i.split(".").slice(-2,-1)[0];a.click(n=>{n.preventDefault(),gmsdk.setClipboard(t),$.toast({icon:"success",heading:"复制成功",position:"top-right",stack:!1,hideAfter:1e3})})}}})}}});nx.waitToDisplay("table#list",1e3,n=>{(new t).start()})}))}));
// ==UserScript==
// @name alo7-develop-assistant
// @namespace https://github.com/afeiship/alo7-develop-assistant
// @version 1.0.87
// @version 1.0.88
// @description Develop assistant for alo7.

@@ -19,3 +19,3 @@ // @author aric.zheng

// @require https://unpkg.com/@jswork/gm-sdk@1.0.26
// @require https://cdn.jsdelivr.net/npm/@jswork/alo7-develop-assistant@1.0.87
// @require https://cdn.jsdelivr.net/npm/@jswork/alo7-develop-assistant@1.0.88
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.min.js

@@ -22,0 +22,0 @@ // @resource JQ_TOAST https://cdnjs.cloudflare.com/ajax/libs/jquery-toast-plugin/1.3.2/jquery.toast.css

{
"name": "@jswork/alo7-develop-assistant",
"version": "1.0.87",
"version": "1.0.88",
"description": "Develop assistant for alo7.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/afeiship",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc