Skip to content

Commit e5ef2f3

Browse files
refactor: add eslint and update sources, add license header
1 parent 588e163 commit e5ef2f3

19 files changed

+2512
-399
lines changed

.eslintrc.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"parserOptions": {
7+
"ecmaVersion": 2020,
8+
"sourceType": "module"
9+
},
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:react/recommended"
13+
],
14+
"settings": {
15+
"react": {
16+
"version": "detect"
17+
}
18+
},
19+
"globals": {
20+
"module": true,
21+
"require": true
22+
},
23+
"ignorePatterns" : [
24+
"bootstrap.js",
25+
"**/build/*",
26+
"static/demo"
27+
],
28+
"rules": {
29+
"key-spacing" : ["error", {"mode" : "strict"}],
30+
"indent": ["error"],
31+
"linebreak-style": ["error", "unix"],
32+
"quotes": ["error", "double"],
33+
"semi": ["error", "always"],
34+
"comma-dangle": ["error", "never"],
35+
"no-multiple-empty-lines": ["error", {"max": 2}],
36+
"space-before-function-paren": ["error", "always"],
37+
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false}],
38+
"no-debugger": ["off"],
39+
"no-console": ["error", { "allow": ["warn", "error"] }],
40+
"no-lonely-if": ["error"],
41+
"eqeqeq": "warn",
42+
"react/prop-types": ["off"]
43+
}
44+
}
45+

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ Welcome to the repo for the conjoon-website. This is the source for https://conj
55
conjoon deeply appreciates contributions from the community. Feel free to file issue reports and feature/pull requests.
66

77

8-
## Website
9-
108
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
119

1210
### Installation

babel.config.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/**
2+
* conjoon
3+
* conjoon.github.io
4+
* Copyright (C) 2022 Thorsten Suckow-Homberg https://github.com/conjoon/conjoon.github.io
5+
*
6+
* Permission is hereby granted, free of charge, to any person
7+
* obtaining a copy of this software and associated documentation
8+
* files (the "Software"), to deal in the Software without restriction,
9+
* including without limitation the rights to use, copy, modify, merge,
10+
* publish, distribute, sublicense, and/or sell copies of the Software,
11+
* and to permit persons to whom the Software is furnished to do so,
12+
* subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included
15+
* in all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
23+
* USE OR OTHER DEALINGS IN THE SOFTWARE.
24+
*/
25+
126
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
27+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")]
328
};

docusaurus.config.js

Lines changed: 153 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,145 +1,169 @@
1+
/**
2+
* conjoon
3+
* conjoon.github.io
4+
* Copyright (C) 2022 Thorsten Suckow-Homberg https://github.com/conjoon/conjoon.github.io
5+
*
6+
* Permission is hereby granted, free of charge, to any person
7+
* obtaining a copy of this software and associated documentation
8+
* files (the "Software"), to deal in the Software without restriction,
9+
* including without limitation the rights to use, copy, modify, merge,
10+
* publish, distribute, sublicense, and/or sell copies of the Software,
11+
* and to permit persons to whom the Software is furnished to do so,
12+
* subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included
15+
* in all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
23+
* USE OR OTHER DEALINGS IN THE SOFTWARE.
24+
*/
25+
126
// @ts-check
227
// Note: type annotations allow type checking and IDEs autocompletion
328

4-
const lightCodeTheme = require('prism-react-renderer/themes/github');
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
29+
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
630

