Skip to content

Commit

Permalink
fix: dont override users' slippers components (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
danihodovic committed Jun 26, 2024
1 parent 4f1735d commit 89690c4
Show file tree
Hide file tree
Showing 24 changed files with 32 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defaults for new projects.
## Features

- 📱 Mobile-friendly design
- 💄 Confiugrable themes
- 💄 Configurable themes
- 🗣️ Translations
- 🇪🇸 Spanish
- 🇫🇷 French
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/account_inactive.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/account_inactive.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Account Inactive" as heading %}
{% trans "This account is inactive." as subheading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/base_reauthenticate.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/base_reauthenticate.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Confirm Access" as heading %}
{% blocktranslate asvar subheading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/email.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/email.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Email Addresses" as heading %}
{% #container heading=heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/email_confirm.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "account/email_confirm.html" %}
{% load i18n %}
{% load account %}
{% load slippers %}
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}
{% trans "Confirm Email Address" as heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/login.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/login.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}
{% trans "Sign In" as heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/logout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/logout.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Sign Out" as heading %}
{% trans "Are you sure you want to sign out?" as subheading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/password_change.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/password_change.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}
{% trans "Change Password" as heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/password_reset.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/password_reset.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Password Reset" as heading %}
{% #container heading=heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/password_reset_done.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/password_reset_done.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Password Reset" as heading %}
{% #container heading=heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/password_reset_from_key.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/password_reset_from_key.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% if token_fail %}
{% trans "Bad Token" as heading %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/password_reset_from_key_done.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Change Password" as heading %}
{% trans "Your password is now changed." as subheading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/password_set.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/password_set.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}
{% trans "Set Password" as heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/reauthenticate.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/reauthenticate.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block reauthenticate_content %}
<div class="mt-5">{% blocktranslate %}Enter your password:{% endblocktranslate %}</div>
{% url 'account_reauthenticate' as url %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/signup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/signup.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}
{% trans "Sign Up" as heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/signup_closed.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/signup_closed.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Sign Up Closed" as heading %}
{% trans "We are sorry, but the sign up is currently closed." as subheading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/account/verification_sent.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "account/verification_sent.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Confirm Email Address" as heading %}
{% blocktrans asvar subheading %}We have sent an email to you for verification. Follow the link provided to finalize the signup process. If you do not see the verification email in your main inbox, check your spam folder. Please contact us if you do not receive the verification email within a few minutes.{% endblocktrans %}
Expand Down
3 changes: 0 additions & 3 deletions allauth_ui/templates/components.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion allauth_ui/templates/mfa/reauthenticate.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "mfa/reauthenticate.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block reauthenticate_content %}
<div class="mt-5">{% blocktranslate %}Enter an authenticator code:{% endblocktranslate %}</div>
{% url 'mfa_reauthenticate' as action_url %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "socialaccount/authentication_error.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% block content %}
{% trans "Third-Party Login Failure" as heading %}
{% trans "An error occurred while attempting to login via your third-party account." as subheading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/socialaccount/connections.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "socialaccount/connections.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% load widget_tweaks %}
{% block content %}
{% trans "Account Connections" as heading %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/socialaccount/login.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "socialaccount/login.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% load allauth %}
{% block content %}
{% if process == "connect" %}
Expand Down
2 changes: 1 addition & 1 deletion allauth_ui/templates/socialaccount/signup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "socialaccount/signup.html" %}
{% load i18n %}
{% load slippers %}
{% load allauth_ui %}
{% load allauth %}
{% block content %}
{% trans "Sign Up" as heading %}
Expand Down
10 changes: 10 additions & 0 deletions allauth_ui/templatetags/allauth_ui.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
from django import template
from django.conf import settings
from slippers.templatetags.slippers import register_components

register = template.Library()


@register.simple_tag
def allauth_ui_theme():
return settings.ALLAUTH_UI_THEME


register_components(
{
"container": "components/container.html",
"form": "components/form.html",
},
register,
)

0 comments on commit 89690c4

Please sign in to comment.