Skip to content

Commit

Permalink
refactor: remove dayjs
Browse files Browse the repository at this point in the history
  • Loading branch information
EryouHao committed Apr 25, 2019
1 parent 2903f44 commit 2ace9e7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -22,7 +22,6 @@
"ant-design-vue": "^1.3.5",
"axios": "^0.18.0",
"bluebird": "^3.5.3",
"dayjs": "^1.7.8",
"ejs": "^2.6.1",
"feed": "^2.0.4",
"fs-extra": "^7.0.1",
Expand Down
2 changes: 0 additions & 2 deletions src/main.ts
@@ -1,5 +1,4 @@
import Vue from 'vue'
import * as Dayjs from 'dayjs'
import moment from 'moment'
import Antd from 'ant-design-vue'
import '@/assets/styles/main.less'
Expand All @@ -21,7 +20,6 @@ console.log('messages', locale)

Vue.use(Antd)
Vue.use(VueBus)
Vue.prototype.$dayjs = Dayjs
Vue.prototype.$moment = moment

Vue.config.productionTip = false
Expand Down
2 changes: 0 additions & 2 deletions src/shims.d.ts
@@ -1,10 +1,8 @@
import { AllElectron } from 'electron'
import * as dayjs from 'dayjs'

declare module 'vue/types/vue' {
interface Vue {
readonly $electron: AllElectron,
$dayjs: any,
$bus: any,
}
}
4 changes: 0 additions & 4 deletions yarn.lock
Expand Up @@ -3010,10 +3010,6 @@ date-now@^0.1.4:
version "0.1.4"
resolved "http://registry.npm.taobao.org/date-now/download/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"

dayjs@^1.7.8:
version "1.7.8"
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.7.8.tgz#05d288f8d4b2140110cc1519cfe317d6f1f11a3c"

de-indent@^1.0.2:
version "1.0.2"
resolved "http://registry.npm.taobao.org/de-indent/download/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
Expand Down

0 comments on commit 2ace9e7

Please sign in to comment.