Skip to content

Commit

Permalink
Add dashboard skeleton (#6005)
Browse files Browse the repository at this point in the history
- Removes placeholder dashboard in preparation for the actual dashboard implementation.
  • Loading branch information
somebody1234 authored Apr 11, 2023
1 parent 37d820c commit a96d355
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
/** @file Main dashboard component, responsible for listing user's projects as well as other
* interactive components. */

import * as auth from '../../authentication/providers/auth'

// =================
// === Dashboard ===
// =================

function Dashboard() {
const { signOut } = auth.useAuth()
const { accessToken } = auth.useFullUserSession()
return (
<>
<h1>This is a placeholder page for the cloud dashboard.</h1>
<p>Access token: {accessToken}</p>
<button onClick={signOut}>Log out</button>
{/* These are placeholders. When implementing a feature,
* please replace the appropriate placeholder with the actual element.*/}
<div id="header" />
<div id="templates" />
<div id="drive-header" />
<div id="directory-listing" />
</>
)
}
Expand Down
4 changes: 4 additions & 0 deletions app/ide-desktop/lib/dashboard/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const ESBUILD_EVENT_NAME = 'change'
// === Live reload ===
// ===================

import * as authentication from 'enso-authentication'

import * as platform from './authentication/src/platform'

if (IS_DEV_MODE) {
new EventSource(ESBUILD_PATH).addEventListener(ESBUILD_EVENT_NAME, () => {
location.reload()
Expand Down

0 comments on commit a96d355

Please sign in to comment.