Skip to content

Commit

Permalink
Tidying up some unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
buchananwill committed Mar 27, 2024
1 parent 68b94f1 commit be9c333
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 55 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/9113740/201498864-2a900c64-d88f-4ed4-b5cf-770bcb57e1f5.png">
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/9113740/201498152-b171abb8-9225-487a-821c-6ff49ee48579.png">

<img alt="Shows all of the tools in the stack for this template, also listed in the README file." src="https://user-images.githubusercontent.com/9113740/201498152-b171abb8-9225-487a-821c-6ff49ee48579.png">
</picture>

<div align="center"><strong>Next.js 13 Admin Dashboard Template</strong></div>
<div align="center">Built with the Next.js App Router</div>
<div ><strong>Next.js 13 Admin Dashboard Template</strong></div>
<div >Built with the Next.js App Router</div>
<br />
<div align="center">
<a href="http://admin-dash-template.vercel.sh/">Demo</a>
<div >

<span> · </span>
<a href="https://vercel.com/templates/next.js/admin-dashboard-tailwind-planetscale-react-nextjs">Clone & Deploy</a>
<span>
<span></span>
</div>

## Overview
Expand All @@ -29,7 +28,7 @@ This is a starter template using the following stack:
- Linting - [ESLint](https://eslint.org)
- Formatting - [Prettier](https://prettier.io)

This template uses the new Next.js App Router. This includes support for enhanced layouts, colocation of components, tests, and styles, component-level data fetching, and more.
This template uses the new Next.js App Router. This includes support for enhanced layouts, co-location of components, tests, and styles, component-level data fetching, and more.

## Getting Started

Expand Down
3 changes: 1 addition & 2 deletions app/api/actions/premises.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
import { ActionResponsePromise } from './actionResponse';
import { GraphDto } from '../zod-mods';
import { AssetDto } from '../dtos/AssetDtoSchema';
import { API_BASE_URL, IntersectionRequestParams } from '../main';
import { API_BASE_URL } from '../main';
import { AssetRoleWorkTaskSuitabilityDto } from '../dtos/AssetRoleWorkTaskSuitabilityDtoSchema';
import * as url from 'url';

const premisesUrl = `${API_BASE_URL}/assets/premises`;

Expand Down
23 changes: 1 addition & 22 deletions app/contexts/string-map-context/string-map-context-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
'use client';
import {
MapDispatch,
MapDispatchBatch,
StringMap,
StringMapDispatch,
StringMapReducer
} from './string-map-reducer';
import React, {
Context,
Dispatch,
MutableRefObject,
PropsWithChildren,
useEffect,
useReducer,
useRef
} from 'react';
import { useSelectiveContextControllerBoolean } from '../../generic/components/selective-context/selective-context-manager-boolean';

import { getPayloadArray } from '../../curriculum/delivery-models/use-editing-context-dependency';
import { ActionResponsePromise } from '../../api/actions/actionResponse';
import React, { Context, PropsWithChildren, useReducer, useRef } from 'react';
import { AccessorFunction } from '../../generic/components/tables/rating/rating-table';
import { useSelectiveContextControllerStringList } from '../../generic/components/selective-context/selective-context-manager-string-list';
import { EmptyIdArray } from '../../curriculum/delivery-models/contexts/curriculum-models-context-provider';

import { isNotUndefined } from '../../api/main';
import { useModal } from '../../generic/components/modals/confirm-action-modal';
import { UnsavedChangesModal } from '../../generic/components/modals/unsaved-changes-modal';
import { useSyncStringMapToProps } from './use-sync-string-map-to-props';
import { IdStringFromNumberAccessor } from '../../premises/classroom-suitability/rating-table-accessor-functions';

export interface StringMapContextProviderProps<T> {
initialEntityMap: StringMap<T>;
Expand Down
3 changes: 0 additions & 3 deletions app/generic/css/custom-component-styles.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
.dynamic-dimension-table .tremor-Table-root {
overflow: visible !important;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
Expand Down
14 changes: 0 additions & 14 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@keyframes bounce-less {
0%, 100% {
transform: translateY(-20px);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
.animate-bounce-less {
animation: bounce-less 2s infinite;
}
1 change: 0 additions & 1 deletion app/premises/classroom-suitability/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import AssetSuitabilityEditContextProvider from '../asset-suitability-edit-conte
import ToolCardContextProvider from '../../generic/components/tool-card/tool-card-context-provider';
import ToolCard from '../../generic/components/tool-card/tool-card';
import AssetRoleSuitabilityStringMapContextProvider from '../asset-role-suitability-string-map-context-provider';
import { ObjectPlaceholder } from '../../generic/components/selective-context/selective-context-manager-function';
import { IdStringFromNumberAccessor } from './rating-table-accessor-functions';
import { parseTen } from '../../api/date-and-time';
import { DataNotFoundCard } from '../../timetables/students/[schedule]/data-not-found-card';
Expand Down
6 changes: 1 addition & 5 deletions app/work-types/lessons/use-service-category-context.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { createContext, useContext } from 'react';
import {
StringMap,
StringMapDispatch
} from '../../contexts/string-map-context/string-map-reducer';
import { useContext } from 'react';
import { KnowledgeDomainDto } from '../../api/dtos/KnowledgeDomainDtoSchema';
import { KnowledgeLevelDto } from '../../api/dtos/KnowledgeLevelDtoSchema';
import { ServiceCategoryDto } from '../../api/dtos/ServiceCategoryDtoSchema';
Expand Down

0 comments on commit be9c333

Please sign in to comment.