@timus-networks/theme 2.0.16 → 2.1.3

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 (214) hide show
  1. package/README.md +113 -0
  2. package/dist/module.cjs +5 -0
  3. package/dist/module.d.mts +11 -0
  4. package/dist/module.d.ts +11 -0
  5. package/dist/module.json +9 -0
  6. package/dist/module.mjs +187 -0
  7. package/dist/runtime/components/development/example.alert.vue +29 -0
  8. package/dist/runtime/components/development/example.avatar.vue +85 -0
  9. package/dist/runtime/components/development/example.badge.vue +93 -0
  10. package/dist/runtime/components/development/example.breadcrumb.vue +54 -0
  11. package/dist/runtime/components/development/example.button.vue +235 -0
  12. package/dist/runtime/components/development/example.button.vue.d.ts +11 -0
  13. package/dist/runtime/components/development/example.card.vue +68 -0
  14. package/dist/runtime/components/development/example.checkbox.vue +176 -0
  15. package/dist/runtime/components/development/example.checkbox.vue.d.ts +24 -0
  16. package/dist/runtime/components/development/example.collapse.vue +38 -0
  17. package/dist/runtime/components/development/example.datepicker.vue +193 -0
  18. package/dist/runtime/components/development/example.description.vue +94 -0
  19. package/dist/runtime/components/development/example.dialog.vue +79 -0
  20. package/dist/runtime/components/development/example.dropdown.vue +166 -0
  21. package/dist/runtime/components/development/example.form.vue +488 -0
  22. package/dist/runtime/components/development/example.input.vue +270 -0
  23. package/dist/runtime/components/development/example.input.vue.d.ts +23 -0
  24. package/dist/runtime/components/development/example.link.vue +68 -0
  25. package/dist/runtime/components/development/example.message.vue +64 -0
  26. package/dist/runtime/components/development/example.notification.vue +75 -0
  27. package/dist/runtime/components/development/example.number.vue +70 -0
  28. package/dist/runtime/components/development/example.pagination.vue +89 -0
  29. package/dist/runtime/components/development/example.popover.vue +151 -0
  30. package/dist/runtime/components/development/example.radio.vue +163 -0
  31. package/dist/runtime/components/development/example.radio.vue.d.ts +25 -0
  32. package/dist/runtime/components/development/example.select.vue +588 -0
  33. package/dist/runtime/components/development/example.select.vue.d.ts +70 -0
  34. package/dist/runtime/components/development/example.sidebar.vue +101 -0
  35. package/dist/runtime/components/development/example.static.vue +50 -0
  36. package/dist/runtime/components/development/example.switch.vue +101 -0
  37. package/dist/runtime/components/development/example.table.vue +112 -0
  38. package/dist/runtime/components/development/example.tag.vue +255 -0
  39. package/dist/runtime/components/development/example.timepicker.vue +89 -0
  40. package/dist/runtime/components/development/example.tooltip.vue +104 -0
  41. package/dist/runtime/components/development/example.upload.vue +84 -0
  42. package/dist/runtime/components/production/html-encode.vue +96 -0
  43. package/dist/runtime/components/production/timus-breadcrumb.d.ts +36 -0
  44. package/dist/runtime/components/production/timus-breadcrumb.js +224 -0
  45. package/dist/runtime/components/production/timus-breadcrumb.mjs +224 -0
  46. package/dist/runtime/components/production/timus-breadcrumb.vue +83 -0
  47. package/dist/runtime/components/production/timus-breadcrumb.vue.d.ts +340 -0
  48. package/dist/runtime/composables/useBreadcrumb.d.ts +8 -0
  49. package/dist/runtime/composables/useBreadcrumb.js +53 -0
  50. package/dist/runtime/composables/useBreadcrumb.mjs +53 -0
  51. package/dist/runtime/pages/theme.vue +61 -0
  52. package/dist/runtime/plugins/disable-warnings-plugin.d.ts +2 -0
  53. package/dist/runtime/plugins/disable-warnings-plugin.js +18 -0
  54. package/dist/runtime/plugins/disable-warnings-plugin.mjs +18 -0
  55. package/dist/runtime/plugins/sample-plugin.d.ts +20 -0
  56. package/dist/runtime/plugins/sample-plugin.js +5 -0
  57. package/dist/runtime/plugins/sample-plugin.mjs +5 -0
  58. package/dist/runtime/plugins/theme-provider-plugin.d.ts +30 -0
  59. package/dist/runtime/plugins/theme-provider-plugin.js +46 -0
  60. package/dist/runtime/plugins/theme-provider-plugin.mjs +46 -0
  61. package/dist/runtime/public/scss/element-plus/affix.css +305 -0
  62. package/dist/runtime/public/scss/element-plus/alert.css +516 -0
  63. package/dist/runtime/public/scss/element-plus/anchor-link.css +332 -0
  64. package/dist/runtime/public/scss/element-plus/anchor.css +376 -0
  65. package/dist/runtime/public/scss/element-plus/aside.css +308 -0
  66. package/dist/runtime/public/scss/element-plus/autocomplete.css +411 -0
  67. package/dist/runtime/public/scss/element-plus/avatar.css +370 -0
  68. package/dist/runtime/public/scss/element-plus/backtop.css +326 -0
  69. package/dist/runtime/public/scss/element-plus/badge.css +376 -0
  70. package/dist/runtime/public/scss/element-plus/base.css +550 -0
  71. package/dist/runtime/public/scss/element-plus/breadcrumb-item.css +0 -0
  72. package/dist/runtime/public/scss/element-plus/breadcrumb.css +370 -0
  73. package/dist/runtime/public/scss/element-plus/button-group.css +535 -0
  74. package/dist/runtime/public/scss/element-plus/button.css +1089 -0
  75. package/dist/runtime/public/scss/element-plus/calendar.css +370 -0
  76. package/dist/runtime/public/scss/element-plus/card.css +347 -0
  77. package/dist/runtime/public/scss/element-plus/carousel-item.css +350 -0
  78. package/dist/runtime/public/scss/element-plus/carousel.css +475 -0
  79. package/dist/runtime/public/scss/element-plus/cascader-panel.css +428 -0
  80. package/dist/runtime/public/scss/element-plus/cascader.css +560 -0
  81. package/dist/runtime/public/scss/element-plus/check-tag.css +386 -0
  82. package/dist/runtime/public/scss/element-plus/checkbox-button.css +451 -0
  83. package/dist/runtime/public/scss/element-plus/checkbox-group.css +307 -0
  84. package/dist/runtime/public/scss/element-plus/checkbox.css +588 -0
  85. package/dist/runtime/public/scss/element-plus/col.css +3270 -0
  86. package/dist/runtime/public/scss/element-plus/collapse-item.css +0 -0
  87. package/dist/runtime/public/scss/element-plus/collapse-transition.css +0 -0
  88. package/dist/runtime/public/scss/element-plus/collapse.css +490 -0
  89. package/dist/runtime/public/scss/element-plus/color/index.css +0 -0
  90. package/dist/runtime/public/scss/element-plus/color-picker.css +650 -0
  91. package/dist/runtime/public/scss/element-plus/common/popup.css +338 -0
  92. package/dist/runtime/public/scss/element-plus/common/transition.css +420 -0
  93. package/dist/runtime/public/scss/element-plus/common/var.css +302 -0
  94. package/dist/runtime/public/scss/element-plus/config-provider.css +0 -0
  95. package/dist/runtime/public/scss/element-plus/container.css +313 -0
  96. package/dist/runtime/public/scss/element-plus/dark/css-vars.css +353 -0
  97. package/dist/runtime/public/scss/element-plus/dark/var.css +302 -0
  98. package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +558 -0
  99. package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +410 -0
  100. package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +426 -0
  101. package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +388 -0
  102. package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +454 -0
  103. package/dist/runtime/public/scss/element-plus/date-picker/picker.css +662 -0
  104. package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +384 -0
  105. package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +338 -0
  106. package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +389 -0
  107. package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +384 -0
  108. package/dist/runtime/public/scss/element-plus/date-picker.css +1531 -0
  109. package/dist/runtime/public/scss/element-plus/descriptions-item.css +347 -0
  110. package/dist/runtime/public/scss/element-plus/descriptions.css +435 -0
  111. package/dist/runtime/public/scss/element-plus/dialog.css +512 -0
  112. package/dist/runtime/public/scss/element-plus/display.css +357 -0
  113. package/dist/runtime/public/scss/element-plus/divider.css +345 -0
  114. package/dist/runtime/public/scss/element-plus/drawer.css +419 -0
  115. package/dist/runtime/public/scss/element-plus/dropdown-item.css +0 -0
  116. package/dist/runtime/public/scss/element-plus/dropdown-menu.css +0 -0
  117. package/dist/runtime/public/scss/element-plus/dropdown.css +495 -0
  118. package/dist/runtime/public/scss/element-plus/empty.css +355 -0
  119. package/dist/runtime/public/scss/element-plus/footer.css +310 -0
  120. package/dist/runtime/public/scss/element-plus/form-item.css +0 -0
  121. package/dist/runtime/public/scss/element-plus/form.css +527 -0
  122. package/dist/runtime/public/scss/element-plus/header.css +310 -0
  123. package/dist/runtime/public/scss/element-plus/icon.css +343 -0
  124. package/dist/runtime/public/scss/element-plus/image-viewer.css +439 -0
  125. package/dist/runtime/public/scss/element-plus/image.css +343 -0
  126. package/dist/runtime/public/scss/element-plus/index.css +17293 -0
  127. package/dist/runtime/public/scss/element-plus/infinite-scroll.css +0 -0
  128. package/dist/runtime/public/scss/element-plus/input-number.css +494 -0
  129. package/dist/runtime/public/scss/element-plus/input.css +770 -0
  130. package/dist/runtime/public/scss/element-plus/link.css +453 -0
  131. package/dist/runtime/public/scss/element-plus/loading.css +391 -0
  132. package/dist/runtime/public/scss/element-plus/main.css +311 -0
  133. package/dist/runtime/public/scss/element-plus/mention.css +413 -0
  134. package/dist/runtime/public/scss/element-plus/menu-item-group.css +0 -0
  135. package/dist/runtime/public/scss/element-plus/menu-item.css +0 -0
  136. package/dist/runtime/public/scss/element-plus/menu.css +737 -0
  137. package/dist/runtime/public/scss/element-plus/message-box.css +533 -0
  138. package/dist/runtime/public/scss/element-plus/message.css +528 -0
  139. package/dist/runtime/public/scss/element-plus/mixins/config.css +0 -0
  140. package/dist/runtime/public/scss/element-plus/mixins/function.css +0 -0
  141. package/dist/runtime/public/scss/element-plus/mixins/mixins.css +302 -0
  142. package/dist/runtime/public/scss/element-plus/mixins/utils.css +0 -0
  143. package/dist/runtime/public/scss/element-plus/notification.css +413 -0
  144. package/dist/runtime/public/scss/element-plus/option-group.css +331 -0
  145. package/dist/runtime/public/scss/element-plus/option.css +354 -0
  146. package/dist/runtime/public/scss/element-plus/overlay.css +317 -0
  147. package/dist/runtime/public/scss/element-plus/page-header.css +351 -0
  148. package/dist/runtime/public/scss/element-plus/pagination.css +586 -0
  149. package/dist/runtime/public/scss/element-plus/popconfirm.css +315 -0
  150. package/dist/runtime/public/scss/element-plus/popover.css +352 -0
  151. package/dist/runtime/public/scss/element-plus/popper.css +400 -0
  152. package/dist/runtime/public/scss/element-plus/progress.css +449 -0
  153. package/dist/runtime/public/scss/element-plus/radio-button.css +436 -0
  154. package/dist/runtime/public/scss/element-plus/radio-group.css +308 -0
  155. package/dist/runtime/public/scss/element-plus/radio.css +561 -0
  156. package/dist/runtime/public/scss/element-plus/rate.css +384 -0
  157. package/dist/runtime/public/scss/element-plus/reset.css +399 -0
  158. package/dist/runtime/public/scss/element-plus/result.css +381 -0
  159. package/dist/runtime/public/scss/element-plus/row.css +339 -0
  160. package/dist/runtime/public/scss/element-plus/scrollbar.css +373 -0
  161. package/dist/runtime/public/scss/element-plus/segmented.css +460 -0
  162. package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +351 -0
  163. package/dist/runtime/public/scss/element-plus/select-dropdown.css +351 -0
  164. package/dist/runtime/public/scss/element-plus/select-v2.css +765 -0
  165. package/dist/runtime/public/scss/element-plus/select.css +765 -0
  166. package/dist/runtime/public/scss/element-plus/skeleton-item.css +372 -0
  167. package/dist/runtime/public/scss/element-plus/skeleton.css +335 -0
  168. package/dist/runtime/public/scss/element-plus/slider.css +480 -0
  169. package/dist/runtime/public/scss/element-plus/space.css +317 -0
  170. package/dist/runtime/public/scss/element-plus/spinner.css +342 -0
  171. package/dist/runtime/public/scss/element-plus/statistic.css +336 -0
  172. package/dist/runtime/public/scss/element-plus/step.css +586 -0
  173. package/dist/runtime/public/scss/element-plus/steps.css +319 -0
  174. package/dist/runtime/public/scss/element-plus/sub-menu.css +0 -0
  175. package/dist/runtime/public/scss/element-plus/switch.css +594 -0
  176. package/dist/runtime/public/scss/element-plus/tab-pane.css +0 -0
  177. package/dist/runtime/public/scss/element-plus/table-column.css +382 -0
  178. package/dist/runtime/public/scss/element-plus/table-v2.css +520 -0
  179. package/dist/runtime/public/scss/element-plus/table.css +893 -0
  180. package/dist/runtime/public/scss/element-plus/tabs.css +892 -0
  181. package/dist/runtime/public/scss/element-plus/tag.css +624 -0
  182. package/dist/runtime/public/scss/element-plus/text.css +378 -0
  183. package/dist/runtime/public/scss/element-plus/time-picker.css +1023 -0
  184. package/dist/runtime/public/scss/element-plus/time-select.css +946 -0
  185. package/dist/runtime/public/scss/element-plus/timeline-item.css +415 -0
  186. package/dist/runtime/public/scss/element-plus/timeline.css +334 -0
  187. package/dist/runtime/public/scss/element-plus/tooltip-v2.css +410 -0
  188. package/dist/runtime/public/scss/element-plus/tooltip.css +0 -0
  189. package/dist/runtime/public/scss/element-plus/tour.css +461 -0
  190. package/dist/runtime/public/scss/element-plus/transfer.css +497 -0
  191. package/dist/runtime/public/scss/element-plus/tree-select.css +325 -0
  192. package/dist/runtime/public/scss/element-plus/tree.css +538 -0
  193. package/dist/runtime/public/scss/element-plus/upload.css +862 -0
  194. package/dist/runtime/public/scss/element-plus/var.css +389 -0
  195. package/dist/runtime/public/scss/element-plus/virtual-list.css +330 -0
  196. package/dist/runtime/public/scss/theme.css +1268 -0
  197. package/dist/runtime/server/tsconfig.json +6 -0
  198. package/dist/runtime/types.d.ts +31 -0
  199. package/dist/types.d.mts +7 -0
  200. package/dist/types.d.ts +7 -0
  201. package/package.json +35 -12
  202. package/components/TimusIcons.vue +0 -54
  203. package/generate-icon.js +0 -22
  204. package/module.ts +0 -84
  205. package/pages/icons.vue +0 -37
  206. package/plugins/sample-plugin.ts +0 -5
  207. package/public/isax/fonts/iconsax.svg +0 -927
  208. package/public/isax/fonts/iconsax.ttf +0 -0
  209. package/public/isax/fonts/iconsax.woff +0 -0
  210. package/public/isax/icons.json +0 -899
  211. package/public/isax/selection.json +0 -1
  212. package/public/isax/style.css +0 -1
  213. package/public/isax/style.scss +0 -5435
  214. package/public/isax/variables.scss +0 -900
