This file contains hidden or 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
    
  
  
    
  | from bs4 import BeautifulSoup | |
| import csv | |
| # Load the content from the HTML file | |
| with open('input.html', 'r', encoding='utf-8') as file: | |
| content = file.read() | |
| soup = BeautifulSoup(content, 'lxml') | |
| # Prepare a list to hold the extracted data | 
  
    
      This file contains hidden or 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 requests | |
| import json | |
| API_KEY = 'YOUR_YOUTUBE_API_KEY' | |
| VIDEO_IDS = ['1Ds2G7lcrxA', 'AnotherVideoID', ...] # Replace with your list of video IDs | |
| BASE_URL = "https://www.googleapis.com/youtube/v3/videos" | |
| def get_video_details(video_id): | |
| params = { | |
| 'part': 'snippet', | 
  
    
      This file contains hidden or 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
    
  
  
    
  | Array.from(document.querySelectorAll('.edit-detailed-section *')).filter(el => { | |
| if(el.style["background-color"] === 'rgb(255, 255, 255)' || el.style["background-color"] === 'white'){ | |
| el.style["background-color"] = ''; | |
| } | |
| }); | |
| //Remove any color | |
| Array.from(document.querySelectorAll('.edit-detailed-section *')).filter(el => { | |
| if(el.style["background-color"]){ | 
  
    
      This file contains hidden or 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 function useVisibilityChange(serverFallback: boolean) { | |
| const getServerSnapshot = () => serverFallback; | |
| const [getSnapshot, subscribe] = useMemo(() => { | |
| return [ | |
| () => document.visibilityState === 'visible', | |
| (notify: () => void) => { | |
| window.addEventListener('visibilitychange', notify); | |
| return () => { | |
| window.removeEventListener('visibilitychange', notify); | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| //Simple key->translation | |
| "search": "Suchen", | |
| "noResults": "Keine Suchergebnisse gefunden", | |
| "publish": "Veröffentlichen", | |
| "cancel": "Abbrechen", | |
| "save": "Speichern", | |
| //nested key->key->translation | |
| "fileTypes": { | |
| "document": "Dokument", | 
  
    
      This file contains hidden or 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 {useTranslation} from 'react-i18next'; | |
| const Index: FC = () => { | |
| const {t} = useTranslation(); | |
| return ( | |
| <MainLayout pageTitle={t(`app-1.common.pageTitle`)}> | |
| {t(`app-1.common.pageTitle`)} | |
| </MainLayout> | |
| ); | |
| } | 
  
    
      This file contains hidden or 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 i18NextLib from 'i18next'; | |
| import {initReactI18next} from 'react-i18next'; //To have a react context | |
| import {resources} from 'dictionary-package/lib/bundles/app-1'; //reduce bundles if there is many | |
| import {defaultInterpolation} from 'dictionary-package/lib/lib/helpers'; // day-to-day functions to format text | |
| const i18next = i18NextLib.createInstance(); | |
| i18next.use(initReactI18next).init({ | |
| lng: 'en', | |
| resources, | 
  
    
      This file contains hidden or 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
    
  
  
    
  | files: | |
| - source: /src/resources/en/**/*.json | |
| translation: /src/resources/%two_letters_code%/**/%original_file_name% | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /** | |
| * Now | |
| */ | |
| import Api from './api'; | |
| import {ContentApi} from './index'; | |
| Api.API_HOST = 'x'; | |
| Api.AUTH_TOKEN = 'y'; | 
  
    
      This file contains hidden or 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 taskId = ''; //TODO: get task if from prev mutaition | |
| const raw = JSON.stringify({ | |
| filename: 'Screenshot 2021-08-20 at 12.06.13.png', | |
| type: 'image/png', | |
| }); | |
| const {key: uploadKey, uploadId} = await fetch('https://api.gsstaging.net/cpw/uppy/s3/multipart', { | |
| method: 'POST', | |
| headers: { | |
| 'x-cpw-task-id': taskId, | 
NewerOlder