@live-change/upload-frontend 0.4.2 → 0.4.4
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/front/src/Upload.js +5 -1
- package/front/src/UploadView.vue +4 -2
- package/package.json +13 -13
package/front/src/Upload.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, onUnmounted, watch } from 'vue'
|
|
1
|
+
import { ref, onUnmounted, watch, unref } from 'vue'
|
|
2
2
|
import { api as useApi } from '@live-change/vue3-ssr'
|
|
3
3
|
|
|
4
4
|
class Upload {
|
|
@@ -80,6 +80,10 @@ class Upload {
|
|
|
80
80
|
this.serverObservable = null
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
isDone() {
|
|
85
|
+
return unref(this.state) == 'done'
|
|
86
|
+
}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
export default Upload
|
package/front/src/UploadView.vue
CHANGED
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
eta: {{ Duration.fromMillis(uploadProgress.eta).toHuman({ unitDisplay: "short" }) }}
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
|
-
<div v-else class="
|
|
17
|
-
Uploaded
|
|
16
|
+
<div v-else class="flex flex-row justify-content-center">
|
|
17
|
+
<div class="mr-1">Uploaded</div>
|
|
18
|
+
<div v-if="upload.serverUpload" class="mr-1 font-semibold">{{ upload.serverUpload.fileName }}</div>
|
|
19
|
+
<div>{{ prettyBytes(uploadProgress.length) }}</div>
|
|
18
20
|
</div>
|
|
19
21
|
</div>
|
|
20
22
|
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/upload-frontend",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@fortawesome/fontawesome-free": "^6.4.2",
|
|
25
|
-
"@live-change/cli": "0.8.
|
|
25
|
+
"@live-change/cli": "0.8.1",
|
|
26
26
|
"@live-change/dao": "0.6.0",
|
|
27
27
|
"@live-change/dao-vue3": "0.6.0",
|
|
28
28
|
"@live-change/dao-websocket": "0.6.0",
|
|
29
|
-
"@live-change/framework": "0.8.
|
|
30
|
-
"@live-change/password-authentication-service": "0.4.
|
|
31
|
-
"@live-change/secret-code-service": "0.4.
|
|
32
|
-
"@live-change/secret-link-service": "0.4.
|
|
33
|
-
"@live-change/security-frontend": "^0.4.
|
|
34
|
-
"@live-change/session-service": "0.4.
|
|
35
|
-
"@live-change/user-service": "0.4.
|
|
36
|
-
"@live-change/vue3-components": "0.2.
|
|
37
|
-
"@live-change/vue3-ssr": "0.2.
|
|
29
|
+
"@live-change/framework": "0.8.1",
|
|
30
|
+
"@live-change/password-authentication-service": "0.4.4",
|
|
31
|
+
"@live-change/secret-code-service": "0.4.4",
|
|
32
|
+
"@live-change/secret-link-service": "0.4.4",
|
|
33
|
+
"@live-change/security-frontend": "^0.4.4",
|
|
34
|
+
"@live-change/session-service": "0.4.4",
|
|
35
|
+
"@live-change/user-service": "0.4.4",
|
|
36
|
+
"@live-change/vue3-components": "0.2.35",
|
|
37
|
+
"@live-change/vue3-ssr": "0.2.35",
|
|
38
38
|
"@vueuse/core": "^10.7.2",
|
|
39
39
|
"codeceptjs-assert": "^0.0.5",
|
|
40
40
|
"compression": "^1.7.4",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vue3-scroll-border": "0.1.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@live-change/codeceptjs-helper": "0.8.
|
|
56
|
+
"@live-change/codeceptjs-helper": "0.8.1",
|
|
57
57
|
"@wdio/selenium-standalone-service": "^8.15.0",
|
|
58
58
|
"codeceptjs": "^3.5.12",
|
|
59
59
|
"generate-password": "1.7.1",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"author": "",
|
|
66
66
|
"license": "BSD-3-Clause",
|
|
67
67
|
"description": "",
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "fa222af39b9a396db7066c31d7bce4ca138d16f3"
|
|
69
69
|
}
|