Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit

Permalink
feat: update iview to viewui (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppecampanelli authored Feb 12, 2021
1 parent b29b67a commit 43da555
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_*.js
node_modules
packages/cna-template/template/nuxt/pages/index.vue
packages/cna-template/template/frameworks/iview/pages/index.vue
packages/cna-template/template/frameworks/view-ui/pages/index.vue
packages/cna-template/template/frameworks/jest/jest.config.js
2 changes: 1 addition & 1 deletion .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
packages/cna-template/template/nuxt/pages/index.vue
packages/cna-template/template/frameworks/iview/pages/index.vue
packages/cna-template/template/frameworks/view-ui/pages/index.vue
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ yarn create nuxt-app <my-project>
- [Chakra UI](https://github.com/chakra-ui/chakra-ui-vue)
- [Element](https://github.com/ElemeFE/element)
- [Framevuerk](https://github.com/framevuerk/framevuerk)
- [iView](https://www.iviewui.com/)
- [View UI](https://www.iviewui.com/)
- [Tachyons](https://github.com/tachyons-css/tachyons)
- [Tailwind CSS](https://github.com/tailwindcss/tailwindcss)
- [Vuesax](https://github.com/lusaxweb/vuesax)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"iview": "^3.5.4"
"view-design": "^4.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<%= name %>
</h1>
<h2 class="subtitle">
Welcome to the iView + Nuxt.js template
Welcome to the View UI + Nuxt.js template
</h2>
<div class="links">
<Button type="primary" target="_blank" rel="noopener noreferrer" to="https://nuxtjs.org/">
Expand All @@ -16,7 +16,7 @@
GitHub
</Button>
<Button target="_blank" rel="noopener noreferrer" to="https://www.iviewui.com/">
iView
View UI
</Button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Vue from 'vue'
import ViewUI from 'view-design'
import locale from 'view-design/dist/locale/en-US' // Change locale, check node_modules/view-design/dist/locale

Vue.use(ViewUI, {
locale
})
8 changes: 4 additions & 4 deletions packages/cna-template/template/nuxt/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
css: [
<%_ if (ui === 'element-ui') { _%>
'element-ui/lib/theme-chalk/index.css'
<%_ } else if (ui === 'iview') { _%>
'iview/dist/styles/iview.css'
<%_ } else if (ui === 'view-ui') { _%>
'view-design/dist/styles/iview.css'
<%_ } else if (ui === 'ant-design-vue') { _%>
'ant-design-vue/dist/antd.css'
<%_ } else if (ui === 'balm-ui') { _%>
Expand All @@ -61,8 +61,8 @@
plugins: [
<%_ if (ui === 'element-ui') { _%>
'@/plugins/element-ui'
<%_ } else if (ui === 'iview') { _%>
'@/plugins/iview'
<%_ } else if (ui === 'view-ui') { _%>
'@/plugins/view-ui'
<%_ } else if (ui === 'ant-design-vue') { _%>
'@/plugins/antd-ui'
<%_ } else if (ui === 'balm-ui') { _%>
Expand Down
2 changes: 1 addition & 1 deletion packages/create-nuxt-app/lib/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = [
{ name: 'Chakra UI', value: 'chakra-ui' },
{ name: 'Element', value: 'element-ui' },
{ name: 'Framevuerk', value: 'framevuerk' },
{ name: 'iView', value: 'iview' },
{ name: 'View UI', value: 'view-ui' },
{ name: 'Tachyons', value: 'tachyons' },
{ name: 'Tailwind CSS', value: 'tailwind' },
{ name: 'Vuesax', value: 'vuesax' },
Expand Down
10 changes: 5 additions & 5 deletions packages/create-nuxt-app/test/snapshots/index.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ Generated by [AVA](https://avajs.dev).
}␊
`

## verify ui: iView
## verify ui: View UI

> Generated files
Expand All @@ -1179,7 +1179,7 @@ Generated by [AVA](https://avajs.dev).
'pages/README.md',
'pages/index.vue',
'plugins/README.md',
'plugins/iview.js',
'plugins/view-ui.js',
'static/README.md',
'static/favicon.ico',
'store/README.md',
Expand All @@ -1190,8 +1190,8 @@ Generated by [AVA](https://avajs.dev).
{
dependencies: {
'core-js': '^3.8.3',
iview: '^3.5.4',
nuxt: '^2.14.12',
'view-design': '^4.0.0',
},
devDependencies: {},
private: true,
Expand Down Expand Up @@ -1224,12 +1224,12 @@ Generated by [AVA](https://avajs.dev).
// Global CSS: https://go.nuxtjs.dev/config-css␊
css: [␊
'iview/dist/styles/iview.css'␊
'view-design/dist/styles/iview.css'␊
],␊
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins␊
plugins: [␊
'@/plugins/iview'␊
'@/plugins/view-ui'␊
],␊
// Auto import components: https://go.nuxtjs.dev/config-components␊
Expand Down
Binary file modified packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.

0 comments on commit 43da555

Please sign in to comment.