generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
104 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{#if @dev}} | ||
<section class='cache'> | ||
<button | ||
data-test-btn-clear-cache | ||
class='cache__clear-btn' | ||
type='submit' | ||
disabled={{@isPurgingCache}} | ||
{{on 'click' (fn @onClearCache)}} | ||
>{{#if @isPurgingCache}} | ||
<i class='fa fa-spinner fa-spin' data-test-button-spinner></i> | ||
{{/if}} | ||
Clear Cache</button> | ||
<div data-test-pending-requests class='cache__remaining-requests'> | ||
{{@totalTimes}} | ||
/ 3 requests remaining for today | ||
</div> | ||
</section> | ||
{{/if}} |
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 @@ | ||
export const MAX_CACHE_PURGE_COUNT = 3; |
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,35 @@ | ||
.cache { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
margin: auto; | ||
box-shadow: 5px 10px 15px #09113344; | ||
border-radius: 10px; | ||
padding: 30px; | ||
font-weight: 700; | ||
} | ||
|
||
.cache__last-request { | ||
padding: 40px 4px 20px; | ||
color: #1d1283; | ||
font-size: 2rem; | ||
text-align: center; | ||
} | ||
|
||
.cache__clear-btn { | ||
border-radius: 10px; | ||
padding: 16px 60px; | ||
border: 3px solid #e49504; | ||
color: #e49504; | ||
background-color: white; | ||
font-weight: 700; | ||
font-size: 1.25rem; | ||
cursor: pointer; | ||
} | ||
|
||
.cache__remaining-requests { | ||
padding-top: 30px; | ||
color: #1d1283; | ||
font-size: 1.25rem; | ||
} |
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