@cloudron/pankow 3.1.8

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.
Files changed (62) hide show
  1. package/.gitlab-ci.yml +30 -0
  2. package/.jshintrc +8 -0
  3. package/LICENSE +21 -0
  4. package/README.md +20 -0
  5. package/components/BottomBar.vue +22 -0
  6. package/components/Breadcrumb.vue +64 -0
  7. package/components/Button.vue +243 -0
  8. package/components/ButtonGroup.vue +37 -0
  9. package/components/Checkbox.vue +112 -0
  10. package/components/Dialog.vue +178 -0
  11. package/components/DirectoryView.vue +772 -0
  12. package/components/DirectoryViewListItem.vue +412 -0
  13. package/components/EmailInput.vue +22 -0
  14. package/components/FileUploader.vue +204 -0
  15. package/components/FormGroup.vue +26 -0
  16. package/components/Icon.vue +12 -0
  17. package/components/InputDialog.vue +170 -0
  18. package/components/InputGroup.vue +32 -0
  19. package/components/MainLayout.vue +63 -0
  20. package/components/Menu.vue +284 -0
  21. package/components/MenuItem.vue +106 -0
  22. package/components/MenuItemLink.vue +52 -0
  23. package/components/MultiSelect.vue +202 -0
  24. package/components/Notification.vue +163 -0
  25. package/components/NumberInput.vue +31 -0
  26. package/components/OfflineBanner.vue +47 -0
  27. package/components/PasswordInput.vue +86 -0
  28. package/components/Popover.vue +185 -0
  29. package/components/ProgressBar.vue +75 -0
  30. package/components/Radiobutton.vue +128 -0
  31. package/components/SideBar.vue +104 -0
  32. package/components/SingleSelect.vue +190 -0
  33. package/components/Spinner.vue +67 -0
  34. package/components/Switch.vue +94 -0
  35. package/components/TabView.vue +161 -0
  36. package/components/TableView.vue +187 -0
  37. package/components/TagInput.vue +104 -0
  38. package/components/TextInput.vue +58 -0
  39. package/components/TopBar.vue +88 -0
  40. package/fallbackImage.js +29 -0
  41. package/fetcher.js +81 -0
  42. package/gallery/CustomMenuItem.vue +40 -0
  43. package/gallery/DirectoryViewDemo.vue +73 -0
  44. package/gallery/Index.vue +790 -0
  45. package/gallery/folder.svg +151 -0
  46. package/gallery/index.html +25 -0
  47. package/gallery/index.js +10 -0
  48. package/gallery/logo.png +0 -0
  49. package/gallery/vite.config.mjs +9 -0
  50. package/gestures.js +60 -0
  51. package/index.js +86 -0
  52. package/logo.png +0 -0
  53. package/logo.svg +78 -0
  54. package/package.json +26 -0
  55. package/style.css +351 -0
  56. package/tooltip.js +83 -0
  57. package/utils.js +383 -0
  58. package/viewers/GenericViewer.vue +84 -0
  59. package/viewers/ImageViewer.vue +239 -0
  60. package/viewers/PdfViewer.vue +82 -0
  61. package/viewers/TextViewer.vue +221 -0
  62. package/viewers.js +11 -0
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <div class="pankow-menu-item" @click.stop="onActivated">
3
+ <h1>Large Item</h1>
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+
9
+ export default {
10
+ name: 'CustomMenuItem',
11
+ emits: ['activated'],
12
+ components: {
13
+ },
14
+ props: {
15
+ item: {
16
+ type: Object,
17
+ default: {
18
+ action: null
19
+ }
20
+ }
21
+ },
22
+ computed: {
23
+ isVisible() {
24
+ if (typeof this.item.visible === 'function') return this.item.visible();
25
+ return typeof this.item.visible !== 'undefined' ? this.item.visible : true;
26
+ },
27
+ isDisabled() {
28
+ if (typeof this.item.disabled === 'function') return this.item.disabled();
29
+ return typeof this.item.disabled !== 'undefined' ? this.item.disabled : false;
30
+ }
31
+ },
32
+ methods: {
33
+ onActivated() {
34
+ if (this.isDisabled) return;
35
+ this.$emit('activated');
36
+ }
37
+ }
38
+ };
39
+
40
+ </script>
@@ -0,0 +1,73 @@
1
+ <template>
2
+ <div>
3
+ <h2>Directory View</h2>
4
+ <div class="demo-container">
5
+ <DirectoryView
6
+ :items="items"
7
+ :show-size="true"
8
+ :show-owner="true"
9
+ :show-modified="true"
10
+ :show-extract="false"
11
+ show-share="isShared"
12
+ />
13
+ </div>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+
19
+ import DirectoryView from '../components/DirectoryView.vue';
20
+
21
+ import fileIconUrl from './logo.png';
22
+ import folderIconUrl from './folder.svg';
23
+
24
+ export default {
25
+ name: 'DirectoryViewDemo',
26
+ components: {
27
+ DirectoryView
28
+ },
29
+ data() {
30
+ return {
31
+ items: []
32
+ };
33
+ },
34
+ mounted() {
35
+ for (let i = 0; i < 100; ++i) {
36
+ const isDirectory = i % 2;
37
+
38
+ this.items.push({
39
+ id: `id-${i}`,
40
+ name: `Test File ${i}`,
41
+ icon: isDirectory ? folderIconUrl : fileIconUrl,
42
+ previewUrl: '',
43
+
44
+ // optional
45
+ isDirectory: isDirectory,
46
+ modified: new Date(),
47
+ owner: 'admin',
48
+ size: 10241024,
49
+ isShared: !(i % 4),
50
+ href: '',
51
+ target: !(i % 5) ? '../symlink/target' : '',
52
+
53
+ // TODO maybe better handle type/isDirectory/isFile/isBinary/symlink...
54
+ // type: i % 2 ? 'directory' : 'file',
55
+ // isBinary: false,
56
+ });
57
+ }
58
+ }
59
+ };
60
+
61
+ </script>
62
+
63
+ <style scoped>
64
+
65
+ .demo-container {
66
+ border-color: var(--pankow-color-background);
67
+ border-style: solid;
68
+ border-width: 2px;
69
+ border-radius: var(--pankow-border-radius);
70
+ height: 300px;
71
+ }
72
+
73
+ </style>