Albums: Update sort options in edit dialog #2620

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-11-02 10:07:15 +01:00
parent 9f5ef7dd33
commit 905925b4da
3 changed files with 93 additions and 89 deletions

View file

@ -161,9 +161,9 @@
}
},
"node_modules/@babel/compat-data": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.0.tgz",
"integrity": "sha512-Gt9jszFJYq7qzXVK4slhc6NzJXnOVmRECWcVjF/T23rNXD9NtWQ0W3qxdg+p9wWIB+VQw3GYV/U2Ha9bRTfs4w==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz",
"integrity": "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==",
"engines": {
"node": ">=6.9.0"
}
@ -215,9 +215,9 @@
}
},
"node_modules/@babel/generator": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.0.tgz",
"integrity": "sha512-GUPcXxWibClgmYJuIwC2Bc2Lg+8b9VjaJ+HlNdACEVt+Wlr1eoU1OPZjZRm7Hzl0gaTsUZNQfeihvZJhG7oc3w==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.1.tgz",
"integrity": "sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg==",
"dependencies": {
"@babel/types": "^7.20.0",
"@jridgewell/gen-mapping": "^0.3.2",
@ -536,12 +536,12 @@
}
},
"node_modules/@babel/helpers": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.0.tgz",
"integrity": "sha512-aGMjYraN0zosCEthoGLdqot1oRsmxVTQRHadsUPz5QM44Zej2PYRz7XiDE7GqnkZnNtLbOuxqoZw42vkU7+XEQ==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz",
"integrity": "sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==",
"dependencies": {
"@babel/template": "^7.18.10",
"@babel/traverse": "^7.20.0",
"@babel/traverse": "^7.20.1",
"@babel/types": "^7.20.0"
},
"engines": {
@ -562,9 +562,9 @@
}
},
"node_modules/@babel/parser": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.0.tgz",
"integrity": "sha512-G9VgAhEaICnz8iiJeGJQyVl6J2nTjbW0xeisva0PK6XcKsga7BIaqm4ZF8Rg1Wbaqmy6znspNqhPaPkyukujzg==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz",
"integrity": "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw==",
"bin": {
"parser": "bin/babel-parser.js"
},
@ -603,9 +603,9 @@
}
},
"node_modules/@babel/plugin-proposal-async-generator-functions": {
"version": "7.19.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.19.1.tgz",
"integrity": "sha512-0yu8vNATgLy4ivqMNBIwb1HebCelqN7YX8SL3FDXORv/RqT0zEEWUCH4GH44JsSrvCu6GqnAdR5EBFAPeNBB4Q==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz",
"integrity": "sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g==",
"dependencies": {
"@babel/helper-environment-visitor": "^7.18.9",
"@babel/helper-plugin-utils": "^7.19.0",
@ -1331,11 +1331,11 @@
}
},
"node_modules/@babel/plugin-transform-parameters": {
"version": "7.18.8",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz",
"integrity": "sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz",
"integrity": "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==",
"dependencies": {
"@babel/helper-plugin-utils": "^7.18.6"
"@babel/helper-plugin-utils": "^7.19.0"
},
"engines": {
"node": ">=6.9.0"
@ -1628,9 +1628,9 @@
}
},
"node_modules/@babel/runtime": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.0.tgz",
"integrity": "sha512-NDYdls71fTXoU8TZHfbBWg7DiZfNzClcKui/+kyi6ppD2L1qnWW3VV6CjtaBXSUGGhiTWJ6ereOIkUvenif66Q==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.1.tgz",
"integrity": "sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==",
"dependencies": {
"regenerator-runtime": "^0.13.10"
},
@ -1652,17 +1652,17 @@
}
},
"node_modules/@babel/traverse": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.0.tgz",
"integrity": "sha512-5+cAXQNARgjRUK0JWu2UBwja4JLSO/rBMPJzpsKb+oBF5xlUuCfljQepS4XypBQoiigL0VQjTZy6WiONtUdScQ==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz",
"integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==",
"dependencies": {
"@babel/code-frame": "^7.18.6",
"@babel/generator": "^7.20.0",
"@babel/generator": "^7.20.1",
"@babel/helper-environment-visitor": "^7.18.9",
"@babel/helper-function-name": "^7.19.0",
"@babel/helper-hoist-variables": "^7.18.6",
"@babel/helper-split-export-declaration": "^7.18.6",
"@babel/parser": "^7.20.0",
"@babel/parser": "^7.20.1",
"@babel/types": "^7.20.0",
"debug": "^4.1.0",
"globals": "^11.1.0"
@ -2350,9 +2350,9 @@
}
},
"node_modules/@types/node": {
"version": "18.11.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.8.tgz",
"integrity": "sha512-uGwPWlE0Hj972KkHtCDVwZ8O39GmyjfMane1Z3GUBGGnkZ2USDq7SxLpVIiIHpweY9DS0QTDH0Nw7RNBsAAZ5A=="
"version": "18.11.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz",
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg=="
},
"node_modules/@types/parse-json": {
"version": "4.0.0",
@ -2467,9 +2467,9 @@
"integrity": "sha512-W9mfWLHmJhkfAmV+7gDjcHeAWALQtgGT3JErxULl0oz6R6+3ug91I7IErs93eCFhPCZPHBs4QJS7YWEV7A3sxw=="
},
"node_modules/@vvo/tzdb": {
"version": "6.74.0",
"resolved": "https://registry.npmjs.org/@vvo/tzdb/-/tzdb-6.74.0.tgz",
"integrity": "sha512-LFjpsS74E55pkym9lLYjyZFhYZbY2586bxw9WHB0oJNXCqJ+/k7Kb16V6IGMhgux2zzxusFY1xdCKo5ixpz5uw=="
"version": "6.75.0",
"resolved": "https://registry.npmjs.org/@vvo/tzdb/-/tzdb-6.75.0.tgz",
"integrity": "sha512-36hx1wBIJD+ddu2vA3o0JL2xtR6yFbpmLm4hngd59OYtYY/0Mh6BVusUlCdayf9qVZs7UASN07+cwXAanCAuww=="
},
"node_modules/@webassemblyjs/ast": {
"version": "1.11.1",
@ -11804,9 +11804,9 @@
}
},
"node_modules/tar": {
"version": "6.1.11",
"resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz",
"integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==",
"version": "6.1.12",
"resolved": "https://registry.npmjs.org/tar/-/tar-6.1.12.tgz",
"integrity": "sha512-jU4TdemS31uABHd+Lt5WEYJuzn+TJTCBLljvIAHZOz6M9Os5pJ4dD+vRFLxPa/n3T0iEFzpi+0x1UfuDZYbRMw==",
"dependencies": {
"chownr": "^2.0.0",
"fs-minipass": "^2.0.0",
@ -11816,7 +11816,7 @@
"yallist": "^4.0.0"
},
"engines": {
"node": ">= 10"
"node": ">=10"
}
},
"node_modules/tar/node_modules/mkdirp": {
@ -13357,9 +13357,9 @@
}
},
"@babel/compat-data": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.0.tgz",
"integrity": "sha512-Gt9jszFJYq7qzXVK4slhc6NzJXnOVmRECWcVjF/T23rNXD9NtWQ0W3qxdg+p9wWIB+VQw3GYV/U2Ha9bRTfs4w=="
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz",
"integrity": "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ=="
},
"@babel/core": {
"version": "7.19.6",
@ -13394,9 +13394,9 @@
}
},
"@babel/generator": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.0.tgz",
"integrity": "sha512-GUPcXxWibClgmYJuIwC2Bc2Lg+8b9VjaJ+HlNdACEVt+Wlr1eoU1OPZjZRm7Hzl0gaTsUZNQfeihvZJhG7oc3w==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.1.tgz",
"integrity": "sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg==",
"requires": {
"@babel/types": "^7.20.0",
"@jridgewell/gen-mapping": "^0.3.2",
@ -13627,12 +13627,12 @@
}
},
"@babel/helpers": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.0.tgz",
"integrity": "sha512-aGMjYraN0zosCEthoGLdqot1oRsmxVTQRHadsUPz5QM44Zej2PYRz7XiDE7GqnkZnNtLbOuxqoZw42vkU7+XEQ==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz",
"integrity": "sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==",
"requires": {
"@babel/template": "^7.18.10",
"@babel/traverse": "^7.20.0",
"@babel/traverse": "^7.20.1",
"@babel/types": "^7.20.0"
}
},
@ -13647,9 +13647,9 @@
}
},
"@babel/parser": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.0.tgz",
"integrity": "sha512-G9VgAhEaICnz8iiJeGJQyVl6J2nTjbW0xeisva0PK6XcKsga7BIaqm4ZF8Rg1Wbaqmy6znspNqhPaPkyukujzg=="
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz",
"integrity": "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw=="
},
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {
"version": "7.18.6",
@ -13670,9 +13670,9 @@
}
},
"@babel/plugin-proposal-async-generator-functions": {
"version": "7.19.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.19.1.tgz",
"integrity": "sha512-0yu8vNATgLy4ivqMNBIwb1HebCelqN7YX8SL3FDXORv/RqT0zEEWUCH4GH44JsSrvCu6GqnAdR5EBFAPeNBB4Q==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz",
"integrity": "sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g==",
"requires": {
"@babel/helper-environment-visitor": "^7.18.9",
"@babel/helper-plugin-utils": "^7.19.0",
@ -14125,11 +14125,11 @@
}
},
"@babel/plugin-transform-parameters": {
"version": "7.18.8",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz",
"integrity": "sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz",
"integrity": "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==",
"requires": {
"@babel/helper-plugin-utils": "^7.18.6"
"@babel/helper-plugin-utils": "^7.19.0"
}
},
"@babel/plugin-transform-property-literals": {
@ -14335,9 +14335,9 @@
}
},
"@babel/runtime": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.0.tgz",
"integrity": "sha512-NDYdls71fTXoU8TZHfbBWg7DiZfNzClcKui/+kyi6ppD2L1qnWW3VV6CjtaBXSUGGhiTWJ6ereOIkUvenif66Q==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.1.tgz",
"integrity": "sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==",
"requires": {
"regenerator-runtime": "^0.13.10"
}
@ -14353,17 +14353,17 @@
}
},
"@babel/traverse": {
"version": "7.20.0",
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.0.tgz",
"integrity": "sha512-5+cAXQNARgjRUK0JWu2UBwja4JLSO/rBMPJzpsKb+oBF5xlUuCfljQepS4XypBQoiigL0VQjTZy6WiONtUdScQ==",
"version": "7.20.1",
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz",
"integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==",
"requires": {
"@babel/code-frame": "^7.18.6",
"@babel/generator": "^7.20.0",
"@babel/generator": "^7.20.1",
"@babel/helper-environment-visitor": "^7.18.9",
"@babel/helper-function-name": "^7.19.0",
"@babel/helper-hoist-variables": "^7.18.6",
"@babel/helper-split-export-declaration": "^7.18.6",
"@babel/parser": "^7.20.0",
"@babel/parser": "^7.20.1",
"@babel/types": "^7.20.0",
"debug": "^4.1.0",
"globals": "^11.1.0"
@ -14827,9 +14827,9 @@
}
},
"@types/node": {
"version": "18.11.8",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.8.tgz",
"integrity": "sha512-uGwPWlE0Hj972KkHtCDVwZ8O39GmyjfMane1Z3GUBGGnkZ2USDq7SxLpVIiIHpweY9DS0QTDH0Nw7RNBsAAZ5A=="
"version": "18.11.9",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz",
"integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg=="
},
"@types/parse-json": {
"version": "4.0.0",
@ -14937,9 +14937,9 @@
"integrity": "sha512-W9mfWLHmJhkfAmV+7gDjcHeAWALQtgGT3JErxULl0oz6R6+3ug91I7IErs93eCFhPCZPHBs4QJS7YWEV7A3sxw=="
},
"@vvo/tzdb": {
"version": "6.74.0",
"resolved": "https://registry.npmjs.org/@vvo/tzdb/-/tzdb-6.74.0.tgz",
"integrity": "sha512-LFjpsS74E55pkym9lLYjyZFhYZbY2586bxw9WHB0oJNXCqJ+/k7Kb16V6IGMhgux2zzxusFY1xdCKo5ixpz5uw=="
"version": "6.75.0",
"resolved": "https://registry.npmjs.org/@vvo/tzdb/-/tzdb-6.75.0.tgz",
"integrity": "sha512-36hx1wBIJD+ddu2vA3o0JL2xtR6yFbpmLm4hngd59OYtYY/0Mh6BVusUlCdayf9qVZs7UASN07+cwXAanCAuww=="
},
"@webassemblyjs/ast": {
"version": "1.11.1",
@ -21613,9 +21613,9 @@
"integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ=="
},
"tar": {
"version": "6.1.11",
"resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz",
"integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==",
"version": "6.1.12",
"resolved": "https://registry.npmjs.org/tar/-/tar-6.1.12.tgz",
"integrity": "sha512-jU4TdemS31uABHd+Lt5WEYJuzn+TJTCBLljvIAHZOz6M9Os5pJ4dD+vRFLxPa/n3T0iEFzpi+0x1UfuDZYbRMw==",
"requires": {
"chownr": "^2.0.0",
"fs-minipass": "^2.0.0",

View file

@ -138,13 +138,15 @@ export default {
'countries': countries,
'cameras': cameras,
'sorting': [
{value: 'added', text: this.$gettext('Recently added')},
{value: 'edited', text: this.$gettext('Recently edited')},
{value: 'newest', text: this.$gettext('Newest first')},
{value: 'oldest', text: this.$gettext('Oldest first')},
{value: 'name', text: this.$gettext('Sort by file name')},
{value: 'similar', text: this.$gettext('Group by similarity')},
{value: 'relevance', text: this.$gettext('Most relevant')},
{value: 'newest', text: this.$gettext('Newest First')},
{value: 'oldest', text: this.$gettext('Oldest First')},
{value: 'added', text: this.$gettext('Recently Added')},
{value: 'edited', text: this.$gettext('Recently Edited')},
{value: 'name', text: this.$gettext('File Name')},
{value: 'size', text: this.$gettext('File Size')},
{value: 'duration', text: this.$gettext('Video Duration')},
{value: 'relevance', text: this.$gettext('Most Relevant')},
{value: 'similar', text: this.$gettext('Visual Similarity')},
],
},
dialog: {

View file

@ -118,13 +118,15 @@ export default {
growDesc: false,
loading: false,
sorting: [
{value: 'added', text: this.$gettext('Recently added')},
{value: 'edited', text: this.$gettext('Recently edited')},
{value: 'newest', text: this.$gettext('Newest first')},
{value: 'oldest', text: this.$gettext('Oldest first')},
{value: 'name', text: this.$gettext('Sort by file name')},
{value: 'similar', text: this.$gettext('Group by similarity')},
{value: 'relevance', text: this.$gettext('Most relevant')},
{value: 'newest', text: this.$gettext('Newest First')},
{value: 'oldest', text: this.$gettext('Oldest First')},
{value: 'added', text: this.$gettext('Recently Added')},
{value: 'edited', text: this.$gettext('Recently Edited')},
{value: 'name', text: this.$gettext('File Name')},
{value: 'size', text: this.$gettext('File Size')},
{value: 'duration', text: this.$gettext('Video Duration')},
{value: 'relevance', text: this.$gettext('Most Relevant')},
{value: 'similar', text: this.$gettext('Visual Similarity')},
],
categories: this.$config.albumCategories(),
titleRule: v => v.length <= this.$config.get('clip') || this.$gettext("Name too long"),