diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 64d3f47..d751166 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 diff --git a/c9088/js/HomePage.jsx b/c9088/js/HomePage.jsx index a8265df..14e2164 100644 --- a/c9088/js/HomePage.jsx +++ b/c9088/js/HomePage.jsx @@ -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, diff --git a/cas/js/HomePage.jsx b/cas/js/HomePage.jsx index a8265df..14e2164 100644 --- a/cas/js/HomePage.jsx +++ b/cas/js/HomePage.jsx @@ -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,