-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from realtimeregister/domain-import
Domain import
- Loading branch information
Showing
19 changed files
with
1,118 additions
and
9 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
66 changes: 66 additions & 0 deletions
66
modules/registrars/realtimeregister/src/Assets/Css/importdomains.css
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,66 @@ | ||
.stepwizard-row { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
gap: 1rem | ||
} | ||
|
||
.stepwizard-step { | ||
display: flex; | ||
align-items: center; | ||
flex-direction: row; | ||
gap: 0.75rem | ||
} | ||
|
||
.btn-circle { | ||
width: 30px; | ||
height: 30px; | ||
text-align: center; | ||
padding: 6px 0; | ||
font-size: 12px; | ||
line-height: 1.428571429; | ||
border-radius: 15px; | ||
} | ||
|
||
.btn-circle:not(.btn-current) { | ||
background: #79a8d0 !important; | ||
} | ||
|
||
.failed-domains { | ||
color: red; | ||
} | ||
|
||
.warning_domains { | ||
color: red; | ||
} | ||
|
||
.brand_overview, | ||
.failed_domains, | ||
.warning_domains { | ||
list-style: none; | ||
max-height: 170px; | ||
overflow-y: scroll; | ||
margin-top: 15px; | ||
background-color: #f7e9e9; | ||
padding: 15px; | ||
border-radius: 3px; | ||
} | ||
|
||
.brand_overview li, | ||
.warning_domains li, | ||
.failed_domains li { | ||
margin-top: 8px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.brand_overview li span, | ||
.warning_domains li span, | ||
.failed_domains li span { | ||
font-weight: bold; | ||
} | ||
|
||
.brand_overview li:first-child, | ||
.warning_domains li:first-child, | ||
.failed_domains li:first-child { | ||
margin-top: 0; | ||
} |
30 changes: 30 additions & 0 deletions
30
modules/registrars/realtimeregister/src/Assets/Js/importDomains.js
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,30 @@ | ||
$(document).ready( | ||
function () { | ||
const moduleName = 'realtimeregister'; | ||
const configContainer = $('#' + moduleName + 'config'); | ||
|
||
configContainer.on( | ||
'click', '.import-wizard', function (e) { | ||
e.preventDefault(); | ||
|
||
const contentArea = $('#contentarea'); | ||
|
||
$.post( | ||
window.location.href, | ||
{ | ||
action: 'importWizard', | ||
module: moduleName, | ||
}, | ||
function (response) { | ||
contentArea.html(response); | ||
window.scrollTo(0,0); | ||
}, | ||
"html" | ||
).fail( | ||
function (e) { | ||
} | ||
); | ||
} | ||
); | ||
} | ||
); |
Oops, something went wrong.