Skip to content
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

Moved passkeys templates to passkeys subdirectory #27

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Currently, it support Django 2.0+, Python 3.7+
6. To match the look and feel of your project, Passkeys includes `base.html` but it needs blocks named `head` & `content` to added its content to it.
**Notes:**

1. You can override `PassKeys_base.html` which is used by `Passkeys.html` so you can control the styling better and current `Passkeys_base.html` extends `base.html`
1. Currently, `PassKeys_base.html` needs JQuery and bootstrap.
1. You can override `passkeys/PassKeys_base.html` which is used by `passkeys/Passkeys.html` so you can control the styling better and current `passkeys/Passkeys_base.html` extends `base.html`
1. Currently, `passkeys/PassKeys_base.html` needs bootstrap 5.

7. Somewhere in your app, add a link to 'passkeys:home'
```<li><a href="{% url 'passkeys:home' %}">Passkeys</a> </li>```
Expand All @@ -79,7 +79,7 @@ Currently, it support Django 2.0+, Python 3.7+
```html
<input type="hidden" name="passkeys" id="passkeys"/>
<button class="btn btn-block btn-dark" type="button" onclick="authn('loginForm')"><img src="{% static 'passkeys/imgs/FIDO-Passkey_Icon-White.png' %}" style="width: 24px"></button>
{%include 'passkeys.js' %}
{%include 'passkeys/passkeys.js' %}
```
For Example, See 'example' app and look at EXAMPLE.md to see how to set it up.

Expand Down Expand Up @@ -107,7 +107,7 @@ function register_pk()
{
$('#pk').show();
}
{% include 'check_passkeys.js'%}
{% include 'passkeys/check_passkeys.js'%}
$(document).ready(check_passkey(true,register_pk))
</script>
```
Expand Down
40 changes: 0 additions & 40 deletions example/static/js/sb-admin.js

This file was deleted.

7 changes: 0 additions & 7 deletions example/static/js/sb-admin.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/static/vendor/bootstrap/js/bootstrap.bundle.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions example/static/vendor/bootstrap/js/bootstrap.bundle.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions example/static/vendor/bootstrap/js/bootstrap.min.js

Large diffs are not rendered by default.

59 changes: 0 additions & 59 deletions example/static/vendor/jquery-easing/jquery.easing.compatibility.js

This file was deleted.

166 changes: 0 additions & 166 deletions example/static/vendor/jquery-easing/jquery.easing.js

This file was deleted.

1 change: 0 additions & 1 deletion example/static/vendor/jquery-easing/jquery.easing.min.js

This file was deleted.

Loading