mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor: fix ui import
This commit is contained in:
parent
aa203308f0
commit
0fbd31059f
13 changed files with 25 additions and 10 deletions
2
packages/shared/src/node/env/index.ts
vendored
Normal file
2
packages/shared/src/node/env/index.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
export { default as UrlSet } from './UrlSet.js';
|
||||
export { default as GlobalValues } from './GlobalValues.js';
|
|
@ -1 +1,2 @@
|
|||
export { default as findPackage } from './find-package.js';
|
||||
export * from './env/index.js';
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
export * from './database/index.js';
|
||||
export * from './utils/index.js';
|
||||
export { default as UrlSet } from './env/UrlSet.js';
|
||||
export { default as GlobalValues } from './env/GlobalValues.js';
|
||||
|
|
|
@ -10,7 +10,8 @@ const config: Config.InitialOptions = {
|
|||
'\\.(png)$': 'jest-transform-stub',
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^@logto/app-insights/(.*)$': '<rootDir>/node_modules/@logto/app-insights/$1',
|
||||
'^@logto/app-insights/(.*)$': '<rootDir>/node_modules/@logto/app-insights/lib/$1',
|
||||
'^@logto/shared/(.*)$': '<rootDir>/node_modules/@logto/shared/lib/$1',
|
||||
},
|
||||
}),
|
||||
// Will update common config soon
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
"license": "MPL-2.0",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"files": ["dist"],
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"precommit": "lint-staged",
|
||||
"start": "parcel src/index.html",
|
||||
|
@ -25,6 +27,7 @@
|
|||
"@logto/phrases": "workspace:^",
|
||||
"@logto/phrases-ui": "workspace:^",
|
||||
"@logto/schemas": "workspace:^",
|
||||
"@logto/shared": "workspace:^",
|
||||
"@parcel/compressor-brotli": "2.8.3",
|
||||
"@parcel/compressor-gzip": "2.8.3",
|
||||
"@parcel/core": "2.8.3",
|
||||
|
@ -80,7 +83,7 @@
|
|||
"react-timer-hook": "^3.0.5",
|
||||
"react-top-loading-bar": "^2.3.1",
|
||||
"stylelint": "^15.0.0",
|
||||
"superstruct": "^0.16.0",
|
||||
"superstruct": "^1.0.3",
|
||||
"tiny-cookie": "^2.4.1",
|
||||
"ts-jest": "^29.0.5",
|
||||
"typescript": "^5.0.0",
|
||||
|
@ -102,7 +105,8 @@
|
|||
"^/api/.+"
|
||||
],
|
||||
"alias": {
|
||||
"@/*": "./src/$1"
|
||||
"@/*": "./src/$1",
|
||||
"superstruct": "./node_modules/superstruct/dist/index.mjs"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "@silverhand/react",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { appInsightsReact } from '@logto/app-insights/lib/react';
|
||||
import { appInsightsReact } from '@logto/app-insights/react';
|
||||
import { Route, Routes, BrowserRouter } from 'react-router-dom';
|
||||
|
||||
import AppLayout from './Layout/AppLayout';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { appInsightsReact } from '@logto/app-insights/lib/react';
|
||||
import { appInsightsReact } from '@logto/app-insights/react';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { type TFuncKey, useTranslation } from 'react-i18next';
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"extends": "@silverhand/ts-config-react/tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "bundler",
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
|
|
|
@ -3802,6 +3802,9 @@ importers:
|
|||
'@logto/schemas':
|
||||
specifier: workspace:^
|
||||
version: link:../schemas
|
||||
'@logto/shared':
|
||||
specifier: workspace:^
|
||||
version: link:../shared
|
||||
'@parcel/compressor-brotli':
|
||||
specifier: 2.8.3
|
||||
version: 2.8.3(@parcel/core@2.8.3)
|
||||
|
@ -3968,8 +3971,8 @@ importers:
|
|||
specifier: ^15.0.0
|
||||
version: 15.0.0
|
||||
superstruct:
|
||||
specifier: ^0.16.0
|
||||
version: 0.16.0
|
||||
specifier: ^1.0.3
|
||||
version: 1.0.3
|
||||
tiny-cookie:
|
||||
specifier: ^2.4.1
|
||||
version: 2.4.1
|
||||
|
@ -17971,6 +17974,11 @@ packages:
|
|||
resolution: {integrity: sha512-IDQtwnnlaan1NhuHqyD/U11lROYvCQ79JyfwlFU9xEVHzqV/Ys/RrwmHPCG0CVH/1g0BuodEjH1msxK2UHxehA==}
|
||||
dev: true
|
||||
|
||||
/superstruct@1.0.3:
|
||||
resolution: {integrity: sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==}
|
||||
engines: {node: '>=14.0.0'}
|
||||
dev: true
|
||||
|
||||
/supertest@6.2.2:
|
||||
resolution: {integrity: sha512-wCw9WhAtKJsBvh07RaS+/By91NNE0Wh0DN19/hWPlBOU8tAfOtbZoVSV4xXeoKoxgPx0rx2y+y+8660XtE7jzg==}
|
||||
engines: {node: '>=6.0.0'}
|
||||
|
|
Loading…
Reference in a new issue