Skip to content
Snippets Groups Projects
Commit 34562f5b authored by FionaDmello's avatar FionaDmello
Browse files

moving config file to the utils folder

parent 94674204
No related branches found
No related tags found
2 merge requests!68Details API for details page,!58Draft: Feature Details Page
Pipeline #515698 passed
import { type NextRequest } from "next/server"; import { type NextRequest } from "next/server";
import { SOLR_QUERY_DEFAULTS, INSTITUTE_ROR_LOGOS } from "@/app/api/utils/config";
import { detailsParamsType, detailsSchema, SolrResponseType } from "@/types/types"; import { detailsParamsType, detailsSchema, SolrResponseType } from "@/types/types";
import { SOLR_QUERY_DEFAULTS, INSTITUTE_ROR_LOGOS } from "@api/config/config";
import { import {
createFacetParams, createFacetParams,
createResultItem, createResultItem,
......
File moved
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
SOLR_RESULT_ITEM_KEYS, SOLR_RESULT_ITEM_KEYS,
SOLR_RESULT_CONFIG_KEYS, SOLR_RESULT_CONFIG_KEYS,
INITIAL_CATECORY_COUNT_MAP, INITIAL_CATECORY_COUNT_MAP,
} from "@/app/api/config/config"; } from "@/app/api/utils/config";
import { import {
type Category, type Category,
type SOLRCategories, type SOLRCategories,
......
...@@ -3,7 +3,7 @@ import { ...@@ -3,7 +3,7 @@ import {
DEFAULT_FACET_FIELDS, DEFAULT_FACET_FIELDS,
FACET_INTERVAL_DEFAULTS, FACET_INTERVAL_DEFAULTS,
SOLR_QUERY_DEFAULTS, SOLR_QUERY_DEFAULTS,
} from "@/app/api/config/config"; } from "@/app/api/utils/config";
import { FacetFieldKeys, Formats } from "@/types/types"; import { FacetFieldKeys, Formats } from "@/types/types";
const SOLR_URL = new URL(process.env.NEXT_PRIVATE_SOLR_SERVICE_URL || ""); const SOLR_URL = new URL(process.env.NEXT_PRIVATE_SOLR_SERVICE_URL || "");
......
...@@ -6,7 +6,7 @@ import { useRouter } from "next/navigation"; ...@@ -6,7 +6,7 @@ import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl"; import { useTranslations } from "next-intl";
import { useEffect, useRef, useState } from "react"; import { useEffect, useRef, useState } from "react";
import { INSTITUTE_ROR_LOGOS } from "@/app/api/config/config"; import { INSTITUTE_ROR_LOGOS } from "@/app/api/utils/config"; // TODO: remove this import when we implement ror enrichment in the API layer
import ExternalLink from "@/components/ExternalLink"; import ExternalLink from "@/components/ExternalLink";
import Relationships from "@/components/app/results/ListResults/ResultItem/Relationships"; import Relationships from "@/components/app/results/ListResults/ResultItem/Relationships";
import { Link } from "@/i18n/routing"; import { Link } from "@/i18n/routing";
......
...@@ -2,7 +2,7 @@ import Image from "next/image"; ...@@ -2,7 +2,7 @@ import Image from "next/image";
import { useTranslations } from "next-intl"; import { useTranslations } from "next-intl";
import React, { useEffect, useRef, useState } from "react"; import React, { useEffect, useRef, useState } from "react";
import { INSTITUTE_ROR_LOGOS } from "@/app/api/config/config"; import { INSTITUTE_ROR_LOGOS } from "@/app/api/utils/config"; // TODO: remove this import when we implement ror enrichment in the API layer
import { Link } from "@/i18n/routing"; import { Link } from "@/i18n/routing";
import ExternalLinkIcon from "@/resources/images/svg/ExternalLinkIcon"; import ExternalLinkIcon from "@/resources/images/svg/ExternalLinkIcon";
......
...@@ -5,7 +5,7 @@ import { ...@@ -5,7 +5,7 @@ import {
SOLR_RESULT_ITEM_KEYS, SOLR_RESULT_ITEM_KEYS,
SOLR_RESULT_CONFIG_KEYS, SOLR_RESULT_CONFIG_KEYS,
SOLR_CATEGORIES, SOLR_CATEGORIES,
} from "@/app/api/config/config"; } from "@/app/api/utils/config";
// ================== SOLR DATA SCHEMES ================= // ================== SOLR DATA SCHEMES =================
export type Formats = { export type Formats = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment