Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
bb11a53
Merge conflict
isc-svelury Oct 11, 2021
dac2741
Merge conflict
isc-svelury Oct 11, 2021
49e0770
Create testfile.md
isc-svelury Oct 5, 2021
2ed3dd9
Merge conflict
isc-svelury Oct 11, 2021
29e3748
Update testfile.md
isc-svelury Oct 5, 2021
957e020
Adding mappins is possible from the project page
isc-svelury Oct 12, 2021
f2b7362
Merge conflict
isc-svelury Oct 11, 2021
1b888fc
Create testfile.md
isc-svelury Oct 5, 2021
6a6eec1
Merge conflict
isc-svelury Oct 11, 2021
7de9903
Update testfile.md
isc-svelury Oct 5, 2021
8eba028
Adding mappins is possible from the project page
isc-svelury Oct 12, 2021
750ad3c
Changed add button UX
isc-svelury Oct 13, 2021
91d9898
Refactoring
isc-svelury Oct 13, 2021
b671568
Mappings is a MultiDimensional property
isc-svelury Oct 13, 2021
4dbef2a
Merge conflict
isc-svelury Oct 13, 2021
b339dc2
More merge conflicts
isc-svelury Oct 13, 2021
a22b844
Update to latest bootstrap, jquery, popper versions
isc-tleavitt Oct 13, 2021
2e4377b
Fixed UI errors + minimal look
isc-svelury Oct 13, 2021
0c49749
Minor UI updates
isc-svelury Oct 13, 2021
43bc3d3
Updated buttons
isc-svelury Oct 14, 2021
cffa1fd
Update to latest bootstrap, jquery, popper versions
isc-tleavitt Oct 13, 2021
08682b3
Fixed UI errors + minimal look
isc-svelury Oct 13, 2021
04bca05
Minor UI updates
isc-svelury Oct 13, 2021
48efda0
Updated buttons
isc-svelury Oct 14, 2021
faa5e88
Minor updates
isc-svelury Oct 14, 2021
9cfb1e5
Merge branch 'update-settings' of ssh://ssh.github.com:443/intersyste…
isc-svelury Oct 14, 2021
afce054
Merge conflict
isc-svelury Oct 11, 2021
7a4e479
Create testfile.md
isc-svelury Oct 5, 2021
5f96767
Merge conflict
isc-svelury Oct 11, 2021
f50eed9
Update testfile.md
isc-svelury Oct 5, 2021
33cac50
Adding mappins is possible from the project page
isc-svelury Oct 12, 2021
03f5457
Changed add button UX
isc-svelury Oct 13, 2021
6eb3742
Refactoring
isc-svelury Oct 13, 2021
fa9d5e2
Mappings is a MultiDimensional property
isc-svelury Oct 13, 2021
5eeb205
Update to latest bootstrap, jquery, popper versions
isc-tleavitt Oct 13, 2021
e8fa99d
Fixed UI errors + minimal look
isc-svelury Oct 13, 2021
bcab31b
Minor UI updates
isc-svelury Oct 13, 2021
d87f5f6
Updated buttons
isc-svelury Oct 14, 2021
64a2139
Minor updates
isc-svelury Oct 14, 2021
3286ac8
Fixed UI errors + minimal look
isc-svelury Oct 13, 2021
bce157b
Minor UI updates
isc-svelury Oct 13, 2021
d041a3c
Merge conflicts
isc-svelury Oct 14, 2021
690da78
More merge conflicts
isc-svelury Oct 14, 2021
03b7ca0
Delete testfile.md
isc-svelury Oct 14, 2021
be69adf
Merge branch 'update-settings' of ssh://ssh.github.com:443/intersyste…
isc-svelury Oct 14, 2021
1f37c9a
Added back the copyright
isc-svelury Oct 14, 2021
e405ac7
UI changes to fix either broken things or make it look more it war be…
isc-svelury Oct 14, 2021
ed895ff
Can create a new branch and switch to a new branch from VS Code and S…
isc-svelury Oct 18, 2021
a8cf68a
Removed errant comment
isc-svelury Oct 19, 2021
0d8d2cd
UI for new branch
isc-svelury Oct 19, 2021
d4c01d8
New branches created using web UI
isc-svelury Oct 19, 2021
949c600
UI for switching and deleting branches
isc-svelury Oct 21, 2021
6f4d225
Merge conflict
isc-svelury Oct 11, 2021
d8e2b80
Create testfile.md
isc-svelury Oct 5, 2021
1591c41
Merge conflict
isc-svelury Oct 11, 2021
d696207
Update testfile.md
isc-svelury Oct 5, 2021
188141c
Adding mappins is possible from the project page
isc-svelury Oct 12, 2021
41dd7d6
Changed add button UX
isc-svelury Oct 13, 2021
295dc0e
Refactoring
isc-svelury Oct 13, 2021
85e51a4
Mappings is a MultiDimensional property
isc-svelury Oct 13, 2021
b0cb6b7
Fixed UI errors + minimal look
isc-svelury Oct 13, 2021
0904bb5
Fixed UI errors + minimal look
isc-svelury Oct 13, 2021
ac1e357
Minor UI updates
isc-svelury Oct 13, 2021
4d2a641
Changed add button UX
isc-svelury Oct 13, 2021
faafed0
Refactoring
isc-svelury Oct 13, 2021
ff8f400
Mappings is a MultiDimensional property
isc-svelury Oct 13, 2021
3e02b9f
Fixed UI errors + minimal look
isc-svelury Oct 13, 2021
0efb2fa
Create testfile.md
isc-svelury Oct 5, 2021
71b6662
Update testfile.md
isc-svelury Oct 5, 2021
c89430f
Delete testfile.md
isc-svelury Oct 14, 2021
5ec8531
UI changes to fix either broken things or make it look more it war be…
isc-svelury Oct 14, 2021
cba2b4f
Can create a new branch and switch to a new branch from VS Code and S…
isc-svelury Oct 18, 2021
344948b
Removed errant comment
isc-svelury Oct 19, 2021
02f6173
UI for new branch
isc-svelury Oct 19, 2021
89ad0dc
New branches created using web UI
isc-svelury Oct 19, 2021
82aa243
UI for switching and deleting branches
isc-svelury Oct 21, 2021
f9eeb4d
Branch checkout and delete now work
isc-svelury Oct 21, 2021
351f9e0
No checkout and delete buttons for current branch
isc-svelury Oct 21, 2021
968e762
Merge conflict
isc-svelury Oct 21, 2021
b0afa5d
Fixing stale code after improper merge
isc-svelury Oct 22, 2021
746cbef
Minor changes
isc-svelury Oct 22, 2021
2f05ec2
Refresh page button added
isc-svelury Oct 22, 2021
04877b3
Sidebar now updates after changes to branches
isc-svelury Oct 22, 2021
5b1c619
Fixed an issue where the error message was not displaying properly be…
isc-svelury Oct 22, 2021
781365d
Minor code cleanup + propagating changes to related files
isc-svelury Oct 22, 2021
877b536
Changed the name of checked out remote branch back
isc-svelury Oct 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions cls/SourceControl/Git/Extension.cls
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ XData Menu
<MenuItem Separator="true"/>
<MenuItem Name="%AddToSC" />
<MenuItem Name="%RemoveFromSC"/>
<MenuItem Name="%NewBranch" />
<MenuItem Name="%SwitchBranch" />
<MenuItem Name="%Revert" />
<MenuItem Name="%Commit" />
<MenuItem Separator="true"/>
Expand Down Expand Up @@ -86,16 +88,24 @@ Method OnSourceMenuItem(name As %String, ByRef Enabled As %String, ByRef Display
set DisplayName = "Import All Force"
} elseif $ListFind($ListBuild("%AddToSC","%RemoveFromSC","%Revert","%Commit"),name) {
quit ..OnSourceMenuContextItem(InternalName,name,.Enabled,.DisplayName)
} elseif name = "%RepoStatus" && ##class(Utils).GitBinExists() {
set DisplayName = "Check for modifications"
} elseif name = "%NewBranch" {
set DisplayName = "Create a new branch"
set Enabled = 1
} elseif name = "%SwitchBranch" {
set DisplayName = "Check out an existing branch"
set Enabled = 1
} elseif name = "%Push" {
// TODO: Only display if there are no files checked out by other users
set Enabled = 1
set DisplayName = "Push"
set DisplayName = "Push to remote branch"
} elseif name = "%Fetch" {
set Enabled = 1
set DisplayName = "Fetch"
set DisplayName = "Fetch from remote"
} elseif name = "%Pull" {
set Enabled = 1
set DisplayName = "Pull"
set DisplayName = "Pull changes from remote branch"
} elseif ##class(Utils).IsMenuGitCommand(name) && ##class(Utils).GitBinExists() {
set DisplayName = $case(name,"%StashSave":"Stash save",
"%StashPop":"Stash pop",
Expand Down Expand Up @@ -290,4 +300,3 @@ Method GetStatus(InternalName As %String, ByRef IsInSourceControl As %Boolean, B
}

}

