diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-07 17:23:37 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-07 17:23:37 +0100 |
commit | 5f94f66c45e7689690aad20294e86699d0e7c821 (patch) | |
tree | 376ade4cb72ca04f9596846144c3be989b730156 | |
parent | Reformat JSON files (diff) | |
download | gentoobrowse-5f94f66c45e7689690aad20294e86699d0e7c821.tar.bz2 gentoobrowse-5f94f66c45e7689690aad20294e86699d0e7c821.tar.xz gentoobrowse-5f94f66c45e7689690aad20294e86699d0e7c821.zip |
Rename Popular to more generic name for reuse
-rw-r--r-- | gentoobrowse/src/mash.ice | 8 | ||||
-rw-r--r-- | gentoobrowse/src/packages.json | 2 | ||||
-rw-r--r-- | gentoobrowse/src/user.cpp | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/gentoobrowse/src/mash.ice b/gentoobrowse/src/mash.ice index 40680fa..0ed9f76 100644 --- a/gentoobrowse/src/mash.ice +++ b/gentoobrowse/src/mash.ice @@ -46,13 +46,13 @@ module GentooBrowse { }; ["slicer:root:gentoo"] - class Popular extends PageBase { + class CategoriesAndPackages extends PageBase { Gentoo::Categories categories; Gentoo::Packages packages; }; ["slicer:root:gentoo"] - class UserTracked extends Popular { + class UserTracked extends CategoriesAndPackages { Gentoo::Ebuilds versions; }; @@ -95,10 +95,8 @@ module GentooBrowse { }; ["slicer:root:gentoo"] - class Use extends PageBase { - Gentoo::Categories categories; + class Use extends CategoriesAndPackages { Gentoo::Uses usage; - Gentoo::Packages packages; Gentoo::Use use; }; diff --git a/gentoobrowse/src/packages.json b/gentoobrowse/src/packages.json index 1c1d12a..80be3e8 100644 --- a/gentoobrowse/src/packages.json +++ b/gentoobrowse/src/packages.json @@ -53,7 +53,7 @@ "operation": "Gentoo.Portage.getTopTrackedPackages" } }, - "type": "GentooBrowse.Popular", + "type": "GentooBrowse.CategoriesAndPackages", "params": { "n": { "default": "50" diff --git a/gentoobrowse/src/user.cpp b/gentoobrowse/src/user.cpp index b7b06a1..e4452f5 100644 --- a/gentoobrowse/src/user.cpp +++ b/gentoobrowse/src/user.cpp @@ -215,7 +215,7 @@ namespace GentooBrowse { void execute(IceSpider::IHttpRequest * request) const { - PopularPtr u = std::make_shared<Popular>(); + auto u = std::make_shared<CategoriesAndPackages>(); auto _ar_c = prx2->getAllCategoriesAsync(request->getContext()); addUser(request, u); auto _ar_p = prx2->getUserTrackedPackagesAsync(u->user->userid, request->getContext()); |