BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fd8388d8
Commit
fd8388d8
authored
Aug 11, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused repo store keys
Fix
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12198#note_37147332
parent
51c8f9e1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
repo_helper.js
app/assets/javascripts/repo/helpers/repo_helper.js
+0
-1
repo_store.js
app/assets/javascripts/repo/stores/repo_store.js
+1
-16
No files found.
app/assets/javascripts/repo/helpers/repo_helper.js
View file @
fd8388d8
...
...
@@ -148,7 +148,6 @@ const RepoHelper = {
Store
.
binary
=
data
.
binary
;
if
(
data
.
binary
)
{
Store
.
binaryMimeType
=
data
.
mime_type
;
// file might be undefined
RepoHelper
.
setBinaryDataAsBase64
(
data
);
Store
.
setViewToPreview
();
...
...
app/assets/javascripts/repo/stores/repo_store.js
View file @
fd8388d8
...
...
@@ -3,13 +3,10 @@ import Helper from '../helpers/repo_helper';
import
Service
from
'../services/repo_service'
;
const
RepoStore
=
{
ideEl
:
{},
monaco
:
{},
monacoLoading
:
false
,
monacoInstance
:
{},
service
:
''
,
editor
:
''
,
sidebar
:
''
,
editMode
:
false
,
isTree
:
false
,
isRoot
:
false
,
...
...
@@ -17,18 +14,10 @@ const RepoStore = {
projectId
:
''
,
projectName
:
''
,
projectUrl
:
''
,
trees
:
[],
blobs
:
[],
submodules
:
[],
blobRaw
:
''
,
blobRendered
:
''
,
currentBlobView
:
'repo-preview'
,
openedFiles
:
[],
tabSize
:
100
,
defaultTabSize
:
100
,
minTabSize
:
30
,
submitCommitsLoading
:
false
,
binaryLoaded
:
false
,
dialog
:
{
open
:
false
,
title
:
''
,
...
...
@@ -44,9 +33,6 @@ const RepoStore = {
currentBranch
:
''
,
targetBranch
:
'new-branch'
,
commitMessage
:
''
,
binaryMimeType
:
''
,
// scroll bar space for windows
scrollWidth
:
0
,
binaryTypes
:
{
png
:
false
,
md
:
false
,
...
...
@@ -57,7 +43,6 @@ const RepoStore = {
tree
:
false
,
blob
:
false
,
},
readOnly
:
true
,
resetBinaryTypes
()
{
Object
.
keys
(
RepoStore
.
binaryTypes
).
forEach
((
key
)
=>
{
...
...
@@ -95,7 +80,6 @@ const RepoStore = {
if
(
file
.
binary
)
{
RepoStore
.
blobRaw
=
file
.
base64
;
RepoStore
.
binaryMimeType
=
file
.
mime_type
;
}
else
if
(
file
.
newContent
||
file
.
plain
)
{
RepoStore
.
blobRaw
=
file
.
newContent
||
file
.
plain
;
}
else
{
...
...
@@ -237,4 +221,5 @@ const RepoStore = {
return
RepoStore
.
currentBlobView
===
'repo-preview'
;
},
};
export
default
RepoStore
;
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