ccg
This commit is contained in:
parent
1d1bb79928
commit
0ac7cabe92
@ -8,7 +8,7 @@ import Toast from "~/components/Toast";
|
||||
import { useState, useEffect } from "react";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Areas Management - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Areas Management - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 2);
|
||||
|
||||
@ -5,7 +5,7 @@ import { requireAuthLevel } from "~/utils/auth.server";
|
||||
import DashboardLayout from "~/components/DashboardLayout";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Dashboard - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Dashboard - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 1);
|
||||
|
||||
@ -8,7 +8,7 @@ import Toast from "~/components/Toast";
|
||||
import { useState, useEffect } from "react";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Dredger Locations Management - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Dredger Locations Management - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 2);
|
||||
|
||||
@ -9,7 +9,7 @@ import { useState, useEffect } from "react";
|
||||
import bcrypt from "bcryptjs";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Employee Management - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Employee Management - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 2);
|
||||
|
||||
@ -8,7 +8,7 @@ import Toast from "~/components/Toast";
|
||||
import { useState, useEffect } from "react";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Equipment Management - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Equipment Management - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 2);
|
||||
|
||||
@ -8,7 +8,7 @@ import Toast from "~/components/Toast";
|
||||
import { useState, useEffect } from "react";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Foreman Management - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Foreman Management - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 2);
|
||||
|
||||
@ -8,7 +8,7 @@ import Toast from "~/components/Toast";
|
||||
import { useState, useEffect } from "react";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Reclamation Locations Management - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Reclamation Locations Management - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 2);
|
||||
|
||||
@ -7,7 +7,7 @@ import ReportSheetViewModal from "~/components/ReportSheetViewModal";
|
||||
import { useState } from "react";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Report Sheets - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Report Sheets - Alhaffer Report System" }];
|
||||
|
||||
interface ReportSheet {
|
||||
id: string;
|
||||
|
||||
@ -10,7 +10,7 @@ import { useState, useEffect } from "react";
|
||||
import { manageSheet, removeFromSheet } from "~/utils/sheet.server";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Reports Management - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Reports Management - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 1); // All employees can access reports
|
||||
|
||||
@ -7,7 +7,7 @@ import { useState, useEffect } from "react";
|
||||
import { manageSheet } from "~/utils/sheet.server";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "New Report - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "New Report - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const user = await requireAuthLevel(request, 1); // All employees can create reports
|
||||
|
||||
@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";
|
||||
import { Form, Link, useActionData, useSearchParams } from "@remix-run/react";
|
||||
import { createUserSession, getUserId, verifyLogin } from "~/utils/auth.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Sign In - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Sign In - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const userId = await getUserId(request);
|
||||
|
||||
@ -4,7 +4,7 @@ import { Form, Link, useActionData } from "@remix-run/react";
|
||||
import { createUser, createUserSession, getUserId } from "~/utils/auth.server";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Sign Up - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Sign Up - Alhaffer Report System" }];
|
||||
|
||||
export const loader = async ({ request }: LoaderFunctionArgs) => {
|
||||
const userId = await getUserId(request);
|
||||
|
||||
@ -6,7 +6,7 @@ import DashboardLayout from "~/components/DashboardLayout";
|
||||
import { useState } from "react";
|
||||
import { prisma } from "~/utils/db.server";
|
||||
|
||||
export const meta: MetaFunction = () => [{ title: "Stoppages Analysis - Phosphat Report" }];
|
||||
export const meta: MetaFunction = () => [{ title: "Stoppages Analysis - Alhaffer Report System" }];
|
||||
|
||||
interface StoppageEntry {
|
||||
id: string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user