Skip to content

Commit

Permalink
test with prettier?
Browse files Browse the repository at this point in the history
  • Loading branch information
nicedevil007 committed Jul 18, 2024
1 parent 53d6f93 commit 44c2eb3
Show file tree
Hide file tree
Showing 116 changed files with 61,148 additions and 24,322 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Explain what this PR changes, what the rationale behind the change is, if any ne
Ideally also link an Issue for context that this PR will close using `closes #`
-->

REPLACE ME

---
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gen-update-webauthn-mds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: authentik-gen-update-webauthn-mds
on:
workflow_dispatch:
schedule:
- cron: '30 1 1,15 * *'
- cron: "30 1 1,15 * *"

env:
POSTGRES_DB: authentik
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/repo-stale.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'authentik-repo-stale'
name: "authentik-repo-stale"

on:
schedule:
- cron: '30 1 * * *'
- cron: "30 1 * * *"
workflow_dispatch:

permissions:
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"ms-python.black-formatter",
"redhat.vscode-yaml",
"Tobermory.es6-string-html",
"unifiedjs.vscode-mdx",
"unifiedjs.vscode-mdx"
]
}
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
},
"justMyCode": true,
"django": true
},
}
]
}
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"sso",
"totp",
"traefik",
"webauthn",
"webauthn"
],
"todo-tree.tree.showCountsInTree": true,
"todo-tree.tree.showBadges": true,
Expand Down Expand Up @@ -48,9 +48,7 @@
"ignoreCase": false
}
],
"go.testFlags": [
"-count=1"
],
"go.testFlags": ["-count=1"],
"github-actions.workflows.pinned.workflows": [
".github/workflows/ci-main.yml"
]
Expand Down
41 changes: 13 additions & 28 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,24 @@
{
"label": "authentik[core]: format & test",
"command": "poetry",
"args": [
"run",
"make"
],
"group": "build",
"args": ["run", "make"],
"group": "build"
},
{
"label": "authentik[core]: run",
"command": "poetry",
"args": [
"run",
"make",
"run",
],
"args": ["run", "make", "run"],
"group": "build",
"presentation": {
"panel": "dedicated",
"group": "running"
},
}
},
{
"label": "authentik[web]: format",
"command": "make",
"args": ["web"],
"group": "build",
"group": "build"
},
{
"label": "authentik[web]: watch",
Expand All @@ -38,29 +31,25 @@
"presentation": {
"panel": "dedicated",
"group": "running"
},
}
},
{
"label": "authentik: install",
"command": "make",
"args": ["install"],
"group": "build",
"group": "build"
},
{
"label": "authentik: i18n-extract",
"command": "poetry",
"args": [
"run",
"make",
"i18n-extract"
],
"group": "build",
"args": ["run", "make", "i18n-extract"],
"group": "build"
},
{
"label": "authentik[website]: format",
"command": "make",
"args": ["website"],
"group": "build",
"group": "build"
},
{
"label": "authentik[website]: watch",
Expand All @@ -70,17 +59,13 @@
"presentation": {
"panel": "dedicated",
"group": "running"
},
}
},
{
"label": "authentik[api]: generate",
"command": "poetry",
"args": [
"run",
"make",
"gen"
],
"args": ["run", "make", "gen"],
"group": "build"
},
}
]
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
3 changes: 3 additions & 0 deletions authentik/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
build
coverage
1 change: 1 addition & 0 deletions authentik/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
29 changes: 14 additions & 15 deletions authentik/api/templates/api/browser.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{% extends "base/skeleton.html" %}

{% load authentik_core %}

{% block title %}
API Browser - {{ brand.branding_title }}
{% endblock %}

{% block head %}
{% versioned_script "dist/standalone/api-browser/index-%v.js" %}
<meta name="theme-color" content="#151515" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#151515" media="(prefers-color-scheme: dark)">
{% endblock %}

{% block body %}
{% extends "base/skeleton.html" %} {% load authentik_core %} {% block title %}
API Browser - {{ brand.branding_title }} {% endblock %} {% block head %} {%
versioned_script "dist/standalone/api-browser/index-%v.js" %}
<meta
name="theme-color"
content="#151515"
media="(prefers-color-scheme: light)"
/>
<meta
name="theme-color"
content="#151515"
media="(prefers-color-scheme: dark)"
/>
{% endblock %} {% block body %}
<ak-api-browser schemaPath="{{ path }}"></ak-api-browser>
{% endblock %}
38 changes: 19 additions & 19 deletions authentik/blueprints/tests/fixtures/conditions_fulfilled.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
version: 1
entries:
- identifiers:
name: "%(id1)s"
slug: "%(id1)s"
model: authentik_flows.flow
conditions:
- true
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id2)s"
slug: "%(id2)s"
model: authentik_flows.flow
conditions:
- true
- true
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id1)s"
slug: "%(id1)s"
model: authentik_flows.flow
conditions:
- true
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id2)s"
slug: "%(id2)s"
model: authentik_flows.flow
conditions:
- true
- true
attrs:
designation: stage_configuration
title: foo
38 changes: 19 additions & 19 deletions authentik/blueprints/tests/fixtures/conditions_not_fulfilled.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
version: 1
entries:
- identifiers:
name: "%(id1)s"
slug: "%(id1)s"
model: authentik_flows.flow
conditions:
- false
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id2)s"
slug: "%(id2)s"
model: authentik_flows.flow
conditions:
- true
- false
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id1)s"
slug: "%(id1)s"
model: authentik_flows.flow
conditions:
- false
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id2)s"
slug: "%(id2)s"
model: authentik_flows.flow
conditions:
- true
- false
attrs:
designation: stage_configuration
title: foo
18 changes: 9 additions & 9 deletions authentik/blueprints/tests/fixtures/state_absent.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 1
entries:
- identifiers:
name: "%(id)s"
slug: "%(id)s"
model: authentik_flows.flow
state: absent
- identifiers:
name: "%(id)s"
model: authentik_policies_expression.expressionpolicy
state: absent
- identifiers:
name: "%(id)s"
slug: "%(id)s"
model: authentik_flows.flow
state: absent
- identifiers:
name: "%(id)s"
model: authentik_policies_expression.expressionpolicy
state: absent
16 changes: 8 additions & 8 deletions authentik/blueprints/tests/fixtures/state_created.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: 1
entries:
- identifiers:
name: "%(id)s"
slug: "%(id)s"
model: authentik_flows.flow
state: created
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id)s"
slug: "%(id)s"
model: authentik_flows.flow
state: created
attrs:
designation: stage_configuration
title: foo
16 changes: 8 additions & 8 deletions authentik/blueprints/tests/fixtures/state_present.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: 1
entries:
- identifiers:
name: "%(id)s"
slug: "%(id)s"
model: authentik_flows.flow
state: present
attrs:
designation: stage_configuration
title: foo
- identifiers:
name: "%(id)s"
slug: "%(id)s"
model: authentik_flows.flow
state: present
attrs:
designation: stage_configuration
title: foo
22 changes: 11 additions & 11 deletions authentik/blueprints/tests/fixtures/static_prompt_export.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 1
entries:
- identifiers:
pk: cb954fd4-65a5-4ad9-b1ee-180ee9559cf4
model: authentik_stages_prompt.prompt
attrs:
name: qwerweqrq
field_key: username
label: Username
type: username
required: true
placeholder: Username
order: 0
- identifiers:
pk: cb954fd4-65a5-4ad9-b1ee-180ee9559cf4
model: authentik_stages_prompt.prompt
attrs:
name: qwerweqrq
field_key: username
label: Username
type: username
required: true
placeholder: Username
order: 0
Loading

0 comments on commit 44c2eb3

Please sign in to comment.