@finema/finework-layer 0.2.75 → 0.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.husky/pre-commit +1 -1
  2. package/.playground/.env.example +5 -0
  3. package/.playground/app/assets/css/main.css +6 -6
  4. package/.playground/app/pages/layout-admin/[id]/index.vue +145 -145
  5. package/.playground/app/pages/layout-admin/test/[id]/index.vue +286 -286
  6. package/.playground/app/pages/layout-admin.vue +285 -285
  7. package/.playground/app/pages/layout-user.vue +284 -0
  8. package/.playground/app/pages/submenu/layout-admin.vue +210 -210
  9. package/.playground/public/admin/clock-in-admin-logo.png +0 -0
  10. package/.playground/public/admin/clock-in-logo.png +0 -0
  11. package/.playground/public/admin/clock-in.png +0 -0
  12. package/.playground/public/admin/pmo-logo.png +0 -0
  13. package/.playground/public/admin/spider-web.png +0 -0
  14. package/.playground/public/admin/super-admin-logo.png +0 -0
  15. package/.playground/public/admin/super-admin.png +0 -0
  16. package/.playground/public/admin/timesheet-admin-logo.png +0 -0
  17. package/.playground/public/admin/timesheet-logo.png +0 -0
  18. package/.playground/public/admin/timesheet.png +0 -0
  19. package/CHANGELOG.md +378 -364
  20. package/app/app.config.ts +144 -144
  21. package/app/app.vue +10 -10
  22. package/app/assets/css/main.css +77 -77
  23. package/app/components/Button/ActionIcon.vue +29 -29
  24. package/app/components/Button/Back.vue +22 -22
  25. package/app/components/Format/Currency.vue +17 -17
  26. package/app/components/Format/Date.vue +24 -24
  27. package/app/components/Format/DateTime.vue +24 -24
  28. package/app/components/Format/Number.vue +17 -17
  29. package/app/components/Format/Percent.vue +38 -38
  30. package/app/components/Format/TimeFromNow.vue +38 -38
  31. package/app/components/InfoItemList.vue +196 -196
  32. package/app/components/Layout/Admin/Sidebar.vue +329 -329
  33. package/app/components/Layout/Admin/index.vue +224 -270
  34. package/app/components/Layout/Apps.vue +45 -45
  35. package/app/components/Layout/User/index.vue +102 -145
  36. package/app/components/Notifications/index.vue +162 -0
  37. package/app/components/StatusBox.vue +56 -56
  38. package/app/composables/useAuth.ts +207 -207
  39. package/app/composables/useNotification.ts +76 -0
  40. package/app/composables/useRequestOptions.ts +86 -86
  41. package/app/constants/routes.ts +86 -86
  42. package/app/error.vue +218 -218
  43. package/app/middleware/auth.ts +45 -45
  44. package/app/middleware/common.ts +12 -12
  45. package/app/middleware/guest.ts +7 -7
  46. package/app/middleware/permissions.ts +29 -29
  47. package/bun.lock +2758 -2758
  48. package/index.d.ts +16 -16
  49. package/nuxt.config.ts +41 -41
  50. package/package.json +38 -38
  51. package/app/components/NotificationList.vue +0 -65
