mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Fixed path alias.
This commit is contained in:
parent
800731f3aa
commit
51014f6ce6
5 changed files with 8 additions and 5 deletions
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src"
|
||||
"baseUrl": "./src",
|
||||
"paths": {
|
||||
"public/*": ["./public/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useState, useEffect } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import { httpGet } from 'next-basics';
|
||||
import enUS from '../../../public/intl/country/en-US.json';
|
||||
import enUS from 'public/intl/country/en-US.json';
|
||||
|
||||
const countryNames = {
|
||||
'en-US': enUS,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useState, useEffect } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import { httpGet } from 'next-basics';
|
||||
import enUS from '../../../public/intl/country/en-US.json';
|
||||
import enUS from 'public/intl/country/en-US.json';
|
||||
|
||||
const languageNames = {
|
||||
'en-US': enUS,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { LOCALE_CONFIG } from 'lib/constants';
|
|||
import { getDateLocale, getTextDirection } from 'lib/lang';
|
||||
import useStore, { setLocale } from 'store/app';
|
||||
import useForceUpdate from 'components/hooks/useForceUpdate';
|
||||
import enUS from '../../../public/intl/country/en-US.json';
|
||||
import enUS from 'public/intl/country/en-US.json';
|
||||
|
||||
const messages = {
|
||||
'en-US': enUS,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import useLocale from 'components/hooks/useLocale';
|
|||
import useMessages from 'components/hooks/useMessages';
|
||||
import useCountryNames from 'components/hooks/useCountryNames';
|
||||
import MetricsTable from './MetricsTable';
|
||||
import regions from '../../../public/iso-3166-2.json';
|
||||
import regions from 'public/iso-3166-2.json';
|
||||
|
||||
export function RegionsTable({ websiteId, ...props }) {
|
||||
const { locale } = useLocale();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue