Skip to content

Commit d8189c4

Browse files
committed
chore!(core): remove deprecated jQuery and jQuery UI
"jQuery is deprecated and will be removed with Nextcloud 19" Well... At least it is removed now 😉 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 4a34571 commit d8189c4

32 files changed

+7
-1955
lines changed

build/frontend-legacy/package-lock.json

Lines changed: 0 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/frontend-legacy/package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@vueuse/components": "^11.3.0",
5252
"@vueuse/core": "^11.3.0",
5353
"@vueuse/integrations": "^11.3.0",
54-
"backbone": "^1.6.1",
5554
"blurhash": "^2.0.5",
5655
"browserslist-useragent-regexp": "^4.1.3",
5756
"camelcase": "^9.0.0",
@@ -67,9 +66,6 @@
6766
"focus-trap": "^7.6.5",
6867
"handlebars": "^4.7.8",
6968
"is-svg": "^6.1.0",
70-
"jquery": "~3.7",
71-
"jquery-ui": "1.14.1",
72-
"jquery-ui-dist": "^1.13.3",
7369
"libphonenumber-js": "^1.12.34",
7470
"lodash": "^4.17.21",
7571
"marked": "^17.0.1",
@@ -81,9 +77,6 @@
8177
"pinia": "^2.3.1",
8278
"query-string": "^9.3.1",
8379
"regenerator-runtime": "^0.14.1",
84-
"select2": "3.5.1",
85-
"snap.js": "^2.0.9",
86-
"strengthify": "github:nextcloud/strengthify#0.5.9",
8780
"throttle-debounce": "^5.0.2",
8881
"underscore": "1.13.7",
8982
"url-search-params-polyfill": "^8.2.5",

build/frontend-legacy/webpack.common.cjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,6 @@ const config = {
197197
new NodePolyfillPlugin({
198198
additionalAliases: ['process'],
199199
}),
200-
new webpack.ProvidePlugin({
201-
// Provide jQuery to jquery plugins as some are loaded before $ is exposed globally.
202-
// We need to provide the path to node_moduels as otherwise npm link will fail due
203-
// to tribute.js checking for jQuery in @nextcloud/vue
204-
jQuery: require.resolve('jquery'),
205-
}),
206200

207201
new WorkboxPlugin.GenerateSW({
208202
swDest: 'preview-service-worker.js',

core/css/header.scss

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -122,84 +122,6 @@
122122
flex-shrink: 1;
123123
// Add some spacing so the last entry looks ok
124124
margin-inline-end: calc(3 * var(--default-grid-baseline));
125-
126-
// legacy JQuery header menus
127-
// TODO: we already migrated our own code and deprecated it - can be removed together with global jQuery
128-
> div,
129-
> form {
130-
height: 100%;
131-
position: relative;
132-
> .menutoggle {
133-
display: flex;
134-
justify-content: center;
135-
align-items: center;
136-
width: var(--header-height);
137-
height: var(--header-menu-item-height);
138-
cursor: pointer;
139-
opacity: 0.85;
140-
padding: 0;
141-
margin: 2px 0;
142-
143-
&:focus {
144-
opacity: 1;
145-
}
146-
147-
&:focus-visible {
148-
outline: none;
149-
}
150-
}
151-
152-
> .menu {
153-
background-color: var(--color-main-background);
154-
filter: drop-shadow(0 1px 5px var(--color-box-shadow));
155-
border-radius: var(--border-radius-large);
156-
box-sizing: border-box;
157-
z-index: 2000;
158-
position: absolute;
159-
max-width: 350px;
160-
@include header-menu-height();
161-
inset-inline-end: 8px; // relative to parent
162-
top: var(--header-height);
163-
margin: 0;
164-
overflow-y: auto;
165-
166-
&:not(.popovermenu) {
167-
display: none;
168-
}
169-
170-
/* Dropdown arrow */
171-
&:after {
172-
border: 10px solid transparent;
173-
border-bottom-color: var(--color-main-background);
174-
bottom: 100%;
175-
content: ' ';
176-
height: 0;
177-
width: 0;
178-
position: absolute;
179-
pointer-events: none;
180-
inset-inline-end: 10px;
181-
}
182-
183-
& > div,
184-
& > ul {
185-
-webkit-overflow-scrolling: touch;
186-
@include header-menu-height();
187-
}
188-
}
189-
190-
.emptycontent {
191-
h2 {
192-
font-weight: normal;
193-
font-size: 16px;
194-
}
195-
[class^='icon-'],
196-
[class*='icon-'] {
197-
background-size: 48px;
198-
height: 48px;
199-
width: 48px;
200-
}
201-
}
202-
}
203125
}
204126

205127
// Public layout related headers

0 commit comments

Comments
 (0)