0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-13 21:30:30 -05:00
logto/packages/elements/index.html
2024-10-22 18:01:05 +08:00

27 lines
790 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logto elements dev page</title>
<link rel="stylesheet" href="src/account/style.css">
<script type="module" src="src/account/index.ts"></script>
</head>
<body style="background-color: #ecebf5;">
<logto-account-provider>
<logto-account-center></logto-account-center>
</logto-account-provider>
</body>
<script type="module">
import { LogtoAccountApi } from './src/account/api/index.ts';
const ACCESS_TOKEN = 'TEST_ACCESS_TOKEN';
const provider = document.querySelector('logto-account-provider');
const api = new LogtoAccountApi('http://localhost:3001', () => ACCESS_TOKEN);
provider.accountApi = api;
</script>
</html>