Content-Length: 319057 | pFad | http://github.com/Sefaria/Sefaria-Project/pull/2400

EF Plugins by akiva10b · Pull Request #2400 · Sefaria/Sefaria-Project · GitHub
Skip to content

Plugins #2400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Plugins #2400

wants to merge 3 commits into from

Conversation

akiva10b
Copy link
Contributor

@akiva10b akiva10b commented Apr 3, 2025

This pull request introduces several significant changes, primarily focusing on the integration of a plugin management system, enhancements to the user profile settings, and updates to various views and components to support the new functionalities.

Plugin Management System:

  • fields/file_fields.py: Added GCSImageFieldFile and GCSImageField classes to handle image storage on Google Cloud Storage.
  • plugins/models.py: Created a Plugin model to store plugin information, including name, description, URL, and image.
  • plugins/admin.py: Registered the Plugin model with the Django admin interface using PluginAdmin.
  • plugins/views.py: Added views to render the development version of a plugin and retrieve all plugins.
  • sefaria/urls.py: Updated URL patterns to include routes for the plugin API.

User Profile Enhancements:

Frontend Integration:

Miscellaneous Updates:

These changes collectively introduce a robust plugin management system, enhance user profile capabilities, and integrate new frontend components to support plugin interactions.

@coolify-sefaria
Copy link

coolify-sefaria bot commented Apr 3, 2025

The preview deployment is ready. 🟢

Open Build Logs

Last updated at: 2025-04-03 18:27:28 CET

const scrollToRef = (sref) => {
if (sref) {
const query = `div[data-ref="${sref}"]`;
const element = document.querySelectorAll(query)[0];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would scroll on the first (and only first) matching text pane on the page, right? Not just the one immediately to the "left" of the plugin? That doesn't sound like the expected behavior...

Better to figure out how to pass an event that will query and scroll the appropriate React pane.

if (sref) {
const query = `div[data-ref="${sref}"]`;
const element = document.querySelectorAll(query)[0];
if (element) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have scrollToRef return a boolean so the plugin can know if the element was not in scope to scroll


const scrollToRef = (sref) => {
if (sref) {
const query = `div[data-ref="${sref}"]`;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this match a reference like Genesis 2, or just Genesis 2.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Sefaria/Sefaria-Project/pull/2400

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy