From d5c5dfb40049bf3be54a5192a83619a380621803 Mon Sep 17 00:00:00 2001 From: Skyler Cohen Date: Tue, 31 Oct 2023 12:37:13 -0400 Subject: [PATCH] Remove unnecessary files --- static/js/strapi_helpers/team_page.js | 202 --------- templates/static/en/team.html | 627 -------------------------- templates/static/he/team.html | 624 ------------------------- 3 files changed, 1453 deletions(-) delete mode 100644 static/js/strapi_helpers/team_page.js delete mode 100644 templates/static/en/team.html delete mode 100644 templates/static/he/team.html diff --git a/static/js/strapi_helpers/team_page.js b/static/js/strapi_helpers/team_page.js deleted file mode 100644 index 6df692bfae..0000000000 --- a/static/js/strapi_helpers/team_page.js +++ /dev/null @@ -1,202 +0,0 @@ -const { el, mount, setChildren } = redom; - -const byLastName = (a, b) => { - const c = a.teamMemberDetails.teamName.en; - const d = b.teamMemberDetails.teamName.en; - const lastNameA = c.split(" ").pop(); - const lastNameB = d.split(" ").pop(); - return lastNameA.localeCompare(lastNameB); -}; - -const partition = (arr, prop) => - arr.reduce( - (accumulator, currentValue) => { - accumulator[prop(currentValue) ? 0 : 1].push(currentValue); - return accumulator; - }, - [[], []] - ); - -function LocalizedText(text) { - return [el("span.int-en", text.en), el("span.int-he", text.he)]; -} - -function TeamTitle(teamTitle) { - return el(".teamTitle", LocalizedText(teamTitle)); -} - -function TeamName(teamName) { - return el(".teamName", LocalizedText(teamName)); -} - -function TeamMemberDetails(teamMemberDetails) { - return el(".teamMemberDetails", [ - TeamName(teamMemberDetails.teamName), - TeamTitle(teamMemberDetails.teamTitle), - ]); -} - -function TeamMemberImage(teamMember) { - return el( - ".teamMemberImage", - el("img", { - src: teamMember.teamMemberImage, - alt: "Headshot of " + teamMember.teamMemberDetails.teamName.en, - }) - ); -} - -function TeamMember(teamMember) { - return el(".teamMember", [ - TeamMemberImage(teamMember), - TeamMemberDetails(teamMember.teamMemberDetails), - ]); -} - -function TeamMembers(teamMembers) { - return teamMembers.map((teamMember) => TeamMember(teamMember)); -} - -function Placeholders(teamMembersCount, cls) { - // Determine the number of empty spots to have as placeholders in the last row - placeholdersCount = 3 - (teamMembersCount - 3 * ~~(teamMembersCount / 3)); - return Array.from({ length: placeholdersCount }, () => - el("." + cls + ".placeholder") - ); -} - -function BoardMember(boardMember) { - return el( - ".teamBoardMember", - TeamMemberDetails(boardMember.teamMemberDetails) - ); -} - -function BoardMembers(boardMembers) { - // Separate out the chairman and co-founders for the correct ordering - let chairmanBoardMember; - let chairmanIndex = boardMembers.findIndex( - (boardMember) => - boardMember.teamMemberDetails.teamTitle.en.toLowerCase() === "chairman" - ); - if (chairmanIndex !== -1) { - chairmanBoardMember = boardMembers.splice(chairmanIndex, 1); - } - const [cofounderBoardMembers, regularBoardMembers] = partition( - boardMembers, - (boardMember) => - boardMember.teamMemberDetails.teamTitle.en.toLowerCase() === "co-founder" - ); - // Produce the nodes with the right order for the board members - // Chairman, Co-founders, rest of the board - return [ - ...(chairmanBoardMember ?? []), - ...(cofounderBoardMembers ?? []), - ...regularBoardMembers.sort(byLastName), - ].map((boardMember) => BoardMember(boardMember)); -} - -if (typeof STRAPI_INSTANCE !== "undefined" && STRAPI_INSTANCE) { - async function fetchTeamMembersJSON() { - const query = ` - query { - teamMembers(pagination: { limit: -1 }) { - data { - id - attributes { - teamName - teamTitle - isTeamBoardMember - teamMemberImage { - data { - attributes { - url - } - } - } - localizations { - data { - attributes { - locale - teamName - teamTitle - } - } - } - } - } - } - } - `; - try { - const response = await fetch(STRAPI_INSTANCE + "/graphql", { - method: "POST", - mode: "cors", - cache: "no-cache", - credentials: "omit", - headers: { - "Content-Type": "application/json", - }, - redirect: "follow", - referrerPolicy: "no-referrer", - body: JSON.stringify({ query }), - }); - if (!response.ok) { - throw new Error(`HTTP Error: ${response.statusText}`); - } - const data = await response.json(); - return data; - } catch (error) { - console.error("Fetch error:", error); - throw error; - } - } - - (async () => { - try { - const teamMembersData = await fetchTeamMembersJSON(); - - const teamMembersFromStrapi = teamMembersData.data.teamMembers.data.map( - (teamMember) => { - const heLocalization = teamMember.attributes.localizations.data[0]; - - return { - isTeamBoardMember: teamMember.attributes.isTeamBoardMember, - teamMemberImage: - teamMember.attributes.teamMemberImage?.data?.attributes?.url, - teamMemberDetails: { - teamName: { - en: teamMember.attributes.teamName, - he: heLocalization.attributes.teamName, - }, - teamTitle: { - en: teamMember.attributes.teamTitle, - he: heLocalization.attributes.teamTitle, - }, - }, - }; - } - ); - - const [ordinaryTeamMembers, teamBoardMembers] = partition( - teamMembersFromStrapi, - (teamMember) => !teamMember.isTeamBoardMember - ); - - setChildren(document.querySelector("section.main-text.team-members"), [ - ...TeamMembers(ordinaryTeamMembers.sort(byLastName)), - ...Placeholders(ordinaryTeamMembers.length, "teamMember"), - ]); - - setChildren(document.querySelector("section.main-text.board-members"), [ - ...BoardMembers(teamBoardMembers), - ...Placeholders(teamBoardMembers.length, "teamBoardMember"), - ]); - } catch (error) { - setChildren(document.querySelector("div.row.static-text"), el("h1", "Error: Sefaria's CMS cannot be reached")); - console.error(error); - } - })(); -} else { - setChildren(document.querySelector("div.row.static-text"), el("h1", "Error: Sefaria's CMS cannot be reached")); -} diff --git a/templates/static/en/team.html b/templates/static/en/team.html deleted file mode 100644 index 7b94e3ca1c..0000000000 --- a/templates/static/en/team.html +++ /dev/null @@ -1,627 +0,0 @@ - -{% extends "base.html" %} -{% load i18n static %} - -{% block title %}{% trans "The Sefaria Team" %}{% endblock %} - -{% block description %}{% trans "Sefaria's team is working to create the Jewish future." %}{% endblock %} - -{% block content %} -
-
-
-

- Team -

-
-
-
- -
-
- Headshot of Akiva Berger -
-
-
- Akiva Berger -
-
- Director of Engineering, Israel -
-
-
-
-
- Headshot of Rachel Buckman -
-
-
- Rachel Buckman -
-
- Sr. Learning & Support Coordinator -
-
-
-
-
- Headshot -
-
-
- Skyler Cohen -
-
- Junior Software Engineer -
-
-
-
-
- Headshot of Caitlyn Cushing -
-
-
- Caitlyn Cushing -
-
- Development Operations Associate -
-
-
-
-
- Headshot of Ephraim Damboritz -
-
-
- Ephraim Damboritz -
-
- Sr. Engineering Specialist -
-
-
-
-
- Headshot of Sarit Dubin -
-
-
- Sarit Dubin -
-
- Senior Communications Manager -
-
-
-
-
- Headshot of Michael Fankhauser -
-
-
- Michael Fankhauser -
-
- Senior Product Manager -
-
-
-
-
- Headshot of Olivia Gerber -
-
-
- Olivia Gerber -
-
- Marketing Associate -
-
-
-
-
- Headshot of Yishai Glasner -
-
-
- Yishai Glasner -
-
- Software Engineer -
-
-
-
-
- Headshot of Hannah Goldberger -
-
-
- Hannah Goldberger -
-
- Director of Digital Fundraising -
-
-
-
-
- Headshot of Justin Goldstein -
-
-
- Justin Goldstein -
-
- Learning Coordinator -
-
-
-
-
- Headshot of Talia Graff -
-
-
- Talia Graff -
-
- Chief of Staff -
-
-
-
-
- Headshot of Rachel Grossman -
-
-
- Rachel Grossman -
-
- Editorial Associate -
-
-
-
-
- Headshot of Tali Herenstein -
-
-
- Tali Herenstein -
-
- Chief Strategy Officer -
-
-
-
-
- Headshot of Lev Israel -
-
-
- Lev Israel -
-
- Chief Product Officer -
-
-
-
-
- Headshot of Steve Kaplan -
-
-
- Steve Kaplan -
-
- Software Engineer -
-
-
-
-
- Headshot of Sarah Kreitman -
-
-
- Sarah Kreitman -
-
- Junior Software Engineer -
-
-
-
-
- Headshot of Yonadav Leibowitz -
-
-
- Yonadav Leibowitz -
-
- Junior Research Engineer -
-
-
-
-
- Headshot of Annie Lumerman -
-
-
- Annie Lumerman -
-
- Chief Operating Officer -
-
-
-
-
- Headshot of Amanda Minsky -
-
-
- Amanda Minsky -
-
- People & Operations Coordinator -
-
-
-
-
- Headshot of Francis Nataf -
-
-
- Francis Nataf -
-
- Translation and Research Specialist -
-
-
-
-
- Headshot of Russel Neiss -
-
-
- Russel Neiss -
-
- Product & Engineering Director -
-
-
-
-
- Headshot of Desiree Neissani -
-
-
- Desiree Neissani -
-
- Special Assistant, Office of the CEO -
-
-
- -
-
- Headshot of Rebecca Remisn -
-
-
- Rebecca Remis -
-
- Sr. People & Operations Manager -
-
-
-
-
- Headshot of Elise Ringo -
-
-
- Elise Ringo -
-
- Database Administrator -
-
-
-
-
- Headshot of Shanee Rosen -
-
-
- Shanee Rosen -
-
- Sr. Software Engineer -
-
-
-
-
- Headshot of Noah Santacruz -
-
-
- Noah Santacruz -
-
- Sr. Engineering Manager -
-
-
-
-
- Headshot of Daniel Septimus -
-
-
- Daniel Septimus -
-
- Chief Executive Officer -
-
-
-
-
- Headshot of Samantha Shokin -
-
-
- Samantha Shokin -
-
- Grants Coordinator -
-
-
-
-
- Headshot of Hadara Steinberg -
-
-
- Hadara Steinberg -
-
- Project Manager -
-
-
-
-
- Headshot of Israel Tsadok -
-
-
- Israel Tsadok -
-
- Learning & Content Coordinator -
-
-
-
-
- Headshot of Chava Tzemach -
-
-
- Chava Tzemach -
-
- Director of Marketing and Communications -
-
-
-
-
- Headshot of Shmuel Weissman -
-
-
- Shmuel Weissman -
-
- Manager of Text Acquisition and Text Quality -
-
-
-
-
- Headshot of Sara Wolkenfeld -
-
-
- Sara Wolkenfeld -
-
- Chief Learning Officer -
-
-
-
-
- Headshot of Hedva Yechieli -
-
-
- Hedva Yechieli -
-
- Learning & Engagement Coordinator -
-
-
-
-
-
-
-

- BOARD OF DIRECTORS -

-
-
-
-
-
- Samuel Moed -
-
- Chairman -
-
-
-
-
-
- Joshua Foer -
-
- Co-Founder -
-
-
-
-
-
- Brett Lockspeiser -
-
- Co-Founder -
-
-
-
-
-
- Mo Koyfman -
-
- -
-
-
-
-
-
- Elana Stein Hain -
-
- -
-
-
-
-
-
- Jonathan Koschitzky -
-
- -
-
-
-
-
-
- Joshua Kushner -
-
- -
-
-
-
-
-
- Raanan Agus -
-
- -
-
-
-
-
-
- Rona Sheramy -
-
- -
-
-
-
-
-
- Michael Englander -
-
- -
-
-
-
-
-
- Deborah Shapira -
-
- -
-
-
-
-
- - -
-
- For general inquiries, please write to hello@sefaria.org. -
-
- If you are interested in supporting Sefaria, please write to donate@sefaria.org. -
-
- -
-
-
- -{% endblock %} diff --git a/templates/static/he/team.html b/templates/static/he/team.html deleted file mode 100644 index d9049132fa..0000000000 --- a/templates/static/he/team.html +++ /dev/null @@ -1,624 +0,0 @@ -{% extends "base.html" %} -{% load i18n static %} - -{% block title %}{% trans "The Sefaria Team" %}{% endblock %} - -{% block description %}{% trans "Sefaria's team is working to create the Jewish future." %}{% endblock %} - -{% block content %} -
-
-
-

- צוות ספריא -

-
-
-
-
-
- Headshot of Rachel Buckman -
-
-
- רחל בקמן -
-
- רכזת לימוד ותמיכה בכירה -
-
-
-
-
- Headshot of Akiva Berger -
-
-
- עקיבא ברגר -
-
- מנהל צוות הנדסה -
-
-
-
-
- Headshot of Hannah Goldberger -
-
-
- חנה גולדברגר -
-
- מנהלת אגף דיגיטל לגיוס כספים ומענקים -
-
-
-
-
- Headshot of Justin Goldstein -
-
-
- ג'סטין גולדשטיין -
-
- רכז לענייני לימוד -
-
-
-
-
- Headshot of Yishai Glasner -
-
-
- ישי גלזנר -
-
- מהנדס תוכנה -
-
-
-
-
- Headshot of Rachel Grossman -
-
-
- אוליביה גרבר -
-
- מנהלת שיווק -
-
-
- -
-
- Headshot of Rachel Grossman -
-
-
- רחל גרוסמן -
-
- רכזת עריכת תוכן -
-
-
-
-
- Headshot of Talia Graff -
-
-
- טליה גרף -
-
- ראש הסגל -
-
-
-
-
- Headshot of Sarit Dubin -
-
-
- שרית דובין -
-
- מנהלת תקשורת בכירה -
-
-
-
-
- Headshot of Ephraim Damboritz -
-
-
- אפרים דמבוריץ -
-
- מומחה הנדסה בכיר -
-
-
-
-
- Headshot of Tali Herenstein -
-
-
- טלי הרנשטיין -
-
- מנהלת אסטרטגיה בכירה -
-
-
- -
-
- Headshot of Sara Wolkenfeld -
-
-
- שרה וולקנפלד -
-
- מנהלת חינוך והוראה -
-
-
-
-
- Headshot of Shmuel Weissman -
-
-
- שמואל וייסמן -
-
- אחראי רכש טקסטים ואיכות -
-
-
-
-
- Headshot of Hedva Yechieli -
-
-
- חדוה יחיאלי -
-
- רכזת חינוך ומעורבות -
-
-
-
-
- Headshot of Lev Israel -
-
-
- לב ישראל -
-
- מנהל מוצר ראשי -
-
-
-
-
- Headshot -
-
-
- זלמן כהן -
-
- מהנדס תוכנה זוטר -
-
-
-
-
- Headshot of Yonadav Leibowitz -
-
-
- יונדב ליבוביץ -
-
- מהנדס מחקר זוטר -
-
-
-
-
- Headshot of Annie Lumerman -
-
-
- אנני לומרמן -
-
- מנהלת תפעול ראשית -
-
-
-
-
- Headshot of Amanda Minsky -
-
-
- אמנדה מינסקי -
-
- רכזת אנשים ותפעול -
-
-
-
-
- Headshot of Francis Nataf -
-
-
- יעקב (פרנסיס) נטף -
-
- מומחה תרגום ומחקר -
-
-
-
-
- Headshot of Russel Neiss -
-
-
- רזיאל ניס -
-
- מנהל מוצר והנדסה -
-
-
-
-
- Headshot of Desiree Neissani -
-
-
- שרה ניסני -
-
- עוזר מיוחד, משרד המנכ"ל -
-
-
-
-
- Headshot of Noah Santacruz -
-
-
- נח סנטקרוז -
-
- מנהל הנדסה בכיר -
-
-
-
-
- Headshot of Daniel Septimus -
-
-
- דניאל ספטימוס -
-
- מנהל כללי -
-
-
-
-
- Headshot of Michael Fankhauser -
-
-
- מיכאל פאנקהאוזר -
-
- מנהל מוצר בכיר -
-
-
-
-
- Headshot of Israel Tsadok -
-
-
- ישראל צדוק -
-
- רכז חינוך ותוכן -
-
-
-
-
- Headshot of Chava Tzemach -
-
-
- חוה צמח -
-
- מנהלת אגף תקשורת ושיווק -
-
-
-
-
- Headshot of Caitlyn Cushing -
-
-
- קייטלין קושינג -
-
- רכזת פיתוח משאבים -
-
-
-
-
- Headshot of Steve Kaplan -
-
-
- סטיב קפלן -
-
- מהנדס תוכנה -
-
-
-
-
- Headshot of Sarah Kreitman -
-
-
- שרה קרייטמן -
-
- מהנדסת תוכנה זוטרה -
-
-
-
-
- Headshot of Shanee Rosen -
-
-
- שני רוזן -
-
- מהנדסת תוכנה בכירה -
-
-
-
-
- Headshot of Elise Ringo -
-
-
- יעל רינגו -
-
- מנהלת מאגר נתונים -
-
-
-
-
- Headshot of Rebecca Remis -
-
-
- רבקה רמיס -
-
- מנהלת אנשים ותפעול בכירה -
-
-
-
-
- Headshot of Samantha Shokin -
-
-
- סמנתה שוקין -
-
- רכזת גרנטים -
-
-
-
-
- Headshot of Hadara Steinberg -
-
-
- הדרה שטיינברג -
-
- מנהלת פרוייקטים -
-
-
-
-
-
-
-

- מועצת המנהלים -

-
-
-
-
-
- שמואל מועד -
-
- יושב ראש -
-
-
-
-
-
- ג'ושוע פוייר -
-
- מייסד-שותף -
-
-
-
-
-
- ברט לקספיזר -
-
- מייסד-שותף -
-
-
-
-
-
- מו קויפמן -
-
- -
-
-
-
-
-
- אלנה שטיין היין -
-
- -
-
-
-
-
-
- יונתן קושיצקי -
-
- -
-
-
-
-
-
- ג'ושוע קושנר -
-
- -
-
-
-
-
-
- רענן אגוס -
-
- -
-
-
-
-
-
- רונה שרמי -
-
- -
-
-
-
-
-
- מיכאל ענגלענדער -
-
- -
-
-
-
-
-
- דברה שפירא -
-
- -
-
-
-
-
- - -
-
- לשאלות ובקשות כלליות, אנא צרו קשר בכתובת הדוא"ל hello@sefaria.org. -
-
- אם הנכם מעוניינים לתמוך בספריא, אנא צרו קשר בכתובת הדוא"ל donate@sefaria.org. -
-
-
-
-
- -{% endblock %}