Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jeff
funkwhale
Commits
5e241603
Verified
Commit
5e241603
authored
Feb 22, 2022
by
Kasper Seweryn
🥞
Browse files
Fix jQuery in fomantic-ui-css
parent
b2dc70cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
front/src/jquery.js
deleted
100644 → 0
View file @
b2dc70cf
import
jQuery
from
'
jquery
'
window
.
$
=
window
.
jQuery
=
jQuery
front/src/main.js
View file @
5e241603
...
...
@@ -19,7 +19,6 @@ import filters from '@/filters' // eslint-disable-line
import
{
parseAPIErrors
}
from
'
@/utils
'
import
globals
from
'
@/components/globals
'
// eslint-disable-line
import
'
./registerServiceWorker
'
import
'
@/jquery
'
import
'
@/semantic
'
logger
.
default
.
info
(
'
Loading environment:
'
,
import
.
meta
.
env
.
NODE_ENV
)
...
...
front/vite.config.js
View file @
5e241603
...
...
@@ -9,6 +9,14 @@ import path from 'path'
export
default
defineConfig
({
plugins
:
[
vue
(),
{
name
:
'
fix-fomantic-ui-css
'
,
transform
(
src
,
id
)
{
if
(
id
.
includes
(
'
fomantic-ui-css
'
)
&&
id
.
endsWith
(
'
.min.js
'
))
{
return
`import jQuery from 'jquery';
${
src
}
`
}
}
},
{
name
:
'
fix-django-channels
'
,
transform
(
src
,
id
)
{
...
...
@@ -18,6 +26,11 @@ export default defineConfig({
}
}
],
build
:
{
// NOTE: For debugging builds
// TODO: Remove before #1664 is merged
sourcemap
:
'
inline
'
},
resolve
:
{
alias
:
{
"
@
"
:
path
.
resolve
(
__dirname
,
"
./src
"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment