Skip to content

Commit

Permalink
chore: format (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinckr authored Feb 18, 2025
1 parent 0f43f99 commit be08dc6
Show file tree
Hide file tree
Showing 62 changed files with 1,083 additions and 1,038 deletions.
18 changes: 6 additions & 12 deletions .github/ISSUE_TEMPLATE/BUG-REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,17 @@ body:
- attributes:
label: "Preflight checklist"
options:
- label:
"I could not find a solution in the existing issues, docs, nor
- label: "I could not find a solution in the existing issues, docs, nor
discussions."
required: true
- label:
"I agree to follow this project's [Code of
- label: "I agree to follow this project's [Code of
Conduct](https://github.com/ory/examples/blob/master/CODE_OF_CONDUCT.md)."
required: true
- label:
"I have read and am following this repository's [Contribution
- label: "I have read and am following this repository's [Contribution
Guidelines](https://github.com/ory/examples/blob/master/CONTRIBUTING.md)."
required: true
- label:
"I have joined the [Ory Community Slack](https://slack.ory.sh)."
- label:
"I am signed up to the [Ory Security Patch
- label: "I have joined the [Ory Community Slack](https://slack.ory.sh)."
- label: "I am signed up to the [Ory Security Patch
Newsletter](https://www.ory.sh/l/sign-up-newsletter)."
id: checklist
type: checkboxes
Expand Down Expand Up @@ -62,8 +57,7 @@ body:
validations:
required: true
- attributes:
description:
"Please copy and paste any relevant log output. This will be
description: "Please copy and paste any relevant log output. This will be
automatically formatted into code, so no need for backticks. Please
redact any sensitive information"
label: "Relevant log output"
Expand Down
18 changes: 6 additions & 12 deletions .github/ISSUE_TEMPLATE/DESIGN-DOC.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# AUTO-GENERATED, DO NOT EDIT!
# Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/DESIGN-DOC.yml

description:
"A design document is needed for non-trivial changes to the code base."
description: "A design document is needed for non-trivial changes to the code base."
labels:
- rfc
name: "Design Document"
Expand All @@ -23,22 +22,17 @@ body:
- attributes:
label: "Preflight checklist"
options:
- label:
"I could not find a solution in the existing issues, docs, nor
- label: "I could not find a solution in the existing issues, docs, nor
discussions."
required: true
- label:
"I agree to follow this project's [Code of
- label: "I agree to follow this project's [Code of
Conduct](https://github.com/ory/examples/blob/master/CODE_OF_CONDUCT.md)."
required: true
- label:
"I have read and am following this repository's [Contribution
- label: "I have read and am following this repository's [Contribution
Guidelines](https://github.com/ory/examples/blob/master/CONTRIBUTING.md)."
required: true
- label:
"I have joined the [Ory Community Slack](https://slack.ory.sh)."
- label:
"I am signed up to the [Ory Security Patch
- label: "I have joined the [Ory Community Slack](https://slack.ory.sh)."
- label: "I am signed up to the [Ory Security Patch
Newsletter](https://www.ory.sh/l/sign-up-newsletter)."
id: checklist
type: checkboxes
Expand Down
24 changes: 8 additions & 16 deletions .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# AUTO-GENERATED, DO NOT EDIT!
# Please edit the original at https://github.com/ory/meta/blob/master/templates/repository/common/.github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml

description:
"Suggest an idea for this project without a plan for implementation"
description: "Suggest an idea for this project without a plan for implementation"
labels:
- feat
name: "Feature Request"
Expand All @@ -16,22 +15,17 @@ body:
- attributes:
label: "Preflight checklist"
options:
- label:
"I could not find a solution in the existing issues, docs, nor
- label: "I could not find a solution in the existing issues, docs, nor
discussions."
required: true
- label:
"I agree to follow this project's [Code of
- label: "I agree to follow this project's [Code of
Conduct](https://github.com/ory/examples/blob/master/CODE_OF_CONDUCT.md)."
required: true
- label:
"I have read and am following this repository's [Contribution
- label: "I have read and am following this repository's [Contribution
Guidelines](https://github.com/ory/examples/blob/master/CONTRIBUTING.md)."
required: true
- label:
"I have joined the [Ory Community Slack](https://slack.ory.sh)."
- label:
"I am signed up to the [Ory Security Patch
- label: "I have joined the [Ory Community Slack](https://slack.ory.sh)."
- label: "I am signed up to the [Ory Security Patch
Newsletter](https://www.ory.sh/l/sign-up-newsletter)."
id: checklist
type: checkboxes
Expand All @@ -44,8 +38,7 @@ body:
id: ory-network-project
type: input
- attributes:
description:
"Is your feature request related to a problem? Please describe."
description: "Is your feature request related to a problem? Please describe."
label: "Describe your problem"
placeholder:
"A clear and concise description of what the problem is. Ex. I'm always
Expand Down Expand Up @@ -79,8 +72,7 @@ body:
validations:
required: true
- attributes:
description:
"Add any other context or screenshots about the feature request here."
description: "Add any other context or screenshots about the feature request here."
label: Additional Context
id: additional
type: textarea
6 changes: 2 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ blank_issues_enabled: false
contact_links:
- name: Ory Examples Forum
url: https://github.com/orgs/ory/discussions
about:
Please ask and answer questions here, show your implementations and
about: Please ask and answer questions here, show your implementations and
discuss ideas.
- name: Ory Chat
url: https://www.ory.sh/chat
about:
Hang out with other Ory community members to ask and answer questions.
about: Hang out with other Ory community members to ask and answer questions.
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ them, don't hesitate to ask. We're here to help! This is simply a reminder of wh
- [ ] I have read the [contributing guidelines](../blob/master/CONTRIBUTING.md) and signed the CLA.
- [ ] I have referenced an issue containing the design document if my change introduces a new feature.
- [ ] I have read the [security policy](../security/policy).
- [ ] I confirm that this pull request does not address a security vulnerability.
If this pull request addresses a security vulnerability,
- [ ] I confirm that this pull request does not address a security vulnerability.
If this pull request addresses a security vulnerability,
I confirm that I got approval (please contact [[email protected]](mailto:[email protected])) from the maintainers to push the changes.
- [ ] I have added tests that prove my fix is effective or that my feature works.
- [ ] I have added the necessary documentation within the code base (if appropriate).
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ jobs:
uses: ory/ci/licenses/check@master
- name: Write, commit, push licenses
uses: ory/ci/licenses/write@master
if:
${{ github.ref == 'refs/heads/main' || github.ref ==
if: ${{ github.ref == 'refs/heads/main' || github.ref ==
'refs/heads/master' || github.ref == 'refs/heads/v3' }}
with:
author-email:
${{ secrets.ORY_BOT_PAT &&
author-email: ${{ secrets.ORY_BOT_PAT &&
'[email protected]' ||
format('{0}@users.noreply.github.com', github.actor) }}
author-name: ${{ secrets.ORY_BOT_PAT && 'ory-bot' || github.actor }}
2 changes: 1 addition & 1 deletion django-ory-cloud/mysite/manage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Ory Corp
# Copyright © 2025 Ory Corp
# SPDX-License-Identifier: Apache-2.0

#!/usr/bin/env python
Expand Down
2 changes: 1 addition & 1 deletion django-ory-cloud/mysite/mysite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Copyright © 2023 Ory Corp
# Copyright © 2025 Ory Corp
# SPDX-License-Identifier: Apache-2.0

2 changes: 1 addition & 1 deletion django-ory-cloud/mysite/mysite/asgi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Ory Corp
# Copyright © 2025 Ory Corp
# SPDX-License-Identifier: Apache-2.0

"""
Expand Down
2 changes: 1 addition & 1 deletion django-ory-cloud/mysite/mysite/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Ory Corp
# Copyright © 2025 Ory Corp
# SPDX-License-Identifier: Apache-2.0

"""
Expand Down
2 changes: 1 addition & 1 deletion django-ory-cloud/mysite/mysite/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Ory Corp
# Copyright © 2025 Ory Corp
# SPDX-License-Identifier: Apache-2.0

"""mysite URL Configuration
Expand Down
2 changes: 1 addition & 1 deletion django-ory-cloud/mysite/mysite/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2023 Ory Corp
# Copyright © 2025 Ory Corp
# SPDX-License-Identifier: Apache-2.0

"""
Expand Down
137 changes: 81 additions & 56 deletions django-ory-cloud/mysite/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,108 +1,133 @@
{% load static i18n %}
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>{% block title %}{% endblock title %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="icon" href="{% static 'images/favicons/favicon.ico' %}">
<link rel="icon" href="{% static 'images/favicons/favicon.ico' %}" />

{% block css %}
<!-- Latest compiled and minified Bootstrap CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" integrity="sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css"
integrity="sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Your stuff: Third-party CSS libraries go here -->

<!-- This file stores project-specific CSS -->
<link href="{% static 'css/project.css' %}" rel="stylesheet">
<link href="{% static 'css/project.css' %}" rel="stylesheet" />
{% endblock %}
<!-- Le javascript
================================================== -->
{# Placed at the top of the document so pages load faster with defer #}
{% block javascript %}
<!-- Vendor dependencies bundled as one file-->
<script defer src="{% static 'js/vendors.min.js' %}"></script>
<!-- Bootstrap JS -->
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js" integrity="sha512-OvBgP9A2JBgiRad/mM36mkzXSXaJE9BEIENnVEmeZdITvwT09xnxLtT4twkCa8m/loMbPHsvPl0T8lRGVBwjlQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- Your stuff: Third-party javascript libraries go here -->

<!-- place project specific Javascript in this file -->
<script defer src="{% static 'js/project.js' %}"></script>
{# Placed at the top of the document so pages load faster with defer #} {%
block javascript %}
<!-- Vendor dependencies bundled as one file-->
<script defer src="{% static 'js/vendors.min.js' %}"></script>
<!-- Bootstrap JS -->
<script
defer
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js"
integrity="sha512-OvBgP9A2JBgiRad/mM36mkzXSXaJE9BEIENnVEmeZdITvwT09xnxLtT4twkCa8m/loMbPHsvPl0T8lRGVBwjlQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<!-- Your stuff: Third-party javascript libraries go here -->

<!-- place project specific Javascript in this file -->
<script defer src="{% static 'js/project.js' %}"></script>

{% endblock javascript %}

</head>

<body>

<div class="mb-1">
<nav class="navbar navbar-expand-md navbar-light bg-light">
<div class="container-fluid">
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<button
class="navbar-toggler navbar-toggler-right"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="{% url 'home' %}"></a>

<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="{% url 'home' %}">Home <span class="visually-hidden">(current)</span></a>
<a class="nav-link" href="{% url 'home' %}"
>Home <span class="visually-hidden">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link" href="">About</a>
</li>
{% if request.user.is_authenticated %}
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a class="nav-link" href="">{% translate "My Profile" %}</a>
</li>
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a class="nav-link" href="{{ logout_url }}">{% translate "Sign Out" %}</a>
</li>
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a class="nav-link" href="">{% translate "My Profile" %}</a>
</li>
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
<a class="nav-link" href="{{ logout_url }}"
>{% translate "Sign Out" %}</a
>
</li>
{% else %}
<li class="nav-item">
<a id="sign-up-link" class="nav-link" href="{{ signup_url }}">{% translate "Sign Up" %}</a>
<a id="sign-up-link" class="nav-link" href="{{ signup_url }}"
>{% translate "Sign Up" %}</a
>
</li>
<li class="nav-item">
<a id="log-in-link" class="nav-link" href="{{ login_url }}"
>{% translate "Sign In" %}</a
>
</li>
<li class="nav-item">
<a id="log-in-link" class="nav-link" href="{{ login_url }}">{% translate "Sign In" %}</a>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>

</div>

<div class="container">

{% if messages %}
{% for message in messages %}
<div class="alert alert-dismissible {% if message.tags %}alert-{{ message.tags }}{% endif %}">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endif %}

{% block content %}
<p>Use this document as a way to quick start any new project.</p>
{% if messages %} {% for message in messages %}
<div
class="alert alert-dismissible {% if message.tags %}alert-{{ message.tags }}{% endif %}"
>
{{ message }}
<button
type="button"
class="btn-close"
data-bs-dismiss="alert"
aria-label="Close"
></button>
</div>
{% endfor %} {% endif %} {% block content %}
<p>Use this document as a way to quick start any new project.</p>
{% endblock content %}
</div>
<!-- /container -->

</div> <!-- /container -->

{% block modal %}{% endblock modal %}

{% block inline_javascript %}
{% comment %}
Script tags with only code, no src (defer by default). To run
{% block modal %}{% endblock modal %} {% block inline_javascript %} {%
comment %} Script tags with only code, no src (defer by default). To run
with a "defer" so that you run inline code:
<script>
window.addEventListener('DOMContentLoaded', () => {/* Run whatever you want */});
window.addEventListener("DOMContentLoaded", () => {
/* Run whatever you want */
});
</script>
{% endcomment %}
{% endblock inline_javascript %}
{% endcomment %} {% endblock inline_javascript %}
</body>
</html>
Loading

0 comments on commit be08dc6

Please sign in to comment.