Desktop markdown wiki app. Built with node, Electron Framework and AngularJS.

index.html 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <table class="table-striped" ng-show="false">
  2. <thead>
  3. <tr>
  4. <th>Name</th>
  5. <th>Kind</th>
  6. <th>Date Modified</th>
  7. <th>Author</th>
  8. <th>Size</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <tr ng-repeat="file in files track by $index" ng-dblclick="openNote(file)" >
  13. <td>{{file.path}}</td>
  14. <td>{{file.type}}</td>
  15. <td>{{file.modified_at}}</td>
  16. <td>{{file.author}}</td>
  17. <td>{{file.size}}</td>
  18. </tr>
  19. </tbody>
  20. </table>
  21. <div class="file-view" style="height: 100%; overflow-y: scroll">
  22. <ul id="grid" infinite-scroll='infiniteScroll()' infinite-scroll-distance='4' infinite-scroll-immediate-check="false" infinite-scroll-parent="true">
  23. <li id="{{file.title}}" ng-repeat="file in files track by $index" ng-dblclick="openFile(file)" class="file-view-item" ng-class="fader" isotope-item="{{file.path}}" style="display: block; opacity: 0;">
  24. <div class="thumbnail-icon" ng-show="file.type != 'Folder'" ng-right-click="fileContextMenu(file)">
  25. <img src="{{getImageURL(file.path)}}" ng-hide="isImage(file.type)">
  26. <img src="{{file.thumbnail}}" ng-show="isImage(file.type)">
  27. </div>
  28. <div class="notebook-icon ng-hide" ng-show="file.type == 'Folder'">
  29. <img class="notebook-thumbnail" src="content/imgs/folder-gray-icon.png" >
  30. <div class="notebook-icon-title">{{file.title}}</div>
  31. <div class="notebook-icon-info">{{file.size}}</div>
  32. </div>
  33. <div class="icon-name" ng-show="file.type != 'Folder'">{{file.title}}</div>
  34. <div class="icon-name" ng-show="file.type == 'Folder'">{{file.title}}</div>
  35. </li>
  36. <div style='clear: both;'></div>
  37. </ul>
  38. </div>