-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade lux * Remove unused / unmaintained .ruby-version file * Use a current ruby image Hopefully will get around a missing key build failure * Update browser-tools orb * Update vite Try to resolve test errors in CI
- Loading branch information
1 parent
37422d0
commit 7873990
Showing
11 changed files
with
554 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,14 @@ | ||
// To see this message, add the following to the `<head>` section in your | ||
// views/layouts/application.html.erb | ||
// | ||
// <%= vite_client_tag %> | ||
// <%= vite_javascript_tag 'application' %> | ||
console.log('Vite ⚡️ Rails') | ||
import {createApp} from "vue"; | ||
import lux from "lux-design-system"; | ||
import "lux-design-system/dist/style.css"; | ||
|
||
// If using a TypeScript entrypoint file: | ||
// <%= vite_typescript_tag 'application' %> | ||
// | ||
// If you want to use .jsx or .tsx, add the extension: | ||
// <%= vite_javascript_tag 'application.jsx' %> | ||
|
||
console.log('Visit the guide for more information: ', 'https://vite-ruby.netlify.app/guide/rails') | ||
|
||
// Example: Load Rails libraries in Vite. | ||
// | ||
// import * as Turbo from '@hotwired/turbo' | ||
// Turbo.start() | ||
// | ||
// import ActiveStorage from '@rails/activestorage' | ||
// ActiveStorage.start() | ||
// | ||
// // Import all channels. | ||
// const channels = import.meta.globEager('./**/*_channel.js') | ||
|
||
// Example: Import a stylesheet in app/frontend/index.css | ||
// import '~/index.css' | ||
import Vue from "vue/dist/vue.esm" | ||
import system from "lux-design-system" | ||
import "lux-design-system/dist/system/system.css" | ||
import "lux-design-system/dist/system/tokens/tokens.scss" | ||
|
||
Vue.use(system) | ||
const app = createApp({}); | ||
const createMyApp = () => createApp(app); | ||
|
||
// create the LUX app and mount it to wrappers with class="lux" | ||
document.addEventListener("DOMContentLoaded", () => { | ||
var elements = document.getElementsByClassName("lux") | ||
for (var i = 0; i < elements.length; i++) { | ||
new Vue({ | ||
el: elements[i] | ||
}) | ||
document.addEventListener ('DOMContentLoaded', () => { | ||
const elements = document.getElementsByClassName('lux') | ||
for(let i = 0; i < elements.length; i++){ | ||
createMyApp().use(lux).mount(elements[i]); | ||
} | ||
}) | ||
}, { once: true }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{ | ||
"devDependencies": { | ||
"vite": "^4.5.2", | ||
"vite-plugin-ruby": "^3.2.0" | ||
"@vitejs/plugin-vue": "^5.0.1", | ||
"vite": "^5.0.0", | ||
"vite-plugin-ruby": "^5.0.0" | ||
}, | ||
"dependencies": { | ||
"lux-design-system": "^4.3.0", | ||
"sass": "^1.62.0", | ||
"vue": "^2.6.10", | ||
"vue-loader": "^15.7.0", | ||
"vue-template-compiler": "^2.6.10" | ||
"lux-design-system": "^5.0.0-beta.6", | ||
"postcss-import": "^15.1.0", | ||
"sass": "^1.69.5", | ||
"vue": "^3.4.0", | ||
"vue-loader": "^15.7.0" | ||
} | ||
} |
Oops, something went wrong.