diff --git a/src/config.sample.json b/src/config.sample.json index f74fc575dedea61bbd47a0416d55dc91df3f4d35..0d2e0c0f9ae39b23b03c8b3f0637b59d5a365ea0 100644 --- a/src/config.sample.json +++ b/src/config.sample.json @@ -1,47 +1,26 @@ { - "sdn": "https://api.coopstarter.happy-dev.fr", - "cdn": "https://cdn.happy-dev.fr", - "xmpp": "https://jabber.happy-dev.fr/http-bind/", - "client_id": "833925", + "sdn": "https://api.coopstarter.happy-dev.fr/", + "client_id": "821788", "endpoints": { - "resources": "https://api.coopstarter.happy-dev.fr/resources/", + "resources": "https://api.coopstarter.happy-dev.fr/sources/resources/", + "requests": "https://api.coopstarter.happy-dev.fr/requests/", "fields": "https://api.coopstarter.happy-dev.fr/fields/", "formats": "https://api.coopstarter.happy-dev.fr/formats/", "types": "https://api.coopstarter.happy-dev.fr/types/", "languages": "https://api.coopstarter.happy-dev.fr/languages/", "steps": "https://api.coopstarter.happy-dev.fr/steps/", - "mentors": "https://api.coopstarter.happy-dev.fr/mentors/", + "step1": "https://api.coopstarter.happy-dev.fr/sources/step1/", + "step2": "https://api.coopstarter.happy-dev.fr/sources/step2/", + "step3": "https://api.coopstarter.happy-dev.fr/sources/step3/", + "step4": "https://api.coopstarter.happy-dev.fr/sources/step4/", + "step5": "https://api.coopstarter.happy-dev.fr/sources/step5/", + "step6": "https://api.coopstarter.happy-dev.fr/sources/step6/", + "users": "https://api.coopstarter.happy-dev.fr/users/", + "organisations": "https://api.coopstarter.happy-dev.fr/organisations/", "entrepreneurs": "https://api.coopstarter.happy-dev.fr/entrepreneurs/", - "organisations": "https://api.coopstarter.happy-dev.fr/organisations/" - }, - - "staging": { - "sdn": "http://test-paris.happy-dev.fr", - "cdn": "https://cdn.happy-dev.fr", - "xmpp": "https://jabber.happy-dev.fr/http-bind/", - "client_id": "833925", - "endpoints": { - "resources": "https://api.coopstarter.happy-dev.fr/resources/", - "fields": "https://api.coopstarter.happy-dev.fr/fields/", - "formats": "https://api.coopstarter.happy-dev.fr/formats/", - "types": "https://api.coopstarter.happy-dev.fr/types/", - "languages": "https://api.coopstarter.happy-dev.fr/languages/", - "steps": "https://api.coopstarter.happy-dev.fr/steps/" - } - }, - - "prod": { - "sdn": "https://api.alpha.happy-dev.fr", - "cdn": "https://cdn.happy-dev.fr", - "xmpp": "https://jabber.happy-dev.fr/http-bind/", - "client_id": "833925", - "endpoints": { - "resources": "https://api.coopstarter.happy-dev.fr/resources/", - "fields": "https://api.coopstarter.happy-dev.fr/fields/", - "formats": "https://api.coopstarter.happy-dev.fr/formats/", - "types": "https://api.coopstarter.happy-dev.fr/types/", - "languages": "https://api.coopstarter.happy-dev.fr/languages/", - "steps": "https://api.coopstarter.happy-dev.fr/steps/" - } + "mentors": "https://api.coopstarter.happy-dev.fr/mentors/", + "reviews": "https://api.coopstarter.happy-dev.fr/reviews/", + "countries": "https://api.coopstarter.happy-dev.fr/countrys/", + "brokenlinks": "https://api.coopstarter.happy-dev.fr/brokenlinks/" } -} +} \ No newline at end of file diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug index 8e036f6ed6970205daaf7df6836b1900b9f54e13..e67808d7b30a38add0c8f664b6402d5db2669803 100644 --- a/src/includes/entrepreneur/resources/list.pug +++ b/src/includes/entrepreneur/resources/list.pug @@ -120,7 +120,7 @@ container.block_list ) sib-display.resource_by_step( - data-src=`${endpoints.steps}1/resources/validated/`, + data-src=`${endpoints.step1}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -174,7 +174,7 @@ container.block_list ) sib-display.resource_by_step( - data-src=`${endpoints.steps}2/resources/validated/`, + data-src=`${endpoints.step2}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -226,7 +226,7 @@ container.block_list ) sib-display.resource_by_step( - data-src=`${endpoints.steps}3/resources/validated/`, + data-src=`${endpoints.step3}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -279,7 +279,7 @@ container.block_list ) sib-display.resource_by_step( - data-src=`${endpoints.steps}4/resources/validated/`, + data-src=`${endpoints.step4}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -332,7 +332,7 @@ container.block_list ) sib-display.resource_by_step( - data-src=`${endpoints.steps}5/resources/validated/`, + data-src=`${endpoints.step5}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -385,7 +385,7 @@ container.block_list ) sib-display.resource_by_step( - data-src=`${endpoints.steps}6/resources/validated/`, + data-src=`${endpoints.step6}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` diff --git a/src/includes/mentor/browseDatabase.pug b/src/includes/mentor/browseDatabase.pug index aa33150f6449113781e5fe50647044248ca64069..8e5360363430d0dd827bfcff6a95af4f969ffd26 100644 --- a/src/includes/mentor/browseDatabase.pug +++ b/src/includes/mentor/browseDatabase.pug @@ -112,7 +112,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}1/resources/validated/`, + data-src=`${endpoints.step1}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -164,7 +164,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}2/resources/validated/`, + data-src=`${endpoints.step2}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -217,7 +217,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}3/resources/validated/`, + data-src=`${endpoints.step3}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -270,7 +270,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}4/resources/validated/`, + data-src=`${endpoints.step4}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -322,7 +322,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}5/resources/validated/`, + data-src=`${endpoints.step5}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -374,7 +374,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}6/resources/validated/`, + data-src=`${endpoints.step6}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` diff --git a/src/includes/public/resources/list.pug b/src/includes/public/resources/list.pug index f69ae98d16832a26e05b051b30380873f2d3e741..dcc12d5f35613829bf0c368690b37bfca36f701c 100644 --- a/src/includes/public/resources/list.pug +++ b/src/includes/public/resources/list.pug @@ -105,7 +105,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}1/resources/validated/`, + data-src=`${endpoints.step1}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -159,7 +159,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}2/resources/validated/`, + data-src=`${endpoints.step2}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -214,7 +214,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}3/resources/validated/`, + data-src=`${endpoints.step3}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -268,7 +268,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}4/resources/validated/`, + data-src=`${endpoints.step4}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -322,7 +322,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}5/resources/validated/`, + data-src=`${endpoints.step5}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` @@ -375,7 +375,7 @@ container.block_list.flex.flex_espace ) sib-display.resource_by_step( - data-src=`${endpoints.steps}6/resources/validated/`, + data-src=`${endpoints.step6}`, fields='name, author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}`