Skip to content

Commit 7cca5ad

Browse files
committed
refactor(frontend): Ship our own Backbone
Signed-off-by: Carl Schwan <[email protected]>
1 parent 885eebe commit 7cca5ad

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

package-lock.json

Lines changed: 42 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"dependencies": {
1616
"@nextcloud/initial-state": "^3.0.0",
1717
"@nextcloud/router": "^3.0.1",
18-
"escape-html": "^1.0.3"
18+
"backbone": "^1.6.1",
19+
"escape-html": "^1.0.3",
20+
"jquery": "^3.7.1"
1921
},
2022
"devDependencies": {
2123
"@babel/core": "^7.28.4",

src/admin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
import escapeHTML from 'escape-html'
1212
import { generateUrl, imagePath, generateOcsUrl } from '@nextcloud/router';
13+
import Backbone from 'backbone';
1314

1415
/* global _, Handlebars, $ */
15-
(function(OC, OCA, _, Backbone) {
16+
(function(OC, OCA, _) {
1617
if (!OCA.External) {
1718
/**
1819
* @namespace
@@ -334,7 +335,7 @@ import { generateUrl, imagePath, generateOcsUrl } from '@nextcloud/router';
334335
OC.Settings.Apps.rebuildNavigation()
335336
},
336337
}
337-
})(OC, OCA, _, OC.Backbone)
338+
})(OC, OCA, _)
338339

339340
window.addEventListener('DOMContentLoaded', function() {
340341
OCA.External.App.init()

0 commit comments

Comments
 (0)