Skip to content

Commit bee3d0d

Browse files
author
Adam Paulen
committed
commented out dev feature
1 parent af87f27 commit bee3d0d

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Node.js
1616
uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 18
1919

2020
- name: Install Dependencies
2121
run: npm install

c9088/js/HomePage.jsx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,35 @@ import JupyterHubHeader from "../../src/components/FooterAndHeader/JupyterHubHea
88

99
function HomePage() {
1010
// for testing with npm run dev please uncomment this block
11-
const appConfig = {
12-
spawners: {
13-
"test": {
14-
last_activity: "2024-11-24T15:48:29.604740Z",
15-
url: "/user/test",
16-
active: true,
17-
ready: false,
18-
},
19-
"test1": {
20-
last_activity: "2024-11-24T15:46:56.719146Z",
21-
url: "/user/test1",
22-
active: false,
23-
ready: false,
24-
},
25-
...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
26-
acc[spawner] = {
27-
last_activity: new Date().toISOString(),
28-
url: `/user/${spawner}`,
29-
active: Math.random() < 0.5, // Randomly set active status
30-
ready: Math.random() < 0.5, // Randomly set ready status
31-
};
32-
return acc;
33-
}, {})
34-
},
35-
default_server_active: false,
36-
url: "http://localhost",
37-
userName: "dev",
38-
xsrf: "sample-xsrf-token",
39-
};
11+
// const appConfig = {
12+
// spawners: {
13+
// "test": {
14+
// last_activity: "2024-11-24T15:48:29.604740Z",
15+
// url: "/user/test",
16+
// active: true,
17+
// ready: false,
18+
// },
19+
// "test1": {
20+
// last_activity: "2024-11-24T15:46:56.719146Z",
21+
// url: "/user/test1",
22+
// active: false,
23+
// ready: false,
24+
// },
25+
// ...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
26+
// acc[spawner] = {
27+
// last_activity: new Date().toISOString(),
28+
// url: `/user/${spawner}`,
29+
// active: Math.random() < 0.5, // Randomly set active status
30+
// ready: Math.random() < 0.5, // Randomly set ready status
31+
// };
32+
// return acc;
33+
// }, {})
34+
// },
35+
// default_server_active: false,
36+
// url: "http://localhost",
37+
// userName: "dev",
38+
// xsrf: "sample-xsrf-token",
39+
// };
4040

4141
const [defaultServerActive, setDefaultServerActive] = useState(
4242
appConfig.default_server_active,

cas/js/HomePage.jsx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,35 @@ import JupyterHubHeader from "../../src/components/FooterAndHeader/JupyterHubHea
88

99
function HomePage() {
1010
// for testing with npm run dev please uncomment this block
11-
const appConfig = {
12-
spawners: {
13-
"test": {
14-
last_activity: "2024-11-24T15:48:29.604740Z",
15-
url: "/user/test",
16-
active: true,
17-
ready: false,
18-
},
19-
"test1": {
20-
last_activity: "2024-11-24T15:46:56.719146Z",
21-
url: "/user/test1",
22-
active: false,
23-
ready: false,
24-
},
25-
...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
26-
acc[spawner] = {
27-
last_activity: new Date().toISOString(),
28-
url: `/user/${spawner}`,
29-
active: Math.random() < 0.5, // Randomly set active status
30-
ready: Math.random() < 0.5, // Randomly set ready status
31-
};
32-
return acc;
33-
}, {})
34-
},
35-
default_server_active: false,
36-
url: "http://localhost",
37-
userName: "dev",
38-
xsrf: "sample-xsrf-token",
39-
};
11+
// const appConfig = {
12+
// spawners: {
13+
// "test": {
14+
// last_activity: "2024-11-24T15:48:29.604740Z",
15+
// url: "/user/test",
16+
// active: true,
17+
// ready: false,
18+
// },
19+
// "test1": {
20+
// last_activity: "2024-11-24T15:46:56.719146Z",
21+
// url: "/user/test1",
22+
// active: false,
23+
// ready: false,
24+
// },
25+
// ...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
26+
// acc[spawner] = {
27+
// last_activity: new Date().toISOString(),
28+
// url: `/user/${spawner}`,
29+
// active: Math.random() < 0.5, // Randomly set active status
30+
// ready: Math.random() < 0.5, // Randomly set ready status
31+
// };
32+
// return acc;
33+
// }, {})
34+
// },
35+
// default_server_active: false,
36+
// url: "http://localhost",
37+
// userName: "dev",
38+
// xsrf: "sample-xsrf-token",
39+
// };
4040

4141
const [defaultServerActive, setDefaultServerActive] = useState(
4242
appConfig.default_server_active,

0 commit comments

Comments
 (0)