You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
5.0 KiB

  1. .modallayer#modal-editor-image
  2. .modallayer-content
  3. .columns
  4. .column
  5. h3 Insert Image
  6. .column.is-narrow.editor-modal-load(v-bind:class="{ 'is-active': isLoading }")
  7. span {{ isLoadingText }}
  8. i
  9. .column.is-narrow
  10. .control.is-grouped
  11. p.control
  12. a.button.is-dark.is-outlined(v-on:click="newFolder")
  13. span.icon.is-small: i.fa.fa-folder
  14. span New Folder
  15. .control.has-addons
  16. a.button.is-info.is-outlined#btn-editor-uploadimage
  17. span.icon.is-small: i.fa.fa-upload
  18. span Upload Image
  19. label
  20. input(type="file", multiple)
  21. a.button.is-info.is-outlined(v-on:click="fetchFromUrl")
  22. span.icon.is-small: i.fa.fa-download
  23. span Fetch from URL
  24. .column.is-narrow
  25. .control.is-grouped
  26. p.control
  27. a.button.is-warning.is-outlined(v-on:click="cancel") Cancel
  28. p.control
  29. a.button.is-primary.is-outlined(v-on:click="insertImage") Insert Image
  30. .columns
  31. .column.is-one-quarter(style={'max-width':'350px'})
  32. .box.editor-modal-folderlist
  33. aside.menu
  34. p.menu-label
  35. | Folders
  36. ul.menu-list
  37. li(v-for="fld in folders")
  38. a(v-on:click="selectFolder(fld)", v-bind:class="{ 'is-active': currentFolder === fld }")
  39. span.icon.is-small: i.fa.fa-folder
  40. span /{{ fld }}
  41. .box.editor-modal-imagealign
  42. .control.is-grouped
  43. .control
  44. span Alignment
  45. .control.has-addons
  46. a.button.is-primary(title="Left", v-on:click="selectAlignment('left')", v-bind:class="{ 'is-outlined': currentAlign !== 'left' }")
  47. span.icon.is-small: i.fa.fa-align-left
  48. a.button.is-primary(title="Center", v-on:click="selectAlignment('center')", v-bind:class="{ 'is-outlined': currentAlign !== 'center' }")
  49. span.icon.is-small: i.fa.fa-align-center
  50. a.button.is-primary(title="Right", v-on:click="selectAlignment('right')", v-bind:class="{ 'is-outlined': currentAlign !== 'right' }")
  51. span.icon.is-small: i.fa.fa-align-right
  52. .control
  53. a.button.is-primary(title="Page Logo", v-on:click="selectAlignment('logo')", v-bind:class="{ 'is-outlined': currentAlign !== 'logo' }")
  54. span.icon.is-small: i.fa.fa-external-link-square
  55. .column.editor-modal-imagechoices
  56. figure(v-for="img in images", v-bind:class="{ 'is-active': currentImage === img._id }", v-on:click="selectImage(img._id)", v-bind:data-uid="img._id")
  57. img(v-bind:src="'/uploads/t/' + img._id + '.png'")
  58. span: strong {{ img.basename }}
  59. span {{ img.filesize | filesize }}
  60. em(v-show="images.length < 1") This folder is empty.
  61. .modal(v-bind:class="{ 'is-active': newFolderShow }")
  62. .modal-background
  63. .modal-container
  64. .modal-content
  65. .card.is-fullwidth
  66. header.card-header
  67. p.card-header-title New Folder
  68. .card-content
  69. .content
  70. label.label Enter the new folder name:
  71. p.control
  72. input.input#txt-editor-newfoldername(type='text', placeholder='folder name', v-model='newFolderName', v-on:keyup.enter="newFolderCreate", v-on:keyup.esc="newFolderDiscard")
  73. span.help.is-danger(v-show="newFolderError") This folder name is invalid!
  74. footer.card-footer
  75. a.card-footer-item(v-on:click="newFolderDiscard") Discard
  76. a.card-footer-item(v-on:click="newFolderCreate") Create
  77. .modal(v-bind:class="{ 'is-active': fetchFromUrlShow }")
  78. .modal-background
  79. .modal-container
  80. .modal-content
  81. .card.is-fullwidth
  82. header.card-header
  83. p.card-header-title Fetch Image from URL
  84. .card-content
  85. .content
  86. label.label Enter full URL path to the image:
  87. p.control
  88. input.input#txt-editor-fetchimgurl(type='text', placeholder='http://www.example.com/some-image.png', v-model='fetchFromUrlURL')
  89. span.help.is-danger.is-hidden This URL path is invalid!
  90. footer.card-footer
  91. a.card-footer-item(v-on:click="fetchFromUrlDiscard") Discard
  92. a.card-footer-item(v-on:click="fetchFromUrlGo") Fetch
  93. .modal(v-bind:class="{ 'is-active': renameImageShow }")
  94. .modal-background
  95. .modal-container
  96. .modal-content
  97. .card.is-fullwidth
  98. header.card-header
  99. p.card-header-title Rename Image
  100. .card-content
  101. .content
  102. label.label Enter the new filename (without the extension) of the image:
  103. p.control
  104. input.input#txt-editor-renameimage(type='text', placeholder='filename', v-model='renameImageFilename')
  105. span.help.is-danger.is-hidden This filename is invalid!
  106. footer.card-footer
  107. a.card-footer-item(v-on:click="renameImageDiscard") Discard
  108. a.card-footer-item(v-on:click="renameImageGo") Rename
  109. .modal(v-bind:class="{ 'is-active': deleteImageShow }")
  110. .modal-background
  111. .modal-container
  112. .modal-content
  113. .card.is-fullwidth
  114. header.card-header.is-danger
  115. p.card-header-title Delete image?
  116. .card-content
  117. .content
  118. | Are you sure you want to delete #[strong {{deleteImageFilename}}]?
  119. footer.card-footer
  120. a.card-footer-item(v-on:click="deleteImageWarn(false)") Discard
  121. a.card-footer-item(v-on:click="deleteImageGo") Delete