Skip to content

Commit

Permalink
add prettified
Browse files Browse the repository at this point in the history
  • Loading branch information
coderatomy committed Dec 5, 2023
1 parent ed11190 commit 3cec483
Show file tree
Hide file tree
Showing 10 changed files with 241 additions and 253 deletions.
3 changes: 3 additions & 0 deletions zubhub_frontend/zubhub/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ node_modules/
# testing
/coverage

# husky
/.husky

# production
/build

Expand Down
2 changes: 1 addition & 1 deletion zubhub_frontend/zubhub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"build": "node --max-old-space-size=1024 `which react-scripts` build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"prettier": "prettier --config ./.prettierrc.yaml --write \"src/**/*.{js,jsx}\" \"*.json\" \"public/**/*.{js,html,json}\"",
"prettier": "prettier --config ./.prettierrc.yaml --write \"src/**/*.{js,jsx}\" \"package.json\" \"public/**/*.{js,html,json}\"",
"prepare": "cd ../.. && husky install zubhub_frontend/zubhub/.husky",
"lint-frontend": "lint-staged"
},
Expand Down
36 changes: 17 additions & 19 deletions zubhub_frontend/zubhub/public/index.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VMZVCLR1EY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-VMZVCLR1EY');
</script>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/logo-small.png"/>
<link rel="icon" href="%PUBLIC_URL%/logo-small.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Hub of creative projects built by awesome kids!"
/>
<meta name="description" content="Hub of creative projects built by awesome kids!" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link
href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/icon?family=Material+Icons"
/>
<link href="https://unpkg.com/[email protected]/dist/cld-video-player.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link href="https://unpkg.com/[email protected]/dist/cld-video-player.min.css" rel="stylesheet" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down Expand Up @@ -61,8 +54,13 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script src="https://unpkg.com/cloudinary-core@latest/cloudinary-core-shrinkwrap.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/[email protected]/dist/cld-video-player.min.js"
type="text/javascript"></script>
<script
src="https://unpkg.com/cloudinary-core@latest/cloudinary-core-shrinkwrap.min.js"
type="text/javascript"
></script>
<script
src="https://unpkg.com/[email protected]/dist/cld-video-player.min.js"
type="text/javascript"
></script>
</body>
</html>
190 changes: 95 additions & 95 deletions zubhub_frontend/zubhub/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@
"unpublishedActivities": "Unpublished Activities",
"myActivities": "My Activities"
},
"sidebar":{
"sidebar": {
"logout": "Logout",
"expoloreActivities":"Explore Activities",
"teams":"Teams",
"bookmarks":"Bookmarks",
"myProjects":"My Projects",
"myDrafts":"My Drafts",
"createActivity":"Create Activity",
"createProject":"Create Project",
"profile":"My Profile",
"projects":"All Projects",
"settings":"Settings"
"expoloreActivities": "Explore Activities",
"teams": "Teams",
"bookmarks": "Bookmarks",
"myProjects": "My Projects",
"myDrafts": "My Drafts",
"createActivity": "Create Activity",
"createProject": "Create Project",
"profile": "My Profile",
"projects": "All Projects",
"settings": "Settings"
},

"footer": {
Expand Down Expand Up @@ -258,14 +258,14 @@
},

"projects": {
"1":"Explore, ",
"1": "Explore, ",
"2": "Create, Share!",
"shareProject": "Share your work",
"exploreIdeas": "Explore Ideas",
"heroAlt": "Six animated children happily walking",
"zubhubAmbassadors": "Become an Ambassador",
"newStuff": "New Stuff",
"login":"Login to view more",
"login": "Login to view more",
"allProjects": "All Projects",
"prev": "Prev",
"next": "Next",
Expand All @@ -278,39 +278,41 @@
"unexpected": "Uh oh! Seems like we hit a snag :( Maybe try again later?",
"noProject": "Seems like you have arrived at a new and fresh ZubHub! There are no projects at this moment. Maybe try creating one?"
},
"child":{
"title":"Get Creative With ZubHub",
"1":"Connect with a global community of curious creatives.",
"2":"Freedom to express yourself in different creative ways.",
"3":"Work as a team with co creators."
"child": {
"title": "Get Creative With ZubHub",
"1": "Connect with a global community of curious creatives.",
"2": "Freedom to express yourself in different creative ways.",
"3": "Work as a team with co creators."
},
"teams":{
"title":"ZubHub for Teams",
"1":"Set your team up for success with reimagined learning to empower their personal and professional growth.",
"2":"With inspiring activities on science, art, technology and more, your whole team will have deep knowledge and expertise at their fingertips.",
"button":"Sign Up - It's free!",
"button2":"Create Team"
"teams": {
"title": "ZubHub for Teams",
"1": "Set your team up for success with reimagined learning to empower their personal and professional growth.",
"2": "With inspiring activities on science, art, technology and more, your whole team will have deep knowledge and expertise at their fingertips.",
"button": "Sign Up - It's free!",
"button2": "Create Team"
},
"reviews":{
"reviews": {
"title": "Creator Reviews",
"1":{
"review": "“For me, ZubHub has grown incredibly important. I would advise anyone interested in creating projects and sharing to check it out.”",
"name": "Faridah Ejibunu",
"designation": "ZubHub Ambassador"},
"2":{
"1": {
"review": "“For me, ZubHub has grown incredibly important. I would advise anyone interested in creating projects and sharing to check it out.”",
"name": "Faridah Ejibunu",
"designation": "ZubHub Ambassador"
},
"2": {
"review": "“The fact that anyone in the world can have an online presence for their work and show it to the world all for free just amazes me.”",
"name": "Hemant Kumar Singh",
"designation": "ZubHub Ambassador"},
"3":{
"designation": "ZubHub Ambassador"
},
"3": {
"review": "“ZubHub contributes immensely to people from not so well socio-econimic backgrounds, I would high recommend it.”",
"name": "Yaya Mamoudou",
"designation": "ZubHub Ambassador"}

"designation": "ZubHub Ambassador"
}
},
"global":{
"title":"Join a growing community of thousands of creators!",
"global": {
"title": "Join a growing community of thousands of creators!",
"body": "Be a part of an active community of educators and creators.",
"body2":"Create projects, create activities, share ideas, and connect with the global community.",
"body2": "Create projects, create activities, share ideas, and connect with the global community.",
"button": "Get Started, It's Free!",
"button2": "Log In"
}
Expand Down Expand Up @@ -454,8 +456,8 @@
"videoFile": "Video file added",
"videoURL": "Video URL added"
},
"addedToDraft":"Project added as draft successfully!",
"savedStep":"Project has been saved successfully!",
"addedToDraft": "Project added as draft successfully!",
"savedStep": "Project has been saved successfully!",
"createToastSuccess": "Your project was created successfully!",
"updateToastSuccess": "Your project was updated successfully!",
"errors": {
Expand Down Expand Up @@ -516,7 +518,7 @@
"follow": "Follow",
"unfollow": "Unfollow"
},
"hashtags":"Project Hashtags",
"hashtags": "Project Hashtags",
"description": "Description",
"materials": "Materials Used",
"category": "Category",
Expand Down Expand Up @@ -649,7 +651,7 @@
},
"activityLog": {
"activity": "Activity Log",
"addActivityLog": "Seems like there isn't any activity on your account yet! Get involved to see activity logs!"
"addActivityLog": "Seems like there isn't any activity on your account yet! Get involved to see activity logs!"
},
"team": "Team",
"createteam": "Create Team",
Expand Down Expand Up @@ -929,14 +931,14 @@
"2ndpage": {
"title": "Invite Team Members",
"members": "Members",
"admins" : "Admin",
"admins": "Admin",
"member-placeholder": "Members can add team to a project, view team members and leave at their convenience",
"admin-placeholder": "Admins can assign admin status to other team members, add and remove team members, add team to a project, delete team profile",
"member-input-placeholder": "Enter the list of members",
"admin-input-placeholder": "Enter the list of admins"
},
"3rdpage":{
"title":"Select Project you worked on with a Team"
"3rdpage": {
"title": "Select Project you worked on with a Team"
}
},
"teamMembers": {
Expand Down Expand Up @@ -976,19 +978,19 @@
}
},
"materials_used": {
"label": "What materials did you use?",
"addMore": "Add Material",
"helperText": "List some of the essential materials used to create this activity",
"encouragingText": "We strongly encourage you to upload an image containing all materials and tools used to create this activity",
"images": {
"label": "Add Image"
},
"errors": {
"max": "your material shouldn't be more than 50 characters",
"required": "this field is required",
"required1": "At least one material is required!",
"min": "your material should be at least 2 characters"
}
"label": "What materials did you use?",
"addMore": "Add Material",
"helperText": "List some of the essential materials used to create this activity",
"encouragingText": "We strongly encourage you to upload an image containing all materials and tools used to create this activity",
"images": {
"label": "Add Image"
},
"errors": {
"max": "your material shouldn't be more than 50 characters",
"required": "this field is required",
"required1": "At least one material is required!",
"min": "your material should be at least 2 characters"
}
},
"facilitation_tips": {
"label": "Facilitation tips",
Expand All @@ -998,7 +1000,6 @@
"max": "your facilitation tips shouldn't be more than 10,000 characters",
"required": "This field is required"
}

},
"activityImages": {
"label": "Add Images of your activity",
Expand Down Expand Up @@ -1043,23 +1044,22 @@
"image": {
"label": "Add Example Image"
},
"errors": {
"errors": {
"max": "your inspiring example's description shouldn't be more than 100 characters",
"required": "This field is required",
"maxCredit": "your inspiring example's credit shouldn't be more than 50 characters"

}
},
"video": {
"label": "Let's add a video",
"label2": "Add Video",
"helperText": "You can provide video URL (Youtube, vimeo and Google Drive are supported) or a video file",
"errors": {
"shouldBeURL": "Select a valid video URL from YouTube, Vimeo, or Google Drive",
"shouldBeVideoFile": "Select a valid video file",
"maxVideoFileSize": "video file is more than 60MB",
"maxVideoURLLength": "video URL is too long"
}
"video": {
"label": "Let's add a video",
"label2": "Add Video",
"helperText": "You can provide video URL (Youtube, vimeo and Google Drive are supported) or a video file",
"errors": {
"shouldBeURL": "Select a valid video URL from YouTube, Vimeo, or Google Drive",
"shouldBeVideoFile": "Select a valid video file",
"maxVideoFileSize": "video file is more than 60MB",
"maxVideoURLLength": "video URL is too long"
}
},
"image": "Image added",
"images": "Images added",
Expand All @@ -1074,28 +1074,28 @@
}
},

"activities": {
"LinkedProjects": "Linked Projects",
"errors": {
"activities": {
"LinkedProjects": "Linked Projects",
"errors": {
"emptyList": "No activities created yet !",
"LinkedProjects": "No projects Linked to this activity yet created !",
"dialog": {
"serverError": "Sorry the server is down try again later",
"mediaServerError": "Sorry media server is down we couldn't upload your files! try again later",
"uploadError": "error occurred while downloading file : "
"serverError": "Sorry the server is down try again later",
"mediaServerError": "Sorry media server is down we couldn't upload your files! try again later",
"uploadError": "error occurred while downloading file : "
}
}
},
}
},

"activityDetails": {
"subTitles": {
"learning_goals": "LEARNING GOALS",
"materials_required": "MATERIALS REQUIRED",
"making_steps": "MAKING STEPS",
"inspiring_person": "INSPIRING ARTIST/SCIENTIST",
"facilitation_tips": "FACILITATION TIPS",
"inspiring_examples": "SOME INSPIRING EXAMPLES",
"contributors": "CONTRIBUTORS"
"learning_goals": "LEARNING GOALS",
"materials_required": "MATERIALS REQUIRED",
"making_steps": "MAKING STEPS",
"inspiring_person": "INSPIRING ARTIST/SCIENTIST",
"facilitation_tips": "FACILITATION TIPS",
"inspiring_examples": "SOME INSPIRING EXAMPLES",
"contributors": "CONTRIBUTORS"
},
"made": "Made by",
"activity": {
Expand Down Expand Up @@ -1142,20 +1142,20 @@
}
},
"publish": {
"label": "Publish"
"label": "Publish"
},
"unpublish": {
"label": "UnPublish"
"label": "UnPublish"
}
},
"saveButton": {
"label": "save button",
"save": "save",
"unsave": "unsave"
}
"saveButton": {
"label": "save button",
"save": "save",
"unsave": "unsave"
}
},
"breadCrumb":{
"link":{
"breadCrumb": {
"link": {
"activities": "Activities",
"projects": "Projects",
"edit": "Edit",
Expand Down Expand Up @@ -1197,4 +1197,4 @@
"text": "You will be redirected to the login page.",
"buttonLabel": "ok"
}
}
}
Loading

0 comments on commit 3cec483

Please sign in to comment.