Skip to content

Commit

Permalink
initial pass at post tagging framework & doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sterlingwes committed Feb 1, 2024
1 parent 2e19f5b commit f04ecc7
Show file tree
Hide file tree
Showing 17 changed files with 323 additions and 84 deletions.
2 changes: 1 addition & 1 deletion scripts/zod-json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const modules = zodFiles.stdout
.map((line: string) => line.trim());

modules.forEach((fileName: string) => {
if (fileName) {
if (fileName && fileName.endsWith(".ts")) {
const { schema, name } = require(`../site/src/schemas/${fileName}`);
const jsonSchema = zodToJsonSchema(schema, name);
fs.writeFileSync(
Expand Down
7 changes: 7 additions & 0 deletions site/src/components/ContentBox.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,11 @@
border-radius: 8px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 50%);
}
p {
margin: 0;
margin-bottom: 2rem;
}
p:last-of-type {
margin-bottom: 0;
}
</style>
2 changes: 1 addition & 1 deletion site/src/components/OpacityOverlay.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {} = Astro.props;
.opacity-overlay {
pointer-events: none;
z-index: 0;
position: absolute;
position: fixed;
top: 0;
left: 0;
right: 0;
Expand Down
9 changes: 0 additions & 9 deletions site/src/components/StructuredText.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const { parts } = Astro.props;
<span>&nbsp;</span>
) : part.type === "break" ? (
<span class="linebreak" />
) : part.type === "para" ? (
<p>{part.text}</p>
) : (
part.text
)
Expand All @@ -29,13 +27,6 @@ const { parts } = Astro.props;
</span>

<style>
p {
margin: 0;
margin-bottom: 2rem;
}
p:last-of-type {
margin-bottom: 0;
}
.linebreak {
display: block;
margin-bottom: 10px;
Expand Down
90 changes: 84 additions & 6 deletions site/src/content/enabler/anthony-housefather.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,58 @@
"text": "Canada must categorically and clearly reject the claim of genocide against @Israel. Please read the oped that @marcomendicino and I wrote for the @nationalpost explaining why. The charge of genocide against Israel is a perversion of justice.",
"date": "2024-01-19T13:25:00.000Z",
"type": "twitter",
"href": ""
"href": "https://twitter.com/AHousefather/status/1748411471795474902",
"tags": ["polarisation"]
},
{
"text": "Social media antisemitism was surging pre Oct 7 and skyrocketed after Hamas' massacre. @elonmusk's embrace of extremism & X mismanagement makes it worse. In @Newsweek, @DWStweets & I explain how AI can solve online hate & real life violence-not fuel it. https://www.newsweek.com/elon-musk-amplifying-bigotry-he-must-stopped-opinion-1851406",
"date": "2023-12-12T11:26:00.000Z",
"type": "twitter",
"href": "https://twitter.com/AHousefather/status/1734610610728640649",
"tags": ["polarisation"]
},
{
"text": "In my view, any cessation of hostilities requires Hamas to release all hostages and lay down arms and surrender. Hamas, a terrorist organization is entirely responsible for starting a war. I disagree with our vote at the UN today.",
"date": "2023-12-12T16:52:00.000Z",
"href": "https://twitter.com/AHousefather/status/1734692797054058792",
"type": "twitter",
"tags": ["dehumanisation"]
},
{
"text": "Today @marcomendicino @BenCarrwpg and I met with @univcan to work together on the issue of antisemitism on college campuses.",
"href": "https://twitter.com/AHousefather/status/1745954112473104636",
"date": "2024-01-12T06:41:00.000Z",
"type": "twitter",
"image": "https://pbs.twimg.com/media/GDrgAviWkAATkfn?format=jpg&name=medium",
"tags": ["incitement", "polarisation"]
},
{
"text": "Jews throughout the world, including Canada, are facing levels of antisemitism that we have not seen in our lifetime. Many are scared. Angry. Depressed. All consumed. Anyone endorsing a claim that antisemitism is being weaponized denies the truth of what Jews are experiencing.",
"date": "2023-12-30T18:19:00.000Z",
"href": "https://twitter.com/AHousefather/status/1741237721757057076",
"type": "twitter",
"tags": ["polarisation"]
},
{
"text": "Lesson to all (including cartoonists) how to avoid using antisemitic tropes:\n1) Don't accuse Jews of being more loyal to Israel than their own country.\n2) Don't imply that Jews control the world or media.\n3) Don't accuse Jews of being money hungry/use Nazi imagery tied to Jews.",
"href": "https://twitter.com/AHousefather/status/1737856844532785647",
"date": "2023-12-21T10:25:00.000Z",
"type": "twitter",
"tags": ["classification"]
},
{
"text": "I agree entirely with Ambassador @StateSEAS who visited Canada this week. The rise of antisemitism is not just a threat to Jews. It is also a threat to democracy & national security. Bad actors & rogue states are using it to ferment hate & distrust in places like Canada & the US.",
"date": "2023-12-29T16:04:00.000Z",
"href": "https://twitter.com/AHousefather/status/1733593515450306847",
"type": "twitter",
"tags": ["polarisation"]
},
{
"text": "Today I joined my friends @marcomendicino @YaaraSaks & @Carolyn_Bennett on Parliament Hill to stand in solidarity with Canada's Jewish community.",
"href": "https://twitter.com/AHousefather/status/1731775148523401726",
"date": "2023-12-04T15:39:00.000Z",
"type": "twitter",
"tags": ["polarisation"]
},
{
"quote": {
Expand All @@ -16,31 +67,58 @@
},
"date": "2024-01-14T17:19:00.000Z",
"type": "twitter",
"href": ""
"href": "",
"tags": []
},
{
"text": "As the Republic of South Africa attempts to lecture the world's only Jewish majority state on morality, its 19 year old Jewish cricket team captain is removed from his position. Shameful.",
"image": "https://pbs.twimg.com/card_img/1750872426399891456/tRkSCqju?format=jpg&name=small",
"date": "2024-01-12T13:25:00.000Z",
"type": "twitter",
"href": ""
"href": "https://twitter.com/AHousefather/status/1745874543141376472",
"tags": ["polarisation"]
},
{
"text": "Flight #PS752 was struck down four years ago by Iran. The current regime in Iran is a bad actor. It ferments chaos across the Middle East & world & has denied justice to victims’ families including Canadians. I maintain that we need to declare the IRGC a terrorist organization.",
"date": "2023-01-08T21:06:00.000Z",
"href": "https://twitter.com/AHousefather/status/1744541232884326882",
"type": "twitter",
"tags": []
},
{
"text": "I urge everyone to listen to this speech by @SenSchumer. He is so right. For the Jewish community the rise of antisemitism is a 5 alarm fire. We think about it constantly. For most others it is one of many problems we face. He explains well why this is a 5 alarm fire.",
"date": "2023-11-29T12:56:00.000Z",
"href": "https://twitter.com/AHousefather/status/1729922223916392583",
"type": "twitter",
"tags": ["polarisation"]
},
{
"text": "Very pleased that Prime Minister Trudeau has made clear that Canada does not support the premise of South Africa's claim at the ICJ. As @marcomendicino and I have stated the claim that Israel is committing genocide is baseless and unconscionable.",
"date": "2024-01-12T12:19:00.000Z",
"type": "twitter",
"href": ""
"href": "https://twitter.com/AHousefather/status/1745857923836719464",
"tags": ["polarisation"]
},
{
"text": "I have been struggling to explain to colleagues what most Jews I know are feeling. Just this weekend we saw bomb threats at synagogues across the US, the arrest in Ottawa & loud chants for the destruction of Israel. For many the feeling of not being safe is all consuming.",
"href": "https://twitter.com/AHousefather/status/1736934580056100957",
"date": "2023-12-18T21:20:00.000Z",
"type": "twitter",
"tags": ["polarisation"]
},
{
"text": "Statement from me and @marcomendicino on South Africa's claim before the International Court of Justice. We agree with former Supreme Court Justice Rosalie Abella that the claim is baseless and unconscionable.",
"date": "2024-01-09T19:59:00.000Z",
"type": "twitter",
"href": ""
"href": "",
"tags": []
},
{
"text": "It is utterly unconscionable to have demonstrations in Canada celebrating a war started by a terrorist organization that has killed and injured and kidnapped innocent Israelis and civilians from other countries. So sad to see what is happening in Montreal this afternoon.",
"date": "2023-10-08T16:16:00.000Z",
"type": "twitter",
"href": "https://google.ca"
"href": "https://twitter.com/AHousefather/status/1711113258596270234",
"tags": ["discrimination"]
}
]
}
Loading

0 comments on commit f04ecc7

Please sign in to comment.