Skip to content

#25878 create singletion plugin#1

Merged
KrzysztofBrylski merged 9 commits intomainfrom
feature/25878-create-singleon-plugin
Jan 14, 2025
Merged

#25878 create singletion plugin#1
KrzysztofBrylski merged 9 commits intomainfrom
feature/25878-create-singleon-plugin

Conversation

@KrzysztofBrylski
Copy link
Contributor

@KrzysztofBrylski KrzysztofBrylski commented Dec 23, 2024

Added:

  • Created singleton plugin

if (!loader) {
loader = document.createElement('div');
loader.classList.add('loader-container');
loader.innerHTML = '<div class="loader"></div>';
Copy link
Member

Choose a reason for hiding this comment

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

Jest to zbyt ogólna nazwa klasy. Aby nie było konfilktów z innymi pluginami/kodem źródłowym, warto nadać unikalny przedrostek

if (!getPluginSettings()) return;
const settings = JSON.parse(getPluginSettings());

if (!pagination.current_page) return;
Copy link
Member

Choose a reason for hiding this comment

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

Zamiast korzystać z paginacji, lepiej sprawdzić status ładowania

@KrzysztofBrylski KrzysztofBrylski merged commit e25d217 into main Jan 14, 2025
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