import { useState } from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import Ionicons from 'react-native-vector-icons/Ionicons';
import { unwrapResult } from '@reduxjs/toolkit';
import { useDispatch, useSelector } from 'react-redux';
import AppBackground from 'src/components/AppBackground';
import Button from 'src/components/Button';
hover to show border, and click to edit, click outside to text
import React, { useState, useRef, useEffect, useCallback } from "react";
const EditableText = ({
initialValue = "fffff",
placeholder = "Click to edit...",
className = "",
onChange = () => {},
// App.js hoặc component của bạn
import React, { useState, useRef } from "react";
// import FunctionQueue from "./FunctionQueue"; // Import FunctionQueue
import { debounce } from "perfect-debounce";
// const queue = new FunctionQueue();
const App = () => {
const [count, setCount] = useState(0);
// Simple version of Zustand
zustand.js
import React from "react";
// Function to create store with core features
function createStore(createState) {
// Store the current state
let state;
version: '3.8'
services:
radarr:
image: linuxserver/radarr:4.1.0
container_name: radarr
restart: unless-stopped
environment:
- PUID=1000
Many programming projects need a quick and simple place to store some files which is currently way more difficult (and/or expensive) than it should be. FileBrowser has a lot of potential to be automated in the sense that it does one thing and does one thing well: Storing and retrieving files.
However, the documentation of the API is beyond lacking (i.e. it does not exist). Assuming people will only use the web interface is ignoring a massive possible userbase for this application. As a start, I have created a short example in nodejs on how to use the REST API to obtain a JWT token, and subsequently use it to upload a file, and then download a file. Please PLEASE just add ANY api documentation, this took me several hours...
I start the service using docker-compose (make sure you create the DATA_DIR beforehand):
version: '3'
services:
filebrowser:
const paramsMethod = (params: any) => ({
get: { params },
post: params,
put: params,
delete: { data: params },
});
sudo apt reinstall raspberrypi-ui-mods
docs: https://day.js.org/docs/en/plugin/duration
https://replit.com/@hungdev/dayjs-diff#index.js
const dayjs = require('dayjs');
require('dayjs/locale/vi'); // Import locale để có các chuỗi ngôn ngữ Việt Nam
var durationExt = require('dayjs/plugin/duration')
dayjs.extend(durationExt)
ISO Language Code src: http://www.lingoes.net/en/translator/langcode.htm
JSON in comment
Code Name
af Afrikaans
af-ZA Afrikaans (South Africa)
ar Arabic
ar-AE Arabic (U.A.E.)