Skip to content

Commit

Permalink
Implement .nomedia/.noimage filter
Browse files Browse the repository at this point in the history
for Timeline and Tags

fixes #234

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 2, 2022
1 parent f3f8a2e commit 957674b
Show file tree
Hide file tree
Showing 26 changed files with 218 additions and 47 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions js/photos-main.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
* @license MIT
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

/*!
* Vue.js v2.6.14
* (c) 2014-2021 Evan You
Expand All @@ -79,6 +86,14 @@
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */

/*! http://mths.be/base64 v0.1.0 by @mathias | MIT license */

/*! https://mths.be/he v1.2.0 by @mathias | MIT license */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
* @copyright 2019 Christoph Wurst <[email protected]>
*
Expand Down Expand Up @@ -143,6 +158,28 @@
*
*/

/**
* @copyright Copyright (c) 2019 John Molakvoæ <[email protected]>
*
* @author John Molakvoæ <[email protected]>
*
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

/**
* @copyright Copyright (c) 2019 John Molakvoæ <[email protected]>
*
Expand Down Expand Up @@ -275,6 +312,14 @@
*
*/

/**
* @license nested-property https://github.com/cosmosio/nested-property
*
* The MIT License (MIT)
*
* Copyright (c) 2014-2020 Olivier Scherrer <[email protected]>
*/

/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
Expand Down
2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions js/photos-src_patchedRequest_js-src_views_Tags_vue.js

This file was deleted.

1 change: 0 additions & 1 deletion js/photos-src_patchedRequest_js-src_views_Tags_vue.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions js/photos-src_views_Tags_vue.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions js/photos-src_views_Tags_vue.js.map

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 5 additions & 1 deletion src/Photos.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ import imgplaceholder from './assets/image.svg'
import videoplaceholder from './assets/video.svg'
import isMapsInstalled from './services/IsMapsInstalled'
import areTagsInstalled from './services/AreTagsInstalled'
import searchNomedia from './services/NomediaSearch'

export default {
name: 'Photos',
Expand All @@ -102,7 +103,7 @@ export default {
}
},

beforeMount() {
async beforeMount() {
if ('serviceWorker' in navigator) {
// Use the window load event to keep the page load performant
window.addEventListener('load', () => {
Expand All @@ -118,6 +119,9 @@ export default {
} else {
console.debug('Service Worker is not enabled on this browser.')
}

const files = await searchNomedia({ full: true })
this.$store.dispatch('setNomediaFiles', files)
},

beforeDestroy() {
Expand Down
Loading

0 comments on commit 957674b

Please sign in to comment.