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/component/aCustomStatistic.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/component/aCustomStatistic.html')
-rw-r--r--web/html/component/aCustomStatistic.html42
1 files changed, 42 insertions, 0 deletions
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"}}
+<template>
+ <a-statistic :title="title" :value="value">
+ <template #prefix>
+ <slot name="prefix"></slot>
+ </template>
+ <template #suffix>
+ <slot name="suffix"></slot>
+ </template>
+ </a-statistic>
+</template>
+{{end}}
+
+{{define "component/aCustomStatistic"}}
+<style>
+ .dark .ant-statistic-content {
+ color: var(--dark-color-text-primary)
+ }
+ .dark .ant-statistic-title {
+ color: rgba(255, 255, 255, 0.55)
+ }
+ .ant-statistic-content {
+ font-size: 16px;
+ }
+</style>
+
+<script>
+ Vue.component('a-custom-statistic', {
+ props: {
+ 'title': {
+ type: String,
+ required: false,
+ },
+ 'value': {
+ type: String,
+ required: false
+ }
+ },
+ template: `{{template "component/customStatistic"}}`,
+ });
+</script>
+{{end}} \ No newline at end of file