pinokiod 8.0.106 → 8.0.107
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/kernel/vault/index.js
CHANGED
|
@@ -3407,7 +3407,6 @@ class Vault {
|
|
|
3407
3407
|
status: PUBLIC_FILE_STATUS[row.status] || null
|
|
3408
3408
|
}, this.locationForPath(row.path, row.source_id))),
|
|
3409
3409
|
total: Number(result.total) || 0,
|
|
3410
|
-
deduplicatable: Number(result.duplicateTotal) || 0,
|
|
3411
3410
|
next_cursor: result.nextCursor || null
|
|
3412
3411
|
}
|
|
3413
3412
|
}
|
|
@@ -5691,18 +5691,9 @@ class RegistryCore {
|
|
|
5691
5691
|
WHERE ${identityWhere}
|
|
5692
5692
|
AND ${authorized.where.join(" AND ")}
|
|
5693
5693
|
`).get(...identityValues, ...authorized.values).count) || 0
|
|
5694
|
-
// Only paths still storing their own copy can free anything.
|
|
5695
|
-
const duplicateTotal = Number(this.database.prepare(`
|
|
5696
|
-
SELECT COUNT(*) AS count
|
|
5697
|
-
FROM files child
|
|
5698
|
-
WHERE ${identityWhere}
|
|
5699
|
-
AND child.status = 'duplicate'
|
|
5700
|
-
AND ${authorized.where.join(" AND ")}
|
|
5701
|
-
`).get(...identityValues, ...authorized.values).count) || 0
|
|
5702
5694
|
return {
|
|
5703
5695
|
rows,
|
|
5704
5696
|
total,
|
|
5705
|
-
duplicateTotal,
|
|
5706
5697
|
nextCursor: hasMore && last
|
|
5707
5698
|
? this.encodeCursor({
|
|
5708
5699
|
sort: "file-locations",
|
package/package.json
CHANGED
package/server/public/vault.js
CHANGED
|
@@ -658,14 +658,11 @@ const confirmLeave = (message, confirmLabel) => new Promise((resolve) => {
|
|
|
658
658
|
const openGlobalWorkspace = () => {
|
|
659
659
|
window.parent.location.assign("/vault")
|
|
660
660
|
}
|
|
661
|
-
// Opens a new tab rather than navigating: this workspace can be embedded in an
|
|
662
|
-
// app page, where navigating would either nest a second copy of the interface
|
|
663
|
-
// or drop the user out of the app they were looking at.
|
|
664
661
|
// A copy that belongs to another app opens that app's own workspace, where it
|
|
665
|
-
// can actually be acted on
|
|
666
|
-
//
|
|
667
|
-
//
|
|
668
|
-
//
|
|
662
|
+
// can actually be acted on; caches and external folders have no app page, so
|
|
663
|
+
// they open the global one. Accepting replaces the parent window, because this
|
|
664
|
+
// workspace can be embedded in an app page and navigating in place would nest a
|
|
665
|
+
// second copy of the interface inside that frame.
|
|
669
666
|
const openContentGroup = async (group, kind, label) => {
|
|
670
667
|
// The label and kind travel with the row: an app workspace cannot look up
|
|
671
668
|
// sources belonging to other apps, so a lookup here would name every one of
|
|
@@ -2968,9 +2965,6 @@ const loadPagedChildren = async (cache, key, buildUrl, append) => {
|
|
|
2968
2965
|
const items = Array.isArray(result.items) ? result.items : []
|
|
2969
2966
|
current.items = append ? current.items.concat(items) : items
|
|
2970
2967
|
current.total = Math.max(0, Number(result.total) || 0)
|
|
2971
|
-
// Location lists carry how many copies still cost space; group children
|
|
2972
|
-
// do not, and read as zero.
|
|
2973
|
-
current.deduplicatable = Math.max(0, Number(result.deduplicatable) || 0)
|
|
2974
2968
|
current.nextCursor = result.next_cursor || null
|
|
2975
2969
|
current.loaded = true
|
|
2976
2970
|
} catch (error) {
|