From b8cb255667e2564e71428184d7316ee2fec46007 Mon Sep 17 00:00:00 2001 From: Aashish Saini Date: Wed, 25 Oct 2023 21:21:34 +0530 Subject: [PATCH 1/4] Move dependencies from node modules to assets --- app/assets/javascripts/abraham/index.js | 4 +- package.json | 5 +- test/dummy/config/initializers/assets.rb | 2 +- vendor/assets/javascripts/js.cookie.js | 165 ++++++++++++++++++ vendor/assets/javascripts/shepherd.min.js | 4 + vendor/assets/javascripts/smoothscroll.min.js | 1 + vendor/assets/javascripts/tether.min.js | 4 + 7 files changed, 178 insertions(+), 7 deletions(-) create mode 100644 vendor/assets/javascripts/js.cookie.js create mode 100644 vendor/assets/javascripts/shepherd.min.js create mode 100644 vendor/assets/javascripts/smoothscroll.min.js create mode 100644 vendor/assets/javascripts/tether.min.js diff --git a/app/assets/javascripts/abraham/index.js b/app/assets/javascripts/abraham/index.js index 0a539eb..f0a94c6 100644 --- a/app/assets/javascripts/abraham/index.js +++ b/app/assets/javascripts/abraham/index.js @@ -1,5 +1,5 @@ -//= require js-cookie/src/js.cookie -//= require shepherd.js/dist/js/shepherd +//= require js.cookie +//= require shepherd.min var Abraham = new Object(); diff --git a/package.json b/package.json index 7b3f2b4..16b57d9 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,5 @@ { "name": "abraham", "private": true, - "dependencies": { - "js-cookie": "^2.2.0", - "shepherd.js": "^6.0.0-beta" - } + "dependencies": {} } diff --git a/test/dummy/config/initializers/assets.rb b/test/dummy/config/initializers/assets.rb index 9314fa9..ab207a7 100644 --- a/test/dummy/config/initializers/assets.rb +++ b/test/dummy/config/initializers/assets.rb @@ -9,7 +9,7 @@ # Rails.application.config.assets.paths << Emoji.images_path # Add Yarn node_modules folder to the asset load path. -Rails.application.config.assets.paths << Rails.root.join('../../node_modules') +Rails.application.config.assets.paths << Rails.root.join('vendor', 'assets', 'javascripts') # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. diff --git a/vendor/assets/javascripts/js.cookie.js b/vendor/assets/javascripts/js.cookie.js new file mode 100644 index 0000000..9a0945e --- /dev/null +++ b/vendor/assets/javascripts/js.cookie.js @@ -0,0 +1,165 @@ +/*! + * JavaScript Cookie v2.2.0 + * https://github.com/js-cookie/js-cookie + * + * Copyright 2006, 2015 Klaus Hartl & Fagner Brack + * Released under the MIT license + */ +;(function (factory) { + var registeredInModuleLoader = false; + if (typeof define === 'function' && define.amd) { + define(factory); + registeredInModuleLoader = true; + } + if (typeof exports === 'object') { + module.exports = factory(); + registeredInModuleLoader = true; + } + if (!registeredInModuleLoader) { + var OldCookies = window.Cookies; + var api = window.Cookies = factory(); + api.noConflict = function () { + window.Cookies = OldCookies; + return api; + }; + } +}(function () { + function extend () { + var i = 0; + var result = {}; + for (; i < arguments.length; i++) { + var attributes = arguments[ i ]; + for (var key in attributes) { + result[key] = attributes[key]; + } + } + return result; + } + + function init (converter) { + function api (key, value, attributes) { + var result; + if (typeof document === 'undefined') { + return; + } + + // Write + + if (arguments.length > 1) { + attributes = extend({ + path: '/' + }, api.defaults, attributes); + + if (typeof attributes.expires === 'number') { + var expires = new Date(); + expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5); + attributes.expires = expires; + } + + // We're using "expires" because "max-age" is not supported by IE + attributes.expires = attributes.expires ? attributes.expires.toUTCString() : ''; + + try { + result = JSON.stringify(value); + if (/^[\{\[]/.test(result)) { + value = result; + } + } catch (e) {} + + if (!converter.write) { + value = encodeURIComponent(String(value)) + .replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent); + } else { + value = converter.write(value, key); + } + + key = encodeURIComponent(String(key)); + key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent); + key = key.replace(/[\(\)]/g, escape); + + var stringifiedAttributes = ''; + + for (var attributeName in attributes) { + if (!attributes[attributeName]) { + continue; + } + stringifiedAttributes += '; ' + attributeName; + if (attributes[attributeName] === true) { + continue; + } + stringifiedAttributes += '=' + attributes[attributeName]; + } + return (document.cookie = key + '=' + value + stringifiedAttributes); + } + + // Read + + if (!key) { + result = {}; + } + + // To prevent the for loop in the first place assign an empty array + // in case there are no cookies at all. Also prevents odd result when + // calling "get()" + var cookies = document.cookie ? document.cookie.split('; ') : []; + var rdecode = /(%[0-9A-Z]{2})+/g; + var i = 0; + + for (; i < cookies.length; i++) { + var parts = cookies[i].split('='); + var cookie = parts.slice(1).join('='); + + if (!this.json && cookie.charAt(0) === '"') { + cookie = cookie.slice(1, -1); + } + + try { + var name = parts[0].replace(rdecode, decodeURIComponent); + cookie = converter.read ? + converter.read(cookie, name) : converter(cookie, name) || + cookie.replace(rdecode, decodeURIComponent); + + if (this.json) { + try { + cookie = JSON.parse(cookie); + } catch (e) {} + } + + if (key === name) { + result = cookie; + break; + } + + if (!key) { + result[name] = cookie; + } + } catch (e) {} + } + + return result; + } + + api.set = api; + api.get = function (key) { + return api.call(api, key); + }; + api.getJSON = function () { + return api.apply({ + json: true + }, [].slice.call(arguments)); + }; + api.defaults = {}; + + api.remove = function (key, attributes) { + api(key, '', extend(attributes, { + expires: -1 + })); + }; + + api.withConverter = init; + + return api; + } + + return init(function () {}); +})); diff --git a/vendor/assets/javascripts/shepherd.min.js b/vendor/assets/javascripts/shepherd.min.js new file mode 100644 index 0000000..5d7c3df --- /dev/null +++ b/vendor/assets/javascripts/shepherd.min.js @@ -0,0 +1,4 @@ +/*! shepherd.js 6.0.0 */ + +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Shepherd=e()}(this,(function(){"use strict";function t(t,e){for(var n=0;n1?n-1:0),i=1;i=l.top&&["left","right"].forEach((function(t){var e=l[t];e!==o&&e!==c||f.push(t)})),o<=l.right&&c>=l.left&&["top","bottom"].forEach((function(t){var e=l[t];e!==n&&e!==a||f.push(t)}));var h=this.options,p=h.classes,u=h.classPrefix;return this.all.push(x("abutted",p,u)),["left","top","right","bottom"].forEach((function(t){e.all.push(x("abutted",p,u)+"-"+t)})),f.length&&this.add.push(x("abutted",p,u)),f.forEach((function(t){e.add.push(x("abutted",p,u)+"-"+t)})),$((function(){!1!==e.options.addTargetClasses&&O(e.target,e.add,e.all),O(e.element,e.add,e.all)})),!0}},B=["left","top","right","bottom"];var Y={position:function(t){var e=this,n=t.top,o=t.left,i=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",(function(){return F(e.element)})),s=r.height,l=r.width;if(0===l&&0===s&&!y(this.lastSize)){var a=this.lastSize;l=a.width,s=a.height}var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),f=c.height,h=c.width,p=this.options,u=p.classes,d=p.classPrefix,g=function(t,e,n){var o=[x("pinned",t,e),x("out-of-bounds",t,e)];return n.forEach((function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&o.push(e),n&&o.push(n)})),o.forEach((function(t){["left","top","right","bottom"].forEach((function(e){o.push(t+"-"+e)}))})),o}(u,d,this.options.constraints),m=[],v=C({},i),w=C({},this.attachment);return this.options.constraints.forEach((function(t){var r,a,c=t.to,p=t.attachment,g=t.pin;if(y(p)&&(p=""),p.indexOf(" ")>=0){var E=p.split(" ");a=E[0],r=E[1]}else r=a=p;var O=function(t,e){if("scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),!y(e.nodeType)){var n=e,o=F(e),i=o,r=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],n.ownerDocument!==document){var s=n.ownerDocument.defaultView;e[0]+=s.pageXOffset,e[1]+=s.pageYOffset,e[2]+=s.pageXOffset,e[3]+=s.pageYOffset}B.forEach((function(t,n){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?e[n]+=parseFloat(r["border"+t+"Width"]):e[n]-=parseFloat(r["border"+t+"Width"])}))}return e}(e,c);"target"!==a&&"both"!==a||(nO[3]&&"bottom"===v.top&&(n-=f,v.top="top")),"together"===a&&(n=function(t,e,n,o,i,r){return"top"===t.top&&("bottom"===e.top&&rn[3]&&r-(o-i)>=n[1]&&(r-=o-i,t.top="bottom",e.top="bottom")),"bottom"===t.top&&("top"===e.top&&r+o>n[3]?(r-=i,t.top="top",r-=o,e.top="bottom"):"bottom"===e.top&&rn[3]&&"top"===e.top?(r-=o,e.top="bottom"):rO[2]&&"right"===v.left&&(o-=h,v.left="left")),"together"===r&&(o=function(t,e,n,o,i,r){return rn[2]&&"right"===t.left?"left"===e.left?(r-=i,t.left="left",r-=o,e.left="right"):"right"===e.left&&(r-=i,t.left="left",r+=o,e.left="left"):"center"===t.left&&(r+o>n[2]&&"left"===e.left?(r-=o,e.left="right"):rO[3]&&"top"===w.top&&(n-=s,w.top="bottom")),"element"!==r&&"both"!==r||(oO[2]&&("left"===w.left?(o-=l,w.left="right"):"center"===w.left&&(o-=l/2,w.left="right"))),b(g)?g=g.split(",").map((function(t){return t.trim()})):!0===g&&(g=["top","left","right","bottom"]);var I,$=[],_=[];(o=function(t,e,n,o,i,r){return t=0?(t=e[0],i.push("left")):r.push("left")),t+n>e[2]&&(o.indexOf("right")>=0?(t=e[2]-n,i.push("right")):r.push("right")),t}(o,O,l,g=g||[],$,_),n=function(t,e,n,o,i,r){return t=0?(t=e[1],i.push("top")):r.push("top")),t+n>e[3]&&(o.indexOf("bottom")>=0?(t=e[3]-n,i.push("bottom")):r.push("bottom")),t}(n,O,s,g,$,_),$.length)&&(I=y(e.options.pinnedClass)?x("pinned",u,d):e.options.pinnedClass,m.push(I),$.forEach((function(t){m.push(I+"-"+t)})));!function(t,e,n,o,i){var r;t.length&&(r=y(i)?x("out-of-bounds",n,o):i,e.push(r),t.forEach((function(t){e.push(r+"-"+t)})))}(_,m,u,d,e.options.outOfBoundsClass),($.indexOf("left")>=0||$.indexOf("right")>=0)&&(w.left=v.left=!1),($.indexOf("top")>=0||$.indexOf("bottom")>=0)&&(w.top=v.top=!1),v.top===i.top&&v.left===i.left&&w.top===e.attachment.top&&w.left===e.attachment.left||(e.updateAttachClasses(w,v),e.trigger("update",{attachment:w,targetAttachment:v}))})),$((function(){!1!==e.options.addTargetClasses&&O(e.target,m,g),O(e.element,m,g)})),{top:n,left:o}}},j={position:function(t){var e=t.top,n=t.left;if(this.options.shift){var o,i,r=this.options.shift;if("function"==typeof r&&(r=r.call(this,{top:e,left:n})),b(r)){(r=r.split(" "))[1]=r[1]||r[0];var s=r;o=s[0],i=s[1],o=parseFloat(o,10),i=parseFloat(i,10)}else{var l=[r.top,r.left];o=l[0],i=l[1]}return{top:e+=o,left:n+=i}}}},W=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n,o){return void 0===o&&(o=!1),y(this.bindings)&&(this.bindings={}),y(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:o}),this},e.once=function(t,e,n){return this.on(t,e,n,!0)},e.off=function(t,e){var n=this;return y(this.bindings)||y(this.bindings[t])?this:(y(e)?delete this.bindings[t]:this.bindings[t].forEach((function(o,i){o.handler===e&&n.bindings[t].splice(i,1)})),this)},e.trigger=function(t){for(var e=this,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i16)return G=Math.min(G-16,250),void(J=setTimeout(t,250));!y(U)&&ot()-U<10||(null!=J&&(clearTimeout(J),J=null),U=ot(),nt(),G=ot()-U)},y(window)||y(window.addEventListener)||["resize","scroll","touchmove"].forEach((function(t){window.addEventListener(t,Q)}));var it=function(t){var e,n;function o(e){var n;return(n=t.call(this)||this).position=n.position.bind(v(n)),et.push(v(n)),n.history=[],n.setOptions(e,!1),K.modules.forEach((function(t){y(t.initialize)||t.initialize.call(v(n))})),n.position(),n}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=o.prototype;return i.setOptions=function(t,e){var n=this;void 0===e&&(e=!0);this.options=C({offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"},t);var o=this.options,i=o.element,r=o.target,s=o.targetModifier;if(this.element=i,this.target=r,this.targetModifier=s,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(t){if(y(n[t]))throw new Error("Tether Error: Both element and target must be defined");y(n[t].jquery)?b(n[t])&&(n[t]=document.querySelector(n[t])):n[t]=n[t][0]})),this._addClasses(),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=q(this.options.offset),this.targetOffset=q(this.options.targetOffset),y(this.scrollParents)||this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=function(t){var e=(getComputedStyle(t)||{}).position,n=[];if("fixed"===e)return[t];for(var o=t;(o=o.parentNode)&&o&&1===o.nodeType;){var i=void 0;try{i=getComputedStyle(o)}catch(t){}if(y(i)||null===i)return n.push(o),n;var r=i,s=r.overflow,l=r.overflowX,a=r.overflowY;/(auto|scroll|overlay)/.test(s+a+l)&&("absolute"!==e||["relative","absolute","fixed"].indexOf(i.position)>=0)&&n.push(o)}return n.push(t.ownerDocument.body),t.ownerDocument!==document&&n.push(t.ownerDocument.defaultView),n}(this.target),!1!==this.options.enabled&&this.enable(e)},i.getTargetBounds=function(){return y(this.targetModifier)?F(this.target):"visible"===this.targetModifier?function(t){if(t===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var e=F(t),n={height:e.height,width:e.width,top:e.top,left:e.left};return n.height=Math.min(n.height,e.height-(pageYOffset-e.top)),n.height=Math.min(n.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),n.height=Math.min(innerHeight,n.height),n.height-=2,n.width=Math.min(n.width,e.width-(pageXOffset-e.left)),n.width=Math.min(n.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),n.width=Math.min(innerWidth,n.width),n.width-=2,n.topt.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||!o)&&(r=15);var s=e.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,l={width:15,height:.975*s*(s/t.scrollHeight),left:e.left+e.width-parseFloat(i.borderLeftWidth)-15},a=0;s<408&&o&&(a=-11e-5*Math.pow(s,2)-.00727*s+22.58),o||(l.height=Math.max(l.height,24));var c=n/(t.scrollHeight-s);return l.top=c*(s-l.height-a)+e.top+parseFloat(i.borderTopWidth),o&&(l.height=Math.max(l.height,24)),l}(this.target):void 0},i.clearCache=function(){this._cache={}},i.cache=function(t,e){return y(this._cache)&&(this._cache={}),y(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},i.enable=function(t){var e=this;void 0===t&&(t=!0);var n=this.options,o=n.classes,i=n.classPrefix;!1!==this.options.addTargetClasses&&w(this.target,x("enabled",o,i)),w(this.element,x("enabled",o,i)),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()},i.disable=function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;E(this.target,x("enabled",n,o)),E(this.element,x("enabled",n,o)),this.enabled=!1,y(this.scrollParents)||this.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.position)}))},i.destroy=function(){var t=this;this.disable(),this._removeClasses(),et.forEach((function(e,n){e===t&&et.splice(n,1)})),0===et.length&&(L&&document.body.removeChild(L),L=null)},i.updateAttachClasses=function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var o=this.options,i=o.classes,r=o.classPrefix;!y(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),y(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(x("element-attached",i,r)+"-"+t.top),t.left&&this.add.push(x("element-attached",i,r)+"-"+t.left),e.top&&this.add.push(x("target-attached",i,r)+"-"+e.top),e.left&&this.add.push(x("target-attached",i,r)+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach((function(t){n.all.push(x("element-attached",i,r)+"-"+t),n.all.push(x("target-attached",i,r)+"-"+t)})),$((function(){y(n._addAttachClasses)||(O(n.element,n._addAttachClasses,n.all),!1!==n.options.addTargetClasses&&O(n.target,n._addAttachClasses,n.all),delete n._addAttachClasses)}))},i.position=function(t){var e=this;if(void 0===t&&(t=!0),this.enabled){this.clearCache();var n=function(t,e){var n=t.left,o=t.top;return"auto"===n&&(n=X[e.left]),"auto"===o&&(o=D[e.top]),{left:n,top:o}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var o=this.cache("element-bounds",(function(){return F(e.element)})),i=o.width,r=o.height;if(0!==i||0!==r||y(this.lastSize))this.lastSize={width:i,height:r};else{var s=this.lastSize;i=s.width,r=s.height}var l=this.cache("target-bounds",(function(){return e.getTargetBounds()})),a=l,c=V(R(this.attachment),{width:i,height:r}),f=V(R(n),a),h=V(this.offset,{width:i,height:r}),p=V(this.targetOffset,a);c=N(c,h),f=N(f,p);for(var u=l.left+f.left-c.left,d=l.top+f.top-c.top,g=0;gw.documentElement.clientHeight&&(v=this.cache("scrollbar-size",P),b.viewport.bottom-=v.height),x.innerWidth>w.documentElement.clientWidth&&(v=this.cache("scrollbar-size",P),b.viewport.right-=v.width),-1!==["","static"].indexOf(w.body.style.position)&&-1!==["","static"].indexOf(w.body.parentElement.style.position)||(b.page.bottom=w.body.scrollHeight-d-r,b.page.right=w.body.scrollWidth-u-i),!y(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&y(this.targetModifier)){var E=this.cache("target-offsetparent",(function(){return Z(e.target)})),O=this.cache("target-offsetparent-bounds",(function(){return F(E)})),I=getComputedStyle(E),$=O,T={};if(["Top","Left","Bottom","Right"].forEach((function(t){T[t.toLowerCase()]=parseFloat(I["border"+t+"Width"])})),O.right=w.body.scrollWidth-O.left-$.width+T.right,O.bottom=w.body.scrollHeight-O.top-$.height+T.bottom,b.page.top>=O.top+T.top&&b.page.bottom>=O.bottom&&b.page.left>=O.left+T.left&&b.page.right>=O.right){var C=E.scrollLeft,S=E.scrollTop;b.offset={top:b.page.top-O.top+S-T.top,left:b.page.left-O.left+C-T.left}}}return this.move(b),this.history.unshift(b),this.history.length>3&&this.history.pop(),t&&_(),!0}},i.move=function(t){var e=this;if(!y(this.element.parentNode)){var n,o,i,r={};for(var s in t)for(var l in r[s]={},t[s]){for(var a=!1,c=0;c=o&&o>=n-i))){a=!0;break}}a||(r[s][l]=!0)}var h={top:"",left:"",right:"",bottom:""},p=function(t,n){var o,i;!1!==(!y(e.options.optimizations)?e.options.optimizations.gpu:null)?(t.top?(h.top=0,o=n.top):(h.bottom=0,o=-n.bottom),t.left?(h.left=0,i=n.left):(h.right=0,i=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(i=Math.round(i*devicePixelRatio)/devicePixelRatio,o=Math.round(o*devicePixelRatio)/devicePixelRatio),h[tt]="translateX("+i+"px) translateY("+o+"px)","msTransform"!==tt&&(h[tt]+=" translateZ(0)")):(t.top?h.top=n.top+"px":h.bottom=n.bottom+"px",t.left?h.left=n.left+"px":h.right=n.right+"px")},u=!0;!y(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(u=!1);var d,g,m=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right))h.position="absolute",p(r.page,t.page);else if(u&&(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right))h.position="fixed",p(r.viewport,t.viewport);else if(!y(r.offset)&&r.offset.top&&r.offset.left){h.position="absolute";var v=this.cache("target-offsetparent",(function(){return Z(e.target)}));Z(this.element)!==v&&$((function(){e.element.parentNode.removeChild(e.element),v.appendChild(e.element)})),p(r.offset,t.offset),m=!0}else h.position="absolute",p({top:!0,left:!0},t.page);if(!m)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var b=!0,w=this.element.parentNode;w&&1===w.nodeType&&"BODY"!==w.tagName&&(g=void 0,((g=(d=w).ownerDocument).fullscreenElement||g.webkitFullscreenElement||g.mozFullScreenElement||g.msFullscreenElement)!==d);){if("static"!==getComputedStyle(w).position){b=!1;break}w=w.parentNode}b||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var x={},E=!1;for(var O in h){var I=h[O];this.element.style[O]!==I&&(E=!0,x[O]=I)}E&&$((function(){C(e.element.style,x),e.trigger("repositioned")}))}},i._addClasses=function(){var t=this.options,e=t.classes,n=t.classPrefix;w(this.element,x("element",e,n)),!1!==this.options.addTargetClasses&&w(this.target,x("target",e,n))},i._removeClasses=function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;E(this.element,x("element",n,o)),!1!==this.options.addTargetClasses&&E(this.target,x("target",n,o)),this.all.forEach((function(e){t.element.classList.remove(e),t.target.classList.remove(e)}))},o}(W);it.modules=[],K.position=nt;var rt=C(it,K);rt.modules.push({initialize:function(){var t=this,e=this.options,n=e.classes,o=e.classPrefix;this.markers={},["target","element"].forEach((function(e){var i=document.createElement("div");i.className=x(e+"-marker",n,o);var r=document.createElement("div");r.className=x("marker-dot",n,o),i.appendChild(r),t[e].appendChild(i),t.markers[e]={dot:r,el:i}}))},position:function(t){var e={element:t.manualOffset,target:t.manualTargetOffset};for(var n in e){var o=e[n];for(var i in o){var r=o[i];(!b(r)||-1===r.indexOf("%")&&-1===r.indexOf("px"))&&(r+="px"),this.markers[n].dot.style[i]!==r&&(this.markers[n].dot.style[i]=r)}}return!0}});var st,lt={bottom:"top center","bottom center":"top center","bottom left":"top right","bottom right":"top left",center:"middle center",left:"middle right",middle:"middle center","middle center":"middle center","middle left":"middle right","middle right":"middle left",right:"middle left",top:"bottom center","top center":"bottom center","top left":"bottom right","top right":"bottom left"};function at(t){return d(t)&&""!==t?"-"!==t.charAt(t.length-1)?t+"-":t:""}function ct(t){var e=t.options.attachTo||{},n=Object.assign({},e);if(d(e.element)){try{n.element=document.querySelector(e.element)}catch(t){}n.element||console.error("The element for this Shepherd step was not found "+e.element)}return n}function ft(t){t.tooltip&&t.tooltip.destroy();var e=ct(t),o=function(t,e){var o={classPrefix:"shepherd",constraints:[{to:"scrollParent",attachment:"together",pin:["left","right","top"]},{to:"window",attachment:"together"}]},i=document.body;t.element&&t.on?(o.attachment=lt[t.on]||lt.right,i=t.element):(o.attachment="middle center",o.targetModifier="visible");o.element=e.el,o.target=i,e.options.tetherOptions&&(e.options.tetherOptions.constraints&&(o.constraints=e.options.tetherOptions.constraints),o.classes=n({},o.classes,{},e.options.tetherOptions.classes),o.optimizations=n({},o.optimizations,{},e.options.tetherOptions.optimizations),o=n({},o,{},e.options.tetherOptions));return o}(e,t);t.tooltip=new rt(o),t.target=e.element}function ht(){var t=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}function pt(){}function ut(t,e){for(var n in e)t[n]=e[n];return t}function dt(t){return t()}function gt(){return Object.create(null)}function mt(t){t.forEach(dt)}function vt(t){return"function"==typeof t}function bt(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function yt(t,e){t.appendChild(e)}function wt(t,e,n){t.insertBefore(e,n||null)}function xt(t){t.parentNode.removeChild(t)}function Et(t){return document.createElement(t)}function Ot(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function It(t){return document.createTextNode(t)}function $t(){return It(" ")}function _t(t,e,n,o){return t.addEventListener(e,n,o),function(){return t.removeEventListener(e,n,o)}}function Tt(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function Ct(t,e){for(var n in e)"style"===n?t.style.cssText=e[n]:n in t?t[n]=e[n]:Tt(t,n,e[n])}function Pt(t){st=t}function St(){if(!st)throw new Error("Function called outside component initialization");return st}function Mt(t){St().$$.after_update.push(t)}var At=[],Lt=[],Ft=[],kt=[],Ht=Promise.resolve(),Bt=!1;function Yt(t){Ft.push(t)}function jt(){var t=new Set;do{for(;At.length;){var e=At.shift();Pt(e),Wt(e.$$)}for(;Lt.length;)Lt.pop()();for(var n=0;n1?1:a,n=.5*(1-Math.cos(Math.PI*l)),o=e.startX+(e.x-e.startX)*n,r=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,o,r),o===e.x&&r===e.y||t.requestAnimationFrame(d.bind(t,e))}function g(n,o,i){var l,c,f,h,p=s();n===e.body?(l=t,c=t.scrollX||t.pageXOffset,f=t.scrollY||t.pageYOffset,h=r.scroll):(l=n,c=n.scrollLeft,f=n.scrollTop,h=a),d({scrollable:l,method:h,startTime:p,startX:c,startY:f,x:o,y:i})}}}}));Ae.polyfill;Ae.polyfill();var Le=function(t){function e(e,n){var o;return void 0===n&&(n={}),(o=t.call(this,e,n)||this).tour=e,o.classPrefix=o.tour.options?at(o.tour.options.classPrefix):"",o.styles=e.styles,h(a(o)),o._setOptions(n),a(o)||a(o)}o(e,t);var n=e.prototype;return n.cancel=function(){this.tour.cancel(),this.trigger("cancel")},n.complete=function(){this.tour.complete(),this.trigger("complete")},n.destroy=function(){this.tooltip&&(this.tooltip.destroy(),this.tooltip=null),p(this.el)&&this.el.parentNode&&(this.el.parentNode.removeChild(this.el),this.el=null),this.target&&this._updateStepTargetOnHide(),this.trigger("destroy")},n.getTour=function(){return this.tour},n.hide=function(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this.target&&this._updateStepTargetOnHide(),this.trigger("hide")},n.isOpen=function(){return Boolean(this.el&&!this.el.hidden)},n.show=function(){var t=this;if(u(this.options.beforeShowPromise)){var e=this.options.beforeShowPromise();if(!g(e))return e.then((function(){return t._show()}))}this._show()},n.updateStepOptions=function(t){Object.assign(this.options,t),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})},n._createTooltipContent=function(){var t=this.options.classes||"",e=this.id+"-description",n=this.id+"-label";return this.shepherdElementComponent=new Me({target:document.body,props:{classPrefix:this.classPrefix,classes:t,descriptionId:e,labelId:n,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()},n._scrollTo=function(t){var e=ct(this).element;u(this.options.scrollToHandler)?this.options.scrollToHandler(e):p(e)&&e.scrollIntoView(t)},n._getClassOptions=function(t){var e=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=t.classes?t.classes:"",o=e&&e.classes?e.classes:"",i=[].concat(n.split(" "),o.split(" ")),r=new Set(i);return Array.from(r).join(" ").trim()},n._setOptions=function(t){var e=this;void 0===t&&(t={});var n=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;this.options=Object.assign({arrow:!0},n,t);var o=this.options.when;this.options.classes=this._getClassOptions(t),this.destroy(),this.id=this.options.id||"step-"+ht(),o&&Object.keys(o).forEach((function(t){e.on(t,o[t],e)}))},n._setupElements=function(){g(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&m(this),ft(this)},n._show=function(){var t=this;this.trigger("before-show"),this._setupElements(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.tooltip.position(),(this.target||document.body).classList.add(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target"),this.options.scrollTo&&setTimeout((function(){t._scrollTo(t.options.scrollTo)})),this.trigger("show"),this.el.focus()},n._styleTargetElementForStep=function(t){var e=t.target;e&&(t.options.highlightClass&&e.classList.add(t.options.highlightClass),!1===t.options.canClickTarget&&e.classList.add("shepherd-target-click-disabled"))},n._updateStepTargetOnHide=function(){this.options.highlightClass&&this.target.classList.remove(this.options.highlightClass),this.target.classList.remove(this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")},e}(f);function Fe(t){var e,n,o,i,r;return{c:function(){e=Ot("svg"),Tt(n=Ot("path"),"d",o="M "+t.openingProperties.x+" "+t.openingProperties.y+" H "+(t.openingProperties.width+t.openingProperties.x)+" V "+(t.openingProperties.height+t.openingProperties.y)+" H "+t.openingProperties.x+" L "+t.openingProperties.x+" 0 Z M 0 0 H "+t.window.innerWidth+" V "+t.window.innerHeight+" H 0 L 0 0 Z"),Tt(e,"class",i=(t.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container"),r=_t(e,"touchmove",t._preventModalOverlayTouch)},m:function(o,i){wt(o,e,i),yt(e,n),t.svg_binding(e)},p:function(t,r){t.openingProperties&&o!==(o="M "+r.openingProperties.x+" "+r.openingProperties.y+" H "+(r.openingProperties.width+r.openingProperties.x)+" V "+(r.openingProperties.height+r.openingProperties.y)+" H "+r.openingProperties.x+" L "+r.openingProperties.x+" 0 Z M 0 0 H "+r.window.innerWidth+" V "+r.window.innerHeight+" H 0 L 0 0 Z")&&Tt(n,"d",o),t.modalIsVisible&&i!==(i=(r.modalIsVisible?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Tt(e,"class",i)},i:pt,o:pt,d:function(n){n&&xt(e),t.svg_binding(null),r()}}}function ke(t,e,n){var o=e.element,i=e.openingProperties,r=(ht(),!1),s=void 0;l();function l(){n("openingProperties",i={height:0,x:0,y:0,width:0})}function a(){n("modalIsVisible",r=!1),p()}function c(t,e,o){if(void 0===o&&(o=0),t.getBoundingClientRect){var r=function(t,e){var n=t.getBoundingClientRect(),o=n.y||n.top,i=n.bottom||o+n.height;if(e){var r=e.getBoundingClientRect(),s=r.y||r.top,l=r.bottom||s+r.height;o=Math.max(o,s),i=Math.min(i,l)}return{y:o,height:Math.max(i-o,0)}}(t,e),s=r.y,l=r.height,a=t.getBoundingClientRect(),c=a.x,f=a.width,h=a.left;n("openingProperties",i={x:(c||h)-o,y:s-o,width:f+2*o,height:l+2*o})}}function f(){n("modalIsVisible",r=!0)}var h=function(t){t.preventDefault()};function p(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",h,{passive:!1})}return t.$set=function(t){"element"in t&&n("element",o=t.element),"openingProperties"in t&&n("openingProperties",i=t.openingProperties)},{element:o,openingProperties:i,modalIsVisible:r,getElement:function(){return o},closeModalOpening:l,hide:a,positionModalOpening:c,setupForStep:function(t){p(),t.tour.options.useModalOverlay?(!function(t){var e=t.options.modalOverlayOpeningPadding;if(t.target){var n=function t(e){if(!e)return null;var n=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY;return"hidden"!==n&&"visible"!==n&&e.scrollHeight>=e.clientHeight?e:t(e.parentElement)}(t.target);!function o(){s=void 0,c(t.target,n,e),s=requestAnimationFrame(o)}(),window.addEventListener("touchmove",h,{passive:!1})}else l()}(t),f()):a()},show:f,_preventModalOverlayTouch:function(t){t.stopPropagation()},window:window,svg_binding:function(t){Lt[t?"unshift":"push"]((function(){n("element",o=t)}))}}}var He=function(t){function n(e){var n;return Ut(a(n=t.call(this)||this),e,ke,Fe,bt,["element","openingProperties","getElement","closeModalOpening","hide","positionModalOpening","setupForStep","show"]),n}return o(n,t),e(n,[{key:"getElement",get:function(){return this.$$.ctx.getElement}},{key:"closeModalOpening",get:function(){return this.$$.ctx.closeModalOpening}},{key:"hide",get:function(){return this.$$.ctx.hide}},{key:"positionModalOpening",get:function(){return this.$$.ctx.positionModalOpening}},{key:"setupForStep",get:function(){return this.$$.ctx.setupForStep}},{key:"show",get:function(){return this.$$.ctx.show}}]),n}(Gt),Be=new f,Ye=function(t){function e(e){var n;void 0===e&&(e={}),h(a(n=t.call(this,e)||this));n.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),n.classPrefix=at(n.options.classPrefix),n.steps=[],n.addSteps(n.options.steps);return["active","cancel","complete","inactive","show","start"].map((function(t){var e;e=t,n.on(e,(function(t){(t=t||{}).tour=a(n),Be.trigger(e,t)}))})),n.modal=new He({target:e.modalContainer||document.body,props:{classPrefix:n.classPrefix,styles:n.styles}}),n._setTourID(),a(n)||a(n)}o(e,t);var n=e.prototype;return n.addStep=function(t,e){var n=t;return n instanceof Le?n.tour=this:n=new Le(this,n),g(e)?this.steps.push(n):this.steps.splice(e,0,n),n},n.addSteps=function(t){var e=this;return Array.isArray(t)&&t.forEach((function(t){e.addStep(t)})),this},n.back=function(){var t=this.steps.indexOf(this.currentStep);this.show(t-1,!1)},n.cancel=function(){if(this.options.confirmCancel){var t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";window.confirm(t)&&this._done("cancel")}else this._done("cancel")},n.complete=function(){this._done("complete")},n.getById=function(t){return this.steps.find((function(e){return e.id===t}))},n.getCurrentStep=function(){return this.currentStep},n.hide=function(){var t=this.getCurrentStep();if(t)return t.hide()},n.isActive=function(){return Be.activeTour===this},n.next=function(){var t=this.steps.indexOf(this.currentStep);t===this.steps.length-1?this.complete():this.show(t+1,!0)},n.removeStep=function(t){var e=this,n=this.getCurrentStep();this.steps.some((function(n,o){if(n.id===t)return n.isOpen()&&n.hide(),n.destroy(),e.steps.splice(o,1),!0})),n&&n.id===t&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())},n.show=function(t,e){void 0===t&&(t=0),void 0===e&&(e=!0);var n=d(t)?this.getById(t):this.steps[t];n&&(this._updateStateBeforeShow(),u(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,e):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show()))},n.start=function(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupActiveTour(),this.next()},n._done=function(t){var e,n=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach((function(t){return t.destroy()})),(e=this)&&e.steps.forEach((function(t){t.options&&!1===t.options.canClickTarget&&t.options.attachTo&&t.target instanceof HTMLElement&&t.target.classList.remove("shepherd-target-click-disabled")})),this.trigger(t,{index:n}),Be.activeTour=null,this.trigger("inactive",{tour:this}),this.modal.hide(),p(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()},n._setupActiveTour=function(){this.trigger("active",{tour:this}),Be.activeTour=this},n._skipStep=function(t,e){var n=this.steps.indexOf(t),o=e?n+1:n-1;this.show(o,e)},n._updateStateBeforeShow=function(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()},n._setTourID=function(){var t=this.options.tourName||"tour";this.id=t+"--"+ht()},e}(f);return Object.assign(Be,{Tour:Ye,Step:Le}),Be})); +//# sourceMappingURL=shepherd.min.js.map diff --git a/vendor/assets/javascripts/smoothscroll.min.js b/vendor/assets/javascripts/smoothscroll.min.js new file mode 100644 index 0000000..0170c77 --- /dev/null +++ b/vendor/assets/javascripts/smoothscroll.min.js @@ -0,0 +1 @@ +!function(){"use strict";function o(){var o=window,t=document;if(!("scrollBehavior"in t.documentElement.style&&!0!==o.__forceSmoothScrollPolyfill__)){var l,e=o.HTMLElement||o.Element,r=468,i={scroll:o.scroll||o.scrollTo,scrollBy:o.scrollBy,elementScroll:e.prototype.scroll||n,scrollIntoView:e.prototype.scrollIntoView},s=o.performance&&o.performance.now?o.performance.now.bind(o.performance):Date.now,c=(l=o.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(l)?1:0);o.scroll=o.scrollTo=function(){void 0!==arguments[0]&&(!0!==f(arguments[0])?h.call(o,t.body,void 0!==arguments[0].left?~~arguments[0].left:o.scrollX||o.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:o.scrollY||o.pageYOffset):i.scroll.call(o,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:o.scrollX||o.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:o.scrollY||o.pageYOffset))},o.scrollBy=function(){void 0!==arguments[0]&&(f(arguments[0])?i.scrollBy.call(o,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(o,t.body,~~arguments[0].left+(o.scrollX||o.pageXOffset),~~arguments[0].top+(o.scrollY||o.pageYOffset)))},e.prototype.scroll=e.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==f(arguments[0])){var o=arguments[0].left,t=arguments[0].top;h.call(this,this,void 0===o?this.scrollLeft:~~o,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},e.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==f(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},e.prototype.scrollIntoView=function(){if(!0!==f(arguments[0])){var l=function(o){for(;o!==t.body&&!1===(e=p(l=o,"Y")&&a(l,"Y"),r=p(l,"X")&&a(l,"X"),e||r);)o=o.parentNode||o.host;var l,e,r;return o}(this),e=l.getBoundingClientRect(),r=this.getBoundingClientRect();l!==t.body?(h.call(this,l,l.scrollLeft+r.left-e.left,l.scrollTop+r.top-e.top),"fixed"!==o.getComputedStyle(l).position&&o.scrollBy({left:e.left,top:e.top,behavior:"smooth"})):o.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function n(o,t){this.scrollLeft=o,this.scrollTop=t}function f(o){if(null===o||"object"!=typeof o||void 0===o.behavior||"auto"===o.behavior||"instant"===o.behavior)return!0;if("object"==typeof o&&"smooth"===o.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+o.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(o,t){return"Y"===t?o.clientHeight+c1?1:n,l=.5*(1-Math.cos(Math.PI*c)),e=t.startX+(t.x-t.startX)*l,i=t.startY+(t.y-t.startY)*l,t.method.call(t.scrollable,e,i),e===t.x&&i===t.y||o.requestAnimationFrame(d.bind(o,t))}function h(l,e,r){var c,f,p,a,h=s();l===t.body?(c=o,f=o.scrollX||o.pageXOffset,p=o.scrollY||o.pageYOffset,a=i.scroll):(c=l,f=l.scrollLeft,p=l.scrollTop,a=n),d({scrollable:c,method:a,startTime:h,startX:f,startY:p,x:e,y:r})}}"object"==typeof exports&&"undefined"!=typeof module?module.exports={polyfill:o}:o()}(); \ No newline at end of file diff --git a/vendor/assets/javascripts/tether.min.js b/vendor/assets/javascripts/tether.min.js new file mode 100644 index 0000000..86eed6a --- /dev/null +++ b/vendor/assets/javascripts/tether.min.js @@ -0,0 +1,4 @@ +/*! tether 2.0.0 */ + +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Tether=e()}(this,(function(){"use strict";function t(e,o){return(t=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(e,o)}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){return"string"==typeof t}function i(t){return void 0===t}function n(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.add(e)}))}function s(t,e,o){return void 0===t&&(t=""),i(e)||i(e[t])?o?o+"-"+t:t:!1===e[t]?"":e[t]}function r(t,e){e.split(" ").forEach((function(e){e.trim()&&t.classList.remove(e)}))}function a(t,e,o){o.forEach((function(o){-1===e.indexOf(o)&&t.classList.contains(o)&&r(t,o)})),e.forEach((function(e){t.classList.contains(e)||n(t,e)}))}var h=[];function l(t){h.push(t)}function f(){for(var t;t=h.pop();)t()}var p=null;function d(t){void 0===t&&(t={});var e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach((function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])})),t}function c(){if(p)return p;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");d(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return p={width:n,height:n}}var u,m=(u=0,function(){return++u}),g={},v=null;function b(t,e){var o;e===document?(o=document,e=document.documentElement):o=e.ownerDocument;var n=o.documentElement,s=w(e),r=function(t){var e=v;e&&t.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",m()),d(e.style,{top:0,left:0,position:"absolute"}),t.appendChild(e),v=e);var o=e.getAttribute("data-tether-id");i(g[o])&&(g[o]=w(e),l((function(){delete g[o]})));return g[o]}(t);return s.top-=r.top,s.left-=r.left,i(s.width)&&(s.width=document.body.scrollWidth-s.left-s.right),i(s.height)&&(s.height=document.body.scrollHeight-s.top-s.bottom),s.top=s.top-n.clientTop,s.left=s.left-n.clientLeft,s.right=o.body.clientWidth-s.width-s.left,s.bottom=o.body.clientHeight-s.height-s.top,s}function w(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];try{if(t.ownerDocument!==document){var n=t.ownerDocument.defaultView.frameElement;if(n){var s=w(n);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}}catch(t){}return o}var y={position:function(t){var e=this,o=t.top,i=t.left,n=this.cache("element-bounds",(function(){return b(e.element)})),r=n.height,h=n.width,f=this.getTargetBounds(),p=o+r,d=i+h,c=[];o<=f.bottom&&p>=f.top&&["left","right"].forEach((function(t){var e=f[t];e!==i&&e!==d||c.push(t)})),i<=f.right&&d>=f.left&&["top","bottom"].forEach((function(t){var e=f[t];e!==o&&e!==p||c.push(t)}));var u=this.options,m=u.classes,g=u.classPrefix;return this.all.push(s("abutted",m,g)),["left","top","right","bottom"].forEach((function(t){e.all.push(s("abutted",m,g)+"-"+t)})),c.length&&this.add.push(s("abutted",m,g)),c.forEach((function(t){e.add.push(s("abutted",m,g)+"-"+t)})),l((function(){!1!==e.options.addTargetClasses&&a(e.target,e.add,e.all),a(e.element,e.add,e.all)})),!0}},E=["left","top","right","bottom"];var O={position:function(t){var e=this,n=t.top,r=t.left,h=t.targetAttachment;if(!this.options.constraints)return!0;var f=this.cache("element-bounds",(function(){return b(e.bodyElement,e.element)})),p=f.height,c=f.width;if(0===c&&0===p&&!i(this.lastSize)){var u=this.lastSize;c=u.width,p=u.height}var m=this.cache("target-bounds",(function(){return e.getTargetBounds()})),g=m.height,v=m.width,w=this.options,y=w.classes,O=w.classPrefix,x=function(t,e,o){var i=[s("pinned",t,e),s("out-of-bounds",t,e)];return o.forEach((function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&i.push(e),o&&i.push(o)})),i.forEach((function(t){["left","top","right","bottom"].forEach((function(e){i.push(t+"-"+e)}))})),i}(y,O,this.options.constraints),C=[],T=d({},h),P=d({},this.attachment);return this.options.constraints.forEach((function(t){var a,l,f=t.to,d=t.attachment,u=t.pin;if(i(d)&&(d=""),d.indexOf(" ")>=0){var m=d.split(" ");l=m[0],a=m[1]}else a=l=d;var w=function(t,e,o){if(!o)return null;if("scrollParent"===o?o=e.scrollParents[0]:"window"===o&&(o=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),o===document&&(o=o.documentElement),!i(o.nodeType)){var n=o,s=b(t,o),r=s,a=getComputedStyle(o);if(o=[r.left,r.top,s.width+r.left,s.height+r.top],n.ownerDocument!==document){var h=n.ownerDocument.defaultView;o[0]+=h.pageXOffset,o[1]+=h.pageYOffset,o[2]+=h.pageXOffset,o[3]+=h.pageYOffset}E.forEach((function(t,e){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?o[e]+=parseFloat(a["border"+t+"Width"]):o[e]-=parseFloat(a["border"+t+"Width"])}))}return o}(e.bodyElement,e,f);"target"!==l&&"both"!==l||(nw[3]&&"bottom"===T.top&&(n-=g,T.top="top")),"together"===l&&(n=function(t,e,o,i,n,s){return"top"===t.top&&("bottom"===e.top&&so[3]&&s-(i-n)>=o[1]&&(s-=i-n,t.top="bottom",e.top="bottom")),"bottom"===t.top&&("top"===e.top&&s+i>o[3]?(s-=n,t.top="top",s-=i,e.top="bottom"):"bottom"===e.top&&so[3]&&"top"===e.top?(s-=i,e.top="bottom"):sw[2]&&"right"===T.left&&(r-=v,T.left="left")),"together"===a&&(r=function(t,e,o,i,n,s){return so[2]&&"right"===t.left?"left"===e.left?(s-=n,t.left="left",s-=i,e.left="right"):"right"===e.left&&(s-=n,t.left="left",s+=i,e.left="left"):"center"===t.left&&(s+i>o[2]&&"left"===e.left?(s-=i,e.left="right"):sw[3]&&"top"===P.top&&(n-=p,P.top="bottom")),"element"!==a&&"both"!==a||(rw[2]&&("left"===P.left?(r-=c,P.left="right"):"center"===P.left&&(r-=c/2,P.left="right"))),o(u)?u=u.split(",").map((function(t){return t.trim()})):!0===u&&(u=["top","left","right","bottom"]);var x,A=[],W=[];(r=function(t,e,o,i,n,s){return t=0?(t=e[0],n.push("left")):s.push("left")),t+o>e[2]&&(i.indexOf("right")>=0?(t=e[2]-o,n.push("right")):s.push("right")),t}(r,w,c,u=u||[],A,W),n=function(t,e,o,i,n,s){return t=0?(t=e[1],n.push("top")):s.push("top")),t+o>e[3]&&(i.indexOf("bottom")>=0?(t=e[3]-o,n.push("bottom")):s.push("bottom")),t}(n,w,p,u,A,W),A.length)&&(x=i(e.options.pinnedClass)?s("pinned",y,O):e.options.pinnedClass,C.push(x),A.forEach((function(t){C.push(x+"-"+t)})));!function(t,e,o,n,r){var a;t.length&&(a=i(r)?s("out-of-bounds",o,n):r,e.push(a),t.forEach((function(t){e.push(a+"-"+t)})))}(W,C,y,O,e.options.outOfBoundsClass),(A.indexOf("left")>=0||A.indexOf("right")>=0)&&(P.left=T.left=!1),(A.indexOf("top")>=0||A.indexOf("bottom")>=0)&&(P.top=T.top=!1),T.top===h.top&&T.left===h.left&&P.top===e.attachment.top&&P.left===e.attachment.left||(e.updateAttachClasses(P,T),e.trigger("update",{attachment:P,targetAttachment:T}))})),l((function(){!1!==e.options.addTargetClasses&&a(e.target,C,x),a(e.element,C,x)})),{top:n,left:r}}},x={position:function(t){var e=t.top,i=t.left;if(this.options.shift){var n,s,r=this.options.shift;if("function"==typeof r&&(r=r.call(this,{top:e,left:i})),o(r)){(r=r.split(" "))[1]=r[1]||r[0];var a=r;n=a[0],s=a[1],n=parseFloat(n,10),s=parseFloat(s,10)}else{var h=[r.top,r.left];n=h[0],s=h[1]}return{top:e+=n,left:i+=s}}}},C=function(){function t(){}var e=t.prototype;return e.on=function(t,e,o,n){return void 0===n&&(n=!1),i(this.bindings)&&(this.bindings={}),i(this.bindings[t])&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:n}),this},e.once=function(t,e,o){return this.on(t,e,o,!0)},e.off=function(t,e){var o=this;return i(this.bindings)||i(this.bindings[t])||(i(e)?delete this.bindings[t]:this.bindings[t].forEach((function(i,n){i.handler===e&&o.bindings[t].splice(n,1)}))),this},e.trigger=function(t){for(var e=this,o=arguments.length,n=new Array(o>1?o-1:0),s=1;s16)return S=Math.min(S-16,250),void(X=setTimeout(t,250));!i(Y)&&N()-Y<10||(null!=X&&(clearTimeout(X),X=null),Y=N(),B(),S=N()-Y)},i(window)||i(window.addEventListener)||["resize","scroll","touchmove"].forEach((function(t){window.addEventListener(t,H)}));var R=function(h){var p,u;function m(t){var o;return(o=h.call(this)||this).position=o.position.bind(e(o)),k.push(e(o)),o.history=[],o.setOptions(t,!1),L.modules.forEach((function(t){i(t.initialize)||t.initialize.call(e(o))})),o.position(),o}u=h,(p=m).prototype=Object.create(u.prototype),p.prototype.constructor=p,t(p,u);var g=m.prototype;return g.setOptions=function(t,e){var n=this;void 0===e&&(e=!0);var s={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether",bodyElement:document.body};this.options=d(s,t);var r=this.options,a=r.element,h=r.target,l=r.targetModifier,f=r.bodyElement;if(this.element=a,this.target=h,this.targetModifier=l,"string"==typeof f&&(f=document.querySelector(f)),this.bodyElement=f,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(t){if(i(n[t]))throw new Error("Tether Error: Both element and target must be defined");i(n[t].jquery)?o(n[t])&&(n[t]=document.querySelector(n[t])):n[t]=n[t][0]})),this._addClasses(),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=z(this.options.targetAttachment),this.attachment=z(this.options.attachment),this.offset=z(this.options.offset),this.targetOffset=z(this.options.targetOffset),i(this.scrollParents)||this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=function(t){var e=(getComputedStyle(t)||{}).position,o=[];if("fixed"===e)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var s=void 0;try{s=getComputedStyle(n)}catch(t){}if(i(s)||null===s)return o.push(n),o;var r=s,a=r.overflow,h=r.overflowX,l=r.overflowY;/(auto|scroll|overlay)/.test(a+l+h)&&("absolute"!==e||["relative","absolute","fixed"].indexOf(s.position)>=0)&&o.push(n)}return o.push(t.ownerDocument.body),t.ownerDocument!==document&&o.push(t.ownerDocument.defaultView),o}(this.target),!1!==this.options.enabled&&this.enable(e)},g.getTargetBounds=function(){return i(this.targetModifier)?b(this.bodyElement,this.target):"visible"===this.targetModifier?function(t,e){if(e===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var o=b(t,e),i={height:o.height,width:o.width,top:o.top,left:o.left};return i.height=Math.min(i.height,o.height-(pageYOffset-o.top)),i.height=Math.min(i.height,o.height-(o.top+o.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,o.width-(pageXOffset-o.left)),i.width=Math.min(i.width,o.width-(o.left+o.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.tope.clientWidth||[s.overflow,s.overflowX].indexOf("scroll")>=0||!n)&&(r=15);var a=o.height-parseFloat(s.borderTopWidth)-parseFloat(s.borderBottomWidth)-r,h={width:15,height:.975*a*(a/e.scrollHeight),left:o.left+o.width-parseFloat(s.borderLeftWidth)-15},l=0;a<408&&n&&(l=-11e-5*Math.pow(a,2)-.00727*a+22.58),n||(h.height=Math.max(h.height,24));var f=i/(e.scrollHeight-a);return h.top=f*(a-h.height-l)+o.top+parseFloat(s.borderTopWidth),n&&(h.height=Math.max(h.height,24)),h}(this.bodyElement,this.target):void 0},g.clearCache=function(){this._cache={}},g.cache=function(t,e){return i(this._cache)&&(this._cache={}),i(this._cache[t])&&(this._cache[t]=e.call(this)),this._cache[t]},g.enable=function(t){var e=this;void 0===t&&(t=!0);var o=this.options,i=o.classes,r=o.classPrefix;!1!==this.options.addTargetClasses&&n(this.target,s("enabled",i,r)),n(this.element,s("enabled",i,r)),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()},g.disable=function(){var t=this,e=this.options,o=e.classes,n=e.classPrefix;r(this.target,s("enabled",o,n)),r(this.element,s("enabled",o,n)),this.enabled=!1,i(this.scrollParents)||this.scrollParents.forEach((function(e){e&&e.removeEventListener&&e.removeEventListener("scroll",t.position)}))},g.destroy=function(){var t,e=this;this.disable(),this._removeClasses(),k.forEach((function(t,o){t===e&&k.splice(o,1)})),0===k.length&&(t=this.bodyElement,v&&t.removeChild(v),v=null)},g.updateAttachClasses=function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var n=this.options,r=n.classes,h=n.classPrefix;!i(this._addAttachClasses)&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),i(this._addAttachClasses)&&(this._addAttachClasses=[]),this.add=this._addAttachClasses,t.top&&this.add.push(s("element-attached",r,h)+"-"+t.top),t.left&&this.add.push(s("element-attached",r,h)+"-"+t.left),e.top&&this.add.push(s("target-attached",r,h)+"-"+e.top),e.left&&this.add.push(s("target-attached",r,h)+"-"+e.left),this.all=[],["left","top","bottom","right","middle","center"].forEach((function(t){o.all.push(s("element-attached",r,h)+"-"+t),o.all.push(s("target-attached",r,h)+"-"+t)})),l((function(){i(o._addAttachClasses)||(a(o.element,o._addAttachClasses,o.all),!1!==o.options.addTargetClasses&&a(o.target,o._addAttachClasses,o.all),delete o._addAttachClasses)}))},g.position=function(t){var e=this;if(void 0===t&&(t=!0),this.enabled){this.clearCache();var o=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=T[e.left]),"auto"===i&&(i=P[e.top]),{left:o,top:i}}(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var n=this.cache("element-bounds",(function(){return b(e.bodyElement,e.element)})),s=n.width,r=n.height;if(0!==s||0!==r||i(this.lastSize))this.lastSize={width:s,height:r};else{var a=this.lastSize;s=a.width,r=a.height}var h=this.cache("target-bounds",(function(){return e.getTargetBounds()})),l=h,p=M(_(this.attachment),{width:s,height:r}),d=M(_(o),l),u=M(this.offset,{width:s,height:r}),m=M(this.targetOffset,l);p=W(p,u),d=W(d,m);for(var g=h.left+d.left-p.left,v=h.top+d.top-p.top,w=0;wx.documentElement.clientHeight&&(E=this.cache("scrollbar-size",c),O.viewport.bottom-=E.height),C.innerWidth>x.documentElement.clientWidth&&(E=this.cache("scrollbar-size",c),O.viewport.right-=E.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(O.page.bottom=x.body.scrollHeight-v-r,O.page.right=x.body.scrollWidth-g-s),!i(this.options.optimizations)&&!1!==this.options.optimizations.moveElement&&i(this.targetModifier)){var A=this.cache("target-offsetparent",(function(){return F(e.target)})),z=this.cache("target-offsetparent-bounds",(function(){return b(e.bodyElement,A)})),Y=getComputedStyle(A),S=z,X={};if(["Top","Left","Bottom","Right"].forEach((function(t){X[t.toLowerCase()]=parseFloat(Y["border"+t+"Width"])})),z.right=x.body.scrollWidth-z.left-S.width+X.right,z.bottom=x.body.scrollHeight-z.top-S.height+X.bottom,O.page.top>=z.top+X.top&&O.page.bottom>=z.bottom&&O.page.left>=z.left+X.left&&O.page.right>=z.right){var H=A.scrollLeft,D=A.scrollTop;O.offset={top:O.page.top-z.top+D-X.top,left:O.page.left-z.left+H-X.left}}}return this.move(O),this.history.unshift(O),this.history.length>3&&this.history.pop(),t&&f(),!0}},g.move=function(t){var e=this;if(!i(this.element.parentNode)){var o,n,s,r={};for(var a in t)for(var h in r[a]={},t[a]){for(var f=!1,p=0;p=n&&n>=o-s))){f=!0;break}}f||(r[a][h]=!0)}var u={top:"",left:"",right:"",bottom:""},m=function(t,o){var n,s;!1!==(!i(e.options.optimizations)?e.options.optimizations.gpu:null)?(t.top?(u.top=0,n=o.top):(u.bottom=0,n=-o.bottom),t.left?(u.left=0,s=o.left):(u.right=0,s=-o.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(s=Math.round(s*devicePixelRatio)/devicePixelRatio,n=Math.round(n*devicePixelRatio)/devicePixelRatio),u[D]="translateX("+s+"px) translateY("+n+"px)","msTransform"!==D&&(u[D]+=" translateZ(0)")):(t.top?u.top=o.top+"px":u.bottom=o.bottom+"px",t.left?u.left=o.left+"px":u.right=o.right+"px")},g=!0;!i(this.options.optimizations)&&!1===this.options.optimizations.allowPositionFixed&&(g=!1);var v,b,w=!1;if((r.page.top||r.page.bottom)&&(r.page.left||r.page.right))u.position="absolute",m(r.page,t.page);else if(g&&(r.viewport.top||r.viewport.bottom)&&(r.viewport.left||r.viewport.right))u.position="fixed",m(r.viewport,t.viewport);else if(!i(r.offset)&&r.offset.top&&r.offset.left){u.position="absolute";var y=this.cache("target-offsetparent",(function(){return F(e.target)}));F(this.element)!==y&&l((function(){e.element.parentNode.removeChild(e.element),y.appendChild(e.element)})),m(r.offset,t.offset),w=!0}else u.position="absolute",m({top:!0,left:!0},t.page);if(!w)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var E=!0,O=this.element.parentNode;O&&1===O.nodeType&&"BODY"!==O.tagName&&(b=void 0,((b=(v=O).ownerDocument).fullscreenElement||b.webkitFullscreenElement||b.mozFullScreenElement||b.msFullscreenElement)!==v);){if("static"!==getComputedStyle(O).position){E=!1;break}O=O.parentNode}E||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var x={},C=!1;for(var T in u){var P=u[T];this.element.style[T]!==P&&(C=!0,x[T]=P)}C&&l((function(){d(e.element.style,x),e.trigger("repositioned")}))}},g._addClasses=function(){var t=this.options,e=t.classes,o=t.classPrefix;n(this.element,s("element",e,o)),!1!==this.options.addTargetClasses&&n(this.target,s("target",e,o))},g._removeClasses=function(){var t=this,e=this.options,o=e.classes,i=e.classPrefix;r(this.element,s("element",o,i)),!1!==this.options.addTargetClasses&&r(this.target,s("target",o,i)),this.all.forEach((function(e){t.element.classList.remove(e),t.target.classList.remove(e)}))},m}(C);R.modules=[],L.position=B;var j=d(R,L);return j.modules.push({initialize:function(){var t=this,e=this.options,o=e.classes,i=e.classPrefix;this.markers={},["target","element"].forEach((function(e){var n=document.createElement("div");n.className=s(e+"-marker",o,i);var r=document.createElement("div");r.className=s("marker-dot",o,i),n.appendChild(r),t[e].appendChild(n),t.markers[e]={dot:r,el:n}}))},position:function(t){var e={element:t.manualOffset,target:t.manualTargetOffset};for(var i in e){var n=e[i];for(var s in n){var r,a=n[s];(!o(a)||-1===a.indexOf("%")&&-1===a.indexOf("px"))&&(a+="px"),this.markers[i]&&(null==(r=this.markers[i].dot)?void 0:r.style[s])!==a&&(this.markers[i].dot.style[s]=a)}}return!0}}),j})); +//# sourceMappingURL=tether.min.js.map From 627146f91381035e3ae816621264146ffcb9fbb3 Mon Sep 17 00:00:00 2001 From: Aashish Saini Date: Thu, 26 Oct 2023 13:47:22 +0530 Subject: [PATCH 2/4] add chromedriver in workflow --- .github/workflows/ruby.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 4fcd2fa..93b3b00 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -24,6 +24,7 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: nanasess/setup-chromedriver@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 - name: Generate lockfile @@ -43,4 +44,4 @@ jobs: - name: Create database run: bundle exec rake db:create db:migrate - name: Run tests - run: bundle exec rake test \ No newline at end of file + run: bundle exec rake test From 052122b4f1f6f74129fd64306eee19db36691a6d Mon Sep 17 00:00:00 2001 From: Aashish Saini Date: Thu, 26 Oct 2023 13:57:33 +0530 Subject: [PATCH 3/4] Remove webdrivers gem --- Gemfile | 2 -- test/application_system_test_case.rb | 1 - 2 files changed, 3 deletions(-) diff --git a/Gemfile b/Gemfile index 43849c9..93f600f 100644 --- a/Gemfile +++ b/Gemfile @@ -40,7 +40,5 @@ group :test do # Adds support for Capybara system testing and selenium driver gem 'capybara', '>= 2.15' gem 'selenium-webdriver' - # Easy installation and use of web drivers to run system tests with browsers - gem 'webdrivers' gem 'mocha' end diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index e3ae7b5..5c35460 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -1,5 +1,4 @@ require "test_helper" -require "webdrivers" Capybara.server = :webrick From e6ab5886101a971f6982cd04f5a28b5d6c66b089 Mon Sep 17 00:00:00 2001 From: christopher-activatecare Date: Thu, 26 Oct 2023 09:31:53 -0500 Subject: [PATCH 4/4] add PRCHECKLIST config --- PRCHECKLIST | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PRCHECKLIST diff --git a/PRCHECKLIST b/PRCHECKLIST new file mode 100644 index 0000000..912fec4 --- /dev/null +++ b/PRCHECKLIST @@ -0,0 +1,29 @@ +# Checklist Buddy by Mibex Software https://www.mibexsoftware.com/ + +# To create a new task, use '+task+' followed by the task description. +# To create a reminder (a non-blocking comment), use '+comment+' followed by the comment text + +# To filter when a task is applied, prepend the task/comment/title with one or more of the following filters: +# '--source' - the source branch pattners +# '--source-except' - all pull requests except those matching this pattern +# '--target' - the target/destination branch patterns +# '--files' - diff file pattern, similar to .gitignore + +# When more than one task has the same filter settings, these are grouped as a checklist. +# Note: entries with the same filter settings will be grouped together, regardless of position in file + +# To name a checklist, create a line entry with the desired filter settings and +title+ Your Checklist Title + +# EXAMPLES https://github.com/mibexsoftware/checklist-buddy-demo/blob/main/PRCHECKLIST + +# Checklist for Security Reviewer +--files /** +title+ Security Review (Not for PR Owner) +--files /** +task+ [Rails OWASP Checklist](https://www.notion.so/activatecare/OWASP-Top-Ten-Ruby-on-Rails-checklist-3460102fa3024d2db35e5503126b53c4?pvs=4) has been considered and no potential vulnerabilities found. + +# Checklist for Coding Guidelines ++title+ Developer/Requestor Review ++task+ The code follows the Activate Care development guidelines. ++task+ There are appropriate tests, preferring unit tests to system tests. ++task+ Performance related impacts have been considered. ++task+ Commit messages follow our conventions. ++task+ If there is a migration needed, I have performed a staging migration test and updated development.sql.