Skip to content

Commit

Permalink
Merge pull request #190 from paywteam/refactor
Browse files Browse the repository at this point in the history
Refactor plugins and modules
  • Loading branch information
jhaemin authored Oct 10, 2019
2 parents aad5790 + 1db89bc commit 479e555
Show file tree
Hide file tree
Showing 24 changed files with 14 additions and 42 deletions.
3 changes: 1 addition & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default {

css: [
'~/assets/styles/css/fonts.css',
'~/plugins/eodiro-dialog/style.scss',
'~/assets/styles/scss/global/globalstyle.scss',
'~/assets/styles/stylus/spring.styl'
],
Expand All @@ -102,7 +101,7 @@ export default {
buildModules: [
'@nuxtjs/eslint-module',
'@nuxt/typescript-build',
'~/modules/extend-route'
'~/modules/nuxt/extend-route'
],

// Nuxt.js modules
Expand Down
2 changes: 1 addition & 1 deletion src/components/global/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<script>
import disableScroll from 'disable-scroll'
import { CEM } from '~/plugins/custom-event-manager'
import { CEM } from '~/modules/custom-event-manager'
import HomeBgTile from '~/components/home/HomeBgTile.vue'
export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/global/GoBack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</template>

<script>
import { CEM } from '~/plugins/custom-event-manager'
import { CEM } from '~/modules/custom-event-manager'
export default {
data() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>

<script>
import { CEM } from '../plugins/custom-event-manager'
import { CEM } from '~/modules/custom-event-manager'
import Banner from '~/components/global/Banner'
import GoBack from '~/components/global/GoBack'
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/page-base.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import disableScroll from 'disable-scroll'
import { CEM } from '~/plugins/custom-event-manager'
import { CEM } from '~/modules/custom-event-manager'

/**
* Add this mixin from every page component.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* 'extend-route' module for Nuxt.js
/**
* 'extend-route' module for Nuxt.js
*
* It automatically assigns page depth, hamlet name
* and previous page's route for each route.
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/pages/community/_postId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import dayjs from 'dayjs'
// import axios from 'axios'
import pageBase from '~/mixins/page-base'
import NewComment from '~/components/community/NewComment'
// import { CEM } from '~/plugins/custom-event-manager'
// import { CEM } from '~/modules/custom-event-manager'
const lorem = new LoremIpsum()
Expand Down
2 changes: 1 addition & 1 deletion src/pages/community/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</template>

<script>
import { CEM } from '~/plugins/custom-event-manager'
import { CEM } from '~/modules/custom-event-manager'
import pageBase from '~/mixins/page-base'
import PostItem from '~/components/community/PostItem'
Expand Down
2 changes: 1 addition & 1 deletion src/pages/donation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

<script>
import pageBase from '~/mixins/page-base'
import Dialog from '~/plugins/eodiro-dialog'
import Dialog from '~/modules/eodiro-dialog'
export default {
name: 'donation',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

<script>
import pageBase from '~/mixins/page-base'
import EodiroDialog from '~/plugins/eodiro-dialog'
import EodiroDialog from '~/modules/eodiro-dialog'
import { Grid, ArrowBlock } from '~/components/ui'
export default {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/inquiry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import axios from 'axios'
import pageBase from '~/mixins/page-base'
import { Button } from '~/components/ui'
// import Dialog from '~/plugins/eodiro-dialog'
// import Dialog from '~/modules/eodiro-dialog'
export default {
name: 'inquiry',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/vacant/_buildingId/_floorId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ import axios from 'axios'
import { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock'
import pageBase from '~/mixins/page-base'
import modalScroll from '~/mixins/modal-scroll'
import ExpireCounter from '~/plugins/ExpireCounter'
import ExpireCounter from '~/modules/expire-counter'
import { Grid, ArrowBlock } from '~/components/ui'
export default {
Expand Down
28 changes: 0 additions & 28 deletions src/plugins/RouteLocation.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/plugins/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default (context: Context) => {
})

// Assign topbar to window
const topbar = require('./topbar').default
const topbar = require('~/modules/topbar').default
window.topbar = topbar
}
}

0 comments on commit 479e555

Please sign in to comment.