@gitton-dev/plugin-github-actions 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -2
- package/ui/assets/globals-CFvyylox.css +1 -0
- package/ui/assets/{globals-HRYV5wqq.js → globals-P_QulMCI.js} +16 -16
- package/ui/assets/{settings-DKH_26Iz.js → settings-CKiXsedS.js} +1 -1
- package/ui/assets/sidebar-6SpLapSO.js +222 -0
- package/ui/src/settings/index.html +3 -3
- package/ui/src/sidebar/index.html +3 -3
- package/ui/assets/globals-D1hrnaZq.css +0 -1
- package/ui/assets/sidebar-CIVC562A.js +0 -42
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>GitHub Actions Settings</title>
|
|
7
|
-
<script type="module" crossorigin src="../../assets/settings-
|
|
8
|
-
<link rel="modulepreload" crossorigin href="../../assets/globals-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="../../assets/globals-
|
|
7
|
+
<script type="module" crossorigin src="../../assets/settings-CKiXsedS.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="../../assets/globals-P_QulMCI.js">
|
|
9
|
+
<link rel="stylesheet" crossorigin href="../../assets/globals-CFvyylox.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>GitHub Actions</title>
|
|
7
|
-
<script type="module" crossorigin src="../../assets/sidebar-
|
|
8
|
-
<link rel="modulepreload" crossorigin href="../../assets/globals-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="../../assets/globals-
|
|
7
|
+
<script type="module" crossorigin src="../../assets/sidebar-6SpLapSO.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="../../assets/globals-P_QulMCI.js">
|
|
9
|
+
<link rel="stylesheet" crossorigin href="../../assets/globals-CFvyylox.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--ring: 0 0% 3.9%;--radius: .5rem}:root.dark,.dark{--background: 0 0% 3.9%;--foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--ring: 0 0% 83.1%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.visible{visibility:visible}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.w-16{width:4rem}.w-32{width:8rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-current{border-color:currentColor}.border-input{border-color:hsl(var(--input))}.border-transparent{border-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent\/20{background-color:hsl(var(--accent) / .2)}.bg-background{background-color:hsl(var(--background))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-green-500\/15{background-color:#22c55e26}.bg-muted{background-color:hsl(var(--muted))}.bg-primary{background-color:hsl(var(--primary))}.bg-red-500\/15{background-color:#ef444426}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-yellow-500\/15{background-color:#eab30826}.p-0\.5{padding:.125rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-4{padding-bottom:1rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media(prefers-color-scheme:dark){:root:not(.light){--background: 0 0% 3.9%;--foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--ring: 0 0% 83.1%}}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-accent\/30:hover{background-color:hsl(var(--accent) / .3)}.hover\:bg-accent\/50:hover{background-color:hsl(var(--accent) / .5)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media(prefers-color-scheme:dark){.dark\:text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import{c as h,r,j as e,a as B,B as F,b as v,E as z,C as P,d as G,R as E,e as M,f as T}from"./globals-HRYV5wqq.js";/**
|
|
2
|
-
* @license lucide-react v0.469.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const A=h("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
7
|
-
* @license lucide-react v0.469.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/const J=h("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
12
|
-
* @license lucide-react v0.469.0 - ISC
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the ISC license.
|
|
15
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const O=h("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
17
|
-
* @license lucide-react v0.469.0 - ISC
|
|
18
|
-
*
|
|
19
|
-
* This source code is licensed under the ISC license.
|
|
20
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const H=h("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
22
|
-
* @license lucide-react v0.469.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const U=h("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
27
|
-
* @license lucide-react v0.469.0 - ISC
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the ISC license.
|
|
30
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const D=h("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
32
|
-
* @license lucide-react v0.469.0 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const N=h("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
37
|
-
* @license lucide-react v0.469.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const V=h("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]),L=r.forwardRef(({className:t,children:a,...i},c)=>e.jsx("select",{className:B("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:c,...i,children:a}));L.displayName="Select";function X(t,a,i){const c=i.split("/").pop()||i;return`https://github.com/${t}/${a}/actions/workflows/${c}`}function K(t,a){return t==="in_progress"||t==="queued"||t==="pending"?e.jsx(N,{className:"w-4 h-4 text-yellow-500 animate-spin"}):a==="success"?e.jsx(P,{className:"w-4 h-4 text-green-500"}):a==="failure"?e.jsx(G,{className:"w-4 h-4 text-red-500"}):a==="cancelled"?e.jsx(H,{className:"w-4 h-4 text-gray-400"}):e.jsx(U,{className:"w-4 h-4 text-muted-foreground"})}function Q(t,a){return t==="in_progress"||t==="queued"||t==="pending"?"warning":a==="success"?"success":a==="failure"?"error":"muted"}function Y({workflow:t,repoOwner:a,repoName:i}){const[c,j]=r.useState(!1),[d,m]=r.useState([]),[k,y]=r.useState(!1),[p,n]=r.useState(!1),[l,b]=r.useState([]),[x,u]=r.useState(""),[g,C]=r.useState(!1),f=d[0];r.useEffect(()=>{t.hasDispatch&&l.length===0&&_()},[t.hasDispatch]);async function R(){if(!(d.length>0)){y(!0);try{const s=await window.gitton.gh.run(["api",`/repos/${a}/${i}/actions/workflows/${t.id}/runs`,"--jq",".workflow_runs[:5] | map({id, name, status, conclusion, run_number, created_at, html_url, head_branch})"]);s.success&&m(JSON.parse(s.stdout))}catch(s){console.error("Failed to load runs:",s)}finally{y(!1)}}}async function _(){if(!(l.length>0)){C(!0);try{const s=await window.gitton.gh.run(["api",`/repos/${a}/${i}/branches`,"--jq",".[].name"]);if(s.success){const w=s.stdout.trim().split(`
|
|
42
|
-
`).filter(Boolean);b(w),w.includes("main")?u("main"):w.includes("master")?u("master"):w.length>0&&u(w[0])}}catch(s){console.error("Failed to load branches:",s)}finally{C(!1)}}}async function q(){const s=!c;j(s),s&&await R()}async function I(){if(x){n(!0);try{const s=await window.gitton.gh.run(["workflow","run",t.path,"--ref",x,"-R",`${a}/${i}`]);s.success?(window.gitton.ui.showNotification(`Workflow "${t.name}" triggered on ${x}`),setTimeout(async()=>{m([]),await R()},2e3)):window.gitton.ui.showNotification(`Failed to trigger: ${s.stderr||s.error}`,"error")}catch(s){window.gitton.ui.showNotification(`Error: ${s}`,"error")}finally{n(!1)}}}function $(s){window.gitton.ui.openExternal(s)}function W(s){return new Date(s).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}return e.jsxs("div",{className:"border rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-2 p-4 hover:bg-accent/50 cursor-pointer",onClick:q,children:[e.jsx("button",{className:"p-0.5 hover:bg-accent rounded",children:c?e.jsx(A,{className:"w-4 h-4"}):e.jsx(J,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"font-medium truncate",children:t.name}),f&&e.jsx(F,{variant:Q(f.status,f.conclusion),children:f.conclusion||f.status})]}),e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:t.path})]}),e.jsx(v,{variant:"ghost",size:"icon",onClick:s=>{s.stopPropagation(),$(X(a,i,t.path))},title:"Open in GitHub",children:e.jsx(z,{className:"w-4 h-4"})})]}),t.hasDispatch&&e.jsxs("div",{className:"px-4 pb-4 flex items-center gap-2 border-t pt-3 bg-accent/20",children:[e.jsx(D,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}),g?e.jsx(N,{className:"w-4 h-4 animate-spin"}):e.jsxs(e.Fragment,{children:[e.jsx(L,{value:x,onChange:s=>u(s.target.value),className:"flex-1",children:l.map(s=>e.jsx("option",{value:s,children:s},s))}),e.jsxs(v,{size:"sm",onClick:s=>{s.stopPropagation(),I()},disabled:p||!x,children:[p?e.jsx(N,{className:"w-4 h-4 animate-spin mr-1"}):e.jsx(V,{className:"w-4 h-4 mr-1"}),"Run"]})]})]}),c&&e.jsx("div",{className:"border-t",children:k?e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(N,{className:"w-5 h-5 animate-spin text-muted-foreground"})}):d.length===0?e.jsx("div",{className:"text-center py-4 text-sm text-muted-foreground",children:"No runs yet"}):e.jsx("div",{className:"divide-y",children:d.map(s=>e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 hover:bg-accent/30 cursor-pointer",onClick:()=>$(s.html_url),children:[K(s.status,s.conclusion),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"text-sm font-medium",children:["#",s.run_number]}),e.jsx("span",{className:"text-xs text-muted-foreground truncate",children:s.head_branch})]})}),e.jsx("span",{className:"text-xs text-muted-foreground",children:W(s.created_at)})]},s.id))})})]})}function o({className:t,...a}){return e.jsx("div",{className:B("animate-pulse rounded-md bg-muted",t),...a})}function S(){return e.jsxs("div",{className:"border rounded-lg overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-2 p-4",children:[e.jsx(o,{className:"w-4 h-4 rounded"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(o,{className:"h-4 w-32"}),e.jsx(o,{className:"h-5 w-16 rounded-full"})]}),e.jsx(o,{className:"h-3 w-48"})]}),e.jsx(o,{className:"w-8 h-8 rounded"})]}),e.jsxs("div",{className:"px-4 pb-4 flex items-center gap-2 border-t pt-3 bg-accent/20",children:[e.jsx(o,{className:"w-4 h-4"}),e.jsx(o,{className:"h-9 flex-1"}),e.jsx(o,{className:"h-8 w-16"})]})]})}function Z(){return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(o,{className:"w-4 h-4"}),e.jsx(o,{className:"h-4 w-32"})]}),e.jsx(o,{className:"w-8 h-8 rounded"})]}),e.jsxs("div",{className:"flex-1 overflow-auto p-4 space-y-3",children:[e.jsx(S,{}),e.jsx(S,{}),e.jsx(S,{})]})]})}function ee(){const[t,a]=r.useState([]),[i,c]=r.useState(!0),[j,d]=r.useState(null),[m,k]=r.useState(null);async function y(){try{const n=await window.gitton.gh.run(["repo","view","--json","owner,name"]);if(n.success){const l=JSON.parse(n.stdout);return{owner:l.owner.login,name:l.name}}}catch(n){console.error("Failed to get repo info:",n)}return null}async function p(){c(!0),d(null);try{const n=await y();if(!n){d("Could not determine repository. Please open a GitHub repository."),c(!1);return}k(n);const l=await window.gitton.gh.run(["api",`/repos/${n.owner}/${n.name}/actions/workflows`,"--jq",".workflows | map({id, name, path, state, html_url})"]);if(!l.success){d(l.stderr||"Failed to fetch workflows"),c(!1);return}const b=JSON.parse(l.stdout),x=await Promise.all(b.map(async u=>{try{const g=await window.gitton.gh.run(["api",`/repos/${n.owner}/${n.name}/contents/${u.path}`,"--jq",".content"]);if(g.success){const f=atob(g.stdout.trim()).includes("workflow_dispatch");return{...u,hasDispatch:f}}}catch(g){console.error(`Failed to check dispatch for ${u.name}:`,g)}return{...u,hasDispatch:!1}}));a(x)}catch(n){d(n instanceof Error?n.message:"Unknown error occurred")}finally{c(!1)}}return r.useEffect(()=>{p()},[]),i?e.jsx(Z,{}):j?e.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 p-4",children:[e.jsx(O,{className:"w-8 h-8 text-destructive"}),e.jsx("p",{className:"text-sm text-center text-muted-foreground",children:j}),e.jsxs(v,{variant:"outline",size:"sm",onClick:p,children:[e.jsx(E,{className:"w-4 h-4 mr-2"}),"Retry"]})]}):e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{className:"w-4 h-4 text-muted-foreground"}),m&&e.jsxs("span",{className:"text-sm font-medium",children:[m.owner,"/",m.name]})]}),e.jsx(v,{variant:"ghost",size:"icon",onClick:p,title:"Refresh",children:e.jsx(E,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"flex-1 overflow-auto p-4 space-y-3",children:t.length===0?e.jsx("div",{className:"text-center py-8 text-sm text-muted-foreground",children:"No workflows found in this repository."}):t.map(n=>e.jsx(Y,{workflow:n,repoOwner:m.owner,repoName:m.name},n.id))})]})}M.createRoot(document.getElementById("root")).render(e.jsx(T.StrictMode,{children:e.jsx(ee,{})}));
|