Welcome to mirror list, hosted at ThFree Co, Russian Federation.

helpers.js « repo « javascripts « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac43d2211981b6d35f59bd3cb11e25ccca791715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { decorateData } from '~/ide/stores/utils';
import state from '~/ide/stores/state';

export const resetStore = (store) => {
  store.replaceState(state());
};

export const file = (name = 'name', id = name, type = '') => decorateData({
  id,
  type,
  icon: 'icon',
  url: 'url',
  name,
  path: name,
  lastCommit: {},
});