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
a3106957
Commit
a3106957
authored
Jan 15, 2019
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes Feature flag JS folder structure
parent
8d836d76
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
29 deletions
+38
-29
ee/app/assets/javascripts/feature_flags/index.js
ee/app/assets/javascripts/feature_flags/index.js
+35
-0
ee/app/assets/javascripts/pages/projects/feature_flags/index.js
.../assets/javascripts/pages/projects/feature_flags/index.js
+0
-29
ee/app/assets/javascripts/pages/projects/feature_flags/index/index.js
...s/javascripts/pages/projects/feature_flags/index/index.js
+3
-0
No files found.
ee/app/assets/javascripts/feature_flags/index.js
0 → 100644
View file @
a3106957
import
Vue
from
'
vue
'
;
import
FeatureFlagsComponent
from
'
ee/feature_flags/components/feature_flags.vue
'
;
import
csrf
from
'
~/lib/utils/csrf
'
;
export
default
()
=>
new
Vue
({
el
:
'
#feature-flags-vue
'
,
components
:
{
FeatureFlagsComponent
,
},
data
()
{
return
{
dataset
:
document
.
querySelector
(
this
.
$options
.
el
).
dataset
,
};
},
render
(
createElement
)
{
return
createElement
(
'
feature-flags-component
'
,
{
props
:
{
endpoint
:
this
.
dataset
.
endpoint
,
errorStateSvgPath
:
this
.
dataset
.
errorStateSvgPath
,
featureFlagsHelpPagePath
:
this
.
dataset
.
featureFlagsHelpPagePath
,
csrfToken
:
csrf
.
token
,
canUserConfigure
:
this
.
dataset
.
canUserAdminFeatureFlag
,
newFeatureFlagPath
:
this
.
dataset
.
newFeatureFlagPath
,
configureModalData
:
{
clientLibrariesHelpPath
:
this
.
dataset
.
clientLibrariesHelpPath
,
featureFlagsHelpPagePath
:
this
.
dataset
.
featureFlagsHelpPagePath
,
apiUrl
:
this
.
dataset
.
apiUrl
,
instanceId
:
this
.
dataset
.
instanceId
,
applicationName
:
this
.
dataset
.
applicationName
,
},
},
});
},
});
ee/app/assets/javascripts/pages/projects/feature_flags/index.js
deleted
100644 → 0
View file @
8d836d76
import
Vue
from
'
vue
'
;
import
FeatureFlagsComponent
from
'
ee/feature_flags/components/feature_flags.vue
'
;
import
csrf
from
'
~/lib/utils/csrf
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
Vue
({
el
:
'
#feature-flags-vue
'
,
components
:
{
FeatureFlagsComponent
,
},
data
()
{
return
{
dataset
:
document
.
querySelector
(
this
.
$options
.
el
).
dataset
,
};
},
render
(
createElement
)
{
return
createElement
(
'
feature-flags-component
'
,
{
props
:
{
endpoint
:
this
.
dataset
.
endpoint
,
errorStateSvgPath
:
this
.
dataset
.
errorStateSvgPath
,
featureFlagsHelpPagePath
:
this
.
dataset
.
featureFlagsHelpPagePath
,
csrfToken
:
csrf
.
token
,
},
});
},
}),
);
ee/app/assets/javascripts/pages/projects/feature_flags/index/index.js
0 → 100644
View file @
a3106957
import
initFeatureFlags
from
'
ee/feature_flags
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initFeatureFlags
);
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