0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

refactor(ui): preload data (#3342)

This commit is contained in:
Gao Sun 2023-03-11 15:56:09 +08:00 committed by GitHub
parent 649a78a09e
commit 6acd42305f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 2 deletions

View file

@ -4,5 +4,6 @@
"**/assets/icons/*.svg": [
"@parcel/transformer-svg-react"
]
}
},
"resolvers": ["parcel-resolver-ignore", "..."]
}

View file

@ -8,5 +8,6 @@
"**/assets/icons/*.svg": [
"@parcel/transformer-svg-react"
]
}
},
"resolvers": ["parcel-resolver-ignore", "..."]
}

View file

@ -57,6 +57,7 @@
"libphonenumber-js": "^1.9.49",
"lint-staged": "^13.0.0",
"parcel": "2.8.3",
"parcel-resolver-ignore": "^2.1.3",
"postcss": "^8.4.6",
"postcss-modules": "^4.3.0",
"prettier": "^2.8.2",
@ -86,6 +87,9 @@
}
}
},
"parcelIgnore": [
"^/api/.+"
],
"alias": {
"@/*": "./src/$1"
},

View file

@ -5,6 +5,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>Logto</title>
<link rel="preload" href="/api/.well-known/sign-in-exp" as="fetch" crossorigin="anonymous">
<link rel="preload" href="/api/phrase" as="fetch" crossorigin="anonymous">
</head>
<body>

11
pnpm-lock.yaml generated
View file

@ -904,6 +904,7 @@ importers:
libphonenumber-js: ^1.9.49
lint-staged: ^13.0.0
parcel: 2.8.3
parcel-resolver-ignore: ^2.1.3
postcss: ^8.4.6
postcss-modules: ^4.3.0
prettier: ^2.8.2
@ -962,6 +963,7 @@ importers:
libphonenumber-js: 1.9.49
lint-staged: 13.0.0
parcel: 2.8.3_postcss@8.4.6
parcel-resolver-ignore: 2.1.3_parcel@2.8.3
postcss: 8.4.6
postcss-modules: 4.3.0_postcss@8.4.6
prettier: 2.8.4
@ -11178,6 +11180,15 @@ packages:
/packet-reader/1.0.0:
resolution: {integrity: sha512-HAKu/fG3HpHFO0AA8WE8q2g+gBJaZ9MG7fcKk+IJPLTGAD6Psw4443l+9DGRbOIh3/aXr7Phy0TjilYivJo5XQ==}
/parcel-resolver-ignore/2.1.3_parcel@2.8.3:
resolution: {integrity: sha512-C8uLvR4o7SPRSsQ/Nylm1/PdsLwn/Z9bzCs66qT3XIebJC7ojaFFF3MDl/mie5audngjcFF8wzU0AoEQkZq2pA==}
engines: {parcel: '>=2.0.0'}
peerDependencies:
parcel: '>=2.0.0'
dependencies:
parcel: 2.8.3_postcss@8.4.6
dev: true
/parcel/2.8.3_postcss@8.4.14:
resolution: {integrity: sha512-5rMBpbNE72g6jZvkdR5gS2nyhwIXaJy8i65osOqs/+5b7zgf3eMKgjSsDrv6bhz3gzifsba6MBJiZdBckl+vnA==}
engines: {node: '>= 12.0.0'}