-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Restructure store to match standardised architecture (#4646)
* chore: Remove old store JS * chore: Restructure store to match standardised architecture
- Loading branch information
Showing
15 changed files
with
78 additions
and
112 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
type Category = { | ||
display_name: string; | ||
name: string; | ||
}; | ||
|
||
export default Category; |
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,4 @@ | ||
import Category from "./components/Category"; | ||
import Package from "./components/Package"; | ||
|
||
export { Category, Package }; |
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,34 @@ | ||
function getArchitectures() { | ||
return [ | ||
{ | ||
name: "", | ||
display_name: "All", | ||
}, | ||
{ | ||
name: "amd64", | ||
display_name: "AMD64", | ||
}, | ||
{ | ||
name: "arm64", | ||
display_name: "ARM64", | ||
}, | ||
{ | ||
name: "armhf", | ||
display_name: "ARMHF", | ||
}, | ||
{ | ||
name: "i386", | ||
display_name: "I386", | ||
}, | ||
{ | ||
name: "ppc64el", | ||
display_name: "PPC64EL", | ||
}, | ||
{ | ||
name: "s390x", | ||
display_name: "S390X", | ||
}, | ||
]; | ||
} | ||
|
||
export default getArchitectures; |
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,15 @@ | ||
function getCategoryOrder() { | ||
return [ | ||
"development", | ||
"games", | ||
"social", | ||
"productivity", | ||
"utilities", | ||
"music-and-audio", | ||
"art-and-design", | ||
"photo-and-video", | ||
"server-and-cloud", | ||
]; | ||
} | ||
|
||
export default getCategoryOrder; |
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,4 @@ | ||
import getArchitectures from "./getArchitectures"; | ||
import getCategoryOrder from "./getCategoryOrder"; | ||
|
||
export { getArchitectures, getCategoryOrder }; |
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