Compare commits

...

15 Commits

Author SHA1 Message Date
Olusesan Ameye 1b5df31a38 Registry switch 2025-05-14 08:00:59 +00:00
dev-chiefworks 15a165eecc updated urlsupdate URLS 2025-05-04 09:37:39 -04:00
dev-chiefworks 8945283aa8 ci cd process 2025-05-03 23:42:36 -04:00
dev-chiefworks 7374de357a End points updates 2025-05-03 22:21:20 -04:00
ameye bf3499eacc Merge branch 'auth-layout-text-color' of MyFit/users-myfit into master 2024-01-06 18:28:58 +00:00
ebube d72b003971 fixed a typo 2024-01-05 23:46:56 -08:00
ameye 64ce8d4a8c Merge branch 'auth-layout-text-color' of MyFit/users-myfit into master 2024-01-06 02:18:52 +00:00
ebube f1030fd52e Update: text color on auth-layout 2024-01-05 11:52:21 -08:00
ameye 0c995646cd Merge branch 'capability-to-hide-history' of MyFit/users-myfit into master 2023-10-04 11:40:26 +00:00
Ebube 1841e7b3d5 Merge branch 'master' of https://gitlab.chiefsoft.net/MyFit/users-myfit into capability-to-hide-history 2023-10-04 12:34:48 +01:00
ameye c4b41a6557 Merge branch 'Blur-the-sign-on-page-image' of MyFit/users-myfit into master 2023-10-04 10:52:19 +00:00
Chukwumdiebube 29a101a062 add the true conditional 2023-03-09 19:28:14 +01:00
Chukwumdiebube 8c935b14a5 added env variables 2023-03-09 19:17:26 +01:00
Chukwumdiebube 597af30827 Merge branch 'master' of https://gitlab.chiefsoft.net/MyFit/users-myfit into capability-to-hide-history 2023-03-09 19:15:40 +01:00
Chukwumdiebube bc6adb6f63 capability to his history 2023-03-06 20:14:01 +01:00
10 changed files with 91 additions and 72 deletions
+7 -4
View File
@@ -7,9 +7,11 @@ REACT_APP_APPSITE=" https://myfitapp.mermsemr.com"
#REACT_APP_APPSITE="http://localhost:7012"
REACT_APP_AUX_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfit"
REACT_APP_USERS_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfituser"
# REACT_APP_PASSWORD_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfituser/resetpass"
# REACT_APP_AUX_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfit"
# REACT_APP_USERS_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfituser"
REACT_APP_AUX_ENDPOINT="https://api.myfit.ai/en/desktop/api/v2/myfit"
REACT_APP_USERS_ENDPOINT="https://api.myfit.ai/en/desktop/api/v2/myfituser"
REACT_APP_SESSION_EXPIRE_MINUTES=15
@@ -18,7 +20,8 @@ REACT_APP_RESOURCES="Resources"
REACT_APP_HISTORY="History"
REACT_APP_TRACKING_SHOW=1
REACT_APP_HISTORY_SHOW=1
REACT_APP_RESOURCES_SHOW=1
REACT_APP_VERSION_NO="DEF-CONFIG"
REACT_APP_VERSION_NO="DEF-CONFIG"
+3 -2
View File
@@ -7,8 +7,8 @@ REACT_APP_APPSITE=" https://myfitapp.mermsemr.com"
#REACT_APP_APPSITE="http://localhost:7012"
REACT_APP_AUX_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfit"
REACT_APP_USERS_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfituser"
REACT_APP_AUX_ENDPOINT="https://devapi.myfit.ai/en/desktop/api/v2/myfit"
REACT_APP_USERS_ENDPOINT="https://devapi.myfit.ai/en/desktop/api/v2/myfituser"
# REACT_APP_PASSWORD_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfituser/resetpass"
REACT_APP_SESSION_EXPIRE_MINUTES=15
@@ -18,6 +18,7 @@ REACT_APP_RESOURCES="Resources"
REACT_APP_HISTORY="History"
REACT_APP_TRACKING_SHOW=1
REACT_APP_HISTORY_SHOW=1
REACT_APP_RESOURCES_SHOW=1
+3 -2
View File
@@ -6,9 +6,9 @@ REACT_APP_TWITTER="https://twitter.com/fluxtra"
REACT_APP_APPSITE=" https://myfitapp.mermsemr.com"
#REACT_APP_APPSITE="http://localhost:7012"
REACT_APP_AUX_ENDPOINT="https://api.myfit.ai/en/desktop/api/v2/myfit"
REACT_APP_USERS_ENDPOINT="https://api.myfit.ai/en/desktop/api/v2/myfituser"
REACT_APP_AUX_ENDPOINT="https://api.mermsemr.com/en/desktop/api/v2/myfit"
REACT_APP_USERS_ENDPOINT="https://api.mermsemr.com/en/desktop/api/v2/myfituser"
# REACT_APP_PASSWORD_ENDPOINT="https://api.mermsemr.com/en/desktop/api/v2/myfituser/resetpass"
REACT_APP_SESSION_EXPIRE_MINUTES=15
@@ -18,6 +18,7 @@ REACT_APP_RESOURCES="Resources"
REACT_APP_HISTORY="History"
REACT_APP_TRACKING_SHOW=0
REACT_APP_HISTORY_SHOW=0
REACT_APP_RESOURCES_SHOW=0
+23
View File
@@ -0,0 +1,23 @@
build-job:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
test-job1:
stage: test
script:
- echo "This job tests something"
test-job2:
stage: test
script:
- echo "This job tests something, but takes more time than test-job1."
- echo "After the echo commands complete, it runs the sleep command for 20 seconds"
- echo "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20
deploy-prod:
stage: deploy
script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
environment: production
+3 -10
View File
@@ -1,7 +1,7 @@
version: '3'
services:
users-myfit:
image: registry.myfit.ai/users-myfit:latest
image: registry.chiefsoft.net/users-myfit:latest
build:
context: .
dockerfile: docker/Dockerfile
@@ -17,17 +17,10 @@ services:
- ./src/:/usr/src/app/src
- ./vendors/:/usr/src/app/vendors
extra_hosts:
- backend.wrenchboard.api.live:10.10.33.15
- backend.wrenchboard.api.test:10.10.33.15
# #- backend.wrenchboard.api.live:172.31.4.27
# #- backend.wrenchboard.api.test:10.20.30.27
- apigateway.wrenchboard.app.dev.fluxtra.net:10.20.30.19
- apigateway.wrenchboard.app.lotus.fluxtra.net:172.31.4.19
- api.myfit.ai:10.10.33.15
- devapi.myfit.ai:10.10.33.15
environment:
- CHOKIDAR_USEPOLLING=true
# volumes:
# - ./:/app
# - /app/node_modules
tty: true
stdin_open: true
# working_dir: /app
+2 -2
View File
@@ -22,8 +22,8 @@ export default function LoginLayout({ slogan, children }) {
{/* <img src={loginThumb} alt="login-thumb" /> */}
</div>
<div className="article w-[600px]">
<p className="text-[60px] font-bold leading-[72px] text-white">
{slogan}
<p className="text-[60px] font-bold leading-[72px] text-[#a03774]">
{slogan}
</p>
</div>
</div>
+37 -23
View File
@@ -21,11 +21,11 @@ export default function CalendarTable({ className }) {
const [value, onChange] = useState(new Date()); // value of calendar date and onchange handler for calendar
const [remDate, setRemDate] = useState([]) // for holding dates on reminders to display on calendar
const reminderApi = new usersService(); // instantiating the API SERVICE
const calenderApi = new usersService(); // instantiating the API SERVICE
const getUserReminders = async () => {
try {
const res = await reminderApi.getUserReminders();
const res = await calenderApi.getUserReminders();
if(res.status == 200 && res.data.status > 0){
setRemDate(res.data.reminders)
setIsLoading(false)
@@ -117,32 +117,46 @@ export default function CalendarTable({ className }) {
);
}
const ReminderThumbnail = ({reminders}) => {
/**
* Renders a list of reminder thumbnails.
* Each thumbnail displays the reminder's category image, description, and start date.
* Each object should have the following properties:
* - category (string): The category of the reminder.
* - description (string): The description of the reminder.
* - start_date (string): The start date of the reminder.
*/
const ReminderThumbnail = ({ reminders }) => {
const getThumbnailImage = (category) => {
if (!category) {
return dataImage1;
}
return localImgLoad(`images/${category}.png`);
};
return (
<div className="w-full h-full overflow-y-auto overflow-x-hidden pb-1">
{reminders.map((reminder, index) => (
<div key={index} className="flex space-x-2 items-center bg-slate-300 hover:bg-white mb-1 p-1 transition-all duration-500">
<div className="w-[30px] h-[30px] rounded-full overflow-hidden flex justify-center items-center">
<img
src={(reminder.category == null || reminder.category == '')? dataImage1: localImgLoad(`images/${reminder.category}.png`)}
alt="data"
className="w-full h-full"
/>
</div>
<div className="flex flex-col justify-start items-start">
<h1 className="font-bold text-[10px] text-dark-gray dark:text-white whitespace-nowrap">
{reminder.description?.substring(0, 20)+ ' ...'}
</h1>
<span className="text-[8px] text-thin-light-gray">
Added <span className="text-purple">
{reminder.start_date.split(' ')[0]}
<div className="w-[30px] h-[30px] rounded-full overflow-hidden flex justify-center items-center">
<img
src={getThumbnailImage(reminder.category)}
alt="data"
className="w-full h-full"
/>
</div>
<div className="flex flex-col justify-start items-start">
<h1 className="font-bold text-[10px] text-dark-gray dark:text-white whitespace-nowrap">
{reminder.description?.substring(0, 20) + ' ...'}
</h1>
<span className="text-[8px] text-thin-light-gray">
Added <span className="text-purple">
{reminder.start_date.split(' ')[0]}
</span>
</span>
</span>
</div>
</div>
</div>
))}
</div>
)
}
);
};
+7 -23
View File
@@ -1,7 +1,6 @@
import React, { useContext } from "react";
import { NavLink } from "react-router-dom";
import logo from "../../assets/images/myfit-logo-2.png"; //logo-2.svg";
import logo3 from "../../assets/images/myfit-logo-2.png"; //logo-3.svg";
import { default as logo, default as logo3 } from "../../assets/images/myfit-logo-2.png"; //logo-2.svg";
import DarkModeContext from "../Contexts/DarkModeContext";
import Icons from "../Helpers/Icons";
@@ -130,25 +129,9 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler }) {
</span>
</NavLink>
</li>
{process.env.REACT_APP_RESOURCES_SHOW == true ?
<li className="item group">
<NavLink
to="/resources"
className="nav-item flex items-center justify-start space-x-3.5"
>
<span className="item-icon group-hover:bg-purple group-hover:text-white w-8 h-8 flex justify-center items-center transition-all duration-300 ease-in-out bg-light-purple dark:bg-dark-light-purple rounded-full text-dark-gray dark:text-white">
<Icons name="star" />
</span>
<span className="item-content group-hover:text-purple text-[18px] transition-all duration-300 ease-in-out text-lighter-gray relative font-medium active flex-1">
{process.env.REACT_APP_RESOURCES}
</span>
</NavLink>
</li>
:
<></>
}
<li className="item group">
{(process.env.REACT_APP_HISTORY_SHOW == true) ?
(<li className="item group">
<NavLink
to="/history"
className="nav-item flex items-center justify-start space-x-3.5"
@@ -157,10 +140,11 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler }) {
<Icons name="history" />
</span>
<span className="item-content group-hover:text-purple text-[18px] transition-all duration-300 ease-in-out text-lighter-gray relative font-medium active flex-1">
History
{process.env.REACT_APP_HISTORY}
</span>
</NavLink>
</li>
</li>)
: ''}
</ul>
</div>
</div>
+1 -1
View File
@@ -235,7 +235,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
sidebar ? "active flex-1" : "w-0"
}`}
>
History
{process.env.REACT_APP_HISTORY}
</span>
</NavLink>
</li>
+5 -5
View File
@@ -2,9 +2,9 @@ import React from "react";
import Calendar from "../components/Calendar";
export default function CalendarPage() {
return (
<>
<Calendar />
</>
);
return (
<>
<Calendar />
</>
);
}