Skip to content

Commit 38634f4

Browse files
authored
Merge pull request #259 from SkalskiP/develop
1.9.0-alpha relese
2 parents 8f418fc + 8a480a1 commit 38634f4

File tree

85 files changed

+15249
-17412
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+15249
-17412
lines changed

.eslintrc.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
extends:
2+
- eslint:recommended
3+
- plugin:@typescript-eslint/recommended
4+
- plugin:react/recommended
5+
parser: "@typescript-eslint/parser"
6+
plugins:
7+
- "@typescript-eslint"
8+
rules:
9+
"@typescript-eslint/no-inferrable-types": off
10+
no-shadow: off
11+
"@typescript-eslint/no-shadow":
12+
- error
13+
no-use-before-define: off
14+
"@typescript-eslint/no-use-before-define":
15+
- error
16+
react/jsx-filename-extension:
17+
- warn
18+
- extensions:
19+
- .tsx
20+
complexity:
21+
- error
22+
- 15
23+
no-await-in-loop: warn
24+
no-eval: error
25+
no-implied-eval: error
26+
prefer-promise-reject-errors: warn
27+
env:
28+
browser: true
29+
settings:
30+
react:
31+
pragma: React
32+
version: detect
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "develop", master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "develop" ]
20+
schedule:
21+
- cron: '16 8 * * 5'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2

.github/workflows/coverage.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,28 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [10.x, 12.x, 14.x]
12+
node-version: [14, 16]
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v2
17-
with:
18-
fetch-depth: 2
16+
uses: actions/checkout@v3
1917

2018
- name: Set up Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v3
2220
with:
2321
node-version: ${{ matrix.node-version }}
2422

23+
- name: Update NPM
24+
run: npm i -g npm
25+
2526
- name: Install dependencies
2627
run: npm install
2728

2829
- name: Run the tests
29-
run: npm test -- --coverage
30+
run: npm run test:coverage
3031

3132
- name: Upload coverage to Codecov
32-
if: ${{ matrix.node-version == '10.x'}}
33+
if: ${{ matrix.node-version == '14'}}
3334
uses: codecov/codecov-action@v1
3435
with:
3536
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
# CREATE REACT APP
66

77
# dependencies
8-
/node_modules
8+
/node_modules/
9+
/dist/
910
/.pnp
1011
.pnp.js
1112

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11.15.0
1+
16.16.0

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<img width="600" src=".//public/ico/main-image-dark_alter.png" alt="Logo">
1010
</p>
1111

12-
[makesense.ai][1] is a free to use online tool for labelling photos. Thanks to the use of a browser it does not require any complicated installation - just visit the website and you are ready to go. It also doesn't matter which operating system you're running on - we do our best to be truly cross-platform. It is perfect for small computer vision deeplearning projects, making the process of preparing a dataset much easier and faster. Prepared labels can be downloaded in one of multiple supported formats. The application was written in TypeScript and is based on React/Redux duo.
12+
[makesense.ai][1] is a free-to-use online tool for labeling photos. Thanks to the use of a browser it does not require any complicated installation - just visit the website and you are ready to go. It also doesn't matter which operating system you're running on - we do our best to be truly cross-platform. It is perfect for small computer vision deep learning projects, making the process of preparing a dataset much easier and faster. Prepared labels can be downloaded in one of the multiple supported formats. The application was written in TypeScript and is based on React/Redux duo.
1313

1414
## 📄 Documentation
1515

@@ -130,6 +130,9 @@ You can find examples of export files along with a description and schema on our
130130
| **Label** |||||||
131131

132132
**Table 3.** The matrix of supported labels import formats
133+
* ✓ - supported format
134+
* ☐ - not yet supported format
135+
* ✗ - format does not make sense for a given label type
133136

134137
## 🔐 Privacy
135138

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.10-slim
1+
FROM node:14.18.0
22

33
RUN apt-get update && apt-get -y install git && rm -rf /var/lib/apt/lists/*
44

public/index.html renamed to index.html

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,30 @@
1717
})(window,document,'script','dataLayer','GTM-5N6WR7G');</script>
1818

1919
<meta charset="utf-8" />
20-
<link rel="shortcut icon" href="%PUBLIC_URL%/make-sense-ico.png" />
20+
21+
<link rel="shortcut icon" href="/make-sense-ico.png" />
2122
<link href="https://fonts.googleapis.com/css?family=Saira+Semi+Condensed&display=swap" rel="stylesheet">
2223
<meta name="viewport" content="width=device-width, initial-scale=1" />
23-
<meta name="theme-color" content="#000000" />
24+
25+
<meta name="theme-color" content="#171717" />
2426
<!--
2527
manifest.json provides metadata used when your web app is installed on a
2628
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
2729
-->
28-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
29-
<!--
30-
Notice the use of %PUBLIC_URL% in the tags above.
31-
It will be replaced with the URL of the `public` folder during the build.
32-
Only files inside the `public` folder can be referenced from the HTML.
33-
34-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
35-
work correctly both with client-side routing and a non-root public URL.
36-
Learn how to configure a non-root public URL by running `npm run build`.
37-
-->
30+
<link rel="manifest" href="/manifest.json" />
3831
<title>Make Sense</title>
3932
</head>
4033
<body>
34+
<style>
35+
body {
36+
background-color: #171717;
37+
}
38+
</style>
4139
<noscript>You need to enable JavaScript to run this app.</noscript>
4240
<noscript>
4341
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5N6WR7G" height="0" width="0" style="display:none;visibility:hidden"></iframe>
4442
</noscript>
4543
<div id="root"></div>
46-
<!--
47-
This HTML file is a template.
48-
If you open it directly in the browser, you will see an empty page.
49-
50-
You can add webfonts, meta tags, or analytics to this file.
51-
The build step will place the bundled scripts into the <body> tag.
52-
53-
To begin the development, run `npm start` or `yarn start`.
54-
To create a production bundle, use `npm run build` or `yarn build`.
55-
-->
44+
<script type="module" src="/src/index.tsx"></script>
5645
</body>
5746
</html>

jest.config.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import type { Config } from '@jest/types';
2+
3+
// Sync object
4+
const config: Config.InitialOptions = {
5+
rootDir: process.cwd(),
6+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
7+
transformIgnorePatterns: [],
8+
testEnvironment: 'jsdom',
9+
roots: ["<rootDir>/src"],
10+
setupFilesAfterEnv: ["<rootDir>/src/configureTest.ts"],
11+
transform: {
12+
"^.+(t|j)sx?$": [
13+
"@swc/jest",
14+
{
15+
jsc: {
16+
transform: {
17+
react: {
18+
runtime: 'automatic',
19+
},
20+
},
21+
},
22+
},
23+
],
24+
},
25+
"moduleNameMapper": {
26+
"\\.(css|scss|less)$": "identity-obj-proxy"
27+
},
28+
extensionsToTreatAsEsm: [".ts", ".tsx"],
29+
collectCoverageFrom: [
30+
"**/*.{ts,tsx}",
31+
"!**/node_modules/**",
32+
"!**/dist/**",
33+
"!**/coverage/**",
34+
],
35+
};
36+
export default config;

0 commit comments

Comments
 (0)