Skip to content

Commit

Permalink
Merge pull request #5 from Stock-control-supervisors/main
Browse files Browse the repository at this point in the history
bombastictranz/public-docs
  • Loading branch information
bombastictranz authored May 9, 2024
2 parents 460d73d + af3119e commit b52e110
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 0 deletions.
90 changes: 90 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '37 21 * * 1'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (github.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
11 changes: 11 additions & 0 deletions 236-b2597970eb610ae5.js.download

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions 890-4dba659a3c088c61.js.download

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions 891-60060a98dc97a1ed.js.download
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[891],{42566:function(t,e,n){"use strict";n.r(e),n.d(e,{ContentKit:function(){return s}});var r=n(57437),a=n(2265),i=n(87374),o=n(73431);function s(t){var e;let{security:n,initialInput:l,initialOutput:c,children:u,render:d,onAction:f}=t,[h,p]=a.useState({input:l,children:u,output:c,state:null!==(e=c.state)&&void 0!==e?e:{}}),[b,m]=a.useState(null),g=a.useCallback(async t=>{var e;let n={...h.input,...(null===(e=h.output)||void 0===e?void 0:e.props)?{props:h.output.props}:{},...t,state:{...h.input.state,...h.state,...t.state}};console.log("transition to input",n);let r=await d(n);console.log("and got output",r.output,"for",n),p(t=>({input:n,children:r.children,output:r.output,state:t.state}))},[p,h,d]),x=a.useMemo(()=>({security:n,state:h.state,setState:t=>{p(e=>({...e,state:{...e.state,...t}}))},update:g,dispatchAction:async function(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=(0,o.a)(h.state,t);switch(e&&(null==f||f(n)),console.log("action",n),n.action){case"@ui.modal.open":{let t={componentId:n.componentId,props:n.props,context:h.input.context,action:n},e=await d(t);m({mode:"modal",initialInput:t,initialOutput:e.output,initialChildren:e.children});break}case"@ui.url.open":window.open(n.url,"_blank");break;default:await g({action:n})}}}),[g,n,h.state,h.input.context,p,d]),k=a.useCallback(async t=>{"@ui.modal.close"===t.action&&(g({action:t}),m(null))},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.l.Provider,{value:x,children:h.children}),b?(0,r.jsx)(s,{security:n,initialInput:b.initialInput,initialOutput:b.initialOutput,render:d,onAction:k,children:b.initialChildren}):null]})}},26630:function(t,e,n){"use strict";n.r(e),n.d(e,{ElementButton:function(){return l}});var r=n(57437),a=n(16480),i=n.n(a),o=n(87374),s=n(2265);function l(t){var e;let{element:n,icon:a,trailingIcon:l}=t,c=(0,o.D)(),[u,d]=s.useState(!1);return(0,r.jsxs)("button",{title:n.tooltip,className:i()("contentkit-button","contentkit-button-style-".concat(null!==(e=n.style)&&void 0!==e?e:"secondary"),u?"contentkit-button-loading":null),onClick:t=>{n.disabled||u||(t.stopPropagation(),d(!0),c.dispatchAction(n.onPress).finally(()=>{d(!1)}))},children:[a,n.label?(0,r.jsx)("span",{className:"contentkit-button-label",children:n.label}):null,l]})}},32592:function(t,e,n){"use strict";n.r(e),n.d(e,{ElementCard:function(){return s}});var r=n(57437);n(2265);var a=n(16480),i=n.n(a),o=n(87374);function s(t){let{element:e,children:n,icon:a,hint:s,buttons:l}=t,c=(0,o.D)();return(0,r.jsxs)("div",{className:i()("contentkit-card",e.onPress?"contentkit-card-pressable":null),onClick:()=>{e.onPress&&c.dispatchAction(e.onPress)},children:[e.title?(0,r.jsxs)("div",{className:i()("contentkit-card-header"),children:[a?(0,r.jsx)("div",{className:i()("contentkit-card-icon"),children:a}):null,(0,r.jsxs)("div",{className:i()("contentkit-card-header-content"),children:[(0,r.jsx)("div",{className:i()("contentkit-card-title"),children:e.title}),s?(0,r.jsx)("div",{className:i()("contentkit-card-hint"),children:s}):null]}),l&&l.length>0?(0,r.jsx)("div",{className:i()("contentkit-card-buttons"),children:l}):null]}):null,n?(0,r.jsx)("div",{className:i()("contentkit-card-body"),children:n}):null]})}},77738:function(t,e,n){"use strict";n.r(e),n.d(e,{ElementMarkdownClient:function(){return s}});var r=n(57437),a=n(73431),i=n(2265),o=n(87374);function s(t){let{element:e,initialMarkdown:n=e.content,renderMarkdown:s,children:l}=t,[c,u]=i.useState(null),d=(0,o.D)(),f=(0,a.a)(d.state,e.content);return i.useEffect(()=>{if(n===f){u(null);return}let t=!1;return(async()=>{let e=await s(f);t||u(e)})(),()=>{t=!0}},[n,f]),(0,r.jsx)(r.Fragment,{children:c||l})}},83090:function(t,e,n){"use strict";n.r(e),n.d(e,{ElementModal:function(){return l}});var r=n(57437),a=n(16480),i=n.n(a),o=n(87374),s=n(2265);function l(t){let{element:e,subtitle:n,children:a}=t,l=(0,o.D)(),[c,u]=s.useState(!1);s.useEffect(()=>{u(!0)},[]);let d=async()=>{await l.dispatchAction({action:"@ui.modal.close",returnValue:e.returnValue||{}})};return(0,r.jsx)("div",{className:i()("contentkit-modal-backdrop"),onClick:d,children:(0,r.jsxs)("div",{className:i()("contentkit-modal",c?"contentkit-modal-opened":null),onClick:t=>{t.stopPropagation()},children:[(0,r.jsxs)("div",{className:i()("contentkit-modal-header"),children:[e.title?(0,r.jsx)("h1",{className:i()("contentkit-modal-title"),children:e.title}):null,n?(0,r.jsx)("div",{className:"contentkit-modal-subtitle",children:n}):null]}),(0,r.jsx)("div",{className:i()("contentkit-modal-body"),children:a})]})})}},36466:function(t,e,n){"use strict";n.r(e),n.d(e,{ElementTextInput:function(){return l}});var r=n(57437),a=n(16480),i=n.n(a),o=n(87374);n(2265);var s=n(73431);function l(t){var e,n,a;let{element:l}=t,c=(0,o.D)(),u=null!==(n=null!==(e=(0,s.g)(c.state,l.state))&&void 0!==e?e:l.initialValue)&&void 0!==n?n:"",d=t=>{c.setState({[l.state]:t.target.value})};return l.multiline?(0,r.jsx)("textarea",{disabled:l.disabled,className:i()("contentkit-textinput"),value:u,placeholder:l.placeholder,onChange:d}):(0,r.jsx)("input",{type:null!==(a=l.inputType)&&void 0!==a?a:"text",disabled:l.disabled,className:i()("contentkit-textinput"),value:u,placeholder:l.placeholder,onChange:d})}},78645:function(t,e,n){"use strict";n.r(e),n.d(e,{ElementWebframe:function(){return s}});var r=n(57437),a=n(2265),i=n(87374),o=n(73431);function s(t){let{element:e}=t,n=(0,i.D)(),s=a.useRef(null),[l,c]=a.useState({}),u=a.useRef(!1),d=a.useRef([]),f=a.useCallback(t=>{if(!s.current)return;let r=new URL(e.source.url);n.security.firstPartyDomains.includes(r.host)&&(u.current?s.current.contentWindow.postMessage(t,"".concat(r.protocol,"//").concat(r.host)):d.current.push(t))},[n.security]);return a.useEffect(()=>{let t=t=>{if(!s.current)return;let e=t.data,r=new URL(t.origin);n.security.firstPartyDomains.includes(r.host);let a=s.current.contentWindow;if(a&&t.source===a){if("string"==typeof e)try{let t=JSON.parse(e);if("iframe.resize"===t.context&&"number"==typeof t.height){let e=a.outerWidth,n=t.height;c({maxWidth:e,aspectRatio:e/n,maxHeight:n})}}catch(t){return}if(e.action)switch(e.action.action){case"@webframe.ready":u.current=!0,d.current.forEach(t=>{f(t)}),d.current=[];break;case"@webframe.resize":c({maxWidth:Number(e.action.size.maxWidth),maxHeight:Number(e.action.size.maxHeight),aspectRatio:Number(e.action.size.aspectRatio)});break;default:n.update({action:e.action})}}};return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}},[n,f]),a.useEffect(()=>{if(!e.data)return;let t={};return Object.entries(e.data).forEach(e=>{let[r,a]=e;t[r]=(0,o.a)(n.state,a)}),f({state:t})},[e.data,n.state,f]),(0,r.jsx)("div",{className:"contentkit-webframe",style:{aspectRatio:e.aspectRatio,...l},children:(0,r.jsx)("iframe",{ref:s,src:e.source.url,allowFullScreen:!0,allow:"clipboard-write",style:{position:"absolute",top:0,left:0,bottom:0,right:0,width:"100%",height:"100%",border:"none"}})})}},87374:function(t,e,n){"use strict";n.d(e,{D:function(){return i},l:function(){return a}});var r=n(2265);let a=r.createContext(null);function i(){let t=r.useContext(a);if(!t)throw Error("ContentKit component should be wrapped in <ContentKit>");return t}},73431:function(t,e,n){"use strict";function r(t,e){let n=t[e];return"string"==typeof n?n:"number"==typeof n?"".concat(n):void 0}n.d(e,{a:function(){return function t(e,n){if("string"==typeof n||"number"==typeof n||"boolean"==typeof n||void 0===n)return n;if(Array.isArray(n))return n.map(e=>t(localState,e));if("$state"in n&&"string"==typeof n.$state)return e[n.$state];let r={};return Object.entries(n).forEach(n=>{let[a,i]=n;r[a]=t(e,i)}),r}},g:function(){return r}})},15705:function(t,e,n){"use strict";function r(t){return a||(a=!0,n.e(128).then(n.t.bind(n,68128,23)).then(()=>{document.body.classList.add("katex-loaded")})),null}n.r(e),n.d(e,{default:function(){return r}});let a=!1},69526:function(t,e,n){"use strict";n.r(e),n.d(e,{MathJaXLazy:function(){return o}});var r=n(57437),a=n(2265);let i=a.lazy(()=>n.e(345).then(n.bind(n,345)));function o(t){return(0,r.jsx)(a.Suspense,{fallback:t.fallback,children:(0,r.jsx)(i,{...t})})}},62541:function(t,e,n){"use strict";n.r(e),n.d(e,{AnnotationPopover:function(){return s}});var r=n(57437),a=n(98345);n(2265);var i=n(21945),o=n(28310);function s(t){let{children:e,body:n}=t,s=(0,i.ZK)();return(0,r.jsxs)(a.fC,{children:[(0,r.jsx)(a.xz,{asChild:!0,children:(0,r.jsx)("button",{"data-testid":"annotation-button","aria-label":(0,i.Ff)(s,"annotation_button_label"),className:(0,o.t)("decoration-dotted","decoration-1","underline","underline-offset-2"),children:e})}),(0,r.jsx)(a.h_,{children:(0,r.jsxs)(a.VY,{className:(0,o.t)("text-sm","max-w-[280px]","bg-light","ring-1","ring-dark/2","rounded","shadow-1xs","shadow-dark/1","p-3","[&_p]:leading-snug","dark:bg-dark","dark:ring-light/2","dark:shadow-dark/4","-outline-offset-2","outline-2","outline-primary/8","z-20"),sideOffset:5,children:[n,(0,r.jsx)(a.Eh,{asChild:!0,children:(0,r.jsxs)("svg",{width:"100%",viewBox:"0 0 8 5",preserveAspectRatio:"xMaxYMid meet",className:(0,o.t)("relative","z-[2]","fill-light","stroke-dark/2","[paint-order:stroke_fill]","dark:fill-dark","dark:stroke-light/2"),fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("g",{"clip-path":"url(#clipAnnotation)",children:(0,r.jsx)("path",{d:"M0 0L4 4L8 0",strokeWidth:"2",strokeLinecap:"round",stroke:"inherit",fill:"inherit"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clipAnnotation",children:(0,r.jsx)("rect",{width:"8",height:"5",fill:"white"})})})]})})]})})]})}},37915:function(t,e,n){"use strict";n.r(e),n.d(e,{CopyCodeButton:function(){return s}});var r=n(57437),a=n(2265),i=n(21945),o=n(28310);function s(t){let{codeId:e,style:n}=t,s=(0,i.ZK)(),[l,c]=a.useState(!1);return a.useEffect(()=>{if(!l)return;let t=setTimeout(()=>{c(!1)},1e3);return()=>{clearTimeout(t)}},[l]),(0,r.jsx)("button",{onClick:()=>{let t=document.getElementById(e);t&&(navigator.clipboard.writeText(function(t){let e="",n=t=>{t instanceof HTMLBRElement?e+="\n":t instanceof HTMLSpanElement?t.classList.contains("ew")?e+="\n":e+=t.innerText:t instanceof HTMLElement?t.childNodes.forEach(n):e+=t.textContent};return n(t),e}(t)),c(!0))},className:(0,o.t)(n,"print:hidden"),children:(0,i.t)(s,l?"code_copied":"code_copy")})}},59524:function(t,e,n){"use strict";n.r(e),n.d(e,{DynamicTabs:function(){return o}});var r=n(57437),a=n(2265),i=n(28310);function o(t){let{tabs:e,style:n}=t,[o,s]=a.useState(e[0].id);return(0,r.jsxs)("div",{className:(0,i.t)("rounded-lg","straight-corners:rounded-sm","ring-1","ring-inset","ring-dark/3","flex","overflow-hidden","flex-col","dark:ring-light/2",n),children:[(0,r.jsx)("div",{role:"tablist",className:(0,i.t)("group/tabs","inline-flex","flex-row","self-stretch","after:flex-[1]","after:bg-dark-2/1","[&:has(button.active-tab:last-of-type):after]:rounded-bl-md","dark:after:bg-dark-1/5"),children:e.map(t=>(0,r.jsx)("button",{role:"tab","aria-selected":o===t.id,"aria-controls":"tabpanel-".concat(t.id),id:"tab-".concat(t.id),onClick:()=>{s(t.id)},className:(0,i.t)("[&:has(+_.active-tab)]:rounded-br-md","[.active-tab_+_&]:rounded-bl-md","[.active-tab_+_:after]:rounded-br-md","inline-block","text-sm","px-3.5","py-2","transition-[color]","font-[500]","relative","after:transition-colors","after:group-hover/tabs:border-transparent","after:border-r","after:absolute","after:left-[unset]","after:right-0","after:border-dark/4","after:top-[15%]","after:h-[70%]","after:w-[1px]","last:after:border-transparent","text-dark-2/7","bg-dark-2/1","dark:bg-dark-1/5","hover:text-dark-2","dark:text-light-3/8","dark:after:border-light/2","dark:hover:text-light-3","truncate","max-w-full",o===t.id?["shrink-0","active-tab","text-dark-2","bg-transparent","dark:text-light","dark:bg-transparent","after:[&.active-tab]:border-transparent","after:[:has(+_&.active-tab)]:border-transparent","after:[:has(&_+)]:border-transparent"]:null),children:t.title},t.id))}),e.map(t=>(0,r.jsx)("div",{role:"tabpanel",id:"tabpanel-".concat(t.id),"aria-labelledby":"tab-".concat(t.id),className:(0,i.t)("p-4",t.id!==o?"hidden":null),children:t.children},t.id))]})}},68438:function(t,e,n){"use strict";n.d(e,{y:function(){return a},j:function(){return o}});var r=n(2265);function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{rootMargin:n,threshold:a=.5}=e,[i,o]=r.useState(null),s=r.useRef(new Map);return r.useEffect(()=>{o(null);let e=new IntersectionObserver(t=>{t.forEach(t=>{let e=t.target.id;e&&s.current.set(e,t.isIntersecting&&t.intersectionRatio>=a)});let e=Array.from(s.current.entries()).find(t=>{let[,e]=t;return e});e&&o(e[0])},{rootMargin:n,threshold:a});return t.forEach(t=>{try{let n=document.getElementById(t);n&&e.observe(n)}catch(t){console.log(t)}}),()=>{e.disconnect()}},[t,a,n]),i}var i=n(47907);function o(){let t=(0,i.useParams)(),e=r.useCallback(()=>{let t=window.location.hash;if(t){let e=document.getElementById(t.slice(1));e&&e.scrollIntoView({block:"start",behavior:"smooth"})}},[]);r.useEffect(()=>{e()},[t,e])}},35851:function(){},62946:function(){},19092:function(){},70021:function(){},58473:function(){},35276:function(t){t.exports={olListItemBullet:"ListItem_olListItemBullet__9X19L"}},94043:function(t){t.exports={progressOpacitySharp:"table_progressOpacitySharp__gzaM5",progressContainer:"table_progressContainer__A4v1T",progressOpacity:"table_progressOpacity__vIKGt",opacityProgress:"table_opacityProgress__S08Gs",opacityProgressSharp:"table_opacityProgressSharp__2hfJ1",strokeOpacityProgressInverted:"table_strokeOpacityProgressInverted__H5kWC",progressSvg:"table_progressSvg__pg3ZZ",svgProgress:"table_svgProgress__Dqehn"}}}]);
//# sourceMappingURL=891-60060a98dc97a1ed.js.map
9 changes: 9 additions & 0 deletions script(1).js.download
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(function (doc, siteID) {
const sibling = doc.getElementsByTagName('script')[0];
const element = doc.createElement('script');
element.defer = true;
element.setAttribute('data-site', siteID);
element.setAttribute('data-spa', 'auto');
element.src = 'https://cdn.usefathom.com/script.js';
sibling.parentNode.insertBefore(element, sibling);
})(document, 'JBUOMVYC');
1 change: 1 addition & 0 deletions script(2).js.download
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/** no-op */

0 comments on commit b52e110

Please sign in to comment.