Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0daa7bd9
Commit
0daa7bd9
authored
Mar 01, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'ee-refactor-protected-branches'
# Conflicts: # config/webpack.config.js
parents
22ab2db9
06135d6b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
47 deletions
+27
-47
app/views/groups/merge_requests.html.haml
app/views/groups/merge_requests.html.haml
+0
-3
app/views/projects/commit/_pipelines_list.haml
app/views/projects/commit/_pipelines_list.haml
+0
-3
app/views/projects/commit/show.html.haml
app/views/projects/commit/show.html.haml
+0
-2
app/views/projects/environments/folder.html.haml
app/views/projects/environments/folder.html.haml
+0
-3
app/views/projects/environments/metrics.html.haml
app/views/projects/environments/metrics.html.haml
+0
-2
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+0
-2
app/views/shared/milestones/_sidebar.html.haml
app/views/shared/milestones/_sidebar.html.haml
+0
-2
config/webpack.config.js
config/webpack.config.js
+27
-30
No files found.
app/views/groups/merge_requests.html.haml
View file @
0daa7bd9
-
page_title
"Merge Requests"
-
page_title
"Merge Requests"
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
-
if
group_merge_requests_count
(
state:
'all'
).
zero?
-
if
group_merge_requests_count
(
state:
'all'
).
zero?
=
render
'shared/empty_states/merge_requests'
,
project_select_button:
true
=
render
'shared/empty_states/merge_requests'
,
project_select_button:
true
-
else
-
else
...
...
app/views/projects/commit/_pipelines_list.haml
View file @
0daa7bd9
...
@@ -6,6 +6,3 @@
...
@@ -6,6 +6,3 @@
"empty-state-svg-path"
=>
image_path
(
'illustrations/pipelines_empty.svg'
),
"empty-state-svg-path"
=>
image_path
(
'illustrations/pipelines_empty.svg'
),
"error-state-svg-path"
=>
image_path
(
'illustrations/pipelines_failed.svg'
),
"error-state-svg-path"
=>
image_path
(
'illustrations/pipelines_failed.svg'
),
}
}
}
}
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_vue'
)
app/views/projects/commit/show.html.haml
View file @
0daa7bd9
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
-
@content_class
=
limited_container_width
-
@content_class
=
limited_container_width
-
page_title
"
#{
@commit
.
title
}
(
#{
@commit
.
short_id
}
)"
,
"Commits"
-
page_title
"
#{
@commit
.
title
}
(
#{
@commit
.
short_id
}
)"
,
"Commits"
-
page_description
@commit
.
description
-
page_description
@commit
.
description
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_vue'
)
.container-fluid
{
class:
[
limited_container_width
,
container_class
]
}
.container-fluid
{
class:
[
limited_container_width
,
container_class
]
}
=
render
"commit_box"
=
render
"commit_box"
...
...
app/views/projects/environments/folder.html.haml
View file @
0daa7bd9
-
@no_container
=
true
-
@no_container
=
true
-
page_title
"Environments"
-
page_title
"Environments"
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_vue'
)
#environments-folder-list-view
{
data:
{
endpoint:
folder_project_environments_path
(
@project
,
@folder
,
format: :json
),
#environments-folder-list-view
{
data:
{
endpoint:
folder_project_environments_path
(
@project
,
@folder
,
format: :json
),
"folder-name"
=>
@folder
,
"folder-name"
=>
@folder
,
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@project
).
to_s
,
"can-create-deployment"
=>
can?
(
current_user
,
:create_deployment
,
@project
).
to_s
,
...
...
app/views/projects/environments/metrics.html.haml
View file @
0daa7bd9
-
@no_container
=
true
-
@no_container
=
true
-
page_title
"Metrics for environment"
,
@environment
.
name
-
page_title
"Metrics for environment"
,
@environment
.
name
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
.prometheus-container
{
class:
container_class
}
.prometheus-container
{
class:
container_class
}
.top-area
.top-area
...
...
app/views/shared/issuable/_sidebar.html.haml
View file @
0daa7bd9
-
todo
=
issuable_todo
(
issuable
)
-
todo
=
issuable_todo
(
issuable
)
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_vue'
)
%aside
.right-sidebar.js-right-sidebar.js-issuable-sidebar
{
data:
{
signed:
{
in:
current_user
.
present?
}
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
%aside
.right-sidebar.js-right-sidebar.js-issuable-sidebar
{
data:
{
signed:
{
in:
current_user
.
present?
}
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
.issuable-sidebar
{
data:
{
endpoint:
"#{issuable_json_path(issuable)}"
}
}
.issuable-sidebar
{
data:
{
endpoint:
"#{issuable_json_path(issuable)}"
}
}
...
...
app/views/shared/milestones/_sidebar.html.haml
View file @
0daa7bd9
-
affix_offset
=
local_assigns
.
fetch
(
:affix_offset
,
"50"
)
-
affix_offset
=
local_assigns
.
fetch
(
:affix_offset
,
"50"
)
-
project
=
local_assigns
[
:project
]
-
project
=
local_assigns
[
:project
]
-
content_for
:page_specific_javascripts
do
=
page_specific_javascript_bundle_tag
(
'common_vue'
)
%aside
.right-sidebar.js-right-sidebar
{
data:
{
"offset-top"
=>
affix_offset
,
"spy"
=>
"affix"
,
"always-show-toggle"
=>
true
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
%aside
.right-sidebar.js-right-sidebar
{
data:
{
"offset-top"
=>
affix_offset
,
"spy"
=>
"affix"
,
"always-show-toggle"
=>
true
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
.issuable-sidebar.milestone-sidebar
.issuable-sidebar.milestone-sidebar
...
...
config/webpack.config.js
View file @
0daa7bd9
'
use strict
'
;
'
use strict
'
;
var
crypto
=
require
(
'
crypto
'
);
const
crypto
=
require
(
'
crypto
'
);
var
fs
=
require
(
'
fs
'
);
const
fs
=
require
(
'
fs
'
);
var
path
=
require
(
'
path
'
);
const
path
=
require
(
'
path
'
);
var
glob
=
require
(
'
glob
'
);
const
glob
=
require
(
'
glob
'
);
var
webpack
=
require
(
'
webpack
'
);
const
webpack
=
require
(
'
webpack
'
);
var
StatsWriterPlugin
=
require
(
'
webpack-stats-plugin
'
).
StatsWriterPlugin
;
const
StatsWriterPlugin
=
require
(
'
webpack-stats-plugin
'
).
StatsWriterPlugin
;
var
CopyWebpackPlugin
=
require
(
'
copy-webpack-plugin
'
);
const
CopyWebpackPlugin
=
require
(
'
copy-webpack-plugin
'
);
var
CompressionPlugin
=
require
(
'
compression-webpack-plugin
'
);
const
CompressionPlugin
=
require
(
'
compression-webpack-plugin
'
);
var
NameAllModulesPlugin
=
require
(
'
name-all-modules-plugin
'
);
const
NameAllModulesPlugin
=
require
(
'
name-all-modules-plugin
'
);
var
BundleAnalyzerPlugin
=
require
(
'
webpack-bundle-analyzer
'
).
BundleAnalyzerPlugin
;
const
BundleAnalyzerPlugin
=
require
(
'
webpack-bundle-analyzer
'
).
BundleAnalyzerPlugin
;
var
WatchMissingNodeModulesPlugin
=
require
(
'
react-dev-utils/WatchMissingNodeModulesPlugin
'
);
const
WatchMissingNodeModulesPlugin
=
require
(
'
react-dev-utils/WatchMissingNodeModulesPlugin
'
);
var
ROOT_PATH
=
path
.
resolve
(
__dirname
,
'
..
'
);
const
ROOT_PATH
=
path
.
resolve
(
__dirname
,
'
..
'
);
var
IS_PRODUCTION
=
process
.
env
.
NODE_ENV
===
'
production
'
;
const
IS_PRODUCTION
=
process
.
env
.
NODE_ENV
===
'
production
'
;
var
IS_DEV_SERVER
=
process
.
argv
.
join
(
'
'
).
indexOf
(
'
webpack-dev-server
'
)
!==
-
1
;
const
IS_DEV_SERVER
=
process
.
argv
.
join
(
'
'
).
indexOf
(
'
webpack-dev-server
'
)
!==
-
1
;
var
DEV_SERVER_HOST
=
process
.
env
.
DEV_SERVER_HOST
||
'
localhost
'
;
const
DEV_SERVER_HOST
=
process
.
env
.
DEV_SERVER_HOST
||
'
localhost
'
;
var
DEV_SERVER_PORT
=
parseInt
(
process
.
env
.
DEV_SERVER_PORT
,
10
)
||
3808
;
const
DEV_SERVER_PORT
=
parseInt
(
process
.
env
.
DEV_SERVER_PORT
,
10
)
||
3808
;
var
DEV_SERVER_LIVERELOAD
=
process
.
env
.
DEV_SERVER_LIVERELOAD
!==
'
false
'
;
const
DEV_SERVER_LIVERELOAD
=
process
.
env
.
DEV_SERVER_LIVERELOAD
!==
'
false
'
;
var
WEBPACK_REPORT
=
process
.
env
.
WEBPACK_REPORT
;
const
WEBPACK_REPORT
=
process
.
env
.
WEBPACK_REPORT
;
var
NO_COMPRESSION
=
process
.
env
.
NO_COMPRESSION
;
const
NO_COMPRESSION
=
process
.
env
.
NO_COMPRESSION
;
var
autoEntriesCount
=
0
;
let
autoEntriesCount
=
0
;
var
watchAutoEntries
=
[];
let
watchAutoEntries
=
[];
function
generateEntries
()
{
function
generateEntries
()
{
// generate automatic entry points
// generate automatic entry points
var
autoEntries
=
{};
const
autoEntries
=
{};
var
pageEntries
=
glob
.
sync
(
'
pages/**/index.js
'
,
{
cwd
:
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts
'
)
});
const
pageEntries
=
glob
.
sync
(
'
pages/**/index.js
'
,
{
cwd
:
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts
'
)
});
watchAutoEntries
=
[
watchAutoEntries
=
[
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts/pages/
'
),
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts/pages/
'
),
];
];
...
@@ -50,17 +50,14 @@ function generateEntries() {
...
@@ -50,17 +50,14 @@ function generateEntries() {
const
manualEntries
=
{
const
manualEntries
=
{
balsamiq_viewer
:
'
./blob/balsamiq_viewer.js
'
,
balsamiq_viewer
:
'
./blob/balsamiq_viewer.js
'
,
filtered_search
:
'
./filtered_search/filtered_search_bundle.js
'
,
filtered_search
:
'
./filtered_search/filtered_search_bundle.js
'
,
help
:
'
./help/help.js
'
,
monitoring
:
'
./monitoring/monitoring_bundle.js
'
,
monitoring
:
'
./monitoring/monitoring_bundle.js
'
,
mr_notes
:
'
./mr_notes/index.js
'
,
mr_notes
:
'
./mr_notes/index.js
'
,
notebook_viewer
:
'
./blob/notebook_viewer.js
'
,
notebook_viewer
:
'
./blob/notebook_viewer.js
'
,
pdf_viewer
:
'
./blob/pdf_viewer.js
'
,
pdf_viewer
:
'
./blob/pdf_viewer.js
'
,
project_import_gl
:
'
./projects/project_import_gitlab_project.js
'
,
registry_list
:
'
./registry/index.js
'
,
registry_list
:
'
./registry/index.js
'
,
sketch_viewer
:
'
./blob/sketch_viewer.js
'
,
sketch_viewer
:
'
./blob/sketch_viewer.js
'
,
stl_viewer
:
'
./blob/stl_viewer.js
'
,
stl_viewer
:
'
./blob/stl_viewer.js
'
,
terminal
:
'
./terminal/terminal_bundle.js
'
,
terminal
:
'
./terminal/terminal_bundle.js
'
,
ui_development_kit
:
'
./ui_development_kit.js
'
,
two_factor_auth
:
'
./two_factor_auth.js
'
,
two_factor_auth
:
'
./two_factor_auth.js
'
,
common
:
'
./commons/index.js
'
,
common
:
'
./commons/index.js
'
,
...
@@ -91,7 +88,7 @@ function generateEntries() {
...
@@ -91,7 +88,7 @@ function generateEntries() {
return
Object
.
assign
(
manualEntries
,
autoEntries
);
return
Object
.
assign
(
manualEntries
,
autoEntries
);
}
}
var
config
=
{
const
config
=
{
context
:
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts
'
),
context
:
path
.
join
(
ROOT_PATH
,
'
app/assets/javascripts
'
),
entry
:
generateEntries
,
entry
:
generateEntries
,
...
@@ -183,7 +180,7 @@ var config = {
...
@@ -183,7 +180,7 @@ var config = {
new
StatsWriterPlugin
({
new
StatsWriterPlugin
({
filename
:
'
manifest.json
'
,
filename
:
'
manifest.json
'
,
transform
:
function
(
data
,
opts
)
{
transform
:
function
(
data
,
opts
)
{
var
stats
=
opts
.
compiler
.
getStats
().
toJson
({
const
stats
=
opts
.
compiler
.
getStats
().
toJson
({
chunkModules
:
false
,
chunkModules
:
false
,
source
:
false
,
source
:
false
,
chunks
:
false
,
chunks
:
false
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment