Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .dumi/theme/builtins/SourceCode.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
//position: relative;
font-size: 13px;
& > .prism-code {
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
font-family:
ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
'Liberation Mono', monospace;
}
background-color: @c-light-bg;
Expand Down Expand Up @@ -44,7 +45,9 @@
outline: none;
cursor: pointer;
opacity: 0.6;
transition: opacity 0.2s, background 0.2s;
transition:
opacity 0.2s,
background 0.2s;

&:hover {
opacity: 0.8;
Expand Down
11 changes: 8 additions & 3 deletions .dumi/theme/builtins/preview-default/Previewer.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
height: @s-btn;
border-radius: 50%;
background-color: #fd6458;
box-shadow: (@s-btn + @s-btn-gap) 0 0 #ffbf2b,
box-shadow:
(@s-btn + @s-btn-gap) 0 0 #ffbf2b,
(@s-btn + @s-btn-gap) * 2 0 0 #24cc3d;
}
}
Expand Down Expand Up @@ -162,7 +163,9 @@
cursor: pointer;
opacity: 0.6;
outline: none;
transition: opacity 0.2s, background 0.2s;
transition:
opacity 0.2s,
background 0.2s;

[data-prefers-color='dark'] & {
opacity: 1;
Expand Down Expand Up @@ -321,7 +324,9 @@
position: absolute;
height: 2px;
background: @c-primary;
transition: left 0.2s, width 0.2s;
transition:
left 0.2s,
width 0.2s;
pointer-events: none;

[data-prefers-color='dark'] & {
Expand Down
5 changes: 1 addition & 4 deletions .dumi/theme/builtins/preview-default/Previewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,7 @@ const Previewer: React.FC<IPreviewerProps> = oProps => {
<Tabs.Tab
title={
filename === '_'
? `index.${getSourceType(
filename,
props.sources[filename]
)}`
? `index.${getSourceType(filename, props.sources[filename])}`
: filename
}
key={filename}
Expand Down
6 changes: 4 additions & 2 deletions .dumi/theme/components/SearchBar.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
[data-prefers-color='dark'] & {
border: none;
background-color: @c-bg-dark;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.48),
0 6px 16px 0 rgba(0, 0, 0, 0.32), 0 9px 28px 8px rgba(0, 0, 0, 0.2);
box-shadow:
0 3px 6px -4px rgba(0, 0, 0, 0.48),
0 6px 16px 0 rgba(0, 0, 0, 0.32),
0 9px 28px 8px rgba(0, 0, 0, 0.2);
}

&:empty {
Expand Down
6 changes: 4 additions & 2 deletions .dumi/theme/components/device.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

&-action {
height: 40px;
background: #ffffff;
background: #fff;
border-top: 1px solid var(--doc-border-color);

[data-prefers-color='dark'] & {
Expand All @@ -35,7 +35,9 @@
margin-left: 12px;
box-sizing: content-box;
border: 2px solid transparent;
transition: opacity 0.2s, background 0.2s;
transition:
opacity 0.2s,
background 0.2s;
outline: none;
cursor: pointer;
color: #333;
Expand Down
17 changes: 14 additions & 3 deletions .dumi/theme/style/layout-default.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,20 @@

body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC,
Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial,
sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
font-family:
-apple-system,
BlinkMacSystemFont,
Segoe UI,
PingFang SC,
Hiragino Sans GB,
Microsoft YaHei,
Helvetica Neue,
Helvetica,
Arial,
sans-serif,
Apple Color Emoji,
Segoe UI Emoji,
Segoe UI Symbol;
font-variant: tabular-nums;
font-feature-settings: 'tnum';

Expand Down
3 changes: 2 additions & 1 deletion .dumi/theme/style/markdown.less
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
}

code {
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
font-family:
ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
'Liberation Mono', monospace;
font-size: 14px;
}
Expand Down
17 changes: 6 additions & 11 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
max_line_length = 80
quote_type = single
trim_trailing_whitespace = true
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

88 changes: 0 additions & 88 deletions .eslintrc.js

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:

- name: Check surge deploy result and exit if failed
run: |
if [ "${{ steps.deploy.outcome }}" != "success" ]; then
echo "Surge Deploy failed."
exit 1
fi
if [ "${{ steps.deploy.outcome }}" != "success" ]; then
echo "Surge Deploy failed."
exit 1
fi
4 changes: 2 additions & 2 deletions .github/workflows/preview-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ permissions:
jobs:
preview-start:
permissions:
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
issues: write # for actions-cool/maintain-one-comment to modify or create issue comments
pull-requests: write # for actions-cool/maintain-one-comment to modify or create PR comments
name: start preview info
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 0 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

PATH=$(pwd)/.node/bin:$(pwd)/node_modules/.bin:$PATH commitlint --edit ${1}
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

PATH=$(pwd)/.node/bin:$(pwd)/node_modules/.bin:$PATH lint-staged
19 changes: 0 additions & 19 deletions .prettierrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .stylelintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"source.fixAll.stylelint": "explicit",
"source.organizeImports": "explicit"
},
"editor.rulers": [80, 120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[javascript]": {
Expand Down Expand Up @@ -46,5 +45,6 @@
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"editor.rulers": [100]
}
2 changes: 1 addition & 1 deletion babel-transform-less-to-css.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = function () {
return {
visitor: {
ImportDeclaration(path, source) {
ImportDeclaration(path) {
if (path.node.source.value.endsWith('.less')) {
path.node.source.value = path.node.source.value.replace(

Check warning on line 6 in babel-transform-less-to-css.js

View workflow job for this annotation

GitHub Actions / check

Assignment to property of function parameter 'path'

Check warning on line 6 in babel-transform-less-to-css.js

View workflow job for this annotation

GitHub Actions / check

Assignment to property of function parameter 'path'
/\.less$/,
'.css'
)
Expand Down
21 changes: 0 additions & 21 deletions commitlint.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const config: IConfig = {
},
alias: {
'antd-mobile/es': process.cwd() + '/src',
'demos': process.cwd() + '/src/demos/index.ts',
demos: process.cwd() + '/src/demos/index.ts',
},
metas: [
{
Expand Down
4 changes: 2 additions & 2 deletions config/navs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const navs = {
'en': [
en: [
{
title: 'Guide',
path: '/guide',
Expand Down Expand Up @@ -34,7 +34,7 @@ export const navs = {
path: 'https://github.com/ant-design/ant-design-mobile',
},
],
'zh': [
zh: [
{
title: '指南',
path: '/zh/guide',
Expand Down
4 changes: 1 addition & 3 deletions docs/components/components/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ export default () => {
className={styles.productDesignValues}
bordered={false}
style={{
backgroundImage: `url(${getProductDesignValuesBackgroundImage(
isWidthScreen
)})`,
backgroundImage: `url(${getProductDesignValuesBackgroundImage(isWidthScreen)})`,
backgroundRepeat: 'no-repeat',
backgroundSize: 'cover',
}}
Expand Down
Loading
Loading