-
Notifications
You must be signed in to change notification settings - Fork 4
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 #223 from ably/move-all-dependecies-to-externals
Move all dependecies to externals
- Loading branch information
Showing
31 changed files
with
1,563 additions
and
247 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module AblyUi | ||
VERSION = '8.7.0.dev.24cbbe4' | ||
VERSION = '8.7.0.dev.9b0589d' | ||
end |
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,8 @@ | ||
import highlightEl from "@ably/ui/core/Code/component"; | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
const blocks = document.querySelectorAll("[data-id=code]"); | ||
Array.from(blocks).forEach(highlightEl); | ||
|
||
document.body.classList.add("bg-light-grey", "m-32"); | ||
}); |
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,8 @@ | ||
import CompanyAutocomplete from "@ably/ui/core/CompanyAutocomplete/component"; | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
const input = document.querySelector("input"); | ||
CompanyAutocomplete(input, "/api/companies"); | ||
|
||
document.body.classList.add("bg-light-grey", "m-32"); | ||
}); |
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,5 @@ | ||
import ContactFooter from "@ably/ui/core/ContactFooter/component"; | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
ContactFooter(); | ||
}); |
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,25 @@ | ||
import Meganav from "@ably/ui/core/Meganav/component"; | ||
import Notice from "@ably/ui/core/Notice/component"; | ||
import MeganavBlogPostsList from "@ably/ui/core/MeganavBlogPostsList/component"; | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
const queryString = window.location.search; | ||
|
||
const params = new URLSearchParams(queryString); | ||
const addSearchApiKey = document.body.dataset.addSearchApiKey; | ||
|
||
Meganav({ | ||
addSearchApiKey, | ||
}); | ||
|
||
Notice({ | ||
bannerContainer: document.querySelector('[data-id="ui-notice"]'), | ||
cookieId: "1", | ||
noticeId: "A", | ||
options: { | ||
collapse: params.has("notice-collapse"), | ||
}, | ||
}); | ||
|
||
MeganavBlogPostsList(); | ||
}); |
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,12 @@ | ||
import Showcase from "@ably/ui/core/Showcase/component"; | ||
|
||
document.body.classList.add("bg-light-grey", "m-32"); | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
const showcases = document.querySelectorAll('[data-id="showcase"]'); | ||
|
||
Showcase(showcases[0], false); | ||
Showcase(showcases[1], true); | ||
Showcase(showcases[2], false); | ||
Showcase(showcases[3], true); | ||
}); |
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,18 @@ | ||
import Slider from "@ably/ui/core/Slider/component"; | ||
|
||
document.body.classList.add("bg-light-grey", "m-32"); | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
const slider = document.querySelectorAll('[data-id="slider"]'); | ||
|
||
Slider({ | ||
container: slider[0], | ||
mqEnableThreshold: () => true, | ||
}); | ||
|
||
Slider({ | ||
container: slider[1], | ||
// match sm breakpoint | ||
mqEnableThreshold: () => !window.matchMedia("(min-width: 48rem)").matches, | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
<%= render(AblyUi::Core::ContactFooter.new) %> | ||
|
||
<% content_for :component do %> | ||
<%= javascript_include_tag 'ably_ui/core/contact_footer/component' %> | ||
|
||
<script type="text/javascript"> | ||
document.addEventListener("DOMContentLoaded", () => { | ||
AblyUi.Core.ContactFooter(); | ||
}); | ||
</script> | ||
<%= javascript_packs_with_chunks_tag 'contact-footer-vw' %> | ||
<% end %> |
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
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.