-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FastTrackML CI
committed
Dec 21, 2023
1 parent
2bf6b46
commit b02964c
Showing
1,485 changed files
with
177,587 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[*] | ||
end_of_line = lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"extends": [ | ||
"react-app", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:prettier/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"react/no-unescaped-entities": 0, | ||
"no-console": "warn", | ||
"quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"avoidEscape": true | ||
} | ||
], | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"react/react-in-jsx-scope": "off", | ||
"react/display-name": "off", | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index", | ||
"unknown" | ||
], | ||
"pathGroups": [ | ||
{ | ||
"pattern": "*.+(css|sass|less|scss|pcss|styl)", | ||
"group": "unknown", | ||
"patternOptions": { | ||
"matchBase": true | ||
}, | ||
"position": "after" | ||
}, | ||
{ | ||
"pattern": "*", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "@+/**", | ||
"group": "external", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "assets/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "components/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "config/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "fonts/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "hooks/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "modules/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "pages/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "routes/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "services/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "styles/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "tests/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "types/**", | ||
"group": "parent", | ||
"position": "before" | ||
}, | ||
{ | ||
"pattern": "utils/**", | ||
"group": "parent", | ||
"position": "before" | ||
} | ||
], | ||
"pathGroupsExcludedImportTypes": [], | ||
"warnOnUnassignedImports": true, | ||
"newlines-between": "always" | ||
} | ||
] | ||
}, | ||
"plugins": [ | ||
"react", | ||
"prettier", | ||
"react-hooks", | ||
"@typescript-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
/public/vs | ||
|
||
# testing | ||
/coverage | ||
.vscode | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
Desktop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"jsxSingleQuote": true, | ||
"quoteProps": "as-needed", | ||
"trailingComma": "all", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'@storybook/preset-create-react-app', | ||
], | ||
framework: '@storybook/react', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<style> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
html { | ||
font-family: 'Inter', sans-serif; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<link | ||
rel="preload" | ||
as="font" | ||
href="%PUBLIC_URL%/assets/inter/fonts/Inter.ttf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
as="font" | ||
href="%PUBLIC_URL%/assets/inconsolata/fonts/Inconsolata.ttf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
as="font" | ||
href="%PUBLIC_URL%/assets/icomoon/fonts/icomoon.eot" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
as="font" | ||
href="%PUBLIC_URL%/assets/icomoon/fonts/icomoon.ttf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
as="font" | ||
href="%PUBLIC_URL%/assets/icomoon/fonts/icomoon.woff" | ||
crossorigin | ||
/> | ||
|
||
<link rel="stylesheet" href="%PUBLIC_URL%/assets/icomoon/icomoonIcons.css" /> | ||
<link rel="stylesheet" href="%PUBLIC_URL%/assets/inter/inter.css" /> | ||
<link rel="stylesheet" href="%PUBLIC_URL%/assets/inconsolata/inconsolata.css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const parameters = { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../VERSION |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
const webpack = require('webpack'); | ||
const WebpackDynamicPublicPathPlugin = require('webpack-dynamic-public-path'); | ||
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | ||
|
||
module.exports = { | ||
webpack: function (config, webpackEnv) { | ||
const isEnvProduction = webpackEnv === 'production'; | ||
|
||
// Optimization Overrides | ||
config.optimization.splitChunks = { | ||
cacheGroups: { | ||
default: false, | ||
}, | ||
}; | ||
config.optimization.runtimeChunk = true; | ||
|
||
// Output Overrides. | ||
if (isEnvProduction) { | ||
// JS static filenames overrides. | ||
config.output.filename = 'static/js/[name].js?version=[contenthash]'; | ||
config.output.chunkFilename = 'static/js/[name].js?version=[contenthash]'; | ||
} | ||
|
||
// Plugins Overrides. | ||
if (isEnvProduction) { | ||
// CSS static filenames overrides. | ||
config.plugins.forEach((plugin, index) => { | ||
if (plugin instanceof MiniCssExtractPlugin) { | ||
// remove the existing MiniCssExtractPlugin and add new one | ||
config.plugins.splice( | ||
index, | ||
1, | ||
new MiniCssExtractPlugin({ | ||
filename: 'static/css/[name].css?version=[contenthash]', | ||
chunkFilename: 'static/css/[name].css?version=[contenthash]', | ||
}), | ||
); | ||
} | ||
}); | ||
} | ||
|
||
// Add external variable for base path support. | ||
config.plugins.push( | ||
new WebpackDynamicPublicPathPlugin({ | ||
externalPublicPath: 'window.externalPublicPath', | ||
}), | ||
); | ||
|
||
config.plugins.push( | ||
new webpack.DefinePlugin({ | ||
__DEV__: !isEnvProduction, | ||
}), | ||
); | ||
return config; | ||
}, | ||
}; |
Oops, something went wrong.