Skip to content

Commit

Permalink
Additional code cleanup from header refactor (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelynch authored Nov 11, 2024
1 parent 8618d7e commit a440b88
Show file tree
Hide file tree
Showing 8 changed files with 427 additions and 1,373 deletions.
2 changes: 0 additions & 2 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*/
/* Import the LUX styles */
@import "lux-design-system/dist/style.css";
@import "bootstrap";
@import "variables";

Expand Down
17 changes: 0 additions & 17 deletions app/javascript/entrypoints/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,11 @@ import * as bootstrap from 'bootstrap';
// ActionCable Channels
import '../channels';

import { createApp } from 'vue';
import lux from 'lux-design-system';
import { setTargetHtml } from './helper';
import UserDatalist from './user_datalist';
import { displayMediafluxVersion } from './mediafluxVersion';
import { showCreateScript } from './atermScripts';

import 'lux-design-system/dist/style.css';
import '../../assets/stylesheets/application.scss';

const app = createApp({});
const createMyApp = () => createApp(app);

document.addEventListener('DOMContentLoaded', () => {
const elements = document.getElementsByClassName('lux');
for (let i = 0; i < elements.length; i += 1) {
createMyApp()
.use(lux)
.mount(elements[i]);
}
});

window.bootstrap = bootstrap;
window.displayMediafluxVersion = displayMediafluxVersion;
window.showCreateScript = showCreateScript;
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.1/font/bootstrap-icons.css">

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

<%= action_cable_meta_tag %>
<%= vite_client_tag %>
Expand Down
Loading

0 comments on commit a440b88

Please sign in to comment.