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
0c4b369c
Commit
0c4b369c
authored
Aug 03, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load raw data for text view.
parent
ef6ce7a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/assets/javascripts/repo/helpers/repo_helper.js
app/assets/javascripts/repo/helpers/repo_helper.js
+5
-1
app/assets/javascripts/repo/services/repo_service.js
app/assets/javascripts/repo/services/repo_service.js
+4
-0
No files found.
app/assets/javascripts/repo/helpers/repo_helper.js
View file @
0c4b369c
...
@@ -167,7 +167,11 @@ const RepoHelper = {
...
@@ -167,7 +167,11 @@ const RepoHelper = {
RepoHelper
.
setBinaryDataAsBase64
(
rawUrl
,
data
);
RepoHelper
.
setBinaryDataAsBase64
(
rawUrl
,
data
);
data
.
binary
=
true
;
data
.
binary
=
true
;
}
else
{
}
else
{
Store
.
blobRaw
=
data
.
plain
;
Service
.
getRaw
(
data
.
raw_path
)
.
then
(
response
=>
{
Store
.
blobRaw
=
response
.
data
;
})
// Store.blobRaw = data.plain;
data
.
binary
=
false
;
data
.
binary
=
false
;
}
}
...
...
app/assets/javascripts/repo/services/repo_service.js
View file @
0c4b369c
...
@@ -18,6 +18,10 @@ const RepoService = {
...
@@ -18,6 +18,10 @@ const RepoService = {
}
});
}
});
},
},
getRaw
(
url
)
{
return
axios
.
get
(
url
);
},
buildParams
(
url
=
this
.
url
)
{
buildParams
(
url
=
this
.
url
)
{
// shallow clone object without reference
// shallow clone object without reference
const
params
=
Object
.
assign
({},
this
.
options
.
params
);
const
params
=
Object
.
assign
({},
this
.
options
.
params
);
...
...
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