1 change: 0 additions & 1 deletion cls/SourceControl/Git/Settings.cls
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ ClassMethod Configure() As %Boolean [ CodeMode = objectgenerator ]
}

}

39 changes: 36 additions & 3 deletions cls/SourceControl/Git/Utils.cls
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ ClassMethod UserAction(InternalName As %String, MenuName As %String, ByRef Targe
($system.Version.GetOS()="Windows") {
write !!,"===Path to git.exe not found: "_..GitBinPath()_"!===",!
}

if (..Type(InternalName) = "csp") && ($Extract(InternalName,1) '= "/") {
set InternalName = "/" _ InternalName
}

if (menuItemName = "%Settings") {
set Action = 2
set Target = "/isc/studio/usertemplates/gitsourcecontrol/gitprojectsettings.csp?NSpace="_$namespace_"&Username="_$username
Expand Down Expand Up @@ -180,6 +180,14 @@ ClassMethod UserAction(InternalName As %String, MenuName As %String, ByRef Targe
} elseif (menuItemName = "%Revert") {
set Reload = 1
quit ..Revert(InternalName)
} elseif (menuItemName = "%NewBranch") {
set Target = "Please enter the name of the new branch"
set Action = 7
quit $$$OK
} elseif (menuItemName = "%SwitchBranch") {
set Target = "Please enter the name of the existing branch"
set Action = 7
quit $$$OK
} elseif (menuItemName = "%Commit") {
set Target = "Please enter a commit message"
set Action = 7
Expand Down Expand Up @@ -219,6 +227,16 @@ ClassMethod AfterUserAction(Type As %Integer, Name As %String, InternalName As %
do ..Commit(InternalName, Msg)
set Reload = 1
}
} elseif (menuItemName = "%NewBranch") {
if (Answer = 1) {
do ..NewBranch(Msg)
set Reload = 1
}
} elseif (menuItemName = "%SwitchBranch") {
if (Answer = 1) {
do ..SwitchBranch(Msg)
set Reload = 1
}
}
quit $$$OK
}
Expand All @@ -233,6 +251,22 @@ ClassMethod Revert(InternalName As %String) As %Status
quit $$$OK
}