@@ -1,86 +1,86 @@
1
- export const routes = {
2
- home: {
3
- label: 'หน้าแรก',
4
- to: '/',
5
- },
6
- chooseTeam: {
7
- label: 'เลือกทีม',
8
- to: '/choose-team',
9
- },
10
- login: {
11
- label: 'เลือก',
12
- to: '/login',
13
- },
14
- logout: {
15
- label: 'Log out',
16
- to: '/api/auth/logout',
17
- },
18
- releaseHistory: {
19
- label: 'Release History',
20
- to: '/releases',
21
- icon: 'heroicons:tag',
22
- },
23
- account: {
24
- profile: {
25
- label: 'โปรไฟล์',
26
- to: '/account/profile',
27
- icon: 'mage:user',
28
- },
29
- },
30
-
31
- announcements: {
32
- label: 'Finema Newsletter',
33
- to: '/announcements',
34
- icon: 'mage:announcement',
35
- },
36
-
37
- adminClockin: {
38
- checkinDashboard: {
39
- label: 'ภาพรวมเช็คอิน',
40
- icon: 'mage:dashboard',
41
- to: '/clockin-admin',
42
- permissions: ['clockin:ADMIN'],
43
- },
44
- },
45
- adminTimesheet: {
46
- summaryReport: {
47
- label: 'ภาพรวม',
48
- icon: 'heroicons-outline:user-group',
49
- to: '/timesheet-admin/reports/summary',
50
- permissions: ['timesheet:ADMIN'],
51
- },
52
- },
53
- admin: {
54
- users: {
55
- label: 'จัดการผู้ใช้งาน',
56
- icon: 'hugeicons:user-circle-02',
57
- to: '/admin/users',
58
- // permissions: ['setting:SUPER'],
59
- },
60
- },
61
- clockin: {
62
- home: {
63
- label: 'Clock-In',
64
- icon: 'i-heroicons-outline:location-marker',
65
- to: '/clockin',
66
- },
67
- },
68
- timesheet: {
69
- home: {
70
- label: 'Timesheet',
71
- icon: 'mage:dashboard',
72
- to: '/timesheet',
73
- },
74
- },
75
- pmo: {
76
- project: {
77
- projects: {
78
- label: 'โครงการของฉัน',
79
- to: '/pmo/projects',
80
- icon: 'lucide:layers',
81
- permissions: ['pmo:USER', 'pmo:ADMIN', 'pmo:SUPER'],
82
- },
83
- },
84
- },
85
-
86
- } as const
1
+ export const routes = {
2
+ home: {
3
+ label: 'หน้าแรก',
4
+ to: '/',
5
+ },
6
+ chooseTeam: {
7
+ label: 'เลือกทีม',
8
+ to: '/choose-team',
9
+ },
10
+ login: {
11
+ label: 'เลือก',
12
+ to: '/login',
13
+ },
14
+ logout: {
15
+ label: 'Log out',
16
+ to: '/api/auth/logout',
17
+ },
18
+ releaseHistory: {
19
+ label: 'Release History',
20
+ to: '/releases',
21
+ icon: 'heroicons:tag',
22
+ },
23
+ account: {
24
+ profile: {
25
+ label: 'โปรไฟล์',
26
+ to: '/account/profile',
27
+ icon: 'mage:user',
28
+ },
29
+ },
30
+
31
+ announcements: {
32
+ label: 'Finema Newsletter',
33
+ to: '/announcements',
34
+ icon: 'mage:announcement',
35
+ },
36
+
37
+ adminClockin: {
38
+ checkinDashboard: {
39
+ label: 'ภาพรวมเช็คอิน',
40
+ icon: 'mage:dashboard',
41
+ to: '/clockin-admin',
42
+ permissions: ['clockin:ADMIN'],
43
+ },
44
+ },
45
+ adminTimesheet: {
46
+ summaryReport: {
47
+ label: 'ภาพรวม',
48
+ icon: 'heroicons-outline:user-group',
49
+ to: '/timesheet-admin/reports/summary',
50
+ permissions: ['timesheet:ADMIN'],
51
+ },
52
+ },
53
+ admin: {
54
+ users: {
55
+ label: 'จัดการผู้ใช้งาน',
56
+ icon: 'hugeicons:user-circle-02',
57
+ to: '/admin/users',
58
+ // permissions: ['setting:SUPER'],
59
+ },
60
+ },
61
+ clockin: {
62
+ home: {
63
+ label: 'Clock-In',
64
+ icon: 'i-heroicons-outline:location-marker',
65
+ to: '/clockin',
66
+ },
67
+ },
68
+ timesheet: {
69
+ home: {
70
+ label: 'Timesheet',
71
+ icon: 'mage:dashboard',
72
+ to: '/timesheet',
73
+ },
74
+ },
75
+ pmo: {
76
+ project: {
77
+ projects: {
78
+ label: 'โครงการของฉัน',
79
+ to: '/pmo/projects',
80
+ icon: 'lucide:layers',
81
+ permissions: ['pmo:USER', 'pmo:ADMIN', 'pmo:SUPER'],
82
+ },
83
+ },
84
+ },
85
+
86
+ } as const