Skip to content

Commit a440b88

Browse files
authored
Additional code cleanup from header refactor (#1043)
1 parent 8618d7e commit a440b88

File tree

8 files changed

+427
-1373
lines changed

8 files changed

+427
-1373
lines changed

app/assets/stylesheets/application.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
* files in this directory. Styles in this file should be added after the last require_* statement.
1111
* It is generally better to create a new file per style scope.
1212
*/
13-
/* Import the LUX styles */
14-
@import "lux-design-system/dist/style.css";
1513
@import "bootstrap";
1614
@import "variables";
1715

app/javascript/entrypoints/application.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,11 @@ import * as bootstrap from 'bootstrap';
1515
// ActionCable Channels
1616
import '../channels';
1717

18-
import { createApp } from 'vue';
19-
import lux from 'lux-design-system';
2018
import { setTargetHtml } from './helper';
2119
import UserDatalist from './user_datalist';
2220
import { displayMediafluxVersion } from './mediafluxVersion';
2321
import { showCreateScript } from './atermScripts';
2422

25-
import 'lux-design-system/dist/style.css';
26-
import '../../assets/stylesheets/application.scss';
27-
28-
const app = createApp({});
29-
const createMyApp = () => createApp(app);
30-
31-
document.addEventListener('DOMContentLoaded', () => {
32-
const elements = document.getElementsByClassName('lux');
33-
for (let i = 0; i < elements.length; i += 1) {
34-
createMyApp()
35-
.use(lux)
36-
.mount(elements[i]);
37-
}
38-
});
39-
4023
window.bootstrap = bootstrap;
4124
window.displayMediafluxVersion = displayMediafluxVersion;
4225
window.showCreateScript = showCreateScript;

app/views/layouts/application.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
1111

12+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
1213

1314
<%= action_cable_meta_tag %>
1415
<%= vite_client_tag %>

0 commit comments

Comments
 (0)