Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-04-06 12:40:33 +0300
committerGitHub <noreply@github.com>2025-04-06 12:40:33 +0300
commitbea19a263db88fef44b4356082b199fbfcc39a25 (patch)
treea111e9328c6273ad9721118238c40cf3004f72a9 /web/html/xui/component/aSettingListItem.html
parent878e0d02cd01a045f4f32464124c59e24f98aedd (diff)
Code refactoring (#2865)
* refactor: use vue inline styles in entire application * refactor: setting row in dashboard page * refactor: use blob for download file in text modal * refactor: move all html templates in `web/html` folder * refactor: `DeviceUtils` -> `MediaQueryMixin` The transition to mixins has been made, as they can update themselves. * chore: pretty right buttons in `outbounds` tab in xray settings * refactor: add translations for system status * refactor: adjust gutter spacing in setting list item * refactor: use native `a-input-password` for password field * chore: return old system status with new translations * chore: add missing translation
Diffstat (limited to 'web/html/xui/component/aSettingListItem.html')
-rw-r--r--web/html/xui/component/aSettingListItem.html49
1 files changed, 0 insertions, 49 deletions
diff --git a/web/html/xui/component/aSettingListItem.html b/web/html/xui/component/aSettingListItem.html
deleted file mode 100644
index 6a7d31d0..00000000
--- a/web/html/xui/component/aSettingListItem.html
+++ /dev/null
@@ -1,49 +0,0 @@
-{{define "component/settingListItem"}}
-<a-list-item :style="{ padding: padding }">
- <a-row>
- <a-col :lg="24" :xl="12">
- <a-list-item-meta>
- <template #title>
- <slot name="title"></slot>
- </template>
- <template #description>
- <slot name="description"></slot>
- </template>
- </a-list-item-meta>
- </a-col>
- <a-col :lg="24" :xl="12">
- <slot name="control"></slot>
- </a-col>
- </a-row>
-</a-list-item>
-{{end}}
-
-{{define "component/aSettingListItem"}}
-<script>
- Vue.component('a-setting-list-item', {
- props: {
- 'paddings': {
- type: String,
- required: false,
- defaultValue: "default",
- validator: function (value) {
- return ['small', 'default'].includes(value)
- }
- }
- },
- template: `{{ template "component/settingListItem" }}`,
- computed: {
- padding() {
- switch (this.paddings) {
- case "small":
- return "10px 20px !important"
- break;
- case "default":
- return "20px !important"
- break;
- }
- }
- }
- })
-</script>
-{{end}}