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
15c98185
Commit
15c98185
authored
May 09, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed conflicts
parent
38ee63ee
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
396 deletions
+0
-396
app/assets/javascripts/issuable/time_tracking/time_tracking_bundle.js
...avascripts/issuable/time_tracking/time_tracking_bundle.js
+0
-66
app/assets/javascripts/merge_request_widget.js
app/assets/javascripts/merge_request_widget.js
+0
-327
config/webpack.config.js
config/webpack.config.js
+0
-3
No files found.
app/assets/javascripts/issuable/time_tracking/time_tracking_bundle.js
deleted
100644 → 0
View file @
38ee63ee
import
Vue
from
'
vue
'
;
import
VueResource
from
'
vue-resource
'
;
require
(
'
./components/time_tracker
'
);
require
(
'
../../smart_interval
'
);
require
(
'
../../subbable_resource
'
);
Vue
.
use
(
VueResource
);
(()
=>
{
/* This Vue instance represents what will become the parent instance for the
* sidebar. It will be responsible for managing `issuable` state and propagating
* changes to sidebar components. We will want to create a separate service to
* interface with the server at that point.
*/
class
IssuableTimeTracking
{
constructor
(
issuableJSON
)
{
const
parsedIssuable
=
JSON
.
parse
(
issuableJSON
);
return
this
.
initComponent
(
parsedIssuable
);
}
initComponent
(
parsedIssuable
)
{
this
.
parentInstance
=
new
Vue
({
el
:
'
#issuable-time-tracker
'
,
data
:
{
issuable
:
parsedIssuable
,
},
methods
:
{
fetchIssuable
()
{
return
gl
.
IssuableResource
.
get
.
call
(
gl
.
IssuableResource
,
{
type
:
'
GET
'
,
url
:
`
${
gl
.
IssuableResource
.
endpoint
}
?basic=true`
,
});
},
updateState
(
data
)
{
this
.
issuable
=
data
;
},
subscribeToUpdates
()
{
gl
.
IssuableResource
.
subscribe
(
data
=>
this
.
updateState
(
data
));
},
listenForSlashCommands
()
{
$
(
document
).
on
(
'
ajax:success
'
,
'
.gfm-form
'
,
(
e
,
data
)
=>
{
const
subscribedCommands
=
[
'
spend_time
'
,
'
time_estimate
'
];
const
changedCommands
=
data
.
commands_changes
?
Object
.
keys
(
data
.
commands_changes
)
:
[];
if
(
changedCommands
&&
_
.
intersection
(
subscribedCommands
,
changedCommands
).
length
)
{
this
.
fetchIssuable
();
}
});
},
},
created
()
{
this
.
fetchIssuable
();
},
mounted
()
{
this
.
subscribeToUpdates
();
this
.
listenForSlashCommands
();
},
});
}
}
gl
.
IssuableTimeTracking
=
IssuableTimeTracking
;
})(
window
.
gl
||
(
window
.
gl
=
{}));
app/assets/javascripts/merge_request_widget.js
deleted
100644 → 0
View file @
38ee63ee
This diff is collapsed.
Click to expand it.
config/webpack.config.js
View file @
15c98185
...
...
@@ -60,11 +60,8 @@ var config = {
terminal
:
'
./terminal/terminal_bundle.js
'
,
u2f
:
[
'
vendor/u2f
'
],
users
:
'
./users/users_bundle.js
'
,
<<<<<<<
HEAD
raven
:
'
./raven/index.js
'
,
=======
vue_merge_request_widget
:
'
./vue_merge_request_widget/index.js
'
,
>>>>>>>
a6d35c27cac69f7edaaf64a0df863f1a3b557db1
},
output
:
{
...
...
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