feat: notification sent checkbox to prevent resending the notification

This commit is contained in:
Jannat Patel
2026-01-13 19:06:30 +05:30
parent 8ad5288226
commit a09599ec8a
14 changed files with 437 additions and 526 deletions

View File

@@ -6,5 +6,7 @@
// biome-ignore lint: disable
export {}
declare global {
const LucideGithub: typeof import('~icons/lucide/github').default
const LucideLinkedin: typeof import('~icons/lucide/linkedin').default
const LucideTwitter: typeof import('~icons/lucide/twitter').default
}

View File

@@ -8,7 +8,7 @@
"serve": "vite preview",
"build": "vite build --base=/assets/lms/frontend/ && yarn copy-html-entry && yarn copy-colors-json",
"copy-html-entry": "cp ../lms/public/frontend/index.html ../lms/www/lms.html",
"copy-colors-json": "cp node_modules/frappe-ui/src/tailwind/colors.json src/utils/frappe-ui-colors.json"
"copy-colors-json": "cp node_modules/frappe-ui/tailwind/colors.json src/utils/frappe-ui-colors.json"
},
"dependencies": {
"@codemirror/lang-html": "6.4.9",
@@ -34,7 +34,7 @@
"dayjs": "1.11.10",
"dompurify": "3.2.6",
"feather-icons": "4.28.0",
"frappe-ui": "0.1.227",
"frappe-ui": "^0.1.254",
"highlight.js": "11.11.1",
"lucide-vue-next": "0.383.0",
"markdown-it": "14.0.0",
@@ -59,8 +59,5 @@
"unplugin-auto-import": "^20.3.0",
"vite": "5.0.11",
"vite-plugin-pwa": "0.15.0"
},
"resolutions": {
"@iconify/utils": "2.1.7"
}
}

View File

@@ -25,7 +25,7 @@
></div>
</div>
<div class="flex flex-col">
<div class="flex flex-col overflow-y-auto">
<div class="p-5">
<div class="flex items-center justify-between mb-4">
<div class="font-semibold text-ink-gray-9">

View File

@@ -442,7 +442,6 @@ const formatTime = (timeStr) => {
const editBatch = createResource({
url: 'frappe.client.set_value',
makeParams(values) {
console.log(batch.meta_image, batch.video_link)
return {
doctype: 'LMS Batch',
name: props.batchName,

View File

@@ -230,26 +230,32 @@ const handleMarkAsRead = (logName) => {
const navigateToPage = (log) => {
if (!log.link) return
/* handleMarkAsRead(log.name) */
let link = log.link.split('/')
console.log(link)
if (link[2] == 'courses') {
router.push({
name: 'CourseDetail',
params: { courseName: link[3] },
})
} else if (link[2] == 'batches') {
if (link[3] == 'details') {
} else if (link.includes('batches')) {
if (link.includes('details')) {
router.push({
name: 'BatchDetail',
params: { batchName: link[4] },
params: { batchName: link.pop() },
})
} else {
router.push({
name: 'Batch',
params: { batchName: link[3] },
params: { batchName: link.pop() },
})
}
} else if (link.includes('assignment-submission')) {
router.push({
name: 'AssignmentSubmission',
params: {
submissionName: link[4],
assignmentID: link[3],
},
})
}
}
@@ -260,6 +266,9 @@ const isMention = (log) => {
if (log.subject.includes('mentioned you')) {
return true
}
if (log.subject.includes('comment')) {
return true
}
return false
}

View File

@@ -628,7 +628,6 @@ export const validateFile = async (
console.error(msg)
return msg
}
console.log(file.type, fileType)
if (!file.type.startsWith(`${fileType}/`)) {
return error(__(`Only ${fileType} file is allowed.`))
}

View File

@@ -30,7 +30,7 @@ export default defineConfig(async ({ mode }) => {
cleanupOutdatedCaches: true,
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
globDirectory: '/assets/lms/frontend',
globPatterns: ['**/*.{js,ts,css,html,png,svg}'],
globPatterns: ['**/*.{js,ts,css,html,svg}'],
runtimeCaching: [
{
urlPattern: ({ request }) =>

File diff suppressed because it is too large Load Diff