Commit Graph

434 Commits

Author SHA1 Message Date
dependabot[bot]
d4681cf80f fix(striker-ui): use iso-8601 date format in Anvil status 2021-06-09 16:39:36 -04:00
dependabot[bot]
a2ad0c26fb fix(striker-ui): use iso-8601 date format in Anvil status 2021-06-09 16:39:36 -04:00
Tsu-ba-me
81d00fd780 build(striker-ui): remove distclean-local and maintainer-clean-local; already implicitly triggers clean-local 2021-06-09 13:45:09 -04:00
Tsu-ba-me
444a901f53 build(striker-ui): re-include all usable source files in release tarball 2021-06-09 12:23:16 -04:00
Tsu-ba-me
f8b8a6186e build(striker-ui): remove git calls from clean hooks 2021-06-09 12:23:16 -04:00
Tsu-ba-me
cf5abee7bd build(striker-ui): rename target clean->clean-build to avoid conflict with default clean 2021-06-09 12:23:16 -04:00
Tsu-ba-me
49d896037a build(striker-ui): don't use build output directory path as target; use its name 2021-06-09 12:23:16 -04:00
Tsu-ba-me
115c3557d2 build(striker-ui): add blank out target 2021-06-09 12:23:16 -04:00
Tsu-ba-me
3a515b7392 build(striker-ui): don't preserve permissions when copying from source 2021-06-09 12:23:16 -04:00
Tsu-ba-me
16e6fdfdd0 build(striker-ui): break down build process to enable proper cleaning 2021-06-09 12:23:16 -04:00
Tsu-ba-me
281e9f850d build(striker-ui): change status message before 'npm run build' 2021-06-09 12:23:16 -04:00
Tsu-ba-me
79d1622f93 chore: rebuild web UI 2021-06-09 12:23:16 -04:00
Tsu-ba-me
81cb1a10f9 build(striker-ui): include minimal build output files into repo 2021-06-09 12:23:16 -04:00
Tsu-ba-me
a4d0bcee5f build(striker-ui): add maintainer-clean-local to remove node modules 2021-06-09 12:23:16 -04:00
Tsu-ba-me
9fc2facf35 build(striker-ui): add default API URL in .env 2021-06-09 12:23:16 -04:00
Tsu-ba-me
d0048ae235 build(striker-ui): remove web UI build steps from 'make all' 2021-06-09 12:23:16 -04:00
Tsu-ba-me
0d143df8a8 build(striker-ui): only include build output in make dist 2021-06-09 12:23:16 -04:00
Josue
f2ef6123b4 chore: include package-lock latest changes 2021-06-09 10:33:46 -04:00
Josue
ffc315e2dc chore: commit husky changes to .gitignore file 2021-06-09 10:33:46 -04:00
Josue
b879377800 chore: upgrade nextjs and fix moderate vulnerabilities 2021-06-09 10:33:46 -04:00
Tsu-ba-me
87ad87e60d build(striker-ui): include dot/hidden entries in clean-up 2021-06-04 17:48:49 -04:00
Tsu-ba-me
9abb468d79 build(striker-ui): include pwd when unlocking files for building web UI 2021-06-04 17:21:35 -04:00
Tsu-ba-me
335cd5d4c7 build(striker-ui): change clean-local target to rm accordingly (depends on pwd) 2021-06-04 17:01:38 -04:00
Tsu-ba-me
4c215e404d build(striker-ui): don't copy make-related files and add distclean-local target 2021-06-04 16:44:42 -04:00
Tsu-ba-me
7c1598575b build(striker-ui): copy files from srcdir for building 2021-06-04 15:49:28 -04:00
Tsu-ba-me
73d4a32d01 build(striker-ui): npm ci->install and don't generate package-lock 2021-06-04 15:27:53 -04:00
Tsu-ba-me
c571a3efda build(striker-ui): rename target build->out to match build output directory name 2021-06-04 15:26:35 -04:00
Tsu-ba-me
0c2952a1c7 build(striker-ui): remove debug pwd calls in Makefile.am 2021-06-04 12:12:38 -04:00
Tsu-ba-me
79fa324f9d build(striker-ui): remove excess call in specfile to build web UI 2021-06-04 12:11:50 -04:00
Tsu-ba-me
b46042aede build(striker-ui): add uninstall steps for web UI 2021-06-04 12:11:50 -04:00
Tsu-ba-me
88590e3e17 build(striker-ui): add install steps for web UI 2021-06-04 12:11:50 -04:00
Tsu-ba-me
23b92cc30f build(striker-ui): ignore npm scripts (including husky config on postinstall) 2021-06-04 12:11:50 -04:00
Tsu-ba-me
f772da5324 build(striker-ui): remove husky related files from tarball 2021-06-04 12:11:49 -04:00
Tsu-ba-me
ce646e086b build(striker-ui): relocate rule comment to pre-section 2021-06-04 12:11:49 -04:00
Tsu-ba-me
8ff9311268 build(striker-ui): add build step to generate .env.local 2021-06-04 12:11:49 -04:00
Tsu-ba-me
e0c5c3bed2 build(striker-ui): add files to include in tarball for building 2021-06-04 12:11:49 -04:00
Tsu-ba-me
2bfcb09672 build(striker-ui): correct Makefile separators 2021-06-04 12:11:49 -04:00
Tsu-ba-me
6cdd216b9c build(cgi-bin): add front-end build process 2021-06-04 12:11:49 -04:00
Josue
9945915f5a refactor: filter out empty nodes before rendering a component 2021-06-04 12:11:49 -04:00
Josue
6611d9f91b refactor: remove unnecessary comment 2021-06-04 12:11:49 -04:00
Josue
8e78ed2fea refactor: sanitize hosts data to avoid using empty nodes 2021-06-04 12:11:49 -04:00
Josue
284d536f7f style: add dividers between nodes and links 2021-06-04 12:11:49 -04:00
Josue
c31cdeec11 style: remove searchbar and add red bottom border 2021-06-04 12:11:49 -04:00
Josue
341a4ad50a fix: change data types in fileSystem to avoid crashing during building process 2021-06-04 12:11:49 -04:00
Josue
cbad6a52a0 refactor: rename filesystems datatype 2021-06-04 12:11:49 -04:00
Josue
227685983f fix: use colour from the palette for the spinner 2021-06-04 12:11:49 -04:00
Josue
029714112b fix: remove unnecessary comment 2021-06-04 12:11:49 -04:00
Josue
440b5c81ef refactor: use online instead of is_removable 2021-06-04 12:11:49 -04:00
Josue
4f88f0113b refactor: turn drawer icons and header icons into buttons and add URIs 2021-06-04 12:11:49 -04:00
Josue
89313de042 refactor: modify SharedStorage to match latest chagnes in specs 2021-06-04 12:11:49 -04:00
Josue
ee063c9f43 feat: add FileSystems component and types 2021-06-04 12:11:49 -04:00
Josue
117fd8a78d style: change CPU component to match latest changes in the design 2021-06-04 12:11:49 -04:00
Josue
1852c68454 fix: filter out nodes with no uuid 2021-06-04 12:11:49 -04:00
Josue
e8693e7ef8 fix: hide progress bar and message if a node is offline 2021-06-04 12:11:49 -04:00
Josue
936057f39e fix: change server status value to match what's in the specs 2021-06-04 12:11:49 -04:00
Josue
64f0c2d756 feat: add spinner 2021-06-04 12:11:49 -04:00
Josue
0e1098d893 refactor: update host state following specs 2021-06-04 12:11:49 -04:00
Josue
7199e1899e refactor: update valid values for link_state 2021-06-04 12:11:49 -04:00
Josue
6b2d3700f9 fix: use host_uuid instead of index number to determine server's host 2021-06-04 12:11:49 -04:00
Josue
24e4509c8d refactor: add reserved prop to Memory component 2021-06-04 12:11:49 -04:00
Josue
a3a4e4c72d fix: use correct endpoint for network 2021-06-04 12:11:49 -04:00
Josue
0e09683d61 fix: use prop names from the specs 2021-06-04 12:11:49 -04:00
Josue
c3f0a948a6 fix: remove subdirectory from URIs 2021-06-04 12:11:49 -04:00
Josue
f79b9e3f04 refactor: adopt back-end naming in all the components 2021-06-04 12:11:49 -04:00
Josue
ff9460cc49 refactor: use node status to determine Anvil status, and add set_power for an anvil 2021-06-04 12:11:49 -04:00
Josue
982a8e4f00 fix: use AnvilStatus type for hosts info instead of Anvil type 2021-06-04 12:11:49 -04:00
Josue
1255ca2599 refactor: translate and display node state messages 2021-06-04 12:11:49 -04:00
Josue
e775b4ac16 refactor: use regex instead of a map to display node state 2021-06-04 12:11:49 -04:00
Josue
431b88aa11 refactor: rewrite function using es6 for consistency 2021-06-04 12:11:49 -04:00
Josue
73af9f6e57 refactor: add sending a request to the backend when switches change state for power and memebership 2021-06-04 12:11:49 -04:00
Josue
2fe146d58c refactor: add types to handle setting a node's power and memebership 2021-06-04 12:11:49 -04:00
Josue
65677c0bfb refactor: add border radius to constants 2021-06-04 12:11:49 -04:00
Josue
fa075598b8 refactor: remove unused style class 2021-06-04 12:11:49 -04:00
Josue
a2809556c1 style: add disable colour to pallete and include it in MUI style 2021-06-04 12:11:49 -04:00
Josue
894558d177 refactor: allow disabling membership switch for nodes in Nodes component 2021-06-04 12:11:49 -04:00
Josue
b70984f5e5 feat: add removable prop to nodes in anvil status 2021-06-04 12:11:49 -04:00
Josue
e557758983 refactor: remove unused styles in the drawer component 2021-06-04 12:11:49 -04:00
Josue
162831ebf2 refactor: move eslint disable rule to a better place 2021-06-04 12:11:49 -04:00
Josue
9cdb9fc0fa style: use Headertext for admin header 2021-06-04 12:11:49 -04:00
Josue
5aa9873f44 fix: use ems with icon sizes 2021-06-04 12:11:49 -04:00
Josue
7209d47aa2 style: hide legacy icons in mobile layout and center search bar 2021-06-04 12:11:49 -04:00
Josue
10650e8bb2 refactor: add legacy icons and text to AnvilDrawer 2021-06-04 12:11:49 -04:00
Josue
45d0368d6f refactor: add icons and text to the drawer 2021-06-04 12:11:49 -04:00
Josue
acd6052b71 feat: add initial implementation of drawer menu 2021-06-04 12:11:49 -04:00
Josue
05786d444b refactor: use better naming for colours 2021-06-04 12:11:49 -04:00
Josue
46e9661152 refactor: remove old dependency 2021-06-04 12:11:49 -04:00
Josue
1ef0b01118 feat: allow setting a differnt origin using an .env file 2021-06-04 12:11:49 -04:00
Josue
27c34cbb01 fix: typos in px to em switch 2021-06-04 12:11:49 -04:00
Josue
434fdd38bc style: fix left padding in serer list 2021-06-04 12:11:49 -04:00
Josue
f52669160c refactor: remove unused version of ReplicatedStorage 2021-06-04 12:11:49 -04:00
Josue
93b6b269e3 refactor: remove next/image to avoid errors during export 2021-06-04 12:11:49 -04:00
Josue
a0fb8bd151 refactor: add export to scripts in package.json 2021-06-04 12:11:49 -04:00
Josue
17c52d562b refactor: remove files from previous demo 2021-06-04 12:11:49 -04:00
Josue
1ed509e497 fix: typos in Anvils and fetcher 2021-06-04 12:11:49 -04:00
Josue
4d2c140234 refactor: use em instead of px 2021-06-04 12:11:49 -04:00
Josue
8df08e6e2c refactor: use Decorator component in SelectedAnvil 2021-06-04 12:11:49 -04:00
Josue
8367a421c1 refactor: remove unnecessary parameter in the fetching tool 2021-06-04 12:11:49 -04:00
Josue
231c6dfdda refactor: add Decorator component 2021-06-04 12:11:49 -04:00
Josue
844e201c0b refactor: move Network to its own module 2021-06-04 12:11:49 -04:00
Josue
cfff53bf1a refactor: move SharedStorage to their own module 2021-06-04 12:11:49 -04:00
Josue
cf40057e97 refactor: move panels to their own module 2021-06-04 12:11:49 -04:00
Josue
5efd3938e2 refactor: include SELECTED_ANVIL colour in the theme 2021-06-04 12:11:49 -04:00
Josue
09f30eba37 refactor: set scrolling depending on screen size 2021-06-04 12:11:49 -04:00
Josue
04b5f6e9fd fix: add padding for better header display, and change overflow depending on screen size 2021-06-04 12:11:49 -04:00
Josue
c7d2d6c925 refactor: remove margin added to main containers in the general layout 2021-06-04 12:11:49 -04:00
Josue
f61d14de0b fix: move margin prop from paper to container 2021-06-04 12:11:49 -04:00
Josue
11ce038344 refactor: switch from pseudo elements to regular elements for square decorator implementation 2021-06-04 12:11:49 -04:00
Josue
e1802e9ab6 style: increase margin in main layout to allow more precision with decorators 2021-06-04 12:11:49 -04:00
Josue
0e5a728dcc refactor: connect switch to Node state 2021-06-04 12:11:49 -04:00
Josue
334623e3bf refactor: change data type to match the specs in the design document 2021-06-04 12:11:49 -04:00
Josue
cd4a42d295 refactor: improve responsive capabilities 2021-06-04 12:11:49 -04:00
Josue
0bf3e6cd38 refactor: fix paths to constanst 2021-06-04 12:11:49 -04:00
Josue
4861bbd91a refactor: change server states to match values defined in the design document 2021-06-04 12:11:49 -04:00
Josue
514755c559 feat: add constants for handling states and decorators 2021-06-04 12:11:49 -04:00
Josue
965a50ddf5 refactor: move setting selected anvil to child components 2021-06-04 12:11:49 -04:00
Josue
4fbb61dede fix: improve anvil default selection at launch 2021-06-04 12:11:49 -04:00
Josue
3d837a3ea7 fix: provide default value for undefined string 2021-06-04 12:11:49 -04:00
Josue
a3244fc58b fix: change the nesting of the components to fix problem with the AppBar 2021-06-04 12:11:49 -04:00
Josue
6a2433878f refactor: handle overflow in the Nodes component 2021-06-04 12:11:49 -04:00
Josue
a5ba0a7c50 refactor: use Context in the SelectedAnvil component 2021-06-04 12:11:49 -04:00
Josue
ed79116296 style: add padding to the box containing the mount point 2021-06-04 12:11:49 -04:00
Josue
85f13e4ab9 refactor: use a real element instead of a pseudo element to create the panel header 2021-06-04 12:11:49 -04:00
Josue
14d8dd1683 refactor: remove Grid and use Box in the header 2021-06-04 12:11:49 -04:00
Josue
f3b5a8cfbb style: add new colours to consts 2021-06-04 12:11:49 -04:00
Josue
5ffdd3b0f9 refactor: add context to Anvils component 2021-06-04 12:11:49 -04:00
Josue
36c4bae2bd refactor: change the home page to take advantage of React context 2021-06-04 12:11:49 -04:00
Josue
bd4d5a1dda style: change dividers' and borders' colour to match design 2021-06-04 12:11:49 -04:00
Josue
bfbefa74c6 refactor: use context to display anvil info in CPU, Memory, Network, Storage and Nodes components 2021-06-04 12:11:49 -04:00
Josue
2c795383d2 refactor: switch from Grid to Box for more flexible layout using flexbox 2021-06-04 12:11:49 -04:00
Josue
ec28e8750a refactor: move the Header component to the home page 2021-06-04 12:11:49 -04:00
Josue
d416ec2980 feat: add tool for anvil sorting 2021-06-04 12:11:49 -04:00
Josue
54d777b989 refactor: add propper decorator selector for selected anvil 2021-06-04 12:11:49 -04:00
Josue
b3756cbe20 refactor: modify Network to use useContext for selected anvil 2021-06-04 12:11:49 -04:00
Josue
d765e858af refactor: modify Network to use useContext for selected anvil 2021-06-04 12:11:49 -04:00
Josue
6d150f75f8 feat: add react context to handle selected anvils 2021-06-04 12:11:49 -04:00
Josue
2a756e152d refactor: add bond speed and state to processed network data 2021-06-04 12:11:49 -04:00
Josue
a0d45f3839 feat: add scrolling 2021-06-04 12:11:49 -04:00
Josue
84c46412d5 refactor: set speed and state of the slowest link 2021-06-04 12:11:49 -04:00
Josue
0386bf1b83 refactor: add scrolling and real bond speed 2021-06-04 12:11:49 -04:00
Josue
427588df0f refactor: change text component to allow unselected option 2021-06-04 12:11:49 -04:00
Josue
93d10e0528 fix: typo 2021-06-04 12:11:49 -04:00
Josue
caae2dd1e7 fix: change data value range to match design 2021-06-04 12:11:49 -04:00
Josue
12810ef501 refactor: add displaying node in use for a server 2021-06-04 12:11:49 -04:00
Josue
6ecd074990 feat: add tools to process network information for easier display 2021-06-04 12:11:49 -04:00
Josue
d6485b3ee9 refactor: remove unused styles and show host name 2021-06-04 12:11:49 -04:00
Josue
557782e1d0 refactor: reimplement the Node component to match the latest design 2021-06-04 12:11:49 -04:00
Josue
fbf22c310c fix: change header text in Storage component to 'Storage Resync' 2021-06-04 12:11:49 -04:00
Josue
82121508f3 refactor: adjust the size of all headers to a h4 type 2021-06-04 12:11:49 -04:00
Josue
ff10555b5a feat: add decorator to Shared Storage 2021-06-04 12:11:49 -04:00
Josue
f863f7a046 feat: add network component and data processing module 2021-06-04 12:11:49 -04:00
Josue
9ad619f269 fix: change mount_name prop to fit expected data format from server 2021-06-04 12:11:49 -04:00
Josue
704e77abde refactor: change component nesting to group shared storage by file system 2021-06-04 12:11:49 -04:00
Josue
8dc50d04f7 refactor: remove Grid in favour of Box component 2021-06-04 12:11:49 -04:00
Josue
bf19c17b3d fix: change the colour of the list item when hover over 2021-06-04 12:11:49 -04:00
Josue
e6bdd6224a refactor: remove Grid in favour of Box component 2021-06-04 12:11:49 -04:00
Josue
d5b380ea1f refactor: remove Grid in favour of Box component 2021-06-04 12:11:49 -04:00
Josue
b72dacb61f refactor: remove unnecessary Grid and use Anvil component in list 2021-06-04 12:11:49 -04:00
Josue
b496e8b847 refactor: remove Grid in favour of Box component 2021-06-04 12:11:49 -04:00
Josue
9f59f54315 refactor: use whiteSpace prop instead of style 2021-06-04 12:11:49 -04:00
Josue
0c43b126c8 refactor: remove style from Grid item and hide Storage component 2021-06-04 12:11:49 -04:00
Josue
f4a42a8e6d feat: add decorator to SelectedAnvil 2021-06-04 12:11:49 -04:00
Josue
3264361d19 refactor: reove Grid components and use Box instead 2021-06-04 12:11:49 -04:00
Josue
f4a6e1c520 feat: add decorator to the Anvils component 2021-06-04 12:11:49 -04:00
Josue
84fef7d98b feat: add decorator to the Servers component 2021-06-04 12:11:49 -04:00
Josue
97bfab3ec6 refactor: remove unused dependency 2021-06-04 12:11:49 -04:00
Josue
aed57f0500 refactor: group up types related to servers 2021-06-04 12:11:49 -04:00
Josue
3552dbffce refactor: include new components 2021-06-04 12:11:49 -04:00
Josue
a0a1237c5d feat: add placeholder component for the storage section 2021-06-04 12:11:49 -04:00
Josue
e072ac7455 feat: add placeholder component for the network section 2021-06-04 12:11:49 -04:00
Josue
4d55ab6b91 refactor: group up components to have clearer structure 2021-06-04 12:11:49 -04:00
Josue
718e654f24 refactor: remove components used in demo without MUI 2021-06-04 12:11:49 -04:00
Josue
dabec3be7a refactor: remove types used in demo without MUI 2021-06-04 12:11:49 -04:00
Josue
2ec90b1ea3 refactor: group up AnvilStatus types 2021-06-04 12:11:49 -04:00
Josue
1642b637ee refactor: group up AnvilSharedStorage types 2021-06-04 12:11:49 -04:00
Josue
5f2ca07549 refactor: group up AnvilList types 2021-06-04 12:11:49 -04:00
Josue
6abdfcc9a7 feat: add Servers component to list servers 2021-06-04 12:11:49 -04:00
Josue
92f53e8377 refactor: add threads to Total Cores information 2021-06-04 12:11:49 -04:00
Josue
ce539915a9 refactor: clean up Anvil list and enable click for list items 2021-06-04 12:11:49 -04:00
Josue
f892816d83 feat: add type for Anvil replicated storage 2021-06-04 12:11:49 -04:00
Josue
b1b3820948 feat: add type for Anvil servers 2021-06-04 12:11:49 -04:00
Josue
51c5a627aa feat: create SelectedAnvil component for a selectd Anvil from AnvilList 2021-06-04 12:11:49 -04:00
Josue
211613b110 fix: change ProgressBar style to match design 2021-06-04 12:11:49 -04:00
Josue
185cf1398e refactor: use the PanelHeader component with nodes to get the shifted header effecft 2021-06-04 12:11:49 -04:00
Josue
0f8c2452fd feat: create an AnvilList component to show Anvils' status and allow seelction 2021-06-04 12:11:49 -04:00
Josue
8d5a85aaad fix: change AllocationBar style to match design 2021-06-04 12:11:49 -04:00
Josue
415fbce267 refactor: tweak style to match shifted header design 2021-06-04 12:11:49 -04:00
Josue
0d7a3651ce fix: remove using old version of InnerPanel 2021-06-04 12:11:49 -04:00
Josue
6e240eb160 feat: add Panelheader component to create shifted header 2021-06-04 12:11:49 -04:00
Josue
df8e3ee8a0 fix: remove unnecessary check 2021-06-04 12:11:49 -04:00
Josue
3c4284c4f3 fix: use the same data type for Anvil nodes 2021-06-04 12:11:49 -04:00
Josue
e1e4df084f refactor: adapt progress bar to use storage bar style 2021-06-04 12:11:49 -04:00
Josue
f15c164835 refactor: remove unused style 2021-06-04 12:11:49 -04:00
Josue
5783c195be refactor: use storage bar as progress bar with adapted style 2021-06-04 12:11:49 -04:00
Josue
8f33d34ed8 refactor: add decoration boxes using pseudo elements (z-index not responding) 2021-06-04 12:11:49 -04:00
Josue
a552028e80 refactor: change document template to use material-ui during SSR 2021-06-04 12:11:49 -04:00
Josue
fa7084f5c4 refactor: remove InnerPanel to try to add shifted border using pseudo elements 2021-06-04 12:11:49 -04:00
Josue
416b0a3ce7 refactor: perform data checks inside of components instead of in index 2021-06-04 12:11:49 -04:00
Josue
a909260779 refactor: switch from using material-ui's Paper to pseudo elements for panel decoration 2021-06-04 12:11:49 -04:00
Josue
aeb4137c41 refactor: restructure using new Node type for more flexibility in data passed to components 2021-06-04 12:11:49 -04:00
Josue
5c90a05882 refactor: change font size for main text 2021-06-04 12:11:49 -04:00