[
-
2x Get the route and date to be in a URL.
-
Date?
-
2x - Enter a URL and have the search form bring up the route and/or Date which is in the URL.
-
Date?
| export const updateSummary = async ( | |
| entryID: string, | |
| date: string, | |
| routeID: string, | |
| setSummaryObject: React.Dispatch<React.SetStateAction<any>>, | |
| summaryObject: any, | |
| ) => { | |
| alert('8, updateSummary'); | |
| // I'm pretty sure that BS id creation is coming from here: | |
| try { |
| 'use client'; | |
| import { useState, MouseEventHandler, useEffect } from 'react'; // Import MouseEventHandler | |
| import Button from './button'; | |
| import { updateSummary, createRecordForSummary } from '#/app/utils/network-fns'; | |
| import TextareaAutosize from 'react-textarea-autosize'; | |
| import { UploadButton } from '#/app/utils/uploadthing'; | |
| import { ImageString } from './image-slider'; | |
| import StandardModal from './standard-modal'; | |
| import { FormattedRouteType } from '#/types/RouteTypes'; | |
| import { useSearchParams, usePathname, useRouter } from 'next/navigation'; |
| 'use client'; | |
| import { type WorkTime, type Routes, Prisma } from '@prisma/client'; | |
| import { useEffect, useState } from 'react'; | |
| import Button from './button'; | |
| import { set } from 'date-fns'; | |
| interface shiftsType { | |
| name: string; | |
| startTime: string; |
| 'use client' | |
| import { useState, MouseEventHandler, useEffect } from 'react'; // Import MouseEventHandler | |
| import Button from './button'; | |
| import { updateSummary } from '#/app/api/search-shift/network-fns'; | |
| import TextareaAutosize from 'react-textarea-autosize'; | |
| import { UploadButton } from "#/app/utils/uploadthing"; | |
| import { ImageString } from './image-slider'; | |
| import StandardModal from './standard-modal'; | |
| import { FormattedRouteType } from "#/types/RouteTypes"; | |
| import { useSearchParams, usePathname, useRouter } from 'next/navigation'; |
Start: Mon 22 Apr 2024 09:54:47 AM CDT
The core UI component: https://gist.github.com/MonteLogic/573bd7d8e2095ee2831f03ebb149d41b
| <?php | |
| /** | |
| * Starting update via different method. | |
| * | |
| * @param object $transient The update request for plugin. | |
| */ | |
| function myplugin_check_for_update( $transient ) { | |
| error_log( 'hello' ); |
| function getThisToWork() { | |
| fetch('/wp-json/wp/v2/users/3', { | |
| method: 'GET', | |
| headers: { | |
| 'Content-Type': 'application/json', | |
| 'X-WP-Nonce': wpApiSettings.nonce, // replace with your nonce value | |
| }, | |
| }) | |
| .then(response => response.json()) | |
| .then(data => { |