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
const config = { | |
presets: [ | |
['@babel/preset-env', { | |
"useBuiltIns": "entry" | |
}], | |
'@babel/preset-react', | |
'@babel/preset-typescript', | |
], | |
plugins: [ | |
['@babel/plugin-transform-typescript', { allowDeclareFields: 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
reducer.on(setNextQuestion, (state, { nextQuestion, blockIndex }) => { | |
const detailedStepL = lens<BlockQuizInterviewStep>(); | |
const detailedStep = state.DetailedStep as BlockQuizInterviewStep; | |
const result = detailedStepL | |
.Questionnaire | |
.Blocks[blockIndex] | |
.Questions | |
.set(questions => [...questions, nextQuestion])(detailedStep); | |
return ({ | |
...state, |
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
const { join } = require('path') | |
const WindiCSS = require('vite-plugin-windicss').default | |
const TsconfigPaths = require('vite-tsconfig-paths').default | |
const path = join(__dirname, '..') | |
module.exports = { | |
stories: ['../src/stories/**/*.stories.mdx', '../src/stories/**/*.stories.tsx'], | |
addons: ['@storybook/addon-essentials'], | |
babel: async config => 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
const form = { | |
title: "", | |
questions: [ | |
{ | |
_type: 'question', | |
id: 'uuid()', | |
title: '', | |
questionType: 'single', | |
node: [ | |
{ |
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
export const routes = { | |
systemUsers:'/system-users', | |
systemRoles: '/syste-roles', | |
systemGroups: '/system-groups', | |
}; |
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
/* --------------------------------------------- | |
Table of contents | |
------------------------------------------------ | |
01. font & reset css | |
02. reset | |
03. global styles | |
04. header | |
05. banner | |
06. features | |
07. testimonials |
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
import React from 'react'; | |
import { useEffect } from 'react'; | |
const CurrentLevel = (props) => { | |
useEffect(async () => { | |
const trainer = await props.getTrainer(); | |
debugger | |
}, []) | |
return <h1>CurrentLevel</h1> |
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
import { Module } from '@nestjs/common'; | |
import { ConsoleModule } from 'nestjs-console'; | |
import FeaturedVideosModule from './modules/featured/featured.module'; | |
@Module({ | |
imports: [ | |
FeaturedVideosModule, | |
ConsoleModule, | |
], | |
controllers: [], |
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
const ytVideos = []; | |
await Promise.all( | |
youtubeGenres.map((genre) => { | |
const traversePlaylists = traverseWithLimit(false); | |
return traversePlaylists( | |
ListType.Playlist, | |
{ | |
...genre, | |
part: 'snippet', |
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
import { youtube_v3, google } from 'googleapis'; | |
import { GaxiosPromise } from 'gaxios'; | |
export enum ListType { | |
Playlist = 'playlists', | |
PlaylistItems = 'playlistItems', | |
Videos = 'videos' | |
} | |
interface RequestConfig { |
NewerOlder