This repository has been archived by the owner on Jun 18, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Headers added outside scroll area * Using CSS grid to handle layout constraints * Application can display size and last modified on * Moved column sizes to DirectoryWrapper's state * Directory item arranges size and modified on in columns * File size and last modified by info styled * All sections of the directory item act as buttons * Correct height is stored on changing terminal size * Implemented new tests
- Loading branch information
1 parent
2ba8936
commit 0c305a0
Showing
49 changed files
with
529 additions
and
145 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,14 @@ | ||
/** Describes the sizes of the directory list columns. */ | ||
interface IColumnSizes { | ||
|
||
/** The size of the 'name' column. */ | ||
name: number; | ||
|
||
/** The size of the 'size' column. */ | ||
size: number; | ||
|
||
/** The size of the 'last modified' column. */ | ||
lastModified: number; | ||
} | ||
|
||
export default IColumnSizes; |
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,10 @@ | ||
import { IColumnSizes } from "models"; | ||
|
||
/** Describes column properties of any components that contain columns. */ | ||
interface IColumnProps { | ||
|
||
/** Sizes of the columns within the directory list. */ | ||
columnSizes: IColumnSizes; | ||
} | ||
|
||
export default IColumnProps; |
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,16 @@ | ||
import { IColumnProps, IThemeableProps } from "props/common"; | ||
|
||
/** Describes properties for the DirectoryHeader component. */ | ||
interface IDirectoryHeaderProps extends IColumnProps, IThemeableProps { | ||
|
||
/** | ||
* Updates the directory list column sizes with the ones given (in pixels). | ||
* | ||
* @param nameColumnSize - the size that the 'name' column should become | ||
* @param sizeColumnSize - the size that the 'size' column should become | ||
* @param lastModifiedSize - the size that the 'last modified on' column should become | ||
*/ | ||
updateColumnSizes(nameColumnSize: number, sizeColumnSize: number, lastModifiedSize: number): void; | ||
} | ||
|
||
export default IDirectoryHeaderProps; |
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
Oops, something went wrong.