@fmfi-uk-1-ain-412/structure-explorer 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,54 +1,33 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
-
14
- ```js
15
- export default tseslint.config({
16
- extends: [
17
- // Remove ...tseslint.configs.recommended and replace with this
18
- ...tseslint.configs.recommendedTypeChecked,
19
- // Alternatively, use this for stricter rules
20
- ...tseslint.configs.strictTypeChecked,
21
- // Optionally, add this for stylistic rules
22
- ...tseslint.configs.stylisticTypeChecked,
23
- ],
24
- languageOptions: {
25
- // other options...
26
- parserOptions: {
27
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
28
- tsconfigRootDir: import.meta.dirname,
29
- },
30
- },
31
- })
1
+ # Prieskumník štruktúr pre logiku prvého rádu
2
+
3
+ Tento repozitár obsahuje zdrojové súbory aplikácie Prieskumník štruktúr,
4
+ ktorá umožňuje vytvárať a upravovať štruktúry pre jazyky logiky prvého
5
+ rádu a skúmať pravdivosť formúl a hodnoty termov v nich.
6
+
7
+ ## Inštalácia
8
+
9
+ Aplikácia sa dá spustiť lokálne po vykonaní nasledovných krokov:
10
+
11
+ ```shell
12
+ git clone https://github.com/FMFI-UK-1-AIN-412/structure-explorer.git
13
+ cd structure-explorer
14
+ npm install
32
15
  ```
33
16
 
34
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
35
-
36
- ```js
37
- // eslint.config.js
38
- import reactX from 'eslint-plugin-react-x'
39
- import reactDom from 'eslint-plugin-react-dom'
40
-
41
- export default tseslint.config({
42
- plugins: {
43
- // Add the react-x and react-dom plugins
44
- 'react-x': reactX,
45
- 'react-dom': reactDom,
46
- },
47
- rules: {
48
- // other rules...
49
- // Enable its recommended typescript rules
50
- ...reactX.configs['recommended-typescript'].rules,
51
- ...reactDom.configs.recommended.rules,
52
- },
53
- })
17
+ Po úspešnom nainštalovaní spustíme virtuálny server pomocou príkazu:
18
+
19
+ ```shell
20
+ npm run dev
54
21
  ```
22
+
23
+ Po tomto kroku bude aplikácia bežať na porte `localhost:5173`.
24
+
25
+ ## História
26
+
27
+ Aplikácia vznikla v rokoch 2017–2018 v rámci bakalárskej práce Milana Cifru
28
+ <cite>Prieskumník sémantiky logiky prvého rádu</cite>.
29
+ V rokoch 2019–2020 ju Miroslav Baluch rozšíril o grafový pohľad na štruktúry
30
+ v rámci svojej bakalárskej práce s názvom <cite>Prieskumník grafových
31
+ štruktúr pre logiku prvého rádu</cite>. V rokoch 2020–2021 Richard Tóth
32
+ pridal do prieskumníka Henkinovu-Hintikkovu hru v rámci svojej bakalárskej
33
+ práce <cite>Henkinova-Hintikkova hra v prieskumníku štruktúr</cite>.
@@ -18,7 +18,6 @@ export interface FormulasState {
18
18
  export declare const formulasSlice: import('@reduxjs/toolkit').Slice<FormulasState, {
19
19
  importFormulasState: (_state: import('immer').WritableDraft<FormulasState>, action: PayloadAction<string>) => any;
20
20
  addFormula: (state: import('immer').WritableDraft<FormulasState>) => void;
21
- clearChoices: (state: import('immer').WritableDraft<FormulasState>, action: PayloadAction<number>) => void;
22
21
  gameGoBack: (state: import('immer').WritableDraft<FormulasState>, action: PayloadAction<{
23
22
  id: number;
24
23
  index: number;
@@ -49,7 +48,7 @@ export declare const formulasSlice: import('@reduxjs/toolkit').Slice<FormulasSta
49
48
  guess: boolean | null;
50
49
  }>) => void;
51
50
  }, "formulas", "formulas", import('@reduxjs/toolkit').SliceSelectors<FormulasState>>;
52
- export declare const addFormula: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"formulas/addFormula">, removeFormula: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "formulas/removeFormula">, clearChoices: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "formulas/clearChoices">, gameGoBack: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
51
+ export declare const addFormula: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"formulas/addFormula">, removeFormula: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "formulas/removeFormula">, gameGoBack: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
53
52
  id: number;
54
53
  index: number;
55
54
  }, "formulas/gameGoBack">, addAlpha: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
@@ -1,5 +1,6 @@
1
1
  interface Props {
2
2
  id: number;
3
3
  }
4
+ export declare function getDiffAndNew(a: Map<string, string>, b: Map<string, string>): Map<string, string>;
4
5
  export default function GameHistory({ id }: Props): import("react/jsx-runtime").JSX.Element;
5
6
  export {};
@@ -17,7 +17,6 @@ declare class PredicateAtom extends Formula {
17
17
  * @param {Term[]} terms
18
18
  */
19
19
  constructor(name: string, terms?: Term[]);
20
- depth(): number;
21
20
  /**
22
21
  *
23
22
  * @param {Structure} structure
@@ -27,7 +27,6 @@ declare abstract class Formula extends Expression {
27
27
  toString(): string;
28
28
  gameDepth(sign: boolean): number;
29
29
  signedFormulaToString(sign: boolean): string;
30
- depth(): number;
31
30
  winningSubformulas(sign: boolean, structure: Structure, e: Valuation): SignedFormula[];
32
31
  abstract eval(structure: Structure, e: Valuation): boolean;
33
32
  getVariables(): Set<Symbol>;