pxt-core 12.3.6 → 12.3.7
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/built/react-common/components/profile/SignInModal.d.ts +1 -0
- package/built/target.js +1 -1
- package/built/targetlight.js +1 -1
- package/built/web/main.js +1 -1
- package/built/web/multiplayer/js/{main.2f09e469.js → main.89e34116.js} +2 -2
- package/built/web/react-common-authcode.css +1 -1
- package/built/web/react-common-multiplayer.css +1 -1
- package/built/web/react-common-skillmap.css +1 -1
- package/built/web/rtlreact-common-authcode.css +1 -1
- package/built/web/rtlreact-common-multiplayer.css +1 -1
- package/built/web/rtlreact-common-skillmap.css +1 -1
- package/built/web/rtlsemantic.css +1 -1
- package/built/web/semantic.css +1 -1
- package/built/web/skillmap/js/{main.73c02bae.js → main.0fb6b4b3.js} +2 -2
- package/built/web/teachertool/js/{main.643ed198.js → main.21323995.js} +2 -2
- package/built/web/tutorialtool/js/{main.de26ee2e.js → main.5cc17fce.js} +2 -2
- package/package.json +1 -1
- package/react-common/components/profile/SignInModal.tsx +8 -2
- package/react-common/styles/profile/profile.less +14 -1
- package/theme/tutorial-sidebar.less +1 -1
- package/webapp/public/multiplayer.html +1 -1
- package/webapp/public/skillmap.html +1 -1
- package/webapp/public/teachertool.html +1 -1
- package/webapp/public/tutorialtool.html +1 -1
package/package.json
CHANGED
|
@@ -17,10 +17,11 @@ export interface SignInModalProps {
|
|
|
17
17
|
}
|
|
18
18
|
resolvePath?: (path: string) => string
|
|
19
19
|
mode?: "signin" | "signup"
|
|
20
|
+
lastUsedIdentityProvider?: pxt.IdentityProviderId
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export const SignInModal = (props: SignInModalProps) => {
|
|
23
|
-
const { onSignIn, onClose, appMessage, dialogMessages, hideDismissButton } = props
|
|
24
|
+
const { onSignIn, onClose, appMessage, dialogMessages, hideDismissButton, lastUsedIdentityProvider } = props
|
|
24
25
|
const { signInMessage, signUpMessage } = dialogMessages || {
|
|
25
26
|
signInMessage: lf("Sign in to save your progress and access your work anytime, anywhere."),
|
|
26
27
|
signUpMessage: lf("Join now to save your progress and access your work anytime, anywhere.")
|
|
@@ -70,19 +71,24 @@ export const SignInModal = (props: SignInModalProps) => {
|
|
|
70
71
|
<div className='signin-body'>
|
|
71
72
|
<div className='providers'>
|
|
72
73
|
{pxt.auth.identityProviders().map((provider, index) => {
|
|
74
|
+
const isLastUsedProvider = provider.id === lastUsedIdentityProvider
|
|
73
75
|
const title =
|
|
74
76
|
mode === "signin"
|
|
75
77
|
? lf("Continue with {0}", provider.name)
|
|
76
78
|
: lf("Sign up with {0}", provider.name)
|
|
79
|
+
const ariaLabel = isLastUsedProvider
|
|
80
|
+
? lf("{0}. You last used this option.", title)
|
|
81
|
+
: title
|
|
77
82
|
return (
|
|
78
83
|
<Button
|
|
79
84
|
key={index}
|
|
80
85
|
className='provider'
|
|
81
86
|
onClick={() => onSignIn(provider, rememberMe)}
|
|
82
87
|
title={title}
|
|
83
|
-
ariaLabel={
|
|
88
|
+
ariaLabel={ariaLabel}
|
|
84
89
|
label={
|
|
85
90
|
<div className='label'>
|
|
91
|
+
{isLastUsedProvider && <div className='ui orange right ribbon label last-used-ribbon' aria-hidden="true">{lf("Last used")}</div>}
|
|
86
92
|
<div>
|
|
87
93
|
<img className='logo' src={resolvePath(provider.icon)} />
|
|
88
94
|
</div>
|
|
@@ -400,18 +400,31 @@
|
|
|
400
400
|
background-color: var(--pxt-neutral-background1);
|
|
401
401
|
color: var(--pxt-neutral-foreground1);
|
|
402
402
|
border: solid 1px var(--pxt-neutral-foreground1);
|
|
403
|
+
position: relative;
|
|
404
|
+
overflow: visible;
|
|
403
405
|
|
|
404
406
|
.label {
|
|
405
407
|
display: flex;
|
|
406
408
|
flex-direction: row;
|
|
407
409
|
gap: 1rem;
|
|
410
|
+
align-items: center;
|
|
411
|
+
|
|
412
|
+
.last-used-ribbon {
|
|
413
|
+
position: absolute;
|
|
414
|
+
top: -1rem;
|
|
415
|
+
right: -1rem;
|
|
416
|
+
left: auto;
|
|
417
|
+
transform: none;
|
|
418
|
+
margin-right: 0;
|
|
419
|
+
z-index: 1;
|
|
420
|
+
}
|
|
408
421
|
|
|
409
422
|
.logo {
|
|
410
423
|
width: 1.25rem;
|
|
411
424
|
}
|
|
412
425
|
|
|
413
426
|
.title {
|
|
414
|
-
align
|
|
427
|
+
text-align: left;
|
|
415
428
|
}
|
|
416
429
|
}
|
|
417
430
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<link rel="stylesheet" data-rtl="/blb/rtlsemantic.css" href="/blb/semantic.css">
|
|
10
10
|
<link rel="stylesheet" href="/blb/icons.css">
|
|
11
11
|
<link rel="stylesheet" href="/blb/react-common-multiplayer.css">
|
|
12
|
-
<script defer="defer" src="/blb/multiplayer/js/main.
|
|
12
|
+
<script defer="defer" src="/blb/multiplayer/js/main.89e34116.js"></script><link href="/blb/multiplayer/css/main.40f89d37.css" rel="stylesheet"></head>
|
|
13
13
|
<body class="pxt-theme-root">
|
|
14
14
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
15
15
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<link rel="stylesheet" data-rtl="/blb/rtlsemantic.css" href="/blb/semantic.css">
|
|
8
8
|
<link rel="stylesheet" href="/blb/icons.css">
|
|
9
9
|
<link rel="stylesheet" href="/blb/react-common-skillmap.css">
|
|
10
|
-
<script defer="defer" src="/blb/skillmap/js/main.
|
|
10
|
+
<script defer="defer" src="/blb/skillmap/js/main.0fb6b4b3.js"></script><link href="/blb/skillmap/css/main.450cb46e.css" rel="stylesheet"></head>
|
|
11
11
|
<body class="pxt-theme-root">
|
|
12
12
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
13
13
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<!-- <link rel="manifest" href="/teachertool-data/manifest.json" /> -->
|
|
19
19
|
<title>MakeCode Code Evaluation</title>
|
|
20
20
|
<script>var pxtConfig=null</script>
|
|
21
|
-
<script defer="defer" src="/blb/teachertool/js/main.
|
|
21
|
+
<script defer="defer" src="/blb/teachertool/js/main.21323995.js"></script><link href="/blb/teachertool/css/main.a4357c60.css" rel="stylesheet"></head>
|
|
22
22
|
<body class="pxt-theme-root">
|
|
23
23
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
24
24
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<!-- <link rel="manifest" href="/tutorialtool-data/manifest.json" /> -->
|
|
18
18
|
<title>MakeCode Tutorial Tool</title>
|
|
19
19
|
<script>var pxtConfig=null</script>
|
|
20
|
-
<script defer="defer" src="/blb/tutorialtool/js/main.
|
|
20
|
+
<script defer="defer" src="/blb/tutorialtool/js/main.5cc17fce.js"></script><link href="/blb/tutorialtool/css/main.02bb1797.css" rel="stylesheet"></head>
|
|
21
21
|
|
|
22
22
|
<body>
|
|
23
23
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|