-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b13425
commit 72bc692
Showing
10 changed files
with
1,274 additions
and
2,860 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no-install lint-staged |
Large diffs are not rendered by default.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
/** | ||
* First we will load all of this project's JavaScript dependencies which | ||
* includes Vue and other libraries. It is a great starting point when | ||
* building robust, powerful web applications using Vue and Laravel. | ||
*/ | ||
|
||
import './bootstrap'; | ||
|
||
import Vue from 'vue'; | ||
|
||
import { createApp } from 'vue'; | ||
import OutsideClick from './directives/OutsideClick'; | ||
import LanguageSelect from './components/LanguageSelect.vue'; | ||
|
||
/** | ||
* Directives | ||
*/ | ||
Vue.directive('outside-click', OutsideClick); | ||
const app = createApp({}); | ||
|
||
/** | ||
* Components | ||
*/ | ||
Vue.component('language-select', LanguageSelect); | ||
app.component('language-select', LanguageSelect); | ||
app.directive('outside-click', OutsideClick); | ||
|
||
/** | ||
* Application instance | ||
*/ | ||
const app = new Vue({ | ||
el: '#app', | ||
}); | ||
app.mount('#app'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
export default { | ||
bind(el, binding, vnode) { | ||
const outsideClickHandler = (e) => { | ||
mounted(el, binding) { | ||
el.clickOutsideEvent = (e) => { | ||
const { handleClose, ignore } = binding.value; | ||
let clickedIgnoredElement = false; | ||
|
||
ignore.forEach((refName) => { | ||
if (!clickedIgnoredElement) { | ||
const ignoredElement = vnode.context.$refs[refName]; | ||
const ignoredElement = binding.instance.$refs[refName]; | ||
clickedIgnoredElement = ignoredElement.contains(e.target); | ||
} | ||
}); | ||
|
||
if (!el.contains(e.target) && !clickedIgnoredElement) { | ||
vnode.context[handleClose](); | ||
binding.instance[handleClose](); | ||
} | ||
}; | ||
document.addEventListener('click', outsideClickHandler); | ||
document.addEventListener('touchstart', outsideClickHandler); | ||
}, | ||
|
||
unbind() { | ||
document.removeEventListener('click', outsideClickHandler); | ||
document.removeEventListener('touchstart', outsideClickHandler); | ||
document.addEventListener('click', el.clickOutsideEvent); | ||
document.addEventListener('touchstart', el.clickOutsideEvent); | ||
}, | ||
unmounted: function (el) { | ||
document.removeEventListener('click', el.el.clickOutsideEvent); | ||
document.removeEventListener('touchstart', el.clickOutsideEvent); | ||
}, | ||
}; |
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,38 +1,32 @@ | ||
module.exports = { | ||
purge: [ | ||
'./resources/**/*.blade.php', | ||
'./resources/**/*.js', | ||
'./resources/**/*.vue', | ||
], | ||
darkMode: false, // or 'media' or 'class' | ||
theme: { | ||
colors: { | ||
'gray-50': '#FAFAFA', | ||
'gray-100': '#F3F4F6', | ||
'gray-200': '#E4E4E7', | ||
'gray-500': '#71717A', | ||
'gray-700': '#2E3036', | ||
'red-300': '#DE8888', | ||
'yellow-300': '#F2D987', | ||
'green-300': '#5AC984', | ||
'blue-300': '#75B5E2', | ||
'blue-500': '#1381BE', | ||
'blue-600': '#0D6A9B', | ||
'white': '#FFFFFF', | ||
content: [ | ||
'./resources/**/*.blade.php', | ||
'./resources/**/*.js', | ||
'./resources/**/*.vue', | ||
], | ||
theme: { | ||
colors: { | ||
'gray-50': '#FAFAFA', | ||
'gray-100': '#F3F4F6', | ||
'gray-200': '#E4E4E7', | ||
'gray-500': '#71717A', | ||
'gray-700': '#2E3036', | ||
'red-300': '#DE8888', | ||
'yellow-300': '#F2D987', | ||
'green-300': '#5AC984', | ||
'blue-300': '#75B5E2', | ||
'blue-500': '#1381BE', | ||
'blue-600': '#0D6A9B', | ||
'white': '#FFFFFF', | ||
}, | ||
fontSize: { | ||
'4xl': '2.25rem', | ||
'5xl': '2.5rem', | ||
'xl': '1.3rem', | ||
}, | ||
extend: {}, | ||
}, | ||
fontSize: { | ||
'4xl': '2.25rem', | ||
'5xl': '2.5rem', | ||
'xl': '1.3rem', | ||
}, | ||
extend: {}, | ||
}, | ||
variants: { | ||
extend: { | ||
fontWeight: ['hover', 'focus'], | ||
}, | ||
}, | ||
plugins: [ | ||
require('@tailwindcss/typography'), | ||
], | ||
} | ||
plugins: [ | ||
require('@tailwindcss/typography'), | ||
], | ||
} |
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