-
Notifications
You must be signed in to change notification settings - Fork 152
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 #5636 from artsy/retire-reaction
[Refactor] Retire reaction and merge files into Force
- Loading branch information
Showing
1,723 changed files
with
360,764 additions
and
17,417 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 +1 @@ | ||
src/__generated__/*.graphql.ts linguist-generated | ||
src/v2/__generated__/*.graphql.ts linguist-generated |
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,2 @@ | ||
import "@storybook/addon-options/register" | ||
import "@storybook/addon-viewport/register" |
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 @@ | ||
import Events from "v2/Utils/Events" | ||
import { configure, addParameters } from "@storybook/react" | ||
import { createMediaStyle } from "v2/Utils/Responsive" | ||
|
||
const req = require.context("../", true, /\.story\.tsx$/) | ||
|
||
function loadStories() { | ||
req.keys().forEach(filename => { | ||
return req(filename) | ||
}) | ||
} | ||
|
||
// Add RRM styles to Storybooks head | ||
const rrmStyle = document.createElement("style") | ||
rrmStyle.innerHTML = createMediaStyle() | ||
document.head.appendChild(rrmStyle) | ||
|
||
addParameters({ | ||
inline: true, | ||
brandTitle: "Reaction", | ||
showAddonPanel: false, | ||
sortStoriesByKind: true, | ||
}) | ||
|
||
setTimeout(() => { | ||
configure(loadStories, module) | ||
}) | ||
|
||
Events.onEvent(data => { | ||
console.log("Tracked event", data) | ||
}) | ||
|
||
if (!window.sd || !(typeof window.sd === "object")) { | ||
window.sd = {} | ||
} |
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,16 @@ | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="https://webfonts.artsy.net/all-webfonts.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" | ||
/> | ||
<script id="stripe-js" src="https://js.stripe.com/v3/" async></script> |
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,17 @@ | ||
const crypto = require("crypto") | ||
const fs = require("fs") | ||
const os = require("os") | ||
const path = require("path") | ||
|
||
module.exports = data => { | ||
const blob = JSON.stringify(data) | ||
const blobHash = crypto | ||
.createHash("md5") | ||
.update(blob) | ||
.digest("hex") | ||
const pathname = path.join(os.tmpdir(), `${blobHash}.js`) | ||
fs.writeFileSync(pathname, `module.exports = { data: ${blob} }`, { | ||
encoding: "utf8", | ||
}) | ||
return pathname | ||
} |
Oops, something went wrong.