-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
6fcc47c
commit bf7eb17
Showing
22 changed files
with
787 additions
and
225 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
function getLoadMoreButton() { | ||
const refs = {}; | ||
const loadMore = render( | ||
refs, | ||
` | ||
<button ref="button" type="submit" class="ajax-pagination-btn btn color-border-default f6 mt-0 width-full" data-disable-with="Loading more…"> | ||
Load more… | ||
</button> | ||
` | ||
); | ||
return { | ||
refs, | ||
node: loadMore, | ||
} | ||
} |
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,63 @@ | ||
function aad_loading(uuid) { | ||
let _closeModal = null; | ||
createModal('Loading', { close: false, ms: 50 }, ({ closeModal }) => { | ||
const prefix = prefixer('loading', uuid, 'loading'); | ||
_closeModal = closeModal; | ||
|
||
addCustomCSS(` | ||
.${prefix('container')} { | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 4px 8px; | ||
} | ||
.${prefix('loader')} { | ||
width: 70px; | ||
height: 50px; | ||
box-sizing: border-box; | ||
background: | ||
conic-gradient(from 135deg at top,#0000, #fff 1deg 90deg,#0000 91deg) right -20px bottom 8px/18px 9px, | ||
linear-gradient(#fff 0 0) bottom/100% 8px, | ||
#000; | ||
background-repeat: no-repeat; | ||
border-bottom: 8px solid #000; | ||
position: relative; | ||
animation: l7-0 2s infinite linear; | ||
} | ||
.${prefix('loader')}::before { | ||
content: ""; | ||
position: absolute; | ||
width: 10px; | ||
height: 14px; | ||
background: lightblue; | ||
left: 10px; | ||
animation: l7-1 2s infinite cubic-bezier(0,200,1,200); | ||
} | ||
@keyframes l7-0{ | ||
100% { background-position: left -20px bottom 8px,bottom} | ||
} | ||
@keyframes l7-1{ | ||
0%,50% {bottom: 8px} | ||
90%,100% {bottom: 8.1px} | ||
} | ||
`); | ||
|
||
const _refs = {}; | ||
const modal = render( | ||
_refs, | ||
` | ||
<div class="${prefix('container')}"> | ||
<div class="${prefix('loader')}"></div> | ||
</div> | ||
` | ||
); | ||
return modal; | ||
}); | ||
return { | ||
close: () => { | ||
_closeModal(); | ||
}, | ||
}; | ||
} |
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,32 @@ | ||
/** | ||
* AAD Component Memory | ||
* @returns {function} - A function that returns a component with a unique memory id | ||
*/ | ||
function acm() { | ||
const m = generateUUID(); | ||
|
||
return (component) => { | ||
const c = generateUUID(); | ||
Cache.set(m + c, component); | ||
|
||
return { | ||
anchor: `<div anchor="true" anchor-data="${m + c}"></div>`, | ||
node: component.node, | ||
refs: component.refs, | ||
}; | ||
}; | ||
} | ||
|
||
function settingsCard() { | ||
const m = acm(); | ||
|
||
const html = /*html*/ ` | ||
<div class="container"> | ||
<h1>Settings</h1> | ||
${m(getLoadMoreButton()).anchor} | ||
</div> | ||
`; | ||
|
||
const card = aadRender(html); | ||
} |
Oops, something went wrong.