Skip to content

Commit

Permalink
Merge pull request #276 from carverauto/updates/web_copyright
Browse files Browse the repository at this point in the history
updated for web
  • Loading branch information
mfreeman451 authored Mar 3, 2025
2 parents ad74153 + 2c27ebe commit 09cce3f
Show file tree
Hide file tree
Showing 21 changed files with 336 additions and 0 deletions.
16 changes: 16 additions & 0 deletions web/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import type { NextConfig } from "next";

const nextConfig: NextConfig = {
Expand Down
16 changes: 16 additions & 0 deletions web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// app/layout.tsx
import './globals.css';
import { Inter } from 'next/font/google';
Expand Down
16 changes: 16 additions & 0 deletions web/src/app/nodes/page.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// Server component that fetches data
import {Suspense} from "react";
import NodeList from "../../components/NodeList";
Expand Down
16 changes: 16 additions & 0 deletions web/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// src/app/page.tsx (Server Component)
import { Suspense } from 'react';
import Dashboard from '../components/Dashboard';
Expand Down
16 changes: 16 additions & 0 deletions web/src/app/providers.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use client';

import { createContext, useState, useEffect, useContext } from 'react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/app/service/[nodeid]/[servicename]/page.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// src/app/service/[nodeid]/[servicename]/page.js
import { Suspense } from 'react';
import ServiceDashboard from '../../../../components/ServiceDashboard';
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/Dashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// src/components/Dashboard.jsx - Client Component
'use client';

Expand Down
16 changes: 16 additions & 0 deletions web/src/components/DuskDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import React, { useState, useEffect } from 'react';
import {
LineChart,
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/ExportButton.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import React from 'react';
import * as XLSX from 'xlsx';
import { Download } from 'lucide-react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use client';

import React from 'react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/NetworkStatus.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import React from 'react';

// Helper functions for formatting
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/NetworkSweepView.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useState } from 'react';
import ExportButton from './ExportButton';

Expand Down
16 changes: 16 additions & 0 deletions web/src/components/NodeList.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use client';

import React, { useState, useMemo, useCallback, useEffect } from 'react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/NodeTimeline.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use client';

import React, { useState, useEffect } from 'react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/SNMPDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use client';

import React, {useCallback, useState, useEffect} from 'react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/ServiceDashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use client';

import React, { useState, useEffect } from 'react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/components/ServiceSparkline.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use client';

import React, { useState, useEffect, useMemo } from 'react';
Expand Down
16 changes: 16 additions & 0 deletions web/src/env.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// src/env.js
import { createRuntimeEnv } from 'next-runtime-env';

Expand Down
16 changes: 16 additions & 0 deletions web/src/lib/api.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// src/lib/api.js - improved version with caching
import { useState, useEffect, useRef } from "react";
import { env } from 'next-runtime-env';
Expand Down
16 changes: 16 additions & 0 deletions web/src/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*-
* Copyright 2025 Carver Automation Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// src/middleware.ts
import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';
Expand Down
Loading

0 comments on commit 09cce3f

Please sign in to comment.