From 386c59078033c0469a675c28476f6d80f70f94c4 Mon Sep 17 00:00:00 2001 From: Anthony Marin Date: Fri, 5 Jul 2024 16:46:29 -0700 Subject: [PATCH] copy git folder --- .env.development | 2 +- .env.example | 2 +- .env.production | 2 +- .husky/pre-commit | 4 +- README.md | 92 ++++++++++++++++++- package.json | 3 - public/index.html | 4 +- .../common/BaseSwitch/BaseSwitch.styles.ts | 8 ++ .../activityCard/ActivityChart.tsx | 2 +- .../TotalEarningChart/TotalEarningChart.tsx | 2 +- src/components/tables/Tables/Tables.tsx | 2 +- .../tables/editableTable/EditableTable.tsx | 2 +- src/pages/DataTablesPage.tsx | 8 +- src/pages/RelaySettingsPage.tsx | 4 +- src/styles/GlobalStyle.ts | 6 -- 15 files changed, 115 insertions(+), 28 deletions(-) diff --git a/.env.development b/.env.development index 0bad9db..451173e 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -REACT_APP_BASE_URL=http://localhost:5000 +REACT_APP_BASE_URL=http://localhost:9002 # REACT_APP_BASE_URL=https://9ee32ecaf5a1.ngrok.app REACT_APP_ASSETS_BUCKET=https://lightence-assets.s3.amazonaws.com diff --git a/.env.example b/.env.example index 74344da..0b7ad59 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -REACT_APP_BASE_URL=http://localhost:5000 +REACT_APP_BASE_URL=http://localhost:9002 REACT_APP_ASSETS_BUCKET=https://lightence-assets.s3.amazonaws.com # more info https://create-react-app.dev/docs/advanced-configuration diff --git a/.env.production b/.env.production index 0bad9db..451173e 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -REACT_APP_BASE_URL=http://localhost:5000 +REACT_APP_BASE_URL=http://localhost:9002 # REACT_APP_BASE_URL=https://9ee32ecaf5a1.ngrok.app REACT_APP_ASSETS_BUCKET=https://lightence-assets.s3.amazonaws.com diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219..33d4194 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh -. "$(dirname "$0")/_/husky.sh" +#. "$(dirname "$0")/_/husky.sh" -npx lint-staged +#npx lint-staged diff --git a/README.md b/README.md index 7bba698..f8f9210 100644 --- a/README.md +++ b/README.md @@ -1 +1,91 @@ -# hornet-storage-panel \ No newline at end of file +# Lightence + +React-powered **100% FREE** Admin Dashboard Template for building rich user interfaces significantly faster. For developers of all levels. Open-source and maintained by the [Altence](https://altence.com) team. + +

+ Template +

