Skip to content

Commit a346797

Browse files
authored
Merge pull request #319 from Luos-io/miscellaneous-base-changes
Update dependencies and clean some old code
2 parents 5500706 + 655af31 commit a346797

File tree

15 files changed

+1458
-2958
lines changed

15 files changed

+1458
-2958
lines changed

.env.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DOTENV_PROJECT=prj_458f2fc87670af2bcb6b3c024dee40b832c3450447f9f502afefccfad4adfdd7

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/** @type {import('eslint').Linter.Config} */
2+
module.exports = {
3+
root: true,
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'plugin:mdx/recommended',
10+
'prettier',
11+
],
12+
settings: {
13+
'mdx/code-blocks': true,
14+
'mdx/language-mapper': {},
15+
},
16+
};

.github/workflows/build.yml

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

.github/workflows/deploy.yml

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

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
# Misc
1212
.act
1313
.DS_Store
14-
.env
15-
.env.development
16-
.env.test
17-
.env.production
14+
.env*
15+
!.env.example
16+
!.env.project
1817
.vercel
1918

2019
npm-debug.log*

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["dbaeumer.vscode-eslint", "github.copilot", "esbenp.prettier-vscode"]
3+
}

docusaurus.config.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
44
/** @type {import('@docusaurus/types').DocusaurusConfig} */
55
module.exports = {
66
title: 'Luos',
7-
tagline: 'Luos makes it easy to develop and scale your edge and embedded distributed software. It is open source.',
7+
tagline:
8+
'Luos makes it easy to develop and scale your edge and embedded distributed software. It is open source.',
89
url: 'https://www.luos.io',
910
baseUrl: '/',
1011
onBrokenLinks: 'throw',
@@ -23,15 +24,20 @@ module.exports = {
2324
microservices_def:
2425
'Microservices are a software development technique that arranges an application as a collection of loosely coupled services.',
2526
robus_def: 'Bus communication protocol used by Luos.',
26-
luoshal_def:
27-
'Hardware Abstraction Layer used to fit Luos with various hardware designs.',
27+
luoshal_def: 'Hardware Abstraction Layer used to fit Luos with various hardware designs.',
2828
last_version_pyluos: '2.0.0',
2929
last_version_luos: ' 2.0.1',
3030
gh_path: 'github.com/Luos-io/doc/tree/master/src',
3131
},
3232

3333
themeConfig: {
34-
metadata: [{name: 'description', content: 'Luos makes it easy to develop and scale your edge and embedded distributed software. It is open source.'}],
34+
metadata: [
35+
{
36+
name: 'description',
37+
content:
38+
'Luos makes it easy to develop and scale your edge and embedded distributed software. It is open source.',
39+
},
40+
],
3541
image: 'img/thumbnail-luos.png',
3642
colorMode: {
3743
respectPrefersColorScheme: true,
@@ -198,8 +204,7 @@ module.exports = {
198204
blog: {
199205
//sidebarPath: require.resolve('./sidebarsBlog.js'),
200206
blogTitle: 'Luos Blog',
201-
blogDescription:
202-
'A blog about microservices and CI/CD in Edge and Embedded systems',
207+
blogDescription: 'A blog about microservices and CI/CD in Edge and Embedded systems',
203208
postsPerPage: 'ALL',
204209
blogSidebarTitle: 'All posts',
205210
blogSidebarCount: 'ALL',
@@ -216,13 +221,6 @@ module.exports = {
216221
],
217222

218223
plugins: [
219-
[
220-
'docusaurus2-dotenv',
221-
{
222-
systemvars: true, // Set to true if you would rather load all system variables as well (useful for CI purposes)
223-
safe: true,
224-
},
225-
],
226224
[
227225
'@docusaurus/plugin-content-docs',
228226
{
@@ -254,6 +252,7 @@ module.exports = {
254252
fromExtensions: ['html'],
255253
},
256254
],
255+
['./plugins/dotenv', {}],
257256
['./plugins/hotjar', {}],
258257
],
259258
};

feedbacks/send.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Send us your comment
33
hide_table_of_contents: true
44
---
55

6-
import ContactUs from "@site/src/components/Feedback.js";
7-
8-
#
6+
import ContactUs from '@site/src/components/Feedback.js';
97

108
<ContactUs />

package.json

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,49 +13,46 @@
1313
"write-translations": "docusaurus write-translations",
1414
"write-heading-ids": "docusaurus write-heading-ids"
1515
},
16+
"browserslist": {
17+
"production": [
18+
">0.5%",
19+
"not dead",
20+
"not op_mini all"
21+
],
22+
"development": [
23+
"last 1 chrome version",
24+
"last 1 firefox version",
25+
"last 1 safari version"
26+
]
27+
},
1628
"dependencies": {
17-
"@docusaurus/core": "^2.0.0-beta.18",
18-
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.18",
19-
"@docusaurus/plugin-google-analytics": "^2.0.0-beta.18",
20-
"@docusaurus/preset-classic": "^2.0.0-beta.18",
29+
"@docusaurus/core": "^2.0.0-beta.21",
30+
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.21",
31+
"@docusaurus/plugin-google-analytics": "^2.0.0-beta.21",
32+
"@docusaurus/preset-classic": "^2.0.0-beta.21",
33+
"@emailjs/browser": "^3.2.0",
2134
"@emotion/react": "^11.9.0",
2235
"@emotion/styled": "^11.8.1",
2336
"@mdx-js/react": "^1.6.22",
2437
"@mui/icons-material": "^5.8.0",
2538
"@mui/material": "^5.8.1",
2639
"@svgr/webpack": "^6.2.1",
2740
"clsx": "^1.1.1",
28-
"docusaurus-gtm-plugin": "^0.0.2",
29-
"docusaurus2-dotenv": "^1.4.0",
30-
"emailjs-com": "^3.2.0",
31-
"file-loader": "^6.2.0",
3241
"prism-react-renderer": "^1.3.3",
3342
"react": "^17.0.2",
3443
"react-dom": "^17.0.2",
3544
"react-github-btn": "^1.3.0",
3645
"react-image-lightbox": "^5.1.4",
37-
"react-material-ui-carousel": "^3.3.3",
38-
"react-typewriter-effect": "^1.1.0",
39-
"url-loader": "^4.1.1"
40-
},
41-
"browserslist": {
42-
"production": [
43-
">0.5%",
44-
"not dead",
45-
"not op_mini all"
46-
],
47-
"development": [
48-
"last 1 chrome version",
49-
"last 1 firefox version",
50-
"last 1 safari version"
51-
]
46+
"react-material-ui-carousel": "^3.3.3"
5247
},
5348
"devDependencies": {
54-
"@docusaurus/module-type-aliases": "^2.0.0-beta.18",
49+
"@docusaurus/module-type-aliases": "^2.0.0-beta.21",
5550
"@tsconfig/docusaurus": "^1.0.5",
5651
"@types/react": "^17.0.45",
5752
"@types/react-helmet": "^6.1.5",
5853
"@types/react-router-dom": "^5.3.1",
54+
"dotenv-vault": "^1.1.0",
55+
"dotenv-webpack": "^7.1.0",
5956
"typescript": "^4.7.2",
6057
"vercel": "^24.2.4"
6158
}

plugins/dotenv/index.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const Dotenv = require('dotenv-webpack');
2+
3+
/** @type {Dotenv.Options} */
4+
const DEFAULT_OPTIONS = {
5+
path: './.env', // The path to your environment variables.
6+
safe: false, // If false ignore safe-mode, if true load './.env.example', if a string load that file as the sample
7+
systemvars: false, // Set to true if you would rather load all system variables as well (useful for CI purposes)
8+
silent: false, // If true, all warnings will be suppressed
9+
expand: false, // Allows your variables to be "expanded" for reusability within your .env file
10+
defaults: false, // Adds support for dotenv-defaults. If set to true, uses ./.env.defaults
11+
};
12+
13+
/** @type {import('@docusaurus/types').Plugin} */
14+
module.exports = (_context, opts) => ({
15+
name: 'dotenv',
16+
configureWebpack() {
17+
return {
18+
plugins: [new Dotenv({ ...DEFAULT_OPTIONS, ...opts })],
19+
module: {
20+
rules: [],
21+
},
22+
};
23+
},
24+
});

0 commit comments

Comments
 (0)