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
{"lastUpload":"2020-02-11T12:45:25.900Z","extensionVersion":"v3.4.3"} |
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
//axiosclient | |
import axios from 'axios'; | |
const tmdbApiClient = axios.create(); | |
tmdbApiClient.defaults.baseURL = 'https://api.themoviedb.org/3/'; | |
tmdbApiClient.defaults.timeout = 1000 * 60 * 5; | |
tmdbApiClient.interceptors.request.use( | |
async (conf) => { |
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 http from 'http'; | |
import {socket} from './socket.mjs'; | |
export default async (app) => { | |
let httpsServer = https.createServer(credentials, app); | |
httpsServer | |
.listen(config.secureInternalPort, '0.0.0.0', () => { |
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, { useState } from 'react'; | |
import { useSocket } from "./constext/SocketProvider"; | |
function App() { | |
const socket = useSocket(); | |
const [data, setData] = useState([]); | |
useEffect(() => { | |
if (socket) { |
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
:root { | |
--col-deg: 265deg; | |
--col-sat: 50%; | |
--col-bright: 90%; | |
--bg-deg: 265deg; | |
--bg-sat: 1%; | |
--bg-bright: 60%; | |
--theme-color: hsl(var(--col-deg), calc(var(--col-sat) / 100 * 100), calc((var(--col-bright) / 100) * 50)); | |
--gradient-color: hsl(var(--bg-deg), calc(var(--bg-sat) / 100 * 70), calc((var(--bg-bright) / 100) * 30)); |
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, { createContext, useContext, useEffect, useState } from 'react'; | |
import io, { Socket } from 'socket.io-client'; | |
import { useSelector, useStore } from 'react-redux'; | |
import SocketEvents from './SocketEvents'; | |
export const SocketContext = createContext(); | |
export const useSocket = () => useContext(SocketContext); |
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, {useEffect, useState} from 'react'; | |
function Looper() { | |
const [number, setNumber] = useState(0); | |
useEffect(() => { | |
let newNumber = 0; | |
const interval = setInterval(() => { |
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
// ./redux/content/actions.js | |
import { store } from '..'; | |
import content from './content'; | |
export const setLoading = (payload) => store.dispatch(content.actions.setContentLoading(payload)); | |
export const setError = (payload) => store.dispatch(content.actions.setContentError(payload)); | |
export const setInfo = (payload) => store.dispatch(content.actions.setInfo(payload)); |
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
/* eslint-disable no-undef */ | |
/* eslint-disable @typescript-eslint/no-var-requires */ | |
const { readFileSync } = require('fs'); | |
const { Client } = require('node-scp'); | |
const { join } = require('path'); | |
const env = require('dotenv'); | |
env.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
// image | |
.trickle-div { | |
transition: all; | |
transition-delay: var(--delay1); | |
transition-duration: 300ms; | |
} | |
// itemcontainer | |
@for $i from 1 to 100 { | |
.trickle > *:nth-child(#{$i}) { |
OlderNewer