Skip to content

Commit

Permalink
Polish info and main page of the app
Browse files Browse the repository at this point in the history
  • Loading branch information
blokhin committed Oct 28, 2023
1 parent 6ce4abc commit b3867ad
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 24 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Vis-à-vis web-viewer for scientific plots in chemistry and physics
==========

Standalone and self-contained HTML5 widget, based on the D3 and Plotly libs and written in [$mol](https://github.com/hyoo-ru) hyper-reactive micromodular UI framework.
Standalone and self-contained HTML5 widget, based on the D3 and Plotly libs, written in [$mol](https://github.com/hyoo-ru) hyper-reactive micromodular UI framework.

Supports the following plot types (see `examples` folder):

Expand All @@ -17,7 +17,7 @@ Supports the following plot types (see `examples` folder):
- `pie`


All the plot types must conform the specs:
All the plot types being visualized must conform the spec:

```
{
Expand All @@ -40,26 +40,30 @@ As a part of the [MPDS desktop GUI](https://github.com/mpds-io/ermac), being use

## Installation and development

One command to install [MAM](https://github.com/hyoo-ru/mam), node modules, and build dev server from actual sources:
Run to install [$mol MAM](https://github.com/hyoo-ru/mam) (`$mol` abstract modules) and dependencies and build dev server from actual sources:
```bash
npm exec mam@latest mpds/visavis
```

Start dev server:
```bash
npm start
```


## Building

Build standalone application at `mpds/visavis/app/-`:

```bash
npm start mpds/visavis/app
```
[Build mpds-visavis-plot Web Component](https://github.com/mpds-io/visavis/blob/master/plot/readme.md)


## Sources file layout

`app` - the main **$mol** app
`app` - the main `$mol` app

`elements` - elemental properties and constants

Expand Down
40 changes: 20 additions & 20 deletions app/app.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ $mpds_visavis_app $mol_book2
attr * mol_theme \$mol_theme_light
title \Vis-a-vis
examples *
bar_sci_literature \/mpds/visavis/examples/bar_sci_literature.json
customscatter_Ge_elastic_constant \/mpds/visavis/examples/customscatter_Ge_elastic_constant.json
discovery_ferroelectrics \/mpds/visavis/examples/discovery_ferroelectrics.json
eigenplot_bands_CaTiO3 \/mpds/visavis/examples/eigenplot_bands_CaTiO3.json
eigenplot_dos_CaTiO3 \/mpds/visavis/examples/eigenplot_dos_CaTiO3.json
graph_ternary_Sr_Ru_O \/mpds/visavis/examples/graph_ternary_Sr_Ru_O.json
matrix_square_Pu \/mpds/visavis/examples/matrix_square_Pu.json
matrix.heatmap \/mpds/visavis/examples/matrix.heatmap.json
pd_phase_equilibria_fuel_cell_cathode_electrolyte \/mpds/visavis/examples/pd_phase_equilibria_fuel_cell_cathode_electrolyte.json
phase_diagram_Ga_In_binary_eutectics \/mpds/visavis/examples/phase_diagram_Ga_In_binary_eutectics.json
pie_overview_Pu \/mpds/visavis/examples/pie_overview_Pu.json
plot3d_cube_Pu \/mpds/visavis/examples/plot3d_cube_Pu.json
plot3d_heatmap \/mpds/visavis/examples/plot3d_heatmap.json
scatter_SrTiO3_thermal_expansion \/mpds/visavis/examples/scatter_SrTiO3_thermal_expansion.json
bar plot \/mpds/visavis/examples/bar_sci_literature.json
scatter plot \/mpds/visavis/examples/customscatter_Ge_elastic_constant.json
another scatter plot \/mpds/visavis/examples/scatter_SrTiO3_thermal_expansion.json
PCA plot \/mpds/visavis/examples/discovery_ferroelectrics.json
custom scatter plot \/mpds/visavis/examples/eigenplot_bands_CaTiO3.json
custom scatter plot \/mpds/visavis/examples/eigenplot_dos_CaTiO3.json
graph plot \/mpds/visavis/examples/graph_ternary_Sr_Ru_O.json
matrix plot \/mpds/visavis/examples/matrix_square_Pu.json
matrix heatmap plot \/mpds/visavis/examples/matrix.heatmap.json
ternary plot \/mpds/visavis/examples/pd_phase_equilibria_fuel_cell_cathode_electrolyte.json
phase diagram plot \/mpds/visavis/examples/phase_diagram_Ga_In_binary_eutectics.json
pie plot \/mpds/visavis/examples/pie_overview_Pu.json
cube plot \/mpds/visavis/examples/plot3d_cube_Pu.json
cube heatmap plot \/mpds/visavis/examples/plot3d_heatmap.json
Placeholder null
pages /
<= Start_page $mol_drop
Expand All @@ -25,25 +25,25 @@ $mpds_visavis_app $mol_book2
<= Upload_content $mol_list
sub /
<= Upload_label_choose $mol_paragraph
title \Choose a plot file in JSON format
title \Choose a plot JSON file
<= Upload_label_drop $mol_paragraph
title \(drag and drop is supported)
<= Start_page_upload $mol_button_open
accept \application/json
files? <=> files_read? null
<= Examples_open $mol_link
title \Or go to examples
title \Or browse examples
arg * section \examples
<= Menu $mol_page
title \Vis-a-vis
tools /
<= History_link $mol_link
title @ \Uploads
arg *
arg *
section null
<= Examples_link $mol_link
title @ \Examples
arg *
arg *
section \examples
file null
<= Source $mol_link_source
Expand Down Expand Up @@ -73,10 +73,10 @@ $mpds_visavis_app $mol_book2
title @ \Examples
rows <= example_rows /
<= Plot_link*0 $mol_link
arg *
arg *
file <= plot_id* \
title <= plot_id*
<= Plot_opened null
<= Plot_opened null
Plot_page* $mol_page
title <= plot_id* \
body /
Expand Down

0 comments on commit b3867ad

Please sign in to comment.