From b85043eee213ca4b3f3dbc038422e22c472a2798 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Fri, 16 Jul 2021 14:38:44 -0700 Subject: [PATCH] Add license to files --- src/App.css | 51 ++++++++++++++++---------------------------------- src/App.jsx | 16 ++++++++++++++++ src/index.css | 5 ----- src/logo.svg | 7 ------- src/main.jsx | 28 +++++++++++++++++++++------ vite.config.js | 28 +++++++++++++++++++++------ 6 files changed, 76 insertions(+), 59 deletions(-) delete mode 100644 src/logo.svg diff --git a/src/App.css b/src/App.css index 8da3fde..a3c85c4 100644 --- a/src/App.css +++ b/src/App.css @@ -1,42 +1,23 @@ +/* +Copyright 2021 New Vector Ltd + +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 { text-align: center; } -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - button { font-size: calc(10px + 2vmin); } diff --git a/src/App.jsx b/src/App.jsx index 32feb5c..1109b80 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,3 +1,19 @@ +/* +Copyright 2021 New Vector Ltd + +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, { useCallback, useEffect, diff --git a/src/index.css b/src/index.css index ec2585e..1532074 100644 --- a/src/index.css +++ b/src/index.css @@ -6,8 +6,3 @@ body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} diff --git a/src/logo.svg b/src/logo.svg deleted file mode 100644 index 6b60c10..0000000 --- a/src/logo.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/main.jsx b/src/main.jsx index 606a3cf..b757ad8 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,11 +1,27 @@ -import React from 'react' -import ReactDOM from 'react-dom' -import './index.css' -import App from './App' +/* +Copyright 2021 New Vector Ltd + +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"; +import "./index.css"; +import App from "./App"; ReactDOM.render( , - document.getElementById('root') -) + document.getElementById("root") +); diff --git a/vite.config.js b/vite.config.js index 67f8bc3..8fc0035 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,12 +1,28 @@ -import { defineConfig } from 'vite' -import reactRefresh from '@vitejs/plugin-react-refresh' +/* +Copyright 2021 New Vector Ltd + +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 reactRefresh from "@vitejs/plugin-react-refresh"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [reactRefresh()], server: { proxy: { - '/_matrix': 'http://localhost:8080' - } - } -}) + "/_matrix": "http://localhost:8080", + }, + }, +});