Skip to content

Commit

Permalink
Import Aim UI v3.17.5
Browse files Browse the repository at this point in the history
  • Loading branch information
FastTrackML CI committed Dec 21, 2023
1 parent 2bf6b46 commit b02964c
Show file tree
Hide file tree
Showing 1,485 changed files with 177,587 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*]
end_of_line = lf
142 changes: 142 additions & 0 deletions src/.eslintrc
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"
]
}
27 changes: 27 additions & 0 deletions src/.gitignore
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
13 changes: 13 additions & 0 deletions src/.prettierrc
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"
}
10 changes: 10 additions & 0 deletions src/.storybook/main.js
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',
};
10 changes: 10 additions & 0 deletions src/.storybook/preview-body.html
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>
34 changes: 34 additions & 0 deletions src/.storybook/preview-head.html
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" />
9 changes: 9 additions & 0 deletions src/.storybook/preview.js
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$/,
},
},
};
1 change: 1 addition & 0 deletions src/aim_ui/VERSION
Empty file added src/aim_ui/__init__.py
Empty file.
1 change: 1 addition & 0 deletions src/aim_ui/build
56 changes: 56 additions & 0 deletions src/config-overrides.js
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;
},
};
Loading

0 comments on commit b02964c

Please sign in to comment.