From 01dac7e4f595ae2d89b3441ecf43bcfeaf87667c Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Mon, 8 Aug 2022 06:24:05 +0200 Subject: [PATCH] Remove unused components --- src/components/element-ui/BackToTop/index.vue | 116 -- .../element-ui/Breadcrumb/index.vue | 72 - src/components/element-ui/Charts/keyboard.vue | 156 -- .../element-ui/Charts/lineMarker.vue | 227 --- src/components/element-ui/Charts/mixChart.vue | 271 ---- .../element-ui/Charts/mixins/resize.js | 32 - src/components/element-ui/DndList/index.vue | 157 -- .../element-ui/DragSelect/index.vue | 61 - src/components/element-ui/Dropzone/index.vue | 297 ---- src/components/element-ui/ErrorLog/index.vue | 63 - .../element-ui/GithubCorner/index.vue | 51 - .../element-ui/HeaderSearch/index.vue | 187 --- .../element-ui/ImageCropper/index.vue | 1420 ----------------- .../ImageCropper/utils/data2blob.js | 19 - .../ImageCropper/utils/effectRipple.js | 39 - .../element-ui/ImageCropper/utils/language.js | 232 --- .../element-ui/ImageCropper/utils/mimes.js | 7 - .../element-ui/JsonEditor/index.vue | 72 - src/components/element-ui/Kanban/index.vue | 89 -- src/components/element-ui/MDinput/index.vue | 354 ---- .../element-ui/Pagination/index.vue | 100 -- src/components/element-ui/PanThumb/index.vue | 140 -- .../element-ui/Share/dropdownMenu.vue | 100 -- .../element-ui/SizeSelect/index.vue | 55 - src/components/element-ui/Sticky/index.vue | 88 - .../element-ui/TextHoverEffect/Mallki.vue | 113 -- .../element-ui/ThemePicker/index.vue | 148 -- src/components/element-ui/TreeTable/eval.js | 29 - src/components/element-ui/TreeTable/index.vue | 127 -- src/components/element-ui/TreeTable/readme.md | 89 -- .../element-ui/Upload/singleImage.vue | 132 -- .../element-ui/Upload/singleImage2.vue | 127 -- .../element-ui/Upload/singleImage3.vue | 154 -- 33 files changed, 5324 deletions(-) delete mode 100644 src/components/element-ui/BackToTop/index.vue delete mode 100644 src/components/element-ui/Breadcrumb/index.vue delete mode 100644 src/components/element-ui/Charts/keyboard.vue delete mode 100644 src/components/element-ui/Charts/lineMarker.vue delete mode 100644 src/components/element-ui/Charts/mixChart.vue delete mode 100644 src/components/element-ui/Charts/mixins/resize.js delete mode 100644 src/components/element-ui/DndList/index.vue delete mode 100644 src/components/element-ui/DragSelect/index.vue delete mode 100644 src/components/element-ui/Dropzone/index.vue delete mode 100644 src/components/element-ui/ErrorLog/index.vue delete mode 100644 src/components/element-ui/GithubCorner/index.vue delete mode 100644 src/components/element-ui/HeaderSearch/index.vue delete mode 100644 src/components/element-ui/ImageCropper/index.vue delete mode 100755 src/components/element-ui/ImageCropper/utils/data2blob.js delete mode 100755 src/components/element-ui/ImageCropper/utils/effectRipple.js delete mode 100755 src/components/element-ui/ImageCropper/utils/language.js delete mode 100755 src/components/element-ui/ImageCropper/utils/mimes.js delete mode 100644 src/components/element-ui/JsonEditor/index.vue delete mode 100644 src/components/element-ui/Kanban/index.vue delete mode 100644 src/components/element-ui/MDinput/index.vue delete mode 100644 src/components/element-ui/Pagination/index.vue delete mode 100644 src/components/element-ui/PanThumb/index.vue delete mode 100644 src/components/element-ui/Share/dropdownMenu.vue delete mode 100644 src/components/element-ui/SizeSelect/index.vue delete mode 100644 src/components/element-ui/Sticky/index.vue delete mode 100644 src/components/element-ui/TextHoverEffect/Mallki.vue delete mode 100644 src/components/element-ui/ThemePicker/index.vue delete mode 100644 src/components/element-ui/TreeTable/eval.js delete mode 100644 src/components/element-ui/TreeTable/index.vue delete mode 100644 src/components/element-ui/TreeTable/readme.md delete mode 100644 src/components/element-ui/Upload/singleImage.vue delete mode 100644 src/components/element-ui/Upload/singleImage2.vue delete mode 100644 src/components/element-ui/Upload/singleImage3.vue diff --git a/src/components/element-ui/BackToTop/index.vue b/src/components/element-ui/BackToTop/index.vue deleted file mode 100644 index 12ea3ea8..00000000 --- a/src/components/element-ui/BackToTop/index.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - diff --git a/src/components/element-ui/Breadcrumb/index.vue b/src/components/element-ui/Breadcrumb/index.vue deleted file mode 100644 index a4e171df..00000000 --- a/src/components/element-ui/Breadcrumb/index.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - diff --git a/src/components/element-ui/Charts/keyboard.vue b/src/components/element-ui/Charts/keyboard.vue deleted file mode 100644 index fd116904..00000000 --- a/src/components/element-ui/Charts/keyboard.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - diff --git a/src/components/element-ui/Charts/lineMarker.vue b/src/components/element-ui/Charts/lineMarker.vue deleted file mode 100644 index fb6f7ec5..00000000 --- a/src/components/element-ui/Charts/lineMarker.vue +++ /dev/null @@ -1,227 +0,0 @@ - - - diff --git a/src/components/element-ui/Charts/mixChart.vue b/src/components/element-ui/Charts/mixChart.vue deleted file mode 100644 index b7397032..00000000 --- a/src/components/element-ui/Charts/mixChart.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - diff --git a/src/components/element-ui/Charts/mixins/resize.js b/src/components/element-ui/Charts/mixins/resize.js deleted file mode 100644 index cc7b8399..00000000 --- a/src/components/element-ui/Charts/mixins/resize.js +++ /dev/null @@ -1,32 +0,0 @@ -import { debounce } from '@/utils' - -export default { - data: function() { - return { - sidebarElm: null - } - }, - mounted() { - this.__resizeHandler = debounce(() => { - if (this.chart) { - this.chart.resize() - } - }, 100) - window.addEventListener('resize', this.__resizeHandler) - - this.sidebarElm = document.getElementsByClassName('sidebar-container')[0] - this.sidebarElm && this.sidebarElm.addEventListener('transitionend', this.sidebarResizeHandler) - }, - beforeDestroy() { - window.removeEventListener('resize', this.__resizeHandler) - - this.sidebarElm && this.sidebarElm.removeEventListener('transitionend', this.sidebarResizeHandler) - }, - methods: { - sidebarResizeHandler(e) { - if (e.propertyName === 'width') { - this.__resizeHandler() - } - } - } -} diff --git a/src/components/element-ui/DndList/index.vue b/src/components/element-ui/DndList/index.vue deleted file mode 100644 index 7587daa7..00000000 --- a/src/components/element-ui/DndList/index.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/components/element-ui/DragSelect/index.vue b/src/components/element-ui/DragSelect/index.vue deleted file mode 100644 index 513be006..00000000 --- a/src/components/element-ui/DragSelect/index.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/src/components/element-ui/Dropzone/index.vue b/src/components/element-ui/Dropzone/index.vue deleted file mode 100644 index 187f7f70..00000000 --- a/src/components/element-ui/Dropzone/index.vue +++ /dev/null @@ -1,297 +0,0 @@ - - - - - diff --git a/src/components/element-ui/ErrorLog/index.vue b/src/components/element-ui/ErrorLog/index.vue deleted file mode 100644 index 793d4e24..00000000 --- a/src/components/element-ui/ErrorLog/index.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - diff --git a/src/components/element-ui/GithubCorner/index.vue b/src/components/element-ui/GithubCorner/index.vue deleted file mode 100644 index b5da8874..00000000 --- a/src/components/element-ui/GithubCorner/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - diff --git a/src/components/element-ui/HeaderSearch/index.vue b/src/components/element-ui/HeaderSearch/index.vue deleted file mode 100644 index fdee688a..00000000 --- a/src/components/element-ui/HeaderSearch/index.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - - diff --git a/src/components/element-ui/ImageCropper/index.vue b/src/components/element-ui/ImageCropper/index.vue deleted file mode 100644 index 007c12aa..00000000 --- a/src/components/element-ui/ImageCropper/index.vue +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - diff --git a/src/components/element-ui/ImageCropper/utils/data2blob.js b/src/components/element-ui/ImageCropper/utils/data2blob.js deleted file mode 100755 index 9c47f8af..00000000 --- a/src/components/element-ui/ImageCropper/utils/data2blob.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * database64文件格式转换为2进制 - * - * @param {[String]} data dataURL 的格式为 “data:image/png;base64,****”,逗号之前都是一些说明性的文字,我们只需要逗号之后的就行了 - * @param {[String]} mime [description] - * @return {[blob]} [description] - */ -export default function(data, mime) { - data = data.split(',')[1] - data = window.atob(data) - var ia = new Uint8Array(data.length) - for (var i = 0; i < data.length; i++) { - ia[i] = data.charCodeAt(i) - } - // canvas.toDataURL 返回的默认格式就是 image/png - return new Blob([ia], { - type: mime - }) -} diff --git a/src/components/element-ui/ImageCropper/utils/effectRipple.js b/src/components/element-ui/ImageCropper/utils/effectRipple.js deleted file mode 100755 index 46a01640..00000000 --- a/src/components/element-ui/ImageCropper/utils/effectRipple.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * 点击波纹效果 - * - * @param {[event]} e [description] - * @param {[Object]} arg_opts [description] - * @return {[bollean]} [description] - */ -export default function(e, arg_opts) { - var opts = Object.assign({ - ele: e.target, // 波纹作用元素 - type: 'hit', // hit点击位置扩散center中心点扩展 - bgc: 'rgba(0, 0, 0, 0.15)' // 波纹颜色 - }, arg_opts) - var target = opts.ele - if (target) { - var rect = target.getBoundingClientRect() - var ripple = target.querySelector('.e-ripple') - if (!ripple) { - ripple = document.createElement('span') - ripple.className = 'e-ripple' - ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + 'px' - target.appendChild(ripple) - } else { - ripple.className = 'e-ripple' - } - switch (opts.type) { - case 'center': - ripple.style.top = (rect.height / 2 - ripple.offsetHeight / 2) + 'px' - ripple.style.left = (rect.width / 2 - ripple.offsetWidth / 2) + 'px' - break - default: - ripple.style.top = (e.pageY - rect.top - ripple.offsetHeight / 2 - document.body.scrollTop) + 'px' - ripple.style.left = (e.pageX - rect.left - ripple.offsetWidth / 2 - document.body.scrollLeft) + 'px' - } - ripple.style.backgroundColor = opts.bgc - ripple.className = 'e-ripple z-active' - return false - } -} diff --git a/src/components/element-ui/ImageCropper/utils/language.js b/src/components/element-ui/ImageCropper/utils/language.js deleted file mode 100755 index 727872d9..00000000 --- a/src/components/element-ui/ImageCropper/utils/language.js +++ /dev/null @@ -1,232 +0,0 @@ -export default { - zh: { - hint: '点击,或拖动图片至此处', - loading: '正在上传……', - noSupported: '浏览器不支持该功能,请使用IE10以上或其他现在浏览器!', - success: '上传成功', - fail: '图片上传失败', - preview: '头像预览', - btn: { - off: '取消', - close: '关闭', - back: '上一步', - save: '保存' - }, - error: { - onlyImg: '仅限图片格式', - outOfSize: '单文件大小不能超过 ', - lowestPx: '图片最低像素为(宽*高):' - } - }, - 'zh-tw': { - hint: '點擊,或拖動圖片至此處', - loading: '正在上傳……', - noSupported: '瀏覽器不支持該功能,請使用IE10以上或其他現代瀏覽器!', - success: '上傳成功', - fail: '圖片上傳失敗', - preview: '頭像預覽', - btn: { - off: '取消', - close: '關閉', - back: '上一步', - save: '保存' - }, - error: { - onlyImg: '僅限圖片格式', - outOfSize: '單文件大小不能超過 ', - lowestPx: '圖片最低像素為(寬*高):' - } - }, - en: { - hint: 'Click or drag the file here to upload', - loading: 'Uploading…', - noSupported: 'Browser is not supported, please use IE10+ or other browsers', - success: 'Upload success', - fail: 'Upload failed', - preview: 'Preview', - btn: { - off: 'Cancel', - close: 'Close', - back: 'Back', - save: 'Save' - }, - error: { - onlyImg: 'Image only', - outOfSize: 'Image exceeds size limit: ', - lowestPx: 'Image\'s size is too low. Expected at least: ' - } - }, - ro: { - hint: 'Atinge sau trage fișierul aici', - loading: 'Se încarcă', - noSupported: 'Browser-ul tău nu suportă acest feature. Te rugăm încearcă cu alt browser.', - success: 'S-a încărcat cu succes', - fail: 'A apărut o problemă la încărcare', - preview: 'Previzualizează', - - btn: { - off: 'Anulează', - close: 'Închide', - back: 'Înapoi', - save: 'Salvează' - }, - - error: { - onlyImg: 'Doar imagini', - outOfSize: 'Imaginea depășește limita de: ', - loewstPx: 'Imaginea este prea mică; Minim: ' - } - }, - ru: { - hint: 'Нажмите, или перетащите файл в это окно', - loading: 'Загружаю……', - noSupported: 'Ваш браузер не поддерживается, пожалуйста, используйте IE10 + или другие браузеры', - success: 'Загрузка выполнена успешно', - fail: 'Ошибка загрузки', - preview: 'Предпросмотр', - btn: { - off: 'Отменить', - close: 'Закрыть', - back: 'Назад', - save: 'Сохранить' - }, - error: { - onlyImg: 'Только изображения', - outOfSize: 'Изображение превышает предельный размер: ', - lowestPx: 'Минимальный размер изображения: ' - } - }, - 'pt-br': { - hint: 'Clique ou arraste o arquivo aqui para carregar', - loading: 'Carregando…', - noSupported: 'Browser não suportado, use o IE10+ ou outro browser', - success: 'Sucesso ao carregar imagem', - fail: 'Falha ao carregar imagem', - preview: 'Pré-visualizar', - btn: { - off: 'Cancelar', - close: 'Fechar', - back: 'Voltar', - save: 'Salvar' - }, - error: { - onlyImg: 'Apenas imagens', - outOfSize: 'A imagem excede o limite de tamanho: ', - lowestPx: 'O tamanho da imagem é muito pequeno. Tamanho mínimo: ' - } - }, - fr: { - hint: 'Cliquez ou glissez le fichier ici.', - loading: 'Téléchargement…', - noSupported: 'Votre navigateur n\'est pas supporté. Utilisez IE10 + ou un autre navigateur s\'il vous plaît.', - success: 'Téléchargement réussit', - fail: 'Téléchargement echoué', - preview: 'Aperçu', - btn: { - off: 'Annuler', - close: 'Fermer', - back: 'Retour', - save: 'Enregistrer' - }, - error: { - onlyImg: 'Image uniquement', - outOfSize: 'L\'image sélectionnée dépasse la taille maximum: ', - lowestPx: 'L\'image sélectionnée est trop petite. Dimensions attendues: ' - } - }, - nl: { - hint: 'Klik hier of sleep een afbeelding in dit vlak', - loading: 'Uploaden…', - noSupported: 'Je browser wordt helaas niet ondersteund. Gebruik IE10+ of een andere browser.', - success: 'Upload succesvol', - fail: 'Upload mislukt', - preview: 'Voorbeeld', - btn: { - off: 'Annuleren', - close: 'Sluiten', - back: 'Terug', - save: 'Opslaan' - }, - error: { - onlyImg: 'Alleen afbeeldingen', - outOfSize: 'De afbeelding is groter dan: ', - lowestPx: 'De afbeelding is te klein! Minimale afmetingen: ' - } - }, - tr: { - hint: 'Tıkla veya yüklemek istediğini buraya sürükle', - loading: 'Yükleniyor…', - noSupported: 'Tarayıcı desteklenmiyor, lütfen IE10+ veya farklı tarayıcı kullanın', - success: 'Yükleme başarılı', - fail: 'Yüklemede hata oluştu', - preview: 'Önizle', - btn: { - off: 'İptal', - close: 'Kapat', - back: 'Geri', - save: 'Kaydet' - }, - error: { - onlyImg: 'Sadece resim', - outOfSize: 'Resim yükleme limitini aşıyor: ', - lowestPx: 'Resmin boyutu çok küçük. En az olması gereken: ' - } - }, - 'es-MX': { - hint: 'Selecciona o arrastra una imagen', - loading: 'Subiendo...', - noSupported: 'Tu navegador no es soportado, porfavor usa IE10+ u otros navegadores mas recientes', - success: 'Subido exitosamente', - fail: 'Sucedió un error', - preview: 'Vista previa', - btn: { - off: 'Cancelar', - close: 'Cerrar', - back: 'Atras', - save: 'Guardar' - }, - error: { - onlyImg: 'Unicamente imagenes', - outOfSize: 'La imagen excede el tamaño maximo:', - lowestPx: 'La imagen es demasiado pequeño. Se espera por lo menos:' - } - }, - de: { - hint: 'Klick hier oder zieh eine Datei hier rein zum Hochladen', - loading: 'Hochladen…', - noSupported: 'Browser wird nicht unterstützt, bitte verwende IE10+ oder andere Browser', - success: 'Upload erfolgreich', - fail: 'Upload fehlgeschlagen', - preview: 'Vorschau', - btn: { - off: 'Abbrechen', - close: 'Schließen', - back: 'Zurück', - save: 'Speichern' - }, - error: { - onlyImg: 'Nur Bilder', - outOfSize: 'Das Bild ist zu groß: ', - lowestPx: 'Das Bild ist zu klein. Mindestens: ' - } - }, - ja: { - hint: 'クリック・ドラッグしてファイルをアップロード', - loading: 'アップロード中...', - noSupported: 'このブラウザは対応されていません。IE10+かその他の主要ブラウザをお使いください。', - success: 'アップロード成功', - fail: 'アップロード失敗', - preview: 'プレビュー', - btn: { - off: 'キャンセル', - close: '閉じる', - back: '戻る', - save: '保存' - }, - error: { - onlyImg: '画像のみ', - outOfSize: '画像サイズが上限を超えています。上限: ', - lowestPx: '画像が小さすぎます。最小サイズ: ' - } - } -} diff --git a/src/components/element-ui/ImageCropper/utils/mimes.js b/src/components/element-ui/ImageCropper/utils/mimes.js deleted file mode 100755 index e20c085c..00000000 --- a/src/components/element-ui/ImageCropper/utils/mimes.js +++ /dev/null @@ -1,7 +0,0 @@ -export default { - 'jpg': 'image/jpeg', - 'png': 'image/png', - 'gif': 'image/gif', - 'svg': 'image/svg+xml', - 'psd': 'image/photoshop' -} diff --git a/src/components/element-ui/JsonEditor/index.vue b/src/components/element-ui/JsonEditor/index.vue deleted file mode 100644 index b44a4a2c..00000000 --- a/src/components/element-ui/JsonEditor/index.vue +++ /dev/null @@ -1,72 +0,0 @@ -