Commit 84c77965 authored by Marek Veselý's avatar Marek Veselý
Browse files

Separate analyst

parent 20bcd1a5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@ COPY graphql/package.json graphql/package.json
COPY prettier-config/package.json prettier-config/package.json
COPY eslint-config/package.json eslint-config/package.json
COPY editor/package.json editor/package.json
COPY analyst/package.json analyst/package.json
COPY router/package.json router/package.json

RUN corepack enable && yarn install --immutable --inline-builds

+7 −1
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@ A monorepo of the INJECT Exercise Platform.

- [frontend](./frontend/) - The main repository with components specific to INJECT Frontend
- [editor](./editor/) - Sub-repository for INJECT Editor, tool for creating exercises for IXP. It can be compiled as a separate application and is included as a module (micro-frontend) in [frontend](./frontend/)
- [router](./router) - Sub-repository for routing
- [analyst](./analyst/) - A library for components of the analyst view
- [graphql](./graphql/) - A library for the communication with the GraphQL-based backend
- [shared](./shared/) - A library for components and config shared between other repositories
- [eslint-config](./eslint-config/) - Contains eslint configuration which is applied to all repositories implementing `eslint` and `eslint-gitlab` task
@@ -55,6 +57,10 @@ We recommend to use the following workspace settings (copy them into `./vscode/s
    {
      "directory": "./shared",
      "changeProcessCWD": true
    },
    {
      "directory": "./analyst",
      "changeProcessCWD": true
    }
  ],
  "editor.codeActionsOnSave": {
@@ -143,7 +149,7 @@ yarn lint
- [Ahooks](https://ahooks.js.org/hooks/use-request/index) (for common React Hooks)
- [BlueprintJS](https://blueprintjs.com/docs/) (for UI)
- [Emotion](https://emotion.sh/docs/introduction) (for CSS-in-JS)
- [Generouted](https://github.com/oedotme/generouted) (for routing)
- [Tanstack Router](https://tanstack.com/router/latest) (for routing)
- [GraphQL-Codegen](https://the-guild.dev/graphql/codegen) (for generating TypeScript code for working with a GraphQL API)

## Usage of the repository in documentation

analyst/LICENSE

0 → 100644
+21 −0
Original line number Diff line number Diff line
MIT License

Copyright 2024 Masaryk University

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+4 −0
Original line number Diff line number Diff line
import { config } from '@inject/eslint-config'

/** @type {import("eslint").Linter.Config} */
export default config

analyst/index.html

0 → 100644
+18 −0
Original line number Diff line number Diff line
<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/inject-logo.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>INJECT</title>
  </head>
  <body>
    <div id="root"></div>
    <div id="connection"></div>
    <script>
      // the following variables will override the default connection settings
      window.VITE_HTTPS_HOST = 'localhost:8000' // 'localhost:8000'
    </script>
    <script type="module" src="/src/main.tsx"></script>
  </body>
</html>
Loading