eztech-core-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/index.css +405 -0
- package/ckeditor/CHANGES.md +2339 -0
- package/ckeditor/LICENSE.md +1444 -0
- package/ckeditor/MongolianScript.ttf +0 -0
- package/ckeditor/README.md +39 -0
- package/ckeditor/SECURITY.md +10 -0
- package/ckeditor/adapters/jquery.js +10 -0
- package/ckeditor/bender-runner.config.json +16 -0
- package/ckeditor/build-config.js +193 -0
- package/ckeditor/ckcontent.css +71 -0
- package/ckeditor/ckeditor.js +1446 -0
- package/ckeditor/cmdashitseden.ttf +0 -0
- package/ckeditor/config.js +21 -0
- package/ckeditor/contents.css +220 -0
- package/ckeditor/lang/af.js +5 -0
- package/ckeditor/lang/ar.js +5 -0
- package/ckeditor/lang/az.js +5 -0
- package/ckeditor/lang/bg.js +5 -0
- package/ckeditor/lang/bn.js +5 -0
- package/ckeditor/lang/bs.js +5 -0
- package/ckeditor/lang/ca.js +5 -0
- package/ckeditor/lang/cs.js +5 -0
- package/ckeditor/lang/cy.js +5 -0
- package/ckeditor/lang/da.js +5 -0
- package/ckeditor/lang/de-ch.js +5 -0
- package/ckeditor/lang/de.js +5 -0
- package/ckeditor/lang/el.js +5 -0
- package/ckeditor/lang/en-au.js +5 -0
- package/ckeditor/lang/en-ca.js +5 -0
- package/ckeditor/lang/en-gb.js +5 -0
- package/ckeditor/lang/en.js +5 -0
- package/ckeditor/lang/eo.js +5 -0
- package/ckeditor/lang/es-mx.js +5 -0
- package/ckeditor/lang/es.js +5 -0
- package/ckeditor/lang/et.js +5 -0
- package/ckeditor/lang/eu.js +5 -0
- package/ckeditor/lang/fa.js +5 -0
- package/ckeditor/lang/fi.js +5 -0
- package/ckeditor/lang/fo.js +5 -0
- package/ckeditor/lang/fr-ca.js +5 -0
- package/ckeditor/lang/fr.js +5 -0
- package/ckeditor/lang/gl.js +5 -0
- package/ckeditor/lang/gu.js +5 -0
- package/ckeditor/lang/he.js +5 -0
- package/ckeditor/lang/hi.js +5 -0
- package/ckeditor/lang/hr.js +5 -0
- package/ckeditor/lang/hu.js +5 -0
- package/ckeditor/lang/id.js +5 -0
- package/ckeditor/lang/is.js +5 -0
- package/ckeditor/lang/it.js +5 -0
- package/ckeditor/lang/ja.js +5 -0
- package/ckeditor/lang/ka.js +5 -0
- package/ckeditor/lang/km.js +5 -0
- package/ckeditor/lang/ko.js +5 -0
- package/ckeditor/lang/ku.js +5 -0
- package/ckeditor/lang/lt.js +5 -0
- package/ckeditor/lang/lv.js +5 -0
- package/ckeditor/lang/mk.js +5 -0
- package/ckeditor/lang/mn.js +5 -0
- package/ckeditor/lang/ms.js +5 -0
- package/ckeditor/lang/nb.js +5 -0
- package/ckeditor/lang/nl.js +5 -0
- package/ckeditor/lang/no.js +5 -0
- package/ckeditor/lang/oc.js +5 -0
- package/ckeditor/lang/pl.js +5 -0
- package/ckeditor/lang/pt-br.js +5 -0
- package/ckeditor/lang/pt.js +5 -0
- package/ckeditor/lang/ro.js +5 -0
- package/ckeditor/lang/ru.js +5 -0
- package/ckeditor/lang/si.js +5 -0
- package/ckeditor/lang/sk.js +5 -0
- package/ckeditor/lang/sl.js +5 -0
- package/ckeditor/lang/sq.js +5 -0
- package/ckeditor/lang/sr-latn.js +5 -0
- package/ckeditor/lang/sr.js +5 -0
- package/ckeditor/lang/sv.js +5 -0
- package/ckeditor/lang/th.js +5 -0
- package/ckeditor/lang/tr.js +5 -0
- package/ckeditor/lang/tt.js +5 -0
- package/ckeditor/lang/ug.js +5 -0
- package/ckeditor/lang/uk.js +5 -0
- package/ckeditor/lang/vi.js +5 -0
- package/ckeditor/lang/zh-cn.js +5 -0
- package/ckeditor/lang/zh.js +5 -0
- package/ckeditor/monbaiti.ttf +0 -0
- package/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/az.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-au.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/about/dialogs/about.js +8 -0
- package/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- package/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.css +20 -0
- package/ckeditor/plugins/colordialog/dialogs/colordialog.js +14 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor-disabled.svg +25 -0
- package/ckeditor/plugins/copyformatting/cursors/cursor.svg +14 -0
- package/ckeditor/plugins/copyformatting/styles/copyformatting.css +45 -0
- package/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- package/ckeditor/plugins/dialog/styles/dialog.css +18 -0
- package/ckeditor/plugins/div/dialogs/div.js +10 -0
- package/ckeditor/plugins/find/dialogs/find.js +26 -0
- package/ckeditor/plugins/forms/dialogs/button.js +8 -0
- package/ckeditor/plugins/forms/dialogs/checkbox.js +9 -0
- package/ckeditor/plugins/forms/dialogs/form.js +8 -0
- package/ckeditor/plugins/forms/dialogs/hiddenfield.js +7 -0
- package/ckeditor/plugins/forms/dialogs/radio.js +9 -0
- package/ckeditor/plugins/forms/dialogs/select.js +21 -0
- package/ckeditor/plugins/forms/dialogs/textarea.js +9 -0
- package/ckeditor/plugins/forms/dialogs/textfield.js +11 -0
- package/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- package/ckeditor/plugins/icons.png +0 -0
- package/ckeditor/plugins/icons_hidpi.png +0 -0
- package/ckeditor/plugins/iframe/dialogs/iframe.js +11 -0
- package/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- package/ckeditor/plugins/image/dialogs/image.js +44 -0
- package/ckeditor/plugins/image/images/noimage.png +0 -0
- package/ckeditor/plugins/indent/dev/indent.html +285 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/hidpi/outdent.png +0 -0
- package/ckeditor/plugins/indent/icons/indent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/indent.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent-rtl.png +0 -0
- package/ckeditor/plugins/indent/icons/outdent.png +0 -0
- package/ckeditor/plugins/indent/lang/af.js +8 -0
- package/ckeditor/plugins/indent/lang/ar.js +8 -0
- package/ckeditor/plugins/indent/lang/az.js +8 -0
- package/ckeditor/plugins/indent/lang/bg.js +8 -0
- package/ckeditor/plugins/indent/lang/bn.js +8 -0
- package/ckeditor/plugins/indent/lang/bs.js +8 -0
- package/ckeditor/plugins/indent/lang/ca.js +8 -0
- package/ckeditor/plugins/indent/lang/cs.js +8 -0
- package/ckeditor/plugins/indent/lang/cy.js +8 -0
- package/ckeditor/plugins/indent/lang/da.js +8 -0
- package/ckeditor/plugins/indent/lang/de-ch.js +8 -0
- package/ckeditor/plugins/indent/lang/de.js +8 -0
- package/ckeditor/plugins/indent/lang/el.js +8 -0
- package/ckeditor/plugins/indent/lang/en-au.js +8 -0
- package/ckeditor/plugins/indent/lang/en-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/en-gb.js +8 -0
- package/ckeditor/plugins/indent/lang/en.js +8 -0
- package/ckeditor/plugins/indent/lang/eo.js +8 -0
- package/ckeditor/plugins/indent/lang/es-mx.js +8 -0
- package/ckeditor/plugins/indent/lang/es.js +8 -0
- package/ckeditor/plugins/indent/lang/et.js +8 -0
- package/ckeditor/plugins/indent/lang/eu.js +8 -0
- package/ckeditor/plugins/indent/lang/fa.js +8 -0
- package/ckeditor/plugins/indent/lang/fi.js +8 -0
- package/ckeditor/plugins/indent/lang/fo.js +8 -0
- package/ckeditor/plugins/indent/lang/fr-ca.js +8 -0
- package/ckeditor/plugins/indent/lang/fr.js +8 -0
- package/ckeditor/plugins/indent/lang/gl.js +8 -0
- package/ckeditor/plugins/indent/lang/gu.js +8 -0
- package/ckeditor/plugins/indent/lang/he.js +8 -0
- package/ckeditor/plugins/indent/lang/hi.js +8 -0
- package/ckeditor/plugins/indent/lang/hr.js +8 -0
- package/ckeditor/plugins/indent/lang/hu.js +8 -0
- package/ckeditor/plugins/indent/lang/id.js +8 -0
- package/ckeditor/plugins/indent/lang/is.js +8 -0
- package/ckeditor/plugins/indent/lang/it.js +8 -0
- package/ckeditor/plugins/indent/lang/ja.js +8 -0
- package/ckeditor/plugins/indent/lang/ka.js +8 -0
- package/ckeditor/plugins/indent/lang/km.js +8 -0
- package/ckeditor/plugins/indent/lang/ko.js +8 -0
- package/ckeditor/plugins/indent/lang/ku.js +8 -0
- package/ckeditor/plugins/indent/lang/lt.js +8 -0
- package/ckeditor/plugins/indent/lang/lv.js +8 -0
- package/ckeditor/plugins/indent/lang/mk.js +8 -0
- package/ckeditor/plugins/indent/lang/mn.js +8 -0
- package/ckeditor/plugins/indent/lang/ms.js +8 -0
- package/ckeditor/plugins/indent/lang/nb.js +8 -0
- package/ckeditor/plugins/indent/lang/nl.js +8 -0
- package/ckeditor/plugins/indent/lang/no.js +8 -0
- package/ckeditor/plugins/indent/lang/oc.js +8 -0
- package/ckeditor/plugins/indent/lang/pl.js +8 -0
- package/ckeditor/plugins/indent/lang/pt-br.js +8 -0
- package/ckeditor/plugins/indent/lang/pt.js +8 -0
- package/ckeditor/plugins/indent/lang/ro.js +8 -0
- package/ckeditor/plugins/indent/lang/ru.js +8 -0
- package/ckeditor/plugins/indent/lang/si.js +8 -0
- package/ckeditor/plugins/indent/lang/sk.js +8 -0
- package/ckeditor/plugins/indent/lang/sl.js +8 -0
- package/ckeditor/plugins/indent/lang/sq.js +8 -0
- package/ckeditor/plugins/indent/lang/sr-latn.js +8 -0
- package/ckeditor/plugins/indent/lang/sr.js +8 -0
- package/ckeditor/plugins/indent/lang/sv.js +8 -0
- package/ckeditor/plugins/indent/lang/th.js +8 -0
- package/ckeditor/plugins/indent/lang/tr.js +8 -0
- package/ckeditor/plugins/indent/lang/tt.js +8 -0
- package/ckeditor/plugins/indent/lang/ug.js +8 -0
- package/ckeditor/plugins/indent/lang/uk.js +8 -0
- package/ckeditor/plugins/indent/lang/vi.js +8 -0
- package/ckeditor/plugins/indent/lang/zh-cn.js +8 -0
- package/ckeditor/plugins/indent/lang/zh.js +8 -0
- package/ckeditor/plugins/indent/plugin.js +461 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/hidpi/justifyright.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyblock.png +0 -0
- package/ckeditor/plugins/justify/icons/justifycenter.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyleft.png +0 -0
- package/ckeditor/plugins/justify/icons/justifyright.png +0 -0
- package/ckeditor/plugins/justify/plugin.js +269 -0
- package/ckeditor/plugins/lineheight/LICENSE +22 -0
- package/ckeditor/plugins/lineheight/README.md +2 -0
- package/ckeditor/plugins/lineheight/lang/LANG.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ar.js +3 -0
- package/ckeditor/plugins/lineheight/lang/de.js +3 -0
- package/ckeditor/plugins/lineheight/lang/en.js +3 -0
- package/ckeditor/plugins/lineheight/lang/es.js +3 -0
- package/ckeditor/plugins/lineheight/lang/fr.js +3 -0
- package/ckeditor/plugins/lineheight/lang/ko.js +3 -0
- package/ckeditor/plugins/lineheight/lang/pt.js +3 -0
- package/ckeditor/plugins/lineheight/plugin.js +81 -0
- package/ckeditor/plugins/lineheight/readme.txt +30 -0
- package/ckeditor/plugins/link/dialogs/anchor.js +9 -0
- package/ckeditor/plugins/link/dialogs/link.js +30 -0
- package/ckeditor/plugins/link/images/anchor.png +0 -0
- package/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- package/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- package/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- package/ckeditor/plugins/magicline/images/icon.png +0 -0
- package/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/pastefromgdocs/filter/default.js +8 -0
- package/ckeditor/plugins/pastefromlibreoffice/filter/default.js +11 -0
- package/ckeditor/plugins/pastefromword/filter/default.js +43 -0
- package/ckeditor/plugins/pastetools/filter/common.js +24 -0
- package/ckeditor/plugins/pastetools/filter/image.js +12 -0
- package/ckeditor/plugins/preview/images/pagebreak.gif +0 -0
- package/ckeditor/plugins/preview/preview.html +13 -0
- package/ckeditor/plugins/preview/styles/screen.css +10 -0
- package/ckeditor/plugins/scayt/CHANGELOG.md +4 -0
- package/ckeditor/plugins/scayt/LICENSE.md +28 -0
- package/ckeditor/plugins/scayt/README.md +81 -0
- package/ckeditor/plugins/scayt/dialogs/dialog.css +23 -0
- package/ckeditor/plugins/scayt/dialogs/options.js +32 -0
- package/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- package/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css +25 -0
- package/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- package/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- package/ckeditor/plugins/simage/LICENSE +674 -0
- package/ckeditor/plugins/simage/README.md +73 -0
- package/ckeditor/plugins/simage/icons/simage.png +0 -0
- package/ckeditor/plugins/simage/plugin.js +154 -0
- package/ckeditor/plugins/smiley/dialogs/smiley.js +11 -0
- package/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angel_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/angry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/broken_heart.png +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/confused_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/cry_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/devil_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/embarrassed_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- package/ckeditor/plugins/smiley/images/envelope.png +0 -0
- package/ckeditor/plugins/smiley/images/heart.gif +0 -0
- package/ckeditor/plugins/smiley/images/heart.png +0 -0
- package/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- package/ckeditor/plugins/smiley/images/kiss.png +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- package/ckeditor/plugins/smiley/images/lightbulb.png +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/omg_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/regular_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/sad_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/shades_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/teeth_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_down.png +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- package/ckeditor/plugins/smiley/images/thumbs_up.png +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/tongue_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- package/ckeditor/plugins/smiley/images/wink_smile.png +0 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/az.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de-ch.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-au.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-ca.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es-mx.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/et.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/fr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/oc.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ro.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr-latn.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sr.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
- package/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- package/ckeditor/plugins/table/dialogs/table.js +22 -0
- package/ckeditor/plugins/tableselection/styles/tableselection.css +36 -0
- package/ckeditor/plugins/tabletools/dialogs/tableCell.js +18 -0
- package/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- package/ckeditor/plugins/templates/dialogs/templates.js +11 -0
- package/ckeditor/plugins/templates/templatedefinition.js +4 -0
- package/ckeditor/plugins/templates/templates/default.js +7 -0
- package/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- package/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- package/ckeditor/plugins/textindent/icons/hidpi/textindent.png +0 -0
- package/ckeditor/plugins/textindent/icons/textindent.png +0 -0
- package/ckeditor/plugins/textindent/lang/en.js +3 -0
- package/ckeditor/plugins/textindent/lang/pt-br.js +3 -0
- package/ckeditor/plugins/textindent/plugin.js +99 -0
- package/ckeditor/plugins/widget/images/handle.png +0 -0
- package/ckeditor/samples/css/samples.css +1637 -0
- package/ckeditor/samples/img/github-top.png +0 -0
- package/ckeditor/samples/img/header-bg.png +0 -0
- package/ckeditor/samples/img/header-separator.png +0 -0
- package/ckeditor/samples/img/logo.png +0 -0
- package/ckeditor/samples/img/logo.svg +13 -0
- package/ckeditor/samples/img/navigation-tip.png +0 -0
- package/ckeditor/samples/index.html +130 -0
- package/ckeditor/samples/js/sample.js +53 -0
- package/ckeditor/samples/js/sf.js +17 -0
- package/ckeditor/samples/old/ajax.html +85 -0
- package/ckeditor/samples/old/api.html +210 -0
- package/ckeditor/samples/old/appendto.html +59 -0
- package/ckeditor/samples/old/assets/inlineall/logo.png +0 -0
- package/ckeditor/samples/old/assets/outputxhtml/outputxhtml.css +204 -0
- package/ckeditor/samples/old/assets/posteddata.php +60 -0
- package/ckeditor/samples/old/assets/sample.jpg +0 -0
- package/ckeditor/samples/old/assets/uilanguages/languages.js +7 -0
- package/ckeditor/samples/old/datafiltering.html +508 -0
- package/ckeditor/samples/old/dialog/assets/my_dialog.js +48 -0
- package/ckeditor/samples/old/dialog/dialog.html +190 -0
- package/ckeditor/samples/old/divreplace.html +144 -0
- package/ckeditor/samples/old/enterkey/enterkey.html +106 -0
- package/ckeditor/samples/old/htmlwriter/outputhtml.html +224 -0
- package/ckeditor/samples/old/index.html +129 -0
- package/ckeditor/samples/old/inlineall.html +314 -0
- package/ckeditor/samples/old/inlinebycode.html +124 -0
- package/ckeditor/samples/old/inlinetextarea.html +113 -0
- package/ckeditor/samples/old/jquery.html +103 -0
- package/ckeditor/samples/old/magicline/magicline.html +209 -0
- package/ckeditor/samples/old/readonly.html +76 -0
- package/ckeditor/samples/old/replacebyclass.html +60 -0
- package/ckeditor/samples/old/replacebycode.html +59 -0
- package/ckeditor/samples/old/sample.css +357 -0
- package/ckeditor/samples/old/sample.js +50 -0
- package/ckeditor/samples/old/sample_posteddata.php +16 -0
- package/ckeditor/samples/old/tabindex.html +78 -0
- package/ckeditor/samples/old/toolbar/toolbar.html +235 -0
- package/ckeditor/samples/old/uicolor.html +72 -0
- package/ckeditor/samples/old/uilanguages.html +122 -0
- package/ckeditor/samples/old/wysiwygarea/fullpage.html +80 -0
- package/ckeditor/samples/old/xhtmlstyle.html +234 -0
- package/ckeditor/samples/toolbarconfigurator/css/fontello.css +55 -0
- package/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt +10 -0
- package/ckeditor/samples/toolbarconfigurator/font/config.json +28 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.eot +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.svg +14 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.ttf +0 -0
- package/ckeditor/samples/toolbarconfigurator/font/fontello.woff +0 -0
- package/ckeditor/samples/toolbarconfigurator/index.html +447 -0
- package/ckeditor/samples/toolbarconfigurator/js/abstracttoolbarmodifier.js +13 -0
- package/ckeditor/samples/toolbarconfigurator/js/fulltoolbareditor.js +9 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbarmodifier.js +33 -0
- package/ckeditor/samples/toolbarconfigurator/js/toolbartextmodifier.js +14 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE +19 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.css +325 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/codemirror.js +288 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/javascript.js +25 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css +36 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css +38 -0
- package/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.js +16 -0
- package/ckeditor/skins/moono-lisa/dialog.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/dialog_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/editor.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_gecko.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_ie8.css +5 -0
- package/ckeditor/skins/moono-lisa/editor_iequirks.css +5 -0
- package/ckeditor/skins/moono-lisa/icons.png +0 -0
- package/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- package/ckeditor/skins/moono-lisa/images/arrow.png +0 -0
- package/ckeditor/skins/moono-lisa/images/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/close.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/hidpi/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock-open.png +0 -0
- package/ckeditor/skins/moono-lisa/images/lock.png +0 -0
- package/ckeditor/skins/moono-lisa/images/refresh.png +0 -0
- package/ckeditor/skins/moono-lisa/images/spinner.gif +0 -0
- package/ckeditor/skins/moono-lisa/readme.md +46 -0
- package/ckeditor/styles.js +137 -0
- package/ckeditor/vendor/promise.js +13 -0
- package/comps/Animation/Checkbox.vue +37 -0
- package/comps/Animation/Radio.vue +30 -0
- package/comps/BooleanLabel.vue +40 -0
- package/comps/CardButton.vue +18 -0
- package/comps/CardImage.vue +40 -0
- package/comps/CardItem.vue +63 -0
- package/comps/CardList.vue +57 -0
- package/comps/CardNumber.vue +27 -0
- package/comps/Config/SelectColumns.vue +137 -0
- package/comps/CoreAgeMonth.vue +44 -0
- package/comps/CoreAppPassword.vue +31 -0
- package/comps/CoreAutocomplete.vue +93 -0
- package/comps/CoreCascader.vue +129 -0
- package/comps/CoreCascaderChildOrg.vue +165 -0
- package/comps/CoreCascaderChildPosition.vue +186 -0
- package/comps/CoreCkeditor.vue +324 -0
- package/comps/CoreColorPicker.vue +35 -0
- package/comps/CoreContextMenu.vue +81 -0
- package/comps/CoreDate.vue +56 -0
- package/comps/CoreDateRange.vue +34 -0
- package/comps/CoreDatetime.vue +34 -0
- package/comps/CoreDeepLink.vue +53 -0
- package/comps/CoreDurationJustified.vue +23 -0
- package/comps/CoreFiles.vue +497 -0
- package/comps/CoreFooter.vue +100 -0
- package/comps/CoreForm.vue +499 -0
- package/comps/CoreFormDialog.vue +140 -0
- package/comps/CoreFormFields.vue +306 -0
- package/comps/CoreFormItem.vue +114 -0
- package/comps/CoreFormItemCopy.vue +155 -0
- package/comps/CoreFormSub.vue +118 -0
- package/comps/CoreFormTable.vue +197 -0
- package/comps/CoreFormTableInline.vue +300 -0
- package/comps/CoreFormTableList.vue +268 -0
- package/comps/CoreIcon.vue +5 -0
- package/comps/CoreImage.vue +37 -0
- package/comps/CoreInlineNumber.vue +54 -0
- package/comps/CoreInputNumber.vue +49 -0
- package/comps/CoreInputSearch.vue +44 -0
- package/comps/CoreJson.vue +10 -0
- package/comps/CoreLoader.vue +153 -0
- package/comps/CoreLocked.vue +151 -0
- package/comps/CoreMergeConfirm.vue +59 -0
- package/comps/CoreMultipleInput.vue +51 -0
- package/comps/CorePanel.vue +33 -0
- package/comps/CorePdfDialog.vue +84 -0
- package/comps/CorePdfView.vue +52 -0
- package/comps/CoreRegexp.vue +41 -0
- package/comps/CoreSelect.vue +249 -0
- package/comps/CoreSelectEnum.vue +103 -0
- package/comps/CoreSelectGroup.vue +237 -0
- package/comps/CoreSelectGroupItem.vue +168 -0
- package/comps/CoreSelectGroupList.vue +386 -0
- package/comps/CoreSelectOrgEmp.vue +319 -0
- package/comps/CoreSelectTable.vue +277 -0
- package/comps/CoreSelectTree.vue +183 -0
- package/comps/CoreSelectTreeItem.vue +129 -0
- package/comps/CoreSelectTreeList.vue +149 -0
- package/comps/CoreSelectYear.vue +42 -0
- package/comps/CoreSignCertificate.vue +129 -0
- package/comps/CoreSpan.vue +31 -0
- package/comps/CoreStatus.vue +29 -0
- package/comps/CoreSwitch.vue +28 -0
- package/comps/CoreTable.vue +852 -0
- package/comps/CoreTableColumn.vue +78 -0
- package/comps/CoreTableColumnHeader.vue +25 -0
- package/comps/CoreTableColumnRow.vue +234 -0
- package/comps/CoreTableConfig.vue +248 -0
- package/comps/CoreTableImage.vue +89 -0
- package/comps/CoreTableSearch.vue +267 -0
- package/comps/CoreTableSearchDetail.vue +89 -0
- package/comps/CoreTableStatus.vue +71 -0
- package/comps/CoreUploadImage.vue +542 -0
- package/comps/CoreVideo.vue +44 -0
- package/comps/CoreVimeo.vue +135 -0
- package/comps/CoreVimeoLabel.vue +32 -0
- package/comps/CoreVueEditor.vue +106 -0
- package/comps/CoreXypService.vue +233 -0
- package/comps/CoreZoomImage.vue +99 -0
- package/comps/Custom/CrimeDescription.vue +195 -0
- package/comps/Custom/CrimeNum.vue +41 -0
- package/comps/Custom/EmployeeSelect.vue +243 -0
- package/comps/Custom/EmployeeText.vue +7 -0
- package/comps/Custom/EmployeeWorkFamilies.vue +36 -0
- package/comps/Custom/NationalLangSkills.vue +137 -0
- package/comps/Custom/TableLogs.vue +86 -0
- package/comps/Custom/UserClotheRow.vue +105 -0
- package/comps/Custom/UserClothes.vue +470 -0
- package/comps/Custom/UserRoles.vue +169 -0
- package/comps/Custom/UserSelect.vue +423 -0
- package/comps/Custom/UserSkills.vue +98 -0
- package/comps/MomentAddCode.vue +91 -0
- package/comps/SclHandbook.vue +135 -0
- package/comps/Sign/Dialog.vue +321 -0
- package/comps/Sign/Info.vue +43 -0
- package/comps/Sign/InfoDialog.vue +78 -0
- package/directives/el-dragDialog/drag.js +34 -0
- package/index.js +7 -0
- package/middleware/auth.js +28 -0
- package/middleware/confirm-leave.js +15 -0
- package/middleware/login.js +6 -0
- package/middleware/router.js +5 -0
- package/package.json +48 -0
- package/plugins/axios.js +51 -0
- package/plugins/chart.js +134 -0
- package/plugins/ckeditor.js +3 -0
- package/plugins/idle-logout.js +33 -0
- package/store/settings.js +236 -0
- package/store/user.js +215 -0
- package/utils/component-helper.js +336 -0
- package/utils/data-helper.js +236 -0
- package/utils/default-nuxt-config.js +116 -0
- package/utils/eslint-rules.js +12 -0
- package/utils/helpers.js +67 -0
- package/utils/message-helper.js +19 -0
- package/utils/number-helper.js +166 -0
- package/utils/number-texts.js +217 -0
- package/utils/regexps.js +86 -0
- package/utils/role-helper.js +52 -0
- package/utils/social-helper.js +58 -0
- package/utils/table-helper.js +1612 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-col items-center w-full">
|
|
3
|
+
<div v-if="comType === 'inline'">
|
|
4
|
+
{{ value?.length ? 'Тийм' : 'Үгүй' }}
|
|
5
|
+
</div>
|
|
6
|
+
<div
|
|
7
|
+
v-else-if="fileType === 'profileImage'"
|
|
8
|
+
class="h-[200px] w-[180px] rounded border flex items-center justify-center relative bg-coreBgInput"
|
|
9
|
+
>
|
|
10
|
+
<img
|
|
11
|
+
v-if="value"
|
|
12
|
+
:src="`/api${permittedPath}/${value?._id}?tid=${value?.tid}`"
|
|
13
|
+
class="h-full w-full rounded object-cover object-center cursor-zoom-in"
|
|
14
|
+
@click="currentFullImage = value"
|
|
15
|
+
>
|
|
16
|
+
<el-button
|
|
17
|
+
v-else
|
|
18
|
+
type="text"
|
|
19
|
+
:loading="uploadingImages.some(c => !c.success && !c.deleted)"
|
|
20
|
+
icon="el-icon-upload"
|
|
21
|
+
:disabled="disabled"
|
|
22
|
+
@click="handleShow"
|
|
23
|
+
>
|
|
24
|
+
Хуулах
|
|
25
|
+
</el-button>
|
|
26
|
+
<el-button
|
|
27
|
+
v-if="value && !disabled"
|
|
28
|
+
plain
|
|
29
|
+
circle
|
|
30
|
+
size="mini"
|
|
31
|
+
icon="el-icon-close"
|
|
32
|
+
class="absolute -top-2 -right-2"
|
|
33
|
+
@click="handleRemoveImage(value)"
|
|
34
|
+
/>
|
|
35
|
+
</div>
|
|
36
|
+
<Container v-else class="flex flex-col gap-2 w-full" drag-handle-selector=".column-drag-handle" @drop="onDrop">
|
|
37
|
+
<Draggable
|
|
38
|
+
v-for="(image, index) in images"
|
|
39
|
+
:key="image._id + '' + index"
|
|
40
|
+
>
|
|
41
|
+
<div class="flex flex-row items-center justify-center gap-1 rounded border image-rounded bg-white">
|
|
42
|
+
<img
|
|
43
|
+
v-if="['image', 'icon'].includes(fileType)"
|
|
44
|
+
class="w-20 h-20 object-contain max-h-full max-w-full border-r rounded-l image-rounded-l cursor-zoom-in"
|
|
45
|
+
:src="image.url || `/api${permittedPath}/${image?._id}?tid=${image.tid}`"
|
|
46
|
+
@click="currentFullImage = image"
|
|
47
|
+
>
|
|
48
|
+
<div v-else class="text-lg py-3 pl-3">
|
|
49
|
+
<i :class="`el-icon-${image.mimetype === 'application/pdf' ? 'document' : 'download'} cursor-pointer text-coreRegularText hover:text-coreBlue`" @click="handleDownload(image)" />
|
|
50
|
+
</div>
|
|
51
|
+
<div class="flex-1 flex flex-row items-center overflow-hidden text-sm">
|
|
52
|
+
<div
|
|
53
|
+
:class="['text-lg p-3', {
|
|
54
|
+
'column-drag-handle': !disabled,
|
|
55
|
+
'text-coreSecondaryText': disabled
|
|
56
|
+
}]"
|
|
57
|
+
>
|
|
58
|
+
<i class="el-icon-s-fold" />
|
|
59
|
+
</div>
|
|
60
|
+
<div class="w-full py-1">
|
|
61
|
+
<a
|
|
62
|
+
class="hover:underline"
|
|
63
|
+
:href="`/api${permittedPath}/${image?._id}?tid=${image.tid}`"
|
|
64
|
+
target="_blank"
|
|
65
|
+
>
|
|
66
|
+
<span>{{ image.originalname }}</span>
|
|
67
|
+
<span v-if="image.page_count" class="text-xs font-bold text-coreSecondaryText">{{ image.page_count }} хуудастай</span>
|
|
68
|
+
</a>
|
|
69
|
+
<div>
|
|
70
|
+
<el-input
|
|
71
|
+
v-model="image.description"
|
|
72
|
+
:disabled="disabled"
|
|
73
|
+
placeholder="Тайлбар бичих.."
|
|
74
|
+
clearable
|
|
75
|
+
:maxlength="150"
|
|
76
|
+
@change="() => handleChangeDescription(image)"
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div v-if="!disabled" class="pr-2">
|
|
82
|
+
<el-button
|
|
83
|
+
type="danger"
|
|
84
|
+
plain
|
|
85
|
+
circle
|
|
86
|
+
size="mini"
|
|
87
|
+
icon="el-icon-close"
|
|
88
|
+
@click="handleRemoveImage(image)"
|
|
89
|
+
/>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</Draggable>
|
|
93
|
+
<div
|
|
94
|
+
v-for="(image, index) in uploadingImages.filter(c => !c.success && !c.deleted)"
|
|
95
|
+
:key="'upload image' + index.toString()"
|
|
96
|
+
class="flex flex-row items-center gap-2 rounded border image-rounded"
|
|
97
|
+
>
|
|
98
|
+
<img
|
|
99
|
+
v-if="['image', 'icon'].includes(fileType)"
|
|
100
|
+
:src="image.url"
|
|
101
|
+
class="object-contain w-20 h-20 border-r rounded-l image-rounded-l"
|
|
102
|
+
>
|
|
103
|
+
<div class="flex-1 overflow-hidden text-sm">
|
|
104
|
+
<div v-if="image.loading" class="flex-1 flex flex-row items-center">
|
|
105
|
+
<div class="text-lg p-3">
|
|
106
|
+
<i :class="'el-icon-loading'" />
|
|
107
|
+
</div>
|
|
108
|
+
Серверт хуулж байна..
|
|
109
|
+
</div>
|
|
110
|
+
<div v-else-if="image.errorMessage" class="text-red-700 flex-1 flex flex-row items-center">
|
|
111
|
+
<div class="text-lg p-3 ">
|
|
112
|
+
<i :class="'el-icon-warning-outline'" />
|
|
113
|
+
</div>{{ image.errorMessage }}
|
|
114
|
+
</div>
|
|
115
|
+
<div v-else class="flex-1 flex flex-row items-center">
|
|
116
|
+
<div class="text-lg p-3">
|
|
117
|
+
<i :class="'el-icon-warning-outline'" />
|
|
118
|
+
</div>
|
|
119
|
+
Хүлээж байна..
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="pr-2">
|
|
123
|
+
<el-button
|
|
124
|
+
type="danger"
|
|
125
|
+
plain
|
|
126
|
+
circle
|
|
127
|
+
size="mini"
|
|
128
|
+
icon="el-icon-close"
|
|
129
|
+
@click="image.deleted = true"
|
|
130
|
+
/>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div
|
|
134
|
+
v-if="!disabled && ((images.length === 0 && uploadingImages.filter(c => !c.deleted && !c.success).length === 0) || isMultiple)"
|
|
135
|
+
:class="'h-10 rounded text-gray-400 hover:text-gray-700 flex items-center justify-center cursor-pointer bg-coreBgInput border group-[.is-error]:border-red-400 image-rounded'"
|
|
136
|
+
@click="handleShow"
|
|
137
|
+
>
|
|
138
|
+
<div class="text-lg p-3 ">
|
|
139
|
+
<i class="el-icon-upload text-gray-500" />
|
|
140
|
+
</div>
|
|
141
|
+
{{ textUpload }}
|
|
142
|
+
</div>
|
|
143
|
+
</Container>
|
|
144
|
+
<input
|
|
145
|
+
id="image"
|
|
146
|
+
ref="image"
|
|
147
|
+
class="hidden"
|
|
148
|
+
type="file"
|
|
149
|
+
name="files"
|
|
150
|
+
:accept="accept"
|
|
151
|
+
:multiple="isMultiple"
|
|
152
|
+
@change="handleFiles"
|
|
153
|
+
>
|
|
154
|
+
<transition name="el-fade-in-linear">
|
|
155
|
+
<div v-if="currentFullImage" class="fixed h-screen w-screen bg-black z-50 left-0 top-0 flex flex-row">
|
|
156
|
+
<div class="flex-1 flex items-center justify-center relative">
|
|
157
|
+
<img
|
|
158
|
+
:src="currentFullImage?.url || `/api${permittedPath}/${currentFullImage._id}?tid=${currentFullImage.tid}`"
|
|
159
|
+
class="object-contain border rounded max-h-screen"
|
|
160
|
+
>
|
|
161
|
+
<div class="absolute top-3 right-3">
|
|
162
|
+
<el-button icon="el-icon-close" circle @click="currentFullImage = null" />
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
<div v-if="images.length > 1" class="w-40 bg-white flex flex-col gap-2 items-center py-2 overflow-y-auto h-full">
|
|
166
|
+
<img
|
|
167
|
+
v-for="image in images"
|
|
168
|
+
:key="`full_image_${image?._id}`"
|
|
169
|
+
:src="image?.url || `/api${permittedPath}/${image?._id}?tid=${image?.tid}`"
|
|
170
|
+
:class="['w-36 h-36 object-contain border rounded cursor-zoom-in', { 'border-black border-2': currentFullImage._id === image?._id }]"
|
|
171
|
+
@click="currentFullImage = image"
|
|
172
|
+
>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</transition>
|
|
176
|
+
</div>
|
|
177
|
+
</template>
|
|
178
|
+
<script>
|
|
179
|
+
import { mapGetters, mapActions } from 'vuex'
|
|
180
|
+
// import axios from 'axios'
|
|
181
|
+
import { get } from 'lodash'
|
|
182
|
+
import { Container, Draggable } from 'vue-smooth-dnd'
|
|
183
|
+
import { applyDrag } from '../utils/helpers'
|
|
184
|
+
import { getFormBoolean } from '../utils/data-helper'
|
|
185
|
+
const dataURItoBlob = (dataURI, name) => {
|
|
186
|
+
const bytes = dataURI.split(',')[0].includes('base64')
|
|
187
|
+
? atob(dataURI.split(',')[1])
|
|
188
|
+
: unescape(dataURI.split(',')[1])
|
|
189
|
+
const mime = dataURI.split(',')[0].split(':')[1].split(';')[0]
|
|
190
|
+
const max = bytes.length
|
|
191
|
+
const ia = new Uint8Array(max)
|
|
192
|
+
for (let i = 0; i < max; i += 1) { ia[i] = bytes.charCodeAt(i) }
|
|
193
|
+
return new File([ia], name, { type: mime })
|
|
194
|
+
}
|
|
195
|
+
const resizeImage = ({ file, maxSize }) => {
|
|
196
|
+
const reader = new FileReader()
|
|
197
|
+
const image = new Image()
|
|
198
|
+
const canvas = document.createElement('canvas')
|
|
199
|
+
const resize = () => {
|
|
200
|
+
let { width, height } = image
|
|
201
|
+
if (width > height) {
|
|
202
|
+
if (width > maxSize) {
|
|
203
|
+
height *= maxSize / width
|
|
204
|
+
width = maxSize
|
|
205
|
+
}
|
|
206
|
+
} else if (height > maxSize) {
|
|
207
|
+
width *= maxSize / height
|
|
208
|
+
height = maxSize
|
|
209
|
+
}
|
|
210
|
+
canvas.width = width
|
|
211
|
+
canvas.height = height
|
|
212
|
+
canvas.getContext('2d').drawImage(image, 0, 0, width, height)
|
|
213
|
+
const dataUrl = canvas.toDataURL('image/jpeg')
|
|
214
|
+
return dataURItoBlob(dataUrl, file.name)
|
|
215
|
+
}
|
|
216
|
+
return new Promise((ok, no) => {
|
|
217
|
+
if (!file.type.match(/image.*/)) {
|
|
218
|
+
no(new Error('Not an image'))
|
|
219
|
+
return
|
|
220
|
+
}
|
|
221
|
+
reader.onload = (readerEvent) => {
|
|
222
|
+
image.onload = () => ok({
|
|
223
|
+
resizedImage: resize(),
|
|
224
|
+
width: image.width,
|
|
225
|
+
height: image.height
|
|
226
|
+
})
|
|
227
|
+
image.src = readerEvent.target.result
|
|
228
|
+
}
|
|
229
|
+
reader.readAsDataURL(file)
|
|
230
|
+
})
|
|
231
|
+
}
|
|
232
|
+
export default {
|
|
233
|
+
name: 'CoreFiles',
|
|
234
|
+
components: { Container, Draggable },
|
|
235
|
+
props: {
|
|
236
|
+
value: { type: Array, default: null },
|
|
237
|
+
fileType: { type: String, default: 'image' },
|
|
238
|
+
col_multiple: { type: Boolean, default: false },
|
|
239
|
+
minSize: { type: Number, default: 1024 },
|
|
240
|
+
maxSize: { type: Number, default: 512000 },
|
|
241
|
+
disabled: { type: Boolean, default: false },
|
|
242
|
+
comType: { type: String, default: 'normal' },
|
|
243
|
+
fileRoute: { type: String, default: '' },
|
|
244
|
+
isFileSecret: { type: Boolean, default: true },
|
|
245
|
+
rootApiId: { type: String, default: null },
|
|
246
|
+
rootTempId: { type: String, default: null }
|
|
247
|
+
},
|
|
248
|
+
data () {
|
|
249
|
+
return {
|
|
250
|
+
uploadingImage: null,
|
|
251
|
+
uploadingImages: [],
|
|
252
|
+
currentFullImage: null,
|
|
253
|
+
interval: 0,
|
|
254
|
+
cropVisible: false,
|
|
255
|
+
cropImgSrc: '',
|
|
256
|
+
cropName: '',
|
|
257
|
+
cropMime: '',
|
|
258
|
+
unsupportedImageTypes: ['image/heic'],
|
|
259
|
+
requestQueues: {}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
computed: {
|
|
263
|
+
...mapGetters('settings', ['env']),
|
|
264
|
+
...mapGetters('user', ['token']),
|
|
265
|
+
isMultiple () {
|
|
266
|
+
return getFormBoolean(this.col_multiple)
|
|
267
|
+
},
|
|
268
|
+
textUpload () {
|
|
269
|
+
if (['pdf'].includes(this.fileType)) {
|
|
270
|
+
return 'PDF файл сонгох..'
|
|
271
|
+
} else if (['file'].includes(this.fileType)) {
|
|
272
|
+
return 'Файл сонгох..'
|
|
273
|
+
} else {
|
|
274
|
+
return 'Зураг сонгох..'
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
accept () {
|
|
278
|
+
if (['pdf'].includes(this.fileType)) {
|
|
279
|
+
return 'application/pdf'
|
|
280
|
+
} else if (['file'].includes(this.fileType)) {
|
|
281
|
+
return '*/*'
|
|
282
|
+
} else {
|
|
283
|
+
return 'image/*'
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
images: {
|
|
287
|
+
get () {
|
|
288
|
+
if (!this.value) {
|
|
289
|
+
return []
|
|
290
|
+
}
|
|
291
|
+
return this.value
|
|
292
|
+
},
|
|
293
|
+
set (val) {
|
|
294
|
+
this.$emit('input', val)
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
showCurrentImage () {
|
|
298
|
+
return !!this.currentFullImage
|
|
299
|
+
},
|
|
300
|
+
permittedPath () {
|
|
301
|
+
return this.isFileSecret ? `/file/permitted/${this.rootApiId}/${this.rootTempId}` : (this.env.fileRoutePath + this.fileRoute)
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
watch: {
|
|
305
|
+
showCurrentImage (val) {
|
|
306
|
+
if (val) {
|
|
307
|
+
window.addEventListener('keydown', this.handleChangeImage)
|
|
308
|
+
} else {
|
|
309
|
+
window.removeEventListener('keydown', this.handleChangeImage)
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
mounted () {
|
|
314
|
+
this.interval = setInterval(this.handleUpload, 500)
|
|
315
|
+
},
|
|
316
|
+
destroyed () {
|
|
317
|
+
if (this.interval) {
|
|
318
|
+
clearInterval(this.interval)
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
methods: {
|
|
322
|
+
...mapActions('settings', ['set_pdf_url']),
|
|
323
|
+
handleChangeDescription (image) {
|
|
324
|
+
const doRequest = () => this.$axios.post('7/log_files', {
|
|
325
|
+
_id: image._id,
|
|
326
|
+
description: image.description
|
|
327
|
+
}).catch((err) => {
|
|
328
|
+
this.$showError(err)
|
|
329
|
+
})
|
|
330
|
+
if (!this.requestQueues[image._id]) {
|
|
331
|
+
this.requestQueues[image._id] = Promise.resolve()
|
|
332
|
+
}
|
|
333
|
+
this.requestQueues[image._id] = this.requestQueues[image._id].then(() => doRequest())
|
|
334
|
+
},
|
|
335
|
+
handleDownload (item) {
|
|
336
|
+
if (item.mimetype === 'application/pdf') {
|
|
337
|
+
this.set_pdf_url({ title: 'Файл харах', url: `${this.permittedPath}/${item._id}?tid=${item.tid}` })
|
|
338
|
+
} else {
|
|
339
|
+
const link = document.createElement('a')
|
|
340
|
+
link.href = `/api${this.permittedPath}/${item._id}?tid=${item.tid}`
|
|
341
|
+
link.setAttribute('download', `${item.orignalname}`)
|
|
342
|
+
document.body.appendChild(link)
|
|
343
|
+
link.click()
|
|
344
|
+
document.body.removeChild(link)
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
handleChangeImage (e) {
|
|
348
|
+
e.preventDefault()
|
|
349
|
+
if (!this.currentFullImage) {
|
|
350
|
+
return
|
|
351
|
+
}
|
|
352
|
+
if ([39, 40].includes(e.keyCode)) {
|
|
353
|
+
this.handleCurrentNext()
|
|
354
|
+
} else if ([37, 38].includes(e.keyCode)) {
|
|
355
|
+
this.handleCurrentPrev()
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
handleCurrentNext () {
|
|
359
|
+
const index = this.images.indexOf(this.currentFullImage)
|
|
360
|
+
if (index + 1 < this.images.length) {
|
|
361
|
+
this.currentFullImage = this.images[index + 1]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
handleCurrentPrev () {
|
|
365
|
+
const index = this.images.indexOf(this.currentFullImage)
|
|
366
|
+
if (index > 0) {
|
|
367
|
+
this.currentFullImage = this.images[index - 1]
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
onDrop (e) {
|
|
371
|
+
this.images = applyDrag(this.images, e)
|
|
372
|
+
},
|
|
373
|
+
handleShow () {
|
|
374
|
+
this.$refs.image.click()
|
|
375
|
+
},
|
|
376
|
+
handleRemoveImage (image) {
|
|
377
|
+
const values = [...this.images]
|
|
378
|
+
const index = values.findIndex(c => c._id === image._id)
|
|
379
|
+
if (index > -1) {
|
|
380
|
+
values.splice(index, 1)
|
|
381
|
+
}
|
|
382
|
+
this.images = values
|
|
383
|
+
},
|
|
384
|
+
handleAddFile (val, url) {
|
|
385
|
+
const values = [...this.images]
|
|
386
|
+
val.url = url
|
|
387
|
+
values.push(val)
|
|
388
|
+
this.images = values
|
|
389
|
+
},
|
|
390
|
+
handleCrop (e) {
|
|
391
|
+
const errorMessage = ''
|
|
392
|
+
const that = this
|
|
393
|
+
fetch(e).then(res => res.blob()).then((blob) => {
|
|
394
|
+
const file = new File([blob], that.cropName, { type: that.cropMime })
|
|
395
|
+
this.uploadingImages.push({
|
|
396
|
+
errorMessage,
|
|
397
|
+
success: false,
|
|
398
|
+
loading: false,
|
|
399
|
+
deleted: false,
|
|
400
|
+
file,
|
|
401
|
+
url: e
|
|
402
|
+
})
|
|
403
|
+
this.cropVisible = false
|
|
404
|
+
})
|
|
405
|
+
},
|
|
406
|
+
async handleFiles (e) {
|
|
407
|
+
const files = e.files || e.target.files || e.dataTransfer.files
|
|
408
|
+
for (const file of files) {
|
|
409
|
+
// if (!this.col_multiple) {
|
|
410
|
+
// this.cropImgSrc = URL.createObjectURL(file)
|
|
411
|
+
// console.log('file', file)
|
|
412
|
+
// this.cropMime = file.type
|
|
413
|
+
// this.cropName = file.name
|
|
414
|
+
// this.cropVisible = true
|
|
415
|
+
// return
|
|
416
|
+
// }
|
|
417
|
+
let errorMessage = ''
|
|
418
|
+
let resizedUrl = URL.createObjectURL(file)
|
|
419
|
+
let resizedFile = file
|
|
420
|
+
let width = 0
|
|
421
|
+
let height = 0
|
|
422
|
+
if (file.type.startsWith('image/')) {
|
|
423
|
+
if (!this.unsupportedImageTypes.includes(file.type)) {
|
|
424
|
+
const reader = new FileReader()
|
|
425
|
+
reader.onload = (e) => { this.originalImg = e.target.result }
|
|
426
|
+
reader.readAsDataURL(file)
|
|
427
|
+
const data1 = await resizeImage({ file, maxSize: 1200 })
|
|
428
|
+
resizedUrl = URL.createObjectURL(data1.resizedImage)
|
|
429
|
+
resizedFile = data1.resizedImage
|
|
430
|
+
width = data1.width
|
|
431
|
+
height = data1.height
|
|
432
|
+
}
|
|
433
|
+
} else if (this.maxSize * 100 < file.size) {
|
|
434
|
+
errorMessage = `Файлын хэмжээ их байна. Allowed max size: ${parseInt(this.maxSize * 100 / 1024 / 1024)}mb.`
|
|
435
|
+
}
|
|
436
|
+
this.uploadingImages.push({
|
|
437
|
+
errorMessage,
|
|
438
|
+
success: false,
|
|
439
|
+
loading: false,
|
|
440
|
+
deleted: false,
|
|
441
|
+
file: resizedFile,
|
|
442
|
+
url: resizedUrl,
|
|
443
|
+
height,
|
|
444
|
+
width
|
|
445
|
+
})
|
|
446
|
+
}
|
|
447
|
+
e.target.value = ''
|
|
448
|
+
},
|
|
449
|
+
async handleUpload () {
|
|
450
|
+
if (this.uploadingImages.some(c => c.loading)) {
|
|
451
|
+
return
|
|
452
|
+
}
|
|
453
|
+
const file = this.uploadingImages.find(c => !c.success && !c.deleted && !c.errorMessage)
|
|
454
|
+
if (!file) {
|
|
455
|
+
return
|
|
456
|
+
}
|
|
457
|
+
try {
|
|
458
|
+
file.loading = true
|
|
459
|
+
const formData = new FormData()
|
|
460
|
+
formData.append('file', file.file)
|
|
461
|
+
formData.append('width', file.width)
|
|
462
|
+
formData.append('height', file.height)
|
|
463
|
+
formData.append('is_secret', this.isFileSecret)
|
|
464
|
+
const headers = {
|
|
465
|
+
'Content-Type': 'multipart/form-data'
|
|
466
|
+
}
|
|
467
|
+
// if (this.token) {
|
|
468
|
+
// headers.Authorization = `Bearer ${this.token}`
|
|
469
|
+
// }
|
|
470
|
+
// const instance = axios.create({
|
|
471
|
+
// baseURL: this.env.baseUrl,
|
|
472
|
+
// headers,
|
|
473
|
+
// withCredentials: true
|
|
474
|
+
// })
|
|
475
|
+
|
|
476
|
+
let uploadUrl = 'file/upload'
|
|
477
|
+
if (this.unsupportedImageTypes.includes(file.file.type)) {
|
|
478
|
+
uploadUrl = 'file/upload/image'
|
|
479
|
+
}
|
|
480
|
+
// const { data } = await instance.post(uploadUrl, formData)
|
|
481
|
+
const { data } = await this.$axios.post(uploadUrl, formData, {
|
|
482
|
+
headers: {
|
|
483
|
+
'Content-Type': 'multipart/form-data'
|
|
484
|
+
},
|
|
485
|
+
withCredentials: true
|
|
486
|
+
})
|
|
487
|
+
this.handleAddFile(data, file.url)
|
|
488
|
+
file.success = true
|
|
489
|
+
} catch (err) {
|
|
490
|
+
file.errorMessage = get(err, 'response.data.message') || get(err, 'response.data.error') || get(err, 'message') || 'Сервер хуулахад алдаа гарлаа'
|
|
491
|
+
} finally {
|
|
492
|
+
file.loading = false
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
</script>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<footer class="w-full bg-white text-gray-600 text-sm">
|
|
3
|
+
<div class="w-full flex flex-wrap">
|
|
4
|
+
<div class="px-5 py-2 flex-1" style="min-width: 360px !important">
|
|
5
|
+
<div class="font-semibold pb-2">
|
|
6
|
+
Холбоо барих
|
|
7
|
+
</div>
|
|
8
|
+
<div
|
|
9
|
+
v-for="contact in contacts"
|
|
10
|
+
:key="contact.icon"
|
|
11
|
+
class="flex items-start py-2"
|
|
12
|
+
>
|
|
13
|
+
<div class="text-lg text-gray-400 mr-1 w-5">
|
|
14
|
+
<i :class="contact.icon" />
|
|
15
|
+
</div>
|
|
16
|
+
<span class="flex-1 whitespace-pre-line" style="padding-top: 2px">{{ contact.title }}</span>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="px-5 py-2 flex-1" style="min-width: 360px !important">
|
|
20
|
+
<div class="font-semibold pb-2">
|
|
21
|
+
Нэвтрэх холбоосууд
|
|
22
|
+
</div>
|
|
23
|
+
<div
|
|
24
|
+
v-for="link in links"
|
|
25
|
+
:key="link.name"
|
|
26
|
+
class="flex items-start py-2"
|
|
27
|
+
>
|
|
28
|
+
<div class="text-lg text-gray-400 mr-1 w-5">
|
|
29
|
+
<i :class="link.icon" />
|
|
30
|
+
</div>
|
|
31
|
+
<div>
|
|
32
|
+
<el-link class="primary-link" type="primary" style="padding-top: 2px" @click="$push({ name: link.name })">
|
|
33
|
+
{{ link.title }}
|
|
34
|
+
</el-link>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div v-if="visiters && visiters.length > 0" class="px-5 py-2 flex-0" style="min-width: 250px !important">
|
|
39
|
+
<div class="font-semibold pb-2 w-auto">
|
|
40
|
+
Веб хандалтын тоо
|
|
41
|
+
</div>
|
|
42
|
+
<div
|
|
43
|
+
v-for="item in visiters"
|
|
44
|
+
:key="item.name"
|
|
45
|
+
class="flex items-start py-1 w-auto"
|
|
46
|
+
>
|
|
47
|
+
{{ item.title }}: <span class="ml-1 font-semibold">{{ item.count }}</span>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="flex justify-between items-center border-t pt-4 pb-1 px-5">
|
|
52
|
+
<div>© {{ $moment().year() }} И-МОНГОЛ АКАДЕМИ УТҮГ</div>
|
|
53
|
+
<div>
|
|
54
|
+
<img
|
|
55
|
+
class="h-8"
|
|
56
|
+
src="https://ema.gov.mn/wp-content/uploads/2022/10/emongolia-academy-logo2.svg"
|
|
57
|
+
alt=""
|
|
58
|
+
loading="lazy"
|
|
59
|
+
>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</footer>
|
|
63
|
+
</template>
|
|
64
|
+
<script>
|
|
65
|
+
export default {
|
|
66
|
+
props: {
|
|
67
|
+
visiters: {
|
|
68
|
+
type: Array,
|
|
69
|
+
default: () => { return [] }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
data () {
|
|
73
|
+
return {
|
|
74
|
+
contacts: [{
|
|
75
|
+
icon: 'el-icon-location',
|
|
76
|
+
title: 'Улаанбаатар хот, Сүхбаатар дүүрэг,\n8-р хороо, Бага тойруу 49, Мэдээлэл технологийн үндэсний парк,\nИ-Монгол Академи'
|
|
77
|
+
}, {
|
|
78
|
+
icon: 'el-icon-phone',
|
|
79
|
+
title: '+976 7711-9997'
|
|
80
|
+
}, {
|
|
81
|
+
icon: 'el-icon-s-promotion',
|
|
82
|
+
title: 'docx@ema.gov.mn'
|
|
83
|
+
}],
|
|
84
|
+
links: [{
|
|
85
|
+
icon: 'el-icon-link',
|
|
86
|
+
title: 'Байгууллагын албан хаагч',
|
|
87
|
+
name: 'organization-login'
|
|
88
|
+
}, {
|
|
89
|
+
icon: 'el-icon-link',
|
|
90
|
+
title: 'Албан хэрэг, хөтлөлтийн програм хангамж хөгжүүлэгч',
|
|
91
|
+
name: 'developer-login'
|
|
92
|
+
}, {
|
|
93
|
+
icon: 'el-icon-link',
|
|
94
|
+
title: 'Оператор, Гэрээ хариуцсан албан хаагч',
|
|
95
|
+
name: 'operator-login'
|
|
96
|
+
}]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
</script>
|