Skip to content

Commit 7cf0a1f

Browse files
authored
Merge pull request #103 from egekorkan/fix-formatting
Apply formatting rules
2 parents a87ff26 + 27f714e commit 7cf0a1f

Some content is hidden

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

55 files changed

+26527
-25521
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: publish-to-github-pages
2-
on:
2+
on:
33
push:
44
branches:
55
- master
@@ -10,12 +10,12 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-node@v2
1212
with:
13-
node-version: '20'
13+
node-version: "20"
1414
- run: npm install
1515
- run: npm run build
1616
- name: Deploy 🚀
1717
uses: JamesIves/github-pages-deploy-action@3.7.1
1818
with:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
BRANCH: gh-pages
21-
FOLDER: build
21+
FOLDER: build

.prettierignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
**/.git
2+
**/node_modules
3+
**/.png
4+
**/.pdf
5+
**/.eps
6+
**/.jpeg
7+
**/.jpg
8+
.svg
9+
10+
.prettierignore
11+
12+
logo
13+
build
14+
src/external
15+

.prettierrc

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
{
2-
"arrowParens": "always",
3-
"bracketSpacing": true,
4-
"endOfLine": "lf",
5-
"htmlWhitespaceSensitivity": "css",
6-
"insertPragma": false,
7-
"singleAttributePerLine": false,
8-
"bracketSameLine": false,
9-
"jsxBracketSameLine": false,
10-
"jsxSingleQuote": false,
11-
"printWidth": 80,
12-
"proseWrap": "preserve",
13-
"quoteProps": "as-needed",
14-
"requirePragma": false,
15-
"semi": true,
16-
"singleQuote": false,
17-
"tabWidth": 4,
18-
"trailingComma": "es5",
19-
"useTabs": true,
20-
"embeddedLanguageFormatting": "auto",
21-
"vueIndentScriptAndStyle": false,
22-
"parser": "babel"
23-
}
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"endOfLine": "lf",
5+
"htmlWhitespaceSensitivity": "css",
6+
"insertPragma": false,
7+
"singleAttributePerLine": false,
8+
"bracketSameLine": false,
9+
"jsxBracketSameLine": false,
10+
"jsxSingleQuote": false,
11+
"printWidth": 80,
12+
"proseWrap": "preserve",
13+
"quoteProps": "as-needed",
14+
"requirePragma": false,
15+
"semi": true,
16+
"singleQuote": false,
17+
"tabWidth": 2,
18+
"trailingComma": "es5",
19+
"useTabs": false,
20+
"embeddedLanguageFormatting": "auto",
21+
"vueIndentScriptAndStyle": false
22+
}

CONTRIBUTING.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@ This process helps us in creating great open source software within a safe legal
88

