diff --git a/cypress.config.ts b/cypress.config.ts index e7077cd..bad1807 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 { defineConfig } from "cypress"; export default defineConfig({ diff --git a/cypress/e2e/home.cy.ts b/cypress/e2e/home.cy.ts index 1de0a66..1a35782 100644 --- a/cypress/e2e/home.cy.ts +++ b/cypress/e2e/home.cy.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 "cypress-file-upload"; describe("Page Loading and Functionality Tests", () => { diff --git a/cypress/e2e/test_data/sampleCode.ts b/cypress/e2e/test_data/sampleCode.ts index 37ee6a1..81f243a 100644 --- a/cypress/e2e/test_data/sampleCode.ts +++ b/cypress/e2e/test_data/sampleCode.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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. + +*/ + export const macro1 = `- macro: open_read condition: (evt.type in (open,openat,openat2) and evt.is_open_read=true and fd.typechar='f' and fd.num>=0) `; diff --git a/src/App.tsx b/src/App.tsx index b6e41a1..513ebc8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 Navbar from "./components/Navbar/Navbar"; import Content from "./components/Content/Content"; import { HashRouter, Route, Routes } from "react-router-dom"; diff --git a/src/Hooks/UseDebounce.tsx b/src/Hooks/UseDebounce.tsx index 2b32a74..78c4282 100644 --- a/src/Hooks/UseDebounce.tsx +++ b/src/Hooks/UseDebounce.tsx @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 { useEffect, useState } from "react"; export function useDebounce(value: T, delay?: number): T { diff --git a/src/components/Content/Content.tsx b/src/components/Content/Content.tsx index fe0af9d..6ddb124 100644 --- a/src/components/Content/Content.tsx +++ b/src/components/Content/Content.tsx @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 { useEffect, useState } from "react"; import { useDebounce } from "../../Hooks/UseDebounce"; import useWasm from "../../Hooks/UseWasm"; diff --git a/src/components/Content/content.style.ts b/src/components/Content/content.style.ts index 5eacd69..5e6d7e8 100644 --- a/src/components/Content/content.style.ts +++ b/src/components/Content/content.style.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 styled from "styled-components"; export const Section = styled.section` diff --git a/src/components/Editor/Monaco.tsx b/src/components/Editor/Monaco.tsx index 5c55ace..6959f5c 100644 --- a/src/components/Editor/Monaco.tsx +++ b/src/components/Editor/Monaco.tsx @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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, useRef, useEffect } from "react"; import { setDiagnosticsOptions } from "monaco-yaml"; import { JSONSchema6 } from "json-schema"; diff --git a/src/components/Editor/customMocaco.ts b/src/components/Editor/customMocaco.ts index fe99721..b72a428 100644 --- a/src/components/Editor/customMocaco.ts +++ b/src/components/Editor/customMocaco.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 "monaco-editor/esm/vs/editor/editor.all.js"; import "monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution"; diff --git a/src/components/Editor/examples.ts b/src/components/Editor/examples.ts index 2d6e766..1fcd8f0 100644 --- a/src/components/Editor/examples.ts +++ b/src/components/Editor/examples.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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. + +*/ + export const example1 = `- macro: open_read condition: (evt.type in (open,openat,openat2) and evt.is_open_read=true and fd.typechar='f' and fd.num>=0) diff --git a/src/components/Editor/falco_lang.ts b/src/components/Editor/falco_lang.ts index 4262f3e..3559bcd 100644 --- a/src/components/Editor/falco_lang.ts +++ b/src/components/Editor/falco_lang.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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. + +*/ + const falcoLang = { keywords: [ "rule", diff --git a/src/components/Editor/monaco.style.ts b/src/components/Editor/monaco.style.ts index 911889d..90035c3 100644 --- a/src/components/Editor/monaco.style.ts +++ b/src/components/Editor/monaco.style.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 styled from "styled-components"; const Editor = styled.div` diff --git a/src/components/Navbar/Navbar.tsx b/src/components/Navbar/Navbar.tsx index 90b5b83..fc5d814 100644 --- a/src/components/Navbar/Navbar.tsx +++ b/src/components/Navbar/Navbar.tsx @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 falcoLogo from "../../assets/logo.svg"; import "./navbar.css"; import GitHubButton from "react-github-btn"; diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index 1d71dd8..35d172d 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 { useEffect, useState } from "react"; import { CtaDiv, ErrorDiv, SideDiv, SpinDiv } from "./sidebar.style"; import { diff --git a/src/components/Sidebar/falco_output.ts b/src/components/Sidebar/falco_output.ts index 65c6766..34c2e7a 100644 --- a/src/components/Sidebar/falco_output.ts +++ b/src/components/Sidebar/falco_output.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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. + +*/ + export interface FalcoStdOut { falco_load_results: FalcoLoadResult[]; } diff --git a/src/components/Sidebar/sidebar.style.ts b/src/components/Sidebar/sidebar.style.ts index 0e2b417..c624692 100644 --- a/src/components/Sidebar/sidebar.style.ts +++ b/src/components/Sidebar/sidebar.style.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 styled from "styled-components"; import { Spin } from "antd"; diff --git a/src/globalStyles.style.ts b/src/globalStyles.style.ts index a7dc720..d0c77be 100644 --- a/src/globalStyles.style.ts +++ b/src/globalStyles.style.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 { createGlobalStyle, styled } from "styled-components"; export const GlobalStyle = createGlobalStyle` diff --git a/src/main.tsx b/src/main.tsx index 95e2bdc..afa77da 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 ReactDOM from "react-dom/client"; import App from "./App.tsx"; diff --git a/vite.config.ts b/vite.config.ts index 76dea31..c980c64 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,3 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +/* +Copyright (C) 2023 The Falco Authors. + +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 { defineConfig } from "vite"; import react from "@vitejs/plugin-react";