Move snackbar stuff into own folder

This commit is contained in:
Jannis Mattheis 2018-10-21 15:51:13 +02:00
parent d8c413df03
commit 7f50928833
12 changed files with 10 additions and 10 deletions

View File

@ -8,7 +8,7 @@ import LoadingSpinner from './component/LoadingSpinner';
import Navigation from './component/Navigation';
import ScrollUpButton from './component/ScrollUpButton';
import SettingsDialog from './component/SettingsDialog';
import SnackBarHandler from './component/SnackBarHandler';
import SnackBarHandler from './snack/SnackBarHandler';
import * as config from './config';
import Applications from './pages/Applications';
import Clients from './pages/Clients';

View File

@ -1,6 +1,6 @@
import axios from 'axios';
import {CurrentUser} from '../stores/CurrentUser';
import {SnackReporter} from '../stores/SnackManager';
import {SnackReporter} from '../snack/SnackManager';
export const initAxios = (currentUser: CurrentUser, snack: SnackReporter) => {
axios.interceptors.request.use((config) => {

View File

@ -11,7 +11,7 @@ import {CurrentUser} from './stores/CurrentUser';
import {AppStore} from './stores/AppStore';
import {reaction} from 'mobx';
import {WebSocketStore} from './stores/WebSocketStore';
import {SnackManager} from './stores/SnackManager';
import {SnackManager} from './snack/SnackManager';
import {InjectProvider, StoreMapping} from './inject';
import {UserStore} from './stores/UserStore';
import {MessagesStore} from './stores/MessagesStore';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import {UserStore} from './stores/UserStore';
import {SnackManager} from './stores/SnackManager';
import {SnackManager} from './snack/SnackManager';
import {MessagesStore} from './stores/MessagesStore';
import {CurrentUser} from './stores/CurrentUser';
import {ClientStore} from './stores/ClientStore';

View File

@ -2,7 +2,7 @@ import {BaseStore} from './BaseStore';
import axios from 'axios';
import * as config from '../config';
import {action} from 'mobx';
import {SnackReporter} from './SnackManager';
import {SnackReporter} from '../snack/SnackManager';
export class AppStore extends BaseStore<IApplication> {
public constructor(private readonly snack: SnackReporter) {

View File

@ -2,7 +2,7 @@ import {BaseStore} from './BaseStore';
import axios from 'axios';
import * as config from '../config';
import {action} from 'mobx';
import {SnackReporter} from './SnackManager';
import {SnackReporter} from '../snack/SnackManager';
export class ClientStore extends BaseStore<IClient> {
public constructor(private readonly snack: SnackReporter) {

View File

@ -1,7 +1,7 @@
import axios, {AxiosResponse} from 'axios';
import * as config from '../config';
import {detect} from 'detect-browser';
import {SnackReporter} from './SnackManager';
import {SnackReporter} from '../snack/SnackManager';
import {observable} from 'mobx';
const tokenKey = 'gotify-login-key';

View File

@ -3,7 +3,7 @@ import {action, IObservableArray, observable, reaction} from 'mobx';
import axios, {AxiosResponse} from 'axios';
import * as config from '../config';
import {createTransformer} from 'mobx-utils';
import {SnackReporter} from './SnackManager';
import {SnackReporter} from '../snack/SnackManager';
const AllMessages = -1;

View File

@ -2,7 +2,7 @@ import {BaseStore} from './BaseStore';
import axios from 'axios';
import * as config from '../config';
import {action} from 'mobx';
import {SnackReporter} from './SnackManager';
import {SnackReporter} from '../snack/SnackManager';
export class UserStore extends BaseStore<IUser> {
constructor(private readonly snack: SnackReporter) {

View File

@ -1,4 +1,4 @@
import {SnackReporter} from './SnackManager';
import {SnackReporter} from '../snack/SnackManager';
import {CurrentUser} from './CurrentUser';
import * as config from '../config';
import {MessagesStore} from './MessagesStore';