Skip to content

Commit a7bbb7f

Browse files
authored
Merge pull request #1921 from frappe/develop
chore: merge 'develop' into 'main'
2 parents 52fb5e2 + 4345ff1 commit a7bbb7f

39 files changed

Lines changed: 3066 additions & 7964 deletions

frontend/src/components/CourseCard.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,10 @@ const props = defineProps({
152152
})
153153
154154
const getGradientColor = () => {
155-
let theme =
156-
localStorage.getItem('theme') == 'light' ? 'lightMode' : 'darkMode'
155+
let theme = localStorage.getItem('theme') == 'dark' ? 'darkMode' : 'lightMode'
157156
let color = props.course.card_gradient?.toLowerCase() || 'blue'
158157
let colorMap = colors[theme][color]
159-
return `linear-gradient(to top right, black, ${colorMap[200]})`
158+
return `linear-gradient(to top right, black, ${colorMap[400]})`
160159
}
161160
</script>
162161
<style>

frontend/src/pages/Batches.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
v-model="currentCategory"
9191
:options="categories"
9292
:placeholder="__('Category')"
93-
@change="updateBatches()"
93+
@update:modelValue="updateBatches()"
9494
/>
9595
</div>
9696
</div>

frontend/src/pages/CertifiedParticipants.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
v-model="currentCategory"
3434
:options="categories.data"
3535
:placeholder="__('Category')"
36-
@change="updateParticipants()"
36+
@update:modelValue="updateParticipants()"
3737
/>
3838
</div>
3939
</div>

frontend/src/pages/Courses.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
v-model="currentCategory"
7676
:options="categories"
7777
:placeholder="__('Category')"
78-
@change="updateCourses()"
78+
@update:modelValue="updateCourses()"
7979
/>
8080
</div>
8181
</div>

frontend/src/pages/Home/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const isAdmin = computed(() => {
7474
})
7575
7676
const myLiveClasses = createResource({
77-
url: 'lms.lms.utils.get_my_live_classes',
77+
url: 'lms.lms.api.get_my_live_classes',
7878
auto: !isAdmin.value ? true : false,
7979
})
8080

