logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

importer.vue (1126B)


  1. <template>
  2. <div class="importer">
  3. <form>
  4. <input
  5. ref="input"
  6. class="input"
  7. type="file"
  8. @change="change"
  9. >
  10. </form>
  11. <FAIcon
  12. v-if="submitting"
  13. class="importer-uploading"
  14. spin
  15. icon="circle-notch"
  16. />
  17. <button
  18. v-else
  19. class="btn button-default"
  20. @click="submit"
  21. >
  22. {{ submitButtonLabel || $t('importer.submit') }}
  23. </button>
  24. <div v-if="success">
  25. <button
  26. class="button-unstyled"
  27. @click="dismiss"
  28. >
  29. <FAIcon
  30. icon="times"
  31. />
  32. </button>
  33. {{ ' ' }}
  34. <span>{{ successMessage || $t('importer.success') }}</span>
  35. </div>
  36. <div v-else-if="error">
  37. <button
  38. class="button-unstyled"
  39. @click="dismiss"
  40. >
  41. <FAIcon
  42. icon="times"
  43. />
  44. </button>
  45. {{ ' ' }}
  46. <span>{{ errorMessage || $t('importer.error') }}</span>
  47. </div>
  48. </div>
  49. </template>
  50. <script src="./importer.js"></script>
  51. <style lang="scss">
  52. .importer {
  53. &-uploading {
  54. font-size: 1.5em;
  55. margin: 0.25em;
  56. }
  57. }
  58. </style>