-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(auth): fix sending username and password as encoded uri * fix(login): clean codes to match eslint recommendations * fix(panel-home): go to setup on not initialized * fix(top-five-checks-card): fix ui * fix(panel-setup-cloud): fix ui * fix(dark-mode-switch): fix ui * fix(event-button): clear codes to match eslint recommendations * fix(layout): cleanup codes to match with eslint * fix(shared): cleanup code to match with eslint reccomendations * fix(utils): cleanup codes to match eslint reccomendation * chore(vite): replace react-scripts (cra) with vite * fix(vite-config): remove unnecessary proxy uri for ws * fix(vite-config): remove unnecessary ws fro m proxy * fix(vite-config): fix build to suppor public_url * fix(publish): fix env config names changes * fix(packages-json): add engines and browserslist in packages.json * feat(scripts): add storybook and https preview scripts
- Loading branch information
Showing
47 changed files
with
1,656 additions
and
6,985 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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
REACT_APP_SERVER=https://app.dev-eu.fixcloud.io | ||
REACT_APP_WS_SERVER=wss://app.dev-eu.fixcloud.io | ||
REACT_APP_USE_PROXY=true | ||
REACT_APP_NETWORK_RETRY_COUNT=5 | ||
REACT_APP_WEBSOCKET_RETRY_TIMEOUT=5000 | ||
GENERATE_SOURCEMAP=false | ||
VITE_SERVER=https://app.dev-eu.fixcloud.io | ||
VITE_WS_SERVER=wss://app.dev-eu.fixcloud.io | ||
VITE_USE_PROXY=true | ||
VITE_NETWORK_RETRY_COUNT=5 | ||
VITE_WEBSOCKET_RETRY_TIMEOUT=5000 | ||
HOST=127.0.0.1 | ||
PORT=3000 | ||
# NOTE: THIS IS DANGEROUS! | ||
# It exposes your machine to attacks from the websites you visit. | ||
# Do NOT put this in the production | ||
DANGEROUSLY_DISABLE_HOST_CHECK=true |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
!.storybook | ||
public/*.min.js | ||
public/*.min.js | ||
src/locales/**/messages.po |
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,31 @@ | ||
module.exports = { | ||
root: true, | ||
env: { browser: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:storybook/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['prettier', '@typescript-eslint', 'react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], | ||
'prettier/prettier': ['warn'], | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
}, | ||
], | ||
'no-console': [ | ||
'warn', | ||
{ | ||
allow: ['warn', 'error', 'info'], | ||
}, | ||
], | ||
}, | ||
} |
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 |
---|---|---|
|
@@ -14,13 +14,13 @@ jobs: | |
|
||
- name: Create .env file | ||
run: | | ||
echo "REACT_APP_NETWORK_RETRY_COUNT=5" > .env | ||
echo "REACT_APP_WEBSOCKET_RETRY_TIMEOUT=5000" >> .env | ||
echo "VITE_NETWORK_RETRY_COUNT=5" > .env | ||
echo "VITE_WEBSOCKET_RETRY_TIMEOUT=5000" >> .env | ||
- name: Create a production build | ||
uses: devcontainers/[email protected] | ||
with: | ||
runCmd: PUBLIC_URL=https://cdn.some.engineering/fix-ui/${{ github.sha }} yarn build | ||
runCmd: PUBLIC_URL=https://cdn.some.engineering/fix-ui/${{ github.sha }}/ yarn build | ||
|
||
- name: Move build to target | ||
run: | | ||
|
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
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 |
---|---|---|
@@ -1,21 +1,17 @@ | ||
import type { StorybookConfig } from '@storybook/react-webpack5' | ||
import type { StorybookConfig } from '@storybook/react-vite' | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/preset-create-react-app', | ||
'@storybook/addon-onboarding', | ||
'@storybook/addon-interactions', | ||
], | ||
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-onboarding', '@storybook/addon-interactions'], | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: 'tag', | ||
}, | ||
staticDirs: ['..\\public'], | ||
core: { | ||
disableTelemetry: true, | ||
}, | ||
} | ||
export default config |
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
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
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
Oops, something went wrong.