ClassMethod NewBranch(newBranchName As %String) As %Status
{
do ..RunGitWithArgs(.errStream, .outStream, "checkout", "-b", newBranchName)
do errStream.OutputToDevice()
do outStream.OutputToDevice()
quit $$$OK
}

ClassMethod SwitchBranch(targetBranchName As %String) As %Status
{
do ..RunGitWithArgs(.errStream, .outStream, "checkout", targetBranchName)
do errStream.OutputToDevice()
do outStream.OutputToDevice()
quit $$$OK
}

ClassMethod Commit(InternalName As %String, Message As %String = "example commit message") As %Status
{
set filename = ..FullExternalName(InternalName)
Expand Down Expand Up @@ -1322,4 +1356,3 @@ ClassMethod OutputConfigureMessage()
}

}

2 changes: 0 additions & 2 deletions csp/gitprojectsettings.csp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ body {
hr {
opacity: 0.15
}

</STYLE>
</head>
<body>
Expand Down Expand Up @@ -192,7 +191,6 @@ hr {
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/git-webui.js"></script>
<script language="JavaScript">
$(function () {
$('[data-toggle="tooltip"]').tooltip()
Expand Down
99 changes: 91 additions & 8 deletions git-webui/release/share/git-webui/webui/css/git-webui.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ body {
min-width: 0;
flex-direction: column;
-webkit-flex-direction: column;
width: 14em;
padding: 0 0.5% 0 0.5%;
width: 17em;
background-color: #333333;
}
#sidebar #sidebar-logo {
Expand Down Expand Up @@ -94,14 +95,46 @@ body {
cursor: pointer;
padding: 10px 0;
}
#sidebar-switch-branches > h4 a {
color: inherit;
}

.accordion-item {
background-color: #333333;
color: #eeeeee;
padding-bottom:1%;
margin: 0%;
border: none;
}

.accordion-header {
padding: 1% 2% 0% 14%;
background-color: #333333;
color: #eeeeee;
border:none;
}

.btn-branch {
background-color: #333333;
color: #eee;
padding: 0%;
margin: 0%;
border: none;
}

.btn-branch:hover {
color: #fff;
}

#sidebar #sidebar-content #sidebar-workspace h4:before {
content: url(../img/computer.svg);
}
#sidebar #sidebar-content #sidebar-remote h4:before {
content: url(../img/daemon.svg);
}
#sidebar #sidebar-content #sidebar-local-branches h4:before,
#sidebar #sidebar-content #sidebar-remote-branches h4:before {
#sidebar #sidebar-content #sidebar-remote-branches h4:before,
#sidebar #sidebar-content #sidebar-switch-branches h4:before {
content: url(../img/branch.svg);
}
#sidebar #sidebar-content #sidebar-tags h4:before {
Expand All @@ -123,11 +156,57 @@ body {
text-overflow: ellipsis;
}
#sidebar #sidebar-content .active {
background-color: #428bca;
}
#sidebar .modal-dialog .list-group-item {
border: 0;
background-color: #0d6efd;
}
#newBranchName {
background-color: inherit;
max-width: 12em;
color: inherit;
overflow: hidden;
margin: 0 3% 0 12%
}

