From bea19a263db88fef44b4356082b199fbfcc39a25 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Sun, 6 Apr 2025 16:40:33 +0700 Subject: 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 --- web/html/component/aClientTable.html | 267 +++++++++++++++++++++++++++++ web/html/component/aCustomStatistic.html | 42 +++++ web/html/component/aPersianDatepicker.html | 72 ++++++++ web/html/component/aSettingListItem.html | 49 ++++++ web/html/component/aSidebar.html | 103 +++++++++++ web/html/component/aTableSortable.html | 232 +++++++++++++++++++++++++ web/html/component/aThemeSwitch.html | 119 +++++++++++++ 7 files changed, 884 insertions(+) create mode 100644 web/html/component/aClientTable.html create mode 100644 web/html/component/aCustomStatistic.html create mode 100644 web/html/component/aPersianDatepicker.html create mode 100644 web/html/component/aSettingListItem.html create mode 100644 web/html/component/aSidebar.html create mode 100644 web/html/component/aTableSortable.html create mode 100644 web/html/component/aThemeSwitch.html (limited to 'web/html/component') diff --git a/web/html/component/aClientTable.html b/web/html/component/aClientTable.html new file mode 100644 index 00000000..868112d9 --- /dev/null +++ b/web/html/component/aClientTable.html @@ -0,0 +1,267 @@ +{{define "component/aClientTable"}} + + + + + + + + +{{end}} diff --git a/web/html/component/aCustomStatistic.html b/web/html/component/aCustomStatistic.html new file mode 100644 index 00000000..0bff128d --- /dev/null +++ b/web/html/component/aCustomStatistic.html @@ -0,0 +1,42 @@ +{{define "component/customStatistic"}} + +{{end}} + +{{define "component/aCustomStatistic"}} + + + +{{end}} \ No newline at end of file diff --git a/web/html/component/aPersianDatepicker.html b/web/html/component/aPersianDatepicker.html new file mode 100644 index 00000000..ebd85a08 --- /dev/null +++ b/web/html/component/aPersianDatepicker.html @@ -0,0 +1,72 @@ +{{define "component/persianDatepickerTemplate"}} + +{{end}} + +{{define "component/aPersianDatepicker"}} + + + + +{{end}} \ No newline at end of file diff --git a/web/html/component/aSettingListItem.html b/web/html/component/aSettingListItem.html new file mode 100644 index 00000000..27a7abac --- /dev/null +++ b/web/html/component/aSettingListItem.html @@ -0,0 +1,49 @@ +{{define "component/settingListItem"}} + + + + + + + + + + + + + +{{end}} + +{{define "component/aSettingListItem"}} + +{{end}} diff --git a/web/html/component/aSidebar.html b/web/html/component/aSidebar.html new file mode 100644 index 00000000..dfaebb17 --- /dev/null +++ b/web/html/component/aSidebar.html @@ -0,0 +1,103 @@ +{{define "component/sidebar/content"}} + +{{end}} + +{{define "component/aSidebar"}} + + + +{{end}} \ No newline at end of file diff --git a/web/html/component/aTableSortable.html b/web/html/component/aTableSortable.html new file mode 100644 index 00000000..443ac50c --- /dev/null +++ b/web/html/component/aTableSortable.html @@ -0,0 +1,232 @@ +{{define "component/sortableTableTrigger"}} + +{{end}} + +{{define "component/aTableSortable"}} + + +{{end}} \ No newline at end of file diff --git a/web/html/component/aThemeSwitch.html b/web/html/component/aThemeSwitch.html new file mode 100644 index 00000000..ccc17714 --- /dev/null +++ b/web/html/component/aThemeSwitch.html @@ -0,0 +1,119 @@ +{{define "component/themeSwitchTemplate"}} + +{{end}} + +{{define "component/themeSwitchTemplateLogin"}} + +{{end}} + +{{define "component/aThemeSwitch"}} + +{{end}} \ No newline at end of file -- cgit v1.2.3