Skip to content

Commit

Permalink
Merge pull request #5 from realtimeregister/tools
Browse files Browse the repository at this point in the history
Tools
  • Loading branch information
zbrag authored Aug 30, 2024
2 parents 183a9eb + 897391f commit 7a1f5bd
Show file tree
Hide file tree
Showing 37 changed files with 1,193 additions and 543 deletions.
23 changes: 14 additions & 9 deletions modules/registrars/realtimeregister/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,28 @@

App::hook(Hooks\PreRegistrarGetContactDetails::class);

App::hook(Hooks\AdminAreaPage::class, 10);
App::hook('AdminAreaHeadOutput', Hooks\CheckCredentials::class, 1);
App::hook(Hooks\AdminAreaPage::class, null, 10);
App::hook("AdminAreaHeadOutput", Hooks\CheckCredentials::class);
App::hook("AdminHomepage", Hooks\SyncExpiry::class, 2);
App::hook("AdminHomepage", Hooks\ImportDomains::class, 2);
App::hook("AdminHomepage", Hooks\AutoRenewStatus::class, 2);

App::hook('ClientAreaHeadOutput', Hooks\Adac::class, 10);
App::hook('ClientAreaHeadOutput', Hooks\ClientAreaHeadOutput::class, 20);
App::hook('ClientAreaHeadOutput', Hooks\CheckCredentials::class, 10);
App::hook('ShoppingCartValidateCheckout', Hooks\ShoppingCartValidate::class);
App::hook('ShoppingCartValidateDomainsConfig', Hooks\ShoppingCartValidate::class);
App::hook(Hooks\UserLogin::class);

App::hook(Hooks\AdminAreaHeadOutput::class, null, 100);
App::hook(Hooks\AdminAreaFooterOutput::class, null, 100);
App::hook(Hooks\ClientAreaPage::class);
App::hook(Hooks\ContactEdit::class);
App::hook("AdminAreaHeadOutput", Hooks\ImportDomains::class);
App::hook('ShoppingCartValidateCheckout', Hooks\ShoppingCartValidate::class);
App::hook('ShoppingCartValidateDomainsConfig', Hooks\ShoppingCartValidate::class);
App::hook(Hooks\UserLogin::class);
App::hook('ClientAreaHeadOutput', Hooks\ClientAreaHeadOutput::class, 20);

App::hook('AdminHomeWidgets', Hooks\Widgets\BalanceWidget::class);
App::hook('AdminHomeWidgets', Hooks\Widgets\ActionsWidget::class);
App::hook('AdminHomeWidgets', Hooks\Widgets\DomainOverviewWidget::class);
App::hook('AdminHomeWidgets', Hooks\Widgets\BalanceWidget::class);

App::hook(Hooks\AdminHomepage::class);
App::hook('ClientAreaHeadOutput', Hooks\HeadAssets::class, 100);
App::hook('ClientAreaFooterOutput', Hooks\FooterAssets::class, 100);
App::hook('AdminAreaHeadOutput', Hooks\HeadAssets::class, 100);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.action-group {
margin: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.action-item {
cursor: pointer;
}
45 changes: 45 additions & 0 deletions modules/registrars/realtimeregister/src/Assets/Css/autorenew.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.autorenew .failed_updates,
.autorenew .failed_domains,
.autorenew .processed_updates {
display: none;
}

.autorenew .processed_updates {
font-weight: bold;
}

.autorenew .failed_updates {
margin-top: 10px;
color: red;
font-weight: bold;
}

.autorenew .failed_domains {
max-height: 170px;
overflow-y: scroll;
margin-top: 15px;
background-color: #f7e9e9;
padding: 15px;
border-radius: 3px;
}

.autorenew .failed_domains p {
margin-top: 10px;
margin-bottom: 0;
}

.autorenew .failed_domains p:first-child {
margin-top: 0;
}

.autorenew .amount {
font-weight: bold;
}

#renew_form .submit {
margin: 1rem 0;
}

.autorenew .is-active {
display: block;
}
53 changes: 53 additions & 0 deletions modules/registrars/realtimeregister/src/Assets/Css/general.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
@keyframes move {
0% {
background-position: 0 0;
}
100% {
background-position: 50px 50px;
}
}

.rtr-progress-bar {
display: none;
background-color: #f1f0e8;
position: relative;
height: 30px;
overflow: hidden;
border-radius: 3px;
}

.rtr-progress-bar .progress-label {
color: white;
text-align: center;
height: 30px;
background-color: #2261a3;
width: 5%;
line-height: 30px;
position: relative;
}

.rtr-progress-bar .progress-label .complete:after {
display: none;
}

.rtr-progress-bar .progress-label:after {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 1;
background-size: 50px 50px;
background-image: linear-gradient(
45deg,
rgba(255, 255, 255, 0.2) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.2) 50%,
rgba(255, 255, 255, 0.2) 75%,
transparent 75%,
transparent
);
animation: move 2s linear infinite;
}
Original file line number Diff line number Diff line change
@@ -1,29 +1,53 @@
.stepwizard-row {
position: relative;
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem
justify-content: space-between;
}

.stepwizard-step {
display: flex;
align-items: center;
flex-direction: row;
gap: 0.75rem
flex-direction: column;
gap: 0.5rem;
z-index: 2;
}

.stepwizard-row:before {
top: 14px;
bottom: 0;
position: absolute;
content: " ";
width: 100%;
height: 2px;
background-color: #ccc;
}

.btn-circle {
width: 30px;
height: 30px;
text-align: center;
padding: 6px 0;
padding: 0 0;
font-size: 12px;
line-height: 1.428571429;
border-radius: 15px;
}

.btn-circle:not(.btn-current) {
background: #79a8d0 !important;
.btn-circle:not(.btn-current):not(:disabled) {
color: #333333;
opacity: 1 !important;
background: #fff
}

.btn-circle:disabled {
background-color: lightgrey;
border-color: grey;
opacity: 1 !important;
}

.btn-circle:disabled:hover {
background-color: lightgrey;
border-color: grey;
}

.failed-domains {
Expand All @@ -34,6 +58,10 @@
color: red;
}

.rtr-progress-bar {
margin-top: 2rem;
}

.brand_overview,
.failed_domains,
.warning_domains {
Expand Down
Loading

0 comments on commit 7a1f5bd

Please sign in to comment.