99
Thus, before your contribution can be accepted by the project team, contributors must electronically sign the [Eclipse Contributor Agreement (ECA)](http://www.eclipse.org/legal/ECA.php) and follow these preliminary steps:
1010

11-
- Obtain an [Eclipse Foundation account](https://accounts.eclipse.org/)
12-
- Anyone who currently uses Eclipse Bugzilla or Gerrit systems already has one of those
13-
- Newcomers can [create a new account](https://accounts.eclipse.org/user/register?destination=user)
14-
- Add your GiHub username to your Eclipse Foundation account
15-
- ([Log into Eclipse](https://accounts.eclipse.org/))
16-
- Go to the _Edit Profile_ tab
17-
- Fill in the _GitHub ID_ under _Social Media Links_ and save
18-
- Sign the [Eclipse Contributor Agreement](http://www.eclipse.org/legal/ECA.php)
19-
- ([Log into Eclipse](https://accounts.eclipse.org/))
20-
- If the _Status_ entry _Eclipse Contributor Agreement_ has a green checkmark, the ECA is already signed
21-
- If not, go to the _Eclipse Contributor Agreement_ tab or follow the corresponding link under _Status_
22-
- Fill out the form and sign it electronically
23-
- Sign-off every commit using the same email address used for your Eclipse account
24-
- Set the Git user email address with `git config user.email "<your Eclipse account email>"`
25-
- Add the `-s` flag when you make the commit(s), e.g. `git commit -s -m "feat: add support for magic"`
26-
- Open a [Pull Request](https://github.com/eclipse/editdor/pulls)
11+
- Obtain an [Eclipse Foundation account](https://accounts.eclipse.org/)
12+
- Anyone who currently uses Eclipse Bugzilla or Gerrit systems already has one of those
13+
- Newcomers can [create a new account](https://accounts.eclipse.org/user/register?destination=user)
14+
- Add your GiHub username to your Eclipse Foundation account
15+
- ([Log into Eclipse](https://accounts.eclipse.org/))
16+
- Go to the _Edit Profile_ tab
17+
- Fill in the _GitHub ID_ under _Social Media Links_ and save
18+
- Sign the [Eclipse Contributor Agreement](http://www.eclipse.org/legal/ECA.php)
19+
- ([Log into Eclipse](https://accounts.eclipse.org/))
20+
- If the _Status_ entry _Eclipse Contributor Agreement_ has a green checkmark, the ECA is already signed
21+
- If not, go to the _Eclipse Contributor Agreement_ tab or follow the corresponding link under _Status_
22+
- Fill out the form and sign it electronically
23+
- Sign-off every commit using the same email address used for your Eclipse account
24+
- Set the Git user email address with `git config user.email "<your Eclipse account email>"`
25+
- Add the `-s` flag when you make the commit(s), e.g. `git commit -s -m "feat: add support for magic"`
26+
- Open a [Pull Request](https://github.com/eclipse/editdor/pulls)
27+
2728

2829
For more information, please see the Eclipse Committer Handbook:
2930
https://www.eclipse.org/projects/handbook/#resources-commit

README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33

44
A tool for simply designing W3C Thing Descriptions and Thing Models
55

6-
Find the ediTDor here to try it out:
6+
Find the ediTDor here to try it out:
77

88
https://eclipse.github.io/editdor/
99

1010
## Using the AI Chat Function
11+
1112
The AI chat is currently implemented using Azures cognitive services API. To make use of the chat
1213
the app has to be compiled with two additional environment variables:
14+
1315
```bash
1416
REACT_APP_OPENAI_KEY={api_key}
1517
REACT_APP_OPENAI_URI={azure_resource_address}
@@ -26,35 +28,43 @@ The goal of this project is the easy creation of W3C Thing Description instances
2628
- Exporting the Thing Description / ThingModel from the visual representation into JSON-LD
2729

2830
## Technologies
31+
2932
- React
3033
- TailwindCSS
3134

3235
## Contribution guide
36+
3337
Please follow our [contribution guide](./CONTRIBUTING.md).
3438

3539
## License
36-
* [Eclipse Public License v. 2.0](http://www.eclipse.org/legal/epl-2.0)
37-
40+
41+
- [Eclipse Public License v. 2.0](http://www.eclipse.org/legal/epl-2.0)
42+
3843
## Prerequisites
44+
3945
### To use with Node.js
40-
All systems require the following:
4146

42-
* [NodeJS](https://nodejs.org/) version 10+ (e.g., 10.13.0 LTS)
47+
All systems require the following:
4348

49+
- [NodeJS](https://nodejs.org/) version 10+ (e.g., 10.13.0 LTS)
4450

4551
## Install dependencies
52+
4653
`npm install` install all the dependencies listed within package.json
4754

4855
## Start Locally
56+
4957
`npm run start` starts a local development server on Port 3000 (http://localhost:3000)
5058

5159
## Build
60+
5261
`npm install` install all the dependencies listed within package.json
5362

5463
`npm build` builds the project for deployment
5564

56-
## Implemented Features in the ediTDor:
57-
* JSON editor with JSON Schema support for TD (autocompletion)
58-
* Add Property, Action, Event by wizard
59-
* Render TD to be more human readable
60-
* Validate JSON Syntax and JSON Schema for TD (JSONLD and Additional Validation for nested TMs will be implemented in the future)
65+
## Implemented Features in the ediTDor:
66+
67+
- JSON editor with JSON Schema support for TD (autocompletion)
68+
- Add Property, Action, Event by wizard
69+
- Render TD to be more human readable
70+
- Validate JSON Syntax and JSON Schema for TD (JSONLD and Additional Validation for nested TMs will be implemented in the future)

config-overrides.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
1+
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
22

33
module.exports = function override(config, env) {
4-
config.plugins.push(new MonacoWebpackPlugin({
5-
languages: ['json']
6-
}));
4+
config.plugins.push(
5+
new MonacoWebpackPlugin({
6+
languages: ["json"],
7+
})
8+
);
79
return config;
8-
}
10+
};

0 commit comments

Comments
 (0)