Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
L-Y.
driver.js
提交
17851f61
D
driver.js
项目概览
L-Y.
/
driver.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
driver.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
17851f61
编写于
2月 07, 2019
作者:
K
Kamran Ahmed
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update dependencies and update build
上级
e5e57cf6
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
1372 addition
and
996 deletion
+1372
-996
config/webpack.config.demo.js
config/webpack.config.demo.js
+5
-3
config/webpack.config.prod.js
config/webpack.config.prod.js
+1
-1
demo/scripts/demo.js
demo/scripts/demo.js
+13
-12
dist/driver.min.js
dist/driver.min.js
+1
-1
package.json
package.json
+18
-18
server.js
server.js
+12
-11
src/driver.scss
src/driver.scss
+1
-1
yarn.lock
yarn.lock
+1321
-949
未找到文件。
config/webpack.config.demo.js
浏览文件 @
17851f61
...
...
@@ -11,7 +11,6 @@ const styleFileName = 'driver-demo.min.css';
module
.
exports
=
{
mode
:
isProduction
?
'
production
'
:
'
development
'
,
entry
:
[
!
isProduction
&&
'
webpack-dev-server/client?http://localhost:3000
'
,
'
./demo/styles/demo.scss
'
,
'
./demo/scripts/demo.js
'
,
'
./src/index.js
'
,
...
...
@@ -46,7 +45,7 @@ module.exports = {
loader
:
ExtractTextPlugin
.
extract
([
{
loader
:
'
css-loader
'
,
options
:
{
minimize
:
isProduction
,
url
:
false
},
options
:
{
url
:
false
},
},
'
sass-loader
'
,
]),
...
...
@@ -73,7 +72,10 @@ module.exports = {
canPrint
:
true
,
}),
new
CopyWebpackPlugin
([
{
from
:
'
./demo/images/
'
,
to
:
'
images
'
}
{
from
:
'
./demo/images/
'
,
to
:
'
images
'
,
},
]),
new
HtmlWebpackPlugin
({
template
:
'
demo/index.html
'
,
...
...
config/webpack.config.prod.js
浏览文件 @
17851f61
...
...
@@ -38,7 +38,7 @@ module.exports = {
loader
:
ExtractTextPlugin
.
extract
([
{
loader
:
'
css-loader
'
,
options
:
{
minimize
:
true
,
url
:
false
},
options
:
{
url
:
false
},
},
'
sass-loader
'
,
]),
...
...
demo/scripts/demo.js
浏览文件 @
17851f61
...
...
@@ -6,7 +6,6 @@ document.addEventListener('DOMContentLoaded', function () {
{
element
:
document
.
getElementById
(
'
driver-demo-head
'
),
popover
:
{
className
:
'
scoped-driver-popover
'
,
title
:
'
Before we start
'
,
description
:
'
This is just one use-case, make sure to check out the rest of the docs below.
'
,
nextBtnText
:
'
Okay, Start!
'
,
...
...
@@ -103,7 +102,6 @@ document.addEventListener('DOMContentLoaded', function () {
opacity
:
0.8
,
padding
:
5
,
showButtons
:
true
,
className
:
'
boring-scope
'
});
boringTourDriver
.
defineSteps
(
tourSteps
);
...
...
@@ -128,9 +126,10 @@ document.addEventListener('DOMContentLoaded', function () {
});
document
.
querySelectorAll
(
'
pre code
'
).
forEach
((
element
)
=>
{
hljs
.
highlightBlock
(
element
);
});
document
.
querySelectorAll
(
'
pre code
'
)
.
forEach
((
element
)
=>
{
hljs
.
highlightBlock
(
element
);
});
/////////////////////////////////////////////
...
...
@@ -150,9 +149,10 @@ document.addEventListener('DOMContentLoaded', function () {
const
inputIds
=
[
'
creation-input
'
,
'
creation-input-2
'
,
'
creation-input-3
'
,
'
creation-input-4
'
];
inputIds
.
forEach
(
inputId
=>
{
// Highlight the section on focus
document
.
getElementById
(
inputId
).
addEventListener
(
'
focus
'
,
()
=>
{
focusDriver
.
highlight
(
`#
${
inputId
}
`
);
});
document
.
getElementById
(
inputId
)
.
addEventListener
(
'
focus
'
,
()
=>
{
focusDriver
.
highlight
(
`#
${
inputId
}
`
);
});
});
/////////////////////////////////////////////
...
...
@@ -317,10 +317,11 @@ document.addEventListener('DOMContentLoaded', function () {
}
}]);
document
.
querySelector
(
'
#run-single-element-no-close
'
).
addEventListener
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
();
singleNoClose
.
start
();
});
document
.
querySelector
(
'
#run-single-element-no-close
'
)
.
addEventListener
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
();
singleNoClose
.
start
();
});
/////////////////////////////////////////////////////
// Highlighting single element with popover position
...
...
dist/driver.min.js
浏览文件 @
17851f61
此差异已折叠。
点击以展开。
package.json
浏览文件 @
17851f61
...
...
@@ -18,33 +18,33 @@
"author"
:
"Kamran Ahmed <kamranahmed.se@gmail.com>"
,
"license"
:
"
MIT
"
,
"devDependencies"
:
{
"
@babel/core
"
:
"
^7.
0.0
"
,
"
@babel/plugin-proposal-object-rest-spread
"
:
"
^7.
0.0
"
,
"
@babel/preset-env
"
:
"
^7.
0.0
"
,
"
@babel/core
"
:
"
^7.
2.2
"
,
"
@babel/plugin-proposal-object-rest-spread
"
:
"
^7.
3.2
"
,
"
@babel/preset-env
"
:
"
^7.
3.1
"
,
"
babel-eslint
"
:
"
^10.0.1
"
,
"
babel-loader
"
:
"
^8.0.
0
"
,
"
copy-webpack-plugin
"
:
"
^4.
5.1
"
,
"
css-loader
"
:
"
^
1.0
.0
"
,
"
cssnano
"
:
"
^4.1.
4
"
,
"
eslint
"
:
"
^5.
6.1
"
,
"
babel-loader
"
:
"
^8.0.
5
"
,
"
copy-webpack-plugin
"
:
"
^4.
6.0
"
,
"
css-loader
"
:
"
^
2.1
.0
"
,
"
cssnano
"
:
"
^4.1.
8
"
,
"
eslint
"
:
"
^5.
13.0
"
,
"
eslint-config-airbnb-base
"
:
"
^13.1.0
"
,
"
eslint-loader
"
:
"
^2.
0.0
"
,
"
eslint-plugin-import
"
:
"
^2.
9
.0
"
,
"
eslint-plugin-node
"
:
"
^
7
.0.1
"
,
"
extract-loader
"
:
"
^3.
0
.0
"
,
"
eslint-loader
"
:
"
^2.
1.2
"
,
"
eslint-plugin-import
"
:
"
^2.
16
.0
"
,
"
eslint-plugin-node
"
:
"
^
8
.0.1
"
,
"
extract-loader
"
:
"
^3.
1
.0
"
,
"
extract-text-webpack-plugin
"
:
"
next
"
,
"
file-loader
"
:
"
^
2.0.0
"
,
"
file-loader
"
:
"
^
3.0.1
"
,
"
gh-pages
"
:
"
^2.0.1
"
,
"
html-webpack-plugin
"
:
"
^3.2.0
"
,
"
node-sass
"
:
"
^4.
7.2
"
,
"
opn
"
:
"
^5.
2
.0
"
,
"
node-sass
"
:
"
^4.
11.0
"
,
"
opn
"
:
"
^5.
4
.0
"
,
"
optimize-css-assets-webpack-plugin
"
:
"
^5.0.1
"
,
"
postcss-loader
"
:
"
^3.0.0
"
,
"
sass-loader
"
:
"
^7.1.0
"
,
"
style-loader
"
:
"
^0.23.1
"
,
"
webpack
"
:
"
^4.
0.1
"
,
"
webpack-cli
"
:
"
^3.
1.2
"
,
"
webpack-dev-server
"
:
"
^3.1.
0
"
"
webpack
"
:
"
^4.
29.2
"
,
"
webpack-cli
"
:
"
^3.
2.3
"
,
"
webpack-dev-server
"
:
"
^3.1.
14
"
},
"dependencies"
:
{}
}
server.js
浏览文件 @
17851f61
...
...
@@ -6,16 +6,17 @@ const config = require('./config/webpack.config.demo');
const
PORT
=
3000
;
const
HOST
=
'
localhost
'
;
const
URL
=
`http://
${
HOST
}
:
${
PORT
}
/dist/demo
`
;
const
URL
=
`http://
${
HOST
}
:
${
PORT
}
`
;
new
WebpackDevServer
(
webpack
(
config
),
{
publicPath
:
config
.
output
.
publicPath
,
}).
listen
(
PORT
,
HOST
,
(
error
,
result
)
=>
{
if
(
error
)
{
console
.
error
(
error
);
return
;
}
config
.
entry
.
unshift
(
`webpack-dev-server/client?
${
URL
}
`
);
opn
(
URL
);
console
.
log
(
`Listening at
${
URL
}
`
);
});
new
WebpackDevServer
(
webpack
(
config
))
.
listen
(
PORT
,
HOST
,
(
error
)
=>
{
if
(
error
)
{
console
.
error
(
error
);
return
;
}
opn
(
URL
);
console
.
log
(
`Listening at
${
URL
}
`
);
});
src/driver.scss
浏览文件 @
17851f61
...
...
@@ -170,7 +170,7 @@ div#driver-popover-item {
}
div
#driver-page-overlay
{
background
:
black
;
background
:
#000000
;
position
:
fixed
;
top
:
0
;
left
:
0
;
...
...
yarn.lock
浏览文件 @
17851f61
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录