Skip to content

Commit

Permalink
feat: git integration
Browse files Browse the repository at this point in the history
- Initilize git repository
- List untracked files
- Add files to staging area
  • Loading branch information
rahulyadav-57 committed Oct 4, 2024
1 parent 144af9d commit 111a6e4
Show file tree
Hide file tree
Showing 15 changed files with 741 additions and 29 deletions.
178 changes: 154 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"eslint": "^8.56.0",
"eslint-config-next": "13.1.6",
"eventemitter3": "^5.0.1",
"isomorphic-git": "^1.27.1",
"jsonwebtoken": "^9.0.0",
"lodash.clonedeep": "^4.5.0",
"mixpanel-browser": "^2.47.0",
Expand Down
79 changes: 79 additions & 0 deletions src/components/git/ManageGit/ManageGit.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
.root {
.collapse,
.collapsePanel {
background-color: transparent !important;
user-select: none;
}
.collapsePanel {
border: 0;

> div {
padding: 0 !important;
background: transparent !important;
}
.collapseHeader {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.action {
display: inline-flex;
cursor: pointer;
padding: 0.2rem;
background-color: var(--light-grey);
border-radius: 50%;
position: absolute;
right: -0.5rem;
&:hover {
background-color: var(--light-grey);
}
}
.fileItem {
opacity: 0.9;
display: flex;
align-items: center;
gap: 0.5rem;
justify-content: space-between;
position: relative;
&:hover {
.action {
visibility: visible;
}
}
.fileDetails {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.action {
visibility: hidden;
&:hover {
visibility: visible;
}
}
}
.filePath {
opacity: 0.6;
font-size: 0.8rem;
}
ul {
padding: 0;
list-style-type: none;
li {
border-left: 1px solid #d9d9d9;
padding-left: 0.9rem;
margin-left: 0.3rem;
}
}
div[class*='ant-collapse-content-box'] {
padding: 0;
}
div[class*='ant-collapse-header'] {
font-weight: 600;
}
div[class*='ant-collapse-expand-icon'] {
padding-inline-end: 5px;
}
}
}
Loading

0 comments on commit 111a6e4

Please sign in to comment.