rename files
This commit is contained in:
@@ -5,7 +5,7 @@ import { faDownload, faUpload, faEraser } from '@fortawesome/free-solid-svg-icon
|
|||||||
|
|
||||||
import { Button } from './button'
|
import { Button } from './button'
|
||||||
import { GameIdContext } from './infoview/context';
|
import { GameIdContext } from './infoview/context';
|
||||||
import { useAppDispatch, useAppSelector } from '../state/hooks';
|
import { useAppDispatch, useAppSelector } from '../hooks';
|
||||||
import { deleteProgress, selectProgress, loadProgress, GameProgressState } from '../state/progress';
|
import { deleteProgress, selectProgress, loadProgress, GameProgressState } from '../state/progress';
|
||||||
|
|
||||||
const downloadFile = ({ data, fileName, fileType }) => {
|
const downloadFile = ({ data, fileName, fileType }) => {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { WithRpcSessions } from '../../../../node_modules/lean4-infoview/src/inf
|
|||||||
import { ServerVersion } from '../../../../node_modules/lean4-infoview/src/infoview/serverVersion';
|
import { ServerVersion } from '../../../../node_modules/lean4-infoview/src/infoview/serverVersion';
|
||||||
|
|
||||||
import { GameIdContext } from './context';
|
import { GameIdContext } from './context';
|
||||||
import { useAppDispatch, useAppSelector } from '../../state/hooks';
|
import { useAppDispatch, useAppSelector } from '../../hooks';
|
||||||
import { LevelInfo } from '../../state/api';
|
import { LevelInfo } from '../../state/api';
|
||||||
import { levelCompleted, selectCompleted } from '../../state/progress';
|
import { levelCompleted, selectCompleted } from '../../state/progress';
|
||||||
import Markdown from '../markdown';
|
import Markdown from '../markdown';
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ import { styled, useTheme, Theme, CSSObject } from '@mui/material/styles';
|
|||||||
import { DocumentPosition } from '../../../node_modules/lean4-infoview/src/infoview/util';
|
import { DocumentPosition } from '../../../node_modules/lean4-infoview/src/infoview/util';
|
||||||
|
|
||||||
import { GameIdContext } from './infoview/context';
|
import { GameIdContext } from './infoview/context';
|
||||||
import { ConnectionContext, useLeanClient } from '../state/connection';
|
import { ConnectionContext, useLeanClient } from '../connection';
|
||||||
import { useAppDispatch, useAppSelector } from '../state/hooks';
|
import { useAppDispatch, useAppSelector } from '../hooks';
|
||||||
import { Button } from './button'
|
import { Button } from './button'
|
||||||
import Markdown from './markdown';
|
import Markdown from './markdown';
|
||||||
import {Inventory, Documentation} from './inventory';
|
import {Inventory, Documentation} from './inventory';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'
|
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'
|
||||||
import type { RootState, AppDispatch } from './store'
|
import type { RootState, AppDispatch } from './state/store'
|
||||||
|
|
||||||
// Use throughout your app instead of plain `useDispatch` and `useSelector`
|
// Use throughout your app instead of plain `useDispatch` and `useSelector`
|
||||||
export const useAppDispatch: () => AppDispatch = useDispatch
|
export const useAppDispatch: () => AppDispatch = useDispatch
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { createRoot } from 'react-dom/client';
|
import { createRoot } from 'react-dom/client';
|
||||||
import App from './app';
|
import App from './app';
|
||||||
import { ConnectionContext, connection } from './state/connection'
|
import { ConnectionContext, connection } from './connection'
|
||||||
import { store } from './state/store';
|
import { store } from './state/store';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
|
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
|
||||||
import { Connection } from './connection'
|
import { Connection } from '../connection'
|
||||||
|
|
||||||
interface GameInfo {
|
interface GameInfo {
|
||||||
title: null|string,
|
title: null|string,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { configureStore } from '@reduxjs/toolkit';
|
import { configureStore } from '@reduxjs/toolkit';
|
||||||
import { debounce } from "debounce";
|
import { debounce } from "debounce";
|
||||||
|
|
||||||
import { connection } from './connection'
|
import { connection } from '../connection'
|
||||||
import { apiSlice } from './api'
|
import { apiSlice } from './api'
|
||||||
import { progressSlice } from './progress'
|
import { progressSlice } from './progress'
|
||||||
import { saveState } from "./local_storage";
|
import { saveState } from "./local_storage";
|
||||||
|
|||||||
Reference in New Issue
Block a user