Skip to content

Commit

Permalink
Merge pull request #1219 from nextcloud/dependabot/npm_and_yarn/nextc…
Browse files Browse the repository at this point in the history
…loud/router-2.1.2
  • Loading branch information
dependabot[bot] authored Jun 27, 2023
2 parents 1c8f875 + 782385c commit 115f16b
Show file tree
Hide file tree
Showing 25 changed files with 159 additions and 32 deletions.
5 changes: 2 additions & 3 deletions __mocks__/@nextcloud/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ const wsData = require('./activity_ws.json')

axios.get = function(url) {
return new Promise((resolve, reject) => {
if (url === 'http://localhostundefined/ocs/v2.php/apps/activity/api/v2/activity/filter') {
if (url === 'http://localhost/ocs/v2.php/apps/activity/api/v2/activity/filter') {
resolve({ data: wsData })
} else {
// eslint-disable-next-line no-console
console.log(url)
reject(new Error(`URL not defined ${url}`))
}
})
}
Expand Down
3 changes: 3 additions & 0 deletions js/activity-206.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions js/activity-206.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

/*!
* focus-trap 7.2.0
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/

/*!
* tabbable 6.0.1
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/

/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */

/*! For license information please see NcAvatar.js.LICENSE.txt */

/*! For license information please see NcUserBubble.js.LICENSE.txt */
1 change: 1 addition & 0 deletions js/activity-206.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions js/activity-425.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions js/activity-425.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

/*!
* focus-trap 7.2.0
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/

/*!
* tabbable 6.0.1
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/

/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */

/*! For license information please see NcAvatar.js.LICENSE.txt */

/*! For license information please see NcUserBubble.js.LICENSE.txt */
1 change: 1 addition & 0 deletions js/activity-425.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-472.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-472.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions js/activity-499.js

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions js/activity-499.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

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

/*!
* Vue.js v2.7.14
* (c) 2014-2022 Evan You
* Released under the MIT License.
*/

/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/

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

/**
* @copyright Copyright (c) 2021 Louis Chemineau <louis@chmn.me>
*
* @author Louis Chemineau <louis@chmn.me>
*
* @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/>.
*
*/

//! authors : Tim Wood, Iskren Chernev, Moment.js contributors

//! license : MIT

//! moment.js

//! moment.js locale configuration

//! momentjs.com

//! version : 2.29.4
1 change: 1 addition & 0 deletions js/activity-499.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-adminSettings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-adminSettings.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-dashboard-lazy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-dashboard-lazy.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-dashboard.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-dashboard.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-personalSettings.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-personalSettings.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/activity-sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/activity-sidebar.js.map

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@nextcloud/logger": "^2.5.0",
"@nextcloud/moment": "^1.2.1",
"@nextcloud/paths": "^2.1.0",
"@nextcloud/router": "^2.0.0",
"@nextcloud/router": "^2.1.2",
"@nextcloud/vue": "^7.12.0",
"@nextcloud/vue-dashboard": "^2.0.1",
"@nextcloud/vue-richtext": "^2.0.4",
Expand Down
9 changes: 6 additions & 3 deletions src/views/ActivityTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<!-- error message -->
<NcEmptyContent v-if="error" :title="error">
<template #icon>
<span class="icon-error"></span>
<span class="icon-error" />
</template>
</NcEmptyContent>
<template v-else>
Expand All @@ -39,7 +39,7 @@
<NcEmptyContent v-if="activities.length === 0 && !loading"
:title="t('activity', 'No activity yet')">
<template #icon>
<span class="icon-activity"></span>
<span class="icon-activity" />
</template>
</NcEmptyContent>
</template>
Expand All @@ -48,6 +48,7 @@

<script>
import { generateOcsUrl } from '@nextcloud/router'
import { translate } from '@nextcloud/l10n'
import axios from '@nextcloud/axios'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
Expand Down Expand Up @@ -107,7 +108,7 @@ export default {
this.loading = false
return
}
this.error = t('activity', 'Unable to load the activity list')
this.error = translate('activity', 'Unable to load the activity list')
this.loading = false
console.error('Error loading the activity list', error)
}
Expand Down Expand Up @@ -137,6 +138,8 @@ export default {
logger.debug(`Processed ${this.activities.length} activity(ies)`, { activities: this.activities, fileInfo: this.fileInfo })
}
},
t: translate,
},
}
</script>
Expand Down

0 comments on commit 115f16b

Please sign in to comment.