frontend/src/pages/Lesson.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@
319319
</div>
320320
</div>
321321
<InlineLessonMenu
322-
v-if="lesson.data"
322+
v-if="lesson.data?.name"
323323
v-model="showInlineMenu"
324324
:lesson="lesson.data?.name"
325325
v-model:notes="notes"
@@ -731,6 +731,7 @@ const updateVideoTime = (video) => {
731731
}
732732
733733
const startTimer = () => {
734+
if (!lesson.data?.membership) return
734735
let timerInterval = setInterval(() => {
735736
timer.value++
736737
if (timer.value == 30) {

frontend/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ export default defineConfig(({ mode }) => ({
6565
'highlight.js',
6666
'plyr',
6767
],
68-
//exclude: mode === 'production' ? [] : ['frappe-ui'],
68+
exclude: mode === 'production' ? [] : ['frappe-ui'],
6969
},
7070
}))

frontend/yarn.lock

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -940,9 +940,9 @@
940940
"@marijn/find-cluster-break" "^1.0.0"
941941

942942
"@codemirror/view@6.x", "@codemirror/view@^6.0.0", "@codemirror/view@^6.17.0", "@codemirror/view@^6.23.0", "@codemirror/view@^6.27.0", "@codemirror/view@^6.35.0":
943-
version "6.38.8"
944-
resolved "https://registry.yarnpkg.com/@codemirror/view/-/view-6.38.8.tgz#b7a746fc785defc16e96a2560bb073adabe8538a"
945-
integrity sha512-XcE9fcnkHCbWkjeKyi0lllwXmBLtyYb5dt89dJyx23I9+LSh5vZDIuk7OLG4VM1lgrXZQcY6cxyZyk5WVPRv/A==
943+
version "6.39.4"
944+
resolved "https://registry.yarnpkg.com/@codemirror/view/-/view-6.39.4.tgz#b76c73ab48c749cc9ab9e5e0a5d9e47df9f31cb5"
945+
integrity sha512-xMF6OfEAUVY5Waega4juo1QGACfNkNF+aJLqpd8oUJz96ms2zbfQ9Gh35/tI3y8akEV31FruKfj7hBnIU/nkqA==
946946
dependencies:
947947
"@codemirror/state" "^6.5.0"
948948
crelt "^1.0.6"
@@ -1328,9 +1328,9 @@
13281328
"@lezer/lr" "^1.0.0"
13291329

13301330
"@lezer/lr@^1.0.0", "@lezer/lr@^1.3.0":
1331-
version "1.4.4"
1332-
resolved "https://registry.yarnpkg.com/@lezer/lr/-/lr-1.4.4.tgz#6a9045fb948198bb29b5bb51d08e3b3128f1d40a"
1333-
integrity sha512-LHL17Mq0OcFXm1pGQssuGTQFPPdxARjKM8f7GA5+sGtHi0K3R84YaSbmche0+RKWHnCsx9asEe5OWOI4FHfe4A==
1331+
version "1.4.5"
1332+
resolved "https://registry.yarnpkg.com/@lezer/lr/-/lr-1.4.5.tgz#a0a7f505d96593f0f06708d50fb85962e33686c1"
1333+
integrity sha512-/YTRKP5yPPSo1xImYQk7AZZMAgap0kegzqCSYHjAL9x1AZ0ZQW+IpcEzMKagCsbTsLnVeWkxYrCNeXG8xEPrjg==
13341334
dependencies:
13351335
"@lezer/common" "^1.0.0"
13361336

@@ -1594,17 +1594,17 @@
15941594
dependencies:
15951595
postcss-selector-parser "6.0.10"
15961596

1597-
"@tanstack/virtual-core@3.13.12":
1598-
version "3.13.12"
1599-
resolved "https://registry.yarnpkg.com/@tanstack/virtual-core/-/virtual-core-3.13.12.tgz#1dff176df9cc8f93c78c5e46bcea11079b397578"
1600-
integrity sha512-1YBOJfRHV4sXUmWsFSf5rQor4Ss82G8dQWLRbnk3GA4jeP8hQt1hxXh0tmflpC0dz3VgEv/1+qwPyLeWkQuPFA==
1597+
"@tanstack/virtual-core@3.13.13":
1598+
version "3.13.13"
1599+
resolved "https://registry.yarnpkg.com/@tanstack/virtual-core/-/virtual-core-3.13.13.tgz#1e55efe82730e60f4d68b1e2bc956bd3d94f307b"
1600+
integrity sha512-uQFoSdKKf5S8k51W5t7b2qpfkyIbdHMzAn+AMQvHPxKUPeo1SsGaA4JRISQT87jm28b7z8OEqPcg1IOZagQHcA==
16011601

16021602
"@tanstack/vue-virtual@^3.0.0-beta.60", "@tanstack/vue-virtual@^3.12.0", "@tanstack/vue-virtual@^3.8.1":
1603-
version "3.13.12"
1604-
resolved "https://registry.yarnpkg.com/@tanstack/vue-virtual/-/vue-virtual-3.13.12.tgz#a66daac9e6822ce4bcba76a3954937440697c264"
1605-
integrity sha512-vhF7kEU9EXWXh+HdAwKJ2m3xaOnTTmgcdXcF2pim8g4GvI7eRrk2YRuV5nUlZnd/NbCIX4/Ja2OZu5EjJL06Ww==
1603+
version "3.13.13"
1604+
resolved "https://registry.yarnpkg.com/@tanstack/vue-virtual/-/vue-virtual-3.13.13.tgz#8af64d1f832704ebf1217d119d224fecc0bb91af"
1605+
integrity sha512-Cf2xIEE8nWAfsX0N5nihkPYMeQRT+pHt4NEkuP8rNCn6lVnLDiV8rC8IeIxbKmQC0yPnj4SIBLwXYVf86xxKTQ==
16061606
dependencies:
1607-
"@tanstack/virtual-core" "3.13.12"
1607+
"@tanstack/virtual-core" "3.13.13"
16081608

16091609
"@tiptap/core@^2.26.1", "@tiptap/core@^2.27.1":
16101610
version "2.27.1"
@@ -1897,9 +1897,9 @@
18971897
integrity sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==
18981898

18991899
"@types/node@*":
1900-
version "24.10.1"
1901-
resolved "https://registry.yarnpkg.com/@types/node/-/node-24.10.1.tgz#91e92182c93db8bd6224fca031e2370cef9a8f01"
1902-
integrity sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==
1900+
version "25.0.2"
1901+
resolved "https://registry.yarnpkg.com/@types/node/-/node-25.0.2.tgz#411f9dd6cb2bf5ee46aed7199a9f85ca6b068b4e"
1902+
integrity sha512-gWEkeiyYE4vqjON/+Obqcoeffmk0NF15WSBwSs7zwVA2bAbTaE0SJ7P0WNGoJn8uE7fiaV5a7dKYIJriEqOrmA==
19031903
dependencies:
19041904
undici-types "~7.16.0"
19051905

@@ -2289,9 +2289,9 @@ base64-js@^1.3.1:
22892289
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
22902290

22912291
baseline-browser-mapping@^2.9.0:
2292-
version "2.9.2"
2293-
resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.2.tgz#0ae89ec3e10e07c368b77def89db8044409461d1"
2294-
integrity sha512-PxSsosKQjI38iXkmb3d0Y32efqyA0uW4s41u4IVBsLlWLhCiYNpH/AfNOVWRqCQBlD8TFJTz6OUWNd4DFJCnmw==
2292+
version "2.9.7"
2293+
resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.7.tgz#d36ce64f2a2c468f6f743c8db495d319120007db"
2294+
integrity sha512-k9xFKplee6KIio3IDbwj+uaCLpqzOwakOgmqzPezM0sFJlFKcg30vk2wOiAJtkTSfx0SSQDSe8q+mWA/fSH5Zg==
22952295

22962296
binary-extensions@^2.0.0:
22972297
version "2.3.0"
@@ -2390,9 +2390,9 @@ camelcase-css@^2.0.1:
23902390
integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==
23912391

23922392
caniuse-lite@^1.0.30001297, caniuse-lite@^1.0.30001759:
2393-
version "1.0.30001759"
2394-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001759.tgz#d569e7b010372c6b0ca3946e30dada0a2e9d5006"
2395-
integrity sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw==
2393+
version "1.0.30001760"
2394+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001760.tgz#bdd1960fafedf8d5f04ff16e81460506ff9b798f"
2395+
integrity sha512-7AAMPcueWELt1p3mi13HR/LHH0TJLT11cnwDJEs3xA4+CK/PLKeO9Kl1oru24htkyUKtkGCvAx4ohB0Ttry8Dw==
23962396

23972397
chalk@^4.1.0:
23982398
version "4.1.2"
@@ -2668,9 +2668,9 @@ dompurify@3.2.6:
26682668
"@types/trusted-types" "^2.0.7"
26692669

26702670
dompurify@^3.2.6:
2671-
version "3.3.0"
2672-
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.3.0.tgz#aaaadbb83d87e1c2fbb066452416359e5b62ec97"
2673-
integrity sha512-r+f6MYR1gGN1eJv0TVQbhA7if/U7P87cdPl3HN5rikqaBSBxLiCb/b9O+2eG0cxz0ghyU+mU1QkbsOwERMYlWQ==
2671+
version "3.3.1"
2672+
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.3.1.tgz#c7e1ddebfe3301eacd6c0c12a4af284936dbbb86"
2673+
integrity sha512-qkdCKzLNtrgPFP1Vo+98FRzJnBRGe4ffyCea9IwHB1fyxPOeNTHpLKYGd4Uk9xvNoH0ZoOjwZxNptyMwqrId1Q==
26742674
optionalDependencies:
26752675
"@types/trusted-types" "^2.0.7"
26762676

@@ -2699,9 +2699,9 @@ ejs@^3.1.6:
26992699
jake "^10.8.5"
27002700

27012701
electron-to-chromium@^1.5.263:
2702-
version "1.5.266"
2703-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.266.tgz#41ed029b3cf641c4ee071de42954b36dca8f5f4e"
2704-
integrity sha512-kgWEglXvkEfMH7rxP5OSZZwnaDWT7J9EoZCujhnpLbfi0bbNtRkgdX2E3gt0Uer11c61qCYktB3hwkAS325sJg==
2702+
version "1.5.267"
2703+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz#5d84f2df8cdb6bfe7e873706bb21bd4bfb574dc7"
2704+
integrity sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==
27052705

27062706
engine.io-client@~6.5.2:
27072707
version "6.5.4"
@@ -2736,9 +2736,9 @@ entities@^4.4.0, entities@^4.5.0:
27362736
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
27372737

27382738
es-abstract@^1.23.5, es-abstract@^1.23.6, es-abstract@^1.23.9:
2739-
version "1.24.0"
2740-
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.24.0.tgz#c44732d2beb0acc1ed60df840869e3106e7af328"
2741-
integrity sha512-WSzPgsdLtTcQwm4CROfS5ju2Wa1QQcVeT37jFjYzdFz1r9ahadC8B8/a4qxJxM+09F18iumCdRmlr96ZYkQvEg==
2739+
version "1.24.1"
2740+
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.24.1.tgz#f0c131ed5ea1bb2411134a8dd94def09c46c7899"
2741+
integrity sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==
27422742
dependencies:
27432743
array-buffer-byte-length "^1.0.2"
27442744
arraybuffer.prototype.slice "^1.0.4"
@@ -4859,9 +4859,9 @@ supports-preserve-symlinks-flag@^1.0.0:
48594859
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
48604860

48614861
tailwindcss@^3.4.15:
4862-
version "3.4.18"
4863-
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.18.tgz#9fa9650aace186644b608242f1e57d2d55593301"
4864-
integrity sha512-6A2rnmW5xZMdw11LYjhcI5846rt9pbLSabY5XPxo+XWdxwZaFEn47Go4NzFiHu9sNNmr/kXivP1vStfvMaK1GQ==
4862+
version "3.4.19"
4863+
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.19.tgz#af2a0a4ae302d52ebe078b6775e799e132500ee2"
4864+
integrity sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==
48654865
dependencies:
48664866
"@alloc/quick-lru" "^5.2.0"
48674867
arg "^5.0.2"

lms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.42.0"
1+
__version__ = "2.43.0"

lms/lms/api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ def get_count_of_certified_members(filters=None):
319319
@frappe.whitelist(allow_guest=True)
320320
def get_certification_categories():
321321
categories = []
322+
seen = set()
322323
docs = frappe.get_all(
323324
"LMS Certificate",
324325
filters={
@@ -329,9 +330,11 @@ def get_certification_categories():
329330

330331
for doc in docs:
331332
category = doc.course_title if doc.course_title else doc.batch_title
332-
if category not in categories:
333-
categories.append(category)
333+
if not category or category in seen:
334+
continue
334335

336+
seen.add(category)
337+
categories.append({"label": category, "value": category})
335338
return categories
336339

337340

0 commit comments

Comments
 (0)