Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
refactor(site): make navbar scroll separately on webpage (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimi-Gao committed Sep 3, 2018
1 parent 26efcb2 commit 97efaa5
Show file tree
Hide file tree
Showing 48 changed files with 754 additions and 617 deletions.
4 changes: 2 additions & 2 deletions config/webpack.config.site.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rimraf.sync(outputPath)

const config = {
entry: {
site: `${sitePath}/index.js`
site: `${sitePath}/router.js`
},
output: {
path: outputPath,
Expand Down Expand Up @@ -62,7 +62,7 @@ const config = {
],
alias: {
'earth-ui/lib': `${sourcePath}/components`,
'public': `${sitePath}/public`,
'widgets': `${sitePath}/widgets`,
'doc': `${sitePath}/loaders/doc`,
'variable.less': `${sourcePath}/styles/variable.less`,
'mixin.less': `${sourcePath}/styles/mixin.less`,
Expand Down
75 changes: 75 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"postcss-loader": "^2.0.8",
"prop-types": "^15.6.1",
"react": "^15.6.2",
"react-custom-scrollbars": "^4.2.1",
"react-dom": "^15.6.2",
"react-hot-loader": "^4.0.0-rc.0",
"react-router": "^2.8.1",
Expand Down
Binary file added site/img/earth_text_black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/img/earth_text_white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions site/loaders/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ module.exports = function (source) {
// 依赖的公共模块
imports.add(`import React, { Component } from 'react'`)
imports.add(`import { Row, Col } from 'earth-ui/lib/Layout'`)
imports.add(`import Demo from 'public/Demo'`)
imports.add(`import Doc from 'public/Doc'`)
imports.add(`import Demo from 'widgets/Demo'`)
imports.add(`import Doc from 'widgets/Doc'`)

// 获取 DEMO、文档数据
const demos = []
Expand Down
98 changes: 0 additions & 98 deletions site/pages/App/index.js

This file was deleted.

0 comments on commit 97efaa5

Please sign in to comment.