Skip to content

Commit 2752b1d

Browse files
committed
Editorial change: renaming "staging" => "sandbox"
1 parent 20eb2af commit 2752b1d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

frontend/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {getElemsByClass, getElemById} from './ts/dom-utils';
44
import {widgetFactory} from './ts/widget';
55
import {scrollTop} from './ts/scrolltop';
66

7-
// #if STAGING
8-
import {stagingRedirect} from './ts/staging';
7+
// #if SANDBOX
8+
import {sandboxRedirect} from './ts/sandbox-redirect';
99
// #endif
1010

1111
/**
@@ -22,10 +22,10 @@ function entrypoint(): void {
2222
const btn = getElemById('scrollToTopBtn');
2323
scrollTop(btn as HTMLButtonElement);
2424

25-
// #if STAGING
25+
// #if SANDBOX
2626
// This is used to redirect non AdaCore staff to the main site if
2727
// the staging site is accidentally reached
28-
stagingRedirect();
28+
sandboxRedirect();
2929
// #endif
3030
}
3131

frontend/src/ts/staging.ts renamed to frontend/src/ts/sandbox-redirect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import Cookies from 'js-cookie';
55
*
66
* @export
77
*/
8-
export function stagingRedirect(): void {
8+
export function sandboxRedirect(): void {
99
/* istanbul ignore next */
1010
if (!Cookies.get('AdaCore_staff')) {
11-
const msg = 'You have reached learn-staging, the learn testing site. ' +
11+
const msg = 'You have reached learn-sandbox, the learn testing site. ' +
1212
'This is reserved for testers only. You will be directed to the main ' +
1313
'learn.adacore.com site after pressing OK.';
1414
alert(msg);

0 commit comments

Comments
 (0)