-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better align styles to wireframes. Add entire dashboard as a storybook.
- Loading branch information
Samantha Kraft
authored and
Samantha Kraft
committed
Apr 1, 2024
1 parent
16645ee
commit 351557a
Showing
13 changed files
with
205 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Meta, Story } from '@storybook/blocks'; | ||
import * as stories from './SparcDashboard.stories.js'; | ||
import dash from './sparc-dash.png' | ||
|
||
|
||
<Meta title="Components/SparcDashboard" /> | ||
|
||
# Sparc Reva Dashboard | ||
This is the entire Sparc Reva Dashboard as a whole. A working demo of the dashboard and all its available components. | ||
|
||
<div> | ||
<img src={dash} /> | ||
</div> | ||
|
||
## Edit | ||
**edit dashboard** | ||
- Click on the Edit Grid button to rearrange or delete widgets. | ||
|
||
If you want to import your custom component to be used as a widget, add component's vue file to the dashboard project under components folder. | ||
|
||
Update the main.ts with your component's folder name. | ||
|
||
```ts | ||
|
||
const componentMap = [ | ||
'SubjectNav', | ||
'ImageSelector', | ||
'ImageViewer', | ||
'LocationNav', | ||
'FlatmapViewer', | ||
'BiolucidaViewer' | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
import SparcDashboard from '../../components/SparcDashboard.vue' | ||
import ItemWidget from '../../components/ItemWidget.vue'; | ||
import FlatmapViewer from '../../components/FlatmapViewer.vue'; | ||
import ImageSelector from '../../components/ImageSelector.vue'; | ||
import BiolucidaViewer from '../../components/BiolucidaViewer.vue'; | ||
|
||
import './styles.scss'; | ||
|
||
export default { | ||
title: 'Components/SparcDashboard' | ||
} | ||
|
||
const createDemo = () => { | ||
return { | ||
components: { SparcDashboard, ItemWidget, FlatmapViewer,ImageSelector,BiolucidaViewer}, | ||
data() { | ||
return { | ||
|
||
} | ||
}, | ||
template: ` | ||
<sparc-dashboard></sparc-dashboard> | ||
` | ||
} | ||
} | ||
|
||
|
||
|
||
export const Primary = () => createDemo( | ||
{ | ||
label: 'Primary', | ||
id: '0', | ||
data: [ | ||
] | ||
} | ||
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Oops, something went wrong.