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
eeb7b156
Commit
eeb7b156
authored
Mar 24, 2021
by
NataliaTepluhina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced writeData with queries
parent
fe2022ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
app/assets/javascripts/repository/index.js
app/assets/javascripts/repository/index.js
+25
-2
No files found.
app/assets/javascripts/repository/index.js
View file @
eeb7b156
...
...
@@ -9,6 +9,10 @@ import Breadcrumbs from './components/breadcrumbs.vue';
import
DirectoryDownloadLinks
from
'
./components/directory_download_links.vue
'
;
import
LastCommit
from
'
./components/last_commit.vue
'
;
import
apolloProvider
from
'
./graphql
'
;
import
commitsQuery
from
'
./queries/commits.query.graphql
'
;
import
projectPathQuery
from
'
./queries/project_path.query.graphql
'
;
import
projectShortPathQuery
from
'
./queries/project_short_path.query.graphql
'
;
import
refsQuery
from
'
./queries/ref.query.graphql
'
;
import
createRouter
from
'
./router
'
;
import
{
updateFormAction
}
from
'
./utils/dom
'
;
import
{
setTitle
}
from
'
./utils/title
'
;
...
...
@@ -19,13 +23,32 @@ export default function setupVueRepositoryList() {
const
{
projectPath
,
projectShortPath
,
ref
,
escapedRef
,
fullName
}
=
dataset
;
const
router
=
createRouter
(
projectPath
,
escapedRef
);
apolloProvider
.
clients
.
defaultClient
.
cache
.
writeData
({
apolloProvider
.
clients
.
defaultClient
.
cache
.
writeQuery
({
query
:
commitsQuery
,
data
:
{
commits
:
[],
},
});
apolloProvider
.
clients
.
defaultClient
.
cache
.
writeQuery
({
query
:
projectPathQuery
,
data
:
{
projectPath
,
},
});
apolloProvider
.
clients
.
defaultClient
.
cache
.
writeQuery
({
query
:
projectShortPathQuery
,
data
:
{
projectShortPath
,
},
});
apolloProvider
.
clients
.
defaultClient
.
cache
.
writeQuery
({
query
:
refsQuery
,
data
:
{
ref
,
escapedRef
,
commits
:
[],
},
});
...
...
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