Skip to content

Commit

Permalink
Rename to Etiketai (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca authored Dec 2, 2020
1 parent 6ccc6cb commit f1c4f8d
Show file tree
Hide file tree
Showing 11 changed files with 1,419 additions and 2,021 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"contributorsPerLine": 7,
"projectName": "labelai",
"projectName": "etiketai",
"projectOwner": "aralroca",
"repoType": "github",
"repoHost": "https://github.com",
Expand Down
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Contributing

This document is intended for developers interest in making contributions to Labelai.
This document is intended for developers interest in making contributions to Etiketai.

## Getting Started

This steps will help you to set up your development environment. That includes all dependencies we use to build Labelai and developer tooling.
This steps will help you to set up your development environment. That includes all dependencies we use to build Etiketai and developer tooling.

1. Clone the git repository: `git clone [email protected]:aralroca/labelai.git`
2. Go into the cloned folder: `cd labelai/`
1. Clone the git repository: `git clone [email protected]:aralroca/etiketai.git`
2. Go into the cloned folder: `cd etiketai/`
3. Install all dependencies: `yarn`
4. Open the app in localhost: `yarn dev`

Expand All @@ -20,7 +20,7 @@ This steps will help you to set up your development environment. That includes a

## Creating your first Pull-Request

We try to make it as easy as possible to contribute to Labelai and make heavy use of GitHub's "Draft PR" feature which tags Pull-Requests (short = PR) as work in progress. PRs tend to be published as soon as there is an idea that the developer deems worthwhile to include into Labelai and has written some rough code. The PR doesn't have to be perfect or anything really.
We try to make it as easy as possible to contribute to Etiketai and make heavy use of GitHub's "Draft PR" feature which tags Pull-Requests (short = PR) as work in progress. PRs tend to be published as soon as there is an idea that the developer deems worthwhile to include into Etiketai and has written some rough code. The PR doesn't have to be perfect or anything really.

Once a PR or a Draft PR has been created our community typically joins the discussion about the proposed change. Sometimes that includes ideas for test cases or even different ways to go about implementing a feature.

Expand All @@ -36,11 +36,11 @@ Scripts can be executed via `npm run [script]` or `yarn [script]` respectively.

## How to create a good bug report

The best way to reproduce the issue on our machine is to provide a list of all the necessary steps to reproduce it. Also would be shared the browser version, operating system version, and Labelai version. As optional you can also upload a GIF or video recording the issue... it would be very helpful!
The best way to reproduce the issue on our machine is to provide a list of all the necessary steps to reproduce it. Also would be shared the browser version, operating system version, and Etiketai version. As optional you can also upload a GIF or video recording the issue... it would be very helpful!

To find out the current version of Labelai, you can follow this link: https://labelai.vercel.app/@version
To find out the current version of Etiketai, you can follow this link: https://etiketai.vercel.app/@version


## I have more questions on how to contribute to Labelai. How can I reach you?
## I have more questions on how to contribute to Etiketai. How can I reach you?

For now, as we are a small community, you can contact me directly (Aral) through my email: [email protected]. As we grow, we will look for other platforms for discussions, like GitHub Discussions, Slack or others.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
# Labelai
# Etiketai

<p align="center">
<a href="https://labelai.vercel.app/">
<img src="public/labelai-logo.png" alt="labelai logo">
<h2 align="center">labelai.vercel.app</h2>
<a href="https://etiketai.vercel.app/">
<img src="public/etiketai-logo.png" alt="etiketai logo">
<h2 align="center">etiketai.vercel.app</h2>
</a>
</p>

<p align="center">
<a href="https://github.com/aralroca/labelai/actions?query=workflow%3ATests" alt="Tests status">
<img src="https://github.com/aralroca/labelai/workflows/Tests/badge.svg" /></a>
<a href="https://github.com/aralroca/labelai/graphs/contributors" alt="Contributors">
<img src="https://img.shields.io/github/contributors/aralroca/labelai" /></a>
<a href="https://github.com/aralroca/labelai/pulse" alt="Activity">
<img src="https://img.shields.io/github/commit-activity/m/aralroca/labelai" /></a>
<a href="https://github.com/aralroca/etiketai/actions?query=workflow%3ATests" alt="Tests status">
<img src="https://github.com/aralroca/etiketai/workflows/Tests/badge.svg" /></a>
<a href="https://github.com/aralroca/etiketai/graphs/contributors" alt="Contributors">
<img src="https://img.shields.io/github/contributors/aralroca/etiketai" /></a>
<a href="https://github.com/aralroca/etiketai/pulse" alt="Activity">
<img src="https://img.shields.io/github/commit-activity/m/aralroca/etiketai" /></a>
<a href="https://twitter.com/intent/follow?screen_name=shields_io">
<img src="https://img.shields.io/twitter/follow/aralroca?style=social&logo=twitter"
alt="follow on Twitter"></a>
</p>

- [About Labelai](#about-labelai)
- [About Etiketai](#about-etiketai)
- [Why the need of this project?](#why-the-need-of-this-project)
- [In future releases](#in-future-releases)
- [Getting started](#getting-started)
- [Hotkeys](#hotkeys)
- [Contribute](#contribute)
- [License](#license)

## About Labelai
## About Etiketai

Labelai is an online tool designed to label images, useful for training AI models.
Etiketai is an online tool designed to label images, useful for training AI models.

It's totally client-side, there is no request to any server. It is implemented with Next.js + Preact.

Expand Down Expand Up @@ -59,9 +59,9 @@ _I wrote a short article in my blog explaining a little more in detail why: http

## Getting started

Labelai **doesn't require any installation** 😜. In order to start:
Etiketai **doesn't require any installation** 😜. In order to start:

- **Open the web app** https://labelai.vercel.app/
- **Open the web app** https://etiketai.vercel.app/
- **Click 'Open'**. Here you can import 3 file types: Images (.png, .jpg, .gif, .svg...), XML (PascalVOC labels) and TXT (YOLO labels). Surely the first time you are only interested in importing images, since you will not have any label saved yet. **Important**: _if you want to import already saved labels, you must import it together with the images at the same time. In the case of YOLO, you also must import the `classes.txt` file._
- **Click and release** left mouse to select a region to annotate the rect box. Then, you can name that label or select one of the already used names.
- **Update rect boxes**. Once you already labeled a part of the image, you can resize it by clicking on a box corner, move the box using drag & drop, duplicate it (<kbd>Ctrl</kbd> + <kbd>d</kbd>) or even remove it (<kbd>⌫ Delete</kbd>).
Expand Down Expand Up @@ -101,7 +101,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://aralroca.com"><img src="https://avatars3.githubusercontent.com/u/13313058?v=4" width="100px;" alt=""/><br /><sub><b>Aral Roca Gomez</b></sub></a><br /><a href="#infra-aralroca" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-aralroca" title="Maintenance">🚧</a> <a href="https://github.com/aralroca/labelai/commits?author=aralroca" title="Code">💻</a></td>
<td align="center"><a href="https://aralroca.com"><img src="https://avatars3.githubusercontent.com/u/13313058?v=4" width="100px;" alt=""/><br /><sub><b>Aral Roca Gomez</b></sub></a><br /><a href="#infra-aralroca" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-aralroca" title="Maintenance">🚧</a> <a href="https://github.com/aralroca/etiketai/commits?author=aralroca" title="Code">💻</a></td>
</tr>
</table>

Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Security Policies and Procedures

This document outlines security procedures and general policies for the `Labelai`
This document outlines security procedures and general policies for the `Etiketai`
project.

* [Reporting a Bug](#reporting-a-bug)
Expand All @@ -9,8 +9,8 @@ project.

## Reporting a Bug

The `Labelai` team and community take all security bugs seriously.
Thank you for improving the security of `Labelai`. We appreciate your efforts and
The `Etiketai` team and community take all security bugs seriously.
Thank you for improving the security of `Etiketai`. We appreciate your efforts and
responsible disclosure and will make every effort to acknowledge your
contributions.

Expand Down
28 changes: 2 additions & 26 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
module.exports = {
experimental: {
modern: true,
},
webpack(config, { isServer }) {
// Preact
const splitChunks = config.optimization && config.optimization.splitChunks
if (splitChunks) {
const cacheGroups = splitChunks.cacheGroups
const preactModules = /[\\/]node_modules[\\/](preact|preact-render-to-string|preact-context-provider)[\\/]/
if (cacheGroups.framework) {
cacheGroups.preact = Object.assign({}, cacheGroups.framework, {
test: preactModules,
})
cacheGroups.commons.name = 'framework'
} else {
cacheGroups.preact = {
name: 'commons',
chunks: 'all',
test: preactModules,
}
}
}
const withPreact = require('next-plugin-preact')

return config
},
}
module.exports = withPreact({})
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "labelai",
"version": "1.0.0",
"name": "etiketai",
"version": "1.0.1",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -13,21 +13,21 @@
"test:watch": "NODE_ENV=test jest --watch"
},
"dependencies": {
"next": "9.5.4",
"preact": "10.4.8",
"preact-render-to-string": "5.1.10",
"react": "github:preact-compat/react#1.0.0",
"react-dom": "github:preact-compat/react-dom#1.0.0",
"react-ssr-prepass": "npm:preact[email protected]"
"next": "10.0.3",
"next-plugin-preact": "3.0.3",
"preact": "10.5.7",
"preact-render-to-string": "5.1.12",
"react": "npm:@preact/compat@0.0.3",
"react-dom": "npm:@preact/[email protected]"
},
"devDependencies": {
"babel-jest": "26.3.0",
"babel-jest": "26.6.3",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"babel-preset-minify": "0.5.1",
"husky": "4.3.0",
"jest": "26.4.2",
"prettier": "2.1.2",
"pretty-quick": "3.0.2"
"jest": "26.6.3",
"prettier": "2.2.1",
"pretty-quick": "3.1.0"
},
"husky": {
"hooks": {
Expand All @@ -40,4 +40,4 @@
"semi": false,
"singleQuote": true
}
}
}
File renamed without changes
File renamed without changes
9 changes: 4 additions & 5 deletions src/components/Center/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export default function Center() {
const left = Math.max(w, w1, w2) === w
const top = Math.max(h, h1, h2) === h
const nesw = (top && !left) || (!top && left)
canvasRef.current.style = `cursor: ${
nesw ? 'nesw-resize' : 'nwse-resize'
canvasRef.current.style = `cursor: ${nesw ? 'nesw-resize' : 'nwse-resize'
};`
} else if (selected > -1) {
canvasRef.current.style = 'cursor: move;'
Expand Down Expand Up @@ -127,11 +126,11 @@ export default function Center() {

if (!file) return (
<div className={styles.startPoint}>
<h1>Labelai</h1>
<img width="100" src="/labelai-logo.svg" alt="Labelai logo" />
<h1>Etiketai</h1>
<img width="100" src="/etiketai-logo.svg" alt="Etiketai logo" />
<p>v.{packageJSON.version}</p>
<h2>Click "Open" to start</h2>
<p>More info <a rel="noopener noreferrer" href="https://github.com/aralroca/labelai/blob/master/README.md" target="_blank">on GitHub README</a></p>
<p>More info <a rel="noopener noreferrer" href="https://github.com/aralroca/etiketai/blob/master/README.md" target="_blank">on GitHub README</a></p>
</div>
)

Expand Down
6 changes: 3 additions & 3 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import Head from 'next/head'
import '../global-style.css'

export default function App({ Component, pageProps }) {
const url = 'https://labelai.vercel.app/'
const title = 'Labelai'
const url = 'https://etiketai.vercel.app/'
const title = 'Etiketai'
const description =
'Labelai is an online tool designed to label images, useful for training AI models.'
'Etiketai is an online tool designed to label images, useful for training AI models.'

return (
<>
Expand Down
Loading

1 comment on commit f1c4f8d

@vercel
Copy link

@vercel vercel bot commented on f1c4f8d Dec 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.