forked from webclipper/web-clipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 增加安装引导页面 修改popup 的文件路径 增加全局css
- Loading branch information
1 parent
0931838
commit b1e9e98
Showing
10 changed files
with
89 additions
and
8 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,11 +1,11 @@ | ||
module.exports = { | ||
transform: { | ||
'^.+\\.tsx?$': 'ts-jest', | ||
'^.+\\.tsx?$': 'ts-jest' | ||
}, | ||
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', | ||
testPathIgnorePatterns: ['/lib/', '/node_modules/'], | ||
testPathIgnorePatterns: ['/lib/', '/node_modules/', '/src/services/common/store/test.ts'], | ||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], | ||
collectCoverage: true, | ||
testEnvironment: 'node', | ||
verbose: true, | ||
verbose: true | ||
}; |
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.
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,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<meta charset="utf-8" /> | ||
|
||
<head> | ||
<title>语雀剪藏向导</title> | ||
<script src="js/initialize.js"></script> | ||
<script src="js/vendor.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="initializeWindow"></div> | ||
</body> | ||
|
||
</html> |
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,31 @@ | ||
import * as React from 'react'; | ||
import * as ReactDOM from 'react-dom'; | ||
import { Layout, Steps } from 'antd'; | ||
const { Header, Content, Footer } = Layout; | ||
import './style/index.scss'; | ||
|
||
const Step = Steps.Step; | ||
|
||
chrome.tabs.query({ active: true, currentWindow: true }, async () => { | ||
ReactDOM.render( | ||
<Layout> | ||
<Header className="Header"> | ||
<p>语雀 剪藏 保存精彩网页</p> | ||
</Header> | ||
<Content className="content"> | ||
<div className="initializeForm" > | ||
<Steps> | ||
<Step title="第一步" /> | ||
<Step title="第二步" /> | ||
<Step title="第三步" /> | ||
</Steps> | ||
</div> | ||
</Content> | ||
<Footer style={{ textAlign: 'center' }}> | ||
语雀 剪藏 ©2018 Created by <a href="https://github.com/DiamondYuan">DiamondYuan</a> | ||
</Footer> | ||
</Layout >, | ||
document.getElementById('initializeWindow') | ||
); | ||
}); | ||
|
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,18 @@ | ||
@import '../../../styles/global.scss'; | ||
|
||
body { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
.Header{ | ||
background: white; | ||
text-align: center; | ||
} | ||
.initializeForm{ | ||
background: #ffffff; | ||
padding: 24px; | ||
min-height: 500px; | ||
min-width: 500px; | ||
margin: 100px; | ||
padding: 20px; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import '~antd/dist/antd.css'; | ||
|
||
$color-brand:#34CC6B; | ||
|
||
$color-background:#F9F9F9; |
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