From b957d44aed800368b0169890b8e82f7e77a935af Mon Sep 17 00:00:00 2001 From: Dan Elbert Date: Sun, 29 Sep 2024 09:44:40 -0500 Subject: [PATCH] style cleanup --- app/javascript/application.js | 91 -------- app/javascript/components/App.vue | 8 +- app/javascript/components/AppAutocomplete.vue | 6 +- .../components/AppExpandTransition.vue | 3 + app/javascript/components/AppRating.vue | 4 +- .../components/RecipeEditIngredientItem.vue | 4 +- app/javascript/components/TaskItemList.vue | 2 - .../components/TaskListDropdownItem.vue | 2 +- app/javascript/lib/VuexResponsiveSync.js | 49 ---- app/javascript/lib/useGlobalTweenGroup.js | 10 + app/javascript/packs/application.js | 10 +- app/javascript/store/index.js | 218 ------------------ .../styles/_responsive_controls.scss | 68 +++--- app/javascript/styles/_variables.scss | 35 --- app/javascript/styles/_wide_modal.scss | 8 +- app/javascript/styles/index.scss | 4 +- 16 files changed, 72 insertions(+), 450 deletions(-) delete mode 100644 app/javascript/application.js delete mode 100644 app/javascript/lib/VuexResponsiveSync.js create mode 100644 app/javascript/lib/useGlobalTweenGroup.js delete mode 100644 app/javascript/store/index.js delete mode 100644 app/javascript/styles/_variables.scss diff --git a/app/javascript/application.js b/app/javascript/application.js deleted file mode 100644 index cd7d79d..0000000 --- a/app/javascript/application.js +++ /dev/null @@ -1,91 +0,0 @@ -import './styles'; -import "vue-resize/dist/vue-resize"; - -import Vue from 'vue' -import { sync } from 'vuex-router-sync'; -import { swInit } from "./lib/ServiceWorker"; -import responsiveSync from "./lib/VuexResponsiveSync"; -import { createChannel } from "./lib/ActionCable"; -import VueProgressBar from "vue-progressbar"; -import VueResize from "vue-resize"; -import config from './lib/config'; -import store from './store'; -import router from './router'; -import './lib/GlobalMixins'; -import App from './components/App'; - -import AppAutocomplete from "./components/AppAutocomplete"; -import AppConfirm from "./components/AppConfirm"; -import AppDateTime from "./components/AppDateTime"; -import AppDatePicker from "./components/AppDatePicker"; -import AppDropdown from "./components/AppDropdown"; -import AppExpandTransition from "./components/AppExpandTransition"; -import AppIcon from "./components/AppIcon"; -import AppIconicIcon from "./components/AppIconicIcon"; -import AppModal from "./components/AppModal"; -import AppNavbar from "./components/AppNavbar"; -import AppPager from "./components/AppPager"; -import AppRating from "./components/AppRating"; -import AppSearchText from "./components/AppSearchText"; -import AppTagEditor from "./components/AppTagEditor"; -import AppTextField from "./components/AppTextField"; -import AppValidationErrors from "./components/AppValidationErrors"; - -Vue.component("AppAutocomplete", AppAutocomplete); -Vue.component("AppConfirm", AppConfirm); -Vue.component("AppDateTime", AppDateTime); -Vue.component("AppDatePicker", AppDatePicker); -Vue.component("AppDropdown", AppDropdown); -Vue.component("AppExpandTransition", AppExpandTransition); -Vue.component("AppIcon", AppIcon); -Vue.component("AppIconicIcon", AppIconicIcon); -Vue.component("AppModal", AppModal); -Vue.component("AppNavbar", AppNavbar); -Vue.component("AppPager", AppPager); -Vue.component("AppRating", AppRating); -Vue.component("AppSearchText", AppSearchText); -Vue.component("AppTagEditor", AppTagEditor); -Vue.component("AppTextField", AppTextField); -Vue.component("AppValidationErrors", AppValidationErrors); - - -Vue.use(VueProgressBar, { -// color: '#bffaf3', -// failedColor: '#874b4b', -// thickness: '5px', -// transition: { -// speed: '0.2s', -// opacity: '0.6s', -// termination: 300 -// }, -// autoRevert: true, -// location: 'left', -// inverse: false -}); - -Vue.use(VueResize); - -sync(store, router); -responsiveSync(store); - -Vue.prototype.$createChannel = function(...args) { - createChannel(null, ...args); -} - -document.addEventListener('DOMContentLoaded', () => { - - const app = document.getElementById('app'); - config.baseApiUrl = app.dataset.url; - - window.$vm = new Vue({ - el: '#app', - store, - router: router, - render: createElement => createElement('App'), - mounted() { - this.$nextTick(() => swInit(store)); - }, - components: { App } - }); - -}); diff --git a/app/javascript/components/App.vue b/app/javascript/components/App.vue index 359a5d6..5f1f39c 100644 --- a/app/javascript/components/App.vue +++ b/app/javascript/components/App.vue @@ -21,9 +21,11 @@