From 6c9e670aba75d468f894b5e5501421a54998e58d Mon Sep 17 00:00:00 2001 From: antoine37120 Date: Fri, 7 May 2021 16:23:06 +0200 Subject: [PATCH 1/3] update: add key circle for circle range use in resources --- README.md | 1 + src/views/page-resources.pug | 2 +- src/views/partials/circle/page-circle-resources.pug | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66371bc..2548567 100644 --- a/README.md +++ b/README.md @@ -579,6 +579,7 @@ Module declaration, on `config.json`: "post": "http://server.url/resources/", "types": "http://server.url/types/", "keywords": "http://server.url/keywords/", + "circles": "http://server.url/circles", "postTypes": "http://server.url/types/", "postKeywords": "http://server.url/keywords/", "uploads": "http://server.url/upload/" diff --git a/src/views/page-resources.pug b/src/views/page-resources.pug index f90d0f2..cf86075 100644 --- a/src/views/page-resources.pug +++ b/src/views/page-resources.pug @@ -5,7 +5,7 @@ div.whitespace-normal post-data-type-src=`${component.endpoints.postTypes}` range-resource-keyword=`${component.endpoints.keywords}` post-data-keyword-src=`${component.endpoints.postKeywords}` - range-resource-circle=`${getComponent('circles').endpoints.get}/` + circles=`${component.endpoints.circles}` associated-circle-label="" data-trans=`associated-circle-label=${component.parameters && component.parameters.associatedName ? component.parameters.associatedName : 'circle.extensions.associated'}` upload-dir=`${component.endpoints.uploads}` diff --git a/src/views/partials/circle/page-circle-resources.pug b/src/views/partials/circle/page-circle-resources.pug index cd46f6b..0020e82 100644 --- a/src/views/partials/circle/page-circle-resources.pug +++ b/src/views/partials/circle/page-circle-resources.pug @@ -6,7 +6,7 @@ solid-resource( post-data-type-src=`${extension.endpoints.postTypes}` range-resource-keyword=`${extension.endpoints.keywords}` post-data-keyword-src=`${extension.endpoints.postKeywords}` - range-resource-circle=`${getComponent('circles').endpoints.get}/` + circles=`${extension.endpoints.cicle}` associated-circle-label="" data-trans=`associated-circle-label=${extension.parameters && extension.parameters.associatedName ? extension.parameters.associatedName : 'circle.extensions.associated'}` upload-dir=`${extension.endpoints.uploads}` From bf23ce7c088681432f7468e0a75c789c69be5d91 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Fri, 7 May 2021 14:56:05 +0000 Subject: [PATCH 2/3] fix: typo --- src/views/partials/circle/page-circle-resources.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/partials/circle/page-circle-resources.pug b/src/views/partials/circle/page-circle-resources.pug index 0020e82..a3ac649 100644 --- a/src/views/partials/circle/page-circle-resources.pug +++ b/src/views/partials/circle/page-circle-resources.pug @@ -6,7 +6,7 @@ solid-resource( post-data-type-src=`${extension.endpoints.postTypes}` range-resource-keyword=`${extension.endpoints.keywords}` post-data-keyword-src=`${extension.endpoints.postKeywords}` - circles=`${extension.endpoints.cicle}` + circles=`${extension.endpoints.circles}` associated-circle-label="" data-trans=`associated-circle-label=${extension.parameters && extension.parameters.associatedName ? extension.parameters.associatedName : 'circle.extensions.associated'}` upload-dir=`${extension.endpoints.uploads}` From b8dd2aca56c84806d85927fb2331f68651b439cf Mon Sep 17 00:00:00 2001 From: antoine37120 Date: Sat, 8 May 2021 12:29:59 +0200 Subject: [PATCH 3/3] minor: add / for circles uri --- src/views/page-resources.pug | 4 +--- src/views/partials/circle/page-circle-resources.pug | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/page-resources.pug b/src/views/page-resources.pug index cf86075..c29dac9 100644 --- a/src/views/page-resources.pug +++ b/src/views/page-resources.pug @@ -5,12 +5,10 @@ div.whitespace-normal post-data-type-src=`${component.endpoints.postTypes}` range-resource-keyword=`${component.endpoints.keywords}` post-data-keyword-src=`${component.endpoints.postKeywords}` - circles=`${component.endpoints.circles}` + circles=`${component.endpoints.circles}/` associated-circle-label="" data-trans=`associated-circle-label=${component.parameters && component.parameters.associatedName ? component.parameters.associatedName : 'circle.extensions.associated'}` upload-dir=`${component.endpoints.uploads}` id-prefix='default' uniq=component.uniq ) - - diff --git a/src/views/partials/circle/page-circle-resources.pug b/src/views/partials/circle/page-circle-resources.pug index a3ac649..04ed838 100644 --- a/src/views/partials/circle/page-circle-resources.pug +++ b/src/views/partials/circle/page-circle-resources.pug @@ -6,7 +6,7 @@ solid-resource( post-data-type-src=`${extension.endpoints.postTypes}` range-resource-keyword=`${extension.endpoints.keywords}` post-data-keyword-src=`${extension.endpoints.postKeywords}` - circles=`${extension.endpoints.circles}` + circles=`${extension.endpoints.circles}/` associated-circle-label="" data-trans=`associated-circle-label=${extension.parameters && extension.parameters.associatedName ? extension.parameters.associatedName : 'circle.extensions.associated'}` upload-dir=`${extension.endpoints.uploads}`