Skip to content

Commit

Permalink
feat: changed "test-datastore" to "iatidatastore"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Fung committed Sep 22, 2020
1 parent b8b4deb commit 1196c5b
Show file tree
Hide file tree
Showing 8 changed files with 409 additions and 410 deletions.
12 changes: 6 additions & 6 deletions src/app/modules/about-module/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import styled from 'styled-components';

export const Link = styled.a`
color: #185364;
:hover{
color: #03DBE4;
:hover {
color: #03dbe4;
}
`;

Expand All @@ -35,7 +35,7 @@ export const AboutLayout = () => {
development and humanitarian resources and results through using
the{' '}
<Link
href="https://test-datastore.iatistandard.org/api/"
href="https://iatidatastore.iatistandard.org/api/"
target="_blank"
>
Datastore’s API
Expand All @@ -54,7 +54,7 @@ export const AboutLayout = () => {
<Typography variant="body1">
The new{' '}
<Link
href="https://test-datastore.iatistandard.org/api/"
href="https://iatidatastore.iatistandard.org/api/"
target="_blank"
>
IATI Datastore API
Expand Down Expand Up @@ -113,7 +113,7 @@ export const AboutLayout = () => {
For detailed documentation on how to use the API, please refer
to the{' '}
<Link
href="https://test-datastore.iatistandard.org/documentation/introduction"
href="https://iatidatastore.iatistandard.org/documentation/introduction"
target="_blank"
>
Datastore API documentation
Expand All @@ -139,7 +139,7 @@ export const AboutLayout = () => {
<Typography variant="body1">
The{' '}
<Link
href="https://test-datastore.iatistandard.org/querybuilder/core-filters"
href="https://iatidatastore.iatistandard.org/querybuilder/core-filters"
target="_blank"
>
Query builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const ApiCallFragment = (data) => {
const clipboard = useClipboard({ copiedTimeout: 600 });
const parsed = data.data;
const request = parsed.request;
const targetURL = 'https://test-datastore.iatistandard.org';
const targetURL = 'https://iatidatastore.iatistandard.org';

const showRequest = useStoreActions((actions) => actions.request.showRequest);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const codes = {
code: `var https = require('https');
var options = {
'method': 'GET',
'hostname': 'test-datastore.iatistandard.org',
'hostname': 'iatidatastore.iatistandard.org',
'path': '/api/activities/?has_other_identifier=True&fields=title%2Cother_identifier&format=json',
'headers': {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const RequestExample = () => {
url.raw.replace(
'{{url}}',
''
// 'https://test-datastore.iatistandard.org'
// 'https://iatidatastore.iatistandard.org'
)}
</SyntaxHighlighter>
</ELementThree>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const response = {
response:
'{\n' +
' "count": 734079,\n' +
' "next": "http://test-datastore.iatistandard.org/api/activities/?fields=title%2Cactivity_scope&format=json&has_activity_scope=True&page=2",\n' +
' "next": "http://iatidatastore.iatistandard.org/api/activities/?fields=title%2Cactivity_scope&format=json&has_activity_scope=True&page=2",\n' +
' "previous": null,\n' +
' "results": [\n' +
' {\n' +
Expand All @@ -28,7 +28,7 @@ export const response = {
' {\n' +
' "id": 7085,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/89/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/89/?format=json",\n' +
' "code": "89",\n' +
' "name": "Europe, regional"\n' +
' },\n' +
Expand All @@ -42,7 +42,7 @@ export const response = {
' {\n' +
' "id": 7086,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/298/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/298/?format=json",\n' +
' "code": "298",\n' +
' "name": "Africa, regional"\n' +
' },\n' +
Expand All @@ -56,7 +56,7 @@ export const response = {
' {\n' +
' "id": 7087,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/498/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/498/?format=json",\n' +
' "code": "498",\n' +
' "name": "America, regional"\n' +
' },\n' +
Expand All @@ -70,7 +70,7 @@ export const response = {
' {\n' +
' "id": 7088,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/798/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/798/?format=json",\n' +
' "code": "798",\n' +
' "name": "Asia, regional"\n' +
' },\n' +
Expand All @@ -86,7 +86,7 @@ export const response = {
' {\n' +
' "id": 33710,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "code": "15150",\n' +
' "name": "Democratic participation and civil society"\n' +
' },\n' +
Expand Down Expand Up @@ -123,7 +123,7 @@ export const response = {
' {\n' +
' "id": 7091,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/298/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/298/?format=json",\n' +
' "code": "298",\n' +
' "name": "Africa, regional"\n' +
' },\n' +
Expand All @@ -139,7 +139,7 @@ export const response = {
' {\n' +
' "id": 33751,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "code": "15150",\n' +
' "name": "Democratic participation and civil society"\n' +
' },\n' +
Expand Down Expand Up @@ -176,7 +176,7 @@ export const response = {
' {\n' +
' "id": 7096,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/89/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/89/?format=json",\n' +
' "code": "89",\n' +
' "name": "Europe, regional"\n' +
' },\n' +
Expand All @@ -190,7 +190,7 @@ export const response = {
' {\n' +
' "id": 7097,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/798/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/798/?format=json",\n' +
' "code": "798",\n' +
' "name": "Asia, regional"\n' +
' },\n' +
Expand All @@ -204,7 +204,7 @@ export const response = {
' {\n' +
' "id": 7098,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/498/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/498/?format=json",\n' +
' "code": "498",\n' +
' "name": "America, regional"\n' +
' },\n' +
Expand All @@ -218,7 +218,7 @@ export const response = {
' {\n' +
' "id": 7099,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/298/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/298/?format=json",\n' +
' "code": "298",\n' +
' "name": "Africa, regional"\n' +
' },\n' +
Expand All @@ -232,7 +232,7 @@ export const response = {
' {\n' +
' "id": 7100,\n' +
' "region": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/regions/889/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/regions/889/?format=json",\n' +
' "code": "889",\n' +
' "name": "Oceania, regional"\n' +
' },\n' +
Expand All @@ -248,7 +248,7 @@ export const response = {
' {\n' +
' "id": 33777,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15113/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15113/?format=json",\n' +
' "code": "15113",\n' +
' "name": "Anti-corruption organisations and institutions"\n' +
' },\n' +
Expand Down Expand Up @@ -284,7 +284,7 @@ export const response = {
' {\n' +
' "id": 13747,\n' +
' "country": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/countries/CD/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/countries/CD/?format=json",\n' +
' "code": "CD",\n' +
' "name": "Congo (The Democratic Republic Of The)"\n' +
' },\n' +
Expand All @@ -296,7 +296,7 @@ export const response = {
' {\n' +
' "id": 42537,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "code": "15150",\n' +
' "name": "Democratic participation and civil society"\n' +
' },\n' +
Expand Down Expand Up @@ -332,7 +332,7 @@ export const response = {
' {\n' +
' "id": 13790,\n' +
' "country": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/countries/RW/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/countries/RW/?format=json",\n' +
' "code": "RW",\n' +
' "name": "Rwanda"\n' +
' },\n' +
Expand All @@ -344,7 +344,7 @@ export const response = {
' {\n' +
' "id": 42590,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "code": "15150",\n' +
' "name": "Democratic participation and civil society"\n' +
' },\n' +
Expand Down Expand Up @@ -380,7 +380,7 @@ export const response = {
' {\n' +
' "id": 13787,\n' +
' "country": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/countries/SS/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/countries/SS/?format=json",\n' +
' "code": "SS",\n' +
' "name": "South Sudan"\n' +
' },\n' +
Expand All @@ -392,7 +392,7 @@ export const response = {
' {\n' +
' "id": 42587,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15220/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15220/?format=json",\n' +
' "code": "15220",\n' +
' "name": "Civilian peace-building, conflict prevention and resolution"\n' +
' },\n' +
Expand Down Expand Up @@ -428,7 +428,7 @@ export const response = {
' {\n' +
' "id": 13809,\n' +
' "country": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/countries/SS/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/countries/SS/?format=json",\n' +
' "code": "SS",\n' +
' "name": "South Sudan"\n' +
' },\n' +
Expand All @@ -440,7 +440,7 @@ export const response = {
' {\n' +
' "id": 42608,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/11220/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/11220/?format=json",\n' +
' "code": "11220",\n' +
' "name": "Primary education"\n' +
' },\n' +
Expand Down Expand Up @@ -484,7 +484,7 @@ export const response = {
' {\n' +
' "id": 13839,\n' +
' "country": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/countries/BI/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/countries/BI/?format=json",\n' +
' "code": "BI",\n' +
' "name": "Burundi"\n' +
' },\n' +
Expand All @@ -496,7 +496,7 @@ export const response = {
' {\n' +
' "id": 42625,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "code": "15150",\n' +
' "name": "Democratic participation and civil society"\n' +
' },\n' +
Expand Down Expand Up @@ -532,7 +532,7 @@ export const response = {
' {\n' +
' "id": 13865,\n' +
' "country": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/countries/PE/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/countries/PE/?format=json",\n' +
' "code": "PE",\n' +
' "name": "Peru"\n' +
' },\n' +
Expand All @@ -544,7 +544,7 @@ export const response = {
' {\n' +
' "id": 42640,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "code": "15150",\n' +
' "name": "Democratic participation and civil society"\n' +
' },\n' +
Expand Down Expand Up @@ -580,7 +580,7 @@ export const response = {
' {\n' +
' "id": 13898,\n' +
' "country": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/countries/EC/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/countries/EC/?format=json",\n' +
' "code": "EC",\n' +
' "name": "Ecuador"\n' +
' },\n' +
Expand All @@ -592,7 +592,7 @@ export const response = {
' {\n' +
' "id": 42672,\n' +
' "sector": {\n' +
' "url": "http://test-datastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "url": "http://iatidatastore.iatistandard.org/api/sectors/15150/?format=json",\n' +
' "code": "15150",\n' +
' "name": "Democratic participation and civil society"\n' +
' },\n' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const RequestResponse = () => {

const moddedURL = url.raw.replace(
'{{url}}',
'https://test-datastore.iatistandard.org'
'https://iatidatastore.iatistandard.org'
);

const [request, response] = useFetch(moddedURL);
Expand Down
Loading

0 comments on commit 1196c5b

Please sign in to comment.