forked from dnnsoftware/Dnn.Platform
-
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.
Merge pull request #52 from valadas/sort-items
Implemented sorting
- Loading branch information
Showing
13 changed files
with
195 additions
and
18 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
30 changes: 30 additions & 0 deletions
30
DNN Platform/Modules/ResourceManager/ResourceManager.Web/src/enums/SortField.ts
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,30 @@ | ||
import state from "../store/store" | ||
export class SortField{ | ||
readonly itemName: SortFieldInfo; | ||
readonly lastModifiedOnDate: SortFieldInfo; | ||
readonly size: SortFieldInfo; | ||
readonly parentFolder: SortFieldInfo; | ||
readonly createdOnDate: SortFieldInfo; | ||
|
||
constructor(){ | ||
this.itemName = new SortFieldInfo("ItemName"); | ||
this.lastModifiedOnDate = new SortFieldInfo("LastModifiedOnDate"); | ||
this.size = new SortFieldInfo("Size"); | ||
this.parentFolder = new SortFieldInfo("ParentFolder"); | ||
this.createdOnDate = new SortFieldInfo("CreatedOnDate"); | ||
} | ||
} | ||
|
||
export class SortFieldInfo{ | ||
readonly sortKey: string; | ||
|
||
get localizedName(){ | ||
return state.localization[`SortField_${this.sortKey}`]; | ||
} | ||
|
||
constructor(sortKey: string){ | ||
this.sortKey = sortKey; | ||
} | ||
} | ||
|
||
export const sortField = new SortField(); |
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