profile
viewpoint

Ybalrid/virtual-air-hockey 1

Repository for PST4 project "air hockey with Oculus Rift and Novint Falcon"

zerubeus/future-layout 1

Future layout generator for React Router

zerubeus/After-Effects-Plugins 0

Plugins for Adobe After Effects

zerubeus/Annwvyn 0

Annwvyn Engine is a simple game engine built upon free and open source technologies to easily create applications and games using the Oculus Rift Headset.

zerubeus/Betaseries-Android 0

Android app for Betaseries

zerubeus/create-react-app 0

Create React apps with no build configuration.

zerubeus/deno 0

A secure TypeScript runtime on V8

zerubeus/dotfiles 0

General config tested on MacOs

zerubeus/enet-test 0

Enet wrapper for the VR Airhockey C++ game

zerubeus/enzyme 0

JavaScript Testing utilities for React

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 735fcfdd48eaf3311b6943058f5afdf949bdcaf7

fix(chapter): fix reference to chapter page

view details

push time in 8 hours

startedahlsunnah/learn-islam-ui

started time in 2 days

issue commentahlsunnah/learn-islam-ui

Port quiz section to app

#441

zerubeus

comment created time in 3 days

issue openedahlsunnah/learn-islam-ui

Port quiz section to app

created time in 3 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha fe213a73803864f4d693ea82d7c8d5fef5996942

feat(courses): dup of navigation

view details

zerubeus

commit sha a757291f1a15143f5db0b0e9a3d873b8247cf50b

feat(chapter): port chapters to app section

view details

push time in 3 days

issue openedahlsunnah/learn-islam-ui

Port the chapter section in app

created time in 7 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha cedeb944e6245657ef6c999978c12ea16d1b189b

feat(library): static library page

view details

zerubeus

commit sha cb40b796367775c7581774e21ff0110a1744c510

feat(library): fix component name

view details

zerubeus

commit sha ac64ba6b45d192e267c298f75afa6c52659ef179

feat(library): add types for library

view details

zerubeus

commit sha 363f393887299a47d9c9b154a72bfc093cf51306

feat(library): dynamic data

view details

zerubeus

commit sha 93d5e6ef0f0ac69c05d3012dfb0fab032c0bfdea

feat(library): update types

view details

[ZE]

commit sha cc9b86364af797ef0e6daa7a2fd3120812a0bbfe

Merge pull request #478 from ahlsunnah/library-page feat(library): static library page

view details

push time in 7 days

PR merged ahlsunnah/learn-islam-ui

feat(library): static library page

بسم الله الرحمن الرحيم

Screenshot 2020-05-21 at 05 34 39 Screenshot 2020-05-21 at 05 34 59

What's new in this PR?

fixes

لله الحمد والمنة

+906 -18

1 comment

10 changed files

zerubeus

pr closed time in 7 days

push eventahlsunnah/learn-islam-ui

Abdullah Hilson

commit sha 6a39762c2cdfca2ddfc6d7ee73bfc945a95704e1

Update README.md

view details

Abdullah Hilson

commit sha fda8bdc95e3761d019d94334309ab7a447c70721

Merge pull request #480 from ahlsunnah/abumalick-patch-1 Update README.md

view details

zerubeus

commit sha cedeb944e6245657ef6c999978c12ea16d1b189b

feat(library): static library page

view details

zerubeus

commit sha cb40b796367775c7581774e21ff0110a1744c510

feat(library): fix component name

view details

zerubeus

commit sha ac64ba6b45d192e267c298f75afa6c52659ef179

feat(library): add types for library

view details

zerubeus

commit sha 363f393887299a47d9c9b154a72bfc093cf51306

feat(library): dynamic data

view details

zerubeus

commit sha 93d5e6ef0f0ac69c05d3012dfb0fab032c0bfdea

feat(library): update types

view details

push time in 7 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 88fcd3d93c55b134fb591028f829044af8f946c2

feat(library): update types

view details

push time in 7 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 2531e8f07e8f8c9f82881a09ec967422ffd13492

feat(library): dynamic data

view details

push time in 7 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 9126e7cb5908b674b4bfbc6a563196592c7b0789

feat(library): dynamic data

view details

push time in 7 days

PR opened ahlsunnah/learn-islam-ui

