Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #51 from paritytech/w3f-deploy-1.0.9
Browse files Browse the repository at this point in the history
v1.0.9
  • Loading branch information
miabarbir authored Sep 14, 2023
2 parents 351ec06 + 3a5ac71 commit 919ef80
Show file tree
Hide file tree
Showing 631 changed files with 10,233 additions and 8,711 deletions.
3 changes: 0 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ VITE_DISCLAIMER_URL=https://polkadot.network/disclaimer/

# provid a legal disclaimer url in the network bar
VITE_LEGAL_DISCLOSURES_URL=https://polkadot.network/legal-disclosures/

# toggle i18n to be in debug mode. Not debug by default
# VITE_DEBUG_I18N=1
19 changes: 11 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"unused-imports"
],
"rules": {
// NOTE: These rules are being reviewed and comments justifying their deactivation will be
// added.
"react/require-default-props": "off",
"react/no-access-state-in-setstate": "off",
"react/destructuring-assignment": "off",
Expand All @@ -41,21 +43,22 @@
"react/static-property-placement": "off",
"no-unused-vars": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-continue": "off",
"no-underscore-dangle": "off",
"no-restricted-syntax": "off",
"@typescript-eslint/no-empty-function": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"import/prefer-default-export": "off",
"consistent-return": "off",
"no-promise-executor-return": "off",
"prefer-destructuring": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-nested-ternary": "off",
"no-shadow": "off",
// `continue` statements cut down on conditional nesting and improve readability where it is
// used in this project. Conditionals would further bloat the code.
"no-continue": "off",
// Unary operators are not impacting code as semi-colons are currently enforced.
"no-plusplus": "off",
// Default imports cause naming inconsistencies to imports when component names are changed.
"import/prefer-default-export": "off",

"unused-imports/no-unused-imports": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/auto-merge.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/stale.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .licenserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"**/*.{js, ts, tsx}": [
"// Copyright 2023 @paritytech/polkadot-staking-dashboard authors & contributors",
"// SPDX-License-Identifier: Apache-2.0"
"// SPDX-License-Identifier: GPL-3.0-only"
],
"ignore": ["testdata", "npm", "public/"]
"ignore": ["testdata", "npm", "public/", "Dockerfile"]
}
29 changes: 15 additions & 14 deletions .scripts/localeOrderKeys.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2023 @paritytech/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: GPL-3.0-only

const fs = require('fs');
const path = require('path');
Expand All @@ -16,26 +16,27 @@ for (const lng of languages) {
fs.readdir(pathToLanguage, (error, files) => {
if (error) return;

files.forEach((file) => {
files.forEach(async (file) => {
const pathToFile = path.join(pathToLanguage, file);
const json = JSON.parse(fs.readFileSync(pathToFile).toString());

// order json object alphabetically.
const orderedJson = orderJsonByKeys(json);

fs.writeFile(
pathToFile,
prettier.format(JSON.stringify(orderedJson), { parser: 'json' }),
(err) => {
if (err) {
console.err(err);
} else {
console.log(
`----------Keys In ${pathToLanguage}/${file} Are Ordered Alphabetically-------------`
);
}
// format json object.
const formatted = await prettier.format(JSON.stringify(orderedJson), {
parser: 'json',
});

fs.writeFile(pathToFile, formatted, (err) => {
if (err) {
console.err(err);
} else {
console.log(
`----------Keys In ${pathToLanguage}/${file} Are Ordered Alphabetically-------------`
);
}
);
});
});
});
}
2 changes: 1 addition & 1 deletion .scripts/localeValidate.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2023 @paritytech/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: GPL-3.0-only

const fs = require('fs');
const { join } = require('path');
Expand Down
2 changes: 1 addition & 1 deletion .scripts/utils.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2023 @paritytech/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: GPL-3.0-only

const fs = require('fs');
const { join } = require('path');
Expand Down
File renamed without changes.
Loading

0 comments on commit 919ef80

Please sign in to comment.