16 lines
330 B
JavaScript
16 lines
330 B
JavaScript
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: {},
|
|
});
|