Course implementation WIP

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+1008 -35

0 comment

15 changed files

pr created time in 8 days

create barnchahlsunnah/learn-islam-ui

branch : course-implementation

created branch time in 8 days

issue commentnuqayah/deen-projects

What about a discord room?

I've created a discord if anyone wants to join https://discord.gg/bxWTwMt

zerubeus

comment created time in 8 days

startedSkillz4Killz/Muslim-Islam-Discord-Bot

started time in 8 days

started0xFaisal/Islamic-bot

started time in 8 days

startedlearn-quran/web

started time in 8 days

issue openednuqayah/deen-projects

What about a discord room?

Salamou alaykom, what about creating a discord room a place where we can talk about potential Islamic projects? A place where we can expend the community and welcome new members with new ideas all the time?

created time in 8 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 31a6cf0bbca20a42f7874fc0ee5dc39050c7e60c

feat(library): add types for library

view details

push time in 10 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 24ab29a9a0df4b9454b6a95a2e1782662282cc0c

feat(library): fix component name

view details

push time in 10 days

PR opened ahlsunnah/learn-islam-ui

feat(library): static library page

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+196 -18

0 comment

9 changed files

pr created time in 10 days

create barnchahlsunnah/learn-islam-ui

branch : library-page

created branch time in 10 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 01ce2145f625cdcd96127747f848eed4b6e43470

fix(navbar): fix topbar menu

view details

[ZE]

commit sha 576eca36246ae94298d566ad37441eb4267dc7e3

Merge pull request #474 from ahlsunnah/fix-top-bar-menu fix(navbar): fix topbar menu

view details

push time in 13 days

PR merged ahlsunnah/learn-islam-ui

fix(navbar): fix topbar menu

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+15 -1

1 comment

1 changed file

zerubeus

pr closed time in 13 days

Pull request review commentahlsunnah/learn-islam-ui

