mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-22 11:45:48 +08:00
chore: update site & dumi version (#25)
This commit is contained in:
@@ -11,6 +11,7 @@ export default defineConfig({
|
|||||||
logo:
|
logo:
|
||||||
'https://avatars1.githubusercontent.com/u/73879334?s=200&v=4',
|
'https://avatars1.githubusercontent.com/u/73879334?s=200&v=4',
|
||||||
exportStatic: {},
|
exportStatic: {},
|
||||||
|
ssr: {},
|
||||||
outputPath: 'docs-dist',
|
outputPath: 'docs-dist',
|
||||||
hash: true,
|
hash: true,
|
||||||
base: `/${name}/`,
|
base: `/${name}/`,
|
||||||
@@ -73,10 +74,6 @@ export default defineConfig({
|
|||||||
.markdown table {
|
.markdown table {
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.__dumi-default-code-block + table {
|
|
||||||
margin-top: 16px;
|
|
||||||
}
|
|
||||||
`,
|
`,
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
@@ -51,7 +51,7 @@ jobs:
|
|||||||
|
|
||||||
## 💖 Who is using?
|
## 💖 Who is using?
|
||||||
|
|
||||||
<code src="./users.tsx" inline />
|
<embed src="../README.md#L958-L1003"></embed>
|
||||||
|
|
||||||
## ⚡ Feedback
|
## ⚡ Feedback
|
||||||
|
|
||||||
|
@@ -51,7 +51,7 @@ jobs:
|
|||||||
|
|
||||||
## 💖 谁在使用?
|
## 💖 谁在使用?
|
||||||
|
|
||||||
<code src="./users.tsx" inline />
|
<embed src="../README.md#L958-L1003"></embed>
|
||||||
|
|
||||||
## ⚡ 反馈
|
## ⚡ 反馈
|
||||||
|
|
||||||
|
@@ -1,71 +0,0 @@
|
|||||||
/* eslint-disable react/jsx-no-target-blank */
|
|
||||||
|
|
||||||
import React from 'react';
|
|
||||||
|
|
||||||
const USERS = [
|
|
||||||
{
|
|
||||||
name: 'ant-design',
|
|
||||||
link: 'https://github.com/ant-design/ant-design',
|
|
||||||
logo: 'https://avatars1.githubusercontent.com/u/12101536?s=200&v=4',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'ant-design-vue',
|
|
||||||
link: 'https://github.com/vueComponent/ant-design-vue',
|
|
||||||
logo: 'https://avatars2.githubusercontent.com/u/32120805?s=200&v=4',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'dumi',
|
|
||||||
link: 'https://github.com/umijs/dumi',
|
|
||||||
logo: 'https://avatars2.githubusercontent.com/u/33895495?s=200&v=4',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'umi',
|
|
||||||
link: 'https://github.com/umijs/umi',
|
|
||||||
logo: 'https://avatars2.githubusercontent.com/u/33895495?s=200&v=4',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'vue-request',
|
|
||||||
link: 'https://github.com/AttoJS/vue-request',
|
|
||||||
logo: 'https://raw.githubusercontent.com/AttoJS/art/master/vue-request-logo.png',
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
export default () => {
|
|
||||||
return (
|
|
||||||
<ul style={{ display: 'flex', flexWrap: 'wrap', margin: 0, padding: 0, listStyle: 'none' }}>
|
|
||||||
{USERS.map((user, i) => (
|
|
||||||
<li
|
|
||||||
key={user.link}
|
|
||||||
style={{
|
|
||||||
width: 220,
|
|
||||||
marginRight: i === USERS.length - 1 ? 0 : 16,
|
|
||||||
marginBottom: 8,
|
|
||||||
border: '1px solid #eee',
|
|
||||||
textAlign: 'center',
|
|
||||||
fontSize: 20,
|
|
||||||
fontWeight: 600,
|
|
||||||
borderRadius: 2,
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
justifyContent: 'center'
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
style={{ display: 'block', color: '#666', padding: '18px', textDecoration: 'none' }}
|
|
||||||
target="_blank"
|
|
||||||
href={user.link}
|
|
||||||
>
|
|
||||||
<img
|
|
||||||
width={(user.name && 40) || undefined}
|
|
||||||
height={(!user.name && 40) || undefined}
|
|
||||||
style={{ verticalAlign: '-0.32em' }}
|
|
||||||
src={user.logo}
|
|
||||||
alt={user.name}
|
|
||||||
/>
|
|
||||||
<div style={{ marginTop: 10 }}>{user.name}</div>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
);
|
|
||||||
};
|
|
@@ -34,7 +34,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.25.1",
|
"@vercel/ncc": "^0.25.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"dumi": "^1.1.0-rc.8",
|
"dumi": "^1.1.0",
|
||||||
"gh-pages": "^3.1.0",
|
"gh-pages": "^3.1.0",
|
||||||
"react": "^17.0.1"
|
"react": "^17.0.1"
|
||||||
}
|
}
|
||||||
|
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"target": "esnext",
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"baseUrl": "./",
|
|
||||||
"jsx": "preserve",
|
|
||||||
"declaration": true,
|
|
||||||
"skipLibCheck": true,
|
|
||||||
"esModuleInterop": true,
|
|
||||||
"paths": {
|
|
||||||
"@/*": ["src/*"],
|
|
||||||
"@@/*": ["src/.umi/*"],
|
|
||||||
"rc-dialog": ["src/index.ts"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user