Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into feature/multiselection
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/components/CurrentEntity/CurrentEntity.js
#	yarn.lock
  • Loading branch information
Gondragos committed Aug 27, 2021
2 parents 9279f05 + f24bc91 commit c8f8989
Show file tree
Hide file tree
Showing 78 changed files with 3,355 additions and 5,153 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ module.exports = {
"SwitchCase": 1,
"MemberExpression": 1,
}],
"sort-imports": ["error", {
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"allowSeparatedGroups": false,
"memberSyntaxSortOrder": ["all", "single", "multiple", "none"],
}],
"no-async-promise-executor": "off",
"semi": [2, "always"],
"comma-dangle": ["error", {
Expand Down
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
23 changes: 7 additions & 16 deletions dev-server.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
const webpackDevServer = require("webpack-dev-server");
const WebpackDevServer = require("webpack-dev-server");
const webpack = require("webpack");
const path = require("path");

const config = require("./webpack.config-builder")({
withDevServer: false,
withDevServer: true,
});

const port = 3000;

const options = {
compress: true,
hot: true,
inline: true,
public: `http://localhost:${port}`,
contentBase: path.join(__dirname, "public"),
historyApiFallback: {
index: "./public/index.html",
},
};

webpackDevServer.addDevServerEntrypoints(config, options);
config.entry.main.unshift(
`webpack-dev-server/client?http://localhost:${port}/`,
`webpack/hot/dev-server`,
);

const compiler = webpack(config);
const server = new webpackDevServer(compiler, options);
const server = new WebpackDevServer(compiler, config.devServer);

server.listen(port, "localhost", () => {
console.log(`dev server listening on port ${port}`);
Expand Down
11 changes: 6 additions & 5 deletions e2e/tests/ner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,21 @@ Scenario("NER labeling for HyperText", async function({ I }) {
I.amOnPage("/");
I.executeAsyncScript(initLabelStudio, params);

// create regions inside iframe
I.switchTo("iframe");
I.pressKey("1");
I.click("[data-testid=r1-start]");
I.pressKeyDown("Shift");
I.click("[data-testid=r1-end]");
I.pressKeyUp("Shift");

I.pressKey("2");
I.doubleClick(".lsf-main-view b:nth-child(2)");
I.doubleClick("b:nth-child(2)");

I.click("[data-testid=r1-mid]");
// @todo this hotkey doesn't work. why?
// I.pressKey('r')
I.click("Create Relation");
I.click(".lsf-main-view b:nth-child(2)");
I.pressKey('r');
I.click("b:nth-child(2)");
I.switchTo();

I.see("Relations (1)");

Expand Down
6 changes: 6 additions & 0 deletions examples/audio_regions/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@
</Choices>
<Header value="Listen the audio:"></Header>
<AudioPlus name="audio" value="$url"></AudioPlus>
<Header>How many instruments in this audio?</Header>
<Number name="overall" toName="audio" defaultValue="2" />
<View visibleWhen="region-selected">
<Header>And in this fragment?</Header>
<Number name="fragment" toName="audio" perRegion="true" />
</View>
</View>
Loading

0 comments on commit c8f8989

Please sign in to comment.