-
Notifications
You must be signed in to change notification settings - Fork 26
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
1 parent
22ae1a0
commit d051752
Showing
54 changed files
with
272 additions
and
232 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 |
---|---|---|
@@ -1,30 +1 @@ | ||
/* eslint no-console:0 */ | ||
function camelCase(name) { | ||
return ( | ||
name.charAt(0).toUpperCase() + | ||
name.slice(1).replace(/-(\w)/g, (m, n) => { | ||
return n.toUpperCase(); | ||
}) | ||
); | ||
} | ||
|
||
// Just import style for https://github.com/ant-design/ant-design/issues/3745 | ||
const req = require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.tsx?$/); | ||
|
||
req.keys().forEach(mod => { | ||
let v = req(mod); | ||
if (v && v.default) { | ||
v = v.default; | ||
} | ||
const match = mod.match(/^\.\/([^_][\w-]+)\/index\.tsx?$/); | ||
if (match && match[1]) { | ||
if (match[1] === 'message' || match[1] === 'notification') { | ||
// message & notification should not be capitalized | ||
exports[match[1]] = v; | ||
} else { | ||
exports[camelCase(match[1])] = v; | ||
} | ||
} | ||
}); | ||
|
||
module.exports = require('./components'); | ||
export { PageContext } from './templates/PageContext'; |
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
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...tdsite/src/components/content/Article.tsx → ...ault-theme/components/content/Article.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...dsite/src/components/search-box/index.tsx → ...ult-theme/components/search-box/index.tsx
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
2 changes: 1 addition & 1 deletion
2
packages/antdsite/src/components/utils.ts → ...ite/src/default-theme/components/utils.ts
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
1 change: 0 additions & 1 deletion
1
packages/antdsite/src/layout/Footer.tsx → ...dsite/src/default-theme/layout/footer.tsx
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
14 changes: 7 additions & 7 deletions
14
...es/antdsite/src/components/home/index.jsx → ...ntdsite/src/default-theme/layout/home.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare module 'antdsite-layout'; | ||
declare module 'antdsite-header'; | ||
declare module 'antdsite-footer'; | ||
declare module 'antdsite-main-content'; | ||
declare module 'antdsite-home'; |
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
File renamed without changes.
Oops, something went wrong.