Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Questdb
提交
d84c6304
Q
Questdb
项目概览
jobily
/
Questdb
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
Questdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d84c6304
编写于
12月 17, 2019
作者:
V
Vlad Ilyushchenko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: build system for web console
上级
8f4db492
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
5207 addition
and
1605 deletion
+5207
-1605
core/src/main/resources/site/public/images/logo-readme.jpg
core/src/main/resources/site/public/images/logo-readme.jpg
+0
-0
core/src/main/resources/site/public/index.html
core/src/main/resources/site/public/index.html
+473
-130
core/src/main/resources/site/public/scripts/qdb.js
core/src/main/resources/site/public/scripts/qdb.js
+4456
-1158
core/src/main/resources/site/public/styles/qdb.css
core/src/main/resources/site/public/styles/qdb.css
+197
-251
ui/gulpfile.babel.js
ui/gulpfile.babel.js
+76
-60
ui/package.json
ui/package.json
+5
-6
未找到文件。
core/src/main/resources/site/public/images/logo-readme.jpg
已删除
100644 → 0
浏览文件 @
8f4db492
15.4 KB
core/src/main/resources/site/public/index.html
浏览文件 @
d84c6304
此差异已折叠。
点击以展开。
core/src/main/resources/site/public/scripts/qdb.js
浏览文件 @
d84c6304
此差异已折叠。
点击以展开。
core/src/main/resources/site/public/styles/qdb.css
浏览文件 @
d84c6304
此差异已折叠。
点击以展开。
ui/gulpfile.babel.js
浏览文件 @
d84c6304
...
...
@@ -21,20 +21,36 @@
* limitations under the License.
*
******************************************************************************/
// generated on 2016-03-23 using generator-webapp 2.0.0
import
gulp
from
"
gulp
"
;
import
gulpLoadPlugins
from
"
gulp-load-plugins
"
;
import
browserSync
from
"
browser-sync
"
;
import
del
from
"
del
"
;
import
path
from
"
path
"
;
import
fileinclude
from
"
gulp-file-include
"
;
const
$
=
gulpLoadPlugins
();
const
reload
=
browserSync
.
reload
;
const
dist
=
'
../core/src/main/resources/site/public
'
;
const
{
src
,
dest
,
series
}
=
require
(
'
gulp
'
);
const
del
=
require
(
'
del
'
);
const
path
=
require
(
'
path
'
);
const
$
=
gulpLoadPlugins
();
function
clean
(
cb
)
{
del
([
'
.tmp
'
,
dist
],
{
force
:
true
});
cb
();
}
gulp
.
task
(
'
styles
'
,
()
=>
{
return
gulp
.
src
(
'
app/styles/*.scss
'
)
function
tidy
(
cb
)
{
del
([
'
.tmp
'
],
{
force
:
true
});
cb
();
}
function
lint
()
{
return
src
(
'
app/scripts/**/*.js
'
)
.
pipe
(
$
.
eslint
({}))
.
pipe
(
$
.
eslint
.
format
())
;
}
function
styles
()
{
return
src
(
'
app/styles/*.scss
'
)
.
pipe
(
$
.
plumber
())
.
pipe
(
$
.
sourcemaps
.
init
())
.
pipe
(
$
.
sass
.
sync
({
...
...
@@ -44,41 +60,30 @@ gulp.task('styles', () => {
}).
on
(
'
error
'
,
$
.
sass
.
logError
))
.
pipe
(
$
.
autoprefixer
({
browsers
:
[
'
> 1%
'
,
'
last 2 versions
'
,
'
Firefox ESR
'
]}))
.
pipe
(
$
.
sourcemaps
.
write
())
.
pipe
(
gulp
.
dest
(
'
.tmp/styles
'
))
.
pipe
(
reload
({
stream
:
true
}))
;
}
);
.
pipe
(
dest
(
'
.tmp/styles
'
))
;
}
gulp
.
task
(
'
scripts
'
,
()
=>
{
return
gulp
.
src
([
'
app/scripts/**/*.js
'
,
'
app/thirdparty/**/*.js
'
])
function
scripts
()
{
return
src
([
'
app/scripts/**/*.js
'
,
'
app/thirdparty/**/*.js
'
])
.
pipe
(
$
.
plumber
())
.
pipe
(
$
.
sourcemaps
.
init
())
.
pipe
(
$
.
babel
())
.
pipe
(
$
.
sourcemaps
.
write
(
'
.
'
))
.
pipe
(
gulp
.
dest
(
'
.tmp/scripts
'
))
.
pipe
(
reload
({
stream
:
true
}));
});
.
pipe
(
dest
(
'
.tmp/scripts
'
))
;
function
lint
(
files
,
options
)
{
return
()
=>
{
return
gulp
.
src
(
files
)
.
pipe
(
reload
({
stream
:
true
,
once
:
true
}))
.
pipe
(
$
.
eslint
(
options
))
.
pipe
(
$
.
eslint
.
format
())
.
pipe
(
$
.
if
(
!
browserSync
.
active
,
$
.
eslint
.
failAfterError
()));
};
}
gulp
.
task
(
'
lint
'
,
lint
(
'
app/scripts/**/*.js
'
));
gulp
.
task
(
'
html
'
,
[
'
styles
'
,
'
scripts
'
],
()
=>
{
return
gulp
.
src
(
'
app/*.html
'
)
function
html
()
{
return
src
(
'
app/*.html
'
)
.
pipe
(
fileinclude
({
prefix
:
'
@@
'
,
basepath
:
'
@file
'
}))
.
pipe
(
$
.
useref
({
searchPath
:
[
'
.tmp
'
,
'
app
'
,
'
.
'
]}))
.
pipe
(
$
.
if
(
'
/
\
.js$/
'
,
$
.
uglify
({
compress
:
{
drop_console
:
true
}})))
.
pipe
(
$
.
if
(
'
/
\
.css$/b
'
,
$
.
cssnano
({
safe
:
true
,
autoprefixer
:
false
})))
.
pipe
(
$
.
if
(
'
/
\
.css$/b
'
,
$
.
cssnano
({
safe
:
true
,
autoprefixer
:
false
,
discardComments
:
{
removeAll
:
true
}
})))
.
pipe
(
$
.
if
(
'
/
\
.html$/
'
,
$
.
htmlmin
({
collapseWhitespace
:
true
,
minifyCSS
:
true
,
...
...
@@ -89,16 +94,28 @@ gulp.task('html', ['styles', 'scripts'], () => {
removeScriptTypeAttributes
:
true
,
removeStyleLinkTypeAttributes
:
true
})))
.
pipe
(
gulp
.
dest
(
dist
));
});
.
pipe
(
dest
(
dist
))
;
}
function
fonts
()
{
return
src
(
require
(
'
main-bower-files
'
)
(
'
**/*.{eot,svg,ttf,woff,woff2}
'
,
function
(
err
)
{
})
.
concat
(
'
app/fonts/**/*
'
))
.
pipe
(
dest
(
path
.
join
(
dist
,
'
fonts
'
)))
;
}
gulp
.
task
(
'
css_patterns
'
,
()
=>
{
return
gulp
.
src
(
'
app/styles/patterns/**/*
'
)
.
pipe
(
gulp
.
dest
(
path
.
join
(
dist
,
'
styles/patterns
'
)));
});
function
css_patterns
()
{
return
src
(
'
app/styles/patterns/**/*
'
)
.
pipe
(
dest
(
path
.
join
(
dist
,
'
styles/patterns
'
)))
;
}
gulp
.
task
(
'
images
'
,
[
'
css_patterns
'
],
()
=>
{
return
gulp
.
src
(
'
app/images/**/*
'
)
function
images
()
{
return
src
(
'
app/images/**/*
'
)
.
pipe
(
$
.
cache
(
$
.
imagemin
({
progressive
:
true
,
interlaced
:
true
,
...
...
@@ -106,31 +123,30 @@ gulp.task('images', ['css_patterns'], () => {
// as hooks for embedding and styling
svgoPlugins
:
[{
cleanupIDs
:
false
}]
})))
.
pipe
(
gulp
.
dest
(
path
.
join
(
dist
,
'
images
'
)));
});
gulp
.
task
(
'
fonts
'
,
()
=>
{
return
gulp
.
src
(
require
(
'
main-bower-files
'
)(
'
**/*.{eot,svg,ttf,woff,woff2}
'
,
function
(
err
)
{
})
.
concat
(
'
app/fonts/**/*
'
))
.
pipe
(
gulp
.
dest
(
path
.
join
(
dist
,
'
fonts
'
)));
});
.
pipe
(
dest
(
path
.
join
(
dist
,
'
images
'
)))
;
}
gulp
.
task
(
'
extras
'
,
()
=>
{
return
gulp
.
src
([
function
extras
()
{
return
src
([
'
app/*.*
'
,
'
!app/*.html
'
],
{
dot
:
true
}).
pipe
(
gulp
.
dest
(
dist
));
});
gulp
.
task
(
'
clean
'
,
del
.
bind
(
null
,
[
'
.tmp
'
,
dist
],
{
force
:
true
}));
gulp
.
task
(
'
build
'
,
[
'
lint
'
,
'
html
'
,
'
images
'
,
'
fonts
'
,
'
extras
'
],
()
=>
{
return
gulp
.
src
(
path
.
join
(
dist
,
'
**/*
'
)).
pipe
(
$
.
size
({
title
:
'
build
'
,
gzip
:
true
}));
});
})
.
pipe
(
dest
(
dist
))
;
}
gulp
.
task
(
'
default
'
,
[
'
clean
'
],
()
=>
{
gulp
.
start
(
'
build
'
);
});
exports
.
default
=
series
(
clean
,
lint
,
styles
,
scripts
,
html
,
fonts
,
css_patterns
,
images
,
extras
,
tidy
);
\ No newline at end of file
ui/package.json
浏览文件 @
d84c6304
...
...
@@ -16,7 +16,7 @@
"babel-preset-es2015"
:
"6.3.13"
,
"browser-sync"
:
"2.2.1"
,
"del"
:
"1.1.1"
,
"gulp"
:
"
3.9.0
"
,
"gulp"
:
"
^4.0.2
"
,
"gulp-autoprefixer"
:
"3.0.1"
,
"gulp-babel"
:
"6.1.1"
,
"gulp-cache"
:
"0.4.2"
,
...
...
@@ -25,12 +25,12 @@
"gulp-file-include"
:
"^1.0.0"
,
"gulp-htmlmin"
:
"1.3.0"
,
"gulp-if"
:
"1.2.5"
,
"gulp-imagemin"
:
"
2.2.1
"
,
"gulp-imagemin"
:
"
^6.2.0
"
,
"gulp-load-plugins"
:
"0.10.0"
,
"gulp-plumber"
:
"1.0.1"
,
"gulp-sass"
:
"
2.0.0
"
,
"gulp-sass"
:
"
^4.0.2
"
,
"gulp-size"
:
"1.2.1"
,
"gulp-sourcemaps"
:
"
1.5.0
"
,
"gulp-sourcemaps"
:
"
^2.6.5
"
,
"gulp-uglify"
:
"1.1.0"
,
"gulp-useref"
:
"3.0.0"
,
"jsdom"
:
"9.11.0"
,
...
...
@@ -51,8 +51,7 @@
}
},
"dependencies"
:
{
"bower"
:
"1.8.2"
,
"gulp"
:
"3.9.1"
,
"bower"
:
"^1.8.8"
,
"gulp-file-include"
:
"1.0.0"
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录