diff --git a/lms/job/doctype/job_opportunity/job_opportunity.json b/lms/job/doctype/job_opportunity/job_opportunity.json index 15bf16b3..fb412383 100644 --- a/lms/job/doctype/job_opportunity/job_opportunity.json +++ b/lms/job/doctype/job_opportunity/job_opportunity.json @@ -116,7 +116,7 @@ "index_web_pages_for_search": 1, "links": [], "make_attachments_public": 1, - "modified": "2023-09-29 17:03:30.825021", + "modified": "2024-02-01 23:14:17.444811", "modified_by": "Administrator", "module": "Job", "name": "Job Opportunity", @@ -137,15 +137,23 @@ "write": 1 }, { - "create": 1, "email": 1, "export": 1, - "if_owner": 1, "print": 1, "read": 1, "report": 1, "role": "LMS Student", "select": 1, + "share": 1 + }, + { + "create": 1, + "email": 1, + "export": 1, + "if_owner": 1, + "print": 1, + "report": 1, + "role": "LMS Student", "share": 1, "write": 1 } diff --git a/lms/lms/api.py b/lms/lms/api.py index ed0b6515..12c3d4ad 100644 --- a/lms/lms/api.py +++ b/lms/lms/api.py @@ -218,3 +218,24 @@ def validate_billing_access(type, name): ) return {"access": access, "message": message, "address": address} + + +@frappe.whitelist(allow_guest=True) +def get_job_details(job): + return frappe.db.get_value( + "Job Opportunity", + job, + ["job_title", "location", "type", "company_name", "company_logo", "name", "creation"], + as_dict=1, + ) + + +@frappe.whitelist(allow_guest=True) +def get_job_opportunities(): + jobs = frappe.get_all( + "Job Opportunity", + {"status": "Open", "disabled": False}, + ["job_title", "location", "type", "company_name", "company_logo", "name", "creation"], + order_by="creation desc", + ) + return jobs diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 0af3e8d7..f8b3cf0f 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -1726,14 +1726,3 @@ def get_order_summary(doctype, docname, country=None): details.total_amount_formatted = fmt_money(details.amount, 0, details.currency) return details - - -@frappe.whitelist(allow_guest=True) -def get_job_opportunities(): - jobs = frappe.get_all( - "Job Opportunity", - {"status": "Open", "disabled": False}, - ["job_title", "location", "type", "company_name", "company_logo", "name", "creation"], - order_by="creation desc", - ) - return jobs diff --git a/lms/public/frontend/assets/Batch--wtfybfQ.js.map b/lms/public/frontend/assets/Batch--wtfybfQ.js.map deleted file mode 100644 index f548fe2e..00000000 --- a/lms/public/frontend/assets/Batch--wtfybfQ.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Batch--wtfybfQ.js","sources":["../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/contact-2.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/info.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/laptop.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/layout-dashboard.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/mail.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/message-circle.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/monitor.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/send.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/trash-2.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/user-round-cog.js","../../../../frontend/node_modules/lucide-vue-next/dist/esm/icons/video.js","../../../../frontend/src/components/Modals/EvaluationModal.vue","../../../../frontend/src/components/UpcomingEvaluations.vue","../../../../frontend/src/components/Assessments.vue","../../../../frontend/src/components/Modals/LiveClassModal.vue","../../../../frontend/src/components/LiveClass.vue","../../../../frontend/src/components/Modals/StudentModal.vue","../../../../frontend/src/components/BatchStudents.vue","../../../../frontend/src/components/Annoucements.vue","../../../../frontend/src/components/Modals/AnnouncementModal.vue","../../../../frontend/src/pages/Batch.vue"],"sourcesContent":["/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Contact2 = createLucideIcon(\"Contact2Icon\", [\n [\"path\", { d: \"M16 18a4 4 0 0 0-8 0\", key: \"1lzouq\" }],\n [\"circle\", { cx: \"12\", cy: \"11\", r: \"3\", key: \"itu57m\" }],\n [\"rect\", { width: \"18\", height: \"18\", x: \"3\", y: \"4\", rx: \"2\", key: \"1hopcy\" }],\n [\"line\", { x1: \"8\", x2: \"8\", y1: \"2\", y2: \"4\", key: \"1ff9gb\" }],\n [\"line\", { x1: \"16\", x2: \"16\", y1: \"2\", y2: \"4\", key: \"1ufoma\" }]\n]);\n\nexport { Contact2 as default };\n//# sourceMappingURL=contact-2.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Info = createLucideIcon(\"InfoIcon\", [\n [\"circle\", { cx: \"12\", cy: \"12\", r: \"10\", key: \"1mglay\" }],\n [\"path\", { d: \"M12 16v-4\", key: \"1dtifu\" }],\n [\"path\", { d: \"M12 8h.01\", key: \"e9boi3\" }]\n]);\n\nexport { Info as default };\n//# sourceMappingURL=info.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Laptop = createLucideIcon(\"LaptopIcon\", [\n [\n \"path\",\n {\n d: \"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16\",\n key: \"tarvll\"\n }\n ]\n]);\n\nexport { Laptop as default };\n//# sourceMappingURL=laptop.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst LayoutDashboard = createLucideIcon(\"LayoutDashboardIcon\", [\n [\"rect\", { width: \"7\", height: \"9\", x: \"3\", y: \"3\", rx: \"1\", key: \"10lvy0\" }],\n [\"rect\", { width: \"7\", height: \"5\", x: \"14\", y: \"3\", rx: \"1\", key: \"16une8\" }],\n [\"rect\", { width: \"7\", height: \"9\", x: \"14\", y: \"12\", rx: \"1\", key: \"1hutg5\" }],\n [\"rect\", { width: \"7\", height: \"5\", x: \"3\", y: \"16\", rx: \"1\", key: \"ldoo1y\" }]\n]);\n\nexport { LayoutDashboard as default };\n//# sourceMappingURL=layout-dashboard.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Mail = createLucideIcon(\"MailIcon\", [\n [\"rect\", { width: \"20\", height: \"16\", x: \"2\", y: \"4\", rx: \"2\", key: \"18n3k1\" }],\n [\"path\", { d: \"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\", key: \"1ocrg3\" }]\n]);\n\nexport { Mail as default };\n//# sourceMappingURL=mail.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst MessageCircle = createLucideIcon(\"MessageCircleIcon\", [\n [\"path\", { d: \"M7.9 20A9 9 0 1 0 4 16.1L2 22Z\", key: \"vv11sd\" }]\n]);\n\nexport { MessageCircle as default };\n//# sourceMappingURL=message-circle.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Monitor = createLucideIcon(\"MonitorIcon\", [\n [\"rect\", { width: \"20\", height: \"14\", x: \"2\", y: \"3\", rx: \"2\", key: \"48i651\" }],\n [\"line\", { x1: \"8\", x2: \"16\", y1: \"21\", y2: \"21\", key: \"1svkeh\" }],\n [\"line\", { x1: \"12\", x2: \"12\", y1: \"17\", y2: \"21\", key: \"vw1qmm\" }]\n]);\n\nexport { Monitor as default };\n//# sourceMappingURL=monitor.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Send = createLucideIcon(\"SendIcon\", [\n [\"path\", { d: \"m22 2-7 20-4-9-9-4Z\", key: \"1q3vgg\" }],\n [\"path\", { d: \"M22 2 11 13\", key: \"nzbqef\" }]\n]);\n\nexport { Send as default };\n//# sourceMappingURL=send.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Trash2 = createLucideIcon(\"Trash2Icon\", [\n [\"path\", { d: \"M3 6h18\", key: \"d0wm0j\" }],\n [\"path\", { d: \"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6\", key: \"4alrt4\" }],\n [\"path\", { d: \"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2\", key: \"v07s0e\" }],\n [\"line\", { x1: \"10\", x2: \"10\", y1: \"11\", y2: \"17\", key: \"1uufr5\" }],\n [\"line\", { x1: \"14\", x2: \"14\", y1: \"11\", y2: \"17\", key: \"xtxkd\" }]\n]);\n\nexport { Trash2 as default };\n//# sourceMappingURL=trash-2.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst UserRoundCog = createLucideIcon(\"UserRoundCogIcon\", [\n [\"path\", { d: \"M2 21a8 8 0 0 1 10.434-7.62\", key: \"1yezr2\" }],\n [\"circle\", { cx: \"10\", cy: \"8\", r: \"5\", key: \"o932ke\" }],\n [\"circle\", { cx: \"18\", cy: \"18\", r: \"3\", key: \"1xkwt0\" }],\n [\"path\", { d: \"m19.5 14.3-.4.9\", key: \"1eb35c\" }],\n [\"path\", { d: \"m16.9 20.8-.4.9\", key: \"dfjc4z\" }],\n [\"path\", { d: \"m21.7 19.5-.9-.4\", key: \"q4dx6b\" }],\n [\"path\", { d: \"m15.2 16.9-.9-.4\", key: \"1r0w5f\" }],\n [\"path\", { d: \"m21.7 16.5-.9.4\", key: \"1knoei\" }],\n [\"path\", { d: \"m15.2 19.1-.9.4\", key: \"j188fs\" }],\n [\"path\", { d: \"m19.5 21.7-.4-.9\", key: \"1tonu5\" }],\n [\"path\", { d: \"m16.9 15.2-.4-.9\", key: \"699xu\" }]\n]);\n\nexport { UserRoundCog as default };\n//# sourceMappingURL=user-round-cog.js.map\n","/**\n * @license lucide-vue-next v0.309.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst Video = createLucideIcon(\"VideoIcon\", [\n [\"path\", { d: \"m22 8-6 4 6 4V8Z\", key: \"50v9me\" }],\n [\"rect\", { width: \"14\", height: \"12\", x: \"2\", y: \"6\", rx: \"2\", ry: \"2\", key: \"1rqjg6\" }]\n]);\n\nexport { Video as default };\n//# sourceMappingURL=video.js.map\n","\n\n","\n\n","\n\n","