git-history-ui 1.0.6 → 2.0.0
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/CHANGELOG.md +51 -0
- package/build/frontend/index.html +13 -10
- package/build/frontend/main-7AXSFTJM.js +11 -0
- package/build/frontend/styles-YQ73RJ2V.css +1 -0
- package/dist/backend/dev-server.d.ts +0 -1
- package/dist/backend/dev-server.js +8 -4
- package/dist/backend/dev-server.js.map +1 -1
- package/dist/backend/gitService.d.ts +24 -10
- package/dist/backend/gitService.js +340 -240
- package/dist/backend/gitService.js.map +1 -1
- package/dist/backend/server.d.ts +8 -2
- package/dist/backend/server.js +145 -112
- package/dist/backend/server.js.map +1 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +44 -22
- package/dist/cli.js.map +1 -1
- package/package.json +43 -27
- package/build/frontend/main-44CFNHDH.js +0 -8
- package/build/frontend/main-5GQESVK5.js +0 -8
- package/build/frontend/main-KMFUNYSW.js +0 -8
- package/build/frontend/main-YHO6NCZZ.js +0 -8
- package/build/frontend/styles-26JPPBSI.css +0 -1
- package/build/frontend/styles-J5I4DBTU.css +0 -1
- package/dist/__tests__/gitService.test.d.ts +0 -2
- package/dist/__tests__/gitService.test.d.ts.map +0 -1
- package/dist/__tests__/gitService.test.js +0 -435
- package/dist/__tests__/gitService.test.js.map +0 -1
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/__tests__/setup.js +0 -24
- package/dist/__tests__/setup.js.map +0 -1
- package/dist/backend/dev-server.d.ts.map +0 -1
- package/dist/backend/gitService.d.ts.map +0 -1
- package/dist/backend/server.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/config/paths.d.ts +0 -14
- package/dist/config/paths.d.ts.map +0 -1
- package/dist/config/paths.js +0 -35
- package/dist/config/paths.js.map +0 -1
|
@@ -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;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]){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::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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.relative{position:relative}.grid{display:grid}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-wrap{flex-wrap:wrap}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.border{border-width:1px}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.outline{outline-style:solid}.grayscale{--tw-grayscale: grayscale(100%);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)}.invert{--tw-invert: invert(100%);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)}.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{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;color:#333;background-color:#f8f9fa}@media (prefers-color-scheme: dark){body{background-color:#1a1a1a;color:#e0e0e0}}.dark,.dark body{background-color:#1a1a1a!important;color:#e0e0e0!important}.dark *{border-color:#404040!important}.dark .app-container{background-color:#1a1a1a;color:#e0e0e0}.dark .header{background-color:#2d2d2d;border-bottom-color:#404040}.dark .app-title{color:#e0e0e0}.dark .search-input{background-color:#404040;color:#e0e0e0;border-color:#555}.dark .search-input::placeholder{color:#9ca3af}.dark .filters{background-color:#2d2d2d;border-bottom-color:#404040}.dark .filter-select,.dark .filter-input{background-color:#404040;color:#e0e0e0;border-color:#555}.dark .main-content{background-color:#1a1a1a}.dark .commit-item{background-color:#2d2d2d;border-color:#404040}.dark .commit-hash{color:#9ca3af}.dark .commit-author{color:#d1d5db}.dark .commit-date{color:#9ca3af}.dark .commit-message{color:#e0e0e0}.dark input[type=date],.dark .date-picker,.dark .filter-input.date-picker{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark input[type=date]::-webkit-calendar-picker-indicator{filter:invert(1)!important}.dark input[type=date]::-webkit-datetime-edit{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-fields-wrapper{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-text{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-month-field,.dark input[type=date]::-webkit-datetime-edit-day-field,.dark input[type=date]::-webkit-datetime-edit-year-field{color:#e0e0e0!important}.dark .loading{color:#e0e0e0}.dark .graph-container{background-color:#2d2d2d!important;color:#e0e0e0!important}.dark svg{background-color:transparent!important}.dark .modal-title,.dark .modal-header .modal-title,.dark .modal-container .modal-title{color:#e0e0e0!important}.dark .header{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark .app-title{color:#e0e0e0!important}.dark .filters{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark input::placeholder{color:#9ca3af!important}.dark select{color:#e0e0e0!important}*,input,select,button{transition:background-color .2s ease,border-color .2s ease,color .2s ease}.dark .card,.dark .commit-item,.dark .modal-container,.dark .diff-viewer{background-color:#2d2d2d!important;color:#e0e0e0!important;border-color:#404040!important}.dark .btn{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark .btn:hover{background-color:#555!important}.dark .btn-primary{background-color:#3b82f6!important;color:#fff!important}.dark .btn-primary:hover{background-color:#2563eb!important}.dark .btn-secondary{background-color:#6b7280!important;color:#fff!important}.dark .btn-secondary:hover{background-color:#4b5563!important}.dark .file-item,.dark .diff-item{background-color:#404040!important;border-color:#555!important}.dark .section-title,.dark .commit-meta,.dark .commit-info{color:#e0e0e0!important}.dark .commit-hash{color:#9ca3af!important}.dark .commit-author{color:#d1d5db!important}.dark .commit-date{color:#9ca3af!important}.dark .commit-message{color:#e0e0e0!important}.dark .file-name,.dark .diff-file-name{color:#d1d5db!important}.dark .diff-stats{color:#9ca3af!important}.container{max-width:1200px;margin:0 auto;padding:0 1rem}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.space-x-4>*+*{margin-left:1rem}.space-y-4>*+*{margin-top:1rem}.btn{padding:.5rem 1rem;border:none;border-radius:.375rem;cursor:pointer;font-size:.875rem;transition:all .2s;margin-right:.5rem}.btn:last-child{margin-right:0}.flex.items-center{gap:.5rem}.btn-primary{background-color:#3b82f6;color:#fff}.btn-primary:hover{background-color:#2563eb}.btn-secondary{background-color:#6b7280;color:#fff}.btn-secondary:hover{background-color:#4b5563}.card{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1.5rem}.dark .card{background-color:#2d2d2d;color:#e0e0e0}.commit-node{cursor:pointer;transition:all .2s ease}.commit-node:hover{stroke-width:3px}.branch-line{stroke-width:2px}.diff-line{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4}.diff-line.added{background-color:#dcfce7;color:#166534}.diff-line.removed{background-color:#fee2e2;color:#991b1b}.dark .diff-line.added{background-color:#14532d;color:#bbf7d0}.dark .diff-line.removed{background-color:#7f1d1d;color:#fecaca}
|
|
@@ -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;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]){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::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}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.grid{display:grid}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-wrap{flex-wrap:wrap}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.border{border-width:1px}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);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)}.grayscale{--tw-grayscale: grayscale(100%);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)}.invert{--tw-invert: invert(100%);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)}.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)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;color:#333;background-color:#f8f9fa}@media (prefers-color-scheme: dark){body{background-color:#1a1a1a;color:#e0e0e0}}.dark,.dark body{background-color:#1a1a1a!important;color:#e0e0e0!important}.dark *{border-color:#404040!important}.dark .app-container{background-color:#1a1a1a;color:#e0e0e0}.dark .header{background-color:#2d2d2d;border-bottom-color:#404040}.dark .app-title{color:#e0e0e0}.dark .search-input{background-color:#404040;color:#e0e0e0;border-color:#555}.dark .search-input::placeholder{color:#9ca3af}.dark .filters{background-color:#2d2d2d;border-bottom-color:#404040}.dark .filter-select,.dark .filter-input{background-color:#404040;color:#e0e0e0;border-color:#555}.dark .main-content{background-color:#1a1a1a}.dark .commit-item{background-color:#2d2d2d;border-color:#404040}.dark .commit-hash{color:#9ca3af}.dark .commit-author{color:#d1d5db}.dark .commit-date{color:#9ca3af}.dark .commit-message{color:#e0e0e0}.dark input[type=date],.dark .date-picker,.dark .filter-input.date-picker{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark input[type=date]::-webkit-calendar-picker-indicator{filter:invert(1)!important}.dark input[type=date]::-webkit-datetime-edit{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-fields-wrapper{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-text{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-month-field,.dark input[type=date]::-webkit-datetime-edit-day-field,.dark input[type=date]::-webkit-datetime-edit-year-field{color:#e0e0e0!important}.dark .loading{color:#e0e0e0}.dark .graph-container{background-color:#2d2d2d!important;color:#e0e0e0!important}.dark svg{background-color:transparent!important}.dark .modal-title,.dark .modal-header .modal-title,.dark .modal-container .modal-title{color:#e0e0e0!important}.dark .header{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark .app-title{color:#e0e0e0!important}.dark .filters{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark input::placeholder{color:#9ca3af!important}.dark select{color:#e0e0e0!important}*,input,select,button{transition:background-color .2s ease,border-color .2s ease,color .2s ease}.dark .card,.dark .commit-item,.dark .modal-container,.dark .diff-viewer{background-color:#2d2d2d!important;color:#e0e0e0!important;border-color:#404040!important}.dark .btn{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark .btn:hover{background-color:#555!important}.dark .btn-primary{background-color:#3b82f6!important;color:#fff!important}.dark .btn-primary:hover{background-color:#2563eb!important}.dark .btn-secondary{background-color:#6b7280!important;color:#fff!important}.dark .btn-secondary:hover{background-color:#4b5563!important}.dark .file-item,.dark .diff-item{background-color:#404040!important;border-color:#555!important}.dark .section-title,.dark .commit-meta,.dark .commit-info{color:#e0e0e0!important}.dark .commit-hash{color:#9ca3af!important}.dark .commit-author{color:#d1d5db!important}.dark .commit-date{color:#9ca3af!important}.dark .commit-message{color:#e0e0e0!important}.dark .file-name,.dark .diff-file-name{color:#d1d5db!important}.dark .diff-stats{color:#9ca3af!important}.container{max-width:1200px;margin:0 auto;padding:0 1rem}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.space-x-4>*+*{margin-left:1rem}.space-y-4>*+*{margin-top:1rem}.btn{padding:.5rem 1rem;border:none;border-radius:.375rem;cursor:pointer;font-size:.875rem;transition:all .2s;margin-right:.5rem}.btn:last-child{margin-right:0}.flex.items-center{gap:.5rem}.btn-primary{background-color:#3b82f6;color:#fff}.btn-primary:hover{background-color:#2563eb}.btn-secondary{background-color:#6b7280;color:#fff}.btn-secondary:hover{background-color:#4b5563}.card{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1.5rem}.dark .card{background-color:#2d2d2d;color:#e0e0e0}.commit-node{cursor:pointer;transition:all .2s ease}.commit-node:hover{stroke-width:3px}.branch-line{stroke-width:2px}.diff-line{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4}.diff-line.added{background-color:#dcfce7;color:#166534}.diff-line.removed{background-color:#fee2e2;color:#991b1b}.dark .diff-line.added{background-color:#14532d;color:#bbf7d0}.dark .diff-line.removed{background-color:#7f1d1d;color:#fecaca}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gitService.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/gitService.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,435 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const gitService_1 = require("../backend/gitService");
|
|
4
|
-
// Mock simple-git
|
|
5
|
-
const mockGit = {
|
|
6
|
-
log: jest.fn(),
|
|
7
|
-
tags: jest.fn(),
|
|
8
|
-
branch: jest.fn(),
|
|
9
|
-
diff: jest.fn(),
|
|
10
|
-
raw: jest.fn(),
|
|
11
|
-
};
|
|
12
|
-
jest.mock('simple-git', () => {
|
|
13
|
-
return jest.fn(() => mockGit);
|
|
14
|
-
});
|
|
15
|
-
describe('GitService', () => {
|
|
16
|
-
let gitService;
|
|
17
|
-
beforeEach(() => {
|
|
18
|
-
gitService = new gitService_1.GitService();
|
|
19
|
-
jest.clearAllMocks();
|
|
20
|
-
});
|
|
21
|
-
describe('getCommits', () => {
|
|
22
|
-
it('should return an array of commits', async () => {
|
|
23
|
-
const mockCommits = [
|
|
24
|
-
{
|
|
25
|
-
hash: 'abc123',
|
|
26
|
-
date: '2024-01-01',
|
|
27
|
-
message: 'Test commit',
|
|
28
|
-
author_name: 'Test Author',
|
|
29
|
-
author_email: 'test@example.com',
|
|
30
|
-
refs: 'HEAD -> main',
|
|
31
|
-
body: '',
|
|
32
|
-
hash_abbrev: 'abc123',
|
|
33
|
-
tree: 'def456',
|
|
34
|
-
tree_abbrev: 'def456',
|
|
35
|
-
parent: 'ghi789',
|
|
36
|
-
parent_abbrev: 'ghi789'
|
|
37
|
-
}
|
|
38
|
-
];
|
|
39
|
-
mockGit.log.mockResolvedValue({ all: mockCommits });
|
|
40
|
-
mockGit.diff.mockResolvedValue('');
|
|
41
|
-
mockGit.branch.mockResolvedValue({ all: ['main'] });
|
|
42
|
-
mockGit.raw.mockResolvedValue('');
|
|
43
|
-
const commits = await gitService.getCommits();
|
|
44
|
-
expect(commits).toHaveProperty('commits');
|
|
45
|
-
expect(Array.isArray(commits.commits)).toBe(true);
|
|
46
|
-
expect(commits.commits.length).toBeGreaterThan(0);
|
|
47
|
-
expect(commits.commits[0]).toHaveProperty('hash');
|
|
48
|
-
expect(commits.commits[0]).toHaveProperty('author');
|
|
49
|
-
expect(commits.commits[0]).toHaveProperty('date');
|
|
50
|
-
expect(commits.commits[0]).toHaveProperty('message');
|
|
51
|
-
});
|
|
52
|
-
it('should respect the pageSize parameter', async () => {
|
|
53
|
-
const mockCommits = Array(3).fill(null).map((_, i) => ({
|
|
54
|
-
hash: `hash${i}`,
|
|
55
|
-
date: '2024-01-01',
|
|
56
|
-
message: `Commit ${i}`,
|
|
57
|
-
author_name: 'Test Author',
|
|
58
|
-
author_email: 'test@example.com',
|
|
59
|
-
refs: 'HEAD -> main',
|
|
60
|
-
body: '',
|
|
61
|
-
hash_abbrev: `hash${i}`,
|
|
62
|
-
tree: 'def456',
|
|
63
|
-
tree_abbrev: 'def456',
|
|
64
|
-
parent: 'ghi789',
|
|
65
|
-
parent_abbrev: 'ghi789'
|
|
66
|
-
}));
|
|
67
|
-
mockGit.log.mockResolvedValue({ all: mockCommits });
|
|
68
|
-
const result = await gitService.getCommits({ pageSize: 3 });
|
|
69
|
-
// The GitService should respect the pageSize parameter
|
|
70
|
-
expect(result.commits.length).toBe(3);
|
|
71
|
-
expect(result.pageSize).toBe(3);
|
|
72
|
-
});
|
|
73
|
-
it('should handle git log errors', async () => {
|
|
74
|
-
mockGit.log.mockRejectedValue(new Error('Git error'));
|
|
75
|
-
await expect(gitService.getCommits()).rejects.toThrow('Git error');
|
|
76
|
-
});
|
|
77
|
-
it('should handle empty commit list', async () => {
|
|
78
|
-
mockGit.log.mockResolvedValue({ all: [] });
|
|
79
|
-
const result = await gitService.getCommits();
|
|
80
|
-
expect(result).toHaveProperty('commits');
|
|
81
|
-
expect(Array.isArray(result.commits)).toBe(true);
|
|
82
|
-
expect(result.commits.length).toBe(0);
|
|
83
|
-
expect(result.total).toBe(0);
|
|
84
|
-
});
|
|
85
|
-
it('should handle file filter option', async () => {
|
|
86
|
-
const mockCommits = [
|
|
87
|
-
{
|
|
88
|
-
hash: 'abc123',
|
|
89
|
-
date: '2024-01-01',
|
|
90
|
-
message: 'Test commit',
|
|
91
|
-
author_name: 'Test Author',
|
|
92
|
-
author_email: 'test@example.com',
|
|
93
|
-
refs: 'HEAD -> main',
|
|
94
|
-
body: '',
|
|
95
|
-
hash_abbrev: 'abc123',
|
|
96
|
-
tree: 'def456',
|
|
97
|
-
tree_abbrev: 'def456',
|
|
98
|
-
parent: 'ghi789',
|
|
99
|
-
parent_abbrev: 'ghi789'
|
|
100
|
-
}
|
|
101
|
-
];
|
|
102
|
-
mockGit.log.mockResolvedValue({ all: mockCommits });
|
|
103
|
-
const result = await gitService.getCommits({ file: 'src/app.js' });
|
|
104
|
-
expect(result).toHaveProperty('commits');
|
|
105
|
-
expect(Array.isArray(result.commits)).toBe(true);
|
|
106
|
-
expect(result.commits.length).toBeGreaterThan(0);
|
|
107
|
-
});
|
|
108
|
-
it('should handle since filter option', async () => {
|
|
109
|
-
const mockCommits = [
|
|
110
|
-
{
|
|
111
|
-
hash: 'abc123',
|
|
112
|
-
date: '2024-01-01',
|
|
113
|
-
message: 'Test commit',
|
|
114
|
-
author_name: 'Test Author',
|
|
115
|
-
author_email: 'test@example.com',
|
|
116
|
-
refs: 'HEAD -> main',
|
|
117
|
-
body: '',
|
|
118
|
-
hash_abbrev: 'abc123',
|
|
119
|
-
tree: 'def456',
|
|
120
|
-
tree_abbrev: 'def456',
|
|
121
|
-
parent: 'ghi789',
|
|
122
|
-
parent_abbrev: 'ghi789'
|
|
123
|
-
}
|
|
124
|
-
];
|
|
125
|
-
mockGit.log.mockResolvedValue({ all: mockCommits });
|
|
126
|
-
const result = await gitService.getCommits({ since: 'v1.0.0' });
|
|
127
|
-
expect(result).toHaveProperty('commits');
|
|
128
|
-
expect(Array.isArray(result.commits)).toBe(true);
|
|
129
|
-
expect(result.commits.length).toBeGreaterThan(0);
|
|
130
|
-
});
|
|
131
|
-
it('should handle author filter option', async () => {
|
|
132
|
-
const mockCommits = [
|
|
133
|
-
{
|
|
134
|
-
hash: 'abc123',
|
|
135
|
-
date: '2024-01-01',
|
|
136
|
-
message: 'Test commit',
|
|
137
|
-
author_name: 'Test Author',
|
|
138
|
-
author_email: 'test@example.com',
|
|
139
|
-
refs: 'HEAD -> main',
|
|
140
|
-
body: '',
|
|
141
|
-
hash_abbrev: 'abc123',
|
|
142
|
-
tree: 'def456',
|
|
143
|
-
tree_abbrev: 'def456',
|
|
144
|
-
parent: 'ghi789',
|
|
145
|
-
parent_abbrev: 'ghi789'
|
|
146
|
-
}
|
|
147
|
-
];
|
|
148
|
-
mockGit.log.mockResolvedValue({ all: mockCommits });
|
|
149
|
-
mockGit.diff.mockResolvedValue('');
|
|
150
|
-
mockGit.branch.mockResolvedValue({ all: ['main'] });
|
|
151
|
-
mockGit.raw.mockResolvedValue('');
|
|
152
|
-
const result = await gitService.getCommits({ author: 'Test Author' });
|
|
153
|
-
expect(result).toHaveProperty('commits');
|
|
154
|
-
expect(Array.isArray(result.commits)).toBe(true);
|
|
155
|
-
expect(result.commits.length).toBeGreaterThan(0);
|
|
156
|
-
});
|
|
157
|
-
it('should handle private method errors gracefully', async () => {
|
|
158
|
-
const mockCommits = [
|
|
159
|
-
{
|
|
160
|
-
hash: 'abc123',
|
|
161
|
-
date: '2024-01-01',
|
|
162
|
-
message: 'Test commit',
|
|
163
|
-
author_name: 'Test Author',
|
|
164
|
-
author_email: 'test@example.com',
|
|
165
|
-
refs: 'HEAD -> main',
|
|
166
|
-
body: '',
|
|
167
|
-
hash_abbrev: 'abc123',
|
|
168
|
-
tree: 'def456',
|
|
169
|
-
tree_abbrev: 'def456',
|
|
170
|
-
parent: 'ghi789',
|
|
171
|
-
parent_abbrev: 'ghi789'
|
|
172
|
-
}
|
|
173
|
-
];
|
|
174
|
-
mockGit.log.mockResolvedValue({ all: mockCommits });
|
|
175
|
-
mockGit.diff.mockRejectedValue(new Error('Diff error'));
|
|
176
|
-
mockGit.branch.mockRejectedValue(new Error('Branch error'));
|
|
177
|
-
mockGit.raw.mockRejectedValue(new Error('Tag error'));
|
|
178
|
-
const result = await gitService.getCommits();
|
|
179
|
-
expect(result).toHaveProperty('commits');
|
|
180
|
-
expect(Array.isArray(result.commits)).toBe(true);
|
|
181
|
-
expect(result.commits.length).toBeGreaterThan(0);
|
|
182
|
-
expect(result.commits[0].files).toEqual([]);
|
|
183
|
-
expect(result.commits[0].branches).toEqual([]);
|
|
184
|
-
expect(result.commits[0].tags).toEqual([]);
|
|
185
|
-
});
|
|
186
|
-
it('should handle non-Error exceptions', async () => {
|
|
187
|
-
mockGit.log.mockRejectedValue('String error');
|
|
188
|
-
await expect(gitService.getCommits()).rejects.toThrow('Failed to get commits: Unknown error');
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
describe('getTags', () => {
|
|
192
|
-
it('should return an array of tags', async () => {
|
|
193
|
-
const mockTags = ['v1.0.0', 'v1.1.0', 'v2.0.0'];
|
|
194
|
-
mockGit.tags.mockResolvedValue({ all: mockTags });
|
|
195
|
-
const tags = await gitService.getTags();
|
|
196
|
-
expect(Array.isArray(tags)).toBe(true);
|
|
197
|
-
expect(tags).toEqual(mockTags);
|
|
198
|
-
});
|
|
199
|
-
it('should handle git tags errors', async () => {
|
|
200
|
-
mockGit.tags.mockRejectedValue(new Error('Git tags error'));
|
|
201
|
-
await expect(gitService.getTags()).rejects.toThrow('Git tags error');
|
|
202
|
-
});
|
|
203
|
-
it('should handle empty tags list', async () => {
|
|
204
|
-
mockGit.tags.mockResolvedValue({ all: [] });
|
|
205
|
-
const tags = await gitService.getTags();
|
|
206
|
-
expect(Array.isArray(tags)).toBe(true);
|
|
207
|
-
expect(tags.length).toBe(0);
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
describe('getBranches', () => {
|
|
211
|
-
it('should return an array of branches', async () => {
|
|
212
|
-
const mockBranches = ['main', 'develop', 'feature/test'];
|
|
213
|
-
mockGit.branch.mockResolvedValue({ all: mockBranches });
|
|
214
|
-
const branches = await gitService.getBranches();
|
|
215
|
-
expect(Array.isArray(branches)).toBe(true);
|
|
216
|
-
expect(branches).toEqual(mockBranches);
|
|
217
|
-
});
|
|
218
|
-
it('should handle git branch errors', async () => {
|
|
219
|
-
mockGit.branch.mockRejectedValue(new Error('Git branch error'));
|
|
220
|
-
await expect(gitService.getBranches()).rejects.toThrow('Git branch error');
|
|
221
|
-
});
|
|
222
|
-
it('should handle empty branches list', async () => {
|
|
223
|
-
mockGit.branch.mockResolvedValue({ all: [] });
|
|
224
|
-
const branches = await gitService.getBranches();
|
|
225
|
-
expect(Array.isArray(branches)).toBe(true);
|
|
226
|
-
expect(branches.length).toBe(0);
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
describe('getDiff', () => {
|
|
230
|
-
it('should return diff for a commit', async () => {
|
|
231
|
-
const mockDiff = 'diff --git a/file.js b/file.js\nindex 123..456 100644\n--- a/file.js\n+++ b/file.js\n@@ -1,3 +1,4 @@\n line1\n+line2\n line3';
|
|
232
|
-
mockGit.diff.mockResolvedValue(mockDiff);
|
|
233
|
-
const diff = await gitService.getDiff('abc123');
|
|
234
|
-
expect(Array.isArray(diff)).toBe(true);
|
|
235
|
-
expect(diff.length).toBeGreaterThan(0);
|
|
236
|
-
expect(diff[0]).toHaveProperty('file');
|
|
237
|
-
expect(diff[0]).toHaveProperty('additions');
|
|
238
|
-
expect(diff[0]).toHaveProperty('deletions');
|
|
239
|
-
expect(diff[0]).toHaveProperty('changes');
|
|
240
|
-
});
|
|
241
|
-
it('should handle git diff errors', async () => {
|
|
242
|
-
mockGit.diff.mockRejectedValue(new Error('Git diff error'));
|
|
243
|
-
await expect(gitService.getDiff('abc123')).rejects.toThrow('Git diff error');
|
|
244
|
-
});
|
|
245
|
-
it('should handle empty diff', async () => {
|
|
246
|
-
mockGit.diff.mockResolvedValue('');
|
|
247
|
-
const diff = await gitService.getDiff('abc123');
|
|
248
|
-
expect(Array.isArray(diff)).toBe(true);
|
|
249
|
-
expect(diff.length).toBe(0);
|
|
250
|
-
});
|
|
251
|
-
it('should parse complex diff with multiple files', async () => {
|
|
252
|
-
const mockDiff = `diff --git a/file1.js b/file1.js
|
|
253
|
-
index 123..456 100644
|
|
254
|
-
--- a/file1.js
|
|
255
|
-
+++ b/file1.js
|
|
256
|
-
@@ -1,3 +1,4 @@
|
|
257
|
-
line1
|
|
258
|
-
+line2
|
|
259
|
-
line3
|
|
260
|
-
diff --git a/file2.js b/file2.js
|
|
261
|
-
index 789..012 100644
|
|
262
|
-
--- a/file2.js
|
|
263
|
-
+++ b/file2.js
|
|
264
|
-
@@ -1,2 +1,3 @@
|
|
265
|
-
old1
|
|
266
|
-
+new1
|
|
267
|
-
old2`;
|
|
268
|
-
mockGit.diff.mockResolvedValue(mockDiff);
|
|
269
|
-
const diff = await gitService.getDiff('abc123');
|
|
270
|
-
expect(Array.isArray(diff)).toBe(true);
|
|
271
|
-
expect(diff.length).toBe(2);
|
|
272
|
-
expect(diff[0].file).toBe('file1.js');
|
|
273
|
-
expect(diff[1].file).toBe('file2.js');
|
|
274
|
-
});
|
|
275
|
-
it('should handle diff with no file match', async () => {
|
|
276
|
-
const mockDiff = 'diff --git a/ b/\nindex 123..456 100644\n--- a/\n+++ b/';
|
|
277
|
-
mockGit.diff.mockResolvedValue(mockDiff);
|
|
278
|
-
const diff = await gitService.getDiff('abc123');
|
|
279
|
-
expect(Array.isArray(diff)).toBe(true);
|
|
280
|
-
expect(diff.length).toBeGreaterThan(0);
|
|
281
|
-
expect(diff[0].file).toBe('');
|
|
282
|
-
});
|
|
283
|
-
it('should handle diff with context lines and headers', async () => {
|
|
284
|
-
const mockDiff = `diff --git a/file.js b/file.js
|
|
285
|
-
index 123..456 100644
|
|
286
|
-
--- a/file.js
|
|
287
|
-
+++ b/file.js
|
|
288
|
-
@@ -1,3 +1,4 @@
|
|
289
|
-
line1
|
|
290
|
-
+line2
|
|
291
|
-
line3
|
|
292
|
-
unchanged line`;
|
|
293
|
-
mockGit.diff.mockResolvedValue(mockDiff);
|
|
294
|
-
const diff = await gitService.getDiff('abc123');
|
|
295
|
-
expect(Array.isArray(diff)).toBe(true);
|
|
296
|
-
expect(diff.length).toBeGreaterThan(0);
|
|
297
|
-
});
|
|
298
|
-
it('should handle diff with only deletions', async () => {
|
|
299
|
-
const mockDiff = `diff --git a/file.js b/file.js
|
|
300
|
-
index 123..456 100644
|
|
301
|
-
--- a/file.js
|
|
302
|
-
+++ b/file.js
|
|
303
|
-
@@ -1,3 +1,2 @@
|
|
304
|
-
line1
|
|
305
|
-
-line2
|
|
306
|
-
line3`;
|
|
307
|
-
mockGit.diff.mockResolvedValue(mockDiff);
|
|
308
|
-
const diff = await gitService.getDiff('abc123');
|
|
309
|
-
expect(Array.isArray(diff)).toBe(true);
|
|
310
|
-
expect(diff.length).toBeGreaterThan(0);
|
|
311
|
-
expect(diff[0].deletions).toBeGreaterThan(0);
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
describe('getCommit', () => {
|
|
315
|
-
it('should return a single commit', async () => {
|
|
316
|
-
const mockCommit = {
|
|
317
|
-
hash: 'abc123',
|
|
318
|
-
date: '2024-01-01',
|
|
319
|
-
message: 'Test commit',
|
|
320
|
-
author_name: 'Test Author',
|
|
321
|
-
author_email: 'test@example.com',
|
|
322
|
-
refs: 'HEAD -> main',
|
|
323
|
-
body: '',
|
|
324
|
-
hash_abbrev: 'abc123',
|
|
325
|
-
tree: 'def456',
|
|
326
|
-
tree_abbrev: 'def456',
|
|
327
|
-
parent: 'ghi789',
|
|
328
|
-
parent_abbrev: 'ghi789'
|
|
329
|
-
};
|
|
330
|
-
mockGit.log.mockResolvedValue({ all: [mockCommit] });
|
|
331
|
-
const commit = await gitService.getCommit('abc123');
|
|
332
|
-
expect(commit).toHaveProperty('hash', 'abc123');
|
|
333
|
-
expect(commit).toHaveProperty('author', 'Test Author');
|
|
334
|
-
expect(commit).toHaveProperty('date', '2024-01-01');
|
|
335
|
-
expect(commit).toHaveProperty('message', 'Test commit');
|
|
336
|
-
});
|
|
337
|
-
it('should handle commit not found', async () => {
|
|
338
|
-
mockGit.log.mockResolvedValue({ all: [] });
|
|
339
|
-
await expect(gitService.getCommit('nonexistent')).rejects.toThrow('Commit not found');
|
|
340
|
-
});
|
|
341
|
-
it('should handle git log errors', async () => {
|
|
342
|
-
mockGit.log.mockRejectedValue(new Error('Git error'));
|
|
343
|
-
await expect(gitService.getCommit('abc123')).rejects.toThrow('Git error');
|
|
344
|
-
});
|
|
345
|
-
it('should handle non-Error exceptions', async () => {
|
|
346
|
-
mockGit.log.mockRejectedValue('String error');
|
|
347
|
-
await expect(gitService.getCommit('abc123')).rejects.toThrow('Failed to get commit: Unknown error');
|
|
348
|
-
});
|
|
349
|
-
});
|
|
350
|
-
describe('getBlame', () => {
|
|
351
|
-
it('should return blame information for a file', async () => {
|
|
352
|
-
const mockBlame = 'abc123 1 1 1\nauthor Test Author\n\tline1';
|
|
353
|
-
mockGit.raw.mockResolvedValue(mockBlame);
|
|
354
|
-
const blame = await gitService.getBlame('test.js');
|
|
355
|
-
expect(Array.isArray(blame)).toBe(true);
|
|
356
|
-
expect(blame.length).toBeGreaterThan(0);
|
|
357
|
-
expect(blame[0]).toHaveProperty('hash');
|
|
358
|
-
expect(blame[0]).toHaveProperty('author');
|
|
359
|
-
expect(blame[0]).toHaveProperty('line');
|
|
360
|
-
expect(blame[0]).toHaveProperty('content');
|
|
361
|
-
});
|
|
362
|
-
it('should handle git blame errors', async () => {
|
|
363
|
-
mockGit.raw.mockRejectedValue(new Error('Git blame error'));
|
|
364
|
-
await expect(gitService.getBlame('test.js')).rejects.toThrow('Git blame error');
|
|
365
|
-
});
|
|
366
|
-
it('should handle empty blame', async () => {
|
|
367
|
-
mockGit.raw.mockResolvedValue('');
|
|
368
|
-
const blame = await gitService.getBlame('test.js');
|
|
369
|
-
expect(Array.isArray(blame)).toBe(true);
|
|
370
|
-
expect(blame.length).toBe(0);
|
|
371
|
-
});
|
|
372
|
-
it('should handle non-Error exceptions', async () => {
|
|
373
|
-
mockGit.raw.mockRejectedValue('String error');
|
|
374
|
-
await expect(gitService.getBlame('test.js')).rejects.toThrow('Failed to get blame: Unknown error');
|
|
375
|
-
});
|
|
376
|
-
it('should parse blame with author-time', async () => {
|
|
377
|
-
const mockBlame = `abc123 1 1 1
|
|
378
|
-
author Test Author
|
|
379
|
-
author-time 1640995200
|
|
380
|
-
\tline1`;
|
|
381
|
-
mockGit.raw.mockResolvedValue(mockBlame);
|
|
382
|
-
const blame = await gitService.getBlame('test.js');
|
|
383
|
-
expect(Array.isArray(blame)).toBe(true);
|
|
384
|
-
expect(blame.length).toBeGreaterThan(0);
|
|
385
|
-
expect(blame[0]).toHaveProperty('date');
|
|
386
|
-
});
|
|
387
|
-
it('should parse blame without author-time', async () => {
|
|
388
|
-
const mockBlame = `abc123 1 1 1
|
|
389
|
-
author Test Author
|
|
390
|
-
\tline1`;
|
|
391
|
-
mockGit.raw.mockResolvedValue(mockBlame);
|
|
392
|
-
const blame = await gitService.getBlame('test.js');
|
|
393
|
-
expect(Array.isArray(blame)).toBe(true);
|
|
394
|
-
expect(blame.length).toBeGreaterThan(0);
|
|
395
|
-
expect(blame[0]).toHaveProperty('date');
|
|
396
|
-
});
|
|
397
|
-
it('should handle malformed blame data', async () => {
|
|
398
|
-
const mockBlame = 'invalid blame data without proper format';
|
|
399
|
-
mockGit.raw.mockResolvedValue(mockBlame);
|
|
400
|
-
const blame = await gitService.getBlame('test.js');
|
|
401
|
-
expect(Array.isArray(blame)).toBe(true);
|
|
402
|
-
expect(blame.length).toBe(0);
|
|
403
|
-
});
|
|
404
|
-
it('should parse blame with multiple lines and complete properly', async () => {
|
|
405
|
-
const mockBlame = `abc123 1 1 1
|
|
406
|
-
author Test Author
|
|
407
|
-
author-time 1640995200
|
|
408
|
-
\tline1
|
|
409
|
-
def456 2 2 1
|
|
410
|
-
author Another Author
|
|
411
|
-
\tline2`;
|
|
412
|
-
mockGit.raw.mockResolvedValue(mockBlame);
|
|
413
|
-
const blame = await gitService.getBlame('test.js');
|
|
414
|
-
expect(Array.isArray(blame)).toBe(true);
|
|
415
|
-
expect(blame.length).toBe(2);
|
|
416
|
-
expect(blame[0].hash).toBe('abc123');
|
|
417
|
-
expect(blame[1].hash).toBe('def456');
|
|
418
|
-
});
|
|
419
|
-
});
|
|
420
|
-
describe('Error handling', () => {
|
|
421
|
-
it('should handle non-Error exceptions in getTags', async () => {
|
|
422
|
-
mockGit.tags.mockRejectedValue('String error');
|
|
423
|
-
await expect(gitService.getTags()).rejects.toThrow('Failed to get tags: Unknown error');
|
|
424
|
-
});
|
|
425
|
-
it('should handle non-Error exceptions in getBranches', async () => {
|
|
426
|
-
mockGit.branch.mockRejectedValue('String error');
|
|
427
|
-
await expect(gitService.getBranches()).rejects.toThrow('Failed to get branches: Unknown error');
|
|
428
|
-
});
|
|
429
|
-
it('should handle non-Error exceptions in getDiff', async () => {
|
|
430
|
-
mockGit.diff.mockRejectedValue('String error');
|
|
431
|
-
await expect(gitService.getDiff('abc123')).rejects.toThrow('Failed to get diff: Unknown error');
|
|
432
|
-
});
|
|
433
|
-
});
|
|
434
|
-
});
|
|
435
|
-
//# sourceMappingURL=gitService.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gitService.test.js","sourceRoot":"","sources":["../../src/__tests__/gitService.test.ts"],"names":[],"mappings":";;AAAA,sDAAmD;AAEnD,kBAAkB;AAClB,MAAM,OAAO,GAAG;IACd,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE;IACd,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;IACf,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;IACjB,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;IACf,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE;CACf,CAAC;AAEF,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,EAAE;IAC3B,OAAO,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,UAAsB,CAAC;IAE3B,UAAU,CAAC,GAAG,EAAE;QACd,UAAU,GAAG,IAAI,uBAAU,EAAE,CAAC;QAC9B,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;QAC1B,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;YACjD,MAAM,WAAW,GAAG;gBAClB;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,YAAY;oBAClB,OAAO,EAAE,aAAa;oBACtB,WAAW,EAAE,aAAa;oBAC1B,YAAY,EAAE,kBAAkB;oBAChC,IAAI,EAAE,cAAc;oBACpB,IAAI,EAAE,EAAE;oBACR,WAAW,EAAE,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,QAAQ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EAAE,CAAC,+CAA+C,EAAE,KAAK,IAAI,EAAE;YAC7D,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;YAE/C,MAAM,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,mCAAmC,CAAC,CAAC;QAClG,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/__tests__/setup.ts"],"names":[],"mappings":""}
|
package/dist/__tests__/setup.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// Test setup file
|
|
4
|
-
const globals_1 = require("@jest/globals");
|
|
5
|
-
// Mock console methods to reduce noise in tests
|
|
6
|
-
global.console = {
|
|
7
|
-
...console,
|
|
8
|
-
log: globals_1.jest.fn(),
|
|
9
|
-
debug: globals_1.jest.fn(),
|
|
10
|
-
info: globals_1.jest.fn(),
|
|
11
|
-
warn: globals_1.jest.fn(),
|
|
12
|
-
error: globals_1.jest.fn(),
|
|
13
|
-
};
|
|
14
|
-
// Mock process.exit to prevent tests from exiting
|
|
15
|
-
process.exit = globals_1.jest.fn();
|
|
16
|
-
// Set test timeout
|
|
17
|
-
globals_1.jest.setTimeout(10000);
|
|
18
|
-
// Add a simple test to satisfy Jest requirements
|
|
19
|
-
describe('Setup', () => {
|
|
20
|
-
it('should be configured correctly', () => {
|
|
21
|
-
expect(true).toBe(true);
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
//# sourceMappingURL=setup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/__tests__/setup.ts"],"names":[],"mappings":";;AAAA,kBAAkB;AAClB,2CAAqC;AAErC,gDAAgD;AAChD,MAAM,CAAC,OAAO,GAAG;IACf,GAAG,OAAO;IACV,GAAG,EAAE,cAAI,CAAC,EAAE,EAAE;IACd,KAAK,EAAE,cAAI,CAAC,EAAE,EAAE;IAChB,IAAI,EAAE,cAAI,CAAC,EAAE,EAAE;IACf,IAAI,EAAE,cAAI,CAAC,EAAE,EAAE;IACf,KAAK,EAAE,cAAI,CAAC,EAAE,EAAE;CACjB,CAAC;AAEF,kDAAkD;AAClD,OAAO,CAAC,IAAI,GAAG,cAAI,CAAC,EAAE,EAAS,CAAC;AAEhC,mBAAmB;AACnB,cAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAEvB,iDAAiD;AACjD,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACrB,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../src/backend/dev-server.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gitService.d.ts","sourceRoot":"","sources":["../../src/backend/gitService.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,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CAAC,SAAS;IA2CjB,OAAO,CAAC,UAAU;CAmCnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/backend/server.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,WAAW,CAC/B,IAAI,GAAE,MAAa,EACnB,IAAI,GAAE,MAAoB,EAC1B,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM,iBAuIrC"}
|
package/dist/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/config/paths.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface PathConfig {
|
|
2
|
-
publicPath: string;
|
|
3
|
-
frontendPath: string;
|
|
4
|
-
frontendIndexPath: string;
|
|
5
|
-
distPath: string;
|
|
6
|
-
srcPath: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function getPathConfig(): PathConfig;
|
|
9
|
-
export declare function getTailwindPaths(): string[];
|
|
10
|
-
export declare function getBuildPaths(): {
|
|
11
|
-
input: string;
|
|
12
|
-
output: string;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/config/paths.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,aAAa,IAAI,UAAU,CAU1C;AAED,wBAAgB,gBAAgB,IAAI,MAAM,EAAE,CAQ3C;AAED,wBAAgB,aAAa,IAAI;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAOjE"}
|
package/dist/config/paths.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getPathConfig = getPathConfig;
|
|
7
|
-
exports.getTailwindPaths = getTailwindPaths;
|
|
8
|
-
exports.getBuildPaths = getBuildPaths;
|
|
9
|
-
const path_1 = __importDefault(require("path"));
|
|
10
|
-
function getPathConfig() {
|
|
11
|
-
const cwd = process.cwd();
|
|
12
|
-
return {
|
|
13
|
-
publicPath: process.env.PUBLIC_PATH || path_1.default.join(cwd, 'public'),
|
|
14
|
-
frontendPath: process.env.FRONTEND_PATH || path_1.default.join(cwd, 'frontend', 'dist', 'frontend', 'browser'),
|
|
15
|
-
frontendIndexPath: process.env.FRONTEND_INDEX_PATH || path_1.default.join(cwd, 'frontend', 'dist', 'frontend', 'browser', 'index.html'),
|
|
16
|
-
distPath: process.env.DIST_PATH || path_1.default.join(cwd, 'dist'),
|
|
17
|
-
srcPath: process.env.SRC_PATH || path_1.default.join(cwd, 'src')
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function getTailwindPaths() {
|
|
21
|
-
const cwd = process.cwd();
|
|
22
|
-
return [
|
|
23
|
-
process.env.TAILWIND_PUBLIC_PATH || path_1.default.join(cwd, 'public', '**', '*.{html,js}'),
|
|
24
|
-
process.env.TAILWIND_SRC_PATH || path_1.default.join(cwd, 'src', '**', '*.{html,ts,js}'),
|
|
25
|
-
process.env.TAILWIND_FRONTEND_PATH || path_1.default.join(cwd, 'frontend', 'src', '**', '*.{html,ts,js}')
|
|
26
|
-
];
|
|
27
|
-
}
|
|
28
|
-
function getBuildPaths() {
|
|
29
|
-
const cwd = process.cwd();
|
|
30
|
-
return {
|
|
31
|
-
input: process.env.BUILD_INPUT_PATH || path_1.default.join(cwd, 'public', 'styles.css'),
|
|
32
|
-
output: process.env.BUILD_OUTPUT_PATH || path_1.default.join(cwd, 'public', 'tailwind.css')
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=paths.js.map
|