refactor: renaming component templates

This commit is contained in:
Shishkevich D. 2025-03-17 10:12:43 +00:00
parent 631744e698
commit a83d2cc6a5
10 changed files with 16 additions and 16 deletions

View file

@ -473,8 +473,8 @@
</transition>
</a-layout>
{{template "js" .}}
{{template "component/themeSwitcher" .}}
{{template "component/password" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aPasswordInput" .}}
<script>
class User {
constructor() {

View file

@ -12,7 +12,7 @@
</template>
{{end}}
{{define "component/password"}}
{{define "component/aPasswordInput"}}
<script>
Vue.component('a-password-input', {
props: {

View file

@ -12,7 +12,7 @@
</template>
{{end}}
{{define "component/persianDatepicker"}}
{{define "component/aPersianDatepicker"}}
<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/persian-datepicker/persian-datepicker.min.js?{{ .cur_ver }}"></script>

View file

@ -18,7 +18,7 @@
</a-list-item>
{{end}}
{{define "component/setting"}}
{{define "component/aSettingListItem"}}
<script>
Vue.component('a-setting-list-item', {
props: {

View file

@ -3,7 +3,7 @@
@click="clickHandler" />
{{end}}
{{define "component/sortableTable"}}
{{define "component/aTableSortable"}}
<script>
const DRAGGABLE_ROW_CLASS = 'draggable-row';
const findParentRowElement = (el) => {

View file

@ -36,7 +36,7 @@
</template>
{{end}}
{{define "component/themeSwitcher"}}
{{define "component/aThemeSwitch"}}
<script>
function createThemeSwitcher() {
const isDarkTheme = localStorage.getItem('dark-mode') === 'true';

View file

@ -548,8 +548,8 @@
<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/dbinbound.js?{{ .cur_ver }}"></script>
{{template "component/themeSwitcher" .}}
{{template "component/persianDatepicker" .}}
{{template "component/aThemeSwitch" .}}
{{template "component/aPersianDatepicker" .}}
<script>
const columns = [{
title: "ID",

View file

@ -397,7 +397,7 @@
</a-modal>
</a-layout>
{{template "js" .}}
{{template "component/themeSwitcher" .}}
{{template "component/aThemeSwitch" .}}
{{template "textModal"}}
<script>
const State = {

View file

@ -663,9 +663,9 @@
</a-layout>
{{template "js" .}}
<script src="{{ .base_path }}assets/js/model/setting.js?{{ .cur_ver }}"></script>
{{template "component/themeSwitcher" .}}
{{template "component/password" .}}
{{template "component/setting"}}
{{template "component/aThemeSwitch" .}}
{{template "component/aPasswordInput" .}}
{{template "component/aSettingListItem" .}}
<script>
const app = new Vue({
delimiters: ['[[', ']]'],

View file

@ -788,9 +788,9 @@
</a-layout>
</a-layout>
{{template "js" .}}
{{template "component/themeSwitcher" .}}
{{template "component/sortableTable" .}}
{{template "component/setting"}}
{{template "component/aThemeSwitch" .}}
{{template "component/aTableSortable" .}}
{{template "component/aSettingListItem" .}}
{{template "ruleModal"}}
{{template "outModal"}}
{{template "reverseModal"}}