diff --git a/package-lock.json b/package-lock.json index a4b1733c..4d147f5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,11 +15,17 @@ "@fullcalendar/react": "^6.0.1", "@fullcalendar/timegrid": "^6.0.2", "@fullcalendar/vue3": "^6.0.1", + "@peaceroad/markdown-it-figure-with-p-caption": "^0.6.1", "@quasar/extras": "^1.15.8", "@tato30/vue-pdf": "^1.5.1", + "@types/markdown-it": "^14.1.1", + "@types/markdown-it-anchor": "^7.0.0", "@vuepic/vue-datepicker": "^3.6.3", "bma-org-chart": "^0.0.8", "keycloak-js": "^20.0.2", + "markdown-it": "^14.1.0", + "markdown-it-anchor": "^9.0.1", + "markdown-it-image-figures": "^2.1.1", "moment": "^2.29.4", "pinia": "^2.0.29", "quasar": "^2.11.1", @@ -1281,6 +1287,14 @@ "integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==", "dev": true }, + "node_modules/@peaceroad/markdown-it-figure-with-p-caption": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@peaceroad/markdown-it-figure-with-p-caption/-/markdown-it-figure-with-p-caption-0.6.1.tgz", + "integrity": "sha512-+3FKDFOSJMC4L2DGaU7up9+oMSxQcojD/3OL5hv7ixu4VGqwhzfiXJCeKpgYZz4uOnfd/eMcCcsngHRf//TWig==", + "dependencies": { + "p7d-markdown-it-p-captions": "^0.13.0" + } + }, "node_modules/@quasar/extras": { "version": "1.16.5", "resolved": "https://registry.npmjs.org/@quasar/extras/-/extras-1.16.5.tgz", @@ -1388,6 +1402,34 @@ "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", "dev": true }, + "node_modules/@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==" + }, + "node_modules/@types/markdown-it": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.1.tgz", + "integrity": "sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==", + "dependencies": { + "@types/linkify-it": "^5", + "@types/mdurl": "^2" + } + }, + "node_modules/@types/markdown-it-anchor": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@types/markdown-it-anchor/-/markdown-it-anchor-7.0.0.tgz", + "integrity": "sha512-kFehISVfgSePSp6JWGWrcgKIPoPpAsZAqTLUt0Wq9+MNiGdnWdXQy8UerwhmD2afmjux1TWf8XCmlpL2/6ax/A==", + "deprecated": "This is a stub types definition. markdown-it-anchor provides its own type definitions, so you do not need this installed.", + "dependencies": { + "markdown-it-anchor": "*" + } + }, + "node_modules/@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==" + }, "node_modules/@types/node": { "version": "18.17.9", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.9.tgz", @@ -2263,8 +2305,7 @@ "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/array-buffer-byte-length": { "version": "1.0.0", @@ -3580,7 +3621,6 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, "engines": { "node": ">=0.12" }, @@ -5731,6 +5771,14 @@ "node": ">= 0.8.0" } }, + "node_modules/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "dependencies": { + "uc.micro": "^2.0.0" + } + }, "node_modules/listr2": { "version": "3.14.0", "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz", @@ -6057,6 +6105,47 @@ "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==", "dev": true }, + "node_modules/markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/markdown-it-anchor": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-9.0.1.tgz", + "integrity": "sha512-cBt7aAzmkfX8X7FqAe8EBryiKmToXgMQEEMqkXzWCm0toDtfDYIGboKeTKd8cpNJArJtutrf+977wFJTsvNGmQ==", + "peerDependencies": { + "@types/markdown-it": "*", + "markdown-it": "*" + } + }, + "node_modules/markdown-it-image-figures": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/markdown-it-image-figures/-/markdown-it-image-figures-2.1.1.tgz", + "integrity": "sha512-mwXSQ2nPeVUzCMIE3HlLvjRioopiqyJLNph0pyx38yf9mpqFDhNGnMpAXF9/A2Xv0oiF2cVyg9xwfF0HNAz05g==", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "markdown-it": "*" + } + }, + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==" + }, "node_modules/memorystream": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", @@ -6639,6 +6728,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p7d-markdown-it-p-captions": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/p7d-markdown-it-p-captions/-/p7d-markdown-it-p-captions-0.13.0.tgz", + "integrity": "sha512-7Bv2IOr1XRaOSFkcnGCcIDjFtOE4K47FLsIrclLk0jymmXQhESJwellU5VTPVUXNx1304RFQa6ij6mnfdxBxfQ==" + }, "node_modules/panzoom": { "version": "9.4.3", "resolved": "https://registry.npmjs.org/panzoom/-/panzoom-9.4.3.tgz", @@ -7025,6 +7119,14 @@ "node": ">=6" } }, + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "engines": { + "node": ">=6" + } + }, "node_modules/qs": { "version": "6.10.4", "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.4.tgz", @@ -8273,6 +8375,11 @@ "node": ">=4.2.0" } }, + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==" + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -9818,6 +9925,14 @@ "integrity": "sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==", "dev": true }, + "@peaceroad/markdown-it-figure-with-p-caption": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@peaceroad/markdown-it-figure-with-p-caption/-/markdown-it-figure-with-p-caption-0.6.1.tgz", + "integrity": "sha512-+3FKDFOSJMC4L2DGaU7up9+oMSxQcojD/3OL5hv7ixu4VGqwhzfiXJCeKpgYZz4uOnfd/eMcCcsngHRf//TWig==", + "requires": { + "p7d-markdown-it-p-captions": "^0.13.0" + } + }, "@quasar/extras": { "version": "1.16.5", "resolved": "https://registry.npmjs.org/@quasar/extras/-/extras-1.16.5.tgz", @@ -9903,6 +10018,33 @@ "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", "dev": true }, + "@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==" + }, + "@types/markdown-it": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.1.tgz", + "integrity": "sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==", + "requires": { + "@types/linkify-it": "^5", + "@types/mdurl": "^2" + } + }, + "@types/markdown-it-anchor": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@types/markdown-it-anchor/-/markdown-it-anchor-7.0.0.tgz", + "integrity": "sha512-kFehISVfgSePSp6JWGWrcgKIPoPpAsZAqTLUt0Wq9+MNiGdnWdXQy8UerwhmD2afmjux1TWf8XCmlpL2/6ax/A==", + "requires": { + "markdown-it-anchor": "*" + } + }, + "@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==" + }, "@types/node": { "version": "18.17.9", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.9.tgz", @@ -10542,8 +10684,7 @@ "argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "array-buffer-byte-length": { "version": "1.0.0", @@ -11525,8 +11666,7 @@ "entities": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==" }, "error-ex": { "version": "1.3.2", @@ -13102,6 +13242,14 @@ "type-check": "~0.4.0" } }, + "linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "requires": { + "uc.micro": "^2.0.0" + } + }, "listr2": { "version": "3.14.0", "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz", @@ -13342,6 +13490,36 @@ "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==", "dev": true }, + "markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "requires": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + } + }, + "markdown-it-anchor": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-9.0.1.tgz", + "integrity": "sha512-cBt7aAzmkfX8X7FqAe8EBryiKmToXgMQEEMqkXzWCm0toDtfDYIGboKeTKd8cpNJArJtutrf+977wFJTsvNGmQ==", + "requires": {} + }, + "markdown-it-image-figures": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/markdown-it-image-figures/-/markdown-it-image-figures-2.1.1.tgz", + "integrity": "sha512-mwXSQ2nPeVUzCMIE3HlLvjRioopiqyJLNph0pyx38yf9mpqFDhNGnMpAXF9/A2Xv0oiF2cVyg9xwfF0HNAz05g==", + "requires": {} + }, + "mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==" + }, "memorystream": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", @@ -13775,6 +13953,11 @@ "aggregate-error": "^3.0.0" } }, + "p7d-markdown-it-p-captions": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/p7d-markdown-it-p-captions/-/p7d-markdown-it-p-captions-0.13.0.tgz", + "integrity": "sha512-7Bv2IOr1XRaOSFkcnGCcIDjFtOE4K47FLsIrclLk0jymmXQhESJwellU5VTPVUXNx1304RFQa6ij6mnfdxBxfQ==" + }, "panzoom": { "version": "9.4.3", "resolved": "https://registry.npmjs.org/panzoom/-/panzoom-9.4.3.tgz", @@ -14026,6 +14209,11 @@ "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "dev": true }, + "punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==" + }, "qs": { "version": "6.10.4", "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.4.tgz", @@ -14937,6 +15125,11 @@ "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", "devOptional": true }, + "uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==" + }, "unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", diff --git a/package.json b/package.json index 96bfba59..0a536ceb 100644 --- a/package.json +++ b/package.json @@ -21,11 +21,17 @@ "@fullcalendar/react": "^6.0.1", "@fullcalendar/timegrid": "^6.0.2", "@fullcalendar/vue3": "^6.0.1", + "@peaceroad/markdown-it-figure-with-p-caption": "^0.6.1", "@quasar/extras": "^1.15.8", "@tato30/vue-pdf": "^1.5.1", + "@types/markdown-it": "^14.1.1", + "@types/markdown-it-anchor": "^7.0.0", "@vuepic/vue-datepicker": "^3.6.3", "bma-org-chart": "^0.0.8", "keycloak-js": "^20.0.2", + "markdown-it": "^14.1.0", + "markdown-it-anchor": "^9.0.1", + "markdown-it-image-figures": "^2.1.1", "moment": "^2.29.4", "pinia": "^2.0.29", "quasar": "^2.11.1", diff --git a/public/chapter-1-admin-login.md b/public/chapter-1-admin-login.md new file mode 100644 index 00000000..06f0a8d8 --- /dev/null +++ b/public/chapter-1-admin-login.md @@ -0,0 +1,64 @@ +# การเข้าสู่ระบบบริหารทรัพยากรบุคคลของกรุงเทพมหานคร + + +- เปิดโปรแกรม Google Chrome เวอร์ชั่น 20 ขึ้นไป หรือ Firefox เวอร์ชั่น 14 ขึ้นไป กรอก URL: [https://bma-ehr.frappet.com](https://bma-ehr.frappet.com) ลงในช่อง Address จากนั้นกดแป้น Enter ที่คีย์บอร์ด 1 ครั้ง + +![รูปภาพที่ 1–1 แสดงการเข้าสู่เว็บไซต์](images/chapter1/chapter1_1.png) + + +## การเข้าสู่ระบบโดยใช้ User name และ Password + + +![รูปภาพที่ 1–2 ตารางรายชื่อลูกจ้างชั่วคราว](images/chapter1/chapter1_2.png) + +> หมายเลข 1 ช่องสำหรับกรอกชื่อผู้ใช้งาน +> หมายเลข 2 ช่องสำหรับกรอกรหัสผ่านใช้งาน +> หมายเลข 3 ปุ่มสำหรับคลิกเข้าสู่ระบบใช้งาน +> หมายเลข 4 ช่องสำหรับคลิก หากต้องการให้ระบบจดจำการเข้าสู่ระบบ +> หมายเลข 5ช่องสำหรับคลิกหากลืมรหัสผ่านเพื่อให้ทำระบบทำการรีเซ็ตรหัสผ่านใหม่ +> หมายเลข 6 ช่องสำหรับคลิกเพื่อลงทะเบียนผู้ใช้งานใหม่ + + + +## ddd + +- สามารถกดเลือกไอคอน ![close](images/button/close-grey.png) ในช่อง “ชื่อ-นามสกุล” เพื่อลบข้อมูลเก่าออก และทำการกรอกข้อมูลใหม่ลงไป + +![รูปภาพที่ 1–3 ตารางรายชื่อลูกจ้างชั่วคราว](images/chapter1/chapter1_2.png) + + +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล + +## d2 + +- สามารถกดเลือกไอคอน ![close](images/button/close-grey.png) ในช่อง “ชื่อ-นามสกุล” เพื่อลบข้อมูลเก่าออก และทำการกรอกข้อมูลใหม่ลงไป + +![รูปภาพที่ 1–3 ตารางรายชื่อลูกจ้างชั่วคราว](images/chapter1/chapter1_2.png) + + +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล + +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล + + + diff --git a/public/chapter-2-admin-metadata.md b/public/chapter-2-admin-metadata.md new file mode 100644 index 00000000..aec00a26 --- /dev/null +++ b/public/chapter-2-admin-metadata.md @@ -0,0 +1,31 @@ +# การเข้าสู่ระบบบริหารทรัพยากรบุคคลของกรุงเทพมหานคร + + +- เปิดโปรแกรม Google Chrome เวอร์ชั่น 20 ขึ้นไป หรือ Firefox เวอร์ชั่น 14 ขึ้นไป กรอก URL: [https://bma-ehr.frappet.com](https://bma-ehr.frappet.com) ลงในช่อง Address จากนั้นกดแป้น Enter ที่คีย์บอร์ด 1 ครั้ง + +![รูปภาพที่ 2–1 แสดงการเข้าสู่เว็บไซต์](images/chapter1/chapter1_1.png#center) + + +## การเข้าสู่ระบบโดยใช้ User name และ Password + + +![รูปภาพที่ 2–2 ตารางรายชื่อลูกจ้างชั่วคราว](images/chapter1/chapter1_2.png#center) + +> หมายเลข 1 ช่องสำหรับกรอกชื่อผู้ใช้งาน +> หมายเลข 2 ช่องสำหรับกรอกรหัสผ่านใช้งาน +> หมายเลข 3 ปุ่มสำหรับคลิกเข้าสู่ระบบใช้งาน +> หมายเลข 4 ช่องสำหรับคลิก หากต้องการให้ระบบจดจำการเข้าสู่ระบบ +> หมายเลข 5ช่องสำหรับคลิกหากลืมรหัสผ่านเพื่อให้ทำระบบทำการรีเซ็ตรหัสผ่านใหม่ +> หมายเลข 6 ช่องสำหรับคลิกเพื่อลงทะเบียนผู้ใช้งานใหม่ + + + +## ddd + +- สามารถกดเลือกไอคอน ![close](images/button/close-grey.png) ในช่อง “ชื่อ-นามสกุล” เพื่อลบข้อมูลเก่าออก และทำการกรอกข้อมูลใหม่ลงไป + +![รูปภาพที่ 2–3 ตารางรายชื่อลูกจ้างชั่วคราว](images/chapter1/chapter1_2.png#center) + + +> หมายเลข 1 ช่องสำหรับกรอกชื่อ-นามสกุลที่ต้องการค้นหา +> หมายเลข 2 ช่องสำหรับแสดงผลการค้นหาโดยการกรอกชื่อ-นามสกุล \ No newline at end of file diff --git a/public/images/button/close-grey.png b/public/images/button/close-grey.png new file mode 100644 index 00000000..a61769b6 Binary files /dev/null and b/public/images/button/close-grey.png differ diff --git a/public/images/chapter1/chapter1_1.png b/public/images/chapter1/chapter1_1.png new file mode 100644 index 00000000..a1238bc2 Binary files /dev/null and b/public/images/chapter1/chapter1_1.png differ diff --git a/public/images/chapter1/chapter1_2.png b/public/images/chapter1/chapter1_2.png new file mode 100644 index 00000000..1bd41eaf Binary files /dev/null and b/public/images/chapter1/chapter1_2.png differ diff --git a/public/images/chapter1/chapter1_3.png b/public/images/chapter1/chapter1_3.png new file mode 100644 index 00000000..c46fbeff Binary files /dev/null and b/public/images/chapter1/chapter1_3.png differ diff --git a/public/images/chapter2/chapter2_1.png b/public/images/chapter2/chapter2_1.png new file mode 100644 index 00000000..56fa9420 Binary files /dev/null and b/public/images/chapter2/chapter2_1.png differ diff --git a/public/images/chapter2/chapter2_2.png b/public/images/chapter2/chapter2_2.png new file mode 100644 index 00000000..1fd50b98 Binary files /dev/null and b/public/images/chapter2/chapter2_2.png differ diff --git a/public/out.docx b/public/out.docx new file mode 100644 index 00000000..c98cc7d8 Binary files /dev/null and b/public/out.docx differ diff --git a/public/ref.docx b/public/ref.docx new file mode 100644 index 00000000..bfb62abf Binary files /dev/null and b/public/ref.docx differ diff --git a/public/toc.json b/public/toc.json new file mode 100644 index 00000000..05feb870 --- /dev/null +++ b/public/toc.json @@ -0,0 +1,10 @@ +[ + { + "label": "ระบบข้อมูลหลัก", + "path": "/manual/chapter-1-admin-login" + }, + { + "label": "การเข้าสู่ระบบ", + "path": "/manual/chapter-2-admin-metadata" + } +] diff --git a/src/components/__tests__/HelloWorld.spec.ts b/src/components/__tests__/HelloWorld.spec.ts deleted file mode 100644 index ccc7c3b7..00000000 --- a/src/components/__tests__/HelloWorld.spec.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { describe, it, expect } from "vitest"; - -import { mount } from "@vue/test-utils"; -// import HelloWorld from '../HelloWorld.vue' - -describe("HelloWorld", () => { - it("renders properly", () => { - // const wrapper = mount(HelloWorld, { props: { msg: 'Hello Vitest' } }) - // expect(wrapper.text()).toContain('Hello Vitest') - }); -}); diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 7ba5d4e8..6061c4b8 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -1,524 +1,19 @@ -import { readonly } from "vue" -interface ScrollType { - position: number - direction: string - directionChanged: boolean - inflectionPoint: number - delta: number -} +import { ref } from "vue"; -interface tabType { - key: number - label: string - tag: string -} -interface childrenType { - key: number - label: string - path?: string -} - -interface menuType { - key: number - icon: string - activeIcon: string - label: string - path: string - children?: childrenType[] -} - -interface notiType { - id: string - sender: string - body: string - timereceive: Date -} - -interface optionType { - icon: string - label: string - value: string - color: string -} - -const menuList = readonly([ - { - key: 1, - icon: "mdi-home-variant-outline", - activeIcon: "mdi-home-variant", - label: "หน้าแรก", - path: "dashboard", - role: "dashboard", - }, - { - key: 2, - icon: "mdi-file-outline", - activeIcon: "document", - label: "คู่มือการใช้งาน", - path: "", - role: "metadata", - children: [ - { - key: 2.1, - label: "การเข้าสู่ระบบ", - path: "/login", - }, - { - key: 2.2, - label: "ระบบข้อมูลหลัก", - path: "/datamain", - }, - { - key: 2.3, - label: "ระบบโครงสร้างอัตรากำลัง", - path: "/structuremain", - }, - { - key: 2.4, - label: "ระบบทะเบียนประวัติ", - path: "/registrationmain", - }, - { - key: 2.5, - label: "ระบบการสรรหาบุคคล", - path: "/recruitmain", - }, - { - key: 2.6, - label: "ระบบทะเบียนประวัติลูกจ้าง", - path: "/Employeehistorymain", - }, - { - key: 2.7, - label: "ระบบออกคำสั่ง", - path: "commandsmain", - }, - - ], - }, -]) -const tabListLogin = readonly([ - { - no: 1, - label: "การเข้าสู่หน้าระบบ", - tag: "Mainlogin", - }, - { - no: 2, - label: "การเข้าสู่ระบบโดยใช้ User name และ Password", - tag: "login", - }, - { - no: 3, - label: "การเปลี่ยนรหัสผ่านผู้ใช้งาน", - tag: "Password", - }, - { - no: 4, - label: "การลงทะเบียนผู้ใช้งานใหม่", - tag: "newuser", - }, - { - no: 5, - label: "การออกจากระบบ", - tag: "logout", - }, - { - no: 6, - label: "การแสดงแจ้งเตือน", - tag: "noti", - }, -]) -const tabListDatamain = readonly([ - { - no: 1, - label: "การเข้าสู่ระบบข้อมูลหลัก", - tag: "MainData", - }, - { - no: 2, - label: "ข้อมูลเกี่ยวกับบุคคล", - tag: "About", - }, - { - no: 3, - label: "ข้อมูลโครงสร้างหน่วยงาน", - tag: "gov", - }, - { - no: 4, - label: "ข้อมูลตำแหน่งของข้าราชการ", - tag: "officer", - }, - { - no: 5, - label: "ข้อมูลตำแหน่งของลูกจ้าง", - tag: "employee", - }, - { - no: 6, - label: "ข้อมูลปฏิทินวันหยุด", - tag: "calender", - }, - { - no: 7, - label: "ข้อมูลเครื่องราชอิสริยาภรณ์", - tag: "insignia", - }, -]) -const tabStructuremain = readonly([ - { - no: 1, - label: "การเข้าสู่ระบบโครงสร้างอัตรากำลัง", - tag: "structuremain", - }, - { - no: 2, - label: "จัดการตำแหน่ง", - tag: "position", - }, - { - no: 3, - label: "แผนภูมิโครงสร้าง", - tag: "structure", - }, - { - no: 4, - label: "แผนภูมิองค์กร", - tag: "organchart", - }, - { - no: 5, - label: "ผังโครงสร้าง", - tag: "chartstru", - }, - { - no: 6, - label: "จัดการบัญชี 2", - tag: "account2", - }, - { - no: 7, - label: "รายงานบัญชี", - tag: "report", - }, - { - no: 8, - label: "ผังโครงสร้างลูกจ้าง", - tag: "chartemploy", - }, -]) -const tabRegistration = readonly([ - { - no: 1, - label: "การเข้าสู่หน้าระบบทะเบียนประวัติ", - tag: "registrationmain", - }, - { - no: 2, - label: "การค้นหาข้อมูลทะเบียนประวัติ", - tag: "registrationFind", - }, - { - no: 3, - label: "การดูรายละเอียดข้อมูลทะเบียน", - tag: "registrationDetail", - }, - { - no: 4, - label: "การเพิ่ม แก้ไข ดูประวัติแก้ไขข้อมูล", - tag: "registrationEdit", - }, - { - no: 5, - label: "การค้นหาข้อมูลส่วนตัว การเลือกคอลัมน์แสดงผลข้อมูล", - tag: "registrationSelect", - }, - { - no: 6, - label: "การปรับหน้าต่างแสดงผลหน้าข้อมูลส่วนตัว", - tag: "registrationWindow", - }, -]) -const tabRecruit = readonly([ - { - no: 1, - label: "การเข้าสู่หน้าระบบสรรหา", - tag: "recruitmain", - }, - { - no: 2, - label: "การตั้งค่าเว็บไซต์ระบบสรรหา", - tag: "recruitSetting", - }, - { - no: 3, - label: "สอบแข่งขัน", - tag: "recruitManagemain", - childern: [ - { - no: 3.1, - label: "จัดการรอบสอบการแข่งขัน", - tag: "recruitManage", - }, - { - no: 3.2, - label: "สถิติสมัครสอบแข่งขัน", - tag: "recruitstati", - }, - ], - }, - { - no: 4, - label: "คัดเลือก", - tag: "recruitQualifiersmain", - childern: [ - { - no: 4.1, - label: "จัดการรอบคัดเลือก", - tag: "recruitQualifiers", - }, - { - no: 4.2, - label: "จัดการรอบคัดเลือกคนพิการ", - tag: "recruitDisabilities", - }, - { - no: 4.3, - label: "จัดการรายชื่อคัดเลือก", - tag: "recruitSelection", - }, - ], - }, -]) - -const tabList = readonly([ - { - no: 1, - label: "การเข้าสู่ระบบ", - path: "/manual", - childern: [ - { - no: 1.1, - label: "การเข้าสู่หน้าระบบ", - path: "/manual", - }, - { - no: 1.2, - label: "การเข้าสู่ระบบโดยใช้ User name และ Password", - path: "/login/log", - }, - { - no: 1.3, - label: "การเปลี่ยนรหัสผ่านผู้ใช้งาน", - path: "/login/password", - }, - { - no: 1.4, - label: "การลงทะเบียนผู้ใช้งานใหม่", - path: "/login/newuser", - }, - { - no: 1.5, - label: "การออกจากระบบ", - path: "/login/logout", - }, - { - no: 1.6, - label: "การแสดงแจ้งเตือน", - path: "/login/noti", - }, - ], - }, - - { - no: 2, - label: "ระบบข้อมูลหลัก", - path: "/Datamain", - childern: [ - { - no: 2.1, - label: "การเข้าสู่ระบบข้อมูลหลัก", - path: "/Datamain", - }, - { - no: 2.2, - label: "ข้อมูลเกี่ยวกับบุคคล", - path: "/Data/about", - }, - { - no: 2.3, - label: "ข้อมูลโครงสร้างหน่วยงาน", - path: "/Data/gov", - }, - { - no: 2.4, - label: "ข้อมูลตำแหน่งของข้าราชการ", - path: "/Data/officer", - }, - { - no: 2.5, - label: "ข้อมูลตำแหน่งของลูกจ้าง", - path: "/Data/employee", - }, - { - no: 2.6, - label: "ข้อมูลปฏิทินวันหยุด", - path: "/Data/calendar", - }, - { - no: 2.7, - label: "ข้อมูลเครื่องราชอิสริยาภรณ์", - path: "/Data/insignia", - }, - ], - }, - - { - no: 3, - label: "ระบบโครงสร้างอัตรากำลัง", - path: "/Structuremain", - childern: [ - { - no: 3.1, - label: "การเข้าสู่ระบบโครงสร้างอัตรากำลัง", - path: "/Structuremain", - }, - { - no: 3.2, - label: "จัดการตำแหน่ง", - path: "/Structure/Position", - }, - { - no: 3.3, - label: "แผนภูมิโครงสร้าง", - path: "/Structure/Structure", - }, - { - no: 3.4, - label: "แผนภูมิองค์กร", - path: "/Structure/Organchart", - }, - { - no: 3.5, - label: "ผังโครงสร้าง", - path: "/Structure/Chartstru", - }, - { - no: 3.6, - label: "จัดการบัญชี 2", - path: "/Structure/Account2", - }, - { - no: 3.7, - label: "รายงานบัญชี", - path: "/Structure/Report", - }, - { - no: 3.8, - label: "ผังโครงสร้างลูกจ้าง", - path: "/Structure/Chartemploy", - }, - ], - }, - - { - no: 4, - label: "ระบบทะเบียนประวัติ", - path: "/Registrationmain", - childern: [ - { - no: 4.1, - label: "การเข้าสู่หน้าระบบทะเบียนประวัติ", - path: "/Registrationmain", - }, - { - no: 4.2, - label: "การค้นหาข้อมูลทะเบียนประวัติ", - path: "/Registration/find", - }, - { - no: 4.3, - label: "การดูรายละเอียดข้อมูลทะเบียน", - path: "/Registration/detail", - }, - { - no: 4.4, - label: "การเพิ่ม แก้ไข ดูประวัติแก้ไขข้อมูล", - path: "/Registration/edit", - }, - { - no: 4.5, - label: "การค้นหาข้อมูลส่วนตัว การเลือกคอลัมน์แสดงผลข้อมูล", - path: "/Registration/select", - }, - { - no: 4.6, - label: "การปรับหน้าต่างแสดงผลหน้าข้อมูลส่วนตัว", - path: "/Registration/window", - }, - ], - }, - - { - no: 5, - label: "ระบบการสรรหาบุคคล", - path: "/Recruitmain", - childern: [ - { - no: 5.1, - label: "การเข้าสู่หน้าระบบสรรหา", - path: "/Recruitmain", - }, - { - no: 5.2, - label: "การตั้งค่าเว็บไซต์ระบบสรรหา", - path: "/Recruit/setting", - }, - { - no: 5.3, - label: "สอบแข่งขัน", - path: "", - childern: [ - { - no: 5.31, - label: "จัดการรอบสอบการแข่งขัน", - path: "/Recruit/managecompet", - }, - { - no: 5.32, - label: "สถิติสมัครสอบแข่งขัน", - path: "/Recruit/staticompet", - }, - ], - }, - { - no: 5.4, - label: "คัดเลือก", - path: "", - childern: [ - { - no: 5.41, - label: "จัดการรอบคัดเลือก", - path: "/Recruit/qualifiers", - }, - { - no: 5.42, - label: "จัดการรอบคัดเลือกคนพิการ", - path: "/Recruit/disabilities", - }, - { - no: 5.43, - label: "จัดการรายชื่อคัดเลือก", - path: "/Recruit/selection", - }, - ], - }, - ], - }, -]) - - - -export { menuList, tabList, tabListLogin, tabListDatamain, tabStructuremain, tabRegistration, tabRecruit } -export type { ScrollType, tabType, menuType, notiType, optionType } +export const menuList = ref([ + { + icon: "mdi-home-variant-outline", + activeIcon: "mdi-home-variant", + label: "หน้าแรก", + path: "/", + }, + { + icon: "mdi-file-outline", + activeIcon: "mdi-file", + label: "คู่มือการใช้งาน", + children: [] as { + label: string; + path: string; + }[], + }, +]); diff --git a/src/interface/request/manage/prefix.ts b/src/interface/request/manage/prefix.ts deleted file mode 100644 index b73cdfbc..00000000 --- a/src/interface/request/manage/prefix.ts +++ /dev/null @@ -1,46 +0,0 @@ -//response api เกี่ยวกับ status code กับ error -interface RequestHistoryObject { - message: String; - result: ResultHistoryObject; - status: number; -} - -//rusult แนบ id version mongo -interface ResultHistoryObject { - id: String; - items: RequestPrefixHistoryObject; - version: String; -} - -//ข้อมูล คำนำหน้าชื่อ -interface RequestPrefixHistoryObject { - createdAt?: Date; - createdFullName: String; - createdUserId: String; - id: String; - isActive: Boolean; - lastUpdateFullName: String; - lastUpdateUserId: String; - lastUpdatedAt?: Date; - name: String; -} - -//columns -interface PrefixColumns { - [index: number]: { - name: String; - align: String; - label: String; - sortable: Boolean; - field: String; - headerStyle: String; - style: String; - }; -} - -export type { - RequestHistoryObject, - ResultHistoryObject, - RequestPrefixHistoryObject, - PrefixColumns, -}; diff --git a/src/interface/response/dashboard/dashboard.ts b/src/interface/response/dashboard/dashboard.ts deleted file mode 100644 index e6320ecf..00000000 --- a/src/interface/response/dashboard/dashboard.ts +++ /dev/null @@ -1,27 +0,0 @@ -interface ResponseInbox { - body: string; - createdAt: Date; - createdFullName: string; - createdUserId: string; - id: string; - isOpen: boolean; - lastUpdateFullName: string; - lastUpdateUserId: string; - lastUpdatedAt: Date; - openDate: Date | null; - payload: string; - receiveDate: Date; - receiverUserId: string; - subject: string; -} - -interface DataInbox { - no: string; - sender: string; - subject: string; - timereceive: Date; - body: string; - ratingModel: number; -} - -export type { ResponseInbox, DataInbox }; diff --git a/src/interface/response/manage/prefix.ts b/src/interface/response/manage/prefix.ts deleted file mode 100644 index a4a8f99a..00000000 --- a/src/interface/response/manage/prefix.ts +++ /dev/null @@ -1,14 +0,0 @@ -//ข้อมูล คำนำหน้าชื่อ -interface ResponsePrefixHistoryObject { - createdAt?: Date; - createdFullName: String; - createdUserId: String; - id: String; - isActive: Boolean; - lastUpdateFullName: String; - lastUpdateUserId: String; - lastUpdatedAt?: Date; - name: String; -} - -export type { ResponsePrefixHistoryObject }; diff --git a/src/main.ts b/src/main.ts index a302398f..73348d29 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,6 @@ import quasarUserOptions from "./quasar-user-options"; import "quasar/src/css/index.sass"; import th from "quasar/lang/th"; -import http from "./plugins/http"; import { createPinia } from "pinia"; // organization // position @@ -19,6 +18,7 @@ import { createPinia } from "pinia"; // Import GlobalFilters import filters from "./plugins/filters"; +import http from "./plugins/http"; const app = createApp(App); const pinia = createPinia(); diff --git a/src/modules/01_manual/MainPage.vue b/src/modules/01_manual/MainPage.vue new file mode 100644 index 00000000..9373394f --- /dev/null +++ b/src/modules/01_manual/MainPage.vue @@ -0,0 +1,239 @@ + + + + + diff --git a/src/modules/01_manual/components/1_login/01_Main.vue b/src/modules/01_manual/components/1_login/01_Main.vue deleted file mode 100644 index ae74c2f4..00000000 --- a/src/modules/01_manual/components/1_login/01_Main.vue +++ /dev/null @@ -1,359 +0,0 @@ - - - - - diff --git a/src/modules/01_manual/components/1_login/02_login.vue b/src/modules/01_manual/components/1_login/02_login.vue deleted file mode 100644 index 1894d0ff..00000000 --- a/src/modules/01_manual/components/1_login/02_login.vue +++ /dev/null @@ -1,103 +0,0 @@ - - - - - diff --git a/src/modules/01_manual/components/1_login/03_Password.vue b/src/modules/01_manual/components/1_login/03_Password.vue deleted file mode 100644 index 731a1037..00000000 --- a/src/modules/01_manual/components/1_login/03_Password.vue +++ /dev/null @@ -1,132 +0,0 @@ - - - - - - - - diff --git a/src/modules/01_manual/components/1_login/04_newuser.vue b/src/modules/01_manual/components/1_login/04_newuser.vue deleted file mode 100644 index 3bb9eb35..00000000 --- a/src/modules/01_manual/components/1_login/04_newuser.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/1_login/05_logout.vue b/src/modules/01_manual/components/1_login/05_logout.vue deleted file mode 100644 index 5300a0f9..00000000 --- a/src/modules/01_manual/components/1_login/05_logout.vue +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - diff --git a/src/modules/01_manual/components/1_login/06_noti.vue b/src/modules/01_manual/components/1_login/06_noti.vue deleted file mode 100644 index 49bd1ac1..00000000 --- a/src/modules/01_manual/components/1_login/06_noti.vue +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - - - diff --git a/src/modules/01_manual/components/1_login/view.vue b/src/modules/01_manual/components/1_login/view.vue deleted file mode 100644 index 7a3af585..00000000 --- a/src/modules/01_manual/components/1_login/view.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/2_data/21_Main.vue b/src/modules/01_manual/components/2_data/21_Main.vue deleted file mode 100644 index 8afa851c..00000000 --- a/src/modules/01_manual/components/2_data/21_Main.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/2_data/22_About.vue b/src/modules/01_manual/components/2_data/22_About.vue deleted file mode 100644 index 2fd1dd7d..00000000 --- a/src/modules/01_manual/components/2_data/22_About.vue +++ /dev/null @@ -1,985 +0,0 @@ - - - - - - diff --git a/src/modules/01_manual/components/2_data/23_Gov.vue b/src/modules/01_manual/components/2_data/23_Gov.vue deleted file mode 100644 index 94abe784..00000000 --- a/src/modules/01_manual/components/2_data/23_Gov.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/2_data/24_Officer.vue b/src/modules/01_manual/components/2_data/24_Officer.vue deleted file mode 100644 index 63620a59..00000000 --- a/src/modules/01_manual/components/2_data/24_Officer.vue +++ /dev/null @@ -1,195 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/2_data/25_Employee.vue b/src/modules/01_manual/components/2_data/25_Employee.vue deleted file mode 100644 index 0b947f44..00000000 --- a/src/modules/01_manual/components/2_data/25_Employee.vue +++ /dev/null @@ -1,374 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/2_data/26_Calendar.vue b/src/modules/01_manual/components/2_data/26_Calendar.vue deleted file mode 100644 index 258d9eff..00000000 --- a/src/modules/01_manual/components/2_data/26_Calendar.vue +++ /dev/null @@ -1,596 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/2_data/27_Insignia.vue b/src/modules/01_manual/components/2_data/27_Insignia.vue deleted file mode 100644 index b803d1f4..00000000 --- a/src/modules/01_manual/components/2_data/27_Insignia.vue +++ /dev/null @@ -1,454 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/2_data/view.vue b/src/modules/01_manual/components/2_data/view.vue deleted file mode 100644 index a510db6d..00000000 --- a/src/modules/01_manual/components/2_data/view.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/3_Structure/31_Main.vue b/src/modules/01_manual/components/3_Structure/31_Main.vue deleted file mode 100644 index f3f1151c..00000000 --- a/src/modules/01_manual/components/3_Structure/31_Main.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/3_Structure/32_Position.vue b/src/modules/01_manual/components/3_Structure/32_Position.vue deleted file mode 100644 index 4ef13baa..00000000 --- a/src/modules/01_manual/components/3_Structure/32_Position.vue +++ /dev/null @@ -1,418 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/3_Structure/33_Structure.vue b/src/modules/01_manual/components/3_Structure/33_Structure.vue deleted file mode 100644 index 32086e88..00000000 --- a/src/modules/01_manual/components/3_Structure/33_Structure.vue +++ /dev/null @@ -1,398 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/3_Structure/34_organchart.vue b/src/modules/01_manual/components/3_Structure/34_organchart.vue deleted file mode 100644 index 7dac58cd..00000000 --- a/src/modules/01_manual/components/3_Structure/34_organchart.vue +++ /dev/null @@ -1,311 +0,0 @@ - - - - - diff --git a/src/modules/01_manual/components/3_Structure/35_chartstru.vue b/src/modules/01_manual/components/3_Structure/35_chartstru.vue deleted file mode 100644 index ddb2df15..00000000 --- a/src/modules/01_manual/components/3_Structure/35_chartstru.vue +++ /dev/null @@ -1,686 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/3_Structure/36_account2.vue b/src/modules/01_manual/components/3_Structure/36_account2.vue deleted file mode 100644 index 10f766ce..00000000 --- a/src/modules/01_manual/components/3_Structure/36_account2.vue +++ /dev/null @@ -1,345 +0,0 @@ - - - - - diff --git a/src/modules/01_manual/components/3_Structure/37_report.vue b/src/modules/01_manual/components/3_Structure/37_report.vue deleted file mode 100644 index 6817b26f..00000000 --- a/src/modules/01_manual/components/3_Structure/37_report.vue +++ /dev/null @@ -1,390 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/3_Structure/38_chartemploy.vue b/src/modules/01_manual/components/3_Structure/38_chartemploy.vue deleted file mode 100644 index ec7e904c..00000000 --- a/src/modules/01_manual/components/3_Structure/38_chartemploy.vue +++ /dev/null @@ -1,265 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/3_Structure/view.vue b/src/modules/01_manual/components/3_Structure/view.vue deleted file mode 100644 index 770d0703..00000000 --- a/src/modules/01_manual/components/3_Structure/view.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/4_registration/41_main.vue b/src/modules/01_manual/components/4_registration/41_main.vue deleted file mode 100644 index 25782840..00000000 --- a/src/modules/01_manual/components/4_registration/41_main.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - diff --git a/src/modules/01_manual/components/4_registration/42_find.vue b/src/modules/01_manual/components/4_registration/42_find.vue deleted file mode 100644 index 340c8f84..00000000 --- a/src/modules/01_manual/components/4_registration/42_find.vue +++ /dev/null @@ -1,530 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/4_registration/43_detail.vue b/src/modules/01_manual/components/4_registration/43_detail.vue deleted file mode 100644 index a7c20c47..00000000 --- a/src/modules/01_manual/components/4_registration/43_detail.vue +++ /dev/null @@ -1,483 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/4_registration/44_edit.vue b/src/modules/01_manual/components/4_registration/44_edit.vue deleted file mode 100644 index 2dae31e5..00000000 --- a/src/modules/01_manual/components/4_registration/44_edit.vue +++ /dev/null @@ -1,3396 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/4_registration/45_select.vue b/src/modules/01_manual/components/4_registration/45_select.vue deleted file mode 100644 index fe97e008..00000000 --- a/src/modules/01_manual/components/4_registration/45_select.vue +++ /dev/null @@ -1,138 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/4_registration/46_window.vue b/src/modules/01_manual/components/4_registration/46_window.vue deleted file mode 100644 index 3f7b44aa..00000000 --- a/src/modules/01_manual/components/4_registration/46_window.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/4_registration/view.vue b/src/modules/01_manual/components/4_registration/view.vue deleted file mode 100644 index 034a1268..00000000 --- a/src/modules/01_manual/components/4_registration/view.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/5_recruitment/51_main.vue b/src/modules/01_manual/components/5_recruitment/51_main.vue deleted file mode 100644 index 9521f311..00000000 --- a/src/modules/01_manual/components/5_recruitment/51_main.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - diff --git a/src/modules/01_manual/components/5_recruitment/52_setting.vue b/src/modules/01_manual/components/5_recruitment/52_setting.vue deleted file mode 100644 index 41877a78..00000000 --- a/src/modules/01_manual/components/5_recruitment/52_setting.vue +++ /dev/null @@ -1,613 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/5_recruitment/53_managecompet.vue b/src/modules/01_manual/components/5_recruitment/53_managecompet.vue deleted file mode 100644 index 6d1ea853..00000000 --- a/src/modules/01_manual/components/5_recruitment/53_managecompet.vue +++ /dev/null @@ -1,879 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/5_recruitment/54_staticompet.vue b/src/modules/01_manual/components/5_recruitment/54_staticompet.vue deleted file mode 100644 index 021f1190..00000000 --- a/src/modules/01_manual/components/5_recruitment/54_staticompet.vue +++ /dev/null @@ -1,232 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/5_recruitment/55_qualifiers.vue b/src/modules/01_manual/components/5_recruitment/55_qualifiers.vue deleted file mode 100644 index 066f9894..00000000 --- a/src/modules/01_manual/components/5_recruitment/55_qualifiers.vue +++ /dev/null @@ -1,488 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/5_recruitment/56_disabilities.vue b/src/modules/01_manual/components/5_recruitment/56_disabilities.vue deleted file mode 100644 index e11819ba..00000000 --- a/src/modules/01_manual/components/5_recruitment/56_disabilities.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/5_recruitment/57_selection.vue b/src/modules/01_manual/components/5_recruitment/57_selection.vue deleted file mode 100644 index cf7d580a..00000000 --- a/src/modules/01_manual/components/5_recruitment/57_selection.vue +++ /dev/null @@ -1,533 +0,0 @@ - - - - - - - - - - - - diff --git a/src/modules/01_manual/components/5_recruitment/view.vue b/src/modules/01_manual/components/5_recruitment/view.vue deleted file mode 100644 index ddc3709f..00000000 --- a/src/modules/01_manual/components/5_recruitment/view.vue +++ /dev/null @@ -1,87 +0,0 @@ - - - - diff --git a/src/modules/01_manual/components/6_employeehistory/61_main.vue b/src/modules/01_manual/components/6_employeehistory/61_main.vue deleted file mode 100644 index 734aae7b..00000000 --- a/src/modules/01_manual/components/6_employeehistory/61_main.vue +++ /dev/null @@ -1,2595 +0,0 @@ - - - - - - - - - - diff --git a/src/modules/01_manual/components/7_commands/71_main.vue b/src/modules/01_manual/components/7_commands/71_main.vue deleted file mode 100644 index 3866f34d..00000000 --- a/src/modules/01_manual/components/7_commands/71_main.vue +++ /dev/null @@ -1,736 +0,0 @@ - - - - - - - - - - diff --git a/src/modules/01_manual/components/7_commands/72_try.vue b/src/modules/01_manual/components/7_commands/72_try.vue deleted file mode 100644 index f07d6878..00000000 --- a/src/modules/01_manual/components/7_commands/72_try.vue +++ /dev/null @@ -1,843 +0,0 @@ - - - diff --git a/src/modules/01_manual/components/7_commands/view.vue b/src/modules/01_manual/components/7_commands/view.vue deleted file mode 100644 index b21baba8..00000000 --- a/src/modules/01_manual/components/7_commands/view.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - diff --git a/src/modules/01_manual/router.ts b/src/modules/01_manual/router.ts index e0021aaa..1ec79225 100644 --- a/src/modules/01_manual/router.ts +++ b/src/modules/01_manual/router.ts @@ -1,502 +1,9 @@ -const viewLogin = () => import("@/modules/01_manual/components/1_login/view.vue") -const Mainlogin = () => import("@/modules/01_manual/components/1_login/01_Main.vue"); -const MainLog = () => import("@/modules/01_manual/components/1_login/02_login.vue"); -const Mainpass = () => import("@/modules/01_manual/components/1_login/03_Password.vue"); -const Mainuser = () => import("@/modules/01_manual/components/1_login/04_newuser.vue"); -const Mainlogout = () => import("@/modules/01_manual/components/1_login/05_logout.vue"); -const Mainnoti = () => import("@/modules/01_manual/components/1_login/06_noti.vue"); - - -const viewDatamain = () => import("@/modules/01_manual/components/2_data/view.vue") -const Datamain = () => import("@/modules/01_manual/components/2_data/21_Main.vue"); -const Dataabout = () => import("@/modules/01_manual/components/2_data/22_About.vue"); -const Datagov = () => import("@/modules/01_manual/components/2_data/23_Gov.vue"); -const Dataofficer = () => import("@/modules/01_manual/components/2_data/24_Officer.vue"); -const Dataemployee = () => import("@/modules/01_manual/components/2_data/25_Employee.vue"); -const Datacalendar = () => import("@/modules/01_manual/components/2_data/26_Calendar.vue"); -const Datalnsignia = () => import("@/modules/01_manual/components/2_data/27_Insignia.vue"); - -const viewStructure = () => import("@/modules/01_manual/components/3_Structure/view.vue") -const Structuremain = () => import("@/modules/01_manual/components/3_Structure/31_Main.vue"); -const Structureposition = () => import("@/modules/01_manual/components/3_Structure/32_Position.vue"); -const Structurestructure = () => import("@/modules/01_manual/components/3_Structure/33_Structure.vue"); -const Structureorganchart = () => import("@/modules/01_manual/components/3_Structure/34_organchart.vue"); -const Structurechartstru = () => import("@/modules/01_manual/components/3_Structure/35_chartstru.vue"); -const Structureaccount2 = () => import("@/modules/01_manual/components/3_Structure/36_account2.vue"); -const Structurereport = () => import("@/modules/01_manual/components/3_Structure/37_report.vue"); -const Structurechartemploy = () => import("@/modules/01_manual/components/3_Structure/38_chartemploy.vue"); - - -const viewRegist = () => import("@/modules/01_manual/components/4_registration/view.vue") -// const registmain = () => import("@/modules/01_manual/components/4_ registration/41_main.vue"); -// const registfind = () => import("@/modules/01_manual/components/4_ registration/42_find.vue"); -// const registdetail = () => import("@/modules/01_manual/components/4_ registration/43_detail.vue"); -// const registedit = () => import("@/modules/01_manual/components/4_ registration/44_edit.vue"); -// const registselect = () => import("@/modules/01_manual/components/4_ registration/45_select.vue"); -// const registwindow = () => import("@/modules/01_manual/components/4_ registration/46_window.vue"); - - -const viewRecruit = () => import("@/modules/01_manual/components/5_recruitment/view.vue") -const recruitmain = () => import("@/modules/01_manual/components/5_recruitment/51_main.vue"); -const recruitsetting = () => import("@/modules/01_manual/components/5_recruitment/52_setting.vue"); - -const recruitmanagecompet = () => import("@/modules/01_manual/components/5_recruitment/53_managecompet.vue"); -const recruitstaticompet = () => import("@/modules/01_manual/components/5_recruitment/54_staticompet.vue"); - -const recruitqualifiers = () => import("@/modules/01_manual/components/5_recruitment/55_qualifiers.vue"); -const recruitdisabilities = () => import("@/modules/01_manual/components/5_recruitment/56_disabilities.vue"); -const recruitselection = () => import("@/modules/01_manual/components/5_recruitment/57_selection.vue"); - - -const employeehistorymain = () => import("@/modules/01_manual/components/6_employeehistory/61_main.vue"); - - -const commandsmain = () => import("@/modules/01_manual/components/7_commands/71_main.vue"); -const ehrtry = () => import("@/modules/01_manual/components/7_commands/72_try.vue"); - - - -/****** 1 ********/ +import type { RouteRecordRaw } from "vue-router"; export default [ { - path: "/login", - name: "login", - component: viewLogin, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, + path: "/manual/:name", + name: "Manual", + component: () => import("@/modules/01_manual/MainPage.vue"), }, - // { - // path: "/manual", - // name: "manual", - // component: Mainlogin, - // meta: { - // Auth: true, - // Key: [10], - // Role: "order", - // }, - // }, - - { - path: "/login/log", - name: "mainLog", - component: MainLog, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/login/password", - name: "mainpassword", - component: Mainpass, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/login/newuser", - name: "mainnewuser", - component: Mainuser, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/login/logout", - name: "mainlogout", - component: Mainlogout, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/login/noti", - name: "mainnoti", - component: Mainnoti, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - - - /****** 2 ********/ - - - { - path: "/datamain", - name: "datamain", - component: viewDatamain, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Data/about", - name: "Dataabout", - component: Dataabout, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - - { - path: "/Data/gov", - name: "Datagov", - component: Datagov, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - - { - path: "/Data/officer", - name: "Dataofficer", - component: Dataofficer, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Data/employee", - name: "Dataemployee", - component: Dataemployee, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Data/calendar", - name: "Datacalendar", - component: Datacalendar, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Data/insignia", - name: "Datalnsignia", - component: Datalnsignia, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - /****** 3 ********/ - - - { - path: "/structuremain", - name: "structuremain", - component: viewStructure, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Structure/Position", - name: "Structureposition", - component: Structureposition, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Structure/Structure", - name: "Structurestructure", - component: Structurestructure, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Structure/Organchart", - name: "Structureorganchart", - component: Structureorganchart, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Structure/Chartstru", - name: "Structurechartstru", - component: Structurechartstru, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Structure/Account2", - name: "Structureaccount2", - component: Structureaccount2, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Structure/Report", - name: "Structurereport", - component: Structurereport, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Structure/Chartemploy", - name: "Structurechartemploy", - component: Structurechartemploy, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - - - /****** 4 ********/ - - { - path: "/registrationmain", - name: "registmain", - component: viewRegist, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - - // { - // path: "/Registration/find", - // name: "registfind", - // component: registfind, - // meta: { - // Auth: true, - // Key: [10], - // Role: "order", - // }, - // }, - - - // { - // path: "/Registration/detail", - // name: "registdetail", - // component: registdetail, - // meta: { - // Auth: true, - // Key: [10], - // Role: "order", - // }, - // }, - - // { - // path: "/Registration/edit", - // name: "registedit", - // component: registedit, - // meta: { - // Auth: true, - // Key: [10], - // Role: "order", - // }, - // }, - - // { - // path: "/Registration/select", - // name: "registselect", - // component: registselect, - // meta: { - // Auth: true, - // Key: [10], - // Role: "order", - // }, - // }, - - // { - // path: "/Registration/window", - // name: "registwindow", - // component: registwindow, - // meta: { - // Auth: true, - // Key: [10], - // Role: "order", - // }, - // }, - - - - /****** 5 ********/ - - { - path: "/recruitmain", - name: "recruitmain", - component: viewRecruit, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Recruit/setting", - name: "recruitsetting", - component: recruitsetting, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Recruit/managecompet", - name: "recruitmanagecompet", - component: recruitmanagecompet, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - - { - path: "/Recruit/staticompet", - name: "recruitstaticompet", - component: recruitstaticompet, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Recruit/qualifiers", - name: "recruitqualifiers", - component: recruitqualifiers, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Recruit/disabilities", - name: "recruitdisabilities", - component: recruitdisabilities, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Recruit/selection", - name: "recruitselection", - component: recruitselection, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Commandsmain", - name: "commandsmain", - component: commandsmain, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - { - path: "/Employeehistorymain", - name: "employeehistorymain", - component: employeehistorymain, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - }, - - - - - { - path: "/ehrtry", - name: "ehrtry", - component: ehrtry, - meta: { - Auth: true, - Key: [10], - Role: "order", - }, - } -]; \ No newline at end of file +] satisfies RouteRecordRaw[]; diff --git a/src/plugins/axios.ts b/src/plugins/axios.ts index 79bba4e1..327b03cf 100644 --- a/src/plugins/axios.ts +++ b/src/plugins/axios.ts @@ -1,25 +1,11 @@ -import axios from "axios" -import config from "process" -// import { dotnetPath } from "../path/axiosPath"; -// import { getToken } from "@baloise/vue-keycloak"; -import keycloak from "../plugins/keycloak" +import axios from "axios"; const axiosInstance = axios.create({ - withCredentials: false, -}) + withCredentials: false, +}); -// axiosInstance.defaults.baseURL = dotnetPath; -axiosInstance.interceptors.request.use( - async (config) => { - const token = await keycloak.token - config.headers = { - Authorization: `Bearer ${token}`, - } - return config - }, - (error) => { - Promise.reject(error) - } -) +axiosInstance.interceptors.request.use((error) => { + Promise.reject(error); +}); -export default axiosInstance +export default axiosInstance; diff --git a/src/plugins/keycloak.ts b/src/plugins/keycloak.ts deleted file mode 100644 index c12feb1a..00000000 --- a/src/plugins/keycloak.ts +++ /dev/null @@ -1,23 +0,0 @@ -// /** -// * front connect to keycloak -// */ -// import Keycloak from "keycloak-js"; -// // import config from "../app.config"; -// // import http from "../shared/http"; -// // import router from "../router"; - -// const initOptions = { -// // url: "https://keycloak.frappet.synology.me/auth/", -// realm: "bma-ehr", -// clientId: "bma-ehr-vue3", -// url: "https://id.frappet.synology.me/", -// // realm: "bma-ehr-exam", -// // clientId: "bma-ehr-exam-vue3", -// }; //option keycloak ที่จะ connect - -// const keycloak = Keycloak(initOptions); - -// keycloak.onAuthSuccess = () => {}; //เพิ่มlogin สำเร็จจะมาทำฟังก์ชันนี้ - -// await keycloak.init({ onLoad: "check-sso", checkLoginIframe: false }); //ทำการ connect keycloak -// export default keycloak; diff --git a/src/stores/manual.ts b/src/stores/manual.ts new file mode 100644 index 00000000..8d6fb8e7 --- /dev/null +++ b/src/stores/manual.ts @@ -0,0 +1,10 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; + +export const useManualStore = defineStore("manual", () => { + const toc = ref(true); + + return { + toc, + }; +}); diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index 0e1d914c..cd498358 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -1,30 +1,18 @@ - + - - diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index a573e9c8..327e2e9e 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -1,710 +1,371 @@ diff --git a/src/views/TestView.vue b/src/views/TestView.vue deleted file mode 100644 index e3b7db6b..00000000 --- a/src/views/TestView.vue +++ /dev/null @@ -1,249 +0,0 @@ - - - diff --git a/tsconfig.app.json b/tsconfig.app.json index a4299392..e26802aa 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -8,6 +8,6 @@ "paths": { "@/*": ["./src/*"] }, - "lib": ["dom", "es2015", "es2018", "es2018.promise"] + "lib": ["dom", "es2021", "es2021.promise"] } } diff --git a/tsconfig.config.json b/tsconfig.config.json index 424084aa..af776908 100644 --- a/tsconfig.config.json +++ b/tsconfig.config.json @@ -1,6 +1,11 @@ { "extends": "@vue/tsconfig/tsconfig.node.json", - "include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*"], + "include": [ + "vite.config.*", + "vitest.config.*", + "cypress.config.*", + "playwright.config.*" + ], "compilerOptions": { "composite": true, "types": ["node"] diff --git a/tsconfig.json b/tsconfig.json index 7f365145..f5db78eb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,15 +11,15 @@ "path": "./tsconfig.vitest.json" } ], - + "compilerOptions": { /* other configs */ "paths": { "@/*": [ - "./*", + "./*" // r ] - }, + } /* other configs */ } } diff --git a/vite.config.ts b/vite.config.ts index 614aa1ba..0df2f455 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,30 +1,30 @@ -import { fileURLToPath, URL } from "node:url" +import { fileURLToPath, URL } from "node:url"; -import { defineConfig } from "vite" -import vue from "@vitejs/plugin-vue" -import vueJsx from "@vitejs/plugin-vue-jsx" -import { quasar, transformAssetUrls } from "@quasar/vite-plugin" +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; +import vueJsx from "@vitejs/plugin-vue-jsx"; +import { quasar, transformAssetUrls } from "@quasar/vite-plugin"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - vue({ - template: { transformAssetUrls }, - }), - quasar({ - sassVariables: "src/style/quasar-variables.sass", - }), - vueJsx(), - ], - resolve: { - alias: { - "@": fileURLToPath(new URL("./src", import.meta.url)), - }, - }, - build: { - target: "esnext", - }, - server: { - port: 3008, - }, -}) + plugins: [ + vue({ + template: { transformAssetUrls }, + }), + quasar({ + sassVariables: "src/style/quasar-variables.sass", + }), + vueJsx(), + ], + resolve: { + alias: { + "@": fileURLToPath(new URL("./src", import.meta.url)), + }, + }, + build: { + target: "esnext", + }, + server: { + port: 3008, + }, +});