Skip to content

Commit

Permalink
docusaurus3 upgrade (#185)
Browse files Browse the repository at this point in the history
* docusaurus3 upgrade

* docusaurus3 upgrade
  • Loading branch information
joshuafernandes authored Nov 29, 2023
1 parent e783934 commit df9150b
Show file tree
Hide file tree
Showing 19 changed files with 12,903 additions and 15,672 deletions.
91 changes: 10 additions & 81 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,88 +1,17 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"plugin:react/recommended",
"airbnb-typescript",
"plugin:import/typescript",
// @NOTE: Make sure this is always the last element in the array.
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
project: ["./tsconfig.json"],
},
plugins: [
"react",
"react-hooks",
"jsx-a11y",
"import",
"prettier",
"@typescript-eslint",
"plugin:@docusaurus/recommended",
],
settings: {
react: {
pragma: "React", // Pragma to use, default to "React"
fragment: "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
version: "detect", // React version. "detect" automatically picks the version you have installed.
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
// default to latest and warns if missing
// It will default to "detect" in the future
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
typescript: {},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
project: ["./tsconfig.json"]
},
rules: {
"import/prefer-default-export": 0,
"react/prop-types": 0,
"import/no-unresolved": [
"error",
{ ignore: ["^@theme", "^@docusaurus", "^@site"] },
],
"no-nested-ternary": 0,
"no-console": 0,
"no-unused-vars": 0,
"no-use-before-define": 0,
"arrow-body-style": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"@typescript-eslint/no-unused-expressions": 0,
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/no-use-before-define": "warn",
"react/require-default-props": 0,
"react/jsx-props-no-spreading": 0,
"react/button-has-type": 0,
"jsx-a11y/label-has-associated-control": [
"error",
{
labelComponents: [],
labelAttributes: [],
controlComponents: [],
assert: "either",
depth: 2,
},
],
"@typescript-eslint/naming-convention": [
"error",
{
selector: "variableLike",
leadingUnderscore: "forbid",
trailingUnderscore: "forbid",
format: ["camelCase", "PascalCase", "UPPER_CASE"],
},
],
"import/extensions": 0,
'@docusaurus/no-untranslated-text': 0
},
};
};
28 changes: 0 additions & 28 deletions .github/workflows/case.yml

This file was deleted.

24 changes: 8 additions & 16 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
module.exports = {
extends: ["stylelint-config-standard", "stylelint-config-prettier"],
rules: {
"selector-pseudo-class-no-unknown": [
true,
{
// :global is a CSS modules feature to escape from class name hashing
ignorePseudoClasses: ["global"],
},
],
"extends": "stylelint-config-standard",
"rules": {
"selector-class-pattern": null,
"custom-property-empty-line-before": null,
"selector-id-pattern": null,
"declaration-empty-line-before": null,
"comment-empty-line-before": null,
"value-keyword-case": ["lower", { camelCaseSvgKeywords: true }],
},
};
"comment-empty-line-before" : null,
"media-feature-range-notation": null,
"selector-anb-no-unmatchable": null,
"declaration-block-no-duplicate-properties": null
}
}
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

38 changes: 22 additions & 16 deletions docs/HowTo/Configure/Database.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: Database configuration
sidebar_position: 8
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Database configuration

You can configure the [`jdbc`](../../Reference/SampleConfiguration.md#jdbc) item in the Tessera [configuration file](Tessera.md) to connect to an external database. You can specify any valid JDBC URL. Refer to your provider's details to construct a valid JDBC URL.
Expand Down Expand Up @@ -46,32 +49,35 @@ Jasypt encryption is currently only available for the `jdbc.password` field.
1. Download and unzip [Jasypt](https://github.com/jasypt/jasypt) and navigate to the `bin` directory.
1. Encrypt the password using the following command:

<!--tabs-->
<Tabs>

<TabItem value="Command" label="Command" default>

# Command
```bash
./encrypt.sh input=dbpassword password=quorum
```

```bash
./encrypt.sh input=dbpassword password=quorum
```
</TabItem>
<TabItem value="Output" label="Output">

# Output
```bash
----ENVIRONMENT-----------------

```bash
----ENVIRONMENT-----------------
Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.171-b11

Runtime: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.171-b11
----ARGUMENTS-------------------

----ARGUMENTS-------------------
input: dbpassword
password: quorum

input: dbpassword
password: quorum
----OUTPUT----------------------

----OUTPUT----------------------
rJ70hNidkrpkTwHoVn2sGSp3h3uBWxjb
```

rJ70hNidkrpkTwHoVn2sGSp3h3uBWxjb
```

<!--tabs-->
</TabItem>
</Tabs>

1. Place the wrapped output, `ENC(rJ70hNidkrpkTwHoVn2sGSp3h3uBWxjb)`, in the configuration JSON file.

Expand Down
13 changes: 9 additions & 4 deletions docs/HowTo/Configure/Keys/File-Based-Key-Pairs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: Configure file-based key pairs.
sidebar_position: 4
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# File-based key pairs

To configure Tessera to use file-based [key pairs](Overview.md), provide the location of the files in the [configuration file](../../../Reference/SampleConfiguration.md#keydata). You can use Tessera to [generate file-based keys].
Expand All @@ -28,9 +31,9 @@ The contents of the public key file must contain the public key only.

The contents of the private key file must contain the private key in the [inline key pair](Inline-Key-Pairs.md) format.

<!--tabs-->
<Tabs>

# Password protected
<TabItem value="Password protected" label="Password protected" default>

```json
{
Expand All @@ -50,6 +53,8 @@ The contents of the private key file must contain the private key in the [inline
```

# Unprotected
</TabItem>
<TabItem value="Unprotected" label="Unprotected" >

:::danger "Security warning"

Expand All @@ -65,8 +70,8 @@ Inline unprotected keys are not secure because the private key is exposed. Do no
}
}
```

<!--/tabs-->
</TabItem>
</Tabs>

Provide passwords using the following methods to ensure Tessera can decrypt and use the private keys.

Expand Down
Loading

1 comment on commit df9150b

@vercel
Copy link

@vercel vercel bot commented on df9150b Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.