@ebubekirylmaz/link-test 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebubekirylmaz/link-test",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "exports": {
@@ -97,7 +97,7 @@ function ProjectBar() {
97
97
  const isDemo = identityProvider?.toUpperCase() === "DEMO";
98
98
 
99
99
  const request = isDemo
100
- ? oauth.post("/auth/demo", {
100
+ ? oauth.post("/oauth/demo", {
101
101
  appId,
102
102
  projectId,
103
103
  username: "admin",
@@ -1,10 +1,10 @@
1
+ import { Button, Stack, TextField, Typography } from "@mui/material";
2
+ import React, { useState } from "react";
3
+
1
4
  import config from "../../config/config";
2
5
  import { storage } from "@nucleoidjs/webstorage";
3
6
  import { useNavigate } from "react-router-dom";
4
7
 
5
- import { Button, Stack, TextField, Typography } from "@mui/material";
6
- import React, { useState } from "react";
7
-
8
8
  export default function DemoLogin() {
9
9
  const [username, setUsername] = useState("");
10
10
  const [password, setPassword] = useState("");
@@ -36,8 +36,8 @@ export default function DemoLogin() {
36
36
  }
37
37
 
38
38
  return (
39
- <Stack spacing={2} maxWidth={400} mx="auto">
40
- <Typography variant="h5">Demo Login</Typography>
39
+ <Stack spacing={2} maxWidth={500} mx="auto">
40
+ <Typography variant="h5">Login</Typography>
41
41
  <TextField
42
42
  label="Username"
43
43
  value={username}
@@ -50,7 +50,7 @@ export default function DemoLogin() {
50
50
  onChange={(e) => setPassword(e.target.value)}
51
51
  />
52
52
  <Button variant="contained" onClick={handleLogin}>
53
- Sign in (Demo)
53
+ Sign in
54
54
  </Button>
55
55
  <Typography variant="caption">Use: admin / admin</Typography>
56
56
  </Stack>