-
-
Notifications
You must be signed in to change notification settings - Fork 924
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HTML pages for OIDC resources under /profile/
- Loading branch information
Showing
74 changed files
with
2,709 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
$(function () { | ||
function wire() { | ||
var removeNestedButtons = $("button.form__remove_nested_button"); | ||
|
||
removeNestedButtons.off("click"); | ||
removeNestedButtons.click(function (e) { | ||
e.preventDefault(); | ||
var button = $(this); | ||
var nestedField = button.closest(".form__nested_fields"); | ||
|
||
nestedField.remove(); | ||
}); | ||
|
||
var addNestedButtons = $("button.form__add_nested_button"); | ||
addNestedButtons.off("click"); | ||
addNestedButtons.click(function (e) { | ||
e.preventDefault(); | ||
var button = $(this); | ||
var nestedFields = button.siblings("template.form__nested_fields"); | ||
|
||
var content = nestedFields | ||
.html() | ||
.replace(/NEW_OBJECT/g, new Date().getTime()); | ||
|
||
$(content).insertAfter(button.siblings().last()); | ||
|
||
wire(); | ||
}); | ||
} | ||
|
||
wire(); | ||
|
||
// var enableGemScopeCheckboxes = $( | ||
// "#push_rubygem, #yank_rubygem, #add_owner, #remove_owner" | ||
// ); | ||
// var hiddenRubygemId = "hidden_api_key_rubygem_id"; | ||
// toggleGemSelector(); | ||
|
||
// enableGemScopeCheckboxes.click(function () { | ||
// toggleGemSelector(); | ||
// }); | ||
|
||
// function toggleGemSelector() { | ||
// var isApplicableGemScopeSelected = enableGemScopeCheckboxes.is(":checked"); | ||
// var gemScopeSelector = $("#api_key_rubygem_id"); | ||
|
||
// if (isApplicableGemScopeSelected) { | ||
// gemScopeSelector.removeAttr("disabled"); | ||
// removeHiddenRubygemField(); | ||
// } else { | ||
// gemScopeSelector.val(""); | ||
// gemScopeSelector.prop("disabled", true); | ||
// addHiddenRubygemField(); | ||
// } | ||
// } | ||
|
||
// function addHiddenRubygemField() { | ||
// $("<input>") | ||
// .attr({ | ||
// type: "hidden", | ||
// id: hiddenRubygemId, | ||
// name: "api_key[rubygem_id]", | ||
// value: "", | ||
// }) | ||
// .appendTo(".t-body form .api_key_rubygem_id_form"); | ||
// } | ||
|
||
// function removeHiddenRubygemField() { | ||
// $("#" + hiddenRubygemId + ":hidden").remove(); | ||
// } | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
dl.api_key_permissions { | ||
margin-top: 1em; | ||
display: grid; | ||
grid-template-columns: 1fr 2fr; | ||
} | ||
|
||
dl.api_key_permissions dt { | ||
font-weight: bold; | ||
float: inherit; | ||
} | ||
|
||
dl.oidc_access_policy { | ||
display: grid; | ||
column-gap: 1rem; | ||
grid-template-columns: fit-content(6rem) auto; | ||
} | ||
|
||
dl.oidc_access_policy > dd > * + * { | ||
border-top-width: 2px; | ||
border-top-style: solid; | ||
border-top-color: #e2e8f0; | ||
margin-top: .125rem; | ||
padding-top: .125rem; | ||
} | ||
|
||
dl.provider_attributes { | ||
column-gap: 1rem; | ||
align-items: baseline; | ||
row-gap: 1rem; | ||
} | ||
|
||
@media (max-width: 420px){ | ||
dl.provider_attributes { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
@media (min-width: 421px){ | ||
dl.provider_attributes { | ||
display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
} | ||
} | ||
|
||
dl.full-width { | ||
width: 100%; | ||
overflow-wrap: break-word; | ||
word-break: break-word; | ||
|
||
} | ||
|
||
dl.provider_attributes dt.text-right { | ||
text-align: right; | ||
} | ||
|
||
dl.provider_attributes dt.text-left { | ||
text-align: left; | ||
} | ||
|
||
dl.provider_attributes dd ul.tag-list { | ||
display: flex; | ||
flex-direction: row; | ||
list-style: none; | ||
justify-content: start; | ||
column-gap: 1rem; | ||
flex-wrap: wrap; | ||
align-items: baseline; | ||
margin: 0; | ||
} | ||
|
||
dl.provider_attributes dd ul.tag-list li { | ||
padding: 0.5rem 1rem; | ||
background-color: #e2e8f0; | ||
flex-shrink: 1; | ||
border-radius: 9999px; | ||
} | ||
dl.provider_attributes dd ul.tag-list li:before { | ||
height: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.