Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 244f836

Browse files
committed
chore: added plugin options file
2 parents e04822d + 46107ee commit 244f836

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+360
-161
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
]
1919
},
2020
"scripts": {
21+
"postinstall": "yarn test && yarn build:dev && yarn theme:dev && lerna link",
22+
"build:dev": "yarn workspace @chakra-ui/vue run rollup --config rollup.dev.config.js",
2123
"build": "yarn workspace @chakra-ui/vue build",
2224
"dev": "yarn workspace @chakra-ui/vue dev",
2325
"lint": "vue-cli-service lint",
@@ -33,7 +35,7 @@
3335
"bootstrap": "lerna bootstrap --use-workspaces",
3436
"deploy-storybook": "storybook-to-ghpages -- --out=.out",
3537
"now-build-storybook": "build-storybook -o dist/storybook",
36-
"docs:dev": "yarn theme:dev && yarn docs-dev",
38+
"docs:dev": "yarn docs-dev",
3739
"theme:dev": "yarn workspace @chakra-ui/theme-vue build",
3840
"docs-dev": "yarn workspace chakra-ui-docs dev",
3941
"evalbundle": "bundlesize"
@@ -110,7 +112,7 @@
110112
"mixpanel-browser": "^2.36.0",
111113
"node-fetch": "^2.6.0",
112114
"node-sass": "^4.13.1",
113-
"nuxt": "^2.0.0",
115+
"nuxt": "^2.12.2",
114116
"portal-vue": "^2.1.6",
115117
"prismjs": "^1.19.0",
116118
"register-service-worker": "^1.6.2",

packages/chakra-ui-docs/docs/contributors.vue

Lines changed: 0 additions & 62 deletions
This file was deleted.

packages/chakra-ui-docs/nuxt.config.js

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
import dotenv from 'dotenv-defaults'
2-
import { stringToUrl } from './utils'
3-
import pages from './utils/all-routes'
4-
5-
const routes = pages
6-
.map(page => {
7-
return page === 'Index' ? stringToUrl('') : stringToUrl(page)
8-
})
92

103
// Configuring dotenv variables.
114
dotenv.config({
@@ -15,10 +8,10 @@ dotenv.config({
158

169
export default {
1710
mode: 'universal',
18-
srcDir: __dirname,
19-
generate: {
20-
routes
11+
options: {
12+
target: 'static'
2113
},
14+
srcDir: __dirname,
2215
head: {
2316
title: 'Chakra UI Vue | Simple, Modular and Accessible UI Components for your Vue Applications.',
2417
meta: [
@@ -48,12 +41,12 @@ export default {
4841
'@nuxtjs/eslint-module'
4942
],
5043
modules: [
51-
['@nuxtjs/emotion', {
52-
ssr: 'critical'
53-
}],
54-
'@nuxtjs/pwa',
55-
'@nuxtjs/router'
44+
'@nuxtjs/emotion',
45+
'@nuxtjs/pwa'
5646
],
47+
router: {
48+
prefetchLinks: true
49+
},
5750
pwa: {
5851
meta: {
5952
name: 'Chakra UI Vue',
@@ -66,20 +59,20 @@ export default {
6659
iconFileName: 'chakra.png'
6760
}
6861
},
62+
extensions: [
63+
'mdx'
64+
],
6965
build: {
7066
transpile: [
7167
'vue-lorem-ipsum',
68+
'@chakra-ui/vue',
7269
'@chakra-ui/theme-vue'
7370
],
71+
additionalExtensions: [
72+
'.mdx'
73+
],
7474
extend (config, ctx) {
7575
config.resolve.alias.vue = 'vue/dist/vue.common'
76-
config.module.rules.push({
77-
test: /\.mdx$/,
78-
use: [
79-
'babel-loader',
80-
'mdx-vue-loader'
81-
]
82-
})
8376
}
8477
}
8578
}

packages/chakra-ui-docs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"scripts": {
77
"dev": "nuxt",
88
"build": "nuxt generate --max_old_space_size=8000",
9+
"build-static":"nuxt build --target static",
10+
"export": "nuxt export",
911
"start": "nuxt start --max_old_space_size=8000",
1012
"docs:build": "nuxt ",
1113
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
@@ -43,7 +45,7 @@
4345
"mdx-vue-loader": "^1.0.2",
4446
"mixpanel-browser": "^2.36.0",
4547
"node-sass": "^4.13.1",
46-
"nuxt": "^2.0.0",
48+
"nuxt": "^2.12.2",
4749
"prismjs": "^1.19.0",
4850
"sass-loader": "^8.0.2",
4951
"vue": "^2.6.11",
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<template>
2+
<c-box>
3+
<c-heading>
4+
Core contributors
5+
</c-heading>
6+
7+
<c-text my="3">
8+
Special thanks to these people that helped contribute towards Chakra UI Vue.
9+
</c-text>
10+
11+
<c-box>
12+
<c-box v-for="(person, _i) in contributors" :key="_i" bb="1px solid" border-color="gray.200" p="3">
13+
<c-text font-weight="bold" mt="3" font-size="1.3rem">
14+
{{ person.name }} {{ person.nationality }}
15+
</c-text>
16+
<c-text font-style="italic">
17+
{{ person.contributions }}
18+
</c-text>
19+
<c-link
20+
font-size="1.5rem"
21+
margin-right="3"
22+
color="black"
23+
:_hover="{ color: 'vue.400' }"
24+
is-external
25+
:href="person.twitter"
26+
>
27+
<c-icon name="twitter" />
28+
</c-link>
29+
<c-link
30+
font-size="1.5rem"
31+
margin-right="3"
32+
color="black"
33+
:_hover="{ color: 'vue.400' }"
34+
is-external
35+
:href="person.github"
36+
>
37+
<c-icon name="github" />
38+
</c-link>
39+
<c-link
40+
font-size="1.5rem"
41+
margin-right="3"
42+
color="black"
43+
:_hover="{ color: 'vue.400' }"
44+
is-external
45+
:href="person.website"
46+
>
47+
<c-icon name="globe-africa" />
48+
</c-link>
49+
</c-box>
50+
</c-box>
51+
</c-box>
52+
</template>
53+
54+
<script>
55+
import { CBox, CHeading, CText, CLink, CIcon } from '@chakra-ui/vue'
56+
57+
export default {
58+
name: 'Contributors',
59+
components: {
60+
CBox,
61+
CHeading,
62+
CText,
63+
CLink,
64+
CIcon
65+
},
66+
data () {
67+
return {
68+
contributors: [{
69+
name: 'Jonathan Bakebwa',
70+
github: 'https://github.com/codebender828',
71+
twitter: 'https://twitter.com/codebender828',
72+
website: 'https://jbakebwa.dev',
73+
contributions: 'Creator & Maintainer',
74+
nationality: '🇺🇬'
75+
},
76+
{
77+
name: 'Kelvin Omereshone',
78+
github: 'https://github.com/DominusKelvin',
79+
twitter: 'https://twitter.com/dominus_kelvin',
80+
website: 'https://dominus.dev',
81+
contributions: 'Documentation',
82+
nationality: '🇳🇬'
83+
},
84+
{
85+
name: 'Mesut Koca',
86+
github: 'https://github.com/koca',
87+
twitter: 'https://twitter.com/imesutkoca',
88+
website: 'https://mesut.dev',
89+
contributions: 'Testing & Code',
90+
nationality: '🇹🇷'
91+
}]
92+
}
93+
}
94+
}
95+
</script>

packages/chakra-ui-docs/docs/index.vue renamed to packages/chakra-ui-docs/pages/index.vue

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<CBox as="main" fontFamily="body">
2+
<CBox as="main" font-family="body">
33
<SEO
44
title="Chakra UI Vue | Simple, Modular and Accessible UI Components for your Vue Applications."
55
description="Simple, Modular and Accessible UI Components for your Vue Applications."
@@ -8,16 +8,16 @@
88
<CFlex
99
as="section"
1010
py="10"
11-
:flexDir="['column', 'column', 'row']"
12-
fontFamily="body"
11+
:flex-dir="['column', 'column', 'row']"
12+
font-family="body"
1313
>
14-
<CGrid :templateColumns="['auto', 'auto', 'repeat(3, 1fr)']" gap="6">
14+
<CGrid :template-columns="['auto', 'auto', 'repeat(3, 1fr)']" gap="6">
1515
<CBox m="3">
16-
<CFlex alignItems="center" mb="5">
16+
<CFlex align-items="center" mb="5">
1717
<CFlex
18-
justifyContent="center"
18+
justify-content="center"
1919
color="white"
20-
alignItems="center"
20+
align-items="center"
2121
mr="5"
2222
bg="vue.400"
2323
w="50px"
@@ -26,17 +26,19 @@
2626
>
2727
<CIcon size="25px" name="universal-access" />
2828
</CFlex>
29-
<CHeading as="h4" size="md">Accessible</CHeading>
29+
<CHeading as="h4" size="md">
30+
Accessible
31+
</CHeading>
3032
</CFlex>
3133
Chakra UI strictly follows WAI-ARIA standards. All components come
3234
with proper attributes and keyboard interactions out of the box.
3335
</CBox>
3436
<CBox m="3">
35-
<CFlex alignItems="center" mb="5">
37+
<CFlex align-items="center" mb="5">
3638
<CFlex
37-
justifyContent="center"
39+
justify-content="center"
3840
color="white"
39-
alignItems="center"
41+
align-items="center"
4042
mr="5"
4143
bg="vue.400"
4244
w="50px"
@@ -45,17 +47,19 @@
4547
>
4648
<CIcon size="25px" name="palette" />
4749
</CFlex>
48-
<CHeading as="h4" size="md">Themeable</CHeading>
50+
<CHeading as="h4" size="md">
51+
Themeable
52+
</CHeading>
4953
</CFlex>
5054
Quickly and easily reference values from your theme throughout your
5155
entire application, on any component.
5256
</CBox>
5357
<CBox m="3">
54-
<CFlex alignItems="center" mb="5">
58+
<CFlex align-items="center" mb="5">
5559
<CFlex
56-
justifyContent="center"
60+
justify-content="center"
5761
color="white"
58-
alignItems="center"
62+
align-items="center"
5963
mr="5"
6064
bg="vue.400"
6165
w="50px"
@@ -64,7 +68,9 @@
6468
>
6569
<CIcon size="25px" name="cubes" />
6670
</CFlex>
67-
<CHeading as="h4" size="md">Composable</CHeading>
71+
<CHeading as="h4" size="md">
72+
Composable
73+
</CHeading>
6874
</CFlex>
6975
Components were built with composition in mind. You can leverage any
7076
component to create new things.
Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)