@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.
- package/.gitlab-ci.yml +30 -0
- package/.jshintrc +8 -0
- package/LICENSE +21 -0
- package/README.md +20 -0
- package/components/BottomBar.vue +22 -0
- package/components/Breadcrumb.vue +64 -0
- package/components/Button.vue +243 -0
- package/components/ButtonGroup.vue +37 -0
- package/components/Checkbox.vue +112 -0
- package/components/Dialog.vue +178 -0
- package/components/DirectoryView.vue +772 -0
- package/components/DirectoryViewListItem.vue +412 -0
- package/components/EmailInput.vue +22 -0
- package/components/FileUploader.vue +204 -0
- package/components/FormGroup.vue +26 -0
- package/components/Icon.vue +12 -0
- package/components/InputDialog.vue +170 -0
- package/components/InputGroup.vue +32 -0
- package/components/MainLayout.vue +63 -0
- package/components/Menu.vue +284 -0
- package/components/MenuItem.vue +106 -0
- package/components/MenuItemLink.vue +52 -0
- package/components/MultiSelect.vue +202 -0
- package/components/Notification.vue +163 -0
- package/components/NumberInput.vue +31 -0
- package/components/OfflineBanner.vue +47 -0
- package/components/PasswordInput.vue +86 -0
- package/components/Popover.vue +185 -0
- package/components/ProgressBar.vue +75 -0
- package/components/Radiobutton.vue +128 -0
- package/components/SideBar.vue +104 -0
- package/components/SingleSelect.vue +190 -0
- package/components/Spinner.vue +67 -0
- package/components/Switch.vue +94 -0
- package/components/TabView.vue +161 -0
- package/components/TableView.vue +187 -0
- package/components/TagInput.vue +104 -0
- package/components/TextInput.vue +58 -0
- package/components/TopBar.vue +88 -0
- package/fallbackImage.js +29 -0
- package/fetcher.js +81 -0
- package/gallery/CustomMenuItem.vue +40 -0
- package/gallery/DirectoryViewDemo.vue +73 -0
- package/gallery/Index.vue +790 -0
- package/gallery/folder.svg +151 -0
- package/gallery/index.html +25 -0
- package/gallery/index.js +10 -0
- package/gallery/logo.png +0 -0
- package/gallery/vite.config.mjs +9 -0
- package/gestures.js +60 -0
- package/index.js +86 -0
- package/logo.png +0 -0
- package/logo.svg +78 -0
- package/package.json +26 -0
- package/style.css +351 -0
- package/tooltip.js +83 -0
- package/utils.js +383 -0
- package/viewers/GenericViewer.vue +84 -0
- package/viewers/ImageViewer.vue +239 -0
- package/viewers/PdfViewer.vue +82 -0
- package/viewers/TextViewer.vue +221 -0
- 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>
|