-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Guillaume Chau
committed
Jun 17, 2018
1 parent
5566208
commit e1a0c4c
Showing
6 changed files
with
61 additions
and
51 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 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import Vue from 'vue' | ||
import VueUi from '@vue/ui' | ||
import InstantSearch from 'vue-instantsearch' | ||
import VueMeta from 'vue-meta' | ||
import PortalVue from 'portal-vue' | ||
import * as Filters from './filters' | ||
import Responsive from './util/responsive' | ||
import SharedData from './util/shared-data' | ||
import PluginAction from './util/plugin-action' | ||
import ClientState from './mixins/ClientState' | ||
import SetSize from './util/set-size' | ||
import Focus from './util/focus' | ||
|
||
Vue.use(InstantSearch) | ||
Vue.use(VueMeta) | ||
Vue.use(Responsive, { | ||
computed: { | ||
mobile () { | ||
return this.width <= 768 | ||
}, | ||
tablet () { | ||
return this.width <= 900 | ||
}, | ||
desktop () { | ||
return !this.tablet | ||
}, | ||
wide () { | ||
return this.width >= 1300 | ||
} | ||
} | ||
}) | ||
Vue.use(VueUi) | ||
Vue.use(PortalVue) | ||
Vue.use(SharedData) | ||
Vue.use(PluginAction) | ||
|
||
for (const key in Filters) { | ||
Vue.filter(key, Filters[key]) | ||
} | ||
|
||
Vue.mixin(ClientState) | ||
|
||
Vue.directive('set-size', SetSize) | ||
Vue.directive('focus', Focus) |
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,9 @@ | ||
export default { | ||
bind (el) { | ||
requestAnimationFrame(() => { | ||
const input = el.querySelector('input') | ||
if (input) el = input | ||
el.focus() | ||
}) | ||
} | ||
} |
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 |
---|---|---|
|
@@ -380,6 +380,7 @@ | |
<VueInput | ||
v-model="formData.save" | ||
icon-left="local_offer" | ||
v-focus | ||
/> | ||
</VueFormField> | ||
</div> | ||
|