Bump htmx to 2.0.0 (#31413)
Tested Subscribe, Follow, Star, Watch, and System Status. --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
c60ef946b1
commit
a5a9885f72
9 changed files with 13 additions and 14 deletions
|
@ -11,7 +11,6 @@ import {showTemporaryTooltip} from '../modules/tippy.js';
|
|||
import {confirmModal} from './comp/ConfirmModal.js';
|
||||
import {showErrorToast} from '../modules/toast.js';
|
||||
import {request, POST, GET} from '../modules/fetch.js';
|
||||
import '../htmx.js';
|
||||
|
||||
const {appUrl, appSubUrl, csrfToken, i18n} = window.config;
|
||||
|
||||
|
|
5
web_src/js/globals.js
Normal file
5
web_src/js/globals.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import jquery from 'jquery';
|
||||
import htmx from 'htmx.org/dist/htmx.esm.js';
|
||||
|
||||
window.$ = window.jQuery = jquery;
|
||||
window.htmx = htmx;
|
|
@ -1,4 +1,3 @@
|
|||
import * as htmx from 'htmx.org';
|
||||
import {showErrorToast} from './modules/toast.js';
|
||||
|
||||
// https://github.com/bigskysoftware/idiomorph#htmx
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// bootstrap module must be the first one to be imported, it handles webpack lazy-loading and global errors
|
||||
import './bootstrap.js';
|
||||
import './htmx.js';
|
||||
|
||||
import {initRepoActivityTopAuthorsChart} from './components/RepoActivityTopAuthors.vue';
|
||||
import {initScopedAccessTokenCategories} from './components/ScopedAccessTokenSelector.vue';
|
||||
|
|
3
web_src/js/jquery.js
vendored
3
web_src/js/jquery.js
vendored
|
@ -1,3 +0,0 @@
|
|||
import $ from 'jquery';
|
||||
|
||||
window.$ = window.jQuery = $; // eslint-disable-line no-jquery/variable-pattern
|
Loading…
Add table
Add a link
Reference in a new issue