Manual license edit of remaining files

This commit is contained in:
Quentin Gliech
2024-09-05 14:57:02 +02:00
parent 9a946c19e7
commit 0d41cd8a0f
48 changed files with 217 additions and 608 deletions

View File

@@ -1,16 +1,8 @@
// Copyright 2023 The Matrix.org Foundation C.I.C. // Copyright 2024 New Vector Ltd.
// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: AGPL-3.0-only
// you may not use this file except in compliance with the License. // Please see LICENSE in the repository root for full details.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
message = _{ (text | percent | placeholder)* ~ EOI } message = _{ (text | percent | placeholder)* ~ EOI }

View File

@@ -75,19 +75,11 @@ impl Display for File {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
writeln!( writeln!(
f, f,
r#"// Copyright 2023 The Matrix.org Foundation C.I.C. r#"// Copyright 2024 New Vector Ltd.
// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: AGPL-3.0-only
// you may not use this file except in compliance with the License. // Please see LICENSE in the repository root for full details.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#![allow(clippy::doc_markdown)] #![allow(clippy::doc_markdown)]

View File

@@ -1,17 +1,9 @@
<!-- <!--
Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C. Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--> -->
<!-- Must be kept in sync with templates/app.html --> <!-- Must be kept in sync with templates/app.html -->

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C. Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{# Must be kept in sync with frontend/index.html #} {# Must be kept in sync with frontend/index.html #}
{% set _ = translator(lang) %} {% set _ = translator(lang) %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021, 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% set _ = translator(lang) %} {% set _ = translator(lang) %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% macro link(text, uri, mode, params, type="button", kind="primary", destructive=False) %} {% macro link(text, uri, mode, params, type="button", kind="primary", destructive=False) %}
{% if type == "button" %} {% if type == "button" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021-2023 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% macro link(text, href="#", class="", size="lg") %} {% macro link(text, href="#", class="", size="lg") %}
<a class="cpd-button {{ class }}" data-kind="primary" data-size="{{ size }}" href="{{ href | prefix_url }}">{{ text }}</a> <a class="cpd-button {{ class }}" data-kind="primary" data-size="{{ size }}" href="{{ href | prefix_url }}">{{ text }}</a>

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% macro form(class="") -%} {% macro form(class="") -%}
{%- if captcha|default(False) -%} {%- if captcha|default(False) -%}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C. Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% macro form_error_message(error) -%} {% macro form_error_message(error) -%}
{% if error.kind == "invalid_credentials" %} {% if error.kind == "invalid_credentials" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021, 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% set cnt = counter() %} {% set cnt = counter() %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
<footer class="legal-footer"> <footer class="legal-footer">
{%- if branding.policy_uri or branding.tos_uri -%} {%- if branding.policy_uri or branding.tos_uri -%}
@@ -38,4 +30,4 @@ limitations under the License.
{%- if branding.imprint -%} {%- if branding.imprint -%}
<p class="imprint">{{ branding.imprint }}</p> <p class="imprint">{{ branding.imprint }}</p>
{%- endif -%} {%- endif -%}
</footer> </footer>

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{# Regenerate with the following shell script: {# Regenerate with the following shell script:
@@ -1065,4 +1057,3 @@ done
<path d="M4 20c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 2 18V6c0-.55.196-1.02.587-1.412A1.926 1.926 0 0 1 4 4h16c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412v12c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0 1 20 20H4Zm0-2h16V8H4v10Z"/> <path d="M4 20c-.55 0-1.02-.196-1.413-.587A1.926 1.926 0 0 1 2 18V6c0-.55.196-1.02.587-1.412A1.926 1.926 0 0 1 4 4h16c.55 0 1.02.196 1.413.588.391.391.587.862.587 1.412v12c0 .55-.196 1.02-.587 1.413A1.926 1.926 0 0 1 20 20H4Zm0-2h16V8H4v10Z"/>
</svg> </svg>
{% endmacro %} {% endmacro %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% macro logo(brand, class="") -%} {% macro logo(brand, class="") -%}
{% if brand == "google" -%} {% if brand == "google" -%}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% macro button(text, csrf_token, as_link=false, post_logout_action={}) %} {% macro button(text, csrf_token, as_link=false, post_logout_action={}) %}
<form method="POST" action="{{ "/logout" | prefix_url }}" class="inline-flex"> <form method="POST" action="{{ "/logout" | prefix_url }}" class="inline-flex">
@@ -27,4 +19,3 @@ limitations under the License.
{% endif %} {% endif %}
</form> </form>
{% endmacro %} {% endmacro %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% macro list(scopes) %} {% macro list(scopes) %}
<ul> <ul>

View File

@@ -1,17 +1,9 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-#} -#}
{%- set _ = translator(lang) -%} {%- set _ = translator(lang) -%}
@@ -38,8 +30,8 @@ limitations under the License.
<a id="button" href="{{ recovery_link }}" target="_blank" style=" <a id="button" href="{{ recovery_link }}" target="_blank" style="
display: inline-block; display: inline-block;
transition: background-color 0.1s ease; transition: background-color 0.1s ease;
font-size: 18px; font-size: 18px;
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 600; font-weight: 600;
color: #FFF; color: #FFF;
background-color: #1B1D22; background-color: #1B1D22;
@@ -52,4 +44,4 @@ limitations under the License.
<br /> <br />
{{ _("mas.emails.recovery.you_can_ignore") }} {{ _("mas.emails.recovery.you_can_ignore") }}
</body> </body>
</html> </html>

View File

@@ -1,17 +1,9 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-#} -#}
{%- set _ = translator(lang) -%} {%- set _ = translator(lang) -%}

View File

@@ -1,17 +1,9 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-#} -#}
{%- set _ = translator(lang) -%} {%- set _ = translator(lang) -%}
@@ -21,4 +13,4 @@ limitations under the License.
{{ recovery_link }} {{ recovery_link }}
{{ _("mas.emails.recovery.you_can_ignore") }} {{ _("mas.emails.recovery.you_can_ignore") }}

View File

@@ -1,17 +1,9 @@
{# {#
Copyright 2021, 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-#} -#}
{%- set _ = translator(lang) -%} {%- set _ = translator(lang) -%}

View File

@@ -1,17 +1,9 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-#} -#}
{%- set _ = translator(lang) -%} {%- set _ = translator(lang) -%}

View File

@@ -1,17 +1,9 @@
{# {#
Copyright 2021, 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-#} -#}
{%- set _ = translator(lang) -%} {%- set _ = translator(lang) -%}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C. Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2023 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}
@@ -165,4 +157,3 @@ limitations under the License.
</header> </header>
{% endif %} {% endif %}
{% endblock content %} {% endblock content %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2023, 2024 The Matrix.org Foundation C.I.C. Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}
@@ -48,4 +40,3 @@ limitations under the License.
{{ button.button(text=_("action.continue")) }} {{ button.button(text=_("action.continue")) }}
</form> </form>
{% endblock content %} {% endblock content %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{# Sometimes we don't have the language set, so we default to english #} {# Sometimes we don't have the language set, so we default to english #}
{% set lang = lang or "en" %} {% set lang = lang or "en" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021, 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}
@@ -58,7 +50,7 @@ limitations under the License.
{% call(f) field.field(label=_("common.password"), name="password", form_state=form) %} {% call(f) field.field(label=_("common.password"), name="password", form_state=form) %}
<input {{ field.attributes(f) }} class="cpd-text-control" type="password" autocomplete="password" required /> <input {{ field.attributes(f) }} class="cpd-text-control" type="password" autocomplete="password" required />
{% endcall %} {% endcall %}
{% if features.account_recovery %} {% if features.account_recovery %}
{{ button.link_text(text=_("mas.login.forgot_password"), href="/recover", class="self-center") }} {{ button.link_text(text=_("mas.login.forgot_password"), href="/recover", class="self-center") }}
{% endif %} {% endif %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}
@@ -58,4 +50,3 @@ limitations under the License.
{% endif %} {% endif %}
</main> </main>
{% endblock content %} {% endblock content %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}
@@ -60,4 +52,3 @@ limitations under the License.
</div> </div>
</main> </main>
{% endblock content %} {% endblock content %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2021, 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2021-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2022 The Matrix.org Foundation C.I.C. Copyright 2024 New Vector Ltd.
Copyright 2022-2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %} {% extends "base.html" %}

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">

View File

@@ -1,18 +1,10 @@
{# {#
Copyright 2024 New Vector Ltd.
Copyright 2024 The Matrix.org Foundation C.I.C. Copyright 2024 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License"); SPDX-License-Identifier: AGPL-3.0-only
you may not use this file except in compliance with the License. Please see LICENSE in the repository root for full details.
You may obtain a copy of the License at -#}
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{# This is taken from the swagger-ui/dist/oauth2-redirect.html file #} {# This is taken from the swagger-ui/dist/oauth2-redirect.html file #}

View File

@@ -5,19 +5,10 @@
// Please see LICENSE in the repository root for full details. // Please see LICENSE in the repository root for full details.
const HEADER_TEMPLATE = `\ const HEADER_TEMPLATE = `\
// Copyright %%CURRENT_YEAR%% The Matrix.org Foundation C.I.C. // Copyright %%CURRENT_YEAR%% New Vector Ltd.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: AGPL-3.0-only
// you may not use this file except in compliance with the License. // Please see LICENSE in the repository root for full details.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
`; `;

View File

@@ -1,17 +1,9 @@
#!/usr/bin/env node #!/usr/bin/env node
// Copyright 2023 The Matrix.org Foundation C.I.C. // Copyright 2024 New Vector Ltd.
// Copyright 2023, 2024 The Matrix.org Foundation C.I.C.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // SPDX-License-Identifier: AGPL-3.0-only
// you may not use this file except in compliance with the License. // Please see LICENSE in the repository root for full details.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import log4js from "log4js"; import log4js from "log4js";
import { ArgumentConfig, parse } from "ts-command-line-args"; import { ArgumentConfig, parse } from "ts-command-line-args";