-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
140 changed files
with
5,517 additions
and
1,429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ esm/ | |
dist/ | ||
package-lock.json | ||
yarn.lock | ||
yarn-error.log | ||
yarn-error.log | ||
.umi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import { defineConfig } from 'dumi'; | ||
import path from 'path'; | ||
|
||
process.env.BABEL_ENV = 'dumi'; | ||
|
||
export default defineConfig({ | ||
publicPath: '/anna-native/', | ||
base: '/anna-native', | ||
title: 'Anna Native', | ||
mode: 'site', | ||
logo: 'https://smebimage.fuliaoyi.com/Fpnmnf0ZwkicXQEXlrLZXBLY4hA9', | ||
favicon: 'https://smebimage.fuliaoyi.com/Fpnmnf0ZwkicXQEXlrLZXBLY4hA9', | ||
navs: [ | ||
null, | ||
{ title: 'Eurus', path: 'https://github.com/AnnaSearl/eurus' }, | ||
{ title: 'GitHub', path: 'https://github.com/AnnaSearl/anna-native' }, | ||
], | ||
theme: { | ||
'@c-primary': '#9966FF', | ||
}, | ||
exportStatic: {}, | ||
outputPath: 'site', | ||
sass: { | ||
implementation: require('node-sass'), | ||
}, | ||
extraPostCSSPlugins: [], | ||
extraBabelPlugins: [], | ||
alias: { | ||
'anna-native': path.resolve(__dirname, 'components'), | ||
}, | ||
chainWebpack(memo, { env, webpack, createCSSRule }) { | ||
// jsx 内联样式 px2rem | ||
}, | ||
styles: [ | ||
` | ||
.__dumi-default-device > iframe { | ||
background-color: #F4F4F4; | ||
} | ||
.__dumi-default-mobile-demo-layout { | ||
font-size: 14px; | ||
} | ||
.__dumi-default-mobile-demo-layout > div > div { | ||
margin-bottom: 10px; | ||
} | ||
.icon.icon-link { | ||
display: none; | ||
} | ||
.__dumi-default-navbar-logo{ | ||
font-size: 20px !important; | ||
padding-left: 52px !important; | ||
} | ||
.__dumi-default-menu[data-mode='site'] .__dumi-default-menu-list > li > a.active{ | ||
background: rgba(153, 102, 255, 0.1) !important; | ||
} | ||
.markdown *:not(pre) code { | ||
margin: 0 1px; | ||
padding: .2em .4em !important; | ||
font-size: .9em; | ||
color: rgba(0, 0, 0, 0.85) !important; | ||
background: #f2f4f5 !important; | ||
border: 1px solid #f0f0f0; | ||
border-radius: 3px; | ||
font-family: sfmono-regular,Consolas,liberation mono,Menlo,Courier,monospace; | ||
} | ||
.markdown table td:nth-child(3) { | ||
color: #9966FF; | ||
font-size: 13px; | ||
word-break: break-all; | ||
} | ||
.markdown table td:nth-child(3) > code { | ||
color: #9966FF !important; | ||
background-color: #F6F6F6 !important; | ||
font-size: 13px; | ||
word-break: break-all; | ||
margin-bottom: 6px; | ||
} | ||
.anna-btn:not(.anna-btn-disabled):hover .anna-btn-mask { | ||
box-sizing: border-box; | ||
position: absolute; | ||
top: -1PX; | ||
right: -1PX; | ||
bottom: -1PX; | ||
left: -1PX; | ||
content: ''; | ||
background-color: rgba(255, 255, 255, 0.35); | ||
border-radius: inherit; | ||
pointer-events: none; | ||
transition: background-color 0.3s; | ||
} | ||
`, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// 顶部z状态栏高度,针对非刘海屏的机型 | ||
export const STATUS_BAR_HEIGHT = 20; | ||
|
||
// 顶部安全区域高度 | ||
export const TOP_SAFE_HEIGHT = 44; | ||
|
||
// 底部安全区域高度 | ||
export const BOTTOM_SAFE_HEIGHT = 34; | ||
|
||
// 导航栏在iOS中的高度 | ||
export const NAV_BAR_HEIGHT_IOS = 44; | ||
|
||
// 导航栏在Android中的高度 | ||
export const NAV_BAR_HEIGHT_ANDROID = 50; | ||
|
||
// iPhone 12 | ||
export const IPHONE12_NORMAL = 844; | ||
export const IPHONE12_MAX = 926; | ||
export const IPHONE12_MINI = 780; | ||
|
||
// img URL | ||
export const IMAGE_HOST = 'https://fly-resource.oss-cn-shanghai.aliyuncs.com/fym-app/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.