mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-09-11 13:47:43 -04:00
Merge branch 'main' into forced-language
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
commit
cec9be957d
@ -13,12 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
<!-- This changes the project to: -->
|
<!-- This changes the project to: -->
|
||||||
- Add `COOKIE_SECURE` option to set the cookie [Secure flag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#block_access_to_your_cookies)
|
- Add `COOKIE_SECURE` option to set the cookie [Secure flag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#block_access_to_your_cookies)
|
||||||
- Sets cookie defaults to use [SameSite: None](https://web.dev/articles/samesite-cookies-explained)
|
- Sets cookie defaults to use [SameSite: None](https://web.dev/articles/samesite-cookies-explained)
|
||||||
|
|
||||||
- Determine the `BIND_NETWORK`/`--bind-network` value from the bind address ([#677](https://github.com/TecharoHQ/anubis/issues/677)).
|
- Determine the `BIND_NETWORK`/`--bind-network` value from the bind address ([#677](https://github.com/TecharoHQ/anubis/issues/677)).
|
||||||
- Implement localization system. Find locale files in lib/localization/locales/.
|
- Implement localization system. Find locale files in lib/localization/locales/.
|
||||||
- Implement a [development container](https://containers.dev/) manifest to make contributions easier.
|
- Implement a [development container](https://containers.dev/) manifest to make contributions easier.
|
||||||
- Fix dynamic cookie domains functionality ([#731](https://github.com/TecharoHQ/anubis/pull/731))
|
- Fix dynamic cookie domains functionality ([#731](https://github.com/TecharoHQ/anubis/pull/731))
|
||||||
- Add option for custom cookie prefix ([#732](https://github.com/TecharoHQ/anubis/pull/732))
|
- Add option for custom cookie prefix ([#732](https://github.com/TecharoHQ/anubis/pull/732))
|
||||||
|
- Remove the "Success" interstitial after a proof of work challenge is concluded.
|
||||||
- Add option for forcing a specific language ([#742](https://github.com/TecharoHQ/anubis/pull/742))
|
- Add option for forcing a specific language ([#742](https://github.com/TecharoHQ/anubis/pull/742))
|
||||||
|
|
||||||
## v1.20.0: Thancred Waters
|
## v1.20.0: Thancred Waters
|
||||||
|
2
lib/challenge/metarefresh/metarefresh_templ.go
generated
2
lib/challenge/metarefresh/metarefresh_templ.go
generated
@ -1,6 +1,6 @@
|
|||||||
// Code generated by templ - DO NOT EDIT.
|
// Code generated by templ - DO NOT EDIT.
|
||||||
|
|
||||||
// templ: version: v0.3.898
|
// templ: version: v0.3.906
|
||||||
package metarefresh
|
package metarefresh
|
||||||
|
|
||||||
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
||||||
|
2
web/index_templ.go
generated
2
web/index_templ.go
generated
@ -1,6 +1,6 @@
|
|||||||
// Code generated by templ - DO NOT EDIT.
|
// Code generated by templ - DO NOT EDIT.
|
||||||
|
|
||||||
// templ: version: v0.3.898
|
// templ: version: v0.3.906
|
||||||
package web
|
package web
|
||||||
|
|
||||||
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
||||||
|
@ -212,11 +212,6 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key;
|
|||||||
const t1 = Date.now();
|
const t1 = Date.now();
|
||||||
console.log({ hash, nonce });
|
console.log({ hash, nonce });
|
||||||
|
|
||||||
title.innerHTML = t('success');
|
|
||||||
status.innerHTML = `${t('done_took')} ${t1 - t0}ms, ${nonce} ${t('iterations')}`;
|
|
||||||
image.src = imageURL("happy", anubisVersion, basePrefix);
|
|
||||||
progress.style.display = "none";
|
|
||||||
|
|
||||||
if (userReadDetails) {
|
if (userReadDetails) {
|
||||||
const container = document.getElementById("progress");
|
const container = document.getElementById("progress");
|
||||||
|
|
||||||
@ -251,7 +246,6 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key;
|
|||||||
container.onclick = onDetailsExpand;
|
container.onclick = onDetailsExpand;
|
||||||
setTimeout(onDetailsExpand, 30000);
|
setTimeout(onDetailsExpand, 30000);
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
|
||||||
const redir = window.location.href;
|
const redir = window.location.href;
|
||||||
window.location.replace(
|
window.location.replace(
|
||||||
u(`${basePrefix}/.within.website/x/cmd/anubis/api/pass-challenge`, {
|
u(`${basePrefix}/.within.website/x/cmd/anubis/api/pass-challenge`, {
|
||||||
@ -261,7 +255,6 @@ const t = (key) => translations[`js_${key}`] || translations[key] || key;
|
|||||||
elapsedTime: t1 - t0,
|
elapsedTime: t1 - t0,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}, 250);
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
ohNoes({
|
ohNoes({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user