summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-07 17:21:48 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-07 17:21:48 +0100
commit50f6cdc34b86159e30af7cb8abdaba3ad67ebaa3 (patch)
tree8fc2899aff8969dc468addc1dbd70672b3c59119
parentValidate sitemap and atom pages against XSDs (diff)
downloadgentoobrowse-50f6cdc34b86159e30af7cb8abdaba3ad67ebaa3.tar.bz2
gentoobrowse-50f6cdc34b86159e30af7cb8abdaba3ad67ebaa3.tar.xz
gentoobrowse-50f6cdc34b86159e30af7cb8abdaba3ad67ebaa3.zip
Reformat JSON files
-rw-r--r--gentoobrowse/src/base.json5
-rw-r--r--gentoobrowse/src/news.json33
-rw-r--r--gentoobrowse/src/packages.json30
-rw-r--r--gentoobrowse/src/search.json18
-rw-r--r--gentoobrowse/src/use.json54
5 files changed, 107 insertions, 33 deletions
diff --git a/gentoobrowse/src/base.json b/gentoobrowse/src/base.json
index 00178d2..1d8b563 100644
--- a/gentoobrowse/src/base.json
+++ b/gentoobrowse/src/base.json
@@ -2,7 +2,10 @@
"name": "GentooBrowse",
"routeBases": {
"common": {
- "proxies": [ "IceSpider.SessionManager", "Gentoo.Users" ],
+ "proxies": [
+ "IceSpider.SessionManager",
+ "Gentoo.Users"
+ ],
"functions": [
"::Gentoo::UserPtr currentUser(const IceSpider::IHttpRequest *) const",
"void trimCategories(Gentoo::Categories &, const Gentoo::Packages &) const",
diff --git a/gentoobrowse/src/news.json b/gentoobrowse/src/news.json
index ce05e2a..1be2b29 100644
--- a/gentoobrowse/src/news.json
+++ b/gentoobrowse/src/news.json
@@ -1,19 +1,30 @@
{
"name": "GentooBrowse",
- "headers": [ "xsltStreamSerializer.h", "icespider-routes-base.h" ],
+ "headers": [
+ "xsltStreamSerializer.h",
+ "icespider-routes-base.h"
+ ],
"routes": {
"news": {
"path": "/news",
- "bases": [ "common" ],
- "mutators": [ "addUser" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/news.xslt\"" ]
+ "params": [
+ "\"xslt/news.xslt\""
+ ]
},
"application/atom+xml": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/news-atom.xslt\"" ]
+ "params": [
+ "\"xslt/news-atom.xslt\""
+ ]
}
},
"operations": {
@@ -30,12 +41,18 @@
},
"newsitem": {
"path": "/news/{newsid}",
- "bases": [ "common" ],
- "mutators": [ "addUser" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/newsitem.xslt\"" ]
+ "params": [
+ "\"xslt/newsitem.xslt\""
+ ]
}
},
"operations": {
diff --git a/gentoobrowse/src/packages.json b/gentoobrowse/src/packages.json
index aa65b0b..1c1d12a 100644
--- a/gentoobrowse/src/packages.json
+++ b/gentoobrowse/src/packages.json
@@ -1,15 +1,24 @@
{
"name": "GentooBrowse",
- "headers": [ "xsltStreamSerializer.h", "icespider-routes-base.h" ],
+ "headers": [
+ "xsltStreamSerializer.h",
+ "icespider-routes-base.h"
+ ],
"routes": {
"browse": {
"path": "/packages",
- "bases": [ "common" ],
- "mutators": [ "addUser" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/categories.xslt\"" ]
+ "params": [
+ "\"xslt/categories.xslt\""
+ ]
}
},
"operations": {
@@ -21,12 +30,19 @@
},
"popular": {
"path": "/packages/popular",
- "bases": [ "common" ],
- "mutators": [ "addUser", "trimCategories" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser",
+ "trimCategories"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/popular.xslt\"" ]
+ "params": [
+ "\"xslt/popular.xslt\""
+ ]
}
},
"operations": {
diff --git a/gentoobrowse/src/search.json b/gentoobrowse/src/search.json
index aea47c3..65fcfc0 100644
--- a/gentoobrowse/src/search.json
+++ b/gentoobrowse/src/search.json
@@ -1,15 +1,25 @@
{
"name": "GentooBrowse",
- "headers": [ "xsltStreamSerializer.h", "icespider-routes-base.h" ],
+ "headers": [
+ "xsltStreamSerializer.h",
+ "icespider-routes-base.h"
+ ],
"routes": {
"search": {
"path": "/search",
- "bases": [ "common" ],
- "mutators": [ "addUser", "trimCategories" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser",
+ "trimCategories"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/search.xslt\"" ]
+ "params": [
+ "\"xslt/search.xslt\""
+ ]
}
},
"operations": {
diff --git a/gentoobrowse/src/use.json b/gentoobrowse/src/use.json
index 02ec208..f1b7668 100644
--- a/gentoobrowse/src/use.json
+++ b/gentoobrowse/src/use.json
@@ -1,15 +1,24 @@
{
"name": "GentooBrowse",
- "headers": [ "xsltStreamSerializer.h", "icespider-routes-base.h" ],
+ "headers": [
+ "xsltStreamSerializer.h",
+ "icespider-routes-base.h"
+ ],
"routes": {
"useIndex": {
"path": "/use",
- "bases": [ "common" ],
- "mutators": [ "addUser" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/use.xslt\"" ]
+ "params": [
+ "\"xslt/use.xslt\""
+ ]
}
},
"operations": {
@@ -21,12 +30,19 @@
},
"useDetail": {
"path": "/use/{flag}",
- "bases": [ "common" ],
- "mutators": [ "addUser", "trimCategories" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser",
+ "trimCategories"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/use-detail.xslt\"" ]
+ "params": [
+ "\"xslt/use-detail.xslt\""
+ ]
}
},
"operations": {
@@ -47,12 +63,18 @@
},
"useGroupIndex": {
"path": "/usegroup",
- "bases": [ "common" ],
- "mutators": [ "addUser" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/usegroup.xslt\"" ]
+ "params": [
+ "\"xslt/usegroup.xslt\""
+ ]
}
},
"operations": {
@@ -64,12 +86,18 @@
},
"useGroupDetail": {
"path": "/usegroup/{group}",
- "bases": [ "common" ],
- "mutators": [ "addUser" ],
+ "bases": [
+ "common"
+ ],
+ "mutators": [
+ "addUser"
+ ],
"outputSerializers": {
"text/html": {
"serializer": "IceSpider.XsltStreamSerializer",
- "params": [ "\"xslt/usegroup-detail.xslt\"" ]
+ "params": [
+ "\"xslt/usegroup-detail.xslt\""
+ ]
}
},
"operations": {