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-03-24 12:57:37 +0300
committerShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-03-24 12:57:37 +0300
commit14253c35864828458ef3eeecb05591a7ae6e641e (patch)
tree0689a64cc3c2224baf5e26bdc91faad6813b34bb /web/html/common/text_modal.html
parent7b15274c842b31e8caded3e7f272237f31824852 (diff)
chore: moving the modals to a separate directory
Diffstat (limited to 'web/html/common/text_modal.html')
-rw-r--r--web/html/common/text_modal.html52
1 files changed, 0 insertions, 52 deletions
diff --git a/web/html/common/text_modal.html b/web/html/common/text_modal.html
deleted file mode 100644
index c15282b9..00000000
--- a/web/html/common/text_modal.html
+++ /dev/null
@@ -1,52 +0,0 @@
-{{define "textModal"}}
-<a-modal id="text-modal" v-model="txtModal.visible" :title="txtModal.title"
- :closable="true"
- :class="themeSwitcher.currentTheme">
- <template slot="footer">
- <a-button v-if="!ObjectUtil.isEmpty(txtModal.fileName)" icon="download"
- :href="'data:application/text;charset=utf-8,' + encodeURIComponent(txtModal.content)"
- :download="txtModal.fileName">[[ txtModal.fileName ]]
- </a-button>
- <a-button type="primary" @click="txtModal.copy(txtModal.content)">{{ i18n "copy" }}</a-button>
- </template>
- <a-input style="overflow-y: auto;" type="textarea" v-model="txtModal.content"
- :autosize="{ minRows: 10, maxRows: 20}"></a-input>
-</a-modal>
-
-<script>
-
- const txtModal = {
- title: '',
- content: '',
- fileName: '',
- qrcode: null,
- visible: false,
- show: function (title = '', content = '', fileName = '') {
- this.title = title;
- this.content = content;
- this.fileName = fileName;
- this.visible = true;
- },
- copy: function (content = '') {
- ClipboardManager
- .copyText(content)
- .then(() => {
- app.$message.success('{{ i18n "copied" }}')
- this.close();
- })
- },
- close: function () {
- this.visible = false;
- },
- };
-
- const textModalApp = new Vue({
- delimiters: ['[[', ']]'],
- el: '#text-modal',
- data: {
- txtModal: txtModal,
- },
- });
-
-</script>
-{{end}}