731
/** @type {import('@docusaurus/types').Config} */
832
const config = {
9-
title: 'conjoon',
10-
tagline: 'webmail made easy',
11-
url: 'https://conjoon.org',
12-
baseUrl: '/',
13-
onBrokenLinks: 'throw',
14-
onBrokenMarkdownLinks: 'warn',
15-
favicon: 'img/favicon.ico',
16-
organizationName: 'conjoon', // Usually your GitHub org/user name.
17-
projectName: 'conjoon', // Usually your repo name.
33+
title: "conjoon",
34+
tagline: "webmail made easy",
35+
url: "https://conjoon.org",
36+
baseUrl: "/",
37+
onBrokenLinks: "throw",
38+
onBrokenMarkdownLinks: "warn",
39+
favicon: "img/favicon.ico",
40+
organizationName: "conjoon", // Usually your GitHub org/user name.
41+
projectName: "conjoon", // Usually your repo name.
1842

19-
presets: [
20-
[
21-
'classic',
22-
/** @type {import('@docusaurus/preset-classic').Options} */
23-
({
24-
docs: {
25-
sidebarPath: require.resolve('./sidebars.js'),
26-
// Please change this to your repo.
27-
editUrl: 'https://github.com/conjoon/conjoon/',
28-
},
29-
blog: {
30-
showReadingTime: true,
31-
// Please change this to your repo.
32-
editUrl:
33-
'https://github.com/conjoon/conjoon/',
34-
},
35-
theme: {
36-
customCss: require.resolve('./src/css/custom.css'),
37-
},
38-
}),
43+
presets: [
44+
[
45+
"classic",
46+
/** @type {import('@docusaurus/preset-classic').Options} */
47+
({
48+
docs: {
49+
sidebarPath: require.resolve("./sidebars.js"),
50+
// Please change this to your repo.
51+
editUrl: "https://github.com/conjoon/conjoon/"
52+
},
53+
blog: {
54+
showReadingTime: true,
55+
// Please change this to your repo.
56+
editUrl:
57+
"https://github.com/conjoon/conjoon/"
58+
},
59+
theme: {
60+
customCss: require.resolve("./src/css/custom.css")
61+
}
62+
})
63+
]
3964
],
40-
],
4165

42-
themeConfig:
66+
themeConfig:
4367
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
4468
({
45-
navbar: {
46-
title: 'conjoon',
47-
logo: {
48-
alt: 'conjoon',
49-
src: 'img/logos/conjoon.svg',
50-
},
51-
items: [
52-
{
53-
type: 'doc',
54-
docId: 'intro',
55-
position: 'left',
56-
label: 'Installation',
57-
},
58-
{to: 'demo/index.html', target: "_blank", label: 'Demo', position: 'left'},
59-
{
60-
href: 'https://github.com/conjoon',
61-
className: 'header-github-link',
62-
position: "right",
63-
"aria-label": "GitHub repository"
64-
},
65-
{
66-
href: 'https://conjoon.stoplight.io/docs/rest-api-email',
67-
className: 'header-stoplight-link',
68-
position: "right",
69-
"aria-label": "REST API docs"
70-
}
71-
],
72-
},
73-
footer: {
74-
style: 'dark',
75-
links: [
76-
{
77-
title: 'Docs',
78-
items: [
79-
{
80-
label: 'Installation',
81-
to: 'docs/intro',
82-
},
83-
],
84-
},
85-
{
86-
title: 'Resources',
69+
navbar: {
70+
title: "conjoon",
71+
logo: {
72+
alt: "conjoon",
73+
src: "img/logos/conjoon.svg"
74+
},
8775
items: [
88-
{
89-
label: 'GitHub',
90-
href: 'https://github.com/facebook/docusaurus',
91-
},
92-
{
93-
label: 'REST API',
94-
href: 'https://conjoon.stoplight.io/docs/rest-api-email',
95-
}
96-
],
97-
},
98-
{
99-
title: "Support",
100-
items: [{
101-
label: 'Contact',
102-
target: "_blank",
103-
href: 'https://github.com/ThorstenSuckow',
104-
}, {
105-
label: 'Professional Support',
106-
href: 'https://eyeworkers.de',
107-
},
108-
]
109-
},
110-
{
111-
title: 'More',
112-
items: [
113-
{
114-
label: 'Demo',
115-
target: "_blank",
116-
href: 'demo/index.html',
117-
},
118-
{
119-
label: 'Twitter',
120-
href: 'https://twitter.com/conjoon',
121-
},
76+
{
77+
type: "doc",
78+
docId: "intro",
79+
position: "left",
80+
label: "Installation"
81+
},
82+
{to: "demo/index.html", target: "_blank", label: "Demo", position: "left"},
83+
{
84+
href: "https://github.com/conjoon",
85+
className: "header-github-link",
86+
position: "right",
87+
"aria-label": "GitHub repository"
88+
},
89+
{
90+
href: "https://conjoon.stoplight.io/docs/rest-api-email",
91+
className: "header-stoplight-link",
92+
position: "right",
93+
"aria-label": "REST API docs"
94+
}
95+
]
96+
},
97+
footer: {
98+
style: "dark",
99+
links: [
100+
{
101+
title: "Docs",
102+
items: [
103+
{
104+
label: "Installation",
105+
to: "docs/intro"
106+
}
107+
]
108+
},
109+
{
110+
title: "Resources",
111+
items: [
112+
{
113+
label: "GitHub",
114+
href: "https://github.com/facebook/docusaurus"
115+
},
116+
{
117+
label: "REST API",
118+
href: "https://conjoon.stoplight.io/docs/rest-api-email"
119+
}
120+
]
121+
},
122+
{
123+
title: "Support",
124+
items: [{
125+
label: "Contact",
126+
target: "_blank",
127+
href: "https://github.com/ThorstenSuckow"
128+
}, {
129+
label: "Professional Support",
130+
href: "https://eyeworkers.de"
131+
}
132+
]
133+
},
134+
{
135+
title: "More",
136+
items: [
137+
{
138+
label: "Demo",
139+
target: "_blank",
140+
href: "demo/index.html"
141+
},
142+
{
143+
label: "Twitter",
144+
href: "https://twitter.com/conjoon"
145+
}
146+
]
147+
}
122148
],
123-
},
124-
],
125-
copyright: `Copyright © 2007-${new Date().getFullYear()} conjoon Open Source project. This website is proudly built with <a href="https://docusaurus.io">Docusaurus</a>.`,
126-
},
127-
prism: {
128-
theme: darkCodeTheme
129-
},
130-
colorMode: {
131-
defaultMode: 'dark',
132-
disableSwitch: true,
133-
respectPrefersColorScheme: false
134-
},
135-
announcementBar: {
136-
id: 'support_us',
137-
content: "⭐️If you like conjoon, give it a star on <a target=\"_blank\" href=\"https://github.com/conjoon/conjoon/\">GitHub</a> and follow us on <a target=\"_blank\" href=\"https://twitter.com/conjoon\">Twitter <img src=\"/img/logos/twitter.svg\" /></a>",
138-
backgroundColor: '#a2ff00',
139-
textColor: '#000000',
140-
isCloseable: true
141-
}
142-
}),
149+
copyright: `Copyright © 2007-${new Date().getFullYear()} conjoon Open Source project. This website is proudly built with <a href="https://docusaurus.io">Docusaurus</a>.`
150+
},
151+
prism: {
152+
theme: darkCodeTheme
153+
},
154+
colorMode: {
155+
defaultMode: "dark",
156+
disableSwitch: true,
157+
respectPrefersColorScheme: false
158+
},
159+
announcementBar: {
160+
id: "support_us",
161+
content: "⭐️If you like conjoon, give it a star on <a target=\"_blank\" href=\"https://github.com/conjoon/conjoon/\">GitHub</a> and follow us on <a target=\"_blank\" href=\"https://twitter.com/conjoon\">Twitter <img src=\"/img/logos/twitter.svg\" /></a>",
162+
backgroundColor: "#a2ff00",
163+
textColor: "#000000",
164+
isCloseable: true
165+
}
166+
})
143167
};
144168

145169
module.exports = config;

0 commit comments

Comments
 (0)