@@ -0,0 +1,224 @@
1
+ export const path = [
2
+ /* Users */
3
+ {
4
+ regex: /^\/about$/,
5
+ label: "header.about.text"
6
+ },
7
+ {
8
+ regex: /^\/users$/,
9
+ label: "header.users.text",
10
+ path: "/users?tab=users"
11
+ },
12
+ {
13
+ regex: /^\/users\/(\d+)/,
14
+ label: "header.users.detail.text"
15
+ },
16
+ {
17
+ regex: /^\/teams/,
18
+ label: "header.teams.text",
19
+ path: "/users?tab=teams"
20
+ },
21
+ {
22
+ regex: /^\/teams\/(\d+)/,
23
+ label: "header.teams.detail.text"
24
+ },
25
+ /* Devices */
26
+ {
27
+ regex: /^\/devices\/telemetry\/([A-Za-z0-9\-_]+)/,
28
+ label: "header.devices.detail.text",
29
+ hidden: true
30
+ },
31
+ {
32
+ regex: /^\/devices\/(?![telemetry])([A-Za-z0-9\-_]+)/,
33
+ // regex: /^\/devices\/details(?:\/([A-Za-z0-9\-_]+))?$/,
34
+ label: "header.devices.posture_details.text"
35
+ },
36
+ /* Sites */
37
+ {
38
+ regex: /^\/sites\/(\d+)/,
39
+ label: "header.sites.detail.text"
40
+ },
41
+ /* Sites Custom Port */
42
+ {
43
+ regex: /^\/sites\/([^/]+)\/custom-ports/,
44
+ label: "header.sites.custom_ports.text"
45
+ },
46
+ /* Rules */
47
+ {
48
+ regex: /^\/rules$/,
49
+ label: "header.rules.text",
50
+ path: "/rules/firewall"
51
+ },
52
+ {
53
+ regex: /^\/rules\/firewall\/create/,
54
+ label: "header.rules.firewall.create.text"
55
+ },
56
+ {
57
+ regex: /^\/rules\/firewall\/(?!create)([A-Za-z0-9\-_]+)/,
58
+ label: "header.rules.firewall.detail.text"
59
+ },
60
+ {
61
+ regex: /^\/rules\/forwarding\/(?!create)([A-Za-z0-9\-_]+)/,
62
+ label: "header.rules.forwarding.detail.text"
63
+ },
64
+ {
65
+ regex: /^\/rules\/acls\/([A-Za-z0-9\-_]+)/,
66
+ label: "header.rules.acls.edit.text"
67
+ },
68
+ /* Ztna - Zero Trust Security */
69
+ {
70
+ regex: /^\/ztna$/,
71
+ label: "header.ztna.text",
72
+ path: "/ztna/dashboard"
73
+ },
74
+ {
75
+ regex: /^\/ztna\/device-posture-check\/(view|edit)$/,
76
+ hidden: true
77
+ },
78
+ {
79
+ regex: /^\/ztna\/device-posture-check\/view\/([A-Za-z0-9\-_]+)/,
80
+ label: "header.ztna.device-posture-check.view.text"
81
+ },
82
+ {
83
+ regex: /^\/ztna\/device-posture-check\/edit\/([A-Za-z0-9\-_]+)/,
84
+ label: "header.ztna.device-posture-check.edit.text"
85
+ },
86
+ /* Insights */
87
+ {
88
+ regex: /^\/insights$/,
89
+ // /insights ya da /insights/alerts ikisinden biri yeterli
90
+ label: "header.insights.text",
91
+ path: "/insights/alerts?tab=alerts&page=1"
92
+ },
93
+ {
94
+ regex: /^\/insights(?:\/alerts)$/,
95
+ // /insights ya da /insights/alerts ikisinden biri yeterli
96
+ label: "header.insights.alerts.text",
97
+ path: "/insights/alerts?tab=alerts&page=1"
98
+ },
99
+ {
100
+ regex: /^\/insights(?:\/traffic)$/,
101
+ // /insights ya da /insights/alerts ikisinden biri yeterli
102
+ label: "header.insights.traffic.text",
103
+ path: "/insights/traffic?tab=log&page=1"
104
+ },
105
+ {
106
+ regex: /^\/insights(?:\/events)$/,
107
+ // /insights ya da /insights/events ikisinden biri yeterli
108
+ label: "header.insights.events.text",
109
+ path: "/insights/events?tab=user&page=1"
110
+ },
111
+ {
112
+ regex: /^\/insights\/reports\/(?!templates)([A-Za-z0-9\-_]+)/,
113
+ label: "header.insights.tracker.reports.detail.text"
114
+ },
115
+ {
116
+ regex: /^\/insights\/reports\/templates$/,
117
+ label: "header.insights.tracker.reports.templates.text",
118
+ path: "/insights/reports?page=1"
119
+ },
120
+ {
121
+ regex: /^\/insights\/reports\/templates\/([A-Za-z0-9\-_]+)/,
122
+ label: "header.insights.tracker.reports.templates.edit.text"
123
+ },
124
+ {
125
+ regex: /^\/insights\/tracker$/,
126
+ label: "header.insights.tracker.text",
127
+ path: "/insights/tracker?tab=overview"
128
+ },
129
+ {
130
+ regex: /^\/insights\/tracker\/overview$/,
131
+ label: "header.insights.tracker.overview.text",
132
+ path: "/insights/tracker?tab=overview"
133
+ },
134
+ {
135
+ regex: /^\/insights\/tracker\/user(?:s)?$/,
136
+ label: "header.insights.tracker.users.text",
137
+ path: "/insights/tracker?tab=users"
138
+ },
139
+ {
140
+ regex: /^\/insights\/tracker\/team(?:s)?$/,
141
+ label: "header.insights.tracker.teams.text",
142
+ path: "/insights/tracker?tab=teams"
143
+ },
144
+ {
145
+ regex: /^\/insights\/tracker\/application(?:s)?$/,
146
+ label: "header.insights.tracker.applications.text",
147
+ path: "/insights/tracker?tab=applications"
148
+ },
149
+ {
150
+ regex: /^\/insights\/tracker\/user\/([A-Za-z0-9\-_]+)/,
151
+ label: "header.insights.tracker.user.detail.text"
152
+ },
153
+ {
154
+ regex: /^\/insights\/tracker\/team\/([A-Za-z0-9\-_]+)/,
155
+ label: "header.insights.tracker.team.detail.text"
156
+ },
157
+ {
158
+ regex: /^\/insights\/tracker\/application\/([A-Za-z0-9\-_]+)/,
159
+ label: "header.insights.tracker.application.detail.text"
160
+ },
161
+ {
162
+ regex: /^\/insights\/dpc-reports$/,
163
+ // /insights ya da /insights/events ikisinden biri yeterli
164
+ label: "header.insights.dpc-reports.text",
165
+ path: "/insights/dpc-reports?tab=overview"
166
+ },
167
+ {
168
+ regex: /^\/insights\/dpc-reports\/(?!overview|devices|posture_checks)([A-Za-z0-9\-_]+)$/,
169
+ label: "header.insights.dpc-reports.detail.text",
170
+ path: "/insights/dpc-reports?tab=overview"
171
+ },
172
+ {
173
+ regex: /^\/insights\/dpc-reports\/([A-Za-z0-9\-_]+)\/([A-Za-z0-9\-_]+)$/,
174
+ label: "header.insights.dpc-reports.batch_id.detail.text",
175
+ path: "/insights/dpc-reports?tab=overview",
176
+ deep: true,
177
+ parameter: "show"
178
+ },
179
+ {
180
+ regex: /^\/settings$/,
181
+ label: "header.settings.text",
182
+ path: "/settings/integrations"
183
+ },
184
+ {
185
+ regex: /^\/settings\/configuration\/(?:trusted_networks|trusted-networks)$/,
186
+ label: "header.settings.configuration.trusted_networks.text",
187
+ path: "/settings/configuration?tab=trusted_networks"
188
+ },
189
+ {
190
+ regex: /^\/settings\/configuration\/trusted-networks\/(?!create)([A-Za-z0-9\-_]+)$/,
191
+ label: "header.settings.configuration.trusted_networks.edit.text",
192
+ path: "/settings/configuration?tab=trusted_networks"
193
+ },
194
+ {
195
+ regex: /^\/settings\/tags\/new$/,
196
+ label: "header.settings.tags.new.text"
197
+ },
198
+ {
199
+ regex: /^\/settings\/tags\/(?!new)([A-Za-z0-9\-_]+)/,
200
+ label: "header.settings.tags.detail.text"
201
+ },
202
+ {
203
+ regex: /^\/settings\/administrators$/,
204
+ label: "header.settings.administrators.text"
205
+ },
206
+ {
207
+ regex: /^\/settings\/administrators\/roles$/,
208
+ label: "header.settings.administrators.roles.text",
209
+ path: "/settings/administrators?tab=roles"
210
+ },
211
+ {
212
+ regex: /^\/settings\/administrators\/roles\/detail$/,
213
+ label: "header.settings.administrators.roles.create.text"
214
+ },
215
+ {
216
+ regex: /^\/settings\/administrators\/roles\/detail\?id=\d+$/,
217
+ label: "header.settings.administrators.roles.edit.text"
218
+ }
219
+ // {
220
+ // path: 'settings',
221
+ // regex: '/settings/.*',
222
+ // label: 'header.settings.detail.text',
223
+ // },
224
+ ];
@@ -0,0 +1,83 @@
1
+ <template>
2
+ <div class="flex gap-4 items-center">
3
+ <template v-if="false">
4
+ <!-- Back butonu entegre etmek istersek bu v-if'i silmek işi çözer -->
5
+ <el-button v-if="$route.path !== '/'" class="isax-arrow-left outline" size="mini" @click="$router.go(-1)" />
6
+ </template>
7
+ <el-breadcrumb separator="">
8
+ <el-breadcrumb-item v-for="(crumb, index) in list" :key="index" v-bind="index < list.length - 1 ? { to: { path: crumb.path } } : {}">
9
+ {{ $t(crumb.label) }}
10
+ <!--{{ crumb }} Tüm Objeyi Görüntülemek İçin Bunu Kullan -->
11
+ </el-breadcrumb-item>
12
+ </el-breadcrumb>
13
+ </div>
14
+ </template>
15
+
16
+ <script>
17
+ export default {
18
+ props: {
19
+ onChange: {
20
+ type: Array,
21
+ default: () => []
22
+ },
23
+ paths: {
24
+ type: Array,
25
+ default: () => []
26
+ }
27
+ },
28
+ computed: {
29
+ list() {
30
+ const pathArray = this.$route.path.split("/");
31
+ const { tab, id } = this.$route.query;
32
+ const breadcrumbs = [];
33
+ let link = "";
34
+ breadcrumbs.push({
35
+ path: "/",
36
+ label: "header.home.text"
37
+ });
38
+ pathArray.filter(Boolean).forEach((path, index) => {
39
+ link += "/" + path;
40
+ index === pathArray.length - 2 && id && !tab && (link += "?id=" + id);
41
+ const matched = this.findBestMatch(link);
42
+ matched && !matched?.hidden && breadcrumbs.push(matched);
43
+ });
44
+ if (tab) {
45
+ const matched = this.findBestMatch(link + "/" + tab);
46
+ matched && !matched?.hidden && breadcrumbs.push(matched);
47
+ }
48
+ return breadcrumbs;
49
+ }
50
+ },
51
+ methods: {
52
+ findBestMatch(url) {
53
+ let bestMatch = null;
54
+ let maxMatchLength = 0;
55
+ this.paths.forEach((route) => {
56
+ const regex = new RegExp(route.regex);
57
+ if (regex.test(url)) {
58
+ const match = url?.match(regex);
59
+ if (match[0].length > maxMatchLength) {
60
+ maxMatchLength = match.length;
61
+ route.path = route.path ?? match[0];
62
+ match[1] && ([, route.value] = match);
63
+ bestMatch = route;
64
+ }
65
+ }
66
+ });
67
+ if (!bestMatch) {
68
+ let label = "header";
69
+ let filteredArray = url.split("/").filter(Boolean);
70
+ filteredArray.forEach((path) => {
71
+ label = label + `.${path}`;
72
+ });
73
+ bestMatch = {
74
+ label: label + ".text",
75
+ path: url,
76
+ auto: true
77
+ };
78
+ }
79
+ return bestMatch;
80
+ }
81
+ }
82
+ };
83
+ </script>
@@ -0,0 +1,340 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ onChange: {
3
+ type: ArrayConstructor;
4
+ default: () => never[];
5
+ };
6
+ paths: {
7
+ type: ArrayConstructor;
8
+ default: () => never[];
9
+ };
10
+ }>, {}, {}, {
11
+ list(): ({
12
+ label: string;
13
+ path: any;
14
+ auto: boolean;
15
+ } | {
16
+ path: string;
17
+ label: string;
18
+ })[];
19
+ }, {
20
+ findBestMatch(url: any): {
21
+ label: string;
22
+ path: any;
23
+ auto: boolean;
24
+ };
25
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
+ onChange: {
27
+ type: ArrayConstructor;
28
+ default: () => never[];
29
+ };
30
+ paths: {
31
+ type: ArrayConstructor;
32
+ default: () => never[];
33
+ };
34
+ }>> & Readonly<{}>, {
35
+ onChange: unknown[];
36
+ paths: unknown[];
37
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
38
+ export default _default;
39
+ declare module 'vue' {
40
+ interface GlobalComponents {
41
+ }
42
+ interface GlobalDirectives {
43
+ }
44
+ }
45
+ declare global {
46
+ const __VLS_intrinsicElements: __VLS_IntrinsicElements;
47
+ const __VLS_directiveBindingRestFields: {
48
+ instance: null;
49
+ oldValue: null;
50
+ modifiers: any;
51
+ dir: any;
52
+ };
53
+ const __VLS_unref: typeof import('vue').unref;
54
+ const __VLS_nativeElements: {
55
+ a: HTMLAnchorElement;
56
+ abbr: HTMLElement;
57
+ address: HTMLElement;
58
+ area: HTMLAreaElement;
59
+ article: HTMLElement;
60
+ aside: HTMLElement;
61
+ audio: HTMLAudioElement;
62
+ b: HTMLElement;
63
+ base: HTMLBaseElement;
64
+ bdi: HTMLElement;
65
+ bdo: HTMLElement;
66
+ blockquote: HTMLQuoteElement;
67
+ body: HTMLBodyElement;
68
+ br: HTMLBRElement;
69
+ button: HTMLButtonElement;
70
+ canvas: HTMLCanvasElement;
71
+ caption: HTMLTableCaptionElement;
72
+ cite: HTMLElement;
73
+ code: HTMLElement;
74
+ col: HTMLTableColElement;
75
+ colgroup: HTMLTableColElement;
76
+ data: HTMLDataElement;
77
+ datalist: HTMLDataListElement;
78
+ dd: HTMLElement;
79
+ del: HTMLModElement;
80
+ details: HTMLDetailsElement;
81
+ dfn: HTMLElement;
82
+ dialog: HTMLDialogElement;
83
+ div: HTMLDivElement;
84
+ dl: HTMLDListElement;
85
+ dt: HTMLElement;
86
+ em: HTMLElement;
87
+ embed: HTMLEmbedElement;
88
+ fieldset: HTMLFieldSetElement;
89
+ figcaption: HTMLElement;
90
+ figure: HTMLElement;
91
+ footer: HTMLElement;
92
+ form: HTMLFormElement;
93
+ h1: HTMLHeadingElement;
94
+ h2: HTMLHeadingElement;
95
+ h3: HTMLHeadingElement;
96
+ h4: HTMLHeadingElement;
97
+ h5: HTMLHeadingElement;
98
+ h6: HTMLHeadingElement;
99
+ head: HTMLHeadElement;
100
+ header: HTMLElement;
101
+ hgroup: HTMLElement;
102
+ hr: HTMLHRElement;
103
+ html: HTMLHtmlElement;
104
+ i: HTMLElement;
105
+ iframe: HTMLIFrameElement;
106
+ img: HTMLImageElement;
107
+ input: HTMLInputElement;
108
+ ins: HTMLModElement;
109
+ kbd: HTMLElement;
110
+ label: HTMLLabelElement;
111
+ legend: HTMLLegendElement;
112
+ li: HTMLLIElement;
113
+ link: HTMLLinkElement;
114
+ main: HTMLElement;
115
+ map: HTMLMapElement;
116
+ mark: HTMLElement;
117
+ menu: HTMLMenuElement;
118
+ meta: HTMLMetaElement;
119
+ meter: HTMLMeterElement;
120
+ nav: HTMLElement;
121
+ noscript: HTMLElement;
122
+ object: HTMLObjectElement;
123
+ ol: HTMLOListElement;
124
+ optgroup: HTMLOptGroupElement;
125
+ option: HTMLOptionElement;
126
+ output: HTMLOutputElement;
127
+ p: HTMLParagraphElement;
128
+ picture: HTMLPictureElement;
129
+ pre: HTMLPreElement;
130
+ progress: HTMLProgressElement;
131
+ q: HTMLQuoteElement;
132
+ rp: HTMLElement;
133
+ rt: HTMLElement;
134
+ ruby: HTMLElement;
135
+ s: HTMLElement;
136
+ samp: HTMLElement;
137
+ script: HTMLScriptElement;
138
+ search: HTMLElement;
139
+ section: HTMLElement;
140
+ select: HTMLSelectElement;
141
+ slot: HTMLSlotElement;
142
+ small: HTMLElement;
143
+ source: HTMLSourceElement;
144
+ span: HTMLSpanElement;
145
+ strong: HTMLElement;
146
+ style: HTMLStyleElement;
147
+ sub: HTMLElement;
148
+ summary: HTMLElement;
149
+ sup: HTMLElement;
150
+ table: HTMLTableElement;
151
+ tbody: HTMLTableSectionElement;
152
+ td: HTMLTableCellElement;
153
+ template: HTMLTemplateElement;
154
+ textarea: HTMLTextAreaElement;
155
+ tfoot: HTMLTableSectionElement;
156
+ th: HTMLTableCellElement;
157
+ thead: HTMLTableSectionElement;
158
+ time: HTMLTimeElement;
159
+ title: HTMLTitleElement;
160
+ tr: HTMLTableRowElement;
161
+ track: HTMLTrackElement;
162
+ u: HTMLElement;
163
+ ul: HTMLUListElement;
164
+ var: HTMLElement;
165
+ video: HTMLVideoElement;
166
+ wbr: HTMLElement;
167
+ animate: SVGAnimateElement;
168
+ animateMotion: SVGAnimateMotionElement;
169
+ animateTransform: SVGAnimateTransformElement;
170
+ circle: SVGCircleElement;
171
+ clipPath: SVGClipPathElement;
172
+ defs: SVGDefsElement;
173
+ desc: SVGDescElement;
174
+ ellipse: SVGEllipseElement;
175
+ feBlend: SVGFEBlendElement;
176
+ feColorMatrix: SVGFEColorMatrixElement;
177
+ feComponentTransfer: SVGFEComponentTransferElement;
178
+ feComposite: SVGFECompositeElement;
179
+ feConvolveMatrix: SVGFEConvolveMatrixElement;
180
+ feDiffuseLighting: SVGFEDiffuseLightingElement;
181
+ feDisplacementMap: SVGFEDisplacementMapElement;
182
+ feDistantLight: SVGFEDistantLightElement;
183
+ feDropShadow: SVGFEDropShadowElement;
184
+ feFlood: SVGFEFloodElement;
185
+ feFuncA: SVGFEFuncAElement;
186
+ feFuncB: SVGFEFuncBElement;
187
+ feFuncG: SVGFEFuncGElement;
188
+ feFuncR: SVGFEFuncRElement;
189
+ feGaussianBlur: SVGFEGaussianBlurElement;
190
+ feImage: SVGFEImageElement;
191
+ feMerge: SVGFEMergeElement;
192
+ feMergeNode: SVGFEMergeNodeElement;
193
+ feMorphology: SVGFEMorphologyElement;
194
+ feOffset: SVGFEOffsetElement;
195
+ fePointLight: SVGFEPointLightElement;
196
+ feSpecularLighting: SVGFESpecularLightingElement;
197
+ feSpotLight: SVGFESpotLightElement;
198
+ feTile: SVGFETileElement;
199
+ feTurbulence: SVGFETurbulenceElement;
200
+ filter: SVGFilterElement;
201
+ foreignObject: SVGForeignObjectElement;
202
+ g: SVGGElement;
203
+ image: SVGImageElement;
204
+ line: SVGLineElement;
205
+ linearGradient: SVGLinearGradientElement;
206
+ marker: SVGMarkerElement;
207
+ mask: SVGMaskElement;
208
+ metadata: SVGMetadataElement;
209
+ mpath: SVGMPathElement;
210
+ path: SVGPathElement;
211
+ pattern: SVGPatternElement;
212
+ polygon: SVGPolygonElement;
213
+ polyline: SVGPolylineElement;
214
+ radialGradient: SVGRadialGradientElement;
215
+ rect: SVGRectElement;
216
+ set: SVGSetElement;
217
+ stop: SVGStopElement;
218
+ svg: SVGSVGElement;
219
+ switch: SVGSwitchElement;
220
+ symbol: SVGSymbolElement;
221
+ text: SVGTextElement;
222
+ textPath: SVGTextPathElement;
223
+ tspan: SVGTSpanElement;
224
+ use: SVGUseElement;
225
+ view: SVGViewElement;
226
+ };
227
+ type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements;
228
+ type __VLS_Element = import('vue/jsx-runtime').JSX.Element;
229
+ type __VLS_GlobalComponents = import('vue').GlobalComponents & Pick<typeof import('vue'), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'>;
230
+ type __VLS_GlobalDirectives = import('vue').GlobalDirectives;
231
+ type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
232
+ type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
233
+ type __VLS_unknownDirective = (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void;
234
+ type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
235
+ [K in N0]: LocalComponents[N1];
236
+ } : N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
237
+ [K in N0]: LocalComponents[N2];
238
+ } : N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
239
+ [K in N0]: LocalComponents[N3];
240
+ } : N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
241
+ [K in N0]: __VLS_GlobalComponents[N1];
242
+ } : N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
243
+ [K in N0]: __VLS_GlobalComponents[N2];
244
+ } : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
245
+ [K in N0]: __VLS_GlobalComponents[N3];
246
+ } : {
247
+ [K in N0]: unknown;
248
+ };
249
+ type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
250
+ __ctx?: {
251
+ props?: infer P;
252
+ };
253
+ } ? NonNullable<P> : never : T extends (props: infer P, ...args: any) => any ? P : {};
254
+ type __VLS_IsFunction<T, K> = K extends keyof T ? __VLS_IsAny<T[K]> extends false ? unknown extends T[K] ? false : true : false : false;
255
+ type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
256
+ type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R) : never;
257
+ type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never>;
258
+ type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? {
259
+ [K in E & string]: (...args: A) => void;
260
+ } : never : never;
261
+ type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & {
262
+ [K in keyof T]: T[K] extends any[] ? {
263
+ (...args: T[K]): void;
264
+ } : never;
265
+ }>>;
266
+ type __VLS_PrettifyGlobal<T> = {
267
+ [K in keyof T]: T[K];
268
+ } & {};
269
+ function __VLS_getVForSourceType(source: number): [number, number, number][];
270
+ function __VLS_getVForSourceType(source: string): [string, number, number][];
271
+ function __VLS_getVForSourceType<T extends any[]>(source: T): [
272
+ item: T[number],
273
+ key: number,
274
+ index: number
275
+ ][];
276
+ function __VLS_getVForSourceType<T extends {
277
+ [Symbol.iterator](): Iterator<any>;
278
+ }>(source: T): [
279
+ item: T extends {
280
+ [Symbol.iterator](): Iterator<infer T1>;
281
+ } ? T1 : never,
282
+ key: number,
283
+ index: undefined
284
+ ][];
285
+ function __VLS_getVForSourceType<T extends number | {
286
+ [Symbol.iterator](): Iterator<any>;
287
+ }>(source: T): [
288
+ item: number | (Exclude<T, number> extends {
289
+ [Symbol.iterator](): Iterator<infer T1>;
290
+ } ? T1 : never),
291
+ key: number,
292
+ index: undefined
293
+ ][];
294
+ function __VLS_getVForSourceType<T>(source: T): [
295
+ item: T[keyof T],
296
+ key: keyof T,
297
+ index: number
298
+ ][];
299
+ function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
300
+ function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
301
+ function __VLS_directiveAsFunction<T extends import('vue').Directive>(dir: T): T extends (...args: any) => any ? T | __VLS_unknownDirective : NonNullable<(T & Record<string, __VLS_unknownDirective>)['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>;
302
+ function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
303
+ function __VLS_makeOptional<T>(t: T): {
304
+ [K in keyof T]?: T[K];
305
+ };
306
+ function __VLS_nonNullable<T>(t: T): T extends null | undefined ? never : T;
307
+ function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends {
308
+ $props: infer Props;
309
+ } ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
310
+ __ctx?: {
311
+ attrs?: any;
312
+ slots?: K extends {
313
+ $slots: infer Slots;
314
+ } ? Slots : any;
315
+ emit?: K extends {
316
+ $emit: infer Emit;
317
+ } ? Emit : any;
318
+ } & {
319
+ props?: (K extends {
320
+ $props: infer Props;
321
+ } ? Props : any) & Record<string, unknown>;
322
+ expose?(exposed: K): void;
323
+ };
324
+ } : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T> : T extends (...args: any) => any ? T : (_: {} & Record<string, unknown>, ctx?: any) => {
325
+ __ctx?: {
326
+ attrs?: any;
327
+ expose?: any;
328
+ slots?: any;
329
+ emit?: any;
330
+ props?: {} & Record<string, unknown>;
331
+ };
332
+ };
333
+ function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
334
+ function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
335
+ function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
336
+ __ctx?: infer Ctx;
337
+ } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
338
+ function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
339
+ function __VLS_tryAsConstant<const T>(t: T): T;
340
+ }
@@ -0,0 +1,8 @@
1
+ export declare function useBreadcrumb(): {
2
+ activeTab: import("vue").Ref<string, string>;
3
+ tabChanged: (tab: {
4
+ paneName: string;
5
+ }, _$event?: any) => void;
6
+ setActiveTab: (tab: string, initial?: boolean) => void;
7
+ setupBreadcrumbs: (tabs: string[]) => void;
8
+ };