Skip to content

Commit

Permalink
commented out dev feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Paulen committed Jan 23, 2025
1 parent af87f27 commit bee3d0d
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Install Dependencies
run: npm install
Expand Down
58 changes: 29 additions & 29 deletions c9088/js/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,35 @@ import JupyterHubHeader from "../../src/components/FooterAndHeader/JupyterHubHea

function HomePage() {
// for testing with npm run dev please uncomment this block
const appConfig = {
spawners: {
"test": {
last_activity: "2024-11-24T15:48:29.604740Z",
url: "/user/test",
active: true,
ready: false,
},
"test1": {
last_activity: "2024-11-24T15:46:56.719146Z",
url: "/user/test1",
active: false,
ready: false,
},
...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
acc[spawner] = {
last_activity: new Date().toISOString(),
url: `/user/${spawner}`,
active: Math.random() < 0.5, // Randomly set active status
ready: Math.random() < 0.5, // Randomly set ready status
};
return acc;
}, {})
},
default_server_active: false,
url: "http://localhost",
userName: "dev",
xsrf: "sample-xsrf-token",
};
// const appConfig = {
// spawners: {
// "test": {
// last_activity: "2024-11-24T15:48:29.604740Z",
// url: "/user/test",
// active: true,
// ready: false,
// },
// "test1": {
// last_activity: "2024-11-24T15:46:56.719146Z",
// url: "/user/test1",
// active: false,
// ready: false,
// },
// ...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
// acc[spawner] = {
// last_activity: new Date().toISOString(),
// url: `/user/${spawner}`,
// active: Math.random() < 0.5, // Randomly set active status
// ready: Math.random() < 0.5, // Randomly set ready status
// };
// return acc;
// }, {})
// },
// default_server_active: false,
// url: "http://localhost",
// userName: "dev",
// xsrf: "sample-xsrf-token",
// };

const [defaultServerActive, setDefaultServerActive] = useState(
appConfig.default_server_active,
Expand Down
58 changes: 29 additions & 29 deletions cas/js/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,35 @@ import JupyterHubHeader from "../../src/components/FooterAndHeader/JupyterHubHea

function HomePage() {
// for testing with npm run dev please uncomment this block
const appConfig = {
spawners: {
"test": {
last_activity: "2024-11-24T15:48:29.604740Z",
url: "/user/test",
active: true,
ready: false,
},
"test1": {
last_activity: "2024-11-24T15:46:56.719146Z",
url: "/user/test1",
active: false,
ready: false,
},
...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
acc[spawner] = {
last_activity: new Date().toISOString(),
url: `/user/${spawner}`,
active: Math.random() < 0.5, // Randomly set active status
ready: Math.random() < 0.5, // Randomly set ready status
};
return acc;
}, {})
},
default_server_active: false,
url: "http://localhost",
userName: "dev",
xsrf: "sample-xsrf-token",
};
// const appConfig = {
// spawners: {
// "test": {
// last_activity: "2024-11-24T15:48:29.604740Z",
// url: "/user/test",
// active: true,
// ready: false,
// },
// "test1": {
// last_activity: "2024-11-24T15:46:56.719146Z",
// url: "/user/test1",
// active: false,
// ready: false,
// },
// ...Array.from({ length: 0 }, (_, i) => `spawner${i + 1}`).reduce((acc, spawner) => {
// acc[spawner] = {
// last_activity: new Date().toISOString(),
// url: `/user/${spawner}`,
// active: Math.random() < 0.5, // Randomly set active status
// ready: Math.random() < 0.5, // Randomly set ready status
// };
// return acc;
// }, {})
// },
// default_server_active: false,
// url: "http://localhost",
// userName: "dev",
// xsrf: "sample-xsrf-token",
// };

const [defaultServerActive, setDefaultServerActive] = useState(
appConfig.default_server_active,
Expand Down

0 comments on commit bee3d0d

Please sign in to comment.