mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
refactor: renaming component templates
This commit is contained in:
parent
631744e698
commit
a83d2cc6a5
10 changed files with 16 additions and 16 deletions
|
@ -473,8 +473,8 @@
|
||||||
</transition>
|
</transition>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
{{template "js" .}}
|
{{template "js" .}}
|
||||||
{{template "component/themeSwitcher" .}}
|
{{template "component/aThemeSwitch" .}}
|
||||||
{{template "component/password" .}}
|
{{template "component/aPasswordInput" .}}
|
||||||
<script>
|
<script>
|
||||||
class User {
|
class User {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</template>
|
</template>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "component/password"}}
|
{{define "component/aPasswordInput"}}
|
||||||
<script>
|
<script>
|
||||||
Vue.component('a-password-input', {
|
Vue.component('a-password-input', {
|
||||||
props: {
|
props: {
|
|
@ -12,7 +12,7 @@
|
||||||
</template>
|
</template>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "component/persianDatepicker"}}
|
{{define "component/aPersianDatepicker"}}
|
||||||
<link rel="stylesheet" href="{{ .base_path }}assets/persian-datepicker/persian-datepicker.min.css?{{ .cur_ver }}" />
|
<link rel="stylesheet" href="{{ .base_path }}assets/persian-datepicker/persian-datepicker.min.css?{{ .cur_ver }}" />
|
||||||
<script src="{{ .base_path }}assets/moment/moment-jalali.min.js?{{ .cur_ver }}"></script>
|
<script src="{{ .base_path }}assets/moment/moment-jalali.min.js?{{ .cur_ver }}"></script>
|
||||||
<script src="{{ .base_path }}assets/persian-datepicker/persian-datepicker.min.js?{{ .cur_ver }}"></script>
|
<script src="{{ .base_path }}assets/persian-datepicker/persian-datepicker.min.js?{{ .cur_ver }}"></script>
|
|
@ -18,7 +18,7 @@
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "component/setting"}}
|
{{define "component/aSettingListItem"}}
|
||||||
<script>
|
<script>
|
||||||
Vue.component('a-setting-list-item', {
|
Vue.component('a-setting-list-item', {
|
||||||
props: {
|
props: {
|
|
@ -3,7 +3,7 @@
|
||||||
@click="clickHandler" />
|
@click="clickHandler" />
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "component/sortableTable"}}
|
{{define "component/aTableSortable"}}
|
||||||
<script>
|
<script>
|
||||||
const DRAGGABLE_ROW_CLASS = 'draggable-row';
|
const DRAGGABLE_ROW_CLASS = 'draggable-row';
|
||||||
const findParentRowElement = (el) => {
|
const findParentRowElement = (el) => {
|
|
@ -36,7 +36,7 @@
|
||||||
</template>
|
</template>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "component/themeSwitcher"}}
|
{{define "component/aThemeSwitch"}}
|
||||||
<script>
|
<script>
|
||||||
function createThemeSwitcher() {
|
function createThemeSwitcher() {
|
||||||
const isDarkTheme = localStorage.getItem('dark-mode') === 'true';
|
const isDarkTheme = localStorage.getItem('dark-mode') === 'true';
|
|
@ -548,8 +548,8 @@
|
||||||
<script src="{{ .base_path }}assets/uri/URI.min.js?{{ .cur_ver }}"></script>
|
<script src="{{ .base_path }}assets/uri/URI.min.js?{{ .cur_ver }}"></script>
|
||||||
<script src="{{ .base_path }}assets/js/model/inbound.js?{{ .cur_ver }}"></script>
|
<script src="{{ .base_path }}assets/js/model/inbound.js?{{ .cur_ver }}"></script>
|
||||||
<script src="{{ .base_path }}assets/js/model/dbinbound.js?{{ .cur_ver }}"></script>
|
<script src="{{ .base_path }}assets/js/model/dbinbound.js?{{ .cur_ver }}"></script>
|
||||||
{{template "component/themeSwitcher" .}}
|
{{template "component/aThemeSwitch" .}}
|
||||||
{{template "component/persianDatepicker" .}}
|
{{template "component/aPersianDatepicker" .}}
|
||||||
<script>
|
<script>
|
||||||
const columns = [{
|
const columns = [{
|
||||||
title: "ID",
|
title: "ID",
|
||||||
|
|
|
@ -397,7 +397,7 @@
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
{{template "js" .}}
|
{{template "js" .}}
|
||||||
{{template "component/themeSwitcher" .}}
|
{{template "component/aThemeSwitch" .}}
|
||||||
{{template "textModal"}}
|
{{template "textModal"}}
|
||||||
<script>
|
<script>
|
||||||
const State = {
|
const State = {
|
||||||
|
|
|
@ -663,9 +663,9 @@
|
||||||
</a-layout>
|
</a-layout>
|
||||||
{{template "js" .}}
|
{{template "js" .}}
|
||||||
<script src="{{ .base_path }}assets/js/model/setting.js?{{ .cur_ver }}"></script>
|
<script src="{{ .base_path }}assets/js/model/setting.js?{{ .cur_ver }}"></script>
|
||||||
{{template "component/themeSwitcher" .}}
|
{{template "component/aThemeSwitch" .}}
|
||||||
{{template "component/password" .}}
|
{{template "component/aPasswordInput" .}}
|
||||||
{{template "component/setting"}}
|
{{template "component/aSettingListItem" .}}
|
||||||
<script>
|
<script>
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
delimiters: ['[[', ']]'],
|
delimiters: ['[[', ']]'],
|
||||||
|
|
|
@ -788,9 +788,9 @@
|
||||||
</a-layout>
|
</a-layout>
|
||||||
</a-layout>
|
</a-layout>
|
||||||
{{template "js" .}}
|
{{template "js" .}}
|
||||||
{{template "component/themeSwitcher" .}}
|
{{template "component/aThemeSwitch" .}}
|
||||||
{{template "component/sortableTable" .}}
|
{{template "component/aTableSortable" .}}
|
||||||
{{template "component/setting"}}
|
{{template "component/aSettingListItem" .}}
|
||||||
{{template "ruleModal"}}
|
{{template "ruleModal"}}
|
||||||
{{template "outModal"}}
|
{{template "outModal"}}
|
||||||
{{template "reverseModal"}}
|
{{template "reverseModal"}}
|
||||||
|
|
Loading…
Reference in a new issue