Skip to content

Commit cca6ebe

Browse files
authored
FEATURE: Reload page to go to login when user session expires; drop obsolete dev-deps (#50)
1 parent 1702f2e commit cca6ebe

17 files changed

Lines changed: 799 additions & 5 deletions

File tree

Configuration/Settings.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Neos:
3333
'Sandstorm.NeosTwoFactorAuthentication:AdditionalScripts': 'resource://Sandstorm.NeosTwoFactorAuthentication/Public/index.js'
3434
'Sandstorm.NeosTwoFactorAuthentication:WebAuthnScripts': 'resource://Sandstorm.NeosTwoFactorAuthentication/Public/JavaScript/webauthn.js'
3535

36+
Ui:
37+
resources:
38+
javascript:
39+
'Sandstorm.NeosTwoFactorAuthentication:ReloadOnAuthTimeout':
40+
resource: 'resource://Sandstorm.NeosTwoFactorAuthentication/Public/Neos.Ui/Plugin.js'
41+
3642
Flow:
3743
http:
3844
middlewares:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Resources/Private/Neos.Ui/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
min-release-age = 7 # days

Resources/Private/Neos.Ui/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v24.14.1
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const esbuild = require("esbuild");
2+
const extensibilityMap = require("@neos-project/neos-ui-extensibility/extensibilityMap.json");
3+
const isWatch = process.argv.includes("--watch");
4+
5+
// `alias: extensibilityMap` resolves redux-saga, @neos-project/* etc. to the
6+
// host's shared runtime instead of bundling private copies. This is essential
7+
// for redux-saga: a separately bundled copy uses different effect Symbols, so
8+
// the host saga middleware would not recognise our `take()` and the saga would
9+
// silently never fire.
10+
/** @type {import("esbuild").BuildOptions} */
11+
const options = {
12+
logLevel: "info",
13+
bundle: true,
14+
target: "es2020",
15+
entryPoints: { Plugin: "src/index.ts" },
16+
outdir: "../../Public/Neos.Ui/",
17+
alias: extensibilityMap,
18+
};
19+
20+
if (isWatch) {
21+
esbuild.context(options).then((ctx) => ctx.watch());
22+
} else {
23+
esbuild.build(options);
24+
}

0 commit comments

Comments
 (0)