Skip to content

Commit

Permalink
chore(assets): Recompile assets
Browse files Browse the repository at this point in the history
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
nextcloud-command authored and susnux committed Sep 20, 2024
1 parent 085aab2 commit b6facb8
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 76 deletions.
51 changes: 1 addition & 50 deletions core/js/tests/specs/coreSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ describe('Core base tests', function() {
OC.currentUser = 'dummy';
clock = sinon.useFakeTimers();
reloadStub = sinon.stub(OC, 'reload');
document.head.dataset.user = 'dummy'
notificationStub = sinon.stub(OC.Notification, 'show');
// unstub the error processing method
ajaxErrorStub = OC._processAjaxError;
Expand All @@ -778,47 +779,6 @@ describe('Core base tests', function() {
clock.restore();
});

it('reloads current page in case of auth error', function() {
var dataProvider = [
[200, false],
[400, false],
[0, false],
[401, true],
[302, true],
[303, true],
[307, true]
];

for (var i = 0; i < dataProvider.length; i++) {
var xhr = { status: dataProvider[i][0] };
var expectedCall = dataProvider[i][1];

reloadStub.reset();
OC._reloadCalled = false;

$(document).trigger(new $.Event('ajaxError'), xhr);

// trigger timers
clock.tick(waitTimeMs);

if (expectedCall) {
expect(reloadStub.calledOnce).toEqual(true);
} else {
expect(reloadStub.notCalled).toEqual(true);
}
}
});
it('reload only called once in case of auth error', function() {
var xhr = { status: 401 };

$(document).trigger(new $.Event('ajaxError'), xhr);
$(document).trigger(new $.Event('ajaxError'), xhr);

// trigger timers
clock.tick(waitTimeMs);

expect(reloadStub.calledOnce).toEqual(true);
});
it('does not reload the page if the user was navigating away', function() {
var xhr = { status: 0 };
OC._userIsNavigatingAway = true;
Expand All @@ -829,16 +789,7 @@ describe('Core base tests', function() {
clock.tick(waitTimeMs);
expect(reloadStub.notCalled).toEqual(true);
});
it('displays notification', function() {
var xhr = { status: 401 };

notificationUpdateStub = sinon.stub(OC.Notification, 'showUpdate');

$(document).trigger(new $.Event('ajaxError'), xhr);

clock.tick(waitTimeMs);
expect(notificationUpdateStub.notCalled).toEqual(false);
});
it('shows a temporary notification if the connection is lost', function() {
var xhr = { status: 0 };
spyOn(OC, '_ajaxConnectionLostHandler');
Expand Down
2 changes: 2 additions & 0 deletions dist/323-323.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions dist/6794-6794.js.license → dist/323-323.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ SPDX-FileCopyrightText: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
SPDX-FileCopyrightText: Jerry Bendy <jerry@icewingcc.com>
SPDX-FileCopyrightText: Jeff Sagal <sagalbot@gmail.com>
SPDX-FileCopyrightText: Jacob Clevenger<https://github.com/wheatjs>
SPDX-FileCopyrightText: Iskren Ivov Chernev <iskren.chernev@gmail.com> (https://github.com/ichernev)
SPDX-FileCopyrightText: Hypercontext
SPDX-FileCopyrightText: Guillaume Chau <guillaume.b.chau@gmail.com>
SPDX-FileCopyrightText: GitHub Inc.
Expand All @@ -44,6 +45,7 @@ SPDX-FileCopyrightText: Evan You
SPDX-FileCopyrightText: Eugene Sharygin <eush77@gmail.com>
SPDX-FileCopyrightText: Eric Norris (https://github.com/ericnorris)
SPDX-FileCopyrightText: Dr.-Ing. Mario Heiderich, Cure53 <mario@cure53.de> (https://cure53.de/)
SPDX-FileCopyrightText: Denis Pushkarev
SPDX-FileCopyrightText: David Clark
SPDX-FileCopyrightText: Christoph Wurst <christoph@winzerhof-wurst.at>
SPDX-FileCopyrightText: Christoph Wurst
Expand Down Expand Up @@ -98,6 +100,12 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/logger
- version: 3.0.2
- license: GPL-3.0-or-later
- @nextcloud/router
- version: 2.2.1
- license: GPL-3.0-or-later
- @nextcloud/moment
- version: 1.3.1
- license: GPL-3.0-or-later
- @nextcloud/paths
- version: 2.2.1
- license: GPL-3.0-or-later
Expand Down Expand Up @@ -146,6 +154,9 @@ This file is generated from multiple sources. Included packages:
- console-browserify
- version: 1.2.0
- license: MIT
- core-js
- version: 3.38.1
- license: MIT
- crypt
- version: 0.0.2
- license: BSD-3-Clause
Expand Down Expand Up @@ -245,6 +256,9 @@ This file is generated from multiple sources. Included packages:
- md5
- version: 2.3.0
- license: BSD-3-Clause
- moment
- version: 2.30.1
- license: MIT
- nextcloud-vue-collections
- version: 0.13.0
- license: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions dist/323-323.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/323-323.js.map.license
2 changes: 0 additions & 2 deletions dist/6794-6794.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/6794-6794.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/6794-6794.js.map.license

This file was deleted.

4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-install.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-login.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/settings-legacy-admin.js

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

9 changes: 9 additions & 0 deletions dist/settings-legacy-admin.js.license
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
SPDX-License-Identifier: MIT
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: Tobias Koppers @sokra
SPDX-FileCopyrightText: OpenJS Foundation and other contributors
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors


This file is generated from multiple sources. Included packages:
- jquery
- version: 3.7.1
- license: MIT
- webpack
- version: 5.94.0
- license: MIT
- nextcloud
- version: 1.0.0
- license: AGPL-3.0-or-later
Loading

0 comments on commit b6facb8

Please sign in to comment.