diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-04-06 12:40:33 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-06 12:40:33 +0300 |
| commit | bea19a263db88fef44b4356082b199fbfcc39a25 (patch) | |
| tree | a111e9328c6273ad9721118238c40cf3004f72a9 /web/html/xui/modals/text_modal.html | |
| parent | 878e0d02cd01a045f4f32464124c59e24f98aedd (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/xui/modals/text_modal.html')
| -rw-r--r-- | web/html/xui/modals/text_modal.html | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/web/html/xui/modals/text_modal.html b/web/html/xui/modals/text_modal.html deleted file mode 100644 index 77cb719e..00000000 --- a/web/html/xui/modals/text_modal.html +++ /dev/null @@ -1,52 +0,0 @@ -{{define "modals/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}} |
