Skip to content

Commit

Permalink
prettier: automated run
Browse files Browse the repository at this point in the history
Signed-off-by: Tharun T <[email protected]>
  • Loading branch information
dottharun committed Jul 19, 2024
1 parent 9d3c7f8 commit 82b8f26
Show file tree
Hide file tree
Showing 1,726 changed files with 59,237 additions and 49,390 deletions.
72 changes: 36 additions & 36 deletions .desktop-lighthouserc.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
module.exports = {
"ci": {
"collect": {
"settings": {
"preset": "desktop"
},
"staticDistDir": "./public",
"url": [
"http://localhost/404/index.html?desktop",
"http://localhost/?desktop",
"http://localhost/company/about/index.html?desktop",
"http://localhost/cloud-native-management/meshery/index.html?desktop",
"http://localhost/cloud-native-management/meshmap/index.html?desktop",
"http://localhost/learn/learning-paths/index.html?desktop",
"http://localhost/learn/service-mesh-books/index.html?desktop",
"http://localhost/learn/service-mesh-workshops/index.html?desktop",
"http://localhost/learn/index.html?desktop",
"http://localhost/blog/index.html?desktop",
"http://localhost/resources/index.html?desktop",
"http://localhost/careers/index.html?desktop",
"http://localhost/community/members/index.html?desktop",
"http://localhost/community/meshmates/index.html?desktop",
"http://localhost/community/events/index.html?desktop",
"http://localhost/community/newcomers/index.html?desktop",
],
ci: {
collect: {
settings: {
preset: 'desktop'
},
staticDistDir: './public',
url: [
'http://localhost/404/index.html?desktop',
'http://localhost/?desktop',
'http://localhost/company/about/index.html?desktop',
'http://localhost/cloud-native-management/meshery/index.html?desktop',
'http://localhost/cloud-native-management/meshmap/index.html?desktop',
'http://localhost/learn/learning-paths/index.html?desktop',
'http://localhost/learn/service-mesh-books/index.html?desktop',
'http://localhost/learn/service-mesh-workshops/index.html?desktop',
'http://localhost/learn/index.html?desktop',
'http://localhost/blog/index.html?desktop',
'http://localhost/resources/index.html?desktop',
'http://localhost/careers/index.html?desktop',
'http://localhost/community/members/index.html?desktop',
'http://localhost/community/meshmates/index.html?desktop',
'http://localhost/community/events/index.html?desktop',
'http://localhost/community/newcomers/index.html?desktop'
]
},
"assert": {
"assertions": {
"categories:performance": ["warn", {"minScore": .90}],
"categories:accessibility": ["warn", {"minScore": .90}],
"categories:best-practices": ["warn", {"minScore": .90}],
"categories:seo": ["warn", {"minScore": .90}],
}
},
"upload": {
"target": "temporary-public-storage",
},
assert: {
assertions: {
'categories:performance': ['warn', { minScore: 0.9 }],
'categories:accessibility': ['warn', { minScore: 0.9 }],
'categories:best-practices': ['warn', { minScore: 0.9 }],
'categories:seo': ['warn', { minScore: 0.9 }]
}
};
},
upload: {
target: 'temporary-public-storage'
}
}
};
14 changes: 7 additions & 7 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## How to use vscode-dev-containers as the development environment

* Install the VScode plugins Remote-Containers
* Open current folder in container
* The detail please check the [document](https://code.visualstudio.com/docs/remote/containers#_quick-start-open-an-existing-folder-in-a-container)
* Waiting for load the code into the environment
* Make sure you already in the development container `Dev Container:Node.js`
* Open the new terminal and run the command which in Makefile
* According to the Remote-Containers extension tips open the browser to access the website
- Install the VScode plugins Remote-Containers
- Open current folder in container
- The detail please check the [document](https://code.visualstudio.com/docs/remote/containers#_quick-start-open-an-existing-folder-in-a-container)
- Waiting for load the code into the environment
- Make sure you already in the development container `Dev Container:Node.js`
- Open the new terminal and run the command which in Makefile
- According to the Remote-Containers extension tips open the browser to access the website

![](./vscode-dev-container.webp)
38 changes: 18 additions & 20 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 10, 12, 14, 18
"args": { "VARIANT": "18" }
},
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 10, 12, 14, 18
"args": { "VARIANT": "18" }
},

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint"
],
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["dbaeumer.vscode-eslint"],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}
119 changes: 53 additions & 66 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,65 +1,59 @@
module.exports = {

"env": {
"browser": true,
"es6": true,
"node": true,
"amd": true
env: {
browser: true,
es6: true,
node: true,
amd: true
},
"settings": {
"react": {
"version": "detect"
settings: {
react: {
version: 'detect'
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
extends: ['eslint:recommended', 'plugin:react/recommended'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
jsx: true
},
"ecmaVersion": 2018,
"sourceType": "module"
ecmaVersion: 2018,
sourceType: 'module'
},
"plugins": [
"react"
],
"rules": {
"array-bracket-spacing": ["error", "never"],
"comma-style": ["error"],
"arrow-spacing": [
"error",
plugins: ['react'],
rules: {
'array-bracket-spacing': ['error', 'never'],
'comma-style': ['error'],
'arrow-spacing': [
'error',
{
"after": true,
"before": true
after: true,
before: true
}
],
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": [
"error",
"1tbs"
'block-scoped-var': 'error',
'block-spacing': 'error',
'brace-style': ['error', '1tbs'],
'jsx-quotes': ['error', 'prefer-double'],
'keyword-spacing': 'error',
'key-spacing': [
'error',
{
beforeColon: false,
afterColon: true
}
],
"jsx-quotes": ["error", "prefer-double"],
"keyword-spacing": "error",
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true,
}],
"no-unused-vars": [
"warn",
'no-unused-vars': [
'warn',
{
"varsIgnorePattern": "React"
varsIgnorePattern: 'React'
}
],
"no-trailing-spaces": "error",
"object-curly-spacing": ["error", "always"],
"react/display-name": 0,
"react/prop-types": 0,
"react/no-unescaped-entities": [0],
"react/jsx-no-duplicate-props": [0],
'no-trailing-spaces': 'error',
'object-curly-spacing': ['error', 'always'],
'react/display-name': 0,
'react/prop-types': 0,
'react/no-unescaped-entities': [0],
'react/jsx-no-duplicate-props': [0],
// "indent": [
// "error", 2, {
// "FunctionExpression": { "parameters": "first" },
Expand All @@ -71,28 +65,21 @@ module.exports = {
// ignoredNodes: ["TemplateLiteral"]
// }
// ],
"linebreak-style": [
"error",
"unix"
],
'linebreak-style': ['error', 'unix'],
// "quotes": [
// "error",
// "double"
// ],
"semi": [
"error",
"always"
],
"strict": 0,
"valid-typeof": 0,
"space-unary-ops": [
1, {
"words": true,
"nonwords": false
semi: ['error', 'always'],
strict: 0,
'valid-typeof': 0,
'space-unary-ops': [
1,
{
words: true,
nonwords: false
}
],
"space-infix-ops": [
"error"
]
'space-infix-ops': ['error']
}
};
10 changes: 7 additions & 3 deletions .github/ISSUE_TEMPLATE/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@ title: '[Blog]'
labels: 'area/blog, help wanted, framework/gatsby, language/markdown'
assignees: ''
---

Contributors and community members are encouraged to post on https://layer5.io/blog. A new blog post fitting the following description is requested to be written by a community member:

**Desired Title:**
**Topic:**
**Core points to convey in the post:**
**Desired Title:**
**Topic:**
**Core points to convey in the post:**

1.
1.
1.

---

<img src="https://raw.githubusercontent.com/layer5io/layer5/master/.github/assets/images/layer5/5-light-small.svg" width="16px" align="left" /><h3>Contributor Resources</h3>

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the [`master` branch](https://github.com/layer5io/layer5/tree/master).

- See [contributing instructions](https://github.com/layer5io/layer5/blob/master/CONTRIBUTING.md)
- See Layer5 site designs in this [Figma project](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs).
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,30 @@ title: ''
labels: 'kind/bug'
assignees: ''
---

### Description

<!-- A brief description with a link to the page on the site where you found the issue. -->

### Expected Behavior

<!-- A brief description of what you expected to happen. -->

### Screenshots

<!-- Add screenshots, if applicable, to help explain your problem. -->

### Environment:

- Host OS:
- Browser:

---

<img src="https://raw.githubusercontent.com/layer5io/layer5/master/.github/assets/images/layer5/5-light-small.svg" width="24px" align="left" /><h2>Contributor Resources and <a href="https://layer5.io/community/handbook">Handbook</a></h2>

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the [`master` branch](https://github.com/layer5io/layer5/tree/master).

- πŸ“š See [contributing instructions](https://github.com/layer5io/layer5/blob/master/CONTRIBUTING.md).
- 🎨 Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)
- πŸ™‹πŸΎπŸ™‹πŸΌ Questions: [Discussion Forum](https://discuss.layer5.io) and [Community Slack](https://slack.layer5.io).
Expand Down
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/chore_task.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ title: ''
labels: 'kind/chore'
assignees: ''
---

### Current Behavior

<!-- A brief description of what the current circumstance is. -->

### Desired Situation

<!-- A brief description of the necessary action to take. -->

---

<img src="https://raw.githubusercontent.com/layer5io/layer5/master/.github/assets/images/layer5/5-light-small.svg" width="24px" align="left" /><h2>Contributor Resources and <a href="https://layer5.io/community/handbook">Handbook</a></h2>

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the [`master` branch](https://github.com/layer5io/layer5/tree/master).

- πŸ“š See [contributing instructions](https://github.com/layer5io/layer5/blob/master/CONTRIBUTING.md).
- 🎨 Wireframes and [designs for Layer5 site](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs) in Figma [(open invite)](https://www.figma.com/team_invite/redeem/qJy1c95qirjgWQODApilR9)

Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/community_member_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ A detailed explanation on how to set up a community member profile can be found
**Contributor Resources**

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the [`master` branch](https://github.com/layer5io/layer5/tree/master).

- See [contributing instructions](https://github.com/layer5io/layer5/blob/master/CONTRIBUTING.md)
- See Layer5 site designs in this [Figma project](https://www.figma.com/file/5ZwEkSJwUPitURD59YHMEN/Layer5-Designs). Join the [Layer5 Community](https://slack.layer5.io) for access.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: πŸ™‹πŸΎ πŸ™‹πŸΌβ€ Question
url: https://github.com/layer5io/layer5/discussions/new
about: Submit your question using GitHub Discussions.
- name: πŸ™‹πŸΎ πŸ™‹πŸΌβ€ Question
url: https://github.com/layer5io/layer5/discussions/new
about: Submit your question using GitHub Discussions.
Loading

0 comments on commit 82b8f26

Please sign in to comment.