+ +### Demo +Check out a [live demo](https://altence.com/lightence-landing). + +## Key Features +- ๐Ÿš€ This solution allows you to reduce MVP development costs by up to 40% +- ๐Ÿœ Dashboard template is based on a rich library powered by [Ant Design](https://ant.design/) +- ๐Ÿ’ฐ 100% Free: start using it for your projects right away. No hidden payments, no trials, nothing +- ๐Ÿ’Š Medical dashboard includes: customizable medical dashboard for data-driven applications +- ๐Ÿ’ป Any backend supported: the dashboard supports any kind of backend by just updating an API +- โญ Modern & great for projects of tomorrow: built with [React](https://reactjs.org/), [Redux](https://redux.js.org/) and [Ant Design](https://ant.design/); _Bootstrap_ and _jQuery_ 100% free +- ๐Ÿ‡บ๐Ÿ‡ณ Internationalized: built-in internationalization support +- ๐Ÿ“ฑ Mobile first: optimized to reduce data usage on mobile devices +- ๐Ÿ”ฅ Responsive & adaptive: supports mobile, tablet, and desktop screens +- โ˜Ž๏ธ Supports PWA to get all advantages of native mobile apps +- ๐ŸŽจ Theming: use built-in light and dark themes or implement your own theme with just lines of code +- ๐ŸŒ“ Day & night mode: dark theme is automatically activated +- ๐Ÿ‹๏ธ Optimized bundle size: use the latest features of building tools to reduce the final bundle size + +## Under the Hood +- ๐Ÿ’ฏ 60+ ready-to-use customizable UI components +- ๐Ÿš„ All-set business flow: login, sign up, forgot password, profile flows +- ๐Ÿ Custom pages: 400 error, 500 error, profile +- ๐Ÿ—ž๏ธ Built-in apps: News Feed +- ๐Ÿ‘ Fully typescripted +- โœ… Clean code: enjoy the world-recognized code style with our own enhancements +- ๐Ÿงฑ Solid architecture: in compliance with the best architectural practices +- ๐Ÿ“ƒ [MIT](LICENSE) License + +### Installation + +#### Requirements +- [Node.js](https://nodejs.org/en/) version _>=16.0.0_ +- [yarn](https://yarnpkg.com/) +- [git](https://git-scm.com/) + +#### To go with the latest version please copy and past in your terminal the following steps + +``` +git clone https://github.com/altence/lightence-ant-design-react-template.git my-awesome-project && cd my-awesome-project +``` + +Development mode +``` +yarn install && yarn start +``` + +Production mode +``` +yarn install && yarn build +``` + +#### How to analyze the bundle size +``` +yarn install && yarn build --stats +``` + +And then use the [webpack-bundle-analyzer](https://www.npmjs.com/package/webpack-bundle-analyzer) to open _build/bundle-stats.json_. + +### Where to get help +[](mailto:lightence.admin@altence.com) +[](https://twitter.com/altence_team) +[](https://discord.gg/H5RdXAZsYm) +[](https://www.facebook.com/groups/altence) + +### Contribution +Letโ€™s create great products together! We encourage and welcome collaboration and any type of contribution. ๐Ÿ‘‰ Learn the [contributing docs](CONTRIBUTING.md) on how to contribute the right way. + +### Want to get popular? +If you use **Lightence** in your app development, please, let us know, and weโ€™ll showcase your work to provide more awareness to your product. + +### Components by request +As our admin system with a medical dashboard is fully customizable, we understand that you might need more components than it currently has. In case you didn't find a needed component inside Lightence, [contact us](mailto:lightence.admin@altence.com) to order it. + +### How you can give a shout-out to us + +- ๐Ÿ—๏ธ Make your disruptive products with Lightence +- โญ Star our GitHub repo +- ๐Ÿž Create requests, submit bugs, suggest new features +- โ˜„๏ธ Spread the word and share links about **Lightence** on social media +- ๐Ÿ”ฅ Follow us on [Twitter](https://twitter.com/altence_team) and [LinkedIn](https://linkedin.com/company/altence) + +### Need developersโ€™ help? +At [Altence](https://altence.com), we are always ready to get your feedback or give you advice if needed. We can also become your partner in development in case you need help with your projects. Drop us a line ([email](mailto:lightence.admin@altence.com)) and weโ€™ll get back to you shortly. diff --git a/package.json b/package.json index 77b1fb3..ebc2a24 100644 --- a/package.json +++ b/package.json @@ -129,9 +129,6 @@ "webpack-bundle-analyzer": "^4.4.2", "webpackbar": "^5.0.0-3" }, - "lint-staged": { - "*/**/*.{js,ts,tsx}": "yarn lint" - }, "engines": { "node": "16.x" }, diff --git a/public/index.html b/public/index.html index a4d2129..9f459fd 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@ content="H.O.R.N.E.T Storage Nostr Relay๐Ÿ’พ Powered by Scionic Merkle Trees and Blossom๐ŸŽ„๐ŸŒธ" /> - + You need to enable JavaScript to run this app.
- Initializing H.O.R.N.E.T.S Storage... + Initializing H.O.R.N.E.T Storage...
diff --git a/src/components/common/BaseSwitch/BaseSwitch.styles.ts b/src/components/common/BaseSwitch/BaseSwitch.styles.ts index 15aabea..8ca10eb 100644 --- a/src/components/common/BaseSwitch/BaseSwitch.styles.ts +++ b/src/components/common/BaseSwitch/BaseSwitch.styles.ts @@ -6,4 +6,12 @@ export const Switch = styled(AntdSwitch)` background-image: linear-gradient(to right, var(--disabled-color), var(--disabled-color)), linear-gradient(to right, var(--background-color), var(--background-color)); } + &.ant-switch[aria-checked='false'].balanceSwitch { + background-image: linear-gradient(to right, #f2a900, #f2a900), + linear-gradient(to right, var(--background-color), var(--background-color)); + } + &.ant-switch[aria-checked='false'].modeSwitch { + background-image: linear-gradient(to right, red, red), + linear-gradient(to right, var(--background-color), var(--background-color)); + } `; diff --git a/src/components/medical-dashboard/activityCard/ActivityChart.tsx b/src/components/medical-dashboard/activityCard/ActivityChart.tsx index 581e775..df5bcca 100644 --- a/src/components/medical-dashboard/activityCard/ActivityChart.tsx +++ b/src/components/medical-dashboard/activityCard/ActivityChart.tsx @@ -275,7 +275,7 @@ export const ActivityChart: React.FC = () => { trigger: 'axis', formatter: (params: any) => { const currentItem = params[0]; - return `${currentItem.name}: ${currentItem.value} GB`; // Include the month in the tooltip + return `${currentItem.name}: ${currentItem.value.toFixed(3)} GB`; // Include the month in the tooltip }, }, graphic: noData diff --git a/src/components/nft-dashboard/totalEarning/TotalEarningChart/TotalEarningChart.tsx b/src/components/nft-dashboard/totalEarning/TotalEarningChart/TotalEarningChart.tsx index 1fa8a05..fe18887 100644 --- a/src/components/nft-dashboard/totalEarning/TotalEarningChart/TotalEarningChart.tsx +++ b/src/components/nft-dashboard/totalEarning/TotalEarningChart/TotalEarningChart.tsx @@ -44,7 +44,7 @@ export const TotalEarningChart: React.FC = ({ xAxisData, symbolSize: 4, smooth: false, lineStyle: { - width: 4, + width: 2, color: themeObject[theme].chartColor3, }, emphasis: { diff --git a/src/components/tables/Tables/Tables.tsx b/src/components/tables/Tables/Tables.tsx index c642c70..d58fd80 100644 --- a/src/components/tables/Tables/Tables.tsx +++ b/src/components/tables/Tables/Tables.tsx @@ -13,7 +13,7 @@ export const Tables: React.FC = () => { diff --git a/src/components/tables/editableTable/EditableTable.tsx b/src/components/tables/editableTable/EditableTable.tsx index 60dd822..7116086 100644 --- a/src/components/tables/editableTable/EditableTable.tsx +++ b/src/components/tables/editableTable/EditableTable.tsx @@ -117,7 +117,7 @@ const EditableTable: React.FC = () => { width: '15%', render: (_: string, record: any) => ( - showModal(record.kindNumber)}> + showModal(record.kindNumber)}> {t('common.kindGraph')} diff --git a/src/pages/DataTablesPage.tsx b/src/pages/DataTablesPage.tsx index 6fffc61..34d6ffb 100644 --- a/src/pages/DataTablesPage.tsx +++ b/src/pages/DataTablesPage.tsx @@ -16,9 +16,7 @@ const DataTablesPage: React.FC = () => { const desktopLayout = ( - - - +
@@ -42,9 +40,9 @@ const DataTablesPage: React.FC = () => { {isDesktop ? ( desktopLayout ) : ( -
+ <> -
+ )} ); diff --git a/src/pages/RelaySettingsPage.tsx b/src/pages/RelaySettingsPage.tsx index 3c5ac6c..081795b 100644 --- a/src/pages/RelaySettingsPage.tsx +++ b/src/pages/RelaySettingsPage.tsx @@ -567,7 +567,7 @@ const RelaySettingsPage: React.FC = () => {
-

{t('Dynamic Kinds')}

+

{'Add to Blacklist'}

{
{settings.mode === 'unlimited' && (
-

{t('Dynamic Kinds')}

+

{'Add to Blacklist'}

setNewKind(e.target.value)} placeholder="Enter new kind" />