fix(navbar): fix topbar menu

 export default function AppNavBar({ authUser }: Proptypes) {           <div className={classes.grow} />           {authUser && (             <Fragment>-              <div className={classes.sectionDesktop}>Tracks</div>+              <div className={classes.sectionDesktop}>

sounds good I'll try this

zerubeus

comment created time in 13 days

issue commentahlsunnah/learn-islam-ui

Create tables for quiz system in hasura

And even with 5 categories of quizzes they can still fit in the Question_choices table

zerubeus

comment created time in 14 days

issue commentahlsunnah/learn-islam-ui

Create tables for quiz system in hasura

It is good to normalize, having enough tables to represent our relations still better that doing workarounds, for these 5 types all we need for this data representation is quiz_type table

zerubeus

comment created time in 14 days

issue openedahlsunnah/learn-islam-ui

Create tables for quiz system in hasura

 * Question
   - question_id   auto integer
   - question      varchar
   - is_active     enum(0,1)
 * Question_choices
   - choice_id        auto integer
   - question_id      integer
   - is_right_choice  enum(0,1)
   - choice           varchar
 * User_question_answer
   - user_id      integer
   - question_id  integer
   - choice_id    integer
   - is_right     enum(0,1)
   - answer_time  datetime
  • table Question is for storing all your questions. It has is_active so that you can selectively display only active questions (using WHERE is_active = '1')
  • table question_choices is for storing all available options. It has is_right_choice which defines what choice is the right answer for particular question.
  • Table User_question_answer is for storing answer from your user. It has is_right for faster lookup, to see whether that particular question and answer choice is right (based on is_right_choice previously defined). It also has answer_time just to note when that particular user answer the question.

created time in 14 days

push eventahlsunnah/learn-islam-ui

abumalick

commit sha 7c06d7a731c65949d3d520a7c3bf702b5659534f

refactor(components): use react-card instead of card

view details

abumalick

commit sha 3fdafac1d3de0c22d390ef0f358e050818768987

Merge remote-tracking branch 'origin/master' into material-react-component

view details

dependabot-preview[bot]

commit sha 2381f3e4b664643c262f31ad31f74ac3e90a3d17

chore(deps): [security] bump eslint-utils from 1.3.1 to 1.4.2 Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2. **This update includes a security fix.** - [Release notes](https://github.com/mysticatea/eslint-utils/releases) - [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

Abdullah Hilson

commit sha 8f34fca240d91bb6929dfcb904f3e265e54d42bf

Merge pull request #71 from ahlsunnah/dependabot/npm_and_yarn/eslint-utils-1.4.2 chore(deps): [security] bump eslint-utils from 1.3.1 to 1.4.2

view details

dependabot-preview[bot]

commit sha 8b79d01d811253d882b751917eb248ef798e7491

chore(deps): [security] bump mixin-deep from 1.3.1 to 1.3.2 Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. **This update includes a security fix.** - [Release notes](https://github.com/jonschlinkert/mixin-deep/releases) - [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

Abdullah Hilson

commit sha efa4368535a611c11e1500a5a678a6ef992de2f9

Merge pull request #73 from ahlsunnah/dependabot/npm_and_yarn/mixin-deep-1.3.2 chore(deps): [security] bump mixin-deep from 1.3.1 to 1.3.2

view details

abumalick

commit sha 4f66e86f9e211f66556c032ef61e648d07bf2745

Merge branch 'master' into material-react-component

view details

abumalick

commit sha 2389552e1139fdbc96f966aff363c789fec01e64

refactor: use @material/react-button implementation with ripple

view details

abumalick

commit sha 5fb8534ac35c95f6a86f3971d96562e52bff3bf2

feat: remove unused deps

view details

abumalick

commit sha c6ee58af5d76f5fb9f39d0893aaa33cab70b31ba

reafactor: use @material/react-checkbox

view details

Abdullah Hilson

commit sha b2749a25f341c23c6a3264b18b97669f2f46d4f9

Merge pull request #77 from ahlsunnah/material-react-component refactor: use official Material.io's React components

view details

abumalick

commit sha 40da7a66272bca275e185d840923df21b18bcbca

fix: cleanup

view details

abumalick

commit sha ee6daa8a0d7b13eeb35c1e17c9b67601ce664865

chore: upgrade all upgradable packages

view details

Abdullah Hilson

commit sha 5e57bc3048d41ec9ed689bc3df0c7e7c009f52ef

upgrade all upgradable dependencies (#78) upgrade all upgradable dependencies

view details

dependabot-preview[bot]

commit sha 9773b535b4cffd150e5a3c1e54c9bdad9cf127bf

chore(deps): bump core-js from 2.6.8 to 2.6.9 Bumps [core-js](https://github.com/zloirock/core-js) from 2.6.8 to 2.6.9. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/compare/v2.6.8...v2.6.9) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

Abdullah Hilson

commit sha 1c8a1ac2e8ecf22ad9e25c55d867b4576d40ce90

chore(deps): bump core-js from 2.6.8 to 2.6.9 (#79) chore(deps): bump core-js from 2.6.8 to 2.6.9 Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

view details

dependabot-preview[bot]

commit sha 36441125073a29632ce24f7bf17228d9634c7cf6

chore(deps): bump redux-persist from 5.10.0 to 6.0.0 Bumps [redux-persist](https://github.com/rt2zz/redux-persist) from 5.10.0 to 6.0.0. - [Release notes](https://github.com/rt2zz/redux-persist/releases) - [Changelog](https://github.com/rt2zz/redux-persist/blob/master/CHANGELOG.md) - [Commits](https://github.com/rt2zz/redux-persist/compare/v5.10.0...v6.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

view details

Abdullah Hilson

commit sha 4343c123a75f5a9a69716945e4b7a8dece3b0293

chore(deps): bump redux-persist from 5.10.0 to 6.0.0 (#86) chore(deps): bump redux-persist from 5.10.0 to 6.0.0 Co-authored-by: null <27856297+dependabot-preview[bot]@users.noreply.github.com>

view details

abumalick

commit sha 798fd4b8856e8240fb44f2c80abd509b1c10493c

chore: remove postcss reporter in production environment

view details

Abdullah Hilson

commit sha 166d8664b3064dec5641f0a46b08c823d22b2581

fix: remove css reporter in production environment (#88) fix: remove css reporter in production environment

view details

push time in 14 days

PR opened ahlsunnah/learn-islam-ui

fix(navbar): fix topbar menu

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+15 -1

0 comment

1 changed file

pr created time in 14 days

create barnchahlsunnah/learn-islam-ui

branch : fix-top-bar-menu

created branch time in 14 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha f1d5863482782193f5f63b3ae530e90d108d4789

feat(tack-menue): add track page to navbar

view details

[ZE]

commit sha bfd8cb05ff5f45f3b5044198fe9f869164b93cbb

Merge pull request #472 from ahlsunnah/add-track-page-to-navbar feat(tack-menue): add track page to navbar

view details

push time in 14 days

PR merged ahlsunnah/learn-islam-ui

Reviewers
feat(tack-menue): add track page to navbar

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+79 -14

1 comment

1 changed file

zerubeus

pr closed time in 14 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha f1d5863482782193f5f63b3ae530e90d108d4789

feat(tack-menue): add track page to navbar

view details

push time in 14 days

Pull request review commentahlsunnah/learn-islam-ui

feat(tack-menue): add track page to navbar

 import { ReactComponent as LogoFr } from '../../../assets/images/logo-horizontal import { FirebaseUser } from 'services/auth' import AccountCircle from '@material-ui/icons/AccountCircle' import MoreIcon from '@material-ui/icons/MoreVert'+import Menu from '@material-ui/core/Menu'+import MenuItem from '@material-ui/core/MenuItem'+import Badge from '@material-ui/core/Badge'+import MenuBookIcon from '@material-ui/icons/MenuBook'+import Button from '@material-ui/core/Button'  type Proptypes = {   authUser: FirebaseUser }  export default function AppNavBar({ authUser }: Proptypes) {+  const [mobileMoreAnchorEl, setMobileMoreAnchorEl] = useState<null | HTMLElement>(null)+  const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)

Yes it is basically a copy past from mu

zerubeus

comment created time in 14 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 574c455dd91dd1a9a366334142dc97543213e22b

feat(tack-menue): add track page to navbar

view details

push time in 14 days

PR opened ahlsunnah/learn-islam-ui

feat(tack-menue): add track page to navbar

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+81 -10

0 comment

2 changed files

pr created time in 14 days

create barnchahlsunnah/learn-islam-ui

branch : add-track-page-to-navbar

created branch time in 14 days

issue commenthupe1980/gatsby-plugin-material-ui

WebpackError: RangeError: Maximum call stack size exceeded with gatsby-plugin-material-ui

here https://github.com/ahlsunnah/learn-islam-ui/blob/master/gatsby-config.js you remove disableAutoprefixing: true and the app will not build anymore

zerubeus

comment created time in 15 days

push eventahlsunnah/learn-islam-ui

a72o

commit sha 5b95a485c6435ffde399e96421888c96648eac3a

feat: add track details inner pages

view details

[ZE]

commit sha edbe6de2934f1f68badf9a9b0a9abe6fa8b81ab6

Merge pull request #470 from ahlsunnah/track-details feat: add track details inner pages

view details

push time in 16 days

PR merged ahlsunnah/learn-islam-ui

feat: add track details inner pages

بسم الله الرحمن الرحيم

What's new in this PR?

feat: add track details inner pages

fixes #458 ref #441

لله الحمد والمنة

+252 -110

1 comment

13 changed files

abumalick

pr closed time in 16 days

issue closedahlsunnah/learn-islam-ui

Move Track details to app and use material-ui

Part of https://github.com/ahlsunnah/learn-islam-ui/issues/441

closed time in 16 days

abumalick

Pull request review commentahlsunnah/learn-islam-ui

feat: add track details inner pages

+import { useTranslation } from 'react-i18next'+import gql from 'graphql-tag'+import React from 'react'+import TrackComponent from './TrackComponent'+import { useQuery } from '@apollo/react-hooks'+import { TrackInnerPageQuery, TrackInnerPageQueryVariables, TrackInnerPageTrackFragment } from '../../../hasuraTypes'+import { Locale } from 'types'+import { useLocation } from '@reach/router'++const TRACKS_QUERY = gql`+  fragment TrackInnerPageCourse on courses {+    id+    level+    translations(where: { locale_code: { _eq: $locale } }) {+      title+      description+    }+    chapters {+      duration+      id+      translations(where: { locale_code: { _eq: $locale } }) {+        locale_code+      }+    }+    quiz_difficulties {+      quiz_difficulties+    }+    topic {+      id+      color+      translations(where: { locale_code: { _eq: $locale } }) {+        title+      }+    }+  }+  fragment TrackInnerPageTrack on tracks {+    id+    translations(where: { locale_code: { _eq: $locale } }) {+      title+    }+    courses {+      ...TrackInnerPageCourse+    }+  }+  query trackInnerPage($locale: locales_enum!, $id: Int!) {+    track: tracks_by_pk(id: $id) {+      ...TrackInnerPageTrack+    }+  }+`+type Props = {+  path?: string+  trackId?: string+}+const TracksContainer: React.FC<Props> = ({ trackId }) => {+  const parsedId = trackId && parseInt(trackId, 10)+  if (!parsedId) {+    throw new Error('No valid track Id')+  }+  console.log(trackId)

console.log

abumalick

comment created time in 16 days

delete branch ahlsunnah/learning-islam-node-backend

delete branch : small-fixes

delete time in 18 days

push eventahlsunnah/learning-islam-node-backend

abumalick

commit sha 7a22c5e8a4e88f0445411c91a6f63703aa65a8c1

fix: typo

view details

abumalick

commit sha a7d64285e9811400feef7ef0ebd62aa58e920fca

feat: add 401 resonse to route /token

view details

Aladeen

commit sha 556045f7376340770383217f926ac4132568b491

Merge pull request #12 from ahlsunnah/small-fixes Small changes

view details

push time in 18 days

PR merged ahlsunnah/learning-islam-node-backend

Small changes
  • fix: typo
  • feat: add 401 resonse to route /token
+11 -8

0 comment

2 changed files

abumalick

pr closed time in 18 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 65e830d76a0ec55006b38522604222d73aed2e01

feat(spinner): add a spinner

view details

Aladeen

commit sha 4064cb82c2ea488866cd9e20a22b1cfef26a0c1a

Merge pull request #469 from ahlsunnah/state-spinner feat(spinner): add a spinner

view details

push time in 18 days

PR merged ahlsunnah/learn-islam-ui

feat(spinner): add a spinner

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+49 -26

1 comment

6 changed files

zerubeus

pr closed time in 18 days

Pull request review commentahlsunnah/learn-islam-ui

feat(spinner): add a spinner

 export function useAuth(): UseAuth {     setAuthUser(JSON.parse(localStorage.getItem('authUser') as string))   }, []) -  const [authState, setAuthState] = useState<AuthState>({ status: 'loading' })+  const [authState, setAuthState] = useState<AuthState>({ status: 'out' })

Yes

zerubeus

comment created time in 18 days

PR opened ahlsunnah/learn-islam-ui

feat(spinner): add a spinner

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+49 -26

0 comment

6 changed files

pr created time in 20 days

create barnchahlsunnah/learn-islam-ui

branch : state-spinner

created branch time in 20 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha b314a5ed544d46fddcf2c5821bafe8d6df33145c

feat(profile): set app logout

view details

zerubeus

commit sha 61806d1190b090456409cf174f17f737e9ca063d

feat(profile): sign out types

view details

Aladeen

commit sha 60426b0f69ebcb819a55b0221169e760f49fa94b

Merge pull request #467 from ahlsunnah/auth-spinner feat(profile): set app logout

view details

push time in 20 days

PR merged ahlsunnah/learn-islam-ui

feat(profile): set app logout

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+27 -17

1 comment

4 changed files

zerubeus

pr closed time in 20 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 61806d1190b090456409cf174f17f737e9ca063d

feat(profile): sign out types

view details

push time in 21 days

issue closedahlsunnah/learn-islam-ui

Add user Logout

Once connected and redirected to the profile page, make it possible to disconnect and redirect the user to the home page:

TODO:

  • Use auth logout function in the profile page
  • Add a logout button in the dropdown menu of the profile page
  • Make sure the user session is deleted

closed time in 21 days

zerubeus

PR opened ahlsunnah/learn-islam-ui

feat(profile): set app logout

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+20 -2

0 comment

3 changed files

pr created time in 21 days

create barnchahlsunnah/learn-islam-ui

branch : auth-spinner

created branch time in 21 days

issue closedahlsunnah/learn-islam-ui

Add the profile page

closed time in 21 days

zerubeus

issue closedahlsunnah/learn-islam-ui

Edit profile

closed time in 21 days

zerubeus

push eventahlsunnah/learn-islam-ui

abumalick

commit sha 82e2124acfecfe5d8cbf3ba30c864b4e27ac18da

refactor: use i18n instead of translationsJson

view details

abumalick

commit sha 937c51b3186fda1c8d028d2f5c2f1e9aed7c2296

refactor: use material-ui for Button and Card, Make reusable hook for language switcher, use i18n for translations

view details

abumalick

commit sha 351aa3c01c01be72223cf9557e9957931124a3b1

Merge remote-tracking branch 'origin/master' into app-track

view details

abumalick

commit sha 9f32e10d3cf5b4b0fe6300e12014ab9673682d08

chore: update graphqlTypes

view details

Aladeen

commit sha 931d461d540c4e0891823bb158e1cd566e6edcec

Merge pull request #466 from ahlsunnah/app-track use material-ui for Button and Card, Make reusable hook for language switcher, use i18n

view details

push time in 21 days

PR merged ahlsunnah/learn-islam-ui

use material-ui for Button and Card, Make reusable hook for language switcher, use i18n

What's new in this PR?

  • refactor: use i18n instead of translationsJson
  • refactor: use material-ui for Button and Card, Make reusable hook for language switcher, use i18n for otherTranslations
  • chore: update graphqlTypes

ref #441 ref #458

لله الحمد والمنة

+225 -394

1 comment

21 changed files

abumalick

pr closed time in 21 days

Pull request review commentahlsunnah/learn-islam-ui

use material-ui for Button and Card, Make reusable hook for language switcher, use i18n

+import { useLocation } from '@reach/router'+import { useCallback, useMemo } from 'react'+import { useTranslation } from 'react-i18next'++const cleanPathName = (previousPath: string, currentLocale: string) => {+  return previousPath.replace(`/${currentLocale === 'ar' ? '' : currentLocale}`, '')+}++const removeExtraSlashes = (string: string) => string.replace(/^\/+/g, '/')++const useLanguageSwitcher = () => {

this is very nice

abumalick

comment created time in 21 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha b3ca89e6dda01d9185957cd13dbf7535d3008162

feat(profile): user info section

view details

zerubeus

commit sha f2c61b00680953bffafcfacf03e3ce65cee44298

feat(pofile): a minimum profile section

view details

zerubeus

commit sha 48f621796b40df35589b3fddf6d81a9e59ca3863

feat(profile): update types

view details

zerubeus

commit sha f9f280fc85708bee58e9c3486a2bc4c5cad337ac

feat(profile): update query types

view details

Aladeen

commit sha 6e66d62ee080a0c13fa3e20272ae85745ce4390d

Merge pull request #465 from ahlsunnah/add-profile-page feat(profile): user info section

view details

push time in 21 days

PR merged ahlsunnah/learn-islam-ui

feat(profile): user info section

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

Screenshot 2020-05-09 at 18 22 56 Screenshot 2020-05-09 at 18 23 03

+198 -151

1 comment

5 changed files

zerubeus

pr closed time in 21 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha f9f280fc85708bee58e9c3486a2bc4c5cad337ac

feat(profile): update query types

view details

push time in 21 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 6cb83041227b42beaac7e8a391d9b5f899e732f7

feat(profile): add query types

view details

push time in 21 days

Pull request review commentahlsunnah/learn-islam-ui

feat(profile): user info section

 const NEW_USER_QUERY = gql`   } ` -const Profile: React.FC<PropType> = () => {+const Profile: React.FC<PropType> = ({ me }) => {+  const [isEditProfile, setEditProfile] = useState(false)+  const classes = useStyles()+  const currentUserId = useMemo(() => _get(me, 'uid'), [me])+  const { loading: queryLoading, error: queryError, data: queryData } = useQuery(USER_QUERY, {+    variables: { id: currentUserId },+  })++  const meData: TApi_Users = _get(queryData, 'users.[0]')++  const userFullName = `${_upperFirst(_get(meData, 'last_name'))}  ${_upperFirst(_get(meData, 'first_name'))}`+  const email = _get(meData, 'email')+  const country = _upperFirst(_get(meData, 'country'))

It is preferable to use get, get is safer declarative and for your example you could do it with get as follow :

_gat(meData, 'users.[0]', {})
zerubeus

comment created time in 21 days

push eventahlsunnah/learn-islam-ui

abumalick

commit sha 04d71b3a001cdf905da9138963726f3c4a59fcbc

chore: update graphqlTypes

view details

abumalick

commit sha 05f58dcfb53563da6d2522881aa0aae3f3cd15ab

fix: email is of type citext

view details

abumalick

commit sha 47cfc9edc7da1b43d1f3784ae916ae633680fc9f

feat: add hasura graphql types generation

view details

abumalick

commit sha e05873386926cefdcff36f7a87be89e1de2f4ca5

fix: avoid malformed token

view details

abumalick

commit sha fd27aa04962a60e7f73106debf68f81ecbe71406

feat: add tracks page in app section with data dynamically fetched from the backend

view details

abumalick

commit sha 5bded3161d1d09f123963f1ccc30a3fce09fcdf3

feat: add gatsby data to legacy track page

view details

abumalick

commit sha e53f7456c089f5cf0c9237c1d80528799d66f52c

chore: remove console.log

view details

Aladeen

commit sha bda4dd31d794b866232c8261797c9210930f4cc7

Merge pull request #463 from ahlsunnah/app-tracks add tracks page to app section with data fetched from the backend

view details

zerubeus

commit sha b3ca89e6dda01d9185957cd13dbf7535d3008162

feat(profile): user info section

view details

zerubeus

commit sha f2c61b00680953bffafcfacf03e3ce65cee44298

feat(pofile): a minimum profile section

view details

zerubeus

commit sha 48f621796b40df35589b3fddf6d81a9e59ca3863

feat(profile): update types

view details

push time in 22 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 5eb68e53c0d9bfc1debf8006b87a9b76d299e401

feat(pofile): a minimum profile section

view details

push time in 22 days

PR opened ahlsunnah/learn-islam-ui

feat(profile): user info section

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+98 -3

0 comment

3 changed files

pr created time in 22 days

create barnchahlsunnah/learn-islam-ui

branch : add-profile-page

created branch time in 22 days

push eventahlsunnah/learn-islam-ui

abumalick

commit sha 04d71b3a001cdf905da9138963726f3c4a59fcbc

chore: update graphqlTypes

view details

abumalick

commit sha 05f58dcfb53563da6d2522881aa0aae3f3cd15ab

fix: email is of type citext

view details

abumalick

commit sha 47cfc9edc7da1b43d1f3784ae916ae633680fc9f

feat: add hasura graphql types generation

view details

abumalick

commit sha e05873386926cefdcff36f7a87be89e1de2f4ca5

fix: avoid malformed token

view details

abumalick

commit sha fd27aa04962a60e7f73106debf68f81ecbe71406

feat: add tracks page in app section with data dynamically fetched from the backend

view details

abumalick

commit sha 5bded3161d1d09f123963f1ccc30a3fce09fcdf3

feat: add gatsby data to legacy track page

view details

abumalick

commit sha e53f7456c089f5cf0c9237c1d80528799d66f52c

chore: remove console.log

view details

Aladeen

commit sha bda4dd31d794b866232c8261797c9210930f4cc7

Merge pull request #463 from ahlsunnah/app-tracks add tracks page to app section with data fetched from the backend

view details

push time in 22 days

PR merged ahlsunnah/learn-islam-ui

add tracks page to app section with data fetched from the backend

بسم الله الرحمن الرحيم

What's new in this PR?

  • chore: update graphqlTypes
  • fix: email is of type citext
  • feat: add hasura graphql types generation
  • fix: avoid malformed token
  • feat: add tracks page in app section with data dynamically fetched from the backend

fixes #461

لله الحمد والمنة

+6684 -39

2 comments

9 changed files

abumalick

pr closed time in 22 days

issue closedahlsunnah/learn-islam-ui

Move tracks page to app and use material-ui

part of https://github.com/ahlsunnah/learn-islam-ui/issues/441

closed time in 22 days

abumalick

Pull request review commentahlsunnah/learn-islam-ui

add tracks page to app section with data fetched from the backend

 export default function useApolloClientConfig(token: string) {   const authLink = useMemo(     () =>       setContext((_, { headers }) => {+        const newHeaders = { ...headers }+        if (token) {

👍 very good

abumalick

comment created time in 22 days

Pull request review commentahlsunnah/learn-islam-ui

add tracks page to app section with data fetched from the backend

 import { useTranslation } from 'react-i18next' import BlueHero from 'components/molecules/Hero/BlueHero' import HomeFooter from 'components/molecules/Footer/HomeFooter'+import gql from 'graphql-tag' import React from 'react' import Tracks from './Tracks'-import { ITracksPageProps } from 'types/tracks'+import { useQuery } from '@apollo/react-hooks'+import { TracksQuery, TracksQueryVariables } from '../../../hasuraTypes'+import { Locale } from 'types' -const TracksContainer = ({ data }: ITracksPageProps) => {-  const { t } = useTranslation()-  const tracks = data.api.tracks+const TRACKS_QUERY = gql`+  fragment TracksPageTrack on tracks {+    id+    slug+    soon+    translations(where: { locale_code: { _eq: $locale } }) {+      title+      description+    }+  }+  query tracks($locale: locales_enum) {+    tracks {+      ...TracksPageTrack+    }+  }+`+type Props = {+  isLegacy?: boolean+  path?: string+}+const TracksContainer: React.FC<Props> = ({ isLegacy }) => {+  const { t, i18n } = useTranslation()+  const language = i18n.language as Locale+  const { data, loading, error } = useQuery<TracksQuery, TracksQueryVariables>(TRACKS_QUERY, {+    variables: { locale: language },+  })+  console.log(data, loading, error, language)

console log

abumalick

comment created time in 22 days

push eventahlsunnah/learning-islam-node-backend

abumalick

commit sha 635f4d5c9df387739ab6070413c3513f2c7d0073

chore: remove yarn-error.log

view details

abumalick

commit sha 2d0a5ec22437f26e14c877d2f8487c9a59e233a5

chore: ignore yarn-error.log

view details

abumalick

commit sha 30a7ebff048a0c0f1b5612ffe16326605db4f59a

chore: add .nvmrc

view details

Aladeen

commit sha b4f4419c5885f0d1f8f24784581a2b5f3081a11a

Merge pull request #10 from ahlsunnah/small-changes small changes

view details

push time in 22 days

PR merged ahlsunnah/learning-islam-node-backend

small changes
  • chore: remove yarn-error.log
  • chore: ignore yarn-error.log
  • chore: add .nvmrc
+2 -4505

0 comment

3 changed files

abumalick

pr closed time in 22 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha 732c1e7fdf09a97dc18e6ead4b588b7221d5378e

feat(pofile): delegate user addition to the backend

view details

zerubeus

commit sha d8e6750b9ba883d8dc20f9d539ed3434a3d7085d

fix(types): fix generated types

view details

Aladeen

commit sha e7040f0a02a96bc7a060ac0076f650d434dc1af2

Merge pull request #462 from ahlsunnah/delegate-user-creation-to-backend feat(profile): delegate user addition to the backend

view details

push time in 22 days

PR merged ahlsunnah/learn-islam-ui

feat(profile): delegate user addition to the backend

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+88 -83

1 comment

4 changed files

zerubeus

pr closed time in 22 days

push eventahlsunnah/learn-islam-ui

zerubeus

commit sha d8e6750b9ba883d8dc20f9d539ed3434a3d7085d

fix(types): fix generated types

view details

push time in 22 days

PR opened ahlsunnah/learn-islam-ui

feat(profile): delegate user addition to the backend

بسم الله الرحمن الرحيم

What's new in this PR?

fixes

لله الحمد والمنة

+89 -76

0 comment

4 changed files

pr created time in 23 days

create barnchahlsunnah/learn-islam-ui

branch : delegate-user-creation-to-backend

created branch time in 23 days

delete branch ahlsunnah/learning-islam-node-backend

delete branch : handle-user-creation

delete time in 23 days

push eventahlsunnah/learning-islam-node-backend

zerubeus

commit sha f2860a61431aa2158e66834e1d0c102032e2aed6

feat(auth): delegate user addition to the back

view details

Aladeen

commit sha 60093d9c27446a8dfc1bcf1fe29d3ac83d2d7be7

Merge pull request #9 from ahlsunnah/handle-user-creation feat(auth): delegate user addition to the back

view details

push time in 23 days

create barnchahlsunnah/learning-islam-node-backend

branch : handle-user-creation

created branch time in 23 days

more