Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
8a72c3a3
Commit
8a72c3a3
authored
Jun 12, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化目录结构,调整样式全局引入
parent
717b0458
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
45 additions
and
103 deletions
+45
-103
README.md
README.md
+6
-0
base.config.json
config/base.config.json
+28
-1
config.ts
config/config.ts
+6
-2
index.less.d.ts
src/components/ListCard/index.less.d.ts
+0
-8
index.less.d.ts
src/components/TextLink/index.less.d.ts
+0
-7
global.less.d.ts
src/global.less.d.ts
+0
-10
index.ts
src/global/config/index.ts
+2
-2
color.less
src/global/styles/color.less
+0
-0
global.less
src/global/styles/global.less
+0
-1
index.less
src/global/styles/index.less
+0
-0
theme.less
src/global/styles/theme.less
+0
-0
utils.less
src/global/styles/utils.less
+0
-0
UserHeader.tsx
src/layouts/components/UserHeader.tsx
+0
-18
Layouts.less
src/layouts/styles/Layouts.less
+0
-1
UserLayouts.less.d.ts
src/layouts/styles/UserLayouts.less.d.ts
+0
-19
index.less
src/pages/user/index.less
+1
-1
index.less.d.ts
src/pages/user/index.less.d.ts
+0
-31
index.tsx
src/pages/user/index.tsx
+1
-1
register.tsx
src/pages/user/register.tsx
+1
-1
utils.less
src/styles/utils.less
+0
-0
No files found.
README.md
View file @
8a72c3a3
...
...
@@ -5,6 +5,12 @@
-
god页面模板, 依赖于
[
umi
](
https://umijs.org/
)
, 更多配置可以查看
-
god组件库
[
文档
](
http://10.0.0.22:8080/
)
### 项目运行请先执行 scripts:build
可获取项目所需配置, 在/src/constants/cacheConfig.ts
### 全局引入的文件
-
src/styles/theme.less 可使用其中的less变量
### scripts 所需依赖
-
gulp 流程工具
-
chalk 控制台样式控制工具
...
...
config/base.config.json
View file @
8a72c3a3
{
"global"
:{
"logo"
:
""
,
"countryList"
:[{
"name"
:
"简体中文-ZH"
,
"key"
:
"cn"
,
"icon"
:
""
},{
"name"
:
"English-EN"
,
"key"
:
"en"
,
"icon"
:
""
},{
"name"
:
"日本語-JP"
,
"key"
:
"jp"
,
"icon"
:
""
},{
"name"
:
"한국어-KO"
,
"key"
:
"ko"
,
"icon"
:
""
}]}}
{
"global"
:
{
"logo"
:
""
,
"countryList"
:
[
{
"name"
:
"简体中文-ZH"
,
"key"
:
"cn"
,
"icon"
:
""
},
{
"name"
:
"English-EN"
,
"key"
:
"en"
,
"icon"
:
""
},
{
"name"
:
"日本語-JP"
,
"key"
:
"jp"
,
"icon"
:
""
},
{
"name"
:
"한국어-KO"
,
"key"
:
"ko"
,
"icon"
:
""
}
]
}
}
\ No newline at end of file
config/config.ts
View file @
8a72c3a3
...
...
@@ -42,8 +42,12 @@ export default defineConfig({
cssLoader
:
{
localsConvention
:
'camelCase'
,
// 将style中的class由 .foo-body 转化为fooBody调用
},
cssModulesTypescriptLoader
:
{
mode
:
'emit'
lessLoader
:
{
// 所有less文件都会引入的变量
modifyVars
:
{
// 或者可以通过 less 文件覆盖(文件路径为绝对路径)
'hack'
:
`true; @import "~@/global/styles/theme.less";`
}
},
dynamicImport
:
{
loading
:
'@/components/Loading'
...
...
src/components/ListCard/index.less.d.ts
deleted
100644 → 0
View file @
717b0458
// This file is automatically generated.
// Please do not change this file!
interface
CssExports
{
'header'
:
string
;
'listCard'
:
string
;
}
export
const
cssExports
:
CssExports
;
export
default
cssExports
;
src/components/TextLink/index.less.d.ts
deleted
100644 → 0
View file @
717b0458
// This file is automatically generated.
// Please do not change this file!
interface
CssExports
{
'link'
:
string
;
}
export
const
cssExports
:
CssExports
;
export
default
cssExports
;
src/global.less.d.ts
deleted
100644 → 0
View file @
717b0458
// This file is automatically generated.
// Please do not change this file!
interface
CssExports
{
'lingxi-business-content1024'
:
string
;
'lingxi-business-margin_content'
:
string
;
'lingxiBusinessContent1024'
:
string
;
'lingxiBusinessMarginContent'
:
string
;
}
export
const
cssExports
:
CssExports
;
export
default
cssExports
;
src/
constants/cacheConfig
.ts
→
src/
global/config/index
.ts
View file @
8a72c3a3
...
...
@@ -6,7 +6,7 @@
* **********
*/
import
SELF_CONFIG
from
'../../config/base.config.json'
import
{
RootObject
}
from
'../../global'
import
SELF_CONFIG
from
'../../
../
config/base.config.json'
import
{
RootObject
}
from
'../../
../
global'
export
const
GlobalConfig
:
RootObject
=
SELF_CONFIG
src/global
.c
ss
→
src/global
/styles/color.le
ss
View file @
8a72c3a3
File moved
src/global.less
→
src/global
/styles/global
.less
View file @
8a72c3a3
@import '~@/styles/theme.less';
// antd default
h1, h2, h3, h4, h5, h6 {
...
...
src/
styles/color
.less
→
src/
global/styles/index
.less
View file @
8a72c3a3
File moved
src/styles/theme.less
→
src/
global/
styles/theme.less
View file @
8a72c3a3
File moved
src/
styles/index
.less
→
src/
global/styles/utils
.less
View file @
8a72c3a3
File moved
src/layouts/components/UserHeader.tsx
View file @
8a72c3a3
...
...
@@ -27,21 +27,4 @@ const UserHeader:React.FC<UserHeaderProps> = (props) => {
)
}
UserHeader
.
defaultProps
=
{
// 开发环境下的替代logo
logo
:
require
(
'../../../mockStatic/logo.png'
),
countryList
:
[
{
name
:
'中国'
,
key
:
'China'
,
icon
:
require
(
'../../../mockStatic/china.png'
)
},
{
name
:
'美国'
,
key
:
'US'
,
icon
:
require
(
'../../../mockStatic/us.png'
)
}
]
}
export
default
UserHeader
\ No newline at end of file
src/layouts/styles/Layouts.less
View file @
8a72c3a3
@import '~@/styles/theme.less';
.@{prefix}-margin_content {
width: 1190px;
...
...
src/layouts/styles/UserLayouts.less.d.ts
deleted
100644 → 0
View file @
717b0458
// This file is automatically generated.
// Please do not change this file!
interface
CssExports
{
'fixed'
:
string
;
'lingxi-business-logo'
:
string
;
'lingxi-business-margin_content'
:
string
;
'lingxi-business-user-bg'
:
string
;
'lingxi-business-user-footer'
:
string
;
'lingxi-business-user-header'
:
string
;
'lingxi-business-user-layout'
:
string
;
'lingxiBusinessLogo'
:
string
;
'lingxiBusinessMarginContent'
:
string
;
'lingxiBusinessUserBg'
:
string
;
'lingxiBusinessUserFooter'
:
string
;
'lingxiBusinessUserHeader'
:
string
;
'lingxiBusinessUserLayout'
:
string
;
}
export
const
cssExports
:
CssExports
;
export
default
cssExports
;
src/pages/user/index.less
View file @
8a72c3a3
@import '~@/global.less';
@import '~@/global
/styles/global
.less';
.login-item {
flex: 1;
...
...
src/pages/user/index.less.d.ts
deleted
100644 → 0
View file @
717b0458
// This file is automatically generated.
// Please do not change this file!
interface
CssExports
{
'agreement'
:
string
;
'btnCenter'
:
string
;
'checkTypes'
:
string
;
'default'
:
string
;
'form-box'
:
string
;
'formBefore'
:
string
;
'formBox'
:
string
;
'large'
:
string
;
'lingxi-business-content1024'
:
string
;
'lingxi-business-margin_content'
:
string
;
'lingxiBusinessContent1024'
:
string
;
'lingxiBusinessMarginContent'
:
string
;
'login-ctl'
:
string
;
'login-item'
:
string
;
'loginCtl'
:
string
;
'loginDesc'
:
string
;
'loginItem'
:
string
;
'loginMain'
:
string
;
'loginVerBtn'
:
string
;
'loginWrap'
:
string
;
'margin320'
:
string
;
'register'
:
string
;
'registerBox'
:
string
;
'stepWrap'
:
string
;
'thirdLogin'
:
string
;
}
export
const
cssExports
:
CssExports
;
export
default
cssExports
;
src/pages/user/index.tsx
View file @
8a72c3a3
import
React
from
'react'
;
import
globalStyles
from
'@/global.less'
;
import
globalStyles
from
'@/global
/styles/global
.less'
;
import
styles
from
'./index.less'
import
cx
from
'classnames'
;
import
{
Row
,
Col
,
Form
,
Input
,
Button
,
Space
}
from
'antd'
;
...
...
src/pages/user/register.tsx
View file @
8a72c3a3
import
React
,
{
useState
,
useRef
}
from
'react'
import
{
Input
,
Form
,
Steps
,
Button
,
Row
,
Space
,
message
}
from
'antd'
import
styles
from
'./index.less'
import
globalStyles
from
'@/global.less'
import
globalStyles
from
'@/global
/styles/global
.less'
import
cx
from
'classnames'
import
{
FormPage
}
from
'god'
import
{
IFormControllers
,
IFormButtonTypes
}
from
'god/dist/src/form-page'
...
...
src/styles/utils.less
deleted
100644 → 0
View file @
717b0458
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment