Skip to content

Commit b44a752

Browse files
committed
Merge branch '4.0.0-dev' into instructor-analytics-free
2 parents 41f4d26 + f193121 commit b44a752

60 files changed

Lines changed: 3183 additions & 1099 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/core/scss/components/_tooltip.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@
2121
@include tutor-typography('tiny', 'regular', 'primary-inverse');
2222
position: fixed;
2323
z-index: 1070;
24-
max-width: 200px;
24+
max-width: 180px;
2525
padding: $tutor-spacing-4;
2626
background-color: $tutor-surface-dark;
2727
border-radius: $tutor-radius-sm;
2828
box-shadow: $tutor-shadow-md;
2929
word-wrap: break-word;
30-
text-align: start;
30+
text-align: center;
3131

3232
&-large {
3333
max-width: 320px;
3434
padding: $tutor-spacing-5;
35+
text-align: start;
3536
}
3637

3738
&-arrow-start {

assets/core/scss/main.scss

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ body {
4545
@include tutor-transition((background-color, color));
4646
}
4747

48+
.tutor-dashboard-layout,
49+
.tutor-learning-area,
50+
.tutor-account-page-wrapper {
51+
min-height: 100vh;
52+
background-color: $tutor-surface-base;
53+
54+
a {
55+
text-decoration: none;
56+
color: inherit;
57+
58+
&:hover {
59+
text-decoration: none;
60+
color: inherit;
61+
}
62+
}
63+
}
64+
4865
// Remove default margin in all browsers
4966
h1,
5067
h2,
@@ -66,24 +83,14 @@ ol {
6683
list-style: none;
6784
}
6885

69-
li > ol,
70-
li > ul,
86+
li>ol,
87+
li>ul,
7188
ol,
7289
ul {
7390
padding: 0;
7491
}
7592

76-
a {
77-
text-decoration: none;
78-
color: inherit;
79-
80-
&:hover {
81-
text-decoration: none;
82-
color: inherit;
83-
}
84-
}
85-
8693
// Alpine.js cloak utility
8794
[x-cloak] {
8895
display: none !important;
89-
}
96+
}

assets/core/scss/mixins/_buttons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
color: $tutor-text-primary;
167167

168168
svg {
169-
color: $tutor-icon-idle;
169+
color: $tutor-icon-secondary;
170170
}
171171

172172
&:hover:not(:disabled) {

assets/core/ts/constant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ export const TUTOR_CUSTOM_EVENTS = {
1010
FORM_STATE_CHANGE: 'tutor-form-state-change',
1111
TUTOR_PLAYER_READY: 'tutor-player-ready',
1212
COMMENT_REPLIED: 'tutor:comment:replied',
13+
LESSON_PLAYER_READY: 'tutorLessonPlayerReady',
1314
};

assets/core/ts/services/Query.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,21 +232,16 @@ export class QueryService {
232232

233233
return result;
234234
} catch (err) {
235-
const error = {
236-
message: (err as Error).message || 'Mutation failed',
237-
code: (err as { code?: string }).code,
238-
} as TError;
239-
240-
(this as unknown as MutationState<TData, TVariables, TError>).error = error;
235+
(this as unknown as MutationState<TData, TVariables, TError>).error = err as TError;
241236
(this as unknown as MutationState<TData, TVariables, TError>).isError = true;
242237

243238
if (options.onError) {
244-
options.onError(error, variables);
239+
options.onError(err as TError, variables);
245240
}
246241

247242
// onSettled callback - always called
248243
if (options.onSettled) {
249-
options.onSettled(null, error, variables);
244+
options.onSettled(null, err as TError, variables);
250245
}
251246

252247
throw err;

assets/icons/read.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)