.form-control-xs {
height: calc(1em + .375rem + 2px) !important;
padding: .125rem .25rem !important;
font-size: .75rem !important;
line-height: 1.5;
border-radius: .2rem;
}

.btn-refresh {
color: #B39D5C;
background-color: #fff3cd;
border: solid 1px;
border-color: #B39D5C;
margin-left: 0.5%;
}

.btn-xxs {
height: calc(1.2em + .175rem + 2px) !important;
padding: .2rem .1rem !important;
font-size: .7rem !important;
line-height: 1;
border-radius: .2rem;
}

.btn-xs {
height: calc(1.5em + .375rem + 2px) !important;
padding: .125rem .25rem !important;
font-size: .75rem !important;
line-height: 1.5;
border-radius: .2rem;
}

.btn-add {
padding: 0% 0% 2% 5%;
}

.btn-ok {
float: right;
margin-top:-3%
}

#main-view {
display: flex;
display: -webkit-flex;
Expand Down Expand Up @@ -185,7 +264,7 @@ body {
background-color: rgba(244, 244, 244, 0.9);
}
#log-view .log-entry.active {
background-color: rgba(46, 127, 197, 0.9);
background-color: rgba(2, 82, 202, 0.9);
}
#log-view .log-entry.active header h6 a {
color: #ffffff;
Expand Down Expand Up @@ -293,6 +372,9 @@ body {
border-right: 0;
white-space: nowrap;
}
.list-group-item{
border-radius: 0;
}
.diff-view-container {
display: flex;
display: -webkit-flex;
Expand Down Expand Up @@ -367,7 +449,7 @@ body {
border: 0;
}
.diff-view-container .panel-body .diff-view .diff-view-lines .diff-view-line.active {
background-color: #428bca;
background-color: #0d6efd;
color: white;
}
.diff-view-container .panel-body .diff-view .diff-view-lines .diff-line-header {
Expand Down Expand Up @@ -565,6 +647,7 @@ body {
padding: 5px 10px;
border-left: 0;
border-right: 0;
border-radius: 0;
white-space: nowrap;
}
#workspace-view #workspace-editor #working-copy-view .file-list-container .list-group .list-group-item.available,
Expand Down
16 changes: 10 additions & 6 deletions git-webui/release/share/git-webui/webui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
<link rel="icon" href="img/git-icon.png" />
</head>
<body>
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/git-webui.js"></script>

<!-- Error modal dialog -->
<div class="modal fade" id="error-modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span>&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">Error</h4>
<button type="button" class="btn btn-default close" data-bs-dismiss="modal">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.854 2.146a.5.5 0 0 1 0 .708l-11 11a.5.5 0 0 1-.708-.708l11-11a.5.5 0 0 1 .708 0Z" fill="#000"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.146 2.146a.5.5 0 0 0 0 .708l11 11a.5.5 0 0 0 .708-.708l-11-11a.5.5 0 0 0-.708 0Z" fill="#000"/>
</svg>
</button>
</div>
<pre class="modal-body alert alert-danger"></pre>
</div>
Expand Down Expand Up @@ -80,4 +80,8 @@ <h4>License</h4>
</div>
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/git-webui.js"></script>
</html>
Loading