This is an automated email from the ASF dual-hosted git repository.

danwatford pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 2d44539f5 Added: Example plugin react app license file headers 
(OFBIZ-12789)
2d44539f5 is described below

commit 2d44539f5a604270e47c605587e06aa66f3bf046
Author: Daniel Watford <dan...@watfordconsulting.com>
AuthorDate: Fri Apr 28 10:37:42 2023 +0100

    Added: Example plugin react app license file headers (OFBIZ-12789)
---
 example/vite-react-app/index.html         | 16 ++++++++++++++++
 example/vite-react-app/package.json       |  1 +
 example/vite-react-app/src/ApiContext.tsx | 19 +++++++++++++++++++
 example/vite-react-app/src/App.css        | 19 +++++++++++++++++++
 example/vite-react-app/src/App.tsx        | 19 +++++++++++++++++++
 example/vite-react-app/src/index.css      | 19 +++++++++++++++++++
 example/vite-react-app/src/main.tsx       | 19 +++++++++++++++++++
 example/vite-react-app/src/vite-env.d.ts  | 19 +++++++++++++++++++
 example/vite-react-app/vite.config.ts     | 19 +++++++++++++++++++
 9 files changed, 150 insertions(+)

diff --git a/example/vite-react-app/index.html 
b/example/vite-react-app/index.html
index e0d1c8408..972f9d25d 100644
--- a/example/vite-react-app/index.html
+++ b/example/vite-react-app/index.html
@@ -1,3 +1,19 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You 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.
+-->
 <!DOCTYPE html>
 <html lang="en">
   <head>
diff --git a/example/vite-react-app/package.json 
b/example/vite-react-app/package.json
index 2e5d247d0..3d0bef976 100644
--- a/example/vite-react-app/package.json
+++ b/example/vite-react-app/package.json
@@ -3,6 +3,7 @@
   "private": true,
   "version": "0.0.0",
   "type": "module",
+  "license": "Apache-2.0",
   "scripts": {
     "dev": "vite",
     "build": "tsc && vite build --minify false",
diff --git a/example/vite-react-app/src/ApiContext.tsx 
b/example/vite-react-app/src/ApiContext.tsx
index 9a1f2eb52..d4a386cd2 100644
--- a/example/vite-react-app/src/ApiContext.tsx
+++ b/example/vite-react-app/src/ApiContext.tsx
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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, { useCallback, useContext, useState } from "react";
 import { pipe } from "fp-ts/lib/function";
 import * as E from "fp-ts/lib/Either";
diff --git a/example/vite-react-app/src/App.css 
b/example/vite-react-app/src/App.css
index b9d355df2..0dc9d0206 100644
--- a/example/vite-react-app/src/App.css
+++ b/example/vite-react-app/src/App.css
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
 #root {
   max-width: 1280px;
   margin: 0 auto;
diff --git a/example/vite-react-app/src/App.tsx 
b/example/vite-react-app/src/App.tsx
index e130bc77a..24e99f1bf 100644
--- a/example/vite-react-app/src/App.tsx
+++ b/example/vite-react-app/src/App.tsx
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 { useCallback, useState } from "react";
 import reactLogo from "./assets/react.svg";
 import viteLogo from "/vite.svg";
diff --git a/example/vite-react-app/src/index.css 
b/example/vite-react-app/src/index.css
index e69de29bb..d12749d9e 100644
--- a/example/vite-react-app/src/index.css
+++ b/example/vite-react-app/src/index.css
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
diff --git a/example/vite-react-app/src/main.tsx 
b/example/vite-react-app/src/main.tsx
index 76875ba23..0859f98bc 100644
--- a/example/vite-react-app/src/main.tsx
+++ b/example/vite-react-app/src/main.tsx
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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";
diff --git a/example/vite-react-app/src/vite-env.d.ts 
b/example/vite-react-app/src/vite-env.d.ts
index 11f02fe2a..9d3b124ee 100644
--- a/example/vite-react-app/src/vite-env.d.ts
+++ b/example/vite-react-app/src/vite-env.d.ts
@@ -1 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
 /// <reference types="vite/client" />
diff --git a/example/vite-react-app/vite.config.ts 
b/example/vite-react-app/vite.config.ts
index f44269b96..ba5e69911 100644
--- a/example/vite-react-app/vite.config.ts
+++ b/example/vite-react-app/vite.config.ts
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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